mixdashboards 1.0.77 → 1.0.78

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 (331) hide show
  1. package/dist/{BaseComponent-DtvXBQYf.js → BaseComponent-Dwhb9Mde.js} +3 -3
  2. package/dist/{BaseComponent-B5ivgb3E.cjs → BaseComponent-bzb58Hhs.cjs} +1 -1
  3. package/dist/{EChartComponentBase-c7NzErOu.js → EChartComponentBase-BmS2KONN.js} +2 -2
  4. package/dist/{EChartComponentBase-ChoVZ7wg.cjs → EChartComponentBase-CMN_pOMr.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-DG23L1EJ.cjs → EmergencyPlanPanel-CVusdpDo.cjs} +1 -1
  6. package/dist/{EmergencyPlanPanel-COfHeuTK.js → EmergencyPlanPanel-FtvC-aXY.js} +1 -1
  7. package/dist/{HistoryPlanDialog-d5ocUKAB.cjs → HistoryPlanDialog-CrYylrTC.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-CItsTCsk.js → HistoryPlanDialog-DliuSi0p.js} +1 -1
  9. package/dist/{MonitoringMap-H5AOAU8m.cjs → MonitoringMap-CBnv001f.cjs} +1 -1
  10. package/dist/{MonitoringMap-CGdqpp4N.js → MonitoringMap-DB3R5nAJ.js} +2 -2
  11. package/dist/{UniverSheet-tSAkLkuy.js → UniverSheet-DFyIjurx.js} +2 -2
  12. package/dist/{UniverSheet-BAwHvLEU.cjs → UniverSheet-jy9kOyPN.cjs} +1 -1
  13. package/dist/{accelerationChart-D69FGgF0.cjs → accelerationChart-Ceo371ch.cjs} +1 -1
  14. package/dist/{accelerationChart-4RM-T97n.js → accelerationChart-Q_Q_QlU7.js} +2 -2
  15. package/dist/{actionItem-XXesGERk.js → actionItem-BzMI_4-S.js} +2 -2
  16. package/dist/{actionItem-nkkG4T8t.cjs → actionItem-DB74CPi2.cjs} +1 -1
  17. package/dist/{alarmLevelChart-Cg4-8uhy.js → alarmLevelChart-Bp3SLCMe.js} +2 -2
  18. package/dist/{alarmLevelChart-DtzJLIO8.cjs → alarmLevelChart-CxmiBIKh.cjs} +1 -1
  19. package/dist/{alertTable-cpTXAjVG.cjs → alertTable-B1w_i0VB.cjs} +1 -1
  20. package/dist/{alertTable-_7uxXdg1.js → alertTable-DXzTm7mA.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-COnsSHH1.cjs → aliasObjectSelectorDemo-CRuq8zju.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-bgchdBQ0.js → aliasObjectSelectorDemo-Dfanalux.js} +1 -1
  23. package/dist/{annualRainfallChart-D5byp5kM.js → annualRainfallChart-D4Rhc84p.js} +2 -2
  24. package/dist/{annualRainfallChart-BRRuAOLJ.cjs → annualRainfallChart-DEeyac7q.cjs} +1 -1
  25. package/dist/{aqi-BkNZxokM.js → aqi-BzCTxj0q.js} +36 -28
  26. package/dist/{aqi-CbM96i-K.cjs → aqi-CBknBfTF.cjs} +2 -2
  27. package/dist/{aqiIndass-CC_FnBlK.js → aqiIndass-BJGsJsmz.js} +2 -2
  28. package/dist/{aqiIndass-UP1Ez_qA.cjs → aqiIndass-CUs24FxP.cjs} +1 -1
  29. package/dist/{areaDeformCurve-97gwWmiv.cjs → areaDeformCurve-B8VGdoKK.cjs} +1 -1
  30. package/dist/{areaDeformCurve-CoTcTIJx.js → areaDeformCurve-bSAkB3Pt.js} +2 -2
  31. package/dist/{arrayCard-lwGyTUyK.js → arrayCard-BkD5sytz.js} +2 -2
  32. package/dist/{arrayCard-CDs0w_2C.cjs → arrayCard-kh5WRweD.cjs} +1 -1
  33. package/dist/{audio-DwzGVHhN.js → audio-BTrvZwCy.js} +2 -2
  34. package/dist/{audio-DcGRfoFl.cjs → audio-DwJN2gca.cjs} +1 -1
  35. package/dist/{bar-DA7TDioF.js → bar-DYIb4143.js} +2 -2
  36. package/dist/{bar-Bh4Zupfj.cjs → bar-DsyyzcxB.cjs} +1 -1
  37. package/dist/{bmp-D7P6JPZ3.cjs → bmp-DbEyuBZw.cjs} +1 -1
  38. package/dist/{bmp-C-7PJc-e.js → bmp-Dt3mSkAr.js} +2 -2
  39. package/dist/{box-EScim_8s.cjs → box--u3HQFj9.cjs} +1 -1
  40. package/dist/{box-CabcDxmT.js → box-D7RsK5Qp.js} +2 -2
  41. package/dist/{chartConfigPanel-BOTXJEgB.js → chartConfigPanel-CD-csrX-.js} +1 -1
  42. package/dist/{chartConfigPanel-CGM3JLv0.cjs → chartConfigPanel-DybQRqg6.cjs} +1 -1
  43. package/dist/{circleBar-okrH5S9i.js → circleBar-4md65KCX.js} +2 -2
  44. package/dist/{circleBar-C3LcD2GM.cjs → circleBar-DJY37bwB.cjs} +1 -1
  45. package/dist/{clock-_0PzxcIr.js → clock-Cj0HsizY.js} +2 -2
  46. package/dist/{clock-B-MpqirO.cjs → clock-Dc9jgxHT.cjs} +1 -1
  47. package/dist/{clt-CmMR6xrj.cjs → clt-CBbtQxMc.cjs} +1 -1
  48. package/dist/{clt-B7Ro2RZ9.js → clt-uJT1jgHk.js} +2 -2
  49. package/dist/{cmc-CFz43gP5.cjs → cmc-CeTCKLBx.cjs} +1 -1
  50. package/dist/{cmc-UjkMrdkf.js → cmc-JJ6eTxB3.js} +2 -2
  51. package/dist/{cmp-B99dBC5D.cjs → cmp-CGZ_2BdE.cjs} +1 -1
  52. package/dist/{cmp-DAoGjmUK.js → cmp-D9qlHJoW.js} +2 -2
  53. package/dist/{conclusionCard-DfGfQa2i.js → conclusionCard-BsLeh3yq.js} +2 -2
  54. package/dist/{conclusionCard-BH6PfBmm.cjs → conclusionCard-CwLwj3zj.cjs} +1 -1
  55. package/dist/{controlList-Ch22lz5j.js → controlList-CYNS0ArB.js} +2 -2
  56. package/dist/{controlList-UzBZAUg8.cjs → controlList-l2ZYM6m5.cjs} +1 -1
  57. package/dist/{controlRecordList-DqVkxlxI.js → controlRecordList-BZmCvISO.js} +2 -2
  58. package/dist/{controlRecordList-CjaRe3iR.cjs → controlRecordList-N79_cTON.cjs} +1 -1
  59. package/dist/{controlRecordListAPP-DO9oXKbz.cjs → controlRecordListAPP-DOzMDV4x.cjs} +1 -1
  60. package/dist/{controlRecordListAPP-B4Agwftc.js → controlRecordListAPP-aDj520mp.js} +2 -2
  61. package/dist/{crd-Bf8jZALT.cjs → crd-CV4kMUTB.cjs} +1 -1
  62. package/dist/{crd-9hr2CpXs.js → crd-bm_BHuoV.js} +2 -2
  63. package/dist/{ctrBtn-DrNeLQd9.cjs → ctrBtn-Cs6ZmfyJ.cjs} +1 -1
  64. package/dist/{ctrBtn-Yfbw4Pt6.js → ctrBtn-DYceHTAq.js} +3 -3
  65. package/dist/{ctrSet-BI4qrXOp.js → ctrSet-B6PlTSBE.js} +3 -3
  66. package/dist/{ctrSet-Cw82MzYN.cjs → ctrSet-XqnGgYPn.cjs} +1 -1
  67. package/dist/{ctrSwitch-CyIBxuP0.cjs → ctrSwitch-B9lHJgQn.cjs} +1 -1
  68. package/dist/{ctrSwitch-CbrB82jp.js → ctrSwitch-E0FM_4f2.js} +3 -3
  69. package/dist/{dataManagement-8jLHO5b6.js → dataManagement-BAHa-OHl.js} +2 -2
  70. package/dist/{dataManagement-BANzNRgt.cjs → dataManagement-bKmkV2VY.cjs} +1 -1
  71. package/dist/{dataReport-BTY2YPkp.js → dataReport-B60Rb4sb.js} +2 -2
  72. package/dist/{dataReport-C6rqooz1.cjs → dataReport-JcrjpK_j.cjs} +1 -1
  73. package/dist/{dataTable-CT7O3vOj.js → dataTable-BmvewFlr.js} +1 -1
  74. package/dist/{dataTable-DK1bXW7L.cjs → dataTable-CX6uktOu.cjs} +1 -1
  75. package/dist/{datetime-Gc1JB409.cjs → datetime-BPM_lGiY.cjs} +1 -1
  76. package/dist/{datetime-BfpmpRWw.js → datetime-DARBbZJx.js} +2 -2
  77. package/dist/{deepClusterSlipSurface-CuPVV8T2.js → deepClusterSlipSurface-BF77Vp7G.js} +2 -2
  78. package/dist/{deepClusterSlipSurface-Do0cuafE.cjs → deepClusterSlipSurface-IywdiDlA.cjs} +1 -1
  79. package/dist/{deepDataMatrix-B2h-jr0-.js → deepDataMatrix--zgQoWer.js} +2 -2
  80. package/dist/{deepDataMatrix-eYmIiIMu.cjs → deepDataMatrix-sRXkGqdm.cjs} +1 -1
  81. package/dist/{deepDisplacement3D-Cc8f_nFC.cjs → deepDisplacement3D-BET8Ftuc.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-DyF7L9GI.js → deepDisplacement3D-BYt49pzj.js} +2 -2
  83. package/dist/{deepDisplacementChart-BkgOiG2W.js → deepDisplacementChart-B2zPpsk6.js} +2 -2
  84. package/dist/{deepDisplacementChart-BUPlTFCA.js → deepDisplacementChart-BGBhipUx.js} +3 -3
  85. package/dist/{deepDisplacementChart-DVscdSYa.cjs → deepDisplacementChart-BuuM485C.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-De935Ifi.cjs → deepDisplacementChart-D7loYUI5.cjs} +1 -1
  87. package/dist/{deepDisplacementView-C9P1cqRH.js → deepDisplacementView-Bwk9p_Qc.js} +1 -1
  88. package/dist/{deepDisplacementView-C3qEJa9Q.cjs → deepDisplacementView-CTBH3IxP.cjs} +1 -1
  89. package/dist/{deepNodeTemperatureChart-DePoeTnV.js → deepNodeTemperatureChart-BqTigCTs.js} +2 -2
  90. package/dist/{deepNodeTemperatureChart-DLzI-lAv.cjs → deepNodeTemperatureChart-CTLHLf0w.cjs} +1 -1
  91. package/dist/{deepTangentAngleChart-D2SQkZEz.js → deepTangentAngleChart-5oxzMpMF.js} +2 -2
  92. package/dist/{deepTangentAngleChart-ClBLpr_-.cjs → deepTangentAngleChart-CHxB8OFL.cjs} +1 -1
  93. package/dist/{deepTemperatureField-B_rWuVyI.js → deepTemperatureField-Bhk89D3D.js} +3 -3
  94. package/dist/{deepTemperatureField-CUGWy_vS.cjs → deepTemperatureField-Cr6YbuR_.cjs} +1 -1
  95. package/dist/{deepTrendChart-C_e7Dgjz.js → deepTrendChart-CAbdVR8d.js} +2 -2
  96. package/dist/{deepTrendChart-BcrJBFqD.cjs → deepTrendChart-Ch94j4W9.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-C0SqKqjc.js → deviceOnlineStatus-C5ODwFsY.js} +2 -2
  98. package/dist/{deviceOnlineStatus-BZxCnz-5.cjs → deviceOnlineStatus-DxsTb4Vb.cjs} +1 -1
  99. package/dist/{deviceStatus-DClMreZ3.cjs → deviceStatus-CjFTpCaU.cjs} +1 -1
  100. package/dist/{deviceStatus-BPglOIKN.js → deviceStatus-DPfOQCSX.js} +2 -2
  101. package/dist/{displacementDataTable-C5172BMT.cjs → displacementDataTable-BIqBEkul.cjs} +1 -1
  102. package/dist/{displacementDataTable-9WH9Y3-l.js → displacementDataTable-DG36VWok.js} +2 -2
  103. package/dist/{displacementTrajectoryChart-DWGKAbMq.js → displacementTrajectoryChart-Cpmj24Jn.js} +2 -2
  104. package/dist/{displacementTrajectoryChart-C-pchT8b.cjs → displacementTrajectoryChart-DRltcPfa.cjs} +1 -1
  105. package/dist/{displacementTrendChart-D4keOUDg.js → displacementTrendChart-D1yfRFQb.js} +2 -2
  106. package/dist/{displacementTrendChart-B8Em-Apt.cjs → displacementTrendChart-DpD79zii.cjs} +1 -1
  107. package/dist/{dxf-CRFblr-a.cjs → dxf-C_9cH0WU.cjs} +1 -1
  108. package/dist/{dxf-BV56d_m8.js → dxf-zbCakRgh.js} +2 -2
  109. package/dist/dzc-CejqHneE.cjs +2 -0
  110. package/dist/{dzc-FZBGaYTk.js → dzc-CfPVaIgj.js} +46 -38
  111. package/dist/{emergencyPlan-CbFUPUf9.js → emergencyPlan-LbeRH-P9.js} +3 -3
  112. package/dist/{emergencyPlan-D5YlhQNC.cjs → emergencyPlan-dEwML5xC.cjs} +1 -1
  113. package/dist/{evn-ty-ACnv0.cjs → evn-BvgQ3o3T.cjs} +1 -1
  114. package/dist/{evn-DMrhD8U9.js → evn-DsD_MKQd.js} +2 -2
  115. package/dist/{evolutionChart-Cg3jN_vy.js → evolutionChart-B4C9qB3I.js} +3 -3
  116. package/dist/{evolutionChart-C6E2yiqG.cjs → evolutionChart-Dt5-xRsy.cjs} +1 -1
  117. package/dist/{fileViewer-D3UlJjIK.js → fileViewer-B0LdLy2P.js} +2 -2
  118. package/dist/{fileViewer-BqlO8FED.cjs → fileViewer-DZIREgL0.cjs} +1 -1
  119. package/dist/{filterBar-BWqpT6Ft.js → filterBar-Bt6w4_xK.js} +2 -2
  120. package/dist/{filterBar-x-zvXO4x.cjs → filterBar-D_jcuqwP.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-CCsxFlpG.js → fireCombustionCurve-C2rWY89D.js} +3 -3
  122. package/dist/{fireCombustionCurve-BzvhUF4h.cjs → fireCombustionCurve-CHRd1nSv.cjs} +1 -1
  123. package/dist/{fireFilterBar-KU0l3oMk.js → fireFilterBar-CpwHRisZ.js} +2 -2
  124. package/dist/{fireFilterBar-BtMlwSl0.cjs → fireFilterBar-DX8qH1rr.cjs} +1 -1
  125. package/dist/{fireHistoryTable-GYC28vg2.cjs → fireHistoryTable-B38M6w5w.cjs} +1 -1
  126. package/dist/{fireHistoryTable-BqxPj5bh.js → fireHistoryTable-DcSgHt5q.js} +2 -2
  127. package/dist/{gag-CEsV2Rsa.js → gag-BErw_nsf.js} +2 -2
  128. package/dist/{gag-DnaEi2qS.cjs → gag-qDNPdFJu.cjs} +1 -1
  129. package/dist/{gasStationList-enI_qbTZ.js → gasStationList-BREZbC_k.js} +2 -2
  130. package/dist/{gasStationList-CSmyS9tt.cjs → gasStationList-NhJa4GO6.cjs} +1 -1
  131. package/dist/{geo3dViewer-Bi2I8qrS.cjs → geo3dViewer-D9uSt0up.cjs} +1 -1
  132. package/dist/{geo3dViewer-D3ZEH_sW.js → geo3dViewer-zAN1eIza.js} +3 -3
  133. package/dist/{glbModel-BcrfDRGx.cjs → glbModel-C4FiDMM5.cjs} +1 -1
  134. package/dist/{glbModel-Dz32VGsg.js → glbModel-i6HvK0m8.js} +2 -2
  135. package/dist/{globalObjectSelector-DPm_eXg_.js → globalObjectSelector-BrVwJEgp.js} +1 -1
  136. package/dist/{globalObjectSelector-CJrFL8ag.cjs → globalObjectSelector-CR74psMa.cjs} +1 -1
  137. package/dist/{gnssFilterBar-klba1QZm.js → gnssFilterBar-BEHXIIKI.js} +2 -2
  138. package/dist/{gnssFilterBar-DzHsXBPj.cjs → gnssFilterBar-BkfBQWXF.cjs} +1 -1
  139. package/dist/{gnssHistoryTable-BmWSzo4U.cjs → gnssHistoryTable-CQ-7ESYj.cjs} +1 -1
  140. package/dist/{gnssHistoryTable-Cp3pIekL.js → gnssHistoryTable-DDWGE_ge.js} +2 -2
  141. package/dist/{gnssMapView-BV9rsiDD.js → gnssMapView-C9iRAzym.js} +4 -4
  142. package/dist/{gnssMapView-BaZlzP_f.cjs → gnssMapView-P6ed3l_W.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-CArri0j5.js → gnssSectionProfile-BIqyABEf.js} +2 -2
  144. package/dist/{gnssSectionProfile-D02MfJcd.cjs → gnssSectionProfile-CIZnF7VA.cjs} +1 -1
  145. package/dist/{gnssTimeSeriesChart-fZYtdBrL.cjs → gnssTimeSeriesChart-BgIM5U-H.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-C3VtICJV.js → gnssTimeSeriesChart-DqH9JFBF.js} +2 -2
  147. package/dist/{gnssXYTrajectory-ClbZljGY.js → gnssXYTrajectory-BviUjxG9.js} +2 -2
  148. package/dist/{gnssXYTrajectory-glpzGLHH.cjs → gnssXYTrajectory-CH8864n6.cjs} +1 -1
  149. package/dist/{grd-DAPxN3Yv.cjs → grd-BhpBxrpa.cjs} +1 -1
  150. package/dist/{grd-DFbgrJiz.js → grd-DfkGlcW6.js} +2 -2
  151. package/dist/{grdIndass-CdReMrRF.js → grdIndass-ByznFwzc.js} +2 -2
  152. package/dist/{grdIndass-CRYPP8ap.cjs → grdIndass-DhMfHz31.cjs} +1 -1
  153. package/dist/{grg-BuxeFXkW.js → grg-CVBoetQY.js} +2 -2
  154. package/dist/{grg-DBj_IXUS.cjs → grg-uzBlEm_K.cjs} +1 -1
  155. package/dist/{gridview-DMqISEIm.cjs → gridview-CyXCqWKq.cjs} +1 -1
  156. package/dist/{gridview-ieOKw-zp.js → gridview-Dt3i1t5d.js} +2 -2
  157. package/dist/{groundwaterFilterBar-CMrXUaJD.js → groundwaterFilterBar-BbS81e9a.js} +2 -2
  158. package/dist/{groundwaterFilterBar-DTjCop4R.cjs → groundwaterFilterBar-C4xCPqa_.cjs} +1 -1
  159. package/dist/{groundwaterProfileChart-wwZ31Nxz.js → groundwaterProfileChart-BBPFrt5W.js} +3 -3
  160. package/dist/{groundwaterProfileChart-CHFMvxM0.cjs → groundwaterProfileChart-DvjFvCm5.cjs} +2 -2
  161. package/dist/{groundwaterTimeCurve-CL7EWs-M.js → groundwaterTimeCurve-CKlvc2nQ.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-DzTolxJ6.cjs → groundwaterTimeCurve-Cb3xlM78.cjs} +1 -1
  163. package/dist/{groupCard-3iWG0sN3.js → groupCard-BBzDl9uX.js} +2 -2
  164. package/dist/{groupCard-CdPis-TL.cjs → groupCard-BVdjzdqF.cjs} +1 -1
  165. package/dist/{headerBar-DVP5Ob99.cjs → headerBar-B5Z8UviF.cjs} +1 -1
  166. package/dist/{headerBar-BVa2ewi0.js → headerBar-Dty08mHR.js} +2 -2
  167. package/dist/{history-CZCtaT0D.js → history-TkSKA8F1.js} +1 -1
  168. package/dist/{history-CVMvhgUJ.cjs → history-yI8XiwXi.cjs} +1 -1
  169. package/dist/{index-DYr57ceS.cjs → index-6QhTSPkL.cjs} +10 -10
  170. package/dist/{index-BueGUjcH.js → index-YNdVib_6.js} +1260 -1265
  171. package/dist/{insarDeformChart-vPREnzjC.js → insarDeformChart-C9UkWIL9.js} +2 -2
  172. package/dist/{insarDeformChart-CVrCLtcb.cjs → insarDeformChart-Dr9Ve1vY.cjs} +1 -1
  173. package/dist/{insarImageViewer-C0D9bkS3.cjs → insarImageViewer-DAKBn2vV.cjs} +1 -1
  174. package/dist/{insarImageViewer-DsNoAsNI.js → insarImageViewer-DZbq2xch.js} +2 -2
  175. package/dist/{kds-C6tBi9fO.cjs → kds-BkH8cJCu.cjs} +1 -1
  176. package/dist/{kds-DUdtTddq.js → kds-__I8-o5i.js} +2 -2
  177. package/dist/{kpiCard-A_7vB_FS.js → kpiCard-BzuF0qdE.js} +2 -2
  178. package/dist/{kpiCard-Dfn9Utnc.cjs → kpiCard-fRfv1QPb.cjs} +1 -1
  179. package/dist/{landslideMap-DEYHn_Z8.js → landslideMap-D84pku4Y.js} +3 -3
  180. package/dist/{landslideMap-CjsBed2W.cjs → landslideMap-zD8SU2Lh.cjs} +1 -1
  181. package/dist/{landslideWarning-C2SVP_SW.js → landslideWarning-0mckvEoZ.js} +5 -5
  182. package/dist/{landslideWarning-9q-8-Yaf.cjs → landslideWarning-Cq-di-hN.cjs} +1 -1
  183. package/dist/{layerTabs-DpIpshzv.cjs → layerTabs-C2zq6a5M.cjs} +1 -1
  184. package/dist/{layerTabs-CkgVEQIu.js → layerTabs-COzqQ9mn.js} +2 -2
  185. package/dist/{leaflet-src-BV47Q4HI.js → leaflet-src-2tPn7QVH.js} +1 -1
  186. package/dist/{leaflet-src-DzRw1bMt.cjs → leaflet-src-D8MF2j44.cjs} +1 -1
  187. package/dist/{lerc-COLax3Js.js → lerc-BCmG0CMS.js} +2 -2
  188. package/dist/{lerc-BxPJ0Ezc.cjs → lerc-BHcVhBOn.cjs} +1 -1
  189. package/dist/{lin-BgNnturC.js → lin-CQ6TCBCr.js} +59 -51
  190. package/dist/{lin-0o_p8mvp.cjs → lin-niA_T9Ql.cjs} +2 -2
  191. package/dist/{linIndass-DqIczVZr.js → linIndass-J9rdji6E.js} +2 -2
  192. package/dist/{linIndass-DCnHejlJ.cjs → linIndass-nZx16Vos.cjs} +1 -1
  193. package/dist/{lst-DVSrQxnF.cjs → lst-Cw1XCAv0.cjs} +1 -1
  194. package/dist/{lst-pzZFRLE7.js → lst-DieyrYCh.js} +2 -2
  195. package/dist/{manualEntry-CU7C50JU.js → manualEntry-CCmyPMJm.js} +2 -2
  196. package/dist/{manualEntry-COjFNu6s.cjs → manualEntry-ChhTpAF2.cjs} +1 -1
  197. package/dist/{mapBackground-ssUjWKfZ.cjs → mapBackground-BzOdjhnZ.cjs} +1 -1
  198. package/dist/{mapBackground-Bi8yjPRE.js → mapBackground-CiiG2nHi.js} +3 -3
  199. package/dist/{mappingList-BRndtYHP.js → mappingList-CoBD8D27.js} +2 -2
  200. package/dist/{mappingList-Cryu-iab.cjs → mappingList-D42mILiq.cjs} +1 -1
  201. package/dist/{markdownViewer-i0a6mIv1.js → markdownViewer-C3HUXDvf.js} +2 -2
  202. package/dist/{markdownViewer-Dn2PQ9LA.cjs → markdownViewer-DHs9ekCh.cjs} +1 -1
  203. package/dist/{mix-control-modal-CHglSLUZ.js → mix-control-modal-BEwriuWS.js} +1 -1
  204. package/dist/{mix-control-modal-CicQq7ai.cjs → mix-control-modal-DGd2S6Jd.cjs} +1 -1
  205. package/dist/{mixGrid-CJfUwclp.js → mixGrid-CBenxHD_.js} +2 -2
  206. package/dist/{mixGrid-CHyP3WlY.cjs → mixGrid-Cnq99D09.cjs} +1 -1
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/{mixiotObjectListApi-BzhGWfpb.js → mixiotObjectListApi-CKJLXcnf.js} +1 -1
  211. package/dist/{mixiotObjectListApi-D8aEu-tS.cjs → mixiotObjectListApi-e1qL7PHh.cjs} +1 -1
  212. package/dist/{mjpegCamera-BltugLlx.js → mjpegCamera-D8lB701i.js} +2 -2
  213. package/dist/{mjpegCamera-DNETbJj6.cjs → mjpegCamera-DDFrZo-x.cjs} +1 -1
  214. package/dist/{monitorAlert-B0e6NlDC.cjs → monitorAlert-C-mo-lDe.cjs} +1 -1
  215. package/dist/{monitorAlert-BZt1nTav.js → monitorAlert-Z1dFDfPh.js} +2 -2
  216. package/dist/{monitorData-BN6f9iMG.cjs → monitorData-CNRfV5Wt.cjs} +1 -1
  217. package/dist/{monitorData-Bj-yPQyW.js → monitorData-DZhO9Gos.js} +2 -2
  218. package/dist/{monitorSpeedChart-DPUyFmKD.js → monitorSpeedChart-C5pN46lO.js} +1 -1
  219. package/dist/{monitorSpeedChart-B3VWNas7.cjs → monitorSpeedChart-DrRdMdGD.cjs} +1 -1
  220. package/dist/{mxa-pTWhgscr.js → mxa-BFQ70ksk.js} +39 -31
  221. package/dist/mxa-COpw24fq.cjs +2 -0
  222. package/dist/{myValue-Dyyv7mp6.js → myValue-Dosl4Ro5.js} +2 -2
  223. package/dist/{myValue-K9yzWHVv.cjs → myValue-Eb3asTOC.cjs} +1 -1
  224. package/dist/{myValueList-BrL41hIy.js → myValueList-Dkc10vr6.js} +2 -2
  225. package/dist/{myValueList-BF88xTbG.cjs → myValueList-mcqRZanE.cjs} +1 -1
  226. package/dist/{objectList-D1wulpL0.cjs → objectList-D4owr3ED.cjs} +1 -1
  227. package/dist/{objectList-DqUaLWIN.js → objectList-FWkZ6PAs.js} +3 -3
  228. package/dist/{objectListAPP-BJI-LZ9h.cjs → objectListAPP-Bzevu1od.cjs} +1 -1
  229. package/dist/{objectListAPP-68pa8xQ3.js → objectListAPP-CdfeZTgm.js} +3 -3
  230. package/dist/{photo-D2G-MiYd.cjs → photo-Dmxxqgrg.cjs} +1 -1
  231. package/dist/{photo-CqtG1ZDn.js → photo-DxXTYq73.js} +2 -2
  232. package/dist/pie-BxpiCEYe.cjs +2 -0
  233. package/dist/{pie-rodX5eBx.js → pie-COixdWUz.js} +85 -75
  234. package/dist/{placeholder-C2uw4-Bv.js → placeholder-CLLNLxRC.js} +1 -1
  235. package/dist/{placeholder-yXuUcCld.cjs → placeholder-Ole-Or58.cjs} +1 -1
  236. package/dist/{pressBtn-CkKRECXu.js → pressBtn-C7Y-B8Dz.js} +3 -3
  237. package/dist/{pressBtn-kIjSTK2P.cjs → pressBtn-DwKg9PbD.cjs} +1 -1
  238. package/dist/{processTable-pFBZ3sr0.js → processTable-CTkwZWWJ.js} +2 -2
  239. package/dist/{processTable-DVvTpite.cjs → processTable-DDcKkjJx.cjs} +1 -1
  240. package/dist/{progressBar-CE8Tat_F.cjs → progressBar-7qHg67Sf.cjs} +1 -1
  241. package/dist/{progressBar-CJXjo8T8.js → progressBar-9npgJ9jD.js} +2 -2
  242. package/dist/{progressCircle-jhxHU2LM.js → progressCircle-DP08TX08.js} +2 -2
  243. package/dist/{progressCircle-Cqjxopp0.cjs → progressCircle-Xgjnl1KF.cjs} +1 -1
  244. package/dist/{qrcode-COU9b8jO.js → qrcode-ClTSNzEN.js} +2 -2
  245. package/dist/{qrcode-ICKNQzlF.cjs → qrcode-D6wDMo-f.cjs} +1 -1
  246. package/dist/{raceBar-CpfkbT_l.cjs → raceBar-C8mVFHnd.cjs} +1 -1
  247. package/dist/{raceBar-DPZn5eQr.js → raceBar-CTmsN8VC.js} +2 -2
  248. package/dist/{rad-DYSDihyX.js → rad-DWCSD35t.js} +2 -2
  249. package/dist/{rad-MVqAl4DI.cjs → rad-Dxaakm82.cjs} +1 -1
  250. package/dist/{radarMapViewer-DSEst_zr.cjs → radarMapViewer-U7IQJjQs.cjs} +1 -1
  251. package/dist/{radarMapViewer-DT-cLDqj.js → radarMapViewer-eEBE3MS-.js} +2 -2
  252. package/dist/{rainfallFilterBar-BH4y-ZiG.js → rainfallFilterBar-DJTDGu7Z.js} +2 -2
  253. package/dist/{rainfallFilterBar-DBckf4TU.cjs → rainfallFilterBar-ow_wdOwq.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-BLPYjZne.cjs → rainfallTimeCurve-BL1I5Z2D.cjs} +1 -1
  255. package/dist/{rainfallTimeCurve-CEROEYQa.js → rainfallTimeCurve-CwGmJhxu.js} +3 -3
  256. package/dist/{rangeLin-CAWXiFqA.cjs → rangeLin-BEz9xapa.cjs} +1 -1
  257. package/dist/{rangeLin-D5m33pm3.js → rangeLin-BqcJpIva.js} +2 -2
  258. package/dist/{realtimeEvolutionMap-B_WyUQ7o.js → realtimeEvolutionMap-NOkyU7G3.js} +2 -2
  259. package/dist/{realtimeEvolutionMap-7YXQpGQV.cjs → realtimeEvolutionMap-mzXlR8gS.cjs} +1 -1
  260. package/dist/{regionBar-CRE0mrBK.cjs → regionBar-CEfz0Yol.cjs} +1 -1
  261. package/dist/{regionBar-BklMVV2U.js → regionBar-DDk-2UWS.js} +2 -2
  262. package/dist/{request-Bu96_fCa.js → request-BIXfJXjX.js} +1 -1
  263. package/dist/{request-C_dGr-al.cjs → request-BfG3yDz6.cjs} +1 -1
  264. package/dist/{retainer1-CSONW25j.cjs → retainer1-Ch1oZMeA.cjs} +1 -1
  265. package/dist/{retainer1-C9XjKFwo.js → retainer1-Cz5rXIJj.js} +3 -3
  266. package/dist/{retainer2-pxQIRn6B.cjs → retainer2-DJ1R2GJE.cjs} +1 -1
  267. package/dist/{retainer2-Nohg83dY.js → retainer2-DeelXgAZ.js} +3 -3
  268. package/dist/{retainerRecordList-B7mJ2EWt.cjs → retainerRecordList-D3MsCnqy.cjs} +1 -1
  269. package/dist/{retainerRecordList-D7ZTrf1N.js → retainerRecordList-DyhfjtfF.js} +2 -2
  270. package/dist/{retainerRecordListAPP-C5v2ahXJ.js → retainerRecordListAPP-3Gr7db3D.js} +2 -2
  271. package/dist/{retainerRecordListAPP-D-YaMhTT.cjs → retainerRecordListAPP-B_hCyRak.cjs} +1 -1
  272. package/dist/{ringTopN-CxZDBUkx.cjs → ringTopN-fLinQVwX.cjs} +1 -1
  273. package/dist/{ringTopN-n0TONMcf.js → ringTopN-t9xaVCWg.js} +2 -2
  274. package/dist/{riskRegionTable-CBddIShe.js → riskRegionTable-BThwQbTf.js} +2 -2
  275. package/dist/{riskRegionTable-Byb0Z693.cjs → riskRegionTable-CagcISBC.cjs} +1 -1
  276. package/dist/{sankey-BlIAPski.cjs → sankey-BY_nwThw.cjs} +1 -1
  277. package/dist/{sankey-D6XWVSSp.js → sankey-Bwm0omQr.js} +2 -2
  278. package/dist/{scd-CW_VLAdy.cjs → scd-Bs1dG1w8.cjs} +1 -1
  279. package/dist/{scd-B-DnzdLf.js → scd-DeYC1Rqx.js} +2 -2
  280. package/dist/{sideMenu-DCz3bw5f.cjs → sideMenu-CAEh3bwF.cjs} +1 -1
  281. package/dist/{sideMenu-B4NRCYfC.js → sideMenu-Db_Nc_xz.js} +2 -2
  282. package/dist/{slopeStability-C-vWRW5q.cjs → slopeStability-BWg6jhBB.cjs} +1 -1
  283. package/dist/{slopeStability-D5OmQDgi.js → slopeStability-CVC68Qcj.js} +2 -2
  284. package/dist/{speedCurve-tvLBjNoJ.js → speedCurve-CK4CXHeC.js} +2 -2
  285. package/dist/{speedCurve-D6uG-gFp.cjs → speedCurve-DNNEIz4o.cjs} +1 -1
  286. package/dist/{stressFilterBar-BQYqGIRB.cjs → stressFilterBar-Cigl3IyR.cjs} +1 -1
  287. package/dist/{stressFilterBar-aj-X6HC9.js → stressFilterBar-DQ8nq8jV.js} +2 -2
  288. package/dist/{stressTimeCurve-DC8cKQ52.js → stressTimeCurve-BEANw1F8.js} +3 -3
  289. package/dist/{stressTimeCurve-B0Gplbam.cjs → stressTimeCurve-BiduKfcg.cjs} +1 -1
  290. package/dist/{swiper-yrpsF9po.js → swiper-BgkvIN5U.js} +2 -2
  291. package/dist/{swiper-CDdx8LXl.cjs → swiper-MIRXMnxk.cjs} +1 -1
  292. package/dist/{terminalConfigList-VU0kGVKY.js → terminalConfigList-B3lqvQel.js} +2 -2
  293. package/dist/{terminalConfigList-NmdMNFkS.cjs → terminalConfigList-C3zRbQvM.cjs} +1 -1
  294. package/dist/{terminalList-BsHqVc8x.cjs → terminalList-ArxJ1jdO.cjs} +1 -1
  295. package/dist/{terminalList-BAYA-Ac0.js → terminalList-BevfdySj.js} +2 -2
  296. package/dist/{terminalListAPP-o2MxJO3g.js → terminalListAPP-CbpVft_s.js} +2 -2
  297. package/dist/{terminalListAPP-CsFu8juA.cjs → terminalListAPP-Cs0nnBfc.cjs} +1 -1
  298. package/dist/{textbox-B4Mo8FWS.js → textbox-CjkfmdaO.js} +2 -2
  299. package/dist/{textbox-5BUkzLTc.cjs → textbox-DC9YLTn5.cjs} +1 -1
  300. package/dist/{timeQueryBar-G4hUPdC2.cjs → timeQueryBar-B69eldHQ.cjs} +1 -1
  301. package/dist/{timeQueryBar-B0LIBA90.js → timeQueryBar-CXd9yNgD.js} +1 -1
  302. package/dist/{timeSeries-Ch4UV0P1.js → timeSeries-CLnLd-gX.js} +3 -3
  303. package/dist/{timeSeries-DC_CbU3l.cjs → timeSeries-fB14CgRy.cjs} +1 -1
  304. package/dist/{timeSeriesCurve-BF10Q_7c.js → timeSeriesCurve-CMcCzR13.js} +3 -3
  305. package/dist/{timeSeriesCurve-CJSHo8qO.cjs → timeSeriesCurve-DOaxDpjr.cjs} +1 -1
  306. package/dist/{toggleBtn-DQ2sHyaB.cjs → toggleBtn-BiUyrx_o.cjs} +1 -1
  307. package/dist/{toggleBtn-BhILbiNf.js → toggleBtn-CWmuTxSD.js} +2 -2
  308. package/dist/{trajectoryConfigPanel-BgSmlQkD.cjs → trajectoryConfigPanel-D7IDlQIH.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-BlqriMc7.js → trajectoryConfigPanel-DKLN3KY5.js} +1 -1
  310. package/dist/{trajectoryScatter-CeX4LQpn.cjs → trajectoryScatter-CL-2FKZe.cjs} +1 -1
  311. package/dist/{trajectoryScatter-BL2aiBf-.js → trajectoryScatter-TEactc8J.js} +2 -2
  312. package/dist/{universalConfigPanel-NMan3ddE.cjs → universalConfigPanel-B8JIiLXp.cjs} +1 -1
  313. package/dist/{universalConfigPanel-CLKhwJP4.js → universalConfigPanel-wicv4Ypw.js} +1 -1
  314. package/dist/{universalTable-CEmD-HRB.js → universalTable-8e3LrZvD.js} +2 -2
  315. package/dist/{universalTable-thYFp4vt.cjs → universalTable-BlTdL3c0.cjs} +1 -1
  316. package/dist/{video-t1nUpAcT.js → video-DpRcCZZQ.js} +2 -2
  317. package/dist/{video-8idiBjxG.cjs → video-nPkrKQyL.cjs} +1 -1
  318. package/dist/{videoMonitor-BEeCMVJf.cjs → videoMonitor-DOVw5mE0.cjs} +1 -1
  319. package/dist/{videoMonitor-PM3-BUjQ.js → videoMonitor-Z_7cZk5Y.js} +2 -2
  320. package/dist/{vlu-CE181id-.js → vlu-BQCrHSlq.js} +2 -2
  321. package/dist/{vlu-o3-SObwR.cjs → vlu-DEIgGiO-.cjs} +1 -1
  322. package/dist/{warningOverview-CKcMNgw-.js → warningOverview-C7J5aXTJ.js} +3 -3
  323. package/dist/{warningOverview-CbJfW5ek.cjs → warningOverview-DXJNk5bT.cjs} +1 -1
  324. package/dist/{weather-a0CGhe9q.cjs → weather-B1Pfcn75.cjs} +1 -1
  325. package/dist/{weather-D3LQY9qO.js → weather-C1sjTcwC.js} +2 -2
  326. package/dist/{windLin-Cg58bRj3.cjs → windLin-QKZKJ1h_.cjs} +1 -1
  327. package/dist/{windLin-D7qqnbNz.js → windLin-vlM63Hu7.js} +2 -2
  328. package/package.json +1 -1
  329. package/dist/dzc-9BLm4nwW.cjs +0 -2
  330. package/dist/mxa-BQ_gyPOg.cjs +0 -2
  331. package/dist/pie-DGQowd1d.cjs +0 -2
@@ -12,8 +12,8 @@ var P = (p, u, r) => u in p ? le(p, u, { enumerable: !0, configurable: !0, writa
12
12
  }, W = (p, u) => ne(p, se(u));
13
13
  import { defineComponent as re, ref as T, reactive as ce, computed as D, onMounted as ue, nextTick as B, onUnmounted as de, watch as ve, openBlock as U, createElementBlock as X, normalizeStyle as O, createElementVNode as l, unref as me, toDisplayString as C, normalizeClass as fe, withModifiers as pe, mergeProps as ye, createTextVNode as E, createCommentVNode as he, renderSlot as xe } from "vue";
14
14
  import "html2canvas";
15
- import { B as ge } from "./BaseComponent-DtvXBQYf.js";
16
- import { _ as Se } from "./index-BueGUjcH.js";
15
+ import { B as ge } from "./BaseComponent-Dwhb9Mde.js";
16
+ import { _ as Se } from "./index-YNdVib_6.js";
17
17
  import { A as be, D as Me } from "./ele-lin-icon-Dax-ZiWV.js";
18
18
  const Ce = { class: "panel-header" }, ze = { class: "header-left" }, Te = { class: "header-btns" }, De = {
19
19
  key: 0,
@@ -1 +1 @@
1
- "use strict";var H=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var w=(p,u,c)=>u in p?H(p,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):p[u]=c,I=(p,u)=>{for(var c in u||(u={}))Q.call(u,c)&&w(p,c,u[c]);if(A)for(var c of A(u))ee.call(u,c)&&w(p,c,u[c]);return p},R=(p,u)=>J(p,K(u));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const te=require("./BaseComponent-B5ivgb3E.cjs"),ae=require("./index-DYr57ceS.cjs"),O=require("./ele-lin-icon-Dke_1AmT.cjs"),ne={class:"panel-header"},le={class:"header-left"},oe={class:"header-btns"},se={key:0,class:"result-box"},re={style:{color:"#f5222d"}},ce={style:{color:"#fa8c16"}},ie={class:"insar-legend"},ue={class:"legend-title"},de={class:"legend-body"},me={DEFAULT_ICON:O.DEFAULT_ICON,ACTIVE_ICON:O.ACTIVE_ICON,NAME_CN:"InSAR形变3D图",NAME_EN:"InSAR Deform 3D Chart",ORDER:22,PLATFORM:["pc","screen"]},ve={bgColor:{value:"#4a4a4a",type:"color",label:"setting.bgColor"},titleFontSize:{value:14,type:"number",label:"标题字体大小",min:12,max:24},gridSize:{value:50,type:"number",label:"网格密度",min:20,max:80},canvasSize:{value:240,type:"number",label:"画布尺寸(px)",min:150,max:400},defaultDataType:{value:"rate",type:"select",label:"默认数据类型",options:[{label:"形变速率",value:"rate"},{label:"累计形变量",value:"amount"}]},linkChannel:{value:"satellite",type:"select",label:"联动频道",options:[{label:"遥感卫星",value:"satellite"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},fe=[],pe=["object_id","name","fv","fvDeviceName"],ye=["mosaic"],xe={useAlias:!1,multiObject:!1,source:"mosaic"},ge={DEFAULT:me,OPTIONS:ve,DATA:fe,PARAMS:pe,SOURCE:ye,COMMON:xe},he=t.defineComponent(R(I({},ge),{__name:"insarDeformChart",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const u=p,c={rate:{title:"InSAR 形变速率(mm/yr)",legendTitle:"形变速率 (mm/yr)",maxVal:20,unit:"mm/yr",noise:.15},amount:{title:"InSAR 累计形变量(mm)",legendTitle:"累计形变量 (mm)",maxVal:500,unit:"mm",noise:.25}};class F extends te.BaseComponent{extractStyles(){var i,n,y,s,o,v,f,N;const e=(i=this.props.conf)==null?void 0:i.options,l=((n=e==null?void 0:e.linkChannel)==null?void 0:n.value)||"satellite",r=((y=e==null?void 0:e.customChannel)==null?void 0:y.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#4a4a4a",titleFontSize:((o=e==null?void 0:e.titleFontSize)==null?void 0:o.value)||14,gridSize:((v=e==null?void 0:e.gridSize)==null?void 0:v.value)||50,canvasSize:((f=e==null?void 0:e.canvasSize)==null?void 0:f.value)||240,defaultDataType:((N=e==null?void 0:e.defaultDataType)==null?void 0:N.value)||"rate",linkChannel:l==="custom"&&r?r:l}}onLinkEvent(e){const l=e==null?void 0:e.payload;l!=null&&l.dataType&&(l.dataType==="rate"||l.dataType==="amount")&&(g.value=l.dataType,T())}}const E=new F(u,"insarDeformChart");E.setupLifecycle();const x=E.getStyle(),D=t.ref(null),g=t.ref("rate"),h=t.ref(!1),C=t.ref(!1),S=t.reactive({count:0,max:"0.00",avg:"0.00"});let b=[],d=null,m=null,M=!1;const _=t.ref(1),P=t.computed(()=>c[g.value].title),L=t.computed(()=>c[g.value].legendTitle),q=t.computed(()=>c[g.value].maxVal),B=t.computed(()=>({backgroundColor:x.value.bgColor})),U=t.computed(()=>`rotateX(60deg) rotateZ(45deg) scale(${_.value})`),W={onMousedown:a=>{h.value&&(M=!0,d=k(a),m=d,V(),C.value=!1)},onMousemove:a=>{!h.value||!M||(m=k(a),V())},onMouseup:()=>{M&&(M=!1,Y())}},k=a=>{if(!D.value)return{x:0,y:0};const l=x.value.gridSize,r=x.value.canvasSize,i=a.offsetX/r*l,n=a.offsetY/r*l;return{x:Math.max(0,Math.min(l-1,Math.floor(i))),y:Math.max(0,Math.min(l-1,Math.floor(n)))}},j=()=>{const a=x.value.gridSize,e=c[g.value],l=a/2,r=a/2,i=(Math.random()-.5)*5,n=(Math.random()-.5)*5;b=[];for(let y=0;y<a;y++){const s=[];for(let o=0;o<a;o++){const v=o-(l+i),f=y-(r+n),N=Math.sqrt(v*v+f*f),Z=a*.6;let z=N/Z;z+=(Math.random()-.5)*e.noise,z=Math.max(0,Math.min(1,z)),s.push(z)}b.push(s)}},X=a=>`hsl(${(1-a)*240}, 90%, 55%)`,V=()=>{const a=D.value;if(!a)return;const e=a.getContext("2d");if(!e)return;const l=x.value.gridSize,r=x.value.canvasSize,i=window.devicePixelRatio||1;a.width=r*i,a.height=r*i,a.style.width=r+"px",a.style.height=r+"px",e.scale(i,i),e.clearRect(0,0,r,r);const n=r/l,y=n*.45;for(let s=0;s<l;s++)for(let o=0;o<l;o++){if(!b[s])continue;const v=b[s][o],f=o*n+n/2,N=s*n+n/2;e.beginPath(),e.arc(f,N,y,0,Math.PI*2),e.fillStyle=X(v),e.fill(),e.lineWidth=.5,e.strokeStyle="rgba(0,0,0,0.4)",e.stroke()}if(d&&m){const s=Math.min(d.x,m.x),o=Math.min(d.y,m.y),v=Math.abs(m.x-d.x)+1,f=Math.abs(m.y-d.y)+1;e.save(),e.fillStyle="rgba(255,255,255,0.3)",e.strokeStyle="#00ffcc",e.lineWidth=2,e.fillRect(s*n,o*n,v*n,f*n),e.strokeRect(s*n,o*n,v*n,f*n),e.restore()}},Y=()=>{if(!d||!m)return;const a=Math.min(d.x,m.x),e=Math.max(d.x,m.x),l=Math.min(d.y,m.y),r=Math.max(d.y,m.y),i=c[g.value];let n=0,y=0,s=0;for(let o=l;o<=r;o++)for(let v=a;v<=e;v++){if(!b[o])continue;const f=b[o][v];y+=f,f>s&&(s=f),n++}n>0&&(S.count=n,S.max=(s*i.maxVal).toFixed(2)+" "+i.unit,S.avg=(y/n*i.maxVal).toFixed(2)+" "+i.unit,C.value=!0)},$=()=>{h.value=!h.value,h.value||(d=null,m=null,C.value=!1,V())},G=a=>{const e=a.deltaY>0?.9:1.1;_.value=Math.max(.3,Math.min(_.value*e,5))},T=()=>{j(),V(),d=null,m=null,C.value=!1};return t.onMounted(()=>{E.init(),g.value=x.value.defaultDataType||"rate",t.nextTick(()=>{T()})}),t.onUnmounted(()=>{E.cleanup()}),t.watch(()=>u.conf,()=>{t.nextTick(()=>{T()})},{deep:!0}),(a,e)=>(t.openBlock(),t.createElementBlock("div",{class:"insar-deform-chart",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",ne,[t.createElementVNode("div",le,[e[0]||(e[0]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",{class:"panel-title",style:t.normalizeStyle({color:"#fff",fontSize:t.unref(x).titleFontSize+"px"})},t.toDisplayString(P.value),5)]),t.createElementVNode("div",oe,[t.createElementVNode("button",{class:t.normalizeClass(["ctrl-btn",{"btn-active":h.value}]),onClick:$},"📐 圈选分析",2),t.createElementVNode("button",{class:"ctrl-btn",onClick:T},"🔄")])]),t.createElementVNode("div",{class:"insar-container",onWheel:t.withModifiers(G,["prevent"])},[t.createElementVNode("div",{class:"canvas-3d-wrapper",style:t.normalizeStyle({transform:U.value})},[t.createElementVNode("canvas",t.mergeProps({ref_key:"canvasRef",ref:D,class:"insar-canvas"},p.mode!=="edit"?W:{}),null,16)],4),C.value?(t.openBlock(),t.createElementBlock("div",se,[e[5]||(e[5]=t.createElementVNode("div",{class:"result-title"},"📊 区域分析结果",-1)),t.createElementVNode("div",null,[e[1]||(e[1]=t.createTextVNode("选中点数:",-1)),t.createElementVNode("span",null,t.toDisplayString(S.count),1),e[2]||(e[2]=t.createTextVNode(" 个",-1))]),t.createElementVNode("div",null,[e[3]||(e[3]=t.createTextVNode("最大形变:",-1)),t.createElementVNode("span",re,t.toDisplayString(S.max),1)]),t.createElementVNode("div",null,[e[4]||(e[4]=t.createTextVNode("平均形变:",-1)),t.createElementVNode("span",ce,t.toDisplayString(S.avg),1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",ie,[t.createElementVNode("div",ue,t.toDisplayString(L.value),1),t.createElementVNode("div",de,[e[6]||(e[6]=t.createElementVNode("span",null,"0",-1)),e[7]||(e[7]=t.createElementVNode("div",{class:"color-bar"},null,-1)),t.createElementVNode("span",null,t.toDisplayString(q.value),1)])])],32),t.renderSlot(a.$slots,"default",{},void 0,!0)],4))}})),Se=ae._export_sfc(he,[["__scopeId","data-v-695fe676"]]);exports.default=Se;
1
+ "use strict";var H=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var w=(p,u,c)=>u in p?H(p,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):p[u]=c,I=(p,u)=>{for(var c in u||(u={}))Q.call(u,c)&&w(p,c,u[c]);if(A)for(var c of A(u))ee.call(u,c)&&w(p,c,u[c]);return p},R=(p,u)=>J(p,K(u));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const te=require("./BaseComponent-bzb58Hhs.cjs"),ae=require("./index-6QhTSPkL.cjs"),O=require("./ele-lin-icon-Dke_1AmT.cjs"),ne={class:"panel-header"},le={class:"header-left"},oe={class:"header-btns"},se={key:0,class:"result-box"},re={style:{color:"#f5222d"}},ce={style:{color:"#fa8c16"}},ie={class:"insar-legend"},ue={class:"legend-title"},de={class:"legend-body"},me={DEFAULT_ICON:O.DEFAULT_ICON,ACTIVE_ICON:O.ACTIVE_ICON,NAME_CN:"InSAR形变3D图",NAME_EN:"InSAR Deform 3D Chart",ORDER:22,PLATFORM:["pc","screen"]},ve={bgColor:{value:"#4a4a4a",type:"color",label:"setting.bgColor"},titleFontSize:{value:14,type:"number",label:"标题字体大小",min:12,max:24},gridSize:{value:50,type:"number",label:"网格密度",min:20,max:80},canvasSize:{value:240,type:"number",label:"画布尺寸(px)",min:150,max:400},defaultDataType:{value:"rate",type:"select",label:"默认数据类型",options:[{label:"形变速率",value:"rate"},{label:"累计形变量",value:"amount"}]},linkChannel:{value:"satellite",type:"select",label:"联动频道",options:[{label:"遥感卫星",value:"satellite"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},fe=[],pe=["object_id","name","fv","fvDeviceName"],ye=["mosaic"],xe={useAlias:!1,multiObject:!1,source:"mosaic"},ge={DEFAULT:me,OPTIONS:ve,DATA:fe,PARAMS:pe,SOURCE:ye,COMMON:xe},he=t.defineComponent(R(I({},ge),{__name:"insarDeformChart",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const u=p,c={rate:{title:"InSAR 形变速率(mm/yr)",legendTitle:"形变速率 (mm/yr)",maxVal:20,unit:"mm/yr",noise:.15},amount:{title:"InSAR 累计形变量(mm)",legendTitle:"累计形变量 (mm)",maxVal:500,unit:"mm",noise:.25}};class F extends te.BaseComponent{extractStyles(){var i,n,y,s,o,v,f,N;const e=(i=this.props.conf)==null?void 0:i.options,l=((n=e==null?void 0:e.linkChannel)==null?void 0:n.value)||"satellite",r=((y=e==null?void 0:e.customChannel)==null?void 0:y.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#4a4a4a",titleFontSize:((o=e==null?void 0:e.titleFontSize)==null?void 0:o.value)||14,gridSize:((v=e==null?void 0:e.gridSize)==null?void 0:v.value)||50,canvasSize:((f=e==null?void 0:e.canvasSize)==null?void 0:f.value)||240,defaultDataType:((N=e==null?void 0:e.defaultDataType)==null?void 0:N.value)||"rate",linkChannel:l==="custom"&&r?r:l}}onLinkEvent(e){const l=e==null?void 0:e.payload;l!=null&&l.dataType&&(l.dataType==="rate"||l.dataType==="amount")&&(g.value=l.dataType,T())}}const E=new F(u,"insarDeformChart");E.setupLifecycle();const x=E.getStyle(),D=t.ref(null),g=t.ref("rate"),h=t.ref(!1),C=t.ref(!1),S=t.reactive({count:0,max:"0.00",avg:"0.00"});let b=[],d=null,m=null,M=!1;const _=t.ref(1),P=t.computed(()=>c[g.value].title),L=t.computed(()=>c[g.value].legendTitle),q=t.computed(()=>c[g.value].maxVal),B=t.computed(()=>({backgroundColor:x.value.bgColor})),U=t.computed(()=>`rotateX(60deg) rotateZ(45deg) scale(${_.value})`),W={onMousedown:a=>{h.value&&(M=!0,d=k(a),m=d,V(),C.value=!1)},onMousemove:a=>{!h.value||!M||(m=k(a),V())},onMouseup:()=>{M&&(M=!1,Y())}},k=a=>{if(!D.value)return{x:0,y:0};const l=x.value.gridSize,r=x.value.canvasSize,i=a.offsetX/r*l,n=a.offsetY/r*l;return{x:Math.max(0,Math.min(l-1,Math.floor(i))),y:Math.max(0,Math.min(l-1,Math.floor(n)))}},j=()=>{const a=x.value.gridSize,e=c[g.value],l=a/2,r=a/2,i=(Math.random()-.5)*5,n=(Math.random()-.5)*5;b=[];for(let y=0;y<a;y++){const s=[];for(let o=0;o<a;o++){const v=o-(l+i),f=y-(r+n),N=Math.sqrt(v*v+f*f),Z=a*.6;let z=N/Z;z+=(Math.random()-.5)*e.noise,z=Math.max(0,Math.min(1,z)),s.push(z)}b.push(s)}},X=a=>`hsl(${(1-a)*240}, 90%, 55%)`,V=()=>{const a=D.value;if(!a)return;const e=a.getContext("2d");if(!e)return;const l=x.value.gridSize,r=x.value.canvasSize,i=window.devicePixelRatio||1;a.width=r*i,a.height=r*i,a.style.width=r+"px",a.style.height=r+"px",e.scale(i,i),e.clearRect(0,0,r,r);const n=r/l,y=n*.45;for(let s=0;s<l;s++)for(let o=0;o<l;o++){if(!b[s])continue;const v=b[s][o],f=o*n+n/2,N=s*n+n/2;e.beginPath(),e.arc(f,N,y,0,Math.PI*2),e.fillStyle=X(v),e.fill(),e.lineWidth=.5,e.strokeStyle="rgba(0,0,0,0.4)",e.stroke()}if(d&&m){const s=Math.min(d.x,m.x),o=Math.min(d.y,m.y),v=Math.abs(m.x-d.x)+1,f=Math.abs(m.y-d.y)+1;e.save(),e.fillStyle="rgba(255,255,255,0.3)",e.strokeStyle="#00ffcc",e.lineWidth=2,e.fillRect(s*n,o*n,v*n,f*n),e.strokeRect(s*n,o*n,v*n,f*n),e.restore()}},Y=()=>{if(!d||!m)return;const a=Math.min(d.x,m.x),e=Math.max(d.x,m.x),l=Math.min(d.y,m.y),r=Math.max(d.y,m.y),i=c[g.value];let n=0,y=0,s=0;for(let o=l;o<=r;o++)for(let v=a;v<=e;v++){if(!b[o])continue;const f=b[o][v];y+=f,f>s&&(s=f),n++}n>0&&(S.count=n,S.max=(s*i.maxVal).toFixed(2)+" "+i.unit,S.avg=(y/n*i.maxVal).toFixed(2)+" "+i.unit,C.value=!0)},$=()=>{h.value=!h.value,h.value||(d=null,m=null,C.value=!1,V())},G=a=>{const e=a.deltaY>0?.9:1.1;_.value=Math.max(.3,Math.min(_.value*e,5))},T=()=>{j(),V(),d=null,m=null,C.value=!1};return t.onMounted(()=>{E.init(),g.value=x.value.defaultDataType||"rate",t.nextTick(()=>{T()})}),t.onUnmounted(()=>{E.cleanup()}),t.watch(()=>u.conf,()=>{t.nextTick(()=>{T()})},{deep:!0}),(a,e)=>(t.openBlock(),t.createElementBlock("div",{class:"insar-deform-chart",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",ne,[t.createElementVNode("div",le,[e[0]||(e[0]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",{class:"panel-title",style:t.normalizeStyle({color:"#fff",fontSize:t.unref(x).titleFontSize+"px"})},t.toDisplayString(P.value),5)]),t.createElementVNode("div",oe,[t.createElementVNode("button",{class:t.normalizeClass(["ctrl-btn",{"btn-active":h.value}]),onClick:$},"📐 圈选分析",2),t.createElementVNode("button",{class:"ctrl-btn",onClick:T},"🔄")])]),t.createElementVNode("div",{class:"insar-container",onWheel:t.withModifiers(G,["prevent"])},[t.createElementVNode("div",{class:"canvas-3d-wrapper",style:t.normalizeStyle({transform:U.value})},[t.createElementVNode("canvas",t.mergeProps({ref_key:"canvasRef",ref:D,class:"insar-canvas"},p.mode!=="edit"?W:{}),null,16)],4),C.value?(t.openBlock(),t.createElementBlock("div",se,[e[5]||(e[5]=t.createElementVNode("div",{class:"result-title"},"📊 区域分析结果",-1)),t.createElementVNode("div",null,[e[1]||(e[1]=t.createTextVNode("选中点数:",-1)),t.createElementVNode("span",null,t.toDisplayString(S.count),1),e[2]||(e[2]=t.createTextVNode(" 个",-1))]),t.createElementVNode("div",null,[e[3]||(e[3]=t.createTextVNode("最大形变:",-1)),t.createElementVNode("span",re,t.toDisplayString(S.max),1)]),t.createElementVNode("div",null,[e[4]||(e[4]=t.createTextVNode("平均形变:",-1)),t.createElementVNode("span",ce,t.toDisplayString(S.avg),1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",ie,[t.createElementVNode("div",ue,t.toDisplayString(L.value),1),t.createElementVNode("div",de,[e[6]||(e[6]=t.createElementVNode("span",null,"0",-1)),e[7]||(e[7]=t.createElementVNode("div",{class:"color-bar"},null,-1)),t.createElementVNode("span",null,t.toDisplayString(q.value),1)])])],32),t.renderSlot(a.$slots,"default",{},void 0,!0)],4))}})),Se=ae._export_sfc(he,[["__scopeId","data-v-695fe676"]]);exports.default=Se;
@@ -1 +1 @@
1
- "use strict";var X=Object.defineProperty,j=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var _=(r,o,s)=>o in r?X(r,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[o]=s,A=(r,o)=>{for(var s in o||(o={}))$.call(o,s)&&_(r,s,o[s]);if(x)for(var s of x(o))G.call(o,s)&&_(r,s,o[s]);return r},D=(r,o)=>j(r,P(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const W=require("./BaseComponent-B5ivgb3E.cjs"),K=require("./index-DYr57ceS.cjs"),R=require("./ele-lin-icon-Dke_1AmT.cjs"),Q={class:"toolbar-left"},H={class:"drawer-icons"},J=["onClick"],Z={class:"drawer-icon"},ee={class:"drawer-label"},te=["src"],le={class:"map-legend-vertical"},ae={class:"legend-scale"},ne={DEFAULT_ICON:R.DEFAULT_ICON,ACTIVE_ICON:R.ACTIVE_ICON,NAME_CN:"InSAR形变影像",NAME_EN:"InSAR Image Viewer",ORDER:21,PLATFORM:["pc","screen"]},oe={bgColor:{value:"#0b1a31",type:"color",label:"setting.bgColor"},toolbarBg:{value:"#ffffff",type:"color",label:"工具栏背景色"},toolbarFontSize:{value:13,type:"number",label:"工具栏字体大小",min:10,max:20},imageUrl:{value:"",type:"string",label:"默认影像URL"},linkChannel:{value:"satellite",type:"select",label:"联动频道",options:[{label:"遥感卫星",value:"satellite"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},se=[{name:"2025-08-12",fv:"",fvDeviceName:"",object_id:"",src:"",year:2025,issue:3},{name:"2025-07-25",fv:"",fvDeviceName:"",object_id:"",src:"",year:2025,issue:2},{name:"2025-05-30",fv:"",fvDeviceName:"",object_id:"",src:"",year:2025,issue:1}],re=["object_id","name","fv","fvDeviceName","src","year","issue"],ie=["mosaic"],ce={useAlias:!1,multiObject:!0,source:"mosaic"},de=200,ue={DEFAULT:ne,OPTIONS:oe,DATA:se,PARAMS:re,SOURCE:ie,COMMON:ce,ITEMS:de},me=e.defineComponent(D(A({},ue),{__name:"insarImageViewer",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r,s=[{key:"GNSS",label:"GNSS",icon:"📍"},{key:"DEEP",label:"深部位移",icon:"⚓"},{key:"RADAR",label:"雷达",icon:"📡"},{key:"SURFACE",label:"地表",icon:"📐"},{key:"CRACK",label:"裂缝",icon:"🧱"},{key:"FIRE",label:"煤自燃",icon:"🔥"},{key:"WATER",label:"降雨",icon:"💧"},{key:"GROUND",label:"地下水",icon:"🌍"},{key:"STRESS",label:"应力",icon:"📊"},{key:"VIB",label:"爆破震动",icon:"💥"},{key:"SAT",label:"遥感监测",icon:"🛸"}];class O extends W.BaseComponent{extractStyles(){var u,p,n,V,w,I,T;const t=(u=this.props.conf)==null?void 0:u.options,c=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"satellite",m=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((V=t==null?void 0:t.bgColor)==null?void 0:V.value)||"#0b1a31",toolbarBg:((w=t==null?void 0:t.toolbarBg)==null?void 0:w.value)||"#ffffff",toolbarFontSize:((I=t==null?void 0:t.toolbarFontSize)==null?void 0:I.value)||13,imageUrl:((T=t==null?void 0:t.imageUrl)==null?void 0:T.value)||"",linkChannel:c==="custom"&&m?m:c}}onLinkEvent(t){}}const v=new O(o,"insarImageViewer");v.setupLifecycle();const E=v.getStyle(),S=e.ref(null),y=e.ref(!1),d=e.reactive(new Set(s.map(l=>l.key))),i=e.reactive({dataType:"rate",year:2025,issue:3}),a=e.reactive({scale:1,posX:0,posY:0}),f=e.ref(!1),b=e.reactive({x:0,y:0}),g=e.computed(()=>i.dataType==="rate"?.04:20),z=e.computed(()=>{var l;return((l=o.conf)==null?void 0:l.data)||[]}),C=e.computed(()=>{const l=z.value.find(t=>Number(t.year)===i.year&&Number(t.issue)===i.issue);return l!=null&&l.src?l.src:E.value.imageUrl||""}),B=e.computed(()=>({backgroundColor:E.value.bgColor})),M=e.computed(()=>({transform:`translate(${a.posX}px, ${a.posY}px) scale(${a.scale})`,transformOrigin:"0 0"})),U={onWheel:l=>{l.preventDefault();const t=l.deltaY>0?.9:1.1,c=Math.max(.1,Math.min(a.scale*t,20)),m=S.value;if(!m)return;const u=m.getBoundingClientRect(),p=l.clientX-u.left,n=l.clientY-u.top;a.posX=p-(p-a.posX)*(c/a.scale),a.posY=n-(n-a.posY)*(c/a.scale),a.scale=c},onMousedown:l=>{l.button===0&&(f.value=!0,b.x=l.clientX-a.posX,b.y=l.clientY-a.posY)},onMousemove:l=>{f.value&&(a.posX=l.clientX-b.x,a.posY=l.clientY-b.y)},onMouseup:()=>{f.value=!1},onMouseleave:()=>{f.value=!1}},F=()=>{k()},k=()=>{a.scale=1,a.posX=0,a.posY=0},h=()=>{},q=()=>{k(),v.publish({dataType:i.dataType,year:i.year,issue:i.issue})},L=l=>{d.has(l)?d.delete(l):d.add(l)},Y=()=>{d.size===s.length?d.clear():s.forEach(l=>d.add(l.key))};return e.onMounted(()=>{v.init()}),e.onUnmounted(()=>{v.cleanup()}),e.watch(()=>o.conf,()=>{},{deep:!0}),(l,t)=>{const c=N.ElOption,m=N.ElSelect,u=N.ElInputNumber,p=N.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"insar-image-viewer",style:e.normalizeStyle(B.value)},[e.createElementVNode("div",{class:"map-toolbar",style:e.normalizeStyle({fontSize:e.unref(E).toolbarFontSize+"px"})},[e.createElementVNode("div",Q,[t[5]||(t[5]=e.createElementVNode("span",{class:"toolbar-icon"},"🛰️",-1)),t[6]||(t[6]=e.createElementVNode("span",{class:"toolbar-title"},"InSAR 形变影像",-1)),t[7]||(t[7]=e.createElementVNode("div",{class:"toolbar-divider"},null,-1)),t[8]||(t[8]=e.createElementVNode("span",{class:"filter-label"},"数据类型",-1)),e.createVNode(m,{modelValue:i.dataType,"onUpdate:modelValue":t[0]||(t[0]=n=>i.dataType=n),size:"small",style:{width:"100px"},onChange:h},{default:e.withCtx(()=>[e.createVNode(c,{label:"形变速率",value:"rate"}),e.createVNode(c,{label:"形变量",value:"amount"})]),_:1},8,["modelValue"]),t[9]||(t[9]=e.createElementVNode("span",{class:"filter-label"},"年度",-1)),e.createVNode(u,{modelValue:i.year,"onUpdate:modelValue":t[1]||(t[1]=n=>i.year=n),size:"small",min:2e3,max:2099,style:{width:"120px"}},null,8,["modelValue"]),t[10]||(t[10]=e.createElementVNode("span",{class:"filter-label"},"期数",-1)),e.createVNode(u,{modelValue:i.issue,"onUpdate:modelValue":t[2]||(t[2]=n=>i.issue=n),size:"small",min:1,max:99,controls:!1,style:{width:"60px"}},null,8,["modelValue"]),e.createVNode(p,{size:"small",type:"primary",onClick:q},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("查询",-1)])]),_:1})])],4),r.mode!=="edit"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["device-drawer",{active:y.value}])},[e.createElementVNode("div",{class:"drawer-bar",onClick:t[3]||(t[3]=n=>y.value=!y.value)},[e.createElementVNode("span",null,e.toDisplayString(y.value?"▼":"▲")+" 监测设备类型切换",1)]),e.withDirectives(e.createElementVNode("div",H,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,n=>e.createElementVNode("div",{key:n.key,class:e.normalizeClass(["drawer-item",{checked:d.has(n.key)}]),onClick:V=>L(n.key)},[e.createElementVNode("span",Z,e.toDisplayString(n.icon),1),e.createElementVNode("span",ee,e.toDisplayString(n.label),1)],10,J)),64)),e.createElementVNode("div",{class:e.normalizeClass(["drawer-item",{checked:d.size===s.length}]),onClick:Y},[...t[11]||(t[11]=[e.createElementVNode("span",{class:"drawer-icon"},"🔘",-1),e.createElementVNode("span",{class:"drawer-label"},"全部显示",-1)])],2)],512),[[e.vShow,y.value]])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",e.mergeProps({class:"map-viewer",ref_key:"viewerRef",ref:S},r.mode!=="edit"?U:{}),[e.createElementVNode("div",{class:"map-canvas",style:e.normalizeStyle(M.value)},[C.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:C.value,class:"sat-img",draggable:"false",onLoad:F},null,40,te)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",le,[e.createElementVNode("div",ae,[e.createElementVNode("span",null,e.toDisplayString(g.value),1),e.createElementVNode("span",null,e.toDisplayString((g.value/2).toFixed(2)),1),t[12]||(t[12]=e.createElementVNode("span",null,"0.00",-1)),e.createElementVNode("span",null,e.toDisplayString((-g.value/2).toFixed(2)),1),e.createElementVNode("span",null,e.toDisplayString((-g.value).toFixed(2)),1)]),t[13]||(t[13]=e.createElementVNode("div",{class:"legend-bar-v"},null,-1))])],16),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),pe=K._export_sfc(me,[["__scopeId","data-v-0d9b7c14"]]);exports.default=pe;
1
+ "use strict";var X=Object.defineProperty,j=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var _=(r,o,s)=>o in r?X(r,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[o]=s,A=(r,o)=>{for(var s in o||(o={}))$.call(o,s)&&_(r,s,o[s]);if(x)for(var s of x(o))G.call(o,s)&&_(r,s,o[s]);return r},D=(r,o)=>j(r,P(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const W=require("./BaseComponent-bzb58Hhs.cjs"),K=require("./index-6QhTSPkL.cjs"),R=require("./ele-lin-icon-Dke_1AmT.cjs"),Q={class:"toolbar-left"},H={class:"drawer-icons"},J=["onClick"],Z={class:"drawer-icon"},ee={class:"drawer-label"},te=["src"],le={class:"map-legend-vertical"},ae={class:"legend-scale"},ne={DEFAULT_ICON:R.DEFAULT_ICON,ACTIVE_ICON:R.ACTIVE_ICON,NAME_CN:"InSAR形变影像",NAME_EN:"InSAR Image Viewer",ORDER:21,PLATFORM:["pc","screen"]},oe={bgColor:{value:"#0b1a31",type:"color",label:"setting.bgColor"},toolbarBg:{value:"#ffffff",type:"color",label:"工具栏背景色"},toolbarFontSize:{value:13,type:"number",label:"工具栏字体大小",min:10,max:20},imageUrl:{value:"",type:"string",label:"默认影像URL"},linkChannel:{value:"satellite",type:"select",label:"联动频道",options:[{label:"遥感卫星",value:"satellite"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},se=[{name:"2025-08-12",fv:"",fvDeviceName:"",object_id:"",src:"",year:2025,issue:3},{name:"2025-07-25",fv:"",fvDeviceName:"",object_id:"",src:"",year:2025,issue:2},{name:"2025-05-30",fv:"",fvDeviceName:"",object_id:"",src:"",year:2025,issue:1}],re=["object_id","name","fv","fvDeviceName","src","year","issue"],ie=["mosaic"],ce={useAlias:!1,multiObject:!0,source:"mosaic"},de=200,ue={DEFAULT:ne,OPTIONS:oe,DATA:se,PARAMS:re,SOURCE:ie,COMMON:ce,ITEMS:de},me=e.defineComponent(D(A({},ue),{__name:"insarImageViewer",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r,s=[{key:"GNSS",label:"GNSS",icon:"📍"},{key:"DEEP",label:"深部位移",icon:"⚓"},{key:"RADAR",label:"雷达",icon:"📡"},{key:"SURFACE",label:"地表",icon:"📐"},{key:"CRACK",label:"裂缝",icon:"🧱"},{key:"FIRE",label:"煤自燃",icon:"🔥"},{key:"WATER",label:"降雨",icon:"💧"},{key:"GROUND",label:"地下水",icon:"🌍"},{key:"STRESS",label:"应力",icon:"📊"},{key:"VIB",label:"爆破震动",icon:"💥"},{key:"SAT",label:"遥感监测",icon:"🛸"}];class O extends W.BaseComponent{extractStyles(){var u,p,n,V,w,I,T;const t=(u=this.props.conf)==null?void 0:u.options,c=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"satellite",m=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((V=t==null?void 0:t.bgColor)==null?void 0:V.value)||"#0b1a31",toolbarBg:((w=t==null?void 0:t.toolbarBg)==null?void 0:w.value)||"#ffffff",toolbarFontSize:((I=t==null?void 0:t.toolbarFontSize)==null?void 0:I.value)||13,imageUrl:((T=t==null?void 0:t.imageUrl)==null?void 0:T.value)||"",linkChannel:c==="custom"&&m?m:c}}onLinkEvent(t){}}const v=new O(o,"insarImageViewer");v.setupLifecycle();const E=v.getStyle(),S=e.ref(null),y=e.ref(!1),d=e.reactive(new Set(s.map(l=>l.key))),i=e.reactive({dataType:"rate",year:2025,issue:3}),a=e.reactive({scale:1,posX:0,posY:0}),f=e.ref(!1),b=e.reactive({x:0,y:0}),g=e.computed(()=>i.dataType==="rate"?.04:20),z=e.computed(()=>{var l;return((l=o.conf)==null?void 0:l.data)||[]}),C=e.computed(()=>{const l=z.value.find(t=>Number(t.year)===i.year&&Number(t.issue)===i.issue);return l!=null&&l.src?l.src:E.value.imageUrl||""}),B=e.computed(()=>({backgroundColor:E.value.bgColor})),M=e.computed(()=>({transform:`translate(${a.posX}px, ${a.posY}px) scale(${a.scale})`,transformOrigin:"0 0"})),U={onWheel:l=>{l.preventDefault();const t=l.deltaY>0?.9:1.1,c=Math.max(.1,Math.min(a.scale*t,20)),m=S.value;if(!m)return;const u=m.getBoundingClientRect(),p=l.clientX-u.left,n=l.clientY-u.top;a.posX=p-(p-a.posX)*(c/a.scale),a.posY=n-(n-a.posY)*(c/a.scale),a.scale=c},onMousedown:l=>{l.button===0&&(f.value=!0,b.x=l.clientX-a.posX,b.y=l.clientY-a.posY)},onMousemove:l=>{f.value&&(a.posX=l.clientX-b.x,a.posY=l.clientY-b.y)},onMouseup:()=>{f.value=!1},onMouseleave:()=>{f.value=!1}},F=()=>{k()},k=()=>{a.scale=1,a.posX=0,a.posY=0},h=()=>{},q=()=>{k(),v.publish({dataType:i.dataType,year:i.year,issue:i.issue})},L=l=>{d.has(l)?d.delete(l):d.add(l)},Y=()=>{d.size===s.length?d.clear():s.forEach(l=>d.add(l.key))};return e.onMounted(()=>{v.init()}),e.onUnmounted(()=>{v.cleanup()}),e.watch(()=>o.conf,()=>{},{deep:!0}),(l,t)=>{const c=N.ElOption,m=N.ElSelect,u=N.ElInputNumber,p=N.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"insar-image-viewer",style:e.normalizeStyle(B.value)},[e.createElementVNode("div",{class:"map-toolbar",style:e.normalizeStyle({fontSize:e.unref(E).toolbarFontSize+"px"})},[e.createElementVNode("div",Q,[t[5]||(t[5]=e.createElementVNode("span",{class:"toolbar-icon"},"🛰️",-1)),t[6]||(t[6]=e.createElementVNode("span",{class:"toolbar-title"},"InSAR 形变影像",-1)),t[7]||(t[7]=e.createElementVNode("div",{class:"toolbar-divider"},null,-1)),t[8]||(t[8]=e.createElementVNode("span",{class:"filter-label"},"数据类型",-1)),e.createVNode(m,{modelValue:i.dataType,"onUpdate:modelValue":t[0]||(t[0]=n=>i.dataType=n),size:"small",style:{width:"100px"},onChange:h},{default:e.withCtx(()=>[e.createVNode(c,{label:"形变速率",value:"rate"}),e.createVNode(c,{label:"形变量",value:"amount"})]),_:1},8,["modelValue"]),t[9]||(t[9]=e.createElementVNode("span",{class:"filter-label"},"年度",-1)),e.createVNode(u,{modelValue:i.year,"onUpdate:modelValue":t[1]||(t[1]=n=>i.year=n),size:"small",min:2e3,max:2099,style:{width:"120px"}},null,8,["modelValue"]),t[10]||(t[10]=e.createElementVNode("span",{class:"filter-label"},"期数",-1)),e.createVNode(u,{modelValue:i.issue,"onUpdate:modelValue":t[2]||(t[2]=n=>i.issue=n),size:"small",min:1,max:99,controls:!1,style:{width:"60px"}},null,8,["modelValue"]),e.createVNode(p,{size:"small",type:"primary",onClick:q},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("查询",-1)])]),_:1})])],4),r.mode!=="edit"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["device-drawer",{active:y.value}])},[e.createElementVNode("div",{class:"drawer-bar",onClick:t[3]||(t[3]=n=>y.value=!y.value)},[e.createElementVNode("span",null,e.toDisplayString(y.value?"▼":"▲")+" 监测设备类型切换",1)]),e.withDirectives(e.createElementVNode("div",H,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,n=>e.createElementVNode("div",{key:n.key,class:e.normalizeClass(["drawer-item",{checked:d.has(n.key)}]),onClick:V=>L(n.key)},[e.createElementVNode("span",Z,e.toDisplayString(n.icon),1),e.createElementVNode("span",ee,e.toDisplayString(n.label),1)],10,J)),64)),e.createElementVNode("div",{class:e.normalizeClass(["drawer-item",{checked:d.size===s.length}]),onClick:Y},[...t[11]||(t[11]=[e.createElementVNode("span",{class:"drawer-icon"},"🔘",-1),e.createElementVNode("span",{class:"drawer-label"},"全部显示",-1)])],2)],512),[[e.vShow,y.value]])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",e.mergeProps({class:"map-viewer",ref_key:"viewerRef",ref:S},r.mode!=="edit"?U:{}),[e.createElementVNode("div",{class:"map-canvas",style:e.normalizeStyle(M.value)},[C.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:C.value,class:"sat-img",draggable:"false",onLoad:F},null,40,te)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",le,[e.createElementVNode("div",ae,[e.createElementVNode("span",null,e.toDisplayString(g.value),1),e.createElementVNode("span",null,e.toDisplayString((g.value/2).toFixed(2)),1),t[12]||(t[12]=e.createElementVNode("span",null,"0.00",-1)),e.createElementVNode("span",null,e.toDisplayString((-g.value/2).toFixed(2)),1),e.createElementVNode("span",null,e.toDisplayString((-g.value).toFixed(2)),1)]),t[13]||(t[13]=e.createElementVNode("div",{class:"legend-bar-v"},null,-1))])],16),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),pe=K._export_sfc(me,[["__scopeId","data-v-0d9b7c14"]]);exports.default=pe;
@@ -18,8 +18,8 @@ import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as ie, ref as A, reactive as w, computed as g, onMounted as re, onUnmounted as ce, watch as ue, openBlock as x, createElementBlock as E, normalizeStyle as I, createElementVNode as t, unref as de, createVNode as f, withCtx as B, createTextVNode as me, normalizeClass as N, toDisplayString as v, withDirectives as pe, Fragment as ve, renderList as fe, vShow as ye, createCommentVNode as X, mergeProps as be, renderSlot as ge } from "vue";
20
20
  import "html2canvas";
21
- import { B as Se } from "./BaseComponent-DtvXBQYf.js";
22
- import { _ as ke } from "./index-BueGUjcH.js";
21
+ import { B as Se } from "./BaseComponent-Dwhb9Mde.js";
22
+ import { _ as ke } from "./index-YNdVib_6.js";
23
23
  import { A as Ce, D as we } from "./ele-lin-icon-Dax-ZiWV.js";
24
24
  const xe = { class: "toolbar-left" }, Ee = { class: "drawer-icons" }, Te = ["onClick"], _e = { class: "drawer-icon" }, Ae = { class: "drawer-label" }, Ie = ["src"], Ne = { class: "map-legend-vertical" }, Ve = { class: "legend-scale" }, Re = {
25
25
  DEFAULT_ICON: we,
@@ -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-B5ivgb3E.cjs"),G=require("./index-DYr57ceS.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-bzb58Hhs.cjs"),G=require("./index-6QhTSPkL.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;
@@ -11,8 +11,8 @@ var Ae = (e, i, t) => i in e ? Ke(e, i, { enumerable: !0, configurable: !0, writ
11
11
  return e;
12
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-DtvXBQYf.js";
15
- import { J as ci, d as pe, K as Te, G as di, _ as hi } from "./index-BueGUjcH.js";
14
+ import { B as li, u as fi, p as ai } from "./BaseComponent-Dwhb9Mde.js";
15
+ import { J as ci, d as pe, K as Te, G as di, _ as hi } from "./index-YNdVib_6.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
18
  import { c as wi, d as vi, i as Ni } from "./install-FXyLnlJE.js";
@@ -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-DtvXBQYf.js";
26
- import { _ as we } from "./index-BueGUjcH.js";
25
+ import { B as ge } from "./BaseComponent-Dwhb9Mde.js";
26
+ import { _ as we } from "./index-YNdVib_6.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-B5ivgb3E.cjs"),X=require("./index-DYr57ceS.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-bzb58Hhs.cjs"),X=require("./index-6QhTSPkL.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;
@@ -28,10 +28,10 @@ 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-DtvXBQYf.js";
32
- import { P as We, Q as He, _ as qe } from "./index-BueGUjcH.js";
31
+ import { B as Pe } from "./BaseComponent-Dwhb9Mde.js";
32
+ import { P as We, Q as He, _ as qe } from "./index-YNdVib_6.js";
33
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-CGdqpp4N.js";
34
+ import { F as $e, M as Je } from "./MonitoringMap-DB3R5nAJ.js";
35
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) {
@@ -1 +1 @@
1
- "use strict";var De=Object.defineProperty,xe=Object.defineProperties;var Ae=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var je=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var ge=(s,c,t)=>c in s?De(s,c,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[c]=t,M=(s,c)=>{for(var t in c||(c={}))je.call(c,t)&&ge(s,t,c[t]);if(fe)for(var t of fe(c))Te.call(c,t)&&ge(s,t,c[t]);return s},D=(s,c)=>xe(s,Ae(c));var O=(s,c,t)=>new Promise((_,w)=>{var m=i=>{try{b(t.next(i))}catch(h){w(h)}},k=i=>{try{b(t.throw(i))}catch(h){w(h)}},b=i=>i.done?_(i.value):Promise.resolve(i.value).then(m,k);b((t=t.apply(s,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const Ee=require("./BaseComponent-B5ivgb3E.cjs"),U=require("./index-DYr57ceS.cjs"),I=require("./mockData-Cj71Qk7-.cjs"),be=require("./MonitoringMap-H5AOAU8m.cjs"),ye=require("./ele-evn-icon-DUQMS-9T.cjs"),z=Math.PI/180,me=6378137,R=1/298.257223563,r=2*R-R*R,L=r/(1-r);function Oe(s,c,t,_=1){const w=_,m=s*z,k=c*z,b=t*z,i=Math.sin(m),h=Math.cos(m),f=Math.tan(m),x=me/Math.sqrt(1-r*i*i),F=f*f,N=L*h*h,n=h*(k-b),A=me*((1-r/4-3*r*r/64-5*r*r*r/256)*m-(3*r/8+3*r*r/32+45*r*r*r/1024)*Math.sin(2*m)+(15*r*r/256+45*r*r*r/1024)*Math.sin(4*m)-35*r*r*r/3072*Math.sin(6*m)),T=w*x*(n+(1-F+N)*n*n*n/6+(5-18*F+F*F+72*N-58*L)*n*n*n*n*n/120)+5e5,j=w*(A+x*f*(n*n/2+(5-F+9*N+4*N*N)*n*n*n*n/24+(61-58*F+F*F+600*N-330*L)*n*n*n*n*n*n/720));return{e:Math.round(T*100)/100,n:Math.round(j*100)/100}}function Ie(s,c,t){return Oe(s,c,t,1)}const ze={DEFAULT_ICON:ye.DEFAULT_ICON,ACTIVE_ICON:ye.ACTIVE_ICON,NAME_CN:"滑坡监测地图",NAME_EN:"Landslide Map",ORDER:1,PLATFORM:["pc","screen"]},Re={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},textColor:{value:"#333333",type:"color",label:"文字颜色"},fontFamily:{value:"default",type:"select",label:"字体",options:[{label:"默认",value:"default"},{label:"微软雅黑",value:"Microsoft YaHei"},{label:"思源黑体",value:"Source Han Sans SC"},{label:"宋体",value:"SimSun"},{label:"Arial",value:"Arial"},{label:"Helvetica",value:"Helvetica Neue"}]},baseFontSize:{value:12,type:"number",label:"基础字号",min:10,max:24,step:1},filterFontSize:{value:12,type:"number",label:"筛选栏字号",min:10,max:20,step:1},labelFontSize:{value:11,type:"number",label:"地图标签字号",min:8,max:18,step:1},labelColor:{value:"#ffffff",type:"color",label:"地图标签颜色"},toggleFontSize:{value:12,type:"number",label:"底部切换字号",min:10,max:18,step:1},mapStyle:{value:"dark",type:"select",label:"地图风格",options:[{label:"深色",value:"dark"},{label:"浅色",value:"light"},{label:"卫星",value:"satellite"}]},lng:{value:119.3838,type:"number",label:"中心经度",step:.001},lat:{value:45.3738,type:"number",label:"中心纬度",step:.001},zoom:{value:15,type:"number",label:"缩放级别",min:1,max:18},warningAreaColor:{value:"#ff6600",type:"color",label:"预警区域描边色"},warningAreaFillOpacity:{value:.08,type:"number",label:"预警区填充透明度",min:0,max:1,step:.05},showFilterBar:{value:!0,type:"checkbox",label:"显示筛选栏"},showModelToggle:{value:!0,type:"checkbox",label:"显示地质模型按钮"},showDeviceToggle:{value:!0,type:"checkbox",label:"显示设备类型切换"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}},g3dFileUrl:{value:"/mixdesign/models/geology.g3d",type:"string",label:"地质模型文件(.g3d)"},dtmModelUrl:{value:"",type:"string",label:"DTM模型地址"},uavTileUrl:{value:"",type:"string",label:"无人机瓦片地址"},projCentralMeridian:{value:120,type:"number",label:"投影中央经线(°)"}},Le=[{name:"",object_id:"",object_alias:"",nameFv:"",category:"GNSS",lngFv:"",latFv:"",lng:0,lat:0,elevation:0,area:"",line:"",fv1:"",label1:"",unit1:"",fv2:"",label2:"",unit2:"",fv3:"",label3:"",unit3:"",fv1_val:"",fv2_val:"",fv3_val:"",radarE:"",radarN:"",radarRL:"",radarRR:"",radarAV:"",radarVD:""}],g=["GNSS","crack","deepDisplacement","stress","rainfall","groundwater","excavator","truck","person"],Se=["GNSS","crack","deepDisplacement","stress","rainfall","groundwater"],Ue=["name","object_id",{key:"object_alias",label:"对象别名(支持通配符 *)",type:"string"},{key:"nameFv",label:"名称字段(FV)",type:"string"},{key:"category",type:"select",label:"设备类别",options:[{label:"GNSS 监测",value:"GNSS"},{label:"裂缝/挡墙",value:"crack"},{label:"雷达监测",value:"radar"},{label:"深部位移",value:"deepDisplacement"},{label:"应力监测",value:"stress"},{label:"降雨监测",value:"rainfall"},{label:"地下水位",value:"groundwater"},{label:"挖掘设备",value:"excavator"},{label:"运输车辆",value:"truck"},{label:"人员",value:"person"}]},{key:"lngFv",label:"经度字段(FV)",type:"string",dependent:"category",dependentValue:g},{key:"latFv",label:"纬度字段(FV)",type:"string",dependent:"category",dependentValue:g},{key:"lng",label:"经度(静态)",type:"number",dependent:"category",dependentValue:g},{key:"lat",label:"纬度(静态)",type:"number",dependent:"category",dependentValue:g},{key:"elevation",label:"高程(静态)",type:"number",dependent:"category",dependentValue:g},{key:"area",label:"所属区域",type:"string",dependent:"category",dependentValue:Se},{key:"line",label:"line",type:"string",dependent:"category",dependentValue:Se},{key:"gnssElevFv",label:"高程字段(FV)",type:"string",dependent:"category",dependentValue:"GNSS"},{key:"gnssDxFv",label:"Dx X偏移量(FV)",type:"string",dependent:"category",dependentValue:"GNSS"},{key:"gnssDyFv",label:"Dy Y偏移量(FV)",type:"string",dependent:"category",dependentValue:"GNSS"},{key:"gnssDhFv",label:"Dh H偏移量(FV)",type:"string",dependent:"category",dependentValue:"GNSS"},{key:"fv1",label:"显示字段1(FV)",type:"string",dependent:"category",dependentValue:g},{key:"label1",label:"字段1标签",type:"string",dependent:"category",dependentValue:g},{key:"unit1",label:"字段1单位",type:"string",dependent:"category",dependentValue:g},{key:"fv2",label:"显示字段2(FV)",type:"string",dependent:"category",dependentValue:g},{key:"label2",label:"字段2标签",type:"string",dependent:"category",dependentValue:g},{key:"unit2",label:"字段2单位",type:"string",dependent:"category",dependentValue:g},{key:"fv3",label:"显示字段3(FV)",type:"string",dependent:"category",dependentValue:g},{key:"label3",label:"字段3标签",type:"string",dependent:"category",dependentValue:g},{key:"unit3",label:"字段3单位",type:"string",dependent:"category",dependentValue:g},{key:"radarE",label:"E坐标字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarN",label:"N坐标字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarRL",label:"高程RL字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarRR",label:"相对位移字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarAV",label:"平均速度字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarVD",label:"速度变化字段(FV)",type:"string",dependent:"category",dependentValue:"radar"}],Be=["mosaic","statistics","calculate"],Ge={useAlias:!0,multiObject:!0,source:"mosaic"},Pe={DEFAULT:ze,OPTIONS:Re,DATA:Le,PARAMS:Ue,SOURCE:Be,COMMON:Ge},qe=o.defineComponent(D(M({},Pe),{__name:"landslideMap",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const c=o.ref(),t=s,_=new Set;function w(){return O(this,null,function*(){var d;yield U.ensureAliasMappingLoaded();const e=(d=t.conf)==null?void 0:d.data;if(!Array.isArray(e))return;const a=[];e.forEach(u=>{const p=u.object_alias||"";if(!p.includes("*"))return;U.getObjectIdsByAliasPattern({object_alias:p,alias:p,object_id:"",objectid:""},t.uid).forEach(S=>{_.has(S)||(_.add(S),a.push(D(M({},u),{object_id:S,object_alias:"",name:S,lng:0,lat:0,fv1_val:"",fv2_val:"",fv3_val:"",_fromWildcard:!0})))})}),a.length>0&&e.push(...a)})}function m(e,a,d,u){var S,V,C;if(_.has(e))return;const p=d.find(v=>{const y=v.object_alias||"";return y.includes("*")?new RegExp("^"+y.replace(/\*/g,".*")+"$","i").test(e):!1});if(!p)return;_.add(e);const l=D(M({},p),{object_id:e,object_alias:"",name:e,lng:0,lat:0,fv1_val:"",fv2_val:"",fv3_val:"",_fromWildcard:!0});if(l.lngFv){const v=u.extractDataValue(a,l.lngFv);v!=null&&!isNaN(Number(v))&&(l.lng=Number(v))}if(l.latFv){const v=u.extractDataValue(a,l.latFv);v!=null&&!isNaN(Number(v))&&(l.lat=Number(v))}l.fv1&&(l.fv1_val=(S=u.extractDataValue(a,l.fv1))!=null?S:""),l.fv2&&(l.fv2_val=(V=u.extractDataValue(a,l.fv2))!=null?V:""),l.fv3&&(l.fv3_val=(C=u.extractDataValue(a,l.fv3))!=null?C:""),d.push(l)}class k extends Ee.BaseComponent{setSocketData(a){var p;if(!a)return;const{data:d}=this.props.conf;if(!d||!Array.isArray(d))return;const u=((p=a.data)==null?void 0:p.object_id)||a.object_id;u&&(d.forEach(l=>{var V,C,v;if(l.object_id===u){if(l.lngFv){const y=this.extractDataValue(a,l.lngFv);y!=null&&!isNaN(Number(y))&&(l.lng=Number(y))}if(l.latFv){const y=this.extractDataValue(a,l.latFv);y!=null&&!isNaN(Number(y))&&(l.lat=Number(y))}l.fv1&&(l.fv1_val=(V=this.extractDataValue(a,l.fv1))!=null?V:""),l.fv2&&(l.fv2_val=(C=this.extractDataValue(a,l.fv2))!=null?C:""),l.fv3&&(l.fv3_val=(v=this.extractDataValue(a,l.fv3))!=null?v:"")}}),m(u,a,d,this))}extractStyles(){var d,u,p,l,S,V,C,v,y,E,B,G,P,q,W,H,X,Y,$,J,K,Q,Z,ee,ae,le,te,ne,oe,re,ie,ce,se,ue,de,pe,ve;const a=((d=this.props.conf)==null?void 0:d.options)||{};return{bgColor:((u=a.bgColor)==null?void 0:u.value)||"#ffffff",accentColor:((p=a.accentColor)==null?void 0:p.value)||"#409eff",textColor:((l=a.textColor)==null?void 0:l.value)||"#333333",fontFamily:((S=a.fontFamily)==null?void 0:S.value)||"default",baseFontSize:(C=(V=a.baseFontSize)==null?void 0:V.value)!=null?C:12,filterFontSize:(y=(v=a.filterFontSize)==null?void 0:v.value)!=null?y:12,labelFontSize:(B=(E=a.labelFontSize)==null?void 0:E.value)!=null?B:11,labelColor:((G=a.labelColor)==null?void 0:G.value)||"#ffffff",toggleFontSize:(q=(P=a.toggleFontSize)==null?void 0:P.value)!=null?q:12,mapStyle:((W=a.mapStyle)==null?void 0:W.value)||"dark",lng:(X=(H=a.lng)==null?void 0:H.value)!=null?X:119.3838,lat:($=(Y=a.lat)==null?void 0:Y.value)!=null?$:45.3738,zoom:(K=(J=a.zoom)==null?void 0:J.value)!=null?K:15,warningAreaColor:((Q=a.warningAreaColor)==null?void 0:Q.value)||"#ff6600",warningAreaFillOpacity:(ee=(Z=a.warningAreaFillOpacity)==null?void 0:Z.value)!=null?ee:.08,showFilterBar:(le=(ae=a.showFilterBar)==null?void 0:ae.value)!=null?le:!0,showModelToggle:(ne=(te=a.showModelToggle)==null?void 0:te.value)!=null?ne:!0,showDeviceToggle:(re=(oe=a.showDeviceToggle)==null?void 0:oe.value)!=null?re:!0,linkChannel:((ie=a.linkChannel)==null?void 0:ie.value)||"landslide",customChannel:((ce=a.customChannel)==null?void 0:ce.value)||"",g3dFileUrl:((se=a.g3dFileUrl)==null?void 0:se.value)||"",dtmModelUrl:((ue=a.dtmModelUrl)==null?void 0:ue.value)||"",uavTileUrl:((de=a.uavTileUrl)==null?void 0:de.value)||"",projCentralMeridian:(ve=(pe=a.projCentralMeridian)==null?void 0:pe.value)!=null?ve:120}}getDefaultData(){return[]}}const b=new k(t,"landslideMap"),i=o.computed(()=>b.extractStyles()),h=o.computed(()=>{const e=i.value,a=e.fontFamily==="default"?"inherit":e.fontFamily;return{background:e.bgColor,color:e.textColor,fontFamily:a,fontSize:e.baseFontSize+"px","--lw-accent":e.accentColor,"--lw-text":e.textColor,"--lw-font":a,"--lw-base-size":e.baseFontSize+"px","--lw-filter-size":e.filterFontSize+"px","--lw-label-size":e.labelFontSize+"px","--lw-label-color":e.labelColor,"--lw-toggle-size":e.toggleFontSize+"px"}}),f=o.reactive(I.getMockPageData());o.watch(i,e=>{f.mapScene.tileStyle=e.mapStyle,f.mapScene.centerLng=e.lng,f.mapScene.centerLat=e.lat,f.mapScene.zoom=e.zoom},{immediate:!0});const x=o.computed(()=>I.REGION_OPTIONS),F=o.computed(()=>I.LINE_OPTIONS),N=new Set(["GNSS","crack","radar","deepDisplacement","stress","rainfall","groundwater"]),n=new Set(["person","excavator","truck","drone"]),A=o.computed(()=>{var a;const e=(a=t.conf)==null?void 0:a.data;return Array.isArray(e)?e:[]});function T(e,a,d){if(!e||!a)return{modelE:0,modelN:0,modelRL:0};const u=i.value.projCentralMeridian||120,p=Ie(e,a,u);return{modelE:p.e,modelN:p.n,modelRL:d||0}}const j=o.computed(()=>A.value.filter(e=>N.has(e.category)&&!(e.object_alias&&e.object_alias.includes("*"))).map(e=>D(M({deviceId:e.object_id||e.name,deviceName:e.name,deviceType:e.category,regionId:e.area||"",lineId:e.line||"",status:"normal",x:0,y:0,lng:Number(e.lng)||0,lat:Number(e.lat)||0,elevation:Number(e.gnssElev_val)||Number(e.elevation)||0},T(Number(e.lat)||0,Number(e.lng)||0,Number(e.gnssElev_val)||Number(e.elevation)||0)),{warningLevel:0,lastTime:"",displayFields:[e.label1&&e.fv1?{label:e.label1,value:e.fv1_val||"--",unit:e.unit1||""}:null,e.label2&&e.fv2?{label:e.label2,value:e.fv2_val||"--",unit:e.unit2||""}:null,e.label3&&e.fv3?{label:e.label3,value:e.fv3_val||"--",unit:e.unit3||""}:null].filter(Boolean)}))),Fe=o.computed(()=>A.value.filter(e=>n.has(e.category)&&!(e.object_alias&&e.object_alias.includes("*"))).map(e=>({objectId:e.object_id||e.name,objectName:e.name,objectType:e.category,x:0,y:0,lng:Number(e.lng)||0,lat:Number(e.lat)||0,status:"normal",lastTime:""}))),he=o.computed(()=>j.value.map(e=>e.deviceName)),_e=o.computed(()=>{const e=f.filters;return j.value.filter(a=>!(e.regionId&&a.regionId!==e.regionId||e.lineId&&a.lineId!==e.lineId||e.deviceId&&a.deviceName!==e.deviceId))});function Ne(e){Object.assign(f.filters,e),b.publish({type:"filter-change",filters:e})}function Ve(){b.publish({type:"query",filters:f.filters})}function Ce(e){b.publish({type:"select-device",device:e})}function we(e){b.publish({type:"select-object",object:e})}function ke(){}function Me(){var e;(e=c.value)==null||e.startSection()}return o.onMounted(()=>O(null,null,function*(){yield w(),b.init()})),o.onBeforeUnmount(()=>b.cleanup()),(e,a)=>(o.openBlock(),o.createElementBlock("div",{class:"lsm-wrapper",style:o.normalizeStyle(h.value)},[i.value.showFilterBar?(o.openBlock(),o.createBlock(be.FilterBar,{key:0,filters:f.filters,regions:x.value,lines:F.value,"device-names":he.value,"onUpdate:filters":Ne,onQuery:Ve,onStartSection:Me},null,8,["filters","regions","lines","device-names"])):o.createCommentVNode("",!0),o.createVNode(be.MonitoringMap,{ref_key:"monitoringMapRef",ref:c,"map-scene":f.mapScene,devices:_e.value,"mobile-objects":Fe.value,"affected-areas":f.affectedAreas,"current-warning":null,"warning-area-color":i.value.warningAreaColor,"warning-area-fill-opacity":i.value.warningAreaFillOpacity,"show-model-toggle":i.value.showModelToggle,"show-device-toggle":i.value.showDeviceToggle,"g3d-file-url":i.value.g3dFileUrl,"dtm-model-url":i.value.dtmModelUrl,"uav-tile-url":i.value.uavTileUrl,onSelectDevice:Ce,onSelectObject:we,onToggleModel:ke},null,8,["map-scene","devices","mobile-objects","affected-areas","warning-area-color","warning-area-fill-opacity","show-model-toggle","show-device-toggle","g3d-file-url","dtm-model-url","uav-tile-url"]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),We=U._export_sfc(qe,[["__scopeId","data-v-8fb1dd7a"]]);exports.default=We;
1
+ "use strict";var De=Object.defineProperty,xe=Object.defineProperties;var Ae=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var je=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var ge=(s,c,t)=>c in s?De(s,c,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[c]=t,M=(s,c)=>{for(var t in c||(c={}))je.call(c,t)&&ge(s,t,c[t]);if(fe)for(var t of fe(c))Te.call(c,t)&&ge(s,t,c[t]);return s},D=(s,c)=>xe(s,Ae(c));var O=(s,c,t)=>new Promise((_,w)=>{var m=i=>{try{b(t.next(i))}catch(h){w(h)}},k=i=>{try{b(t.throw(i))}catch(h){w(h)}},b=i=>i.done?_(i.value):Promise.resolve(i.value).then(m,k);b((t=t.apply(s,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const Ee=require("./BaseComponent-bzb58Hhs.cjs"),U=require("./index-6QhTSPkL.cjs"),I=require("./mockData-Cj71Qk7-.cjs"),be=require("./MonitoringMap-CBnv001f.cjs"),ye=require("./ele-evn-icon-DUQMS-9T.cjs"),z=Math.PI/180,me=6378137,R=1/298.257223563,r=2*R-R*R,L=r/(1-r);function Oe(s,c,t,_=1){const w=_,m=s*z,k=c*z,b=t*z,i=Math.sin(m),h=Math.cos(m),f=Math.tan(m),x=me/Math.sqrt(1-r*i*i),F=f*f,N=L*h*h,n=h*(k-b),A=me*((1-r/4-3*r*r/64-5*r*r*r/256)*m-(3*r/8+3*r*r/32+45*r*r*r/1024)*Math.sin(2*m)+(15*r*r/256+45*r*r*r/1024)*Math.sin(4*m)-35*r*r*r/3072*Math.sin(6*m)),T=w*x*(n+(1-F+N)*n*n*n/6+(5-18*F+F*F+72*N-58*L)*n*n*n*n*n/120)+5e5,j=w*(A+x*f*(n*n/2+(5-F+9*N+4*N*N)*n*n*n*n/24+(61-58*F+F*F+600*N-330*L)*n*n*n*n*n*n/720));return{e:Math.round(T*100)/100,n:Math.round(j*100)/100}}function Ie(s,c,t){return Oe(s,c,t,1)}const ze={DEFAULT_ICON:ye.DEFAULT_ICON,ACTIVE_ICON:ye.ACTIVE_ICON,NAME_CN:"滑坡监测地图",NAME_EN:"Landslide Map",ORDER:1,PLATFORM:["pc","screen"]},Re={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},textColor:{value:"#333333",type:"color",label:"文字颜色"},fontFamily:{value:"default",type:"select",label:"字体",options:[{label:"默认",value:"default"},{label:"微软雅黑",value:"Microsoft YaHei"},{label:"思源黑体",value:"Source Han Sans SC"},{label:"宋体",value:"SimSun"},{label:"Arial",value:"Arial"},{label:"Helvetica",value:"Helvetica Neue"}]},baseFontSize:{value:12,type:"number",label:"基础字号",min:10,max:24,step:1},filterFontSize:{value:12,type:"number",label:"筛选栏字号",min:10,max:20,step:1},labelFontSize:{value:11,type:"number",label:"地图标签字号",min:8,max:18,step:1},labelColor:{value:"#ffffff",type:"color",label:"地图标签颜色"},toggleFontSize:{value:12,type:"number",label:"底部切换字号",min:10,max:18,step:1},mapStyle:{value:"dark",type:"select",label:"地图风格",options:[{label:"深色",value:"dark"},{label:"浅色",value:"light"},{label:"卫星",value:"satellite"}]},lng:{value:119.3838,type:"number",label:"中心经度",step:.001},lat:{value:45.3738,type:"number",label:"中心纬度",step:.001},zoom:{value:15,type:"number",label:"缩放级别",min:1,max:18},warningAreaColor:{value:"#ff6600",type:"color",label:"预警区域描边色"},warningAreaFillOpacity:{value:.08,type:"number",label:"预警区填充透明度",min:0,max:1,step:.05},showFilterBar:{value:!0,type:"checkbox",label:"显示筛选栏"},showModelToggle:{value:!0,type:"checkbox",label:"显示地质模型按钮"},showDeviceToggle:{value:!0,type:"checkbox",label:"显示设备类型切换"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}},g3dFileUrl:{value:"/mixdesign/models/geology.g3d",type:"string",label:"地质模型文件(.g3d)"},dtmModelUrl:{value:"",type:"string",label:"DTM模型地址"},uavTileUrl:{value:"",type:"string",label:"无人机瓦片地址"},projCentralMeridian:{value:120,type:"number",label:"投影中央经线(°)"}},Le=[{name:"",object_id:"",object_alias:"",nameFv:"",category:"GNSS",lngFv:"",latFv:"",lng:0,lat:0,elevation:0,area:"",line:"",fv1:"",label1:"",unit1:"",fv2:"",label2:"",unit2:"",fv3:"",label3:"",unit3:"",fv1_val:"",fv2_val:"",fv3_val:"",radarE:"",radarN:"",radarRL:"",radarRR:"",radarAV:"",radarVD:""}],g=["GNSS","crack","deepDisplacement","stress","rainfall","groundwater","excavator","truck","person"],Se=["GNSS","crack","deepDisplacement","stress","rainfall","groundwater"],Ue=["name","object_id",{key:"object_alias",label:"对象别名(支持通配符 *)",type:"string"},{key:"nameFv",label:"名称字段(FV)",type:"string"},{key:"category",type:"select",label:"设备类别",options:[{label:"GNSS 监测",value:"GNSS"},{label:"裂缝/挡墙",value:"crack"},{label:"雷达监测",value:"radar"},{label:"深部位移",value:"deepDisplacement"},{label:"应力监测",value:"stress"},{label:"降雨监测",value:"rainfall"},{label:"地下水位",value:"groundwater"},{label:"挖掘设备",value:"excavator"},{label:"运输车辆",value:"truck"},{label:"人员",value:"person"}]},{key:"lngFv",label:"经度字段(FV)",type:"string",dependent:"category",dependentValue:g},{key:"latFv",label:"纬度字段(FV)",type:"string",dependent:"category",dependentValue:g},{key:"lng",label:"经度(静态)",type:"number",dependent:"category",dependentValue:g},{key:"lat",label:"纬度(静态)",type:"number",dependent:"category",dependentValue:g},{key:"elevation",label:"高程(静态)",type:"number",dependent:"category",dependentValue:g},{key:"area",label:"所属区域",type:"string",dependent:"category",dependentValue:Se},{key:"line",label:"line",type:"string",dependent:"category",dependentValue:Se},{key:"gnssElevFv",label:"高程字段(FV)",type:"string",dependent:"category",dependentValue:"GNSS"},{key:"gnssDxFv",label:"Dx X偏移量(FV)",type:"string",dependent:"category",dependentValue:"GNSS"},{key:"gnssDyFv",label:"Dy Y偏移量(FV)",type:"string",dependent:"category",dependentValue:"GNSS"},{key:"gnssDhFv",label:"Dh H偏移量(FV)",type:"string",dependent:"category",dependentValue:"GNSS"},{key:"fv1",label:"显示字段1(FV)",type:"string",dependent:"category",dependentValue:g},{key:"label1",label:"字段1标签",type:"string",dependent:"category",dependentValue:g},{key:"unit1",label:"字段1单位",type:"string",dependent:"category",dependentValue:g},{key:"fv2",label:"显示字段2(FV)",type:"string",dependent:"category",dependentValue:g},{key:"label2",label:"字段2标签",type:"string",dependent:"category",dependentValue:g},{key:"unit2",label:"字段2单位",type:"string",dependent:"category",dependentValue:g},{key:"fv3",label:"显示字段3(FV)",type:"string",dependent:"category",dependentValue:g},{key:"label3",label:"字段3标签",type:"string",dependent:"category",dependentValue:g},{key:"unit3",label:"字段3单位",type:"string",dependent:"category",dependentValue:g},{key:"radarE",label:"E坐标字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarN",label:"N坐标字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarRL",label:"高程RL字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarRR",label:"相对位移字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarAV",label:"平均速度字段(FV)",type:"string",dependent:"category",dependentValue:"radar"},{key:"radarVD",label:"速度变化字段(FV)",type:"string",dependent:"category",dependentValue:"radar"}],Be=["mosaic","statistics","calculate"],Ge={useAlias:!0,multiObject:!0,source:"mosaic"},Pe={DEFAULT:ze,OPTIONS:Re,DATA:Le,PARAMS:Ue,SOURCE:Be,COMMON:Ge},qe=o.defineComponent(D(M({},Pe),{__name:"landslideMap",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const c=o.ref(),t=s,_=new Set;function w(){return O(this,null,function*(){var d;yield U.ensureAliasMappingLoaded();const e=(d=t.conf)==null?void 0:d.data;if(!Array.isArray(e))return;const a=[];e.forEach(u=>{const p=u.object_alias||"";if(!p.includes("*"))return;U.getObjectIdsByAliasPattern({object_alias:p,alias:p,object_id:"",objectid:""},t.uid).forEach(S=>{_.has(S)||(_.add(S),a.push(D(M({},u),{object_id:S,object_alias:"",name:S,lng:0,lat:0,fv1_val:"",fv2_val:"",fv3_val:"",_fromWildcard:!0})))})}),a.length>0&&e.push(...a)})}function m(e,a,d,u){var S,V,C;if(_.has(e))return;const p=d.find(v=>{const y=v.object_alias||"";return y.includes("*")?new RegExp("^"+y.replace(/\*/g,".*")+"$","i").test(e):!1});if(!p)return;_.add(e);const l=D(M({},p),{object_id:e,object_alias:"",name:e,lng:0,lat:0,fv1_val:"",fv2_val:"",fv3_val:"",_fromWildcard:!0});if(l.lngFv){const v=u.extractDataValue(a,l.lngFv);v!=null&&!isNaN(Number(v))&&(l.lng=Number(v))}if(l.latFv){const v=u.extractDataValue(a,l.latFv);v!=null&&!isNaN(Number(v))&&(l.lat=Number(v))}l.fv1&&(l.fv1_val=(S=u.extractDataValue(a,l.fv1))!=null?S:""),l.fv2&&(l.fv2_val=(V=u.extractDataValue(a,l.fv2))!=null?V:""),l.fv3&&(l.fv3_val=(C=u.extractDataValue(a,l.fv3))!=null?C:""),d.push(l)}class k extends Ee.BaseComponent{setSocketData(a){var p;if(!a)return;const{data:d}=this.props.conf;if(!d||!Array.isArray(d))return;const u=((p=a.data)==null?void 0:p.object_id)||a.object_id;u&&(d.forEach(l=>{var V,C,v;if(l.object_id===u){if(l.lngFv){const y=this.extractDataValue(a,l.lngFv);y!=null&&!isNaN(Number(y))&&(l.lng=Number(y))}if(l.latFv){const y=this.extractDataValue(a,l.latFv);y!=null&&!isNaN(Number(y))&&(l.lat=Number(y))}l.fv1&&(l.fv1_val=(V=this.extractDataValue(a,l.fv1))!=null?V:""),l.fv2&&(l.fv2_val=(C=this.extractDataValue(a,l.fv2))!=null?C:""),l.fv3&&(l.fv3_val=(v=this.extractDataValue(a,l.fv3))!=null?v:"")}}),m(u,a,d,this))}extractStyles(){var d,u,p,l,S,V,C,v,y,E,B,G,P,q,W,H,X,Y,$,J,K,Q,Z,ee,ae,le,te,ne,oe,re,ie,ce,se,ue,de,pe,ve;const a=((d=this.props.conf)==null?void 0:d.options)||{};return{bgColor:((u=a.bgColor)==null?void 0:u.value)||"#ffffff",accentColor:((p=a.accentColor)==null?void 0:p.value)||"#409eff",textColor:((l=a.textColor)==null?void 0:l.value)||"#333333",fontFamily:((S=a.fontFamily)==null?void 0:S.value)||"default",baseFontSize:(C=(V=a.baseFontSize)==null?void 0:V.value)!=null?C:12,filterFontSize:(y=(v=a.filterFontSize)==null?void 0:v.value)!=null?y:12,labelFontSize:(B=(E=a.labelFontSize)==null?void 0:E.value)!=null?B:11,labelColor:((G=a.labelColor)==null?void 0:G.value)||"#ffffff",toggleFontSize:(q=(P=a.toggleFontSize)==null?void 0:P.value)!=null?q:12,mapStyle:((W=a.mapStyle)==null?void 0:W.value)||"dark",lng:(X=(H=a.lng)==null?void 0:H.value)!=null?X:119.3838,lat:($=(Y=a.lat)==null?void 0:Y.value)!=null?$:45.3738,zoom:(K=(J=a.zoom)==null?void 0:J.value)!=null?K:15,warningAreaColor:((Q=a.warningAreaColor)==null?void 0:Q.value)||"#ff6600",warningAreaFillOpacity:(ee=(Z=a.warningAreaFillOpacity)==null?void 0:Z.value)!=null?ee:.08,showFilterBar:(le=(ae=a.showFilterBar)==null?void 0:ae.value)!=null?le:!0,showModelToggle:(ne=(te=a.showModelToggle)==null?void 0:te.value)!=null?ne:!0,showDeviceToggle:(re=(oe=a.showDeviceToggle)==null?void 0:oe.value)!=null?re:!0,linkChannel:((ie=a.linkChannel)==null?void 0:ie.value)||"landslide",customChannel:((ce=a.customChannel)==null?void 0:ce.value)||"",g3dFileUrl:((se=a.g3dFileUrl)==null?void 0:se.value)||"",dtmModelUrl:((ue=a.dtmModelUrl)==null?void 0:ue.value)||"",uavTileUrl:((de=a.uavTileUrl)==null?void 0:de.value)||"",projCentralMeridian:(ve=(pe=a.projCentralMeridian)==null?void 0:pe.value)!=null?ve:120}}getDefaultData(){return[]}}const b=new k(t,"landslideMap"),i=o.computed(()=>b.extractStyles()),h=o.computed(()=>{const e=i.value,a=e.fontFamily==="default"?"inherit":e.fontFamily;return{background:e.bgColor,color:e.textColor,fontFamily:a,fontSize:e.baseFontSize+"px","--lw-accent":e.accentColor,"--lw-text":e.textColor,"--lw-font":a,"--lw-base-size":e.baseFontSize+"px","--lw-filter-size":e.filterFontSize+"px","--lw-label-size":e.labelFontSize+"px","--lw-label-color":e.labelColor,"--lw-toggle-size":e.toggleFontSize+"px"}}),f=o.reactive(I.getMockPageData());o.watch(i,e=>{f.mapScene.tileStyle=e.mapStyle,f.mapScene.centerLng=e.lng,f.mapScene.centerLat=e.lat,f.mapScene.zoom=e.zoom},{immediate:!0});const x=o.computed(()=>I.REGION_OPTIONS),F=o.computed(()=>I.LINE_OPTIONS),N=new Set(["GNSS","crack","radar","deepDisplacement","stress","rainfall","groundwater"]),n=new Set(["person","excavator","truck","drone"]),A=o.computed(()=>{var a;const e=(a=t.conf)==null?void 0:a.data;return Array.isArray(e)?e:[]});function T(e,a,d){if(!e||!a)return{modelE:0,modelN:0,modelRL:0};const u=i.value.projCentralMeridian||120,p=Ie(e,a,u);return{modelE:p.e,modelN:p.n,modelRL:d||0}}const j=o.computed(()=>A.value.filter(e=>N.has(e.category)&&!(e.object_alias&&e.object_alias.includes("*"))).map(e=>D(M({deviceId:e.object_id||e.name,deviceName:e.name,deviceType:e.category,regionId:e.area||"",lineId:e.line||"",status:"normal",x:0,y:0,lng:Number(e.lng)||0,lat:Number(e.lat)||0,elevation:Number(e.gnssElev_val)||Number(e.elevation)||0},T(Number(e.lat)||0,Number(e.lng)||0,Number(e.gnssElev_val)||Number(e.elevation)||0)),{warningLevel:0,lastTime:"",displayFields:[e.label1&&e.fv1?{label:e.label1,value:e.fv1_val||"--",unit:e.unit1||""}:null,e.label2&&e.fv2?{label:e.label2,value:e.fv2_val||"--",unit:e.unit2||""}:null,e.label3&&e.fv3?{label:e.label3,value:e.fv3_val||"--",unit:e.unit3||""}:null].filter(Boolean)}))),Fe=o.computed(()=>A.value.filter(e=>n.has(e.category)&&!(e.object_alias&&e.object_alias.includes("*"))).map(e=>({objectId:e.object_id||e.name,objectName:e.name,objectType:e.category,x:0,y:0,lng:Number(e.lng)||0,lat:Number(e.lat)||0,status:"normal",lastTime:""}))),he=o.computed(()=>j.value.map(e=>e.deviceName)),_e=o.computed(()=>{const e=f.filters;return j.value.filter(a=>!(e.regionId&&a.regionId!==e.regionId||e.lineId&&a.lineId!==e.lineId||e.deviceId&&a.deviceName!==e.deviceId))});function Ne(e){Object.assign(f.filters,e),b.publish({type:"filter-change",filters:e})}function Ve(){b.publish({type:"query",filters:f.filters})}function Ce(e){b.publish({type:"select-device",device:e})}function we(e){b.publish({type:"select-object",object:e})}function ke(){}function Me(){var e;(e=c.value)==null||e.startSection()}return o.onMounted(()=>O(null,null,function*(){yield w(),b.init()})),o.onBeforeUnmount(()=>b.cleanup()),(e,a)=>(o.openBlock(),o.createElementBlock("div",{class:"lsm-wrapper",style:o.normalizeStyle(h.value)},[i.value.showFilterBar?(o.openBlock(),o.createBlock(be.FilterBar,{key:0,filters:f.filters,regions:x.value,lines:F.value,"device-names":he.value,"onUpdate:filters":Ne,onQuery:Ve,onStartSection:Me},null,8,["filters","regions","lines","device-names"])):o.createCommentVNode("",!0),o.createVNode(be.MonitoringMap,{ref_key:"monitoringMapRef",ref:c,"map-scene":f.mapScene,devices:_e.value,"mobile-objects":Fe.value,"affected-areas":f.affectedAreas,"current-warning":null,"warning-area-color":i.value.warningAreaColor,"warning-area-fill-opacity":i.value.warningAreaFillOpacity,"show-model-toggle":i.value.showModelToggle,"show-device-toggle":i.value.showDeviceToggle,"g3d-file-url":i.value.g3dFileUrl,"dtm-model-url":i.value.dtmModelUrl,"uav-tile-url":i.value.uavTileUrl,onSelectDevice:Ce,onSelectObject:we,onToggleModel:ke},null,8,["map-scene","devices","mobile-objects","affected-areas","warning-area-color","warning-area-fill-opacity","show-model-toggle","show-device-toggle","g3d-file-url","dtm-model-url","uav-tile-url"]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),We=U._export_sfc(qe,[["__scopeId","data-v-8fb1dd7a"]]);exports.default=We;
@@ -12,12 +12,12 @@ var we = (t, n, r) => n in t ? el(t, n, { enumerable: !0, configurable: !0, writ
12
12
  }, I = (t, n) => ll(t, al(n));
13
13
  import { defineComponent as ol, computed as p, onMounted as he, reactive as Se, watch as xe, ref as Ie, onBeforeUnmount as rl, openBlock as m, createElementBlock as Fe, normalizeStyle as Be, createElementVNode as il, createBlock as F, createCommentVNode as h, createVNode as B, renderSlot as sl } from "vue";
14
14
  import "html2canvas";
15
- import { B as cl } from "./BaseComponent-DtvXBQYf.js";
16
- import { N as ul, G as Pe, _ as pl } from "./index-BueGUjcH.js";
15
+ import { B as cl } from "./BaseComponent-Dwhb9Mde.js";
16
+ import { N as ul, G as Pe, _ as pl } from "./index-YNdVib_6.js";
17
17
  import { g as Oe, M as vl, R as _e, L as Ne, a as dl, b as fl } from "./mockData-DcqLnbJF.js";
18
- import { F as gl, M as bl } from "./MonitoringMap-CGdqpp4N.js";
19
- import { W as ml, P as yl, H as Cl } from "./HistoryPlanDialog-CItsTCsk.js";
20
- import { E as wl } from "./EmergencyPlanPanel-COfHeuTK.js";
18
+ import { F as gl, M as bl } from "./MonitoringMap-DB3R5nAJ.js";
19
+ import { W as ml, P as yl, H as Cl } from "./HistoryPlanDialog-DliuSi0p.js";
20
+ import { E as wl } from "./EmergencyPlanPanel-FtvC-aXY.js";
21
21
  import { A as hl, D as Sl } from "./ele-evn-icon-MWzAujnD.js";
22
22
  const xl = { class: "lw-left" }, Il = _e.reduce((t, n) => (t[n.regionId] = n.regionName, t), {}), Fl = Ne.reduce((t, n) => (t[n.lineId] = n.lineName, t), {}), Bl = {
23
23
  DEFAULT_ICON: Sl,