mixdashboards 1.0.76 → 1.0.77
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.
- package/dist/{BaseComponent-BmhMoM4H.cjs → BaseComponent-B5ivgb3E.cjs} +1 -1
- package/dist/{BaseComponent-CQaDWNO0.js → BaseComponent-DtvXBQYf.js} +3 -3
- package/dist/{EChartComponentBase-D9EUh4BZ.cjs → EChartComponentBase-ChoVZ7wg.cjs} +1 -1
- package/dist/{EChartComponentBase-i76OGL3z.js → EChartComponentBase-c7NzErOu.js} +2 -2
- package/dist/{EmergencyPlanPanel-B9S3Ru5-.js → EmergencyPlanPanel-COfHeuTK.js} +1 -1
- package/dist/{EmergencyPlanPanel-BiAHvTfh.cjs → EmergencyPlanPanel-DG23L1EJ.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CbbeFm-i.js → HistoryPlanDialog-CItsTCsk.js} +1 -1
- package/dist/{HistoryPlanDialog-BU4GayEm.cjs → HistoryPlanDialog-d5ocUKAB.cjs} +1 -1
- package/dist/{MonitoringMap-B6tXBdvK.js → MonitoringMap-CGdqpp4N.js} +2 -2
- package/dist/{MonitoringMap-FGDoA0fw.cjs → MonitoringMap-H5AOAU8m.cjs} +1 -1
- package/dist/{UniverSheet-D7y2pceH.cjs → UniverSheet-BAwHvLEU.cjs} +1 -1
- package/dist/{UniverSheet-D8sflrTb.js → UniverSheet-tSAkLkuy.js} +2 -2
- package/dist/{accelerationChart-bch4O3t-.js → accelerationChart-4RM-T97n.js} +2 -2
- package/dist/{accelerationChart-DTlwSA0N.cjs → accelerationChart-D69FGgF0.cjs} +1 -1
- package/dist/{actionItem-Cw67YwsR.js → actionItem-XXesGERk.js} +2 -2
- package/dist/{actionItem-cdsgUvaC.cjs → actionItem-nkkG4T8t.cjs} +1 -1
- package/dist/{alarmLevelChart-BynSRHG2.js → alarmLevelChart-Cg4-8uhy.js} +2 -2
- package/dist/{alarmLevelChart-BMjTLxB5.cjs → alarmLevelChart-DtzJLIO8.cjs} +1 -1
- package/dist/{alertTable-CiwuaydQ.js → alertTable-_7uxXdg1.js} +2 -2
- package/dist/{alertTable-3VhkUZSf.cjs → alertTable-cpTXAjVG.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-BLoecZkV.cjs → aliasObjectSelectorDemo-COnsSHH1.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DfdRxb4I.js → aliasObjectSelectorDemo-bgchdBQ0.js} +1 -1
- package/dist/{annualRainfallChart-DKR-A_PT.cjs → annualRainfallChart-BRRuAOLJ.cjs} +1 -1
- package/dist/{annualRainfallChart-CHcr4-0D.js → annualRainfallChart-D5byp5kM.js} +2 -2
- package/dist/{aqi-Gu-pAovO.js → aqi-BkNZxokM.js} +2 -2
- package/dist/{aqi-D7VqP1QE.cjs → aqi-CbM96i-K.cjs} +1 -1
- package/dist/{aqiIndass-Bjj6n1aj.js → aqiIndass-CC_FnBlK.js} +2 -2
- package/dist/{aqiIndass-nfYUZ3UM.cjs → aqiIndass-UP1Ez_qA.cjs} +1 -1
- package/dist/{areaDeformCurve-fpGWmq05.cjs → areaDeformCurve-97gwWmiv.cjs} +1 -1
- package/dist/{areaDeformCurve-nwlcUBDv.js → areaDeformCurve-CoTcTIJx.js} +2 -2
- package/dist/{arrayCard-UoDqAGbN.cjs → arrayCard-CDs0w_2C.cjs} +1 -1
- package/dist/{arrayCard-TfcgLrHv.js → arrayCard-lwGyTUyK.js} +2 -2
- package/dist/{audio-DdUv9Ot-.cjs → audio-DcGRfoFl.cjs} +1 -1
- package/dist/{audio-BYgGYoEr.js → audio-DwzGVHhN.js} +2 -2
- package/dist/{bar-CkBXc7t1.cjs → bar-Bh4Zupfj.cjs} +1 -1
- package/dist/{bar-SfGiFl1r.js → bar-DA7TDioF.js} +2 -2
- package/dist/{bmp-BbtdzIrI.js → bmp-C-7PJc-e.js} +2 -2
- package/dist/{bmp-CY-Hb2x1.cjs → bmp-D7P6JPZ3.cjs} +1 -1
- package/dist/{box-CV41cJuX.js → box-CabcDxmT.js} +2 -2
- package/dist/{box-B4C_mirv.cjs → box-EScim_8s.cjs} +1 -1
- package/dist/{chartConfigPanel-D650rSn7.js → chartConfigPanel-BOTXJEgB.js} +1 -1
- package/dist/{chartConfigPanel-DBlqAbbH.cjs → chartConfigPanel-CGM3JLv0.cjs} +1 -1
- package/dist/{circleBar-DkV7xPBl.cjs → circleBar-C3LcD2GM.cjs} +1 -1
- package/dist/{circleBar-U3iXMQr5.js → circleBar-okrH5S9i.js} +2 -2
- package/dist/{clock-CjgMeOhp.cjs → clock-B-MpqirO.cjs} +1 -1
- package/dist/{clock-zKVUU8pu.js → clock-_0PzxcIr.js} +2 -2
- package/dist/{clt-BsIA-YPQ.js → clt-B7Ro2RZ9.js} +2 -2
- package/dist/{clt-DwI8i7zI.cjs → clt-CmMR6xrj.cjs} +1 -1
- package/dist/{cmc-BX9ichBB.cjs → cmc-CFz43gP5.cjs} +1 -1
- package/dist/{cmc-CgpHejR2.js → cmc-UjkMrdkf.js} +2 -2
- package/dist/{cmp-CTqtxzo4.cjs → cmp-B99dBC5D.cjs} +1 -1
- package/dist/{cmp-CS34lG7V.js → cmp-DAoGjmUK.js} +2 -2
- package/dist/{conclusionCard-wvtJmV_8.cjs → conclusionCard-BH6PfBmm.cjs} +1 -1
- package/dist/{conclusionCard-N6pA6Q9P.js → conclusionCard-DfGfQa2i.js} +2 -2
- package/dist/{controlList-Zz5ABe5b.js → controlList-Ch22lz5j.js} +2 -2
- package/dist/{controlList-BUAMdHA3.cjs → controlList-UzBZAUg8.cjs} +1 -1
- package/dist/{controlRecordList-CMR4y_Ml.cjs → controlRecordList-CjaRe3iR.cjs} +1 -1
- package/dist/{controlRecordList-Dx0zj7js.js → controlRecordList-DqVkxlxI.js} +2 -2
- package/dist/{controlRecordListAPP-bL9oqWzQ.js → controlRecordListAPP-B4Agwftc.js} +2 -2
- package/dist/{controlRecordListAPP-ZDCKmz_8.cjs → controlRecordListAPP-DO9oXKbz.cjs} +1 -1
- package/dist/{crd-DZPpD6XY.js → crd-9hr2CpXs.js} +2 -2
- package/dist/{crd-8tMwNlgx.cjs → crd-Bf8jZALT.cjs} +1 -1
- package/dist/{ctrBtn-eCu0UDtW.cjs → ctrBtn-DrNeLQd9.cjs} +1 -1
- package/dist/{ctrBtn-6Ql9ulTr.js → ctrBtn-Yfbw4Pt6.js} +3 -3
- package/dist/{ctrSet-BwFVH1Mk.js → ctrSet-BI4qrXOp.js} +3 -3
- package/dist/{ctrSet-pX-zVivo.cjs → ctrSet-Cw82MzYN.cjs} +1 -1
- package/dist/{ctrSwitch-b6hHf4QF.js → ctrSwitch-CbrB82jp.js} +3 -3
- package/dist/{ctrSwitch-D95SI-aJ.cjs → ctrSwitch-CyIBxuP0.cjs} +1 -1
- package/dist/{dataManagement-VucRLCK4.js → dataManagement-8jLHO5b6.js} +2 -2
- package/dist/{dataManagement-DubA1TV1.cjs → dataManagement-BANzNRgt.cjs} +1 -1
- package/dist/{dataReport-CALIw14D.js → dataReport-BTY2YPkp.js} +2 -2
- package/dist/{dataReport-CkF5J7X1.cjs → dataReport-C6rqooz1.cjs} +1 -1
- package/dist/{dataTable-C1rBH_p9.js → dataTable-CT7O3vOj.js} +1 -1
- package/dist/{dataTable-C2q_CX5D.cjs → dataTable-DK1bXW7L.cjs} +1 -1
- package/dist/{datetime-Cq8scz5Q.js → datetime-BfpmpRWw.js} +2 -2
- package/dist/{datetime-TBTeWqlf.cjs → datetime-Gc1JB409.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-Cm50wbjv.js → deepClusterSlipSurface-CuPVV8T2.js} +2 -2
- package/dist/{deepClusterSlipSurface-CFaxRVmM.cjs → deepClusterSlipSurface-Do0cuafE.cjs} +1 -1
- package/dist/{deepDataMatrix-DyStA98d.js → deepDataMatrix-B2h-jr0-.js} +2 -2
- package/dist/{deepDataMatrix-CAYSav3X.cjs → deepDataMatrix-eYmIiIMu.cjs} +1 -1
- package/dist/{deepDisplacement3D-B3Iju2KK.cjs → deepDisplacement3D-Cc8f_nFC.cjs} +1 -1
- package/dist/{deepDisplacement3D-Bat-Wc3i.js → deepDisplacement3D-DyF7L9GI.js} +2 -2
- package/dist/{deepDisplacementChart-CYMpNu_W.js → deepDisplacementChart-BUPlTFCA.js} +3 -3
- package/dist/{deepDisplacementChart-D5rHoC9r.js → deepDisplacementChart-BkgOiG2W.js} +2 -2
- package/dist/{deepDisplacementChart-CX9ALM89.cjs → deepDisplacementChart-DVscdSYa.cjs} +1 -1
- package/dist/{deepDisplacementChart-C-Tr4DdI.cjs → deepDisplacementChart-De935Ifi.cjs} +1 -1
- package/dist/{deepDisplacementView-DTSsODJQ.cjs → deepDisplacementView-C3qEJa9Q.cjs} +1 -1
- package/dist/{deepDisplacementView-DnjwQmEW.js → deepDisplacementView-C9P1cqRH.js} +1 -1
- package/dist/{deepNodeTemperatureChart-C9NRJ49Y.cjs → deepNodeTemperatureChart-DLzI-lAv.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CLKg72UA.js → deepNodeTemperatureChart-DePoeTnV.js} +2 -2
- package/dist/{deepTangentAngleChart-C9aFSFrD.cjs → deepTangentAngleChart-ClBLpr_-.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DklHYHhm.js → deepTangentAngleChart-D2SQkZEz.js} +2 -2
- package/dist/{deepTemperatureField-CcnVGgbf.js → deepTemperatureField-B_rWuVyI.js} +3 -3
- package/dist/{deepTemperatureField-CXBL4_LS.cjs → deepTemperatureField-CUGWy_vS.cjs} +1 -1
- package/dist/{deepTrendChart-OGW08BX-.cjs → deepTrendChart-BcrJBFqD.cjs} +1 -1
- package/dist/{deepTrendChart-De7ebpk4.js → deepTrendChart-C_e7Dgjz.js} +2 -2
- package/dist/{deviceOnlineStatus-DarcMtY4.cjs → deviceOnlineStatus-BZxCnz-5.cjs} +1 -1
- package/dist/{deviceOnlineStatus-_3Txb8Tg.js → deviceOnlineStatus-C0SqKqjc.js} +2 -2
- package/dist/{deviceStatus-CL6E-pQ0.js → deviceStatus-BPglOIKN.js} +2 -2
- package/dist/{deviceStatus-BiJw8rnz.cjs → deviceStatus-DClMreZ3.cjs} +1 -1
- package/dist/{displacementDataTable-tKtGe2xd.js → displacementDataTable-9WH9Y3-l.js} +2 -2
- package/dist/{displacementDataTable-DmAqr-JK.cjs → displacementDataTable-C5172BMT.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DG2YdSqq.cjs → displacementTrajectoryChart-C-pchT8b.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-Dh6oPB0p.js → displacementTrajectoryChart-DWGKAbMq.js} +2 -2
- package/dist/{displacementTrendChart-CT140vXG.cjs → displacementTrendChart-B8Em-Apt.cjs} +1 -1
- package/dist/{displacementTrendChart-BHORe0qO.js → displacementTrendChart-D4keOUDg.js} +2 -2
- package/dist/{dxf-CjcHSJq-.js → dxf-BV56d_m8.js} +2 -2
- package/dist/{dxf-CVa4Vfm3.cjs → dxf-CRFblr-a.cjs} +1 -1
- package/dist/{dzc-DK16oTVj.cjs → dzc-9BLm4nwW.cjs} +1 -1
- package/dist/{dzc-DDXNSuie.js → dzc-FZBGaYTk.js} +2 -2
- package/dist/{emergencyPlan-Vim4E6h7.js → emergencyPlan-CbFUPUf9.js} +3 -3
- package/dist/{emergencyPlan-D0AMuD-3.cjs → emergencyPlan-D5YlhQNC.cjs} +1 -1
- package/dist/{evn-CdMN8gIC.js → evn-DMrhD8U9.js} +2 -2
- package/dist/{evn-D2mdSoFB.cjs → evn-ty-ACnv0.cjs} +1 -1
- package/dist/{evolutionChart-I8XVW05I.cjs → evolutionChart-C6E2yiqG.cjs} +1 -1
- package/dist/{evolutionChart-P0l6P0Bc.js → evolutionChart-Cg3jN_vy.js} +3 -3
- package/dist/{fileViewer-D7sAA8-W.cjs → fileViewer-BqlO8FED.cjs} +1 -1
- package/dist/{fileViewer-DvntGv0b.js → fileViewer-D3UlJjIK.js} +2 -2
- package/dist/{filterBar-8gex5oR-.js → filterBar-BWqpT6Ft.js} +2 -2
- package/dist/{filterBar-GSTji96g.cjs → filterBar-x-zvXO4x.cjs} +1 -1
- package/dist/{fireCombustionCurve-DrMmHf3N.cjs → fireCombustionCurve-BzvhUF4h.cjs} +1 -1
- package/dist/{fireCombustionCurve-B3jAhOft.js → fireCombustionCurve-CCsxFlpG.js} +3 -3
- package/dist/{fireFilterBar-Dy9DcHij.cjs → fireFilterBar-BtMlwSl0.cjs} +1 -1
- package/dist/{fireFilterBar-CH6iK0Xg.js → fireFilterBar-KU0l3oMk.js} +2 -2
- package/dist/{fireHistoryTable-CHxHqPs0.js → fireHistoryTable-BqxPj5bh.js} +2 -2
- package/dist/{fireHistoryTable-n6L3juWp.cjs → fireHistoryTable-GYC28vg2.cjs} +1 -1
- package/dist/{gag-BsO4kmp1.js → gag-CEsV2Rsa.js} +2 -2
- package/dist/{gag-BzjuwBvY.cjs → gag-DnaEi2qS.cjs} +1 -1
- package/dist/{gasStationList-QwqTDEAG.cjs → gasStationList-CSmyS9tt.cjs} +1 -1
- package/dist/{gasStationList-7JzUcISs.js → gasStationList-enI_qbTZ.js} +2 -2
- package/dist/{geo3dViewer-Cf-jHpvF.cjs → geo3dViewer-Bi2I8qrS.cjs} +1 -1
- package/dist/{geo3dViewer-doEpUC_J.js → geo3dViewer-D3ZEH_sW.js} +3 -3
- package/dist/{glbModel-C6L--3dO.cjs → glbModel-BcrfDRGx.cjs} +1 -1
- package/dist/{glbModel-BgFIj_es.js → glbModel-Dz32VGsg.js} +2 -2
- package/dist/{globalObjectSelector-P_irB0rv.cjs → globalObjectSelector-CJrFL8ag.cjs} +1 -1
- package/dist/{globalObjectSelector-CdfiXRjg.js → globalObjectSelector-DPm_eXg_.js} +1 -1
- package/dist/{gnssFilterBar-CIwyv2yc.cjs → gnssFilterBar-DzHsXBPj.cjs} +1 -1
- package/dist/{gnssFilterBar-DPNshMIx.js → gnssFilterBar-klba1QZm.js} +2 -2
- package/dist/{gnssHistoryTable-j5FL6oYs.cjs → gnssHistoryTable-BmWSzo4U.cjs} +1 -1
- package/dist/{gnssHistoryTable-C7x4-Tpp.js → gnssHistoryTable-Cp3pIekL.js} +2 -2
- package/dist/{gnssMapView-BWcS4hqj.js → gnssMapView-BV9rsiDD.js} +4 -4
- package/dist/{gnssMapView-_VaJWBcE.cjs → gnssMapView-BaZlzP_f.cjs} +2 -2
- package/dist/{gnssSectionProfile-hpyiGI-6.js → gnssSectionProfile-CArri0j5.js} +2 -2
- package/dist/{gnssSectionProfile-DGbTO7lV.cjs → gnssSectionProfile-D02MfJcd.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-rL9oG1ly.js → gnssTimeSeriesChart-C3VtICJV.js} +2 -2
- package/dist/{gnssTimeSeriesChart-CNT6xaNs.cjs → gnssTimeSeriesChart-fZYtdBrL.cjs} +1 -1
- package/dist/{gnssXYTrajectory-B1LZAepw.js → gnssXYTrajectory-ClbZljGY.js} +2 -2
- package/dist/{gnssXYTrajectory-CwAjhPRc.cjs → gnssXYTrajectory-glpzGLHH.cjs} +1 -1
- package/dist/{grd-rJXqEimt.cjs → grd-DAPxN3Yv.cjs} +1 -1
- package/dist/{grd-BLab9IY0.js → grd-DFbgrJiz.js} +2 -2
- package/dist/{grdIndass-niY4UOwz.cjs → grdIndass-CRYPP8ap.cjs} +1 -1
- package/dist/{grdIndass-gGrZ7gRV.js → grdIndass-CdReMrRF.js} +2 -2
- package/dist/{grg-Dnro7bLg.js → grg-BuxeFXkW.js} +2 -2
- package/dist/{grg-C1L5yeyY.cjs → grg-DBj_IXUS.cjs} +1 -1
- package/dist/{gridview-DxUsv2ny.cjs → gridview-DMqISEIm.cjs} +1 -1
- package/dist/{gridview-BhjWlD0J.js → gridview-ieOKw-zp.js} +2 -2
- package/dist/{groundwaterFilterBar-bNhTkX1C.js → groundwaterFilterBar-CMrXUaJD.js} +2 -2
- package/dist/{groundwaterFilterBar-C-2e7S04.cjs → groundwaterFilterBar-DTjCop4R.cjs} +1 -1
- package/dist/{groundwaterProfileChart-BxKGPuOe.cjs → groundwaterProfileChart-CHFMvxM0.cjs} +2 -2
- package/dist/{groundwaterProfileChart-dhzmwfwz.js → groundwaterProfileChart-wwZ31Nxz.js} +3 -3
- package/dist/{groundwaterTimeCurve-BtzP6icm.js → groundwaterTimeCurve-CL7EWs-M.js} +3 -3
- package/dist/{groundwaterTimeCurve-CTQPlTUr.cjs → groundwaterTimeCurve-DzTolxJ6.cjs} +1 -1
- package/dist/{groupCard-D00ElZoy.js → groupCard-3iWG0sN3.js} +2 -2
- package/dist/{groupCard-D4gdaVqR.cjs → groupCard-CdPis-TL.cjs} +1 -1
- package/dist/{headerBar-DEHj8fJr.js → headerBar-BVa2ewi0.js} +2 -2
- package/dist/{headerBar-MFw1W0qa.cjs → headerBar-DVP5Ob99.cjs} +1 -1
- package/dist/{history-D1R2RAZQ.cjs → history-CVMvhgUJ.cjs} +1 -1
- package/dist/{history-BRkb914v.js → history-CZCtaT0D.js} +1 -1
- package/dist/{index-BZpYmpDy.js → index-BueGUjcH.js} +3291 -3107
- package/dist/{index-77aUdspY.cjs → index-DYr57ceS.cjs} +13 -13
- package/dist/{insarDeformChart-5EVWIkpL.cjs → insarDeformChart-CVrCLtcb.cjs} +1 -1
- package/dist/{insarDeformChart-pbOnnoN-.js → insarDeformChart-vPREnzjC.js} +2 -2
- package/dist/{insarImageViewer-DQJBN4YM.cjs → insarImageViewer-C0D9bkS3.cjs} +1 -1
- package/dist/{insarImageViewer-D3bbQA6g.js → insarImageViewer-DsNoAsNI.js} +2 -2
- package/dist/{kds-D5seJB3L.cjs → kds-C6tBi9fO.cjs} +1 -1
- package/dist/{kds-gTJOwHbM.js → kds-DUdtTddq.js} +2 -2
- package/dist/{kpiCard-Cx6VNK6L.js → kpiCard-A_7vB_FS.js} +2 -2
- package/dist/{kpiCard-Bz-fg6sL.cjs → kpiCard-Dfn9Utnc.cjs} +1 -1
- package/dist/{landslideMap-D7_QpwmM.cjs → landslideMap-CjsBed2W.cjs} +1 -1
- package/dist/{landslideMap-5erIcZo7.js → landslideMap-DEYHn_Z8.js} +3 -3
- package/dist/{landslideWarning-C3FZqrxT.cjs → landslideWarning-9q-8-Yaf.cjs} +1 -1
- package/dist/{landslideWarning-CzaddgWf.js → landslideWarning-C2SVP_SW.js} +5 -5
- package/dist/{layerTabs-DqbOykS2.js → layerTabs-CkgVEQIu.js} +2 -2
- package/dist/{layerTabs-Dc1Xb11W.cjs → layerTabs-DpIpshzv.cjs} +1 -1
- package/dist/{leaflet-src-BY2SMh9y.js → leaflet-src-BV47Q4HI.js} +1 -1
- package/dist/{leaflet-src-Brb8KUL5.cjs → leaflet-src-DzRw1bMt.cjs} +1 -1
- package/dist/{lerc-DGuyYCKG.cjs → lerc-BxPJ0Ezc.cjs} +1 -1
- package/dist/{lerc-Chm_GVte.js → lerc-COLax3Js.js} +2 -2
- package/dist/{lin-8x2j8aGa.cjs → lin-0o_p8mvp.cjs} +1 -1
- package/dist/{lin-tqtSA5ci.js → lin-BgNnturC.js} +2 -2
- package/dist/{linIndass-Dxo_bzrZ.cjs → linIndass-DCnHejlJ.cjs} +1 -1
- package/dist/{linIndass-DHFymSVI.js → linIndass-DqIczVZr.js} +2 -2
- package/dist/{lst-BV6EbDPs.cjs → lst-DVSrQxnF.cjs} +1 -1
- package/dist/{lst-BejIuO0f.js → lst-pzZFRLE7.js} +2 -2
- package/dist/{manualEntry-Bt4cs6kn.cjs → manualEntry-COjFNu6s.cjs} +1 -1
- package/dist/{manualEntry-DObI0OAq.js → manualEntry-CU7C50JU.js} +2 -2
- package/dist/{mapBackground-Cuym5Dqr.js → mapBackground-Bi8yjPRE.js} +3 -3
- package/dist/{mapBackground-oVOBK3zr.cjs → mapBackground-ssUjWKfZ.cjs} +1 -1
- package/dist/{mappingList-Dzq0zMfs.js → mappingList-BRndtYHP.js} +2 -2
- package/dist/{mappingList-BEWAqLd4.cjs → mappingList-Cryu-iab.cjs} +1 -1
- package/dist/{markdownViewer-V5b1xhPh.cjs → markdownViewer-Dn2PQ9LA.cjs} +1 -1
- package/dist/{markdownViewer-Bz50jkb6.js → markdownViewer-i0a6mIv1.js} +2 -2
- package/dist/{mix-control-modal-DzVLdO3S.js → mix-control-modal-CHglSLUZ.js} +1 -1
- package/dist/{mix-control-modal-I6DqPm04.cjs → mix-control-modal-CicQq7ai.cjs} +1 -1
- package/dist/{mixGrid-_ur8VKLD.cjs → mixGrid-CHyP3WlY.cjs} +1 -1
- package/dist/{mixGrid-tVSdKPms.js → mixGrid-CJfUwclp.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mixiotObjectListApi-D5vNNWgT.js → mixiotObjectListApi-BzhGWfpb.js} +1 -1
- package/dist/{mixiotObjectListApi-BUQ-RZ3L.cjs → mixiotObjectListApi-D8aEu-tS.cjs} +1 -1
- package/dist/{mjpegCamera-DnAPpFJU.js → mjpegCamera-BltugLlx.js} +2 -2
- package/dist/{mjpegCamera-CjWe8BEK.cjs → mjpegCamera-DNETbJj6.cjs} +1 -1
- package/dist/{monitorAlert-qmVSQ1lc.cjs → monitorAlert-B0e6NlDC.cjs} +1 -1
- package/dist/{monitorAlert-B-fTYPn6.js → monitorAlert-BZt1nTav.js} +2 -2
- package/dist/{monitorData-YhGSUq3H.cjs → monitorData-BN6f9iMG.cjs} +1 -1
- package/dist/{monitorData-Dopc660L.js → monitorData-Bj-yPQyW.js} +2 -2
- package/dist/{monitorSpeedChart-Brj_YHsO.cjs → monitorSpeedChart-B3VWNas7.cjs} +1 -1
- package/dist/{monitorSpeedChart-Dsvr_QPB.js → monitorSpeedChart-DPUyFmKD.js} +1 -1
- package/dist/{mxa-BzdI7BLB.cjs → mxa-BQ_gyPOg.cjs} +1 -1
- package/dist/{mxa-D4WkyBYZ.js → mxa-pTWhgscr.js} +2 -2
- package/dist/{myValue-DYtBtOJ2.js → myValue-Dyyv7mp6.js} +2 -2
- package/dist/{myValue-C0tq-asC.cjs → myValue-K9yzWHVv.cjs} +1 -1
- package/dist/{myValueList-BJctRTNd.cjs → myValueList-BF88xTbG.cjs} +1 -1
- package/dist/{myValueList-Ddpn1S68.js → myValueList-BrL41hIy.js} +2 -2
- package/dist/{objectList-Csf0hVwo.cjs → objectList-D1wulpL0.cjs} +1 -1
- package/dist/{objectList-G4wXFDwe.js → objectList-DqUaLWIN.js} +3 -3
- package/dist/{objectListAPP-BrmUj4At.js → objectListAPP-68pa8xQ3.js} +3 -3
- package/dist/{objectListAPP-UZN4iuTn.cjs → objectListAPP-BJI-LZ9h.cjs} +1 -1
- package/dist/{photo-BEPeK7U8.js → photo-CqtG1ZDn.js} +2 -2
- package/dist/{photo-BYH_qg5O.cjs → photo-D2G-MiYd.cjs} +1 -1
- package/dist/{pie-B57zDxJV.cjs → pie-DGQowd1d.cjs} +1 -1
- package/dist/{pie-CEVKe1lL.js → pie-rodX5eBx.js} +2 -2
- package/dist/{placeholder-Bwv3VyEg.js → placeholder-C2uw4-Bv.js} +1 -1
- package/dist/{placeholder-BezBEQGo.cjs → placeholder-yXuUcCld.cjs} +1 -1
- package/dist/{pressBtn-1LCNz2gE.js → pressBtn-CkKRECXu.js} +3 -3
- package/dist/{pressBtn-CJZTyY8I.cjs → pressBtn-kIjSTK2P.cjs} +1 -1
- package/dist/{processTable-HtDeg1by.cjs → processTable-DVvTpite.cjs} +1 -1
- package/dist/{processTable-CHDazqah.js → processTable-pFBZ3sr0.js} +2 -2
- package/dist/{progressBar-BP4SmPZK.cjs → progressBar-CE8Tat_F.cjs} +1 -1
- package/dist/{progressBar-C3NcWUrS.js → progressBar-CJXjo8T8.js} +2 -2
- package/dist/{progressCircle-CDqK1iFt.cjs → progressCircle-Cqjxopp0.cjs} +1 -1
- package/dist/{progressCircle-Bo9-Qva_.js → progressCircle-jhxHU2LM.js} +2 -2
- package/dist/{qrcode-VmYwvClG.js → qrcode-COU9b8jO.js} +2 -2
- package/dist/{qrcode-qD6tOm4F.cjs → qrcode-ICKNQzlF.cjs} +1 -1
- package/dist/raceBar-CpfkbT_l.cjs +2 -0
- package/dist/{raceBar-DR2-luKW.js → raceBar-DPZn5eQr.js} +109 -101
- package/dist/{rad-1Jy1KDzt.js → rad-DYSDihyX.js} +2 -2
- package/dist/{rad-D7-YZJNO.cjs → rad-MVqAl4DI.cjs} +1 -1
- package/dist/{radarMapViewer-KPhNE5XX.cjs → radarMapViewer-DSEst_zr.cjs} +1 -1
- package/dist/{radarMapViewer-ByQXe0Mu.js → radarMapViewer-DT-cLDqj.js} +2 -2
- package/dist/{rainfallFilterBar-C1obotPf.js → rainfallFilterBar-BH4y-ZiG.js} +2 -2
- package/dist/{rainfallFilterBar-CVQpQp82.cjs → rainfallFilterBar-DBckf4TU.cjs} +1 -1
- package/dist/{rainfallTimeCurve-DU2tt-Ls.cjs → rainfallTimeCurve-BLPYjZne.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B2rEx3T_.js → rainfallTimeCurve-CEROEYQa.js} +3 -3
- package/dist/{rangeLin-COsJkCky.cjs → rangeLin-CAWXiFqA.cjs} +1 -1
- package/dist/{rangeLin-CdfUCFQr.js → rangeLin-D5m33pm3.js} +2 -2
- package/dist/{realtimeEvolutionMap-B7GT8MOq.cjs → realtimeEvolutionMap-7YXQpGQV.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-aR63xPW_.js → realtimeEvolutionMap-B_WyUQ7o.js} +2 -2
- package/dist/{regionBar-DB-secNe.js → regionBar-BklMVV2U.js} +2 -2
- package/dist/{regionBar-BYF7IaGA.cjs → regionBar-CRE0mrBK.cjs} +1 -1
- package/dist/{request-CBsG4ipL.js → request-Bu96_fCa.js} +1 -1
- package/dist/{request-CvdHjG34.cjs → request-C_dGr-al.cjs} +1 -1
- package/dist/{retainer1-CMzTlM5Z.js → retainer1-C9XjKFwo.js} +3 -3
- package/dist/{retainer1-1CFk4InO.cjs → retainer1-CSONW25j.cjs} +1 -1
- package/dist/{retainer2-DW4ewYX7.js → retainer2-Nohg83dY.js} +3 -3
- package/dist/{retainer2-DliOH7it.cjs → retainer2-pxQIRn6B.cjs} +1 -1
- package/dist/{retainerRecordList-DV7Tx39d.cjs → retainerRecordList-B7mJ2EWt.cjs} +1 -1
- package/dist/{retainerRecordList-Bcm6leuD.js → retainerRecordList-D7ZTrf1N.js} +2 -2
- package/dist/{retainerRecordListAPP-BDRwp8T3.js → retainerRecordListAPP-C5v2ahXJ.js} +2 -2
- package/dist/{retainerRecordListAPP-CJ-u0Tj2.cjs → retainerRecordListAPP-D-YaMhTT.cjs} +1 -1
- package/dist/{ringTopN-rd2UwH9f.cjs → ringTopN-CxZDBUkx.cjs} +1 -1
- package/dist/{ringTopN-Duq0pzm_.js → ringTopN-n0TONMcf.js} +2 -2
- package/dist/{riskRegionTable-CbPB8mlY.cjs → riskRegionTable-Byb0Z693.cjs} +1 -1
- package/dist/{riskRegionTable-BE_ggcEV.js → riskRegionTable-CBddIShe.js} +2 -2
- package/dist/{sankey-BqBn6_rx.cjs → sankey-BlIAPski.cjs} +1 -1
- package/dist/{sankey-CnKm9PZe.js → sankey-D6XWVSSp.js} +2 -2
- package/dist/{scd-BaBLoem8.js → scd-B-DnzdLf.js} +2 -2
- package/dist/{scd-BgJ5P7co.cjs → scd-CW_VLAdy.cjs} +1 -1
- package/dist/{sideMenu-CUal1UQY.js → sideMenu-B4NRCYfC.js} +2 -2
- package/dist/{sideMenu-BgiQL2P1.cjs → sideMenu-DCz3bw5f.cjs} +1 -1
- package/dist/{slopeStability-Y2tDzJeh.cjs → slopeStability-C-vWRW5q.cjs} +1 -1
- package/dist/{slopeStability-B9YbQLCE.js → slopeStability-D5OmQDgi.js} +2 -2
- package/dist/{speedCurve-Kll2RRJ8.cjs → speedCurve-D6uG-gFp.cjs} +1 -1
- package/dist/{speedCurve-DERBMtE1.js → speedCurve-tvLBjNoJ.js} +2 -2
- package/dist/{stressFilterBar-BGI4gVfE.cjs → stressFilterBar-BQYqGIRB.cjs} +1 -1
- package/dist/{stressFilterBar-CHRWFnpP.js → stressFilterBar-aj-X6HC9.js} +2 -2
- package/dist/{stressTimeCurve-DE5KiXEt.cjs → stressTimeCurve-B0Gplbam.cjs} +1 -1
- package/dist/{stressTimeCurve-hrlqSYS3.js → stressTimeCurve-DC8cKQ52.js} +3 -3
- package/dist/{swiper-CnGllhBQ.cjs → swiper-CDdx8LXl.cjs} +1 -1
- package/dist/{swiper-DNHC412s.js → swiper-yrpsF9po.js} +2 -2
- package/dist/{terminalConfigList-C45EANO4.cjs → terminalConfigList-NmdMNFkS.cjs} +1 -1
- package/dist/{terminalConfigList-BlHAsyCm.js → terminalConfigList-VU0kGVKY.js} +2 -2
- package/dist/{terminalList-UGjkhyf4.js → terminalList-BAYA-Ac0.js} +2 -2
- package/dist/{terminalList-CNI3_FGb.cjs → terminalList-BsHqVc8x.cjs} +1 -1
- package/dist/{terminalListAPP-6fPXF-yJ.cjs → terminalListAPP-CsFu8juA.cjs} +1 -1
- package/dist/{terminalListAPP-CIJZMdxI.js → terminalListAPP-o2MxJO3g.js} +2 -2
- package/dist/{textbox-yNPnOaan.cjs → textbox-5BUkzLTc.cjs} +1 -1
- package/dist/{textbox-BD_LQ0EN.js → textbox-B4Mo8FWS.js} +2 -2
- package/dist/{timeQueryBar-B-uPtN25.js → timeQueryBar-B0LIBA90.js} +1 -1
- package/dist/{timeQueryBar-3qiV0IV9.cjs → timeQueryBar-G4hUPdC2.cjs} +1 -1
- package/dist/{timeSeries-DdQI4oZU.js → timeSeries-Ch4UV0P1.js} +3 -3
- package/dist/{timeSeries-BTUuojvj.cjs → timeSeries-DC_CbU3l.cjs} +1 -1
- package/dist/{timeSeriesCurve-TGXshTzl.js → timeSeriesCurve-BF10Q_7c.js} +3 -3
- package/dist/{timeSeriesCurve-Cj_FbK4x.cjs → timeSeriesCurve-CJSHo8qO.cjs} +1 -1
- package/dist/{toggleBtn-BMxqm5WG.js → toggleBtn-BhILbiNf.js} +2 -2
- package/dist/{toggleBtn-BXcQfnTB.cjs → toggleBtn-DQ2sHyaB.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-CqoKO0hL.cjs → trajectoryConfigPanel-BgSmlQkD.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-uRLWdXUb.js → trajectoryConfigPanel-BlqriMc7.js} +1 -1
- package/dist/{trajectoryScatter-DPE4cC8N.js → trajectoryScatter-BL2aiBf-.js} +2 -2
- package/dist/{trajectoryScatter-Dph8PSdN.cjs → trajectoryScatter-CeX4LQpn.cjs} +1 -1
- package/dist/{universalConfigPanel-CI1CuBmr.js → universalConfigPanel-CLKhwJP4.js} +1 -1
- package/dist/{universalConfigPanel-Db-pC67o.cjs → universalConfigPanel-NMan3ddE.cjs} +1 -1
- package/dist/{universalTable-DMrgtBrw.js → universalTable-CEmD-HRB.js} +2 -2
- package/dist/{universalTable-dQObEQog.cjs → universalTable-thYFp4vt.cjs} +1 -1
- package/dist/{video-DbsKQhVD.cjs → video-8idiBjxG.cjs} +1 -1
- package/dist/{video-DEhLie80.js → video-t1nUpAcT.js} +2 -2
- package/dist/{videoMonitor-DLBtivXO.cjs → videoMonitor-BEeCMVJf.cjs} +1 -1
- package/dist/{videoMonitor-BS6_LYUb.js → videoMonitor-PM3-BUjQ.js} +2 -2
- package/dist/{vlu-DaSjPY3I.js → vlu-CE181id-.js} +2 -2
- package/dist/{vlu-DXk_wQf-.cjs → vlu-o3-SObwR.cjs} +1 -1
- package/dist/{warningOverview-CKCEs_Jj.js → warningOverview-CKcMNgw-.js} +3 -3
- package/dist/{warningOverview-DAUlXzr0.cjs → warningOverview-CbJfW5ek.cjs} +1 -1
- package/dist/{weather-XUj6pFwM.js → weather-D3LQY9qO.js} +2 -2
- package/dist/{weather-BAI0IWNH.cjs → weather-a0CGhe9q.cjs} +1 -1
- package/dist/{windLin-C9dsCT1w.cjs → windLin-Cg58bRj3.cjs} +1 -1
- package/dist/{windLin-Bt4q2eUT.js → windLin-D7qqnbNz.js} +2 -2
- package/package.json +1 -1
- package/dist/raceBar-uAs91hyk.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,H=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var b=(n,r,a)=>r in n?$(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,M=(n,r)=>{for(var a in r||(r={}))j.call(r,a)&&b(n,a,r[a]);if(T)for(var a of T(r))W.call(r,a)&&b(n,a,r[a]);return n},O=(n,r)=>H(n,z(r));var x=(n,r,a)=>new Promise((k,E)=>{var p=s=>{try{d(a.next(s))}catch(h){E(h)}},i=s=>{try{d(a.throw(s))}catch(h){E(h)}},d=s=>s.done?k(s.value):Promise.resolve(s.value).then(p,i);d((a=a.apply(n,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Z=require("./BaseComponent-
|
|
1
|
+
"use strict";var $=Object.defineProperty,H=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var b=(n,r,a)=>r in n?$(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,M=(n,r)=>{for(var a in r||(r={}))j.call(r,a)&&b(n,a,r[a]);if(T)for(var a of T(r))W.call(r,a)&&b(n,a,r[a]);return n},O=(n,r)=>H(n,z(r));var x=(n,r,a)=>new Promise((k,E)=>{var p=s=>{try{d(a.next(s))}catch(h){E(h)}},i=s=>{try{d(a.throw(s))}catch(h){E(h)}},d=s=>s.done?k(s.value):Promise.resolve(s.value).then(p,i);d((a=a.apply(n,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Z=require("./BaseComponent-B5ivgb3E.cjs"),g=require("./index-DYr57ceS.cjs"),v=require("element-plus"),D=require("./ele-vdo-icon-Bgp9gaT6.cjs"),G={class:"mix-body"},K={class:"upload-content"},J={class:"upload-title"},Q={key:0,class:"upload-hint"},X={key:1,class:"upload-formats"},Y={key:1,class:"stream-input-area"},ee={class:"stream-content"},te={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},oe={key:0,class:"stream-input-container"},ae=["disabled"],le={key:1,class:"stream-hint"},ne={key:2,class:"stream-hint"},re={key:2,class:"player-container"},se={key:0,class:"audio-controls"},ie={class:"file-info"},ce={class:"file-name"},de={class:"audio-container"},ue=["src","controls","autoplay","loop","muted"],pe={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"音频播放器",NAME_EN:"Audio Player",ORDER:2,PLATFORM:["pc","screen","mobile"]},me={sourceType:{value:"upload",type:"select",label:"component.audio.sourceType",options:[{label:"component.audio.uploadFile",value:"upload"},{label:"component.audio.audioStream",value:"stream"}]},autoplay:!1,loop:!1,muted:!1,controls:!0,fileUrl:{value:"",type:"string",label:"component.audio.fileUrl",placeholder:"component.audio.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.audio.fileName",placeholder:"component.audio.uploadPlaceholder"},streamUrl:{value:"",type:"string",label:"component.audio.streamUrl",placeholder:"component.audio.streamPlaceholder"}},fe=[],ve=[],ye=[],ge=null,Ee={DEFAULT:pe,OPTIONS:me,DATA:fe,PARAMS:ve,SOURCE:ye,COMMON:ge},he=e.defineComponent(O(M({},Ee),{__name:"audio",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const r=g.useCounterStore(),a=n;class k extends Z.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),autoplay:this.getOptionValue("autoplay",!1),loop:this.getOptionValue("loop",!1),muted:this.getOptionValue("muted",!1),controls:this.getOptionValue("controls",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),I()}}const E=new k(a,"audio");E.setupLifecycle();const p=E.getStyle(),i=e.ref(""),d=e.ref(""),s=e.ref(null),h=e.ref(null),w=e.ref(!1),m=e.ref(""),y=e.getCurrentInstance(),N=e.computed(()=>{var o,t,l;return((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.sourceType)==null?void 0:l.value)||"upload"}),I=()=>{var o,t,l,c,u,f,C;N.value==="upload"&&((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value)&&(i.value=a.conf.options.fileUrl.value,d.value=((c=a.conf.options.fileName)==null?void 0:c.value)||""),N.value==="stream"&&((C=(f=(u=a.conf)==null?void 0:u.options)==null?void 0:f.streamUrl)!=null&&C.value)&&(m.value=a.conf.options.streamUrl.value,A())},R=()=>{var o;(o=s.value)==null||o.click()},S=o=>x(null,null,function*(){var c,u;const t=o.target.files[0];if(!t)return;if(!t.type.startsWith("audio/")){v.ElMessage.warning("请选择有效的音频文件");return}const l=URL.createObjectURL(t);i.value=l,d.value=t.name;try{w.value=!0;const f=yield g.fileToDataUrl(t),C=g.getFileExtension(t.name),V=yield g.api.post("upload",{dashboard_uid:r.pageData.id,file_data:f,file_type:C,user_id:((c=r.session.userInfo)==null?void 0:c.id)||""},!0);if(V.code===200&&((u=V.result)!=null&&u.relative_path)){const L=g.FILE_URL+V.result.relative_path;URL.revokeObjectURL(l),i.value=L,_("fileUrl",L),_("fileName",V.result.file_name||t.name),v.ElMessage.success("音频上传成功")}else throw new Error(V.msg||"上传失败")}catch(f){console.error("音频上传失败:",f),v.ElMessage.error("音频上传失败: "+(f.message||"未知错误"))}finally{w.value=!1,s.value&&(s.value.value="")}}),A=()=>{if(!m.value.trim()){v.ElMessage.warning("请输入音频流地址");return}const o=m.value.trim();_("streamUrl",o),i.value=o,d.value="音频流",v.ElMessage.success("音频流连接成功")},_=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},B=o=>{o.preventDefault(),o.stopPropagation()},U=o=>{var l;o.preventDefault(),o.stopPropagation();const t=(l=o.dataTransfer)==null?void 0:l.files;if(t&&t.length>0){const c=t[0];if(c!=null&&c.type.startsWith("audio/")){const u=new DataTransfer;u.items.add(c),s.value&&(s.value.files=u.files,S({target:s.value}))}else v.ElMessage.warning("请选择有效的音频文件")}},P=()=>{i.value="",d.value="",m.value=""},F=()=>{console.log("Audio metadata loaded")},q=o=>{console.error("Audio error:",o),v.ElMessage.error("音频加载失败,请检查URL或文件")};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=y==null?void 0:y.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",B),l.addEventListener("drop",U))}}),e.onBeforeUnmount(()=>{var t,l;const o=(l=(t=y==null?void 0:y.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",B),o.removeEventListener("drop",U))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(p).radiusSize}px`})},[e.createElementVNode("div",G,[!i.value&&N.value==="upload"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":n.mode==="preview"}]),onClick:t[0]||(t[0]=l=>n.mode!=="preview"&&R())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:s,type:"file",accept:"audio/*",onChange:S,style:{display:"none"}},null,544),e.createElementVNode("div",K,[t[3]||(t[3]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,3V13.55C11.41,13.21 10.73,13 10,13A3,3 0 0,0 7,16A3,3 0 0,0 10,19A3,3 0 0,0 13,16V7H18V5H12V3Z"})])],-1)),e.createElementVNode("h3",J,e.toDisplayString(n.mode==="preview"?o.$t("component.audio.noFile"):o.$t("component.audio.uploadText")),1),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",Q,e.toDisplayString(o.$t("component.audio.uploadHint")),1)):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",X,[...t[2]||(t[2]=[e.createElementVNode("span",{class:"format-tag"},"MP3",-1),e.createElementVNode("span",{class:"format-tag"},"WAV",-1),e.createElementVNode("span",{class:"format-tag"},"OGG",-1),e.createElementVNode("span",{class:"format-tag"},"AAC",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),!i.value&&N.value==="stream"?(e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",ee,[(e.openBlock(),e.createElementBlock("svg",te,[...t[4]||(t[4]=[e.createElementVNode("path",{d:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},null,-1)])])),t[5]||(t[5]=e.createElementVNode("p",{class:"stream-text"},"音频流播放",-1)),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",oe,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>m.value=l),type:"text",class:"stream-url-input",placeholder:"请输入音频流地址,如:http://xxx/radio/stream.mp3",onKeyup:e.withKeys(A,["enter"])},null,544),[[e.vModelText,m.value]]),e.createElementVNode("button",{class:"connect-btn",onClick:A,disabled:!m.value.trim()}," 连接 ",8,ae)])):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",le,"支持格式: HTTP音频流")):e.createCommentVNode("",!0),n.mode==="preview"?(e.openBlock(),e.createElementBlock("p",ne,"未配置音频流地址")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",re,[n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",ie,[e.createElementVNode("span",ce,e.toDisplayString(d.value||i.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:P,title:"更换文件"},[...t[6]||(t[6]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",de,[e.createElementVNode("audio",{ref_key:"audioRef",ref:h,src:i.value,controls:e.unref(p).controls,autoplay:e.unref(p).autoplay,loop:e.unref(p).loop,muted:e.unref(p).muted,onLoadedmetadata:F,onError:q,class:"audio-element"}," 您的浏览器不支持音频播放 ",40,ue)])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),Ve=g._export_sfc(he,[["__scopeId","data-v-31a1a938"]]);exports.default=Ve;
|
|
@@ -27,8 +27,8 @@ var B = (s, n, o) => new Promise((b, w) => {
|
|
|
27
27
|
p((o = o.apply(s, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as Q, ref as C, getCurrentInstance as X, computed as Y, onMounted as ee, onBeforeUnmount as te, openBlock as u, createElementBlock as d, normalizeStyle as oe, unref as S, createElementVNode as l, normalizeClass as ae, toDisplayString as O, createCommentVNode as m, withDirectives as le, withKeys as se, vModelText as ne, renderSlot as ie } from "vue";
|
|
30
|
-
import { B as re } from "./BaseComponent-
|
|
31
|
-
import { u as ue, i as de, j as ce, a as pe, F as me, _ as fe } from "./index-
|
|
30
|
+
import { B as re } from "./BaseComponent-DtvXBQYf.js";
|
|
31
|
+
import { u as ue, i as de, j as ce, a as pe, F as me, _ as fe } from "./index-BueGUjcH.js";
|
|
32
32
|
import { ElMessage as g } from "element-plus";
|
|
33
33
|
import { A as ve, D as ye } from "./ele-vdo-icon-DcWebTR5.js";
|
|
34
34
|
const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class: "upload-title" }, Ce = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty,W=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var U=(p,s,d)=>s in p?V(p,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[s]=d,O=(p,s)=>{for(var d in s||(s={}))B.call(s,d)&&U(p,d,s[d]);if(I)for(var d of I(s))R.call(s,d)&&U(p,d,s[d]);return p},_=(p,s)=>W(p,q(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),h=require("./index-
|
|
1
|
+
"use strict";var V=Object.defineProperty,W=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var U=(p,s,d)=>s in p?V(p,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[s]=d,O=(p,s)=>{for(var d in s||(s={}))B.call(s,d)&&U(p,d,s[d]);if(I)for(var d of I(s))R.call(s,d)&&U(p,d,s[d]);return p},_=(p,s)=>W(p,q(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),h=require("./index-DYr57ceS.cjs");require("element-plus");const j=require("./EChartComponentBase-ChoVZ7wg.cjs"),P=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-bar-icon-V94clxg_.cjs"),$=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),L=require("./installCanvasRenderer-CyhM1Qpl.cjs"),X=require("./install-C8buXQPI.cjs"),M=require("./install-Ch5d8i37.cjs"),H={class:"mix-body"},G=["id"],K={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"基础柱状图",NAME_EN:"Bar Chart",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},Q=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1}],Y=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:h.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],Z=["mosaic","statistics","calculate"],tt={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},et={DEFAULT:K,OPTIONS:J,DATA:Q,PARAMS:Y,SOURCE:Z,COMMON:tt},it=n.defineComponent(_(O({},et),{__name:"bar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){L.use([$.install,F.install,L.install,X.install,L.install$1,M.install]);const s=p,d=h.useLinkStore();class k extends j.EChartComponentBase{extractStyles(){return _(O({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,e=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:e.data.map(o=>o.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:o=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(o))return o;const[a,i]=o.split(" ");return`${a}
|
|
2
2
|
${i}`},color:t.textColor,fontSize:t.textSize}}],yAxis:[{type:"value",nameGap:10,nameTextStyle:{align:"right"},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitNumber:4}],series:this.formatSeries()}}getFixedStatisticsXLabels(){var i;const{data:t,common:e}=this.props.conf,o=(e==null?void 0:e.source)||"mosaic",a=(i=t[0])==null?void 0:i.periodUnit;return["statistics","calculate"].includes(o)&&a&&!String(a).startsWith("near")?h.getStatisticsTimeUnitLabel(a):null}getXAxisData(){var t;return(t=this.getFixedStatisticsXLabels())!=null?t:this.getTimeAxis()}formatSeries(){const t=this.props.conf,e=this.Style.value,o=this.getFixedStatisticsXLabels(),a=o?o.length:e.points;return t.data.map((i,c)=>{const r=i.color||h.COLORS[c];return{type:"bar",data:h.getRandomArr({num:a,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()}),name:i.name,itemStyle:{color:r},label:{show:e.showLabel,position:"top",color:e.textColor},barWidth:e.barWidth+"%"}})}setSocketData(t){var x;if(!this.hasData()||!this.chartObj||!t)return;const{data:e,common:o}=this.props.conf,a=o.source||"mosaic",i=this.chartObj.getOption(),c=(x=e[0])==null?void 0:x.periodUnit,r=["statistics","calculate"].includes(a)&&c&&!String(c).startsWith("near");if(e.forEach((u,S)=>{const g=this.extractDataValue(t,u.fv);if(["statistics","calculate"].includes(a)&&u.periodUnit&&!String(u.periodUnit).startsWith("near")&&!String(u.periodUnit).startsWith("last")){const b=h.statisticsSocketTimeToXAxisLabel(t.start_time,u.periodUnit),A=b?i.xAxis[0].data.indexOf(b):-1;A>=0&&(i.series[S].data[A]=g);return}const C=["statistics","calculate"].includes(a)?t.start_time:t.datetime;C!=null&&(S===0&&i.xAxis[0].data.push(C),i.series[S].data.push(g))}),r){this.updateChart(i);return}const l=h.addRealtimeData(i.xAxis[0].data,i.series.map(u=>u.data)),f=Number(this.Style.value.points)||10;i.xAxis[0].data=l.times.slice(-f),i.series.forEach((u,S)=>{var g;u.data=((g=l.data[S])==null?void 0:g.slice(-f))||[]}),this.updateChart(i)}setHistoryData(t){if(!t||!(t!=null&&t.length))return;const e=this.chartObj.getOption(),o=Number(this.Style.value.points)||10,{data:a}=this.props.conf,i=r=>{if(r==null||r===""||r==="-")return null;const l=Number(r);return Number.isFinite(l)?l:null},c=this.getFixedStatisticsXLabels();if(c!=null&&c.length){e.xAxis[0].data=[...c],t.forEach((r,l)=>{var C;if(!e.series[l])return;const f=a[l],x=(f==null?void 0:f.periodUnit)||((C=a[0])==null?void 0:C.periodUnit),u=new Array(c.length).fill(null),S=r.time||[],g=r.data||[];for(let b=0;b<S.length;b++){const A=h.statisticsSocketTimeToXAxisLabel(S[b],String(x||"")),v=A?c.indexOf(A):-1;v>=0&&(u[v]=i(g[b]))}e.series[l].data=u}),this.updateChart(e);return}e.xAxis[0].data=t[0].time.slice(-o),t.forEach((r,l)=>{if(!e.series[l])return;const f=r.data||[];e.series[l].data=f.map(i).slice(-o)}),this.updateChart(e)}}const m=new k(s,"bar");m.setupLifecycle();const E=h.useCounterStore();n.onMounted(()=>{var y;if(E.registerInstance(s.uid,m),s.mode==="preview"){const t=((y=m.getChartInstance)==null?void 0:y.call(m))||m.chartObj;t==null||t.off("click"),t==null||t.on("click",e=>{var a,i,c,r,l,f;const o=e==null?void 0:e.seriesName;if(typeof o=="string"&&o){const x=((i=(a=s.conf)==null?void 0:a.options)==null?void 0:i.linkChannel)==="custom"?(r=(c=s.conf)==null?void 0:c.options)==null?void 0:r.customChannel:(f=(l=s.conf)==null?void 0:l.options)==null?void 0:f.linkChannel;d.publish(x||"bar","bar",{objectId:"",deviceId:"",type:"select",fieldKey:o,fv:O({key:o},e),source:"bar"})}})}}),n.onUnmounted(()=>{E.unregisterInstance(s.uid)});const T=m.getStyle(),w=m.getEchartId(),N=s.conf,z=n.computed(()=>P.generateTitleStyle(s.conf.options));return(y,t)=>(n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(T).bgColor,borderRadius:`${n.unref(T).radiusSize}px`})},[n.createElementVNode("div",{class:"mix-title",style:n.normalizeStyle(z.value)},n.toDisplayString(n.unref(N).caption||n.unref(N).name),5),n.createElementVNode("div",H,[n.createElementVNode("div",{class:"w-full h-full",id:n.unref(w)},null,8,G)]),n.renderSlot(y.$slots,"default",{},void 0,!0)],4))}})),st=h._export_sfc(it,[["__scopeId","data-v-dfea5aa2"]]);exports.default=st;
|
|
@@ -11,9 +11,9 @@ var N = (u, s, c) => s in u ? W(u, s, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return u;
|
|
12
12
|
}, O = (u, s) => R(u, $(s));
|
|
13
13
|
import { defineComponent as P, onMounted as V, onUnmounted as F, computed as X, openBlock as M, createElementBlock as H, normalizeStyle as k, unref as C, createElementVNode as _, toDisplayString as q, renderSlot as G } from "vue";
|
|
14
|
-
import { D as K, l as J, u as Q, n as Y, C as Z, o as tt, s as v, q as et, _ as it } from "./index-
|
|
14
|
+
import { D as K, l as J, u as Q, n as Y, C as Z, o as tt, s as v, q as et, _ as it } from "./index-BueGUjcH.js";
|
|
15
15
|
import "element-plus";
|
|
16
|
-
import { E as st } from "./EChartComponentBase-
|
|
16
|
+
import { E as st } from "./EChartComponentBase-c7NzErOu.js";
|
|
17
17
|
import { g as ot } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { A as at, D as nt } from "./ele-bar-icon-C-GiCs2a.js";
|
|
19
19
|
import { i as rt } from "./install-DdM8j5Ll.js";
|
|
@@ -30,8 +30,8 @@ import { ElIcon as St } from "element-plus/es";
|
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/icon/style/css";
|
|
32
32
|
import { openBlock as D, createElementBlock as I, normalizeStyle as K, normalizeClass as Ot, createCommentVNode as $, renderSlot as q, defineComponent as Pt, getCurrentInstance as zt, computed as dt, reactive as Tt, ref as G, unref as L, createElementVNode as E, toDisplayString as N, createVNode as Q, withCtx as U, Fragment as Et, renderList as At, createBlock as Dt, withModifiers as It } from "vue";
|
|
33
|
-
import { B as Nt } from "./BaseComponent-
|
|
34
|
-
import { a as pt, _ as Rt } from "./index-
|
|
33
|
+
import { B as Nt } from "./BaseComponent-DtvXBQYf.js";
|
|
34
|
+
import { a as pt, _ as Rt } from "./index-BueGUjcH.js";
|
|
35
35
|
import { g as Zt } from "./titleStyle-BT5GlpAb.js";
|
|
36
36
|
import { Close as jt } from "@element-plus/icons-vue";
|
|
37
37
|
import { A as Lt, D as Ft } from "./ele-bmp-icon-Pdolk1J5.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var pt=Object.defineProperty,ht=Object.defineProperties;var mt=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var J=(t,r,i)=>r in t?pt(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,U=(t,r)=>{for(var i in r||(r={}))ft.call(r,i)&&J(t,i,r[i]);if(K)for(var i of K(r))gt.call(r,i)&&J(t,i,r[i]);return t},$=(t,r)=>ht(t,mt(r));var tt=(t,r,i)=>new Promise((h,_)=>{var v=e=>{try{s(i.next(e))}catch(o){_(o)}},n=e=>{try{s(i.throw(e))}catch(o){_(o)}},s=e=>e.done?h(e.value):Promise.resolve(e.value).then(v,n);s((i=i.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vt=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/icon/style/css");const w=require("vue"),yt=require("./BaseComponent-BmhMoM4H.cjs"),V=require("./index-77aUdspY.cjs"),_t=require("./titleStyle-NSnz6cUg.cjs"),bt=require("@element-plus/icons-vue"),et=require("./ele-bmp-icon-BBI0-SX7.cjs"),it=3.141592653589793*3e3/180,T=3.141592653589793,nt=6378245,ot=.006693421622965943;function wt(t,r){var i=Math.sqrt(t*t+r*r)+2e-5*Math.sin(r*it),h=Math.atan2(r,t)+3e-6*Math.cos(t*it),_=i*Math.cos(h)+.0065,v=i*Math.sin(h)+.006;return[_,v]}function Mt(t,r){if(kt(t,r))return[t,r];{var i=Ct(t-105,r-35),h=Bt(t-105,r-35),_=r/180*T,v=Math.sin(_);v=1-ot*v*v;var n=Math.sqrt(v);i=i*180/(nt*(1-ot)/(v*n)*T),h=h*180/(nt/n*Math.cos(_)*T);const s=r+i;return[t+h,s]}}function xt(t,r){const i=Mt(t,r);return wt(i[0],i[1])}function Ct(t,r){var i=-100+2*t+3*r+.2*r*r+.1*t*r+.2*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*T)+20*Math.sin(2*t*T))*2/3,i+=(20*Math.sin(r*T)+40*Math.sin(r/3*T))*2/3,i+=(160*Math.sin(r/12*T)+320*Math.sin(r*T/30))*2/3,i}function Bt(t,r){var i=300+t+2*r+.1*t*t+.1*t*r+.1*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*T)+20*Math.sin(2*t*T))*2/3,i+=(20*Math.sin(t*T)+40*Math.sin(t/3*T))*2/3,i+=(150*Math.sin(t/12*T)+300*Math.sin(t/30*T))*2/3,i}function kt(t,r){return t<72.004||t>137.8347||r<.8293||r>55.8271||!1}var St={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]};function lt(t,r){const i=r||St[this.$options.name];i&&i.forEach(h=>{let v=h.slice(0,2)==="on"?h.slice(2):h;const n=this.$attrs["on"+v.replace(v[0],v[0].toUpperCase())];n&&t.addEventListener(h,n)})}function G(t,r={}){const{lng:i,lat:h}=r;return new t.Point(i,h)}function D(t,r={}){const{width:i,height:h}=r;return new t.Size(i,h)}function rt(t,r={}){const{url:i,size:h,opts:_={}}=r;let v={anchor:_.anchor&&D(t,_.anchor),imageSize:_.imageSize&&D(t,_.imageSize),imageOffset:_.imageOffset&&D(t,_.imageOffset),infoWindowAnchor:_.infoWindowAnchor&&D(t,_.infoWindowAnchor),printImageUrl:_.printImageUrl};return Q(v),new t.Icon(i,D(t,h),v)}function Ot(t,r={}){const{content:i,opts:h}=r;let _={offset:h.offset&&D(t,h.offset),position:h.position&&G(t,h.position),enableMassClear:h.enableMassClear};return Q(_),new t.Label(i,_)}const at=t=>Object.prototype.toString.call(t).slice(8,-1),Q=t=>{Object.keys(t).forEach(r=>{typeof t[r]=="undefined"&&delete t[r]})};let W={v:"3.0",type:"API"};const Et=(t={})=>{W=Object.assign(W,t),W.ak||console.error("请配置ak:百度地图开发者平台申请的密钥")},N=()=>W;var Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},X={exports:{}};function Y(){}Y.prototype={on:function(t,r,i){var h=this.e||(this.e={});return(h[t]||(h[t]=[])).push({fn:r,ctx:i}),this},once:function(t,r,i){var h=this;function _(){h.off(t,_),r.apply(i,arguments)}return _._=r,this.on(t,_,i)},emit:function(t){var r=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),h=0,_=i.length;for(h;h<_;h++)i[h].fn.apply(i[h].ctx,r);return this},off:function(t,r){var i=this.e||(this.e={}),h=i[t],_=[];if(h&&r)for(var v=0,n=h.length;v<n;v++)h[v].fn!==r&&h[v].fn._!==r&&_.push(h[v]);return _.length?i[t]=_:delete i[t],this}};X.exports=Y;X.exports.TinyEmitter=Y;var Pt=X.exports,L=new Pt,I={$on:(...t)=>L.on(...t),$once:(...t)=>L.once(...t),$off:(...t)=>L.off(...t),$emit:(...t)=>L.emit(...t)};const st={API:{"2.0":{setMapStyle:"setMapStyle",NavigationControl:"NavigationControl"},"3.0":{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl"}},WebGL:{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl3D"}},F=t=>{const r=N();return r.type=="WebGL"?st[r.type][t]:st[r.type][r.v][t]};let ut;new Promise(t=>{ut=t});var q=(t,r)=>{const i=t.__vccOpts||t;for(const[h,_]of r)i[h]=_;return i};const zt={name:"bm-map",inheritAttrs:!1,emits:["ready","init","animationed"],props:{ak:{type:String},v:{type:String},type:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object},hasAnimation:{type:Boolean,default:!0},defaultAnimation:{type:Boolean,default:!0},preserveDrawingBuffer:{type:Boolean,default:!1}},watch:{center(t,r){const{map:i,zoom:h}=this;at(t)==="String"&&t!==r&&this.setCenterZoom(i,t,h)},"center.lng"(t,r){const{BMap:i,map:h,zoom:_,center:v}=this;t!==r&&t>=-180&&t<=180&&this.setCenterZoom(h,new i.Point(t,v.lat),_)},"center.lat"(t,r){const{BMap:i,map:h,zoom:_,center:v}=this;t!==r&&t>=-74&&t<=74&&this.setCenterZoom(h,new i.Point(v.lng,t),_)},zoom(t,r){const{map:i}=this;t!==r&&t>=3&&t<=19&&i.setZoom(t)},minZoom(t){const{map:r}=this;r.setMinZoom(t)},maxZoom(t){const{map:r}=this;r.setMaxZoom(t)},highResolution(){this.reset()},mapClick(){this.reset()},mapType(t){const{map:r}=this;r.setMapType(window[t])},dragging(t){const{map:r}=this;t?r.enableDragging():r.disableDragging()},scrollWheelZoom(t){const{map:r}=this;t?r.enableScrollWheelZoom():r.disableScrollWheelZoom()},doubleClickZoom(t){const{map:r}=this;t?r.enableDoubleClickZoom():r.disableDoubleClickZoom()},keyboard(t){const{map:r}=this;t?r.enableKeyboard():r.disableKeyboard()},inertialDragging(t){const{map:r}=this;t?r.enableInertialDragging():r.disableInertialDragging()},continuousZoom(t){const{map:r}=this;t?r.enableContinuousZoom():r.disableContinuousZoom()},pinchToZoom(t){const{map:r}=this;t?r.enablePinchToZoom():r.disablePinchToZoom()},autoResize(t){const{map:r}=this;t?r.enableAutoResize():r.disableAutoResize()},theme(t){const{map:r}=this;r[F("setMapStyle")]({styleJson:t})},mapStyle:{handler(t){const{map:r,theme:i}=this;!i&&r[F("setMapStyle")](t)},deep:!0}},methods:{setMapOptions(){const{map:t,minZoom:r,maxZoom:i,mapType:h,dragging:_,scrollWheelZoom:v,doubleClickZoom:n,keyboard:s,inertialDragging:e,continuousZoom:o,pinchToZoom:c,autoResize:p}=this;r&&t.setMinZoom(r),i&&t.setMaxZoom(i),h&&t.setMapType(window[h]),_?t.enableDragging():t.disableDragging(),v?t.enableScrollWheelZoom():t.disableScrollWheelZoom(),n?t.enableDoubleClickZoom():t.disableDoubleClickZoom(),s?t.enableKeyboard():t.disableKeyboard(),e?t.enableInertialDragging():t.disableInertialDragging(),o?t.enableContinuousZoom():t.disableContinuousZoom(),c?t.enablePinchToZoom():t.disablePinchToZoom(),p?t.enableAutoResize():t.disableAutoResize()},init(t){if(this.map)return;let r=this.$refs.view;const i=new t.Map(r,{enableHighResolution:this.highResolution,enableMapClick:this.mapClick,preserveDrawingBuffer:this.preserveDrawingBuffer}),h=Math.random().toString();this.mapKey=h,this.map=i;const{setMapOptions:_,zoom:v,getCenterPoint:n,theme:s,mapStyle:e}=this;_(),lt.call(this,i),i.reset(),this.setCenterZoom(i,n(),v),s?i[F("setMapStyle")]({styleJson:s}):e&&i[F("setMapStyle")](e);let o=0;this.$emit("init",{BMap:t,map:i,mapKey:h}),I.$emit("init",{BMap:t,map:i,mapKey:h}),i.addEventListener("tilesloaded",()=>{o||(o++,this.$emit("ready",{BMap:t,map:i,mapKey:h}),I.$emit("ready",{BMap:t,map:i,mapKey:h}))}),i.addEventListener("loaded",()=>{this.$emit("loaded",{BMap:t,map:i,mapKey:h}),I.$emit("loaded",{BMap:t,map:i,mapKey:h})})},setCenterZoom(t,r,i){N().type==="WebGL"&&(!this.hasAnimation||!this.defaultAnimation)?t.setCenter(r,{noAnimation:!this.hasAnimation,callback:()=>{t.setZoom(i,{noAnimation:!this.hasAnimation,zoomCenter:r,callback:()=>{this.$emit("animationed",{BMap:this.BMap,map:t})}})}}):t.centerAndZoom(r,i)},getCenterPoint(){const{center:t,BMap:r}=this;switch(at(t)){case"String":return t;case"Object":return new r.Point(t.lng,t.lat);default:return new r.Point}},initMap(t){this.BMap=t,this.init(t),ut(t)},getMapScript(){return window.BMap?window.BMap._preloader?window.BMap._preloader:Promise.resolve(window.BMap):(window.BMap={},window.BMap._preloader=new Promise((t,r)=>{window._initBaiduMap=function(){window.BMap=N().type=="WebGL"?window.BMapGL:window.BMap,t(window.BMap),window.document.body.removeChild(i),window.BMap._preloader=null,window._initBaiduMap=null};const i=document.createElement("script");window.document.body.appendChild(i),N().type==="WebGL"?i.src=`https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${N().ak}&callback=_initBaiduMap`:i.src=`https://api.map.baidu.com/api?v=${N().v}&ak=${N().ak}&callback=_initBaiduMap`}),window.BMap._preloader)},reset(){const{getMapScript:t,initMap:r}=this;t().then(r)}},created(){const t={};this.ak&&(t.ak=this.ak),this.v&&(t.v=this.v),this.type&&(t.type=this.type),Et(t)},mounted(){this.reset()},data(){return{hasBmView:!1,map:null,BMap:null,name:"bm-map",mapKey:""}}},Tt={key:0,ref:"view",style:{width:"100%",height:"100%"}};function At(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(t.$attrs.class),style:w.normalizeStyle(t.$attrs.style)},[_.hasBmView?w.createCommentVNode("",!0):(w.openBlock(),w.createElementBlock("div",Tt,null,512)),w.renderSlot(t.$slots,"default")],6)}var Dt=q(zt,[["render",At]]);const Nt={control:{unload:"removeControl"},layer:{unload:"removeTileLayer"},overlay:{unload:"removeOverlay"},contextMenu:{unload:"removeContextMenu"}},R=t=>t.abstract||t.name!=="bm-map"?R(t.$parent):t;function It(){const{unload:t,renderByParent:r,$parent:i,ready:h}=this;I.$off("ready",h),r&&i.reload(),t()}const Rt=(t={})=>({emits:["ready","init"],computed:{renderByParent(){return this.$parent.preventChildrenRender}},created(){const r=R(this.$parent),i=r.map,{ready:h,_init:_}=this;i?h():I.$on("ready",({mapKey:v})=>this.emitCallBack(v,h)),i?this.init({BMap:r.BMap,map:i}):I.$on("init",({mapKey:v})=>this.emitCallBack(v,_))},mounted(){const i=R(this.$parent).map,{mountedReady:h}=this;i?h():I.$on("ready",({mapKey:_})=>this.emitCallBack(_,h))},unmounted:It,methods:{emitCallBack(r,i){const h=R(this.$parent);r==h.mapKey&&i()},_init(){const r=R(this.$parent),i=this.BMap=r.BMap,h=this.map=r.map;this.init({BMap:i,map:h})},init(){},ready(){const r=R(this.$parent),i=this.BMap=r.BMap,h=this.map=r.map;this.load(),this.$emit("ready",{BMap:i,map:h})},mountedReady(){this.mountedLoad()},transmitEvent(r){this.$emit(r.type.replace(/^on/,""),r)},reload(){this&&this.BMap&&this.$nextTick(()=>{this.unload(),this.$nextTick(()=>{this.load(),this.mountedLoad()})})},unload(){const{map:r,originInstance:i}=this;try{switch(t.type){case"search":return i.clearResults();case"autoComplete":case"lushu":return i.dispose();case"markerClusterer":return i.clearMarkers();default:r[Nt[t.type].unload](i)}}catch(h){}},mountedLoad(){}}});var ct=t=>Rt({type:t});const Zt={name:"bm-marker",mixins:[ct("overlay")],inject:{Cluster:{default:()=>({})}},props:{position:{},offset:{},icon:{},massClear:{type:Boolean,default:!0},dragging:{type:Boolean,default:!1},clicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{type:String},rotation:{type:Number},shadow:{type:Object},title:{type:String},label:{type:Object},animation:{type:String},top:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},watch:{"position.lng"(t,r){const{BMap:i,originInstance:h,position:_,renderByParent:v,$parent:n}=this;t!==r&&t>=-180&&t<=180&&h.setPosition(G(i,{lng:t,lat:_.lat})),v&&n.reload()},"position.lat"(t,r){const{BMap:i,originInstance:h,position:_,renderByParent:v,$parent:n}=this;t!==r&&t>=-74&&t<=74&&h.setPosition(G(i,{lng:_.lng,lat:t})),v&&n.reload()},"offset.width"(t,r){const{BMap:i,originInstance:h}=this;t!==r&&h.setOffset(new i.Size(t,this.offset.height))},"offset.height"(t,r){const{BMap:i,originInstance:h}=this;t!==r&&h.setOffset(new i.Size(this.offset.width,t))},icon:{deep:!0,handler(t){const{BMap:r,originInstance:i,rotation:h}=this;i&&i.setIcon(rt(r,t)),h&&i&&i.setRotation(h)}},massClear(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},dragging(t){t?this.originInstance.enableDragging():this.originInstance.disableDragging()},clicking(){this.reload()},raiseOnDrag(){this.reload()},draggingCursor(t){this.originInstance.setDraggingCursor(t)},rotation(t){this.originInstance.setRotation(t)},shadow(t){this.originInstance.setShadow(t)},title(t){this.originInstance.setTitle(t)},label(t){this.reload()},animation(t){this.originInstance.setAnimation(window[t])},top(t){this.originInstance.setTop(t)},zIndex(t){this.originInstance.setZIndex(t)}},methods:{load(){var t,r;const{BMap:i,map:h,position:_,offset:v,icon:n,massClear:s,dragging:e,clicking:o,raiseOnDrag:c,draggingCursor:p,rotation:f,shadow:a,title:d,label:y,animation:x,top:u,renderByParent:B,$parent:O,zIndex:z}=this;let k={offset:v,icon:n&&rt(i,n),enableMassClear:s,enableDragging:e,enableClicking:o,raiseOnDrag:c,draggingCursor:p,rotation:f,shadow:a,title:d};Q(k);const l=new i.Marker(new i.Point(_.lng,_.lat),k);this.originInstance=l,y&&l&&l.setLabel(Ot(i,y)),l.setTop(u),l.setZIndex(z),lt.call(this,l),B?O.reload():h.addOverlay(l),l.setAnimation(window[x]),(r=(t=this.Cluster)==null?void 0:t.addMaker)==null||r.call(t,this)}},beforeUnmount(){var t,r;(r=(t=this.Cluster)==null?void 0:t.removeMaker)==null||r.call(t,this)}};function jt(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("div",null,[w.renderSlot(t.$slots,"default")])}var Lt=q(Zt,[["render",jt]]),dt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){var i=typeof window!="undefined"?window:typeof Z!="undefined"?Z:this;function h(a,d){return d={exports:{}},a(d,d.exports,i),d.exports}var _=h(function(a,d,y){(function(x,u){typeof d=="object"?a.exports=u():(x.BMapLib=x.BMapLib||{},x.BMapLib.TextIconOverlay=x.BMapLib.TextIconOverlay||u())})(i,function(){var x,u=x=u||{version:"1.3.8"},B={};u.guid="$BAIDU$",B[u.guid]=B[u.guid]||{},u.dom=u.dom||{},u.dom.g=function(l){return typeof l=="string"||l instanceof String?document.getElementById(l):l&&l.nodeName&&(l.nodeType==1||l.nodeType==9)?l:null},u.g=u.G=u.dom.g,u.dom.getDocument=function(l){return l=u.dom.g(l),l.nodeType==9?l:l.ownerDocument||l.document},u.lang=u.lang||{},u.lang.isString=function(l){return Object.prototype.toString.call(l)=="[object String]"},u.isString=u.lang.isString,u.dom._g=function(l){return u.lang.isString(l)?document.getElementById(l):l},u._g=u.dom._g,u.browser=u.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(u.browser.ie=u.ie=document.documentMode||+RegExp.$1),u.dom.getComputedStyle=function(l,m){l=u.dom._g(l);var g=u.dom.getDocument(l),M;return g.defaultView&&g.defaultView.getComputedStyle&&(M=g.defaultView.getComputedStyle(l,null),M)?M[m]||M.getPropertyValue(m):""},u.dom._styleFixer=u.dom._styleFixer||{},u.dom._styleFilter=u.dom._styleFilter||[],u.dom._styleFilter.filter=function(l,m,g){for(var M=0,b=u.dom._styleFilter,E;E=b[M];M++)(E=E[g])&&(m=E(l,m));return m},u.string=u.string||{},u.string.toCamelCase=function(l){return l.indexOf("-")<0&&l.indexOf("_")<0?l:l.replace(/[-_][^-_]/g,function(m){return m.charAt(1).toUpperCase()})},u.dom.getStyle=function(l,m){var g=u.dom;l=g.g(l),m=u.string.toCamelCase(m);var M=l.style[m]||(l.currentStyle?l.currentStyle[m]:"")||g.getComputedStyle(l,m);if(!M){var b=g._styleFixer[m];b&&(M=b.get?b.get(l):u.dom.getStyle(l,b))}return(b=g._styleFilter)&&(M=b.filter(m,M,"get")),M},u.getStyle=u.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(u.browser.opera=+RegExp.$1),u.browser.isWebkit=/webkit/i.test(navigator.userAgent),u.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),u.browser.isStrict=document.compatMode=="CSS1Compat",u.dom.getPosition=function(l){l=u.dom.g(l);var m=u.dom.getDocument(l),g=u.browser,M=u.dom.getStyle;g.isGecko>0&&m.getBoxObjectFor&&M(l,"position")=="absolute"&&(l.style.top===""||l.style.left);var b={left:0,top:0},E=g.ie&&!g.isStrict?m.body:m.documentElement,C,S;if(l==E)return b;if(l.getBoundingClientRect){S=l.getBoundingClientRect(),b.left=Math.floor(S.left)+Math.max(m.documentElement.scrollLeft,m.body.scrollLeft),b.top=Math.floor(S.top)+Math.max(m.documentElement.scrollTop,m.body.scrollTop),b.left-=m.documentElement.clientLeft,b.top-=m.documentElement.clientTop;var P=m.body,A=parseInt(M(P,"borderLeftWidth")),j=parseInt(M(P,"borderTopWidth"));g.ie&&!g.isStrict&&(b.left-=isNaN(A)?2:A,b.top-=isNaN(j)?2:j)}else{C=l;do{if(b.left+=C.offsetLeft,b.top+=C.offsetTop,g.isWebkit>0&&M(C,"position")=="fixed"){b.left+=m.body.scrollLeft,b.top+=m.body.scrollTop;break}C=C.offsetParent}while(C&&C!=l);for((g.opera>0||g.isWebkit>0&&M(l,"position")=="absolute")&&(b.top-=m.body.offsetTop),C=l.offsetParent;C&&C!=m.body;)b.left-=C.scrollLeft,(!g.opera||C.tagName!="TR")&&(b.top-=C.scrollTop),C=C.offsetParent}return b},u.event=u.event||{},u.event._listeners=u.event._listeners||[],u.event.on=function(l,m,g){m=m.replace(/^on/i,""),l=u.dom._g(l);var M=function(P){g.call(l,P)},b=u.event._listeners,E=u.event._eventFilter,C,S=m;return m=m.toLowerCase(),E&&E[m]&&(C=E[m](l,m,M),S=C.type,M=C.listener),l.addEventListener?l.addEventListener(S,M,!1):l.attachEvent&&l.attachEvent("on"+S,M),b[b.length]=[l,m,g,M,S],l},u.on=u.event.on,(function(){var l=B[u.guid];u.lang.guid=function(){return"TANGRAM__"+(l._counter++).toString(36)},l._counter=l._counter||1})(),B[u.guid]._instances=B[u.guid]._instances||{},u.lang.isFunction=function(l){return Object.prototype.toString.call(l)=="[object Function]"},u.lang.Class=function(l){this.guid=l||u.lang.guid(),B[u.guid]._instances[this.guid]=this},B[u.guid]._instances=B[u.guid]._instances||{},u.lang.Class.prototype.dispose=function(){delete B[u.guid]._instances[this.guid];for(var l in this)u.lang.isFunction(this[l])||delete this[l];this.disposed=!0},u.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},u.lang.Event=function(l,m){this.type=l,this.returnValue=!0,this.target=m||null,this.currentTarget=null},u.lang.Class.prototype.addEventListener=function(l,m,g){if(u.lang.isFunction(m)){!this.__listeners&&(this.__listeners={});var M=this.__listeners,b;if(typeof g=="string"&&g){if(/[^\w\-]/.test(g))throw"nonstandard key:"+g;m.hashCode=g,b=g}l.indexOf("on")!=0&&(l="on"+l),typeof M[l]!="object"&&(M[l]={}),b=b||u.lang.guid(),m.hashCode=b,M[l][b]=m}},u.lang.Class.prototype.removeEventListener=function(l,m){if(!(typeof m!="undefined"&&(u.lang.isFunction(m)&&!(m=m.hashCode)||!u.lang.isString(m)))){!this.__listeners&&(this.__listeners={}),l.indexOf("on")!=0&&(l="on"+l);var g=this.__listeners;if(g[l])if(typeof m!="undefined")g[l][m]&&delete g[l][m];else for(var M in g[l])delete g[l][M]}},u.lang.Class.prototype.dispatchEvent=function(l,m){u.lang.isString(l)&&(l=new u.lang.Event(l)),!this.__listeners&&(this.__listeners={}),m=m||{};for(var g in m)l[g]=m[g];var g,M=this.__listeners,b=l.type;if(l.target=l.target||this,l.currentTarget=this,b.indexOf("on")!=0&&(b="on"+b),u.lang.isFunction(this[b])&&this[b].apply(this,arguments),typeof M[b]=="object")for(g in M[b])M[b][g].apply(this,arguments);return l.returnValue},u.lang.inherits=function(l,m,g){var M,b,E=l.prototype,C=new Function;C.prototype=m.prototype,b=l.prototype=new C;for(M in E)b[M]=E[M];l.prototype.constructor=l,l.superClass=m.prototype,typeof g=="string"&&(b._className=g)},u.inherits=u.lang.inherits;var O="http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m",z="png",k=function(l,m,g){try{BMap}catch(M){throw Error("Baidu Map JS API is not ready yet!")}x.lang.inherits(k,BMap.Overlay,"TextIconOverlay"),this._position=l,this._text=m,this._options=g||{},this._styles=this._options.styles||[],!this._styles.length&&this._setupDefaultStyles()};return k.prototype._setupDefaultStyles=function(){for(var l=[53,56,66,78,90],m=0,g;g=l[m];m++)this._styles.push({url:O+m+"."+z,size:new BMap.Size(g,g)})},k.prototype.initialize=function(l){return this._map=l,this._domElement=document.createElement("div"),this._updateCss(),this._updateText(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},k.prototype.draw=function(){this._map&&this._updatePosition()},k.prototype.getText=function(){return this._text},k.prototype.setText=function(l){l&&(!this._text||this._text.toString()!=l.toString())&&(this._text=l,this._updateText(),this._updateCss(),this._updatePosition())},k.prototype.getPosition=function(){return this._position},k.prototype.setPosition=function(l){l&&(!this._position||!this._position.equals(l))&&(this._position=l,this._updatePosition())},k.prototype.getStyleByText=function(l,m){var g=parseInt(l),M=parseInt(g/10);return M=Math.max(0,M),M=Math.min(M,m.length-1),m[M]},k.prototype._updateCss=function(){if(this._domElement){var l=this.getStyleByText(this._text,this._styles);this._domElement.style.cssText=this._buildCssText(l)}},k.prototype._updateText=function(){this._domElement&&(this._domElement.innerHTML=this._text)},k.prototype._updatePosition=function(){if(this._domElement&&this._position){var l=this._domElement.style,m=this._map.pointToOverlayPixel(this._position);m.x-=Math.ceil(parseInt(l.width)/2),m.y-=Math.ceil(parseInt(l.height)/2),l.left=m.x+"px",l.top=m.y+"px"}},k.prototype._buildCssText=function(l){var m=l.url,g=l.size,M=l.anchor,b=l.offset,E=l.textColor||"black",C=l.textSize||10,S=[];if(x.browser.ie<7)S.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+m+'");');else{S.push("background-image:url("+m+");");var P="0 0";b instanceof BMap.Size&&(P=b.width+"px "+b.height+"px"),S.push("background-position:"+P+";")}return g instanceof BMap.Size&&(M instanceof BMap.Size?(M.height>0&&M.height<g.height&&S.push("height:"+(g.height-M.height)+"px; padding-top:"+M.height+"px;"),M.width>0&&M.width<g.width&&S.push("width:"+(g.width-M.width)+"px; padding-left:"+M.width+"px;")):(S.push("height:"+g.height+"px; line-height:"+g.height+"px;"),S.push("width:"+g.width+"px; text-align:center;"))),S.push("cursor:pointer; color:"+E+"; position:absolute; font-size:"+C+"px; font-family:Arial,sans-serif; font-weight:bold"),S.join("")},k.prototype._bind=function(){if(!this._domElement)return;var l=this,m=this._map,g=x.lang.Event;function M(b,E){var C=b.srcElement||b.target,S=b.clientX||b.pageX,P=b.clientY||b.pageY;if(b&&E&&S&&P&&C){var A=x.dom.getPosition(m.getContainer());E.pixel=new BMap.Pixel(S-A.left,P-A.top),E.point=m.pixelToPoint(E.pixel)}return E}x.event.on(this._domElement,"mouseover",function(b){l.dispatchEvent(M(b,new g("onmouseover")))}),x.event.on(this._domElement,"mouseout",function(b){l.dispatchEvent(M(b,new g("onmouseout")))}),x.event.on(this._domElement,"click",function(b){l.dispatchEvent(M(b,new g("onclick")))})},k})}),v=_&&typeof _=="object"&&"default"in _?_.default:_,n=function(a,d,y){d=s(d);var x=a.pointToPixel(d.getNorthEast()),u=a.pointToPixel(d.getSouthWest());x.x+=y,x.y-=y,u.x-=y,u.y+=y;var B=a.pixelToPoint(x),O=a.pixelToPoint(u);return new BMap.Bounds(O,B)},s=function(a){var d=e(a.getNorthEast().lng,-180,180),y=e(a.getSouthWest().lng,-180,180),x=e(a.getNorthEast().lat,-74,74),u=e(a.getSouthWest().lat,-74,74);return new BMap.Bounds(new BMap.Point(y,u),new BMap.Point(d,x))},e=function(a,d,y){return d&&(a=Math.max(a,d)),y&&(a=Math.min(a,y)),a},o=function(a){return Object.prototype.toString.call(a)==="[object Array]"},c=function(a,d){var y=-1;if(o(d)){if(d.indexOf)y=d.indexOf(a);else for(var x=0,u;u=d[x];x++)if(u===a){y=x;break}}return y},p=function(a,d){try{BMap}catch(B){throw Error("Baidu Map JS API is not ready yet!")}if(a){this._map=a,this._markers=[],this._clusters=[];var y=d||{};this._gridSize=y.gridSize||60,this._maxZoom=y.maxZoom||18,this._minClusterSize=y.minClusterSize||2,this._isAverageCenter=!1,y.isAverageCenter!=null&&(this._isAverageCenter=y.isAverageCenter),this._styles=y.styles||[];var x=this;this._map.addEventListener("zoomend",function(){x._redraw()}),this._map.addEventListener("moveend",function(){x._redraw()});var u=y.markers;o(u)&&this.addMarkers(u)}};p.prototype.addMarkers=function(a){if(a.length){for(var d=0,y=a.length;d<y;d++)this._pushMarkerTo(a[d]);this._createClusters()}},p.prototype._pushMarkerTo=function(a){var d=c(a,this._markers);d===-1&&(a.isInCluster=!1,this._markers.push(a))},p.prototype.addMarker=function(a){this._pushMarkerTo(a),this._createClusters()},p.prototype._createClusters=function(){var a=this._map.getBounds();if(a.getCenter())for(var d=n(this._map,a,this._gridSize),y=0,x;x=this._markers[y];y++)!x.isInCluster&&d.containsPoint(x.getPosition())&&this._addToClosestCluster(x)},p.prototype._addToClosestCluster=function(a){var d=4e6,y=null;a.getPosition();for(var x=0,u;u=this._clusters[x];x++){var B=u.getCenter();if(B){var O=this._map.getDistance(B,a.getPosition());O<d&&(d=O,y=u)}}if(y&&y.isMarkerInClusterBounds(a))y.addMarker(a);else{var u=new f(this);u.addMarker(a),this._clusters.push(u)}},p.prototype._clearLastClusters=function(){for(var a=0,d;d=this._clusters[a];a++)d.remove();this._clusters=[],this._removeMarkersFromCluster()},p.prototype._removeMarkersFromCluster=function(){for(var a=0,d;d=this._markers[a];a++)d.isInCluster=!1},p.prototype._removeMarkersFromMap=function(){for(var a=0,d;d=this._markers[a];a++){d.isInCluster=!1;var y=d.getLabel();this._map.removeOverlay(d),d.setLabel(y)}},p.prototype._removeMarker=function(a){var d=c(a,this._markers);return d===-1?!1:(this._map.removeOverlay(a),this._markers.splice(d,1),!0)},p.prototype.removeMarker=function(a){var d=this._removeMarker(a);return d&&(this._clearLastClusters(),this._createClusters()),d},p.prototype.removeMarkers=function(a){for(var d=!1,y=0;y<a.length;y++){var x=this._removeMarker(a[y]);d=d||x}return d&&(this._clearLastClusters(),this._createClusters()),d},p.prototype.clearMarkers=function(){this._clearLastClusters(),this._removeMarkersFromMap(),this._markers=[]},p.prototype._redraw=function(){this._clearLastClusters(),this._createClusters()},p.prototype.getGridSize=function(){return this._gridSize},p.prototype.setGridSize=function(a){this._gridSize=a,this._redraw()},p.prototype.getMaxZoom=function(){return this._maxZoom},p.prototype.setMaxZoom=function(a){this._maxZoom=a,this._redraw()},p.prototype.getStyles=function(){return this._styles},p.prototype.setStyles=function(a){this._styles=a,this._redraw()},p.prototype.getMinClusterSize=function(){return this._minClusterSize},p.prototype.setMinClusterSize=function(a){this._minClusterSize=a,this._redraw()},p.prototype.isAverageCenter=function(){return this._isAverageCenter},p.prototype.getMap=function(){return this._map},p.prototype.getMarkers=function(){return this._markers},p.prototype.getClustersCount=function(){for(var a=0,d=0,y;y=this._clusters[d];d++)y.isReal()&&a++;return a};function f(a){this._markerClusterer=a,this._map=a.getMap(),this._minClusterSize=a.getMinClusterSize(),this._isAverageCenter=a.isAverageCenter(),this._center=null,this._markers=[],this._gridBounds=null,this._isReal=!1,this._clusterMarker=new v(this._center,this._markers.length,{styles:this._markerClusterer.getStyles()})}return f.prototype.addMarker=function(a){if(this.isMarkerInCluster(a))return!1;if(!this._center)this._center=a.getPosition(),this.updateGridBounds();else if(this._isAverageCenter){var d=this._markers.length+1,y=(this._center.lat*(d-1)+a.getPosition().lat)/d,x=(this._center.lng*(d-1)+a.getPosition().lng)/d;this._center=new BMap.Point(x,y),this.updateGridBounds()}a.isInCluster=!0,this._markers.push(a);var u=this._markers.length;if(u<this._minClusterSize)return this._map.addOverlay(a),!0;if(u===this._minClusterSize)for(var B=0;B<u;B++){var O=this._markers[B].getLabel();this._markers[B].getMap()&&this._map.removeOverlay(this._markers[B]),this._markers[B].setLabel(O)}return this._map.addOverlay(this._clusterMarker),this._isReal=!0,this.updateClusterMarker(),!0},f.prototype.isMarkerInCluster=function(a){if(this._markers.indexOf)return this._markers.indexOf(a)!=-1;for(var d=0,y;y=this._markers[d];d++)if(y===a)return!0;return!1},f.prototype.isMarkerInClusterBounds=function(a){return this._gridBounds.containsPoint(a.getPosition())},f.prototype.isReal=function(a){return this._isReal},f.prototype.updateGridBounds=function(){var a=new BMap.Bounds(this._center,this._center);this._gridBounds=n(this._map,a,this._markerClusterer.getGridSize())},f.prototype.updateClusterMarker=function(){if(this._map.getZoom()>this._markerClusterer.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var a=0,d;d=this._markers[a];a++)this._map.addOverlay(d);return}if(this._markers.length<this._minClusterSize){this._clusterMarker.hide();return}this._clusterMarker.setPosition(this._center),this._clusterMarker.setText(this._markers.length),this._clusterMarker.addEventListener&&!this._clusterMarker._hasClickEvent&&this._clusterMarker.addEventListener("click",function(y){this._clusterMarker._hasClickEvent=!0,this._markers&&this._map.setViewport(this.getBounds())}.bind(this))},f.prototype.remove=function(){for(var a=0;this._markers[a];a++){var d=this._markers[a].getLabel();this._markers[a].getMap()&&this._map.removeOverlay(this._markers[a]),this._markers[a].setLabel(d)}this._map.removeOverlay(this._clusterMarker),this._markers.length=0,delete this._markers},f.prototype.getBounds=function(){for(var a=new BMap.Bounds(this._center,this._center),d=0,y;y=this._markers[d];d++)a.extend(y.getPosition());return a},f.prototype.getCenter=function(){return this._center},p})})(dt);var Ft=dt.exports;const H=[],Ht={name:"bml-marker-clusterer",mixins:[ct("markerClusterer")],provide(){return{Cluster:this}},props:{gridSize:{type:Number},maxZoom:{type:Number},minClusterSize:{type:Number},styles:{type:Array,default(){return[]}},averageCenter:{type:Boolean,default:!1}},data(){return{}},watch:{gridSize:{handler(t){const{BMap:r,originInstance:i}=this;i.setGridSize(t)},deep:!0},maxZoom(t){const{originInstance:r}=this;r.setMaxZoom(t)},minClusterSize:{handler(t){const{BMap:r,originInstance:i}=this;i.setMinClusterSize(t)},deep:!0},styles:{handler(t){const{BMap:r,originInstance:i}=this,h=JSON.parse(JSON.stringify(t)).map(_=>(_.size=_.size&&D(r,_.size),_));i.setStyles(h)},deep:!0},averageCenter(t){this.reload()}},methods:{load(){const{BMap:t,map:r,gridSize:i,minClusterSize:h,maxZoom:_,styles:v,averageCenter:n}=this;this.originInstance=new Ft(r,{gridSize:i||60,maxZoom:_,minClusterSize:h||2,styles:v.map(s=>(s.size=D(t,s.size),s)),isAverageCenter:n}),this.$nextTick(()=>{const s=H.map(e=>e.originInstance).filter(e=>e instanceof t.Marker);this.originInstance.addMarkers(s)})},addMaker(t){H.push(t)},removeMaker(t){H.splice(H.indexOf(t),1)}},beforeCreate(){this.preventChildrenRender=!0}};function Wt(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("span",null,[w.renderSlot(t.$slots,"default")])}var Vt=q(Ht,[["render",Wt]]),Gt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){var i={};i.dom={},i.dom.g=function(n){return typeof n=="string"||n instanceof String?document.getElementById(n):n&&n.nodeName&&(n.nodeType==1||n.nodeType==9)?n:null},i.g=i.G=i.dom.g,i.lang=i.lang||{},i.lang.isString=function(n){return Object.prototype.toString.call(n)=="[object String]"},i.isString=i.lang.isString,i.dom._g=function(n){return i.lang.isString(n)?document.getElementById(n):n},i._g=i.dom._g,i.dom.getDocument=function(n){return n=i.dom.g(n),n.nodeType==9?n:n.ownerDocument||n.document},i.browser=i.browser||{},i.browser.ie=i.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0,i.dom.getComputedStyle=function(n,s){n=i.dom._g(n);var e=i.dom.getDocument(n),o;return e.defaultView&&e.defaultView.getComputedStyle&&(o=e.defaultView.getComputedStyle(n,null),o)?o[s]||o.getPropertyValue(s):""},i.dom._styleFixer=i.dom._styleFixer||{},i.dom._styleFilter=i.dom._styleFilter||[],i.dom._styleFilter.filter=function(n,s,e){for(var o=0,c=i.dom._styleFilter,p;p=c[o];o++)(p=p[e])&&(s=p(n,s));return s},i.string=i.string||{},i.string.toCamelCase=function(n){return n.indexOf("-")<0&&n.indexOf("_")<0?n:n.replace(/[-_][^-_]/g,function(s){return s.charAt(1).toUpperCase()})},i.dom.getStyle=function(n,s){var e=i.dom;n=e.g(n),s=i.string.toCamelCase(s);var o=n.style[s]||(n.currentStyle?n.currentStyle[s]:"")||e.getComputedStyle(n,s);if(!o){var c=e._styleFixer[s];c&&(o=c.get?c.get(n):i.dom.getStyle(n,c))}return(c=e._styleFilter)&&(o=c.filter(s,o,"get")),o},i.getStyle=i.dom.getStyle,i.dom._NAME_ATTRS=(function(){var n={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};return i.browser.ie<8?(n.for="htmlFor",n.class="className"):(n.htmlFor="for",n.className="class"),n})(),i.dom.setAttr=function(n,s,e){return n=i.dom.g(n),s=="style"?n.style.cssText=e:(s=i.dom._NAME_ATTRS[s]||s,n.setAttribute(s,e)),n},i.setAttr=i.dom.setAttr,i.dom.setAttrs=function(n,s){n=i.dom.g(n);for(var e in s)i.dom.setAttr(n,e,s[e]);return n},i.setAttrs=i.dom.setAttrs,i.dom.create=function(n,s){var e=document.createElement(n),o=s||{};return i.dom.setAttrs(e,o)},i.object=i.object||{},i.extend=i.object.extend=function(n,s){for(var e in s)s.hasOwnProperty(e)&&(n[e]=s[e]);return n};var h=function(n,s,e){try{BMap}catch(o){throw Error("Baidu Map JS API is not ready yet!")}!s||s.length<1||(this._map=n,this._path=s,this.i=0,this._setTimeoutQuene=[],this._projection=this._map.getMapType().getProjection(),this._opts={icon:null,speed:4e3,defaultContent:"",showInfoWindow:!1},this._setOptions(e),this._rotation=0,!this._opts.icon instanceof BMap.Icon&&(this._opts.icon=defaultIcon))};h.prototype._setOptions=function(n){if(n)for(var s in n)n.hasOwnProperty(s)&&(this._opts[s]=n[s])},h.prototype.start=function(){var n=this,s=n._path.length;if(this._opts.onstart&&this._opts.onstart(n),n.i&&n.i<s-1)if(n._fromPause)n._fromStop||n._moveNext(++n.i);else return;else!n._marker&&n._addMarker(),n._timeoutFlag=setTimeout(function(){!n._overlay&&n._addInfoWin(),n._moveNext(n.i)},400);this._fromPause=!1,this._fromStop=!1},h.prototype.stop=function(){this.i=0,this._fromStop=!0,clearInterval(this._intervalFlag),this._clearTimeout();for(var n=0,s=this._opts.landmarkPois,e=s.length;n<e;n++)s[n].bShow=!1;this._opts.onstop&&this._opts.onstop(this)},h.prototype.pause=function(){clearInterval(this._intervalFlag),this._fromPause=!0,this._clearTimeout(),this._opts.onpause&&this._opts.onpause(this)},h.prototype.hideInfoWindow=function(){this._opts.showInfoWindow=!1,this._overlay&&(this._overlay._div.style.visibility="hidden")},h.prototype.showInfoWindow=function(){this._opts.showInfoWindow=!0,this._overlay&&(this._overlay._div.style.visibility="visible")},h.prototype.dispose=function(){clearInterval(this._intervalFlag),this._setTimeoutQuene&&this._clearTimeout(),this._map&&(this._map.removeOverlay(this._overlay),this._map.removeOverlay(this._marker))},i.object.extend(h.prototype,{_addMarker:function(n){this._marker&&(this.stop(),this._map.removeOverlay(this._marker),clearTimeout(this._timeoutFlag)),this._overlay&&this._map.removeOverlay(this._overlay);var s=new BMap.Marker(this._path[0]);this._opts.icon&&s.setIcon(this._opts.icon),this._map.addOverlay(s),s.setAnimation(BMAP_ANIMATION_DROP),this._marker=s},_addInfoWin:function(){var n=this;!_.prototype.initialize&&v();var s=new _(n._marker.getPosition(),n._opts.defaultContent);s.setRelatedClass(this),this._overlay=s,this._map.addOverlay(s),this._opts.showInfoWindow?this.showInfoWindow():this.hideInfoWindow()},_getMercator:function(n){return this._map.getMapType().getProjection().lngLatToPoint(n)},_getDistance:function(n,s){return Math.sqrt(Math.pow(n.x-s.x,2)+Math.pow(n.y-s.y,2))},_move:function(n,s,e){var o=this,c=0,p=10,f=this._opts.speed/(1e3/p),a=this._projection.lngLatToPoint(n),d=this._projection.lngLatToPoint(s),y=Math.round(o._getDistance(a,d)/f);if(y<1){o._moveNext(++o.i);return}o._intervalFlag=setInterval(function(){if(c>=y){if(clearInterval(o._intervalFlag),o.i>o._path.length)return;o._moveNext(++o.i),o._opts.onmove(o)}else{c++;var x=e(a.x,d.x,c,y),u=e(a.y,d.y,c,y),B=o._projection.pointToLngLat(new BMap.Pixel(x,u));if(c==1){var O=null;o.i-1>=0&&(O=o._path[o.i-1]),o._opts.enableRotation==!0&&o.setRotation(O,n,s),o._opts.autoView&&(o._map.getBounds().containsPoint(B)||o._map.setCenter(B))}o._marker.setPosition(B),o._setInfoWin(B)}},p)},setRotation:function(n,s,e){var o=this,c=0;if(s=o._map.pointToPixel(s),e=o._map.pointToPixel(e),e.x!=s.x){var p=(e.y-s.y)/(e.x-s.x),f=Math.atan(p);c=f*360/(2*Math.PI),e.x<s.x?c=-c+90+90:c=-c,o._marker.setRotation(-c)}else{var a=e.y-s.y,d=0;a>0?d=-1:d=1,o._marker.setRotation(-d*90)}},linePixellength:function(n,s){return Math.sqrt(Math.abs(n.x-s.x)*Math.abs(n.x-s.x)+Math.abs(n.y-s.y)*Math.abs(n.y-s.y))},pointToPoint:function(n,s){return Math.abs(n.x-s.x)*Math.abs(n.x-s.x)+Math.abs(n.y-s.y)*Math.abs(n.y-s.y)},_moveNext:function(n){var s=this;n<this._path.length-1?s._move(s._path[n],s._path[n+1],s._tween.linear):s.stop()},moveNext:function(n){var s=this;n<this._path.length-1?s._move(s._path[n],s._path[n+1],s._tween.linear):s.stop()},_setInfoWin:function(n){var s=this;s._overlay.setPosition(n,s._marker.getIcon().size);var e=s._troughPointIndex(n);e!=-1?(clearInterval(s._intervalFlag),s._overlay.setHtml(s._opts.landmarkPois[e].html),s._overlay.setPosition(n,s._marker.getIcon().size),s._pauseForView(e)):s._overlay.setHtml(s._opts.defaultContent)},_pauseForView:function(n){var s=this,e=setTimeout(function(){s._moveNext(++s.i)},s._opts.landmarkPois[n].pauseTime*1e3);s._setTimeoutQuene.push(e)},_clearTimeout:function(){for(var n in this._setTimeoutQuene)clearTimeout(this._setTimeoutQuene[n]);this._setTimeoutQuene.length=0},_tween:{linear:function(n,s,e,o){var c=n,p=s-n,f=e,a=o;return p*f/a+c}},_troughPointIndex:function(n){for(var s=this._opts.landmarkPois,e,o=0,c=s.length;o<c;o++)if(!s[o].bShow&&(e=this._map.getDistance(new BMap.Point(s[o].lng,s[o].lat),n),e<10))return s[o].bShow=!0,o;return-1}});function _(n,s){this._point=n,this._html=s}function v(){_.prototype=new BMap.Overlay,_.prototype.initialize=function(n){var s=this._div=i.dom.create("div",{style:"border:solid 1px #ccc;width:auto;min-width:50px;text-align:center;position:absolute;background:#fff;color:#000;font-size:12px;border-radius: 10px;padding:5px;white-space: nowrap;"});return s.innerHTML=this._html,n.getPanes().floatPane.appendChild(s),this._map=n,s},_.prototype.draw=function(){this.setPosition(this.lushuMain._marker.getPosition(),this.lushuMain._marker.getIcon().size)},i.object.extend(_.prototype,{setPosition:function(n,s){var e=this._map.pointToOverlayPixel(n),o=i.dom.getStyle(this._div,"width"),c=i.dom.getStyle(this._div,"height"),p=parseInt(this._div.clientWidth||o,10);parseInt(this._div.clientHeight||c,10),this._div.style.left=e.x-p/2+"px",this._div.style.bottom=-(e.y-s.height)+"px"},setHtml:function(n){this._div.innerHTML=n},setRelatedClass:function(n){this.lushuMain=n}})}return h})})(Gt);var Qt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){function i(v,n,s){var e,o,c=v.prototype,p=new Function;p.prototype=n.prototype,o=v.prototype=new p;for(e in c)o[e]=c[e];v.prototype.constructor=v,v.superClass=n.prototype,o._className=s}var h=(function(){var v=function(o){var c={data:[],heatmap:o};this.max=1,this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f}};v.prototype={addDataPoint:function(e,o){if(!(e<0||o<0)){var c=this,p=c.get("heatmap"),f=c.get("data");if(f[e]||(f[e]=[]),f[e][o]||(f[e][o]=0),f[e][o]+=arguments.length<3?1:arguments[2],c.set("data",f),c.max<f[e][o]){p.get("actx").clearRect(0,0,p.get("width"),p.get("height")),c.setDataSet({max:f[e][o],data:f},!0);return}p.drawAlpha(e,o,f[e][o],!0)}},setDataSet:function(e,o){var c=this,p=c.get("heatmap"),f=[],a=e.data,d=a.length;if(p.clear(),this.max=e.max,p.get("legend")&&p.get("legend").update(e.max),o!=null&&o){for(var y in a)if(y!==void 0)for(var x in a[y])x!==void 0&&p.drawAlpha(y,x,a[y][x],!1)}else for(;d--;){var u=a[d];p.drawAlpha(u.x,u.y,u.count,!1),f[u.x]||(f[u.x]=[]),f[u.x][u.y]||(f[u.x][u.y]=0),f[u.x][u.y]=u.count}p.colorize(),this.set("data",a)},exportDataSet:function(){var e=this,o=e.get("data"),c=[];for(var p in o)if(p!==void 0)for(var f in o[p])f!==void 0&&c.push({x:parseInt(p,10),y:parseInt(f,10),count:o[p][f]});return{max:e.max,data:c}},generateRandomDataSet:function(e){var o=this.get("heatmap"),c=o.get("width"),p=o.get("height"),f={},a=Math.floor(Math.random()*1e3+1);f.max=a;for(var d=[];e--;)d.push({x:Math.floor(Math.random()*c+1),y:Math.floor(Math.random()*p+1),count:Math.floor(Math.random()*a+1)});f.data=d,this.setDataSet(f)}};var n=function(o){this.config=o;var c={element:null,labelsEl:null,gradientCfg:null,ctx:null};this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f},this.init()};n.prototype={init:function(){var e=this,o=e.config,c=o.title||"Legend",p=o.position,f=o.offset||10;o.gradient;var a=document.createElement("ul"),d,y,x="";e.processGradientObject(),p.indexOf("t")>-1?x+="top:"+f+"px;":x+="bottom:"+f+"px;",p.indexOf("l")>-1?x+="left:"+f+"px;":x+="right:"+f+"px;",d=document.createElement("div"),d.style.cssText="border-radius:5px;position:absolute;"+x+"font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;",d.innerHTML="<h3 style='padding:0;margin:0;text-align:center;font-size:16px;'>"+c+"</h3>",a.style.cssText="position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;",y=document.createElement("div"),y.style.cssText=["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(",e.createGradientImage(),");"].join(""),d.appendChild(a),d.appendChild(y),e.set("element",d),e.set("labelsEl",a),e.update(1)},processGradientObject:function(){var e=this,o=this.config.gradient,c=[];for(var p in o)o.hasOwnProperty(p)&&c.push({stop:p,value:o[p]});c.sort(function(f,a){return f.stop-a.stop}),c.unshift({stop:0,value:"rgba(0,0,0,0)"}),e.set("gradientArr",c)},createGradientImage:function(){var e=this,o=e.get("gradientArr"),c=o.length,p=document.createElement("canvas"),f=p.getContext("2d"),a;p.width="256",p.height="15",a=f.createLinearGradient(0,5,256,10);for(var d=0;d<c;d++)a.addColorStop(1/(c-1)*d,o[d].value);f.fillStyle=a,f.fillRect(0,5,256,10),f.strokeStyle="black",f.beginPath();for(var d=0;d<c;d++)f.moveTo((1/(c-1)*d*256>>0)+.5,0),f.lineTo((1/(c-1)*d*256>>0)+.5,d==0?15:5);return f.moveTo(255.5,0),f.lineTo(255.5,15),f.moveTo(255.5,4.5),f.lineTo(0,4.5),f.stroke(),e.set("ctx",f),p.toDataURL()},getElement:function(){return this.get("element")},update:function(e){for(var o=this,c=o.get("gradientArr"),p=o.get("ctx"),f=o.get("labelsEl"),a,d="",y,x=0;x<c.length;x++)a=e*c[x].stop>>0,y=p.measureText(a).width/2>>0,x==0&&(y=0),x==c.length-1&&(y*=2),d+='<li style="position:absolute;left:'+(((1/(c.length-1)*x*256||0)>>0)-y+.5)+'px">'+a+"</li>";f.innerHTML=d}};var s=function(o){var c={radius:40,element:{},canvas:{},acanvas:{},ctx:{},actx:{},legend:null,visible:!0,width:0,height:0,max:!1,gradient:!1,opacity:180,premultiplyAlpha:!1,bounds:{l:1e3,r:0,t:1e3,b:0},debug:!1};this.store=new v(this),this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f},this.configure(o),this.init()};return s.prototype={configure:function(e){var o=this;if(o.set("radius",e.radius||40),o.set("element",e.element instanceof Object?e.element:document.getElementById(e.element)),o.set("visible",e.visible!=null?e.visible:!0),o.set("max",e.max||!1),o.set("gradient",e.gradient||{.45:"rgb(0,0,255)",.55:"rgb(0,255,255)",.65:"rgb(0,255,0)",.95:"yellow",1:"rgb(255,0,0)"}),o.set("opacity",parseInt(255/(100/e.opacity),10)||180),o.set("width",e.width||0),o.set("height",e.height||0),o.set("debug",e.debug),e.legend){var c=e.legend;c.gradient=o.get("gradient"),o.set("legend",new n(c))}},resize:function(){var e=this,o=e.get("element"),c=e.get("canvas"),p=e.get("acanvas");c.width=p.width=e.get("width")||o.style.width.replace(/px/,"")||e.getWidth(o),this.set("width",c.width),c.height=p.height=e.get("height")||o.style.height.replace(/px/,"")||e.getHeight(o),this.set("height",c.height)},init:function(){var e=this,o=document.createElement("canvas"),c=document.createElement("canvas"),p=o.getContext("2d"),f=c.getContext("2d"),a=e.get("element");e.initColorPalette(),e.set("canvas",o),e.set("ctx",p),e.set("acanvas",c),e.set("actx",f),e.resize(),o.style.cssText=c.style.cssText="position:absolute;top:0;left:0;z-index:10000000;",e.get("visible")||(o.style.display="none"),a.appendChild(o),e.get("legend")&&a.appendChild(e.get("legend").getElement()),e.get("debug")&&document.body.appendChild(c),f.shadowOffsetX=15e3,f.shadowOffsetY=15e3,f.shadowBlur=15},initColorPalette:function(){var e=this,o=document.createElement("canvas"),c=e.get("gradient"),p,f,a;o.width="1",o.height="256",p=o.getContext("2d"),f=p.createLinearGradient(0,0,1,256),a=p.getImageData(0,0,1,1),a.data[0]=a.data[3]=64,a.data[1]=a.data[2]=0,p.putImageData(a,0,0),a=p.getImageData(0,0,1,1),e.set("premultiplyAlpha",a.data[0]<60||a.data[0]>70);for(var d in c)f.addColorStop(d,c[d]);p.fillStyle=f,p.fillRect(0,0,1,256),e.set("gradient",p.getImageData(0,0,1,256).data)},getWidth:function(e){var o=e.offsetWidth;return e.style.paddingLeft&&(o+=e.style.paddingLeft),e.style.paddingRight&&(o+=e.style.paddingRight),o},getHeight:function(e){var o=e.offsetHeight;return e.style.paddingTop&&(o+=e.style.paddingTop),e.style.paddingBottom&&(o+=e.style.paddingBottom),o},colorize:function(e,o){var c=this,p=c.get("width"),f=c.get("radius"),a=c.get("height"),d=c.get("actx"),y=c.get("ctx"),x=f*3,u=c.get("premultiplyAlpha"),B=c.get("gradient"),O=c.get("opacity"),z=c.get("bounds"),k,l,m,g,M,b,E,C,S;e!=null&&o!=null?(e+x>p&&(e=p-x),e<0&&(e=0),o<0&&(o=0),o+x>a&&(o=a-x),k=e,l=o,g=e+x,m=o+x):(z.l<0?k=0:k=z.l,z.r>p?g=p:g=z.r,z.t<0?l=0:l=z.t,z.b>a?m=a:m=z.b),M=d.getImageData(k,l,g-k,m-l),b=M.data.length;for(var P=3;P<b;P+=4)E=M.data[P],C=E*4,C&&(S=E<O?E:O,M.data[P-3]=B[C],M.data[P-2]=B[C+1],M.data[P-1]=B[C+2],u&&(M.data[P-3]/=255/S,M.data[P-2]/=255/S,M.data[P-1]/=255/S),M.data[P]=S);y.putImageData(M,k,l)},drawAlpha:function(e,o,c,p){var f=this,a=f.get("radius"),d=f.get("actx");f.get("max");var y=f.get("bounds"),x=e-1.5*a>>0,u=o-1.5*a>>0,B=e+1.5*a>>0,O=o+1.5*a>>0;d.shadowColor="rgba(0,0,0,"+(c?c/f.store.max:"0.1")+")",d.shadowOffsetX=15e3,d.shadowOffsetY=15e3,d.shadowBlur=15,d.beginPath(),d.arc(e-15e3,o-15e3,a,0,Math.PI*2,!0),d.closePath(),d.fill(),p?f.colorize(x,u):(x<y.l&&(y.l=x),u<y.t&&(y.t=u),B>y.r&&(y.r=B),O>y.b&&(y.b=O))},toggleDisplay:function(){var e=this,o=e.get("visible"),c=e.get("canvas");o?c.style.display="none":c.style.display="block",e.set("visible",!o)},getImageData:function(){return this.get("canvas").toDataURL()},clear:function(){var e=this,o=e.get("width"),c=e.get("height");e.store.set("data",[]),e.get("ctx").clearRect(0,0,o,c),e.get("actx").clearRect(0,0,o,c)},cleanup:function(){var e=this;e.get("element").removeChild(e.get("canvas"))}},{create:function(e){return new s(e)},util:{mousePosition:function(e){var o,c;if(e.layerX?(o=e.layerX,c=e.layerY):e.offsetX&&(o=e.offsetX,c=e.offsetY),typeof o!="undefined")return[o,c]}}}})(),_=function(v){try{BMap}catch(s){throw Error("Baidu Map JS API is not ready yet!")}if(!_._isExtended){_._isExtended=!0,i(_,BMap.Overlay,"HeatmapOverlay");var n=new _(v);this.__proto__=n.__proto__}this.conf=v,this.heatmap=null,this.latlngs=[],this.bounds=null,this._moveendHandler=this._moveendHandler.bind(this)};return _.prototype.initialize=function(v){this._map=v;var n=document.createElement("div");return n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.border=0,n.style.width=this._map.getSize().width+"px",n.style.height=this._map.getSize().height+"px",this.conf.element=n,v.getPanes().mapPane.appendChild(n),this.heatmap=h.create(this.conf),this._div=n,n},_.prototype.draw=function(){var v=this._map.getBounds();if(!v.equals(this.bounds)){this.bounds=v;var n=this._map.pointToOverlayPixel(v.getNorthEast()),s=this._map.pointToOverlayPixel(v.getSouthWest());if(!(!n||!s)){var e=n.y,o=s.x,c=s.y-n.y,p=n.x-s.x;if(this.conf.element.style.left=o+"px",this.conf.element.style.top=e+"px",this.conf.element.style.width=p+"px",this.conf.element.style.height=c+"px",this.heatmap.store.get("heatmap").resize(),this.latlngs.length>0){this.heatmap.clear();for(var f=this.latlngs.length,a={max:this.heatmap.store.max,data:[]};f--;){var d=this.latlngs[f].latlng;if(v.containsPoint(d)){var y=this._map.pointToOverlayPixel(d),x=new BMap.Pixel(y.x-o,y.y-e),u=this.pixelTransform(x);a.data.push({x:u.x,y:u.y,count:this.latlngs[f].c})}}this.heatmap.store.setDataSet(a)}}}},_.prototype.pixelTransform=function(v){for(var n=this.heatmap.get("width"),s=this.heatmap.get("height");v.x<0;)v.x+=n;for(;v.x>n;)v.x-=n;for(;v.y<0;)v.y+=s;for(;v.y>s;)v.y-=s;return v.x=v.x>>0,v.y=v.y>>0,v},_.prototype._moveendHandler=function(v){this.setDataSet(this._data),delete this._data,this._map.removeEventListener("moveend",this._moveendHandler)},_.prototype.setDataSet=function(v){if(this._map){var n=this._map.getBounds(),s=this._map.pointToOverlayPixel(n.getNorthEast()),e=this._map.pointToOverlayPixel(n.getSouthWest());(!s||!e)&&(this._data=v,this._map.addEventListener("moveend",this._moveendHandler));var o={max:v.max,data:[]},c=v.data,p=c.length;for(this.latlngs=[];p--;){var f=new BMap.Point(c[p].lng,c[p].lat);if(this.latlngs.push({latlng:f,c:c[p].count}),!!n.containsPoint(f)){var a=this._map.pointToOverlayPixel(f),d=this._map.pointToOverlayPixel(n.getSouthWest()).x,y=this._map.pointToOverlayPixel(n.getNorthEast()).y,x=new BMap.Pixel(a.x-d,a.y-y),u=this.pixelTransform(x);o.data.push({x:u.x,y:u.y,count:c[p].count})}}this.heatmap.clear(),this.heatmap.store.setDataSet(o)}},_.prototype.addDataPoint=function(v,n,s){var e=new BMap.Point(v,n),o=this.pixelTransform(this._map.pointToOverlayPixel(e));this.heatmap.store.addDataPoint(o.x,o.y,s),this.latlngs.push({latlng:e,c:s})},_.prototype.toggle=function(){this.heatmap.toggleDisplay()},_})})(Qt);var Xt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){function i(v,n){try{BMap}catch(o){throw Error("Baidu Map JS API is not ready yet!")}var s=h(v),e=new BMap.Polyline(s,n);return e.addEventListener("lineupdate",function(){this.isEditing&&this.enableEditing()}),e.cornerPoints=v,e.editMarkers=[],e.enableEditing=function(){var o=this;if(o.map){o.disableEditing();for(var c=0;c<o.cornerPoints.length;c++){var p=new BMap.Marker(o.cornerPoints[c],{icon:new BMap.Icon("http://api.map.baidu.com/library/CurveLine/1.5/src/circle.png",new BMap.Size(16,16)),enableDragging:!0,raiseOnDrag:!0});p.addEventListener("dragend",function(){o.cornerPoints.length=0;for(var f=0;f<o.editMarkers.length;f++)o.cornerPoints.push(o.editMarkers[f].getPosition());var a=h(o.cornerPoints);o.setPath(a)}),p.index=c,o.editMarkers.push(p),o.map.addOverlay(p)}}o.isEditing=!0},e.disableEditing=function(){this.isEditing=!1;for(var o=0;o<this.editMarkers.length;o++)this.map.removeOverlay(this.editMarkers[o]),this.editMarkers[o]=null;this.editMarkers.length=0},e.getPath=function(){return s},e}function h(v){for(var n=[],s=0;s<v.length-1;s++){var e=_(v[s],v[s+1]);e&&e.length>0&&(n=n.concat(e))}return n}function _(v,n){var s=[];if(!v||!n||!(v instanceof BMap.Point)||!(n instanceof BMap.Point))return null;var e=function(g){return 1-2*g+g*g},o=function(g){return 2*g-2*g*g},c=function(g){return g*g},p=30,f,a,d,y,x,u,B=0,O=0;if(typeof n=="undefined"){typeof s!="undefined"&&(s=[]);return}var z=parseFloat(v.lat),k=parseFloat(n.lat),l=parseFloat(v.lng),m=parseFloat(n.lng);for(m>l&&parseFloat(m-l)>180&&l<0&&(l=parseFloat(360+l)),l>m&&parseFloat(l-m)>180&&m<0&&(m=parseFloat(360+m)),u=0,k==z?(f=0,a=l-m):m==l?(f=Math.PI/2,a=z-k):(f=Math.atan((k-z)/(m-l)),a=(k-z)/Math.sin(f)),u==0&&(u=f+Math.PI/5),d=a/2,x=d*Math.cos(u)+l,y=d*Math.sin(u)+z,B=0;B<p+1;B++)s.push(new BMap.Point(l*e(O)+x*o(O)+m*c(O),z*e(O)+y*o(O)+k*c(O))),O=O+1/p;return s}return i})})(Xt);const Yt="data:image/gif;base64,R0lGODlhLAHIAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4ODg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdHR0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpaWltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1tbW5ubm9vb3BwcHFxcXJycnNzc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PnDNMgEC/t0swA08xw0zNt0uJQz+ac0wJB0gdh0D5dENic0dbgDOL8zirdzuos01Ft0iEd0OTADNPw0NKMDdkcN049D1Bd0GA91RW9z1i9zyrNzA5dztsgzT1N1Mgc1mboy9Nw1ATBDlh902udzkzdzV7t00MtEO7ADNjA0W+NENncEB2N1tswD768Dbiz1M5wDpI90eHsDBqt0UjNy+4Qw+kgzQANDttgDSwt2Phs0uxQ2vZc2rA9Dx3NDuIwEOTAzAA9DX192Ds91Q2x1N2szx/NzASR04id2PQM0k7+rdAAnc3dkA7gpdtv3dbGrcwxPBCNLdWhzRA2bdm/7A7n0A3VjQ2i2w1YzdDWIA7ETdDd/RAsPRDscNrDh90LsczMMFvDnNTngNXOgA3iINrdENjSvN3FXd8NAd3bvNcEsdTjzN0o/cveKxDdkM0ZndegbT3xsNbnAOESftIMbdYoDg7ijRDxANAqbeFUDdbsMM1Xnc1BPd7NDd8ajdUljtAN7tdJbc0wnuMlntoHvdYbvthE3ePnTNaq/eRQ7sslns7ADOPpwN7aDczRoM/gcOBxc+ETHdgf/tVMnswQrs0STtjM0A06Td9PDdlZPnyB3c3WsA3i8OXTndYJseL49e3kUP7nUu7MWH3jb+7m2i3dYC3M8n3R2kzMTr3hhE7mDi4QP47Tk50Og57dbE3WBrHhvb3WBpEOvT3b38wO2azfBcHn3X3iKf7QfB4PGy7Omj582QwOT/7bTU3WuO3PAA3M8RDYkS7pk37m2fzNmF7rCBHryT3bxB7hzN7Xwu7glX4QTm0N09Dj0WzWYw7qSe3r04Dqbl3mk67MF5Has74Q5h4Rz3zu497u7v7u8B7v8j7v9F7v9n7v+J7v+r7v/N7v/v7vAB/wAj/wBF/wBn/wCJ/wCr/wDN/wDv/wEB/xEj/xFF/xFn/xGJ/xGr/xHN/xHu/xAQEAOw==",qt={class:"mix-body"},Kt={key:0},Jt={class:"w-[80px] h-[80px]"},Ut=["src"],$t={class:"bdmap-base-info"},te={class:"flex"},ee={class:"name"},ie={class:"value"},ne={class:"flex"},oe={class:"name"},re={class:"value"},ae={class:"flex"},se={class:"name"},le={class:"value"},ue={key:1,class:"w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"},ce={DEFAULT_ICON:et.DEFAULT_ICON,ACTIVE_ICON:et.ACTIVE_ICON,NAME_CN:"百度地图",NAME_EN:"Baidu Map",ORDER:2,PLATFORM:["pc","screen","mobile"]},de={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,lng:113.933782,lat:22.582649,zoom:10},pe={baiduMapAk:""},he={DEFAULT:ce,OPTIONS:de,COMMON:pe},me=w.defineComponent($(U({},he),{__name:"bmp",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(t){const{proxy:r}=w.getCurrentInstance(),i="bmp_"+Math.random().toString(16).substring(4,12);let h=null,_=null;const v=t;class n extends yt.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),zoom:this.getOptionValue("zoom",10),lng:this.getOptionValue("lng",113.933782),lat:this.getOptionValue("lat",22.582649),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var M;this.Style.value=this.extractStyles(),this.applyTheme(),c.zoom=this.Style.value.zoom,c.center.lat=this.Style.value.lat,c.center.lng=this.Style.value.lng;const g=((M=this.props.conf)==null?void 0:M.common)||{};if(c.ak=g.baiduMapAk||"",_&&h){const b=new _.Point(this.Style.value.lng,this.Style.value.lat);h.centerAndZoom(b,this.Style.value.zoom)}}}const s=new n(v,"bmp");s.setupLifecycle();const e=s.getStyle(),o=w.computed(()=>_t.generateTitleStyle(v.conf.options)),c=w.reactive({zoom:10,ak:"",center:{lat:22.582649,lng:113.933782}}),p=w.ref([]),f=w.ref({}),a=w.ref(0),d=w.ref(0),y=w.ref(!1),x=({BMap:m,map:g})=>{h=g,_=m,v.mode==="preview"&&u()},u=()=>tt(null,null,function*(){const{result:m}=yield V.api.post("get_object_list"),g=/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/,M=/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;p.value=[];let b=!1;m.data.forEach(C=>{let S="";if(C.gis||C.gis.split(", ").length>1){const A=C.gis.split(", ");if(g.test(A[1])&&M.test(A[0])&&Number(A[1])&&Number(A[0])){const j=xt(Number(A[1]),Number(A[0]));S=j[1]+","+j[0]}else S=C.custom_gis}else S=C.custom_gis;const P=S.split(",");P.length>=2&&!b&&(c.center.lng=Number(P[1]),c.center.lat=Number(P[0]),b=!0),S.length>1&&p.value.push({center:{lng:P[1],lat:P[0]},image:C.image,address:C.address||C.province+C.city,name:C.name,uid:C.uid,desc:C.description})}),!b&&p.value[0]&&(c.center=p.value[0].center);const E=new _.Point(c.center.lng,c.center.lat);h.centerAndZoom(E,e.value.zoom)}),B=(m,g)=>{a.value=m.pixel.y+10+"px",d.value=m.pixel.x+10+"px",f.value=g,g.address||k(g),y.value=!0},O=m=>console.log(m),z=w.computed(()=>f.value.image?r.config.file_url+"/"+f.value.image:Yt),k=m=>{const g=`${m.center.lat},${m.center.lng}`,M={ak:c.ak,location:g,coordtype:"bd09ll",output:"json",extensions_poi:1};V.api.getLocation("/bdMapAddress",M).then(b=>{b.status===0&&(f.value.address=b.result.formatted_address_poi||b.result.formatted_address)})},l=m=>{if(m){let g=location.href;g.indexOf("?object_id=")>-1&&(g=g.split("?object_id=")[0]),location.href=g+"?object_id="+m,location.reload()}};return(m,g)=>{const M=vt.ElIcon;return w.openBlock(),w.createElementBlock("div",{class:"mix-component",style:w.normalizeStyle({background:w.unref(e).bgColor,borderRadius:`${w.unref(e).radiusSize}px`})},[w.createElementVNode("div",{class:"mix-title",style:w.normalizeStyle(o.value)},w.toDisplayString(t.conf.caption||t.conf.name),5),w.createElementVNode("div",qt,[c.ak?(w.openBlock(),w.createElementBlock("div",{key:0,class:"map-wrap",id:i},[w.createVNode(w.unref(Dt),{class:"bm-view relative",center:c.center,"map-click":!1,zoom:c.zoom,ak:c.ak,v:"3.0",type:"API",onMovestart:g[2]||(g[2]=b=>y.value=!1),onZoomstart:g[3]||(g[3]=b=>y.value=!1),onClick:g[4]||(g[4]=b=>O("close")),"scroll-wheel-zoom":!0,onReady:x},{default:w.withCtx(()=>[p.value.length?(w.openBlock(),w.createElementBlock("div",Kt,[w.createVNode(w.unref(Vt),null,{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(p.value,b=>(w.openBlock(),w.createBlock(w.unref(Lt),{onClick:E=>B(E,b),key:b.uid,position:b.center},null,8,["onClick","position"]))),128))]),_:1})])):w.createCommentVNode("",!0),y.value?(w.openBlock(),w.createElementBlock("div",{key:1,class:"index-bdmap-equipment",style:w.normalizeStyle({top:a.value,left:d.value}),onClick:g[1]||(g[1]=b=>l(f.value))},[w.createElementVNode("div",Jt,[w.createElementVNode("img",{src:z.value,class:"w-[100%] h-[100%]"},null,8,Ut)]),w.createElementVNode("div",$t,[w.createElementVNode("div",te,[w.createElementVNode("span",ee,w.toDisplayString(m.$t("component.map.deviceNumber"))+":",1),w.createElementVNode("span",ie,w.toDisplayString(f.value.uid),1)]),w.createElementVNode("div",ne,[w.createElementVNode("span",oe,w.toDisplayString(m.$t("component.map.deviceName"))+":",1),w.createElementVNode("span",re,w.toDisplayString(f.value.name),1)]),w.createElementVNode("div",ae,[w.createElementVNode("span",se,w.toDisplayString(m.$t("component.map.address"))+":",1),w.createElementVNode("span",le,w.toDisplayString(f.value.address),1)])]),w.createVNode(M,{class:"close-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(bt.Close),{onClick:g[0]||(g[0]=w.withModifiers(b=>y.value=!1,["stop"]))})]),_:1})],4)):w.createCommentVNode("",!0)]),_:1},8,["center","zoom","ak"])])):(w.openBlock(),w.createElementBlock("div",ue,w.toDisplayString(m.$t("component.map.apiKeyRequired")),1))]),w.renderSlot(m.$slots,"default",{},void 0,!0)],4)}}})),fe=V._export_sfc(me,[["__scopeId","data-v-d1ccdc00"]]);exports.default=fe;
|
|
1
|
+
"use strict";var pt=Object.defineProperty,ht=Object.defineProperties;var mt=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var J=(t,r,i)=>r in t?pt(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,U=(t,r)=>{for(var i in r||(r={}))ft.call(r,i)&&J(t,i,r[i]);if(K)for(var i of K(r))gt.call(r,i)&&J(t,i,r[i]);return t},$=(t,r)=>ht(t,mt(r));var tt=(t,r,i)=>new Promise((h,_)=>{var v=e=>{try{s(i.next(e))}catch(o){_(o)}},n=e=>{try{s(i.throw(e))}catch(o){_(o)}},s=e=>e.done?h(e.value):Promise.resolve(e.value).then(v,n);s((i=i.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vt=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/icon/style/css");const w=require("vue"),yt=require("./BaseComponent-B5ivgb3E.cjs"),V=require("./index-DYr57ceS.cjs"),_t=require("./titleStyle-NSnz6cUg.cjs"),bt=require("@element-plus/icons-vue"),et=require("./ele-bmp-icon-BBI0-SX7.cjs"),it=3.141592653589793*3e3/180,T=3.141592653589793,nt=6378245,ot=.006693421622965943;function wt(t,r){var i=Math.sqrt(t*t+r*r)+2e-5*Math.sin(r*it),h=Math.atan2(r,t)+3e-6*Math.cos(t*it),_=i*Math.cos(h)+.0065,v=i*Math.sin(h)+.006;return[_,v]}function Mt(t,r){if(kt(t,r))return[t,r];{var i=Ct(t-105,r-35),h=Bt(t-105,r-35),_=r/180*T,v=Math.sin(_);v=1-ot*v*v;var n=Math.sqrt(v);i=i*180/(nt*(1-ot)/(v*n)*T),h=h*180/(nt/n*Math.cos(_)*T);const s=r+i;return[t+h,s]}}function xt(t,r){const i=Mt(t,r);return wt(i[0],i[1])}function Ct(t,r){var i=-100+2*t+3*r+.2*r*r+.1*t*r+.2*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*T)+20*Math.sin(2*t*T))*2/3,i+=(20*Math.sin(r*T)+40*Math.sin(r/3*T))*2/3,i+=(160*Math.sin(r/12*T)+320*Math.sin(r*T/30))*2/3,i}function Bt(t,r){var i=300+t+2*r+.1*t*t+.1*t*r+.1*Math.sqrt(Math.abs(t));return i+=(20*Math.sin(6*t*T)+20*Math.sin(2*t*T))*2/3,i+=(20*Math.sin(t*T)+40*Math.sin(t/3*T))*2/3,i+=(150*Math.sin(t/12*T)+300*Math.sin(t/30*T))*2/3,i}function kt(t,r){return t<72.004||t>137.8347||r<.8293||r>55.8271||!1}var St={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]};function lt(t,r){const i=r||St[this.$options.name];i&&i.forEach(h=>{let v=h.slice(0,2)==="on"?h.slice(2):h;const n=this.$attrs["on"+v.replace(v[0],v[0].toUpperCase())];n&&t.addEventListener(h,n)})}function G(t,r={}){const{lng:i,lat:h}=r;return new t.Point(i,h)}function D(t,r={}){const{width:i,height:h}=r;return new t.Size(i,h)}function rt(t,r={}){const{url:i,size:h,opts:_={}}=r;let v={anchor:_.anchor&&D(t,_.anchor),imageSize:_.imageSize&&D(t,_.imageSize),imageOffset:_.imageOffset&&D(t,_.imageOffset),infoWindowAnchor:_.infoWindowAnchor&&D(t,_.infoWindowAnchor),printImageUrl:_.printImageUrl};return Q(v),new t.Icon(i,D(t,h),v)}function Ot(t,r={}){const{content:i,opts:h}=r;let _={offset:h.offset&&D(t,h.offset),position:h.position&&G(t,h.position),enableMassClear:h.enableMassClear};return Q(_),new t.Label(i,_)}const at=t=>Object.prototype.toString.call(t).slice(8,-1),Q=t=>{Object.keys(t).forEach(r=>{typeof t[r]=="undefined"&&delete t[r]})};let W={v:"3.0",type:"API"};const Et=(t={})=>{W=Object.assign(W,t),W.ak||console.error("请配置ak:百度地图开发者平台申请的密钥")},N=()=>W;var Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},X={exports:{}};function Y(){}Y.prototype={on:function(t,r,i){var h=this.e||(this.e={});return(h[t]||(h[t]=[])).push({fn:r,ctx:i}),this},once:function(t,r,i){var h=this;function _(){h.off(t,_),r.apply(i,arguments)}return _._=r,this.on(t,_,i)},emit:function(t){var r=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),h=0,_=i.length;for(h;h<_;h++)i[h].fn.apply(i[h].ctx,r);return this},off:function(t,r){var i=this.e||(this.e={}),h=i[t],_=[];if(h&&r)for(var v=0,n=h.length;v<n;v++)h[v].fn!==r&&h[v].fn._!==r&&_.push(h[v]);return _.length?i[t]=_:delete i[t],this}};X.exports=Y;X.exports.TinyEmitter=Y;var Pt=X.exports,L=new Pt,I={$on:(...t)=>L.on(...t),$once:(...t)=>L.once(...t),$off:(...t)=>L.off(...t),$emit:(...t)=>L.emit(...t)};const st={API:{"2.0":{setMapStyle:"setMapStyle",NavigationControl:"NavigationControl"},"3.0":{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl"}},WebGL:{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl3D"}},F=t=>{const r=N();return r.type=="WebGL"?st[r.type][t]:st[r.type][r.v][t]};let ut;new Promise(t=>{ut=t});var q=(t,r)=>{const i=t.__vccOpts||t;for(const[h,_]of r)i[h]=_;return i};const zt={name:"bm-map",inheritAttrs:!1,emits:["ready","init","animationed"],props:{ak:{type:String},v:{type:String},type:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object},hasAnimation:{type:Boolean,default:!0},defaultAnimation:{type:Boolean,default:!0},preserveDrawingBuffer:{type:Boolean,default:!1}},watch:{center(t,r){const{map:i,zoom:h}=this;at(t)==="String"&&t!==r&&this.setCenterZoom(i,t,h)},"center.lng"(t,r){const{BMap:i,map:h,zoom:_,center:v}=this;t!==r&&t>=-180&&t<=180&&this.setCenterZoom(h,new i.Point(t,v.lat),_)},"center.lat"(t,r){const{BMap:i,map:h,zoom:_,center:v}=this;t!==r&&t>=-74&&t<=74&&this.setCenterZoom(h,new i.Point(v.lng,t),_)},zoom(t,r){const{map:i}=this;t!==r&&t>=3&&t<=19&&i.setZoom(t)},minZoom(t){const{map:r}=this;r.setMinZoom(t)},maxZoom(t){const{map:r}=this;r.setMaxZoom(t)},highResolution(){this.reset()},mapClick(){this.reset()},mapType(t){const{map:r}=this;r.setMapType(window[t])},dragging(t){const{map:r}=this;t?r.enableDragging():r.disableDragging()},scrollWheelZoom(t){const{map:r}=this;t?r.enableScrollWheelZoom():r.disableScrollWheelZoom()},doubleClickZoom(t){const{map:r}=this;t?r.enableDoubleClickZoom():r.disableDoubleClickZoom()},keyboard(t){const{map:r}=this;t?r.enableKeyboard():r.disableKeyboard()},inertialDragging(t){const{map:r}=this;t?r.enableInertialDragging():r.disableInertialDragging()},continuousZoom(t){const{map:r}=this;t?r.enableContinuousZoom():r.disableContinuousZoom()},pinchToZoom(t){const{map:r}=this;t?r.enablePinchToZoom():r.disablePinchToZoom()},autoResize(t){const{map:r}=this;t?r.enableAutoResize():r.disableAutoResize()},theme(t){const{map:r}=this;r[F("setMapStyle")]({styleJson:t})},mapStyle:{handler(t){const{map:r,theme:i}=this;!i&&r[F("setMapStyle")](t)},deep:!0}},methods:{setMapOptions(){const{map:t,minZoom:r,maxZoom:i,mapType:h,dragging:_,scrollWheelZoom:v,doubleClickZoom:n,keyboard:s,inertialDragging:e,continuousZoom:o,pinchToZoom:c,autoResize:p}=this;r&&t.setMinZoom(r),i&&t.setMaxZoom(i),h&&t.setMapType(window[h]),_?t.enableDragging():t.disableDragging(),v?t.enableScrollWheelZoom():t.disableScrollWheelZoom(),n?t.enableDoubleClickZoom():t.disableDoubleClickZoom(),s?t.enableKeyboard():t.disableKeyboard(),e?t.enableInertialDragging():t.disableInertialDragging(),o?t.enableContinuousZoom():t.disableContinuousZoom(),c?t.enablePinchToZoom():t.disablePinchToZoom(),p?t.enableAutoResize():t.disableAutoResize()},init(t){if(this.map)return;let r=this.$refs.view;const i=new t.Map(r,{enableHighResolution:this.highResolution,enableMapClick:this.mapClick,preserveDrawingBuffer:this.preserveDrawingBuffer}),h=Math.random().toString();this.mapKey=h,this.map=i;const{setMapOptions:_,zoom:v,getCenterPoint:n,theme:s,mapStyle:e}=this;_(),lt.call(this,i),i.reset(),this.setCenterZoom(i,n(),v),s?i[F("setMapStyle")]({styleJson:s}):e&&i[F("setMapStyle")](e);let o=0;this.$emit("init",{BMap:t,map:i,mapKey:h}),I.$emit("init",{BMap:t,map:i,mapKey:h}),i.addEventListener("tilesloaded",()=>{o||(o++,this.$emit("ready",{BMap:t,map:i,mapKey:h}),I.$emit("ready",{BMap:t,map:i,mapKey:h}))}),i.addEventListener("loaded",()=>{this.$emit("loaded",{BMap:t,map:i,mapKey:h}),I.$emit("loaded",{BMap:t,map:i,mapKey:h})})},setCenterZoom(t,r,i){N().type==="WebGL"&&(!this.hasAnimation||!this.defaultAnimation)?t.setCenter(r,{noAnimation:!this.hasAnimation,callback:()=>{t.setZoom(i,{noAnimation:!this.hasAnimation,zoomCenter:r,callback:()=>{this.$emit("animationed",{BMap:this.BMap,map:t})}})}}):t.centerAndZoom(r,i)},getCenterPoint(){const{center:t,BMap:r}=this;switch(at(t)){case"String":return t;case"Object":return new r.Point(t.lng,t.lat);default:return new r.Point}},initMap(t){this.BMap=t,this.init(t),ut(t)},getMapScript(){return window.BMap?window.BMap._preloader?window.BMap._preloader:Promise.resolve(window.BMap):(window.BMap={},window.BMap._preloader=new Promise((t,r)=>{window._initBaiduMap=function(){window.BMap=N().type=="WebGL"?window.BMapGL:window.BMap,t(window.BMap),window.document.body.removeChild(i),window.BMap._preloader=null,window._initBaiduMap=null};const i=document.createElement("script");window.document.body.appendChild(i),N().type==="WebGL"?i.src=`https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${N().ak}&callback=_initBaiduMap`:i.src=`https://api.map.baidu.com/api?v=${N().v}&ak=${N().ak}&callback=_initBaiduMap`}),window.BMap._preloader)},reset(){const{getMapScript:t,initMap:r}=this;t().then(r)}},created(){const t={};this.ak&&(t.ak=this.ak),this.v&&(t.v=this.v),this.type&&(t.type=this.type),Et(t)},mounted(){this.reset()},data(){return{hasBmView:!1,map:null,BMap:null,name:"bm-map",mapKey:""}}},Tt={key:0,ref:"view",style:{width:"100%",height:"100%"}};function At(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("div",{class:w.normalizeClass(t.$attrs.class),style:w.normalizeStyle(t.$attrs.style)},[_.hasBmView?w.createCommentVNode("",!0):(w.openBlock(),w.createElementBlock("div",Tt,null,512)),w.renderSlot(t.$slots,"default")],6)}var Dt=q(zt,[["render",At]]);const Nt={control:{unload:"removeControl"},layer:{unload:"removeTileLayer"},overlay:{unload:"removeOverlay"},contextMenu:{unload:"removeContextMenu"}},R=t=>t.abstract||t.name!=="bm-map"?R(t.$parent):t;function It(){const{unload:t,renderByParent:r,$parent:i,ready:h}=this;I.$off("ready",h),r&&i.reload(),t()}const Rt=(t={})=>({emits:["ready","init"],computed:{renderByParent(){return this.$parent.preventChildrenRender}},created(){const r=R(this.$parent),i=r.map,{ready:h,_init:_}=this;i?h():I.$on("ready",({mapKey:v})=>this.emitCallBack(v,h)),i?this.init({BMap:r.BMap,map:i}):I.$on("init",({mapKey:v})=>this.emitCallBack(v,_))},mounted(){const i=R(this.$parent).map,{mountedReady:h}=this;i?h():I.$on("ready",({mapKey:_})=>this.emitCallBack(_,h))},unmounted:It,methods:{emitCallBack(r,i){const h=R(this.$parent);r==h.mapKey&&i()},_init(){const r=R(this.$parent),i=this.BMap=r.BMap,h=this.map=r.map;this.init({BMap:i,map:h})},init(){},ready(){const r=R(this.$parent),i=this.BMap=r.BMap,h=this.map=r.map;this.load(),this.$emit("ready",{BMap:i,map:h})},mountedReady(){this.mountedLoad()},transmitEvent(r){this.$emit(r.type.replace(/^on/,""),r)},reload(){this&&this.BMap&&this.$nextTick(()=>{this.unload(),this.$nextTick(()=>{this.load(),this.mountedLoad()})})},unload(){const{map:r,originInstance:i}=this;try{switch(t.type){case"search":return i.clearResults();case"autoComplete":case"lushu":return i.dispose();case"markerClusterer":return i.clearMarkers();default:r[Nt[t.type].unload](i)}}catch(h){}},mountedLoad(){}}});var ct=t=>Rt({type:t});const Zt={name:"bm-marker",mixins:[ct("overlay")],inject:{Cluster:{default:()=>({})}},props:{position:{},offset:{},icon:{},massClear:{type:Boolean,default:!0},dragging:{type:Boolean,default:!1},clicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{type:String},rotation:{type:Number},shadow:{type:Object},title:{type:String},label:{type:Object},animation:{type:String},top:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},watch:{"position.lng"(t,r){const{BMap:i,originInstance:h,position:_,renderByParent:v,$parent:n}=this;t!==r&&t>=-180&&t<=180&&h.setPosition(G(i,{lng:t,lat:_.lat})),v&&n.reload()},"position.lat"(t,r){const{BMap:i,originInstance:h,position:_,renderByParent:v,$parent:n}=this;t!==r&&t>=-74&&t<=74&&h.setPosition(G(i,{lng:_.lng,lat:t})),v&&n.reload()},"offset.width"(t,r){const{BMap:i,originInstance:h}=this;t!==r&&h.setOffset(new i.Size(t,this.offset.height))},"offset.height"(t,r){const{BMap:i,originInstance:h}=this;t!==r&&h.setOffset(new i.Size(this.offset.width,t))},icon:{deep:!0,handler(t){const{BMap:r,originInstance:i,rotation:h}=this;i&&i.setIcon(rt(r,t)),h&&i&&i.setRotation(h)}},massClear(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},dragging(t){t?this.originInstance.enableDragging():this.originInstance.disableDragging()},clicking(){this.reload()},raiseOnDrag(){this.reload()},draggingCursor(t){this.originInstance.setDraggingCursor(t)},rotation(t){this.originInstance.setRotation(t)},shadow(t){this.originInstance.setShadow(t)},title(t){this.originInstance.setTitle(t)},label(t){this.reload()},animation(t){this.originInstance.setAnimation(window[t])},top(t){this.originInstance.setTop(t)},zIndex(t){this.originInstance.setZIndex(t)}},methods:{load(){var t,r;const{BMap:i,map:h,position:_,offset:v,icon:n,massClear:s,dragging:e,clicking:o,raiseOnDrag:c,draggingCursor:p,rotation:f,shadow:a,title:d,label:y,animation:x,top:u,renderByParent:B,$parent:O,zIndex:z}=this;let k={offset:v,icon:n&&rt(i,n),enableMassClear:s,enableDragging:e,enableClicking:o,raiseOnDrag:c,draggingCursor:p,rotation:f,shadow:a,title:d};Q(k);const l=new i.Marker(new i.Point(_.lng,_.lat),k);this.originInstance=l,y&&l&&l.setLabel(Ot(i,y)),l.setTop(u),l.setZIndex(z),lt.call(this,l),B?O.reload():h.addOverlay(l),l.setAnimation(window[x]),(r=(t=this.Cluster)==null?void 0:t.addMaker)==null||r.call(t,this)}},beforeUnmount(){var t,r;(r=(t=this.Cluster)==null?void 0:t.removeMaker)==null||r.call(t,this)}};function jt(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("div",null,[w.renderSlot(t.$slots,"default")])}var Lt=q(Zt,[["render",jt]]),dt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){var i=typeof window!="undefined"?window:typeof Z!="undefined"?Z:this;function h(a,d){return d={exports:{}},a(d,d.exports,i),d.exports}var _=h(function(a,d,y){(function(x,u){typeof d=="object"?a.exports=u():(x.BMapLib=x.BMapLib||{},x.BMapLib.TextIconOverlay=x.BMapLib.TextIconOverlay||u())})(i,function(){var x,u=x=u||{version:"1.3.8"},B={};u.guid="$BAIDU$",B[u.guid]=B[u.guid]||{},u.dom=u.dom||{},u.dom.g=function(l){return typeof l=="string"||l instanceof String?document.getElementById(l):l&&l.nodeName&&(l.nodeType==1||l.nodeType==9)?l:null},u.g=u.G=u.dom.g,u.dom.getDocument=function(l){return l=u.dom.g(l),l.nodeType==9?l:l.ownerDocument||l.document},u.lang=u.lang||{},u.lang.isString=function(l){return Object.prototype.toString.call(l)=="[object String]"},u.isString=u.lang.isString,u.dom._g=function(l){return u.lang.isString(l)?document.getElementById(l):l},u._g=u.dom._g,u.browser=u.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(u.browser.ie=u.ie=document.documentMode||+RegExp.$1),u.dom.getComputedStyle=function(l,m){l=u.dom._g(l);var g=u.dom.getDocument(l),M;return g.defaultView&&g.defaultView.getComputedStyle&&(M=g.defaultView.getComputedStyle(l,null),M)?M[m]||M.getPropertyValue(m):""},u.dom._styleFixer=u.dom._styleFixer||{},u.dom._styleFilter=u.dom._styleFilter||[],u.dom._styleFilter.filter=function(l,m,g){for(var M=0,b=u.dom._styleFilter,E;E=b[M];M++)(E=E[g])&&(m=E(l,m));return m},u.string=u.string||{},u.string.toCamelCase=function(l){return l.indexOf("-")<0&&l.indexOf("_")<0?l:l.replace(/[-_][^-_]/g,function(m){return m.charAt(1).toUpperCase()})},u.dom.getStyle=function(l,m){var g=u.dom;l=g.g(l),m=u.string.toCamelCase(m);var M=l.style[m]||(l.currentStyle?l.currentStyle[m]:"")||g.getComputedStyle(l,m);if(!M){var b=g._styleFixer[m];b&&(M=b.get?b.get(l):u.dom.getStyle(l,b))}return(b=g._styleFilter)&&(M=b.filter(m,M,"get")),M},u.getStyle=u.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(u.browser.opera=+RegExp.$1),u.browser.isWebkit=/webkit/i.test(navigator.userAgent),u.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),u.browser.isStrict=document.compatMode=="CSS1Compat",u.dom.getPosition=function(l){l=u.dom.g(l);var m=u.dom.getDocument(l),g=u.browser,M=u.dom.getStyle;g.isGecko>0&&m.getBoxObjectFor&&M(l,"position")=="absolute"&&(l.style.top===""||l.style.left);var b={left:0,top:0},E=g.ie&&!g.isStrict?m.body:m.documentElement,C,S;if(l==E)return b;if(l.getBoundingClientRect){S=l.getBoundingClientRect(),b.left=Math.floor(S.left)+Math.max(m.documentElement.scrollLeft,m.body.scrollLeft),b.top=Math.floor(S.top)+Math.max(m.documentElement.scrollTop,m.body.scrollTop),b.left-=m.documentElement.clientLeft,b.top-=m.documentElement.clientTop;var P=m.body,A=parseInt(M(P,"borderLeftWidth")),j=parseInt(M(P,"borderTopWidth"));g.ie&&!g.isStrict&&(b.left-=isNaN(A)?2:A,b.top-=isNaN(j)?2:j)}else{C=l;do{if(b.left+=C.offsetLeft,b.top+=C.offsetTop,g.isWebkit>0&&M(C,"position")=="fixed"){b.left+=m.body.scrollLeft,b.top+=m.body.scrollTop;break}C=C.offsetParent}while(C&&C!=l);for((g.opera>0||g.isWebkit>0&&M(l,"position")=="absolute")&&(b.top-=m.body.offsetTop),C=l.offsetParent;C&&C!=m.body;)b.left-=C.scrollLeft,(!g.opera||C.tagName!="TR")&&(b.top-=C.scrollTop),C=C.offsetParent}return b},u.event=u.event||{},u.event._listeners=u.event._listeners||[],u.event.on=function(l,m,g){m=m.replace(/^on/i,""),l=u.dom._g(l);var M=function(P){g.call(l,P)},b=u.event._listeners,E=u.event._eventFilter,C,S=m;return m=m.toLowerCase(),E&&E[m]&&(C=E[m](l,m,M),S=C.type,M=C.listener),l.addEventListener?l.addEventListener(S,M,!1):l.attachEvent&&l.attachEvent("on"+S,M),b[b.length]=[l,m,g,M,S],l},u.on=u.event.on,(function(){var l=B[u.guid];u.lang.guid=function(){return"TANGRAM__"+(l._counter++).toString(36)},l._counter=l._counter||1})(),B[u.guid]._instances=B[u.guid]._instances||{},u.lang.isFunction=function(l){return Object.prototype.toString.call(l)=="[object Function]"},u.lang.Class=function(l){this.guid=l||u.lang.guid(),B[u.guid]._instances[this.guid]=this},B[u.guid]._instances=B[u.guid]._instances||{},u.lang.Class.prototype.dispose=function(){delete B[u.guid]._instances[this.guid];for(var l in this)u.lang.isFunction(this[l])||delete this[l];this.disposed=!0},u.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},u.lang.Event=function(l,m){this.type=l,this.returnValue=!0,this.target=m||null,this.currentTarget=null},u.lang.Class.prototype.addEventListener=function(l,m,g){if(u.lang.isFunction(m)){!this.__listeners&&(this.__listeners={});var M=this.__listeners,b;if(typeof g=="string"&&g){if(/[^\w\-]/.test(g))throw"nonstandard key:"+g;m.hashCode=g,b=g}l.indexOf("on")!=0&&(l="on"+l),typeof M[l]!="object"&&(M[l]={}),b=b||u.lang.guid(),m.hashCode=b,M[l][b]=m}},u.lang.Class.prototype.removeEventListener=function(l,m){if(!(typeof m!="undefined"&&(u.lang.isFunction(m)&&!(m=m.hashCode)||!u.lang.isString(m)))){!this.__listeners&&(this.__listeners={}),l.indexOf("on")!=0&&(l="on"+l);var g=this.__listeners;if(g[l])if(typeof m!="undefined")g[l][m]&&delete g[l][m];else for(var M in g[l])delete g[l][M]}},u.lang.Class.prototype.dispatchEvent=function(l,m){u.lang.isString(l)&&(l=new u.lang.Event(l)),!this.__listeners&&(this.__listeners={}),m=m||{};for(var g in m)l[g]=m[g];var g,M=this.__listeners,b=l.type;if(l.target=l.target||this,l.currentTarget=this,b.indexOf("on")!=0&&(b="on"+b),u.lang.isFunction(this[b])&&this[b].apply(this,arguments),typeof M[b]=="object")for(g in M[b])M[b][g].apply(this,arguments);return l.returnValue},u.lang.inherits=function(l,m,g){var M,b,E=l.prototype,C=new Function;C.prototype=m.prototype,b=l.prototype=new C;for(M in E)b[M]=E[M];l.prototype.constructor=l,l.superClass=m.prototype,typeof g=="string"&&(b._className=g)},u.inherits=u.lang.inherits;var O="http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m",z="png",k=function(l,m,g){try{BMap}catch(M){throw Error("Baidu Map JS API is not ready yet!")}x.lang.inherits(k,BMap.Overlay,"TextIconOverlay"),this._position=l,this._text=m,this._options=g||{},this._styles=this._options.styles||[],!this._styles.length&&this._setupDefaultStyles()};return k.prototype._setupDefaultStyles=function(){for(var l=[53,56,66,78,90],m=0,g;g=l[m];m++)this._styles.push({url:O+m+"."+z,size:new BMap.Size(g,g)})},k.prototype.initialize=function(l){return this._map=l,this._domElement=document.createElement("div"),this._updateCss(),this._updateText(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},k.prototype.draw=function(){this._map&&this._updatePosition()},k.prototype.getText=function(){return this._text},k.prototype.setText=function(l){l&&(!this._text||this._text.toString()!=l.toString())&&(this._text=l,this._updateText(),this._updateCss(),this._updatePosition())},k.prototype.getPosition=function(){return this._position},k.prototype.setPosition=function(l){l&&(!this._position||!this._position.equals(l))&&(this._position=l,this._updatePosition())},k.prototype.getStyleByText=function(l,m){var g=parseInt(l),M=parseInt(g/10);return M=Math.max(0,M),M=Math.min(M,m.length-1),m[M]},k.prototype._updateCss=function(){if(this._domElement){var l=this.getStyleByText(this._text,this._styles);this._domElement.style.cssText=this._buildCssText(l)}},k.prototype._updateText=function(){this._domElement&&(this._domElement.innerHTML=this._text)},k.prototype._updatePosition=function(){if(this._domElement&&this._position){var l=this._domElement.style,m=this._map.pointToOverlayPixel(this._position);m.x-=Math.ceil(parseInt(l.width)/2),m.y-=Math.ceil(parseInt(l.height)/2),l.left=m.x+"px",l.top=m.y+"px"}},k.prototype._buildCssText=function(l){var m=l.url,g=l.size,M=l.anchor,b=l.offset,E=l.textColor||"black",C=l.textSize||10,S=[];if(x.browser.ie<7)S.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+m+'");');else{S.push("background-image:url("+m+");");var P="0 0";b instanceof BMap.Size&&(P=b.width+"px "+b.height+"px"),S.push("background-position:"+P+";")}return g instanceof BMap.Size&&(M instanceof BMap.Size?(M.height>0&&M.height<g.height&&S.push("height:"+(g.height-M.height)+"px; padding-top:"+M.height+"px;"),M.width>0&&M.width<g.width&&S.push("width:"+(g.width-M.width)+"px; padding-left:"+M.width+"px;")):(S.push("height:"+g.height+"px; line-height:"+g.height+"px;"),S.push("width:"+g.width+"px; text-align:center;"))),S.push("cursor:pointer; color:"+E+"; position:absolute; font-size:"+C+"px; font-family:Arial,sans-serif; font-weight:bold"),S.join("")},k.prototype._bind=function(){if(!this._domElement)return;var l=this,m=this._map,g=x.lang.Event;function M(b,E){var C=b.srcElement||b.target,S=b.clientX||b.pageX,P=b.clientY||b.pageY;if(b&&E&&S&&P&&C){var A=x.dom.getPosition(m.getContainer());E.pixel=new BMap.Pixel(S-A.left,P-A.top),E.point=m.pixelToPoint(E.pixel)}return E}x.event.on(this._domElement,"mouseover",function(b){l.dispatchEvent(M(b,new g("onmouseover")))}),x.event.on(this._domElement,"mouseout",function(b){l.dispatchEvent(M(b,new g("onmouseout")))}),x.event.on(this._domElement,"click",function(b){l.dispatchEvent(M(b,new g("onclick")))})},k})}),v=_&&typeof _=="object"&&"default"in _?_.default:_,n=function(a,d,y){d=s(d);var x=a.pointToPixel(d.getNorthEast()),u=a.pointToPixel(d.getSouthWest());x.x+=y,x.y-=y,u.x-=y,u.y+=y;var B=a.pixelToPoint(x),O=a.pixelToPoint(u);return new BMap.Bounds(O,B)},s=function(a){var d=e(a.getNorthEast().lng,-180,180),y=e(a.getSouthWest().lng,-180,180),x=e(a.getNorthEast().lat,-74,74),u=e(a.getSouthWest().lat,-74,74);return new BMap.Bounds(new BMap.Point(y,u),new BMap.Point(d,x))},e=function(a,d,y){return d&&(a=Math.max(a,d)),y&&(a=Math.min(a,y)),a},o=function(a){return Object.prototype.toString.call(a)==="[object Array]"},c=function(a,d){var y=-1;if(o(d)){if(d.indexOf)y=d.indexOf(a);else for(var x=0,u;u=d[x];x++)if(u===a){y=x;break}}return y},p=function(a,d){try{BMap}catch(B){throw Error("Baidu Map JS API is not ready yet!")}if(a){this._map=a,this._markers=[],this._clusters=[];var y=d||{};this._gridSize=y.gridSize||60,this._maxZoom=y.maxZoom||18,this._minClusterSize=y.minClusterSize||2,this._isAverageCenter=!1,y.isAverageCenter!=null&&(this._isAverageCenter=y.isAverageCenter),this._styles=y.styles||[];var x=this;this._map.addEventListener("zoomend",function(){x._redraw()}),this._map.addEventListener("moveend",function(){x._redraw()});var u=y.markers;o(u)&&this.addMarkers(u)}};p.prototype.addMarkers=function(a){if(a.length){for(var d=0,y=a.length;d<y;d++)this._pushMarkerTo(a[d]);this._createClusters()}},p.prototype._pushMarkerTo=function(a){var d=c(a,this._markers);d===-1&&(a.isInCluster=!1,this._markers.push(a))},p.prototype.addMarker=function(a){this._pushMarkerTo(a),this._createClusters()},p.prototype._createClusters=function(){var a=this._map.getBounds();if(a.getCenter())for(var d=n(this._map,a,this._gridSize),y=0,x;x=this._markers[y];y++)!x.isInCluster&&d.containsPoint(x.getPosition())&&this._addToClosestCluster(x)},p.prototype._addToClosestCluster=function(a){var d=4e6,y=null;a.getPosition();for(var x=0,u;u=this._clusters[x];x++){var B=u.getCenter();if(B){var O=this._map.getDistance(B,a.getPosition());O<d&&(d=O,y=u)}}if(y&&y.isMarkerInClusterBounds(a))y.addMarker(a);else{var u=new f(this);u.addMarker(a),this._clusters.push(u)}},p.prototype._clearLastClusters=function(){for(var a=0,d;d=this._clusters[a];a++)d.remove();this._clusters=[],this._removeMarkersFromCluster()},p.prototype._removeMarkersFromCluster=function(){for(var a=0,d;d=this._markers[a];a++)d.isInCluster=!1},p.prototype._removeMarkersFromMap=function(){for(var a=0,d;d=this._markers[a];a++){d.isInCluster=!1;var y=d.getLabel();this._map.removeOverlay(d),d.setLabel(y)}},p.prototype._removeMarker=function(a){var d=c(a,this._markers);return d===-1?!1:(this._map.removeOverlay(a),this._markers.splice(d,1),!0)},p.prototype.removeMarker=function(a){var d=this._removeMarker(a);return d&&(this._clearLastClusters(),this._createClusters()),d},p.prototype.removeMarkers=function(a){for(var d=!1,y=0;y<a.length;y++){var x=this._removeMarker(a[y]);d=d||x}return d&&(this._clearLastClusters(),this._createClusters()),d},p.prototype.clearMarkers=function(){this._clearLastClusters(),this._removeMarkersFromMap(),this._markers=[]},p.prototype._redraw=function(){this._clearLastClusters(),this._createClusters()},p.prototype.getGridSize=function(){return this._gridSize},p.prototype.setGridSize=function(a){this._gridSize=a,this._redraw()},p.prototype.getMaxZoom=function(){return this._maxZoom},p.prototype.setMaxZoom=function(a){this._maxZoom=a,this._redraw()},p.prototype.getStyles=function(){return this._styles},p.prototype.setStyles=function(a){this._styles=a,this._redraw()},p.prototype.getMinClusterSize=function(){return this._minClusterSize},p.prototype.setMinClusterSize=function(a){this._minClusterSize=a,this._redraw()},p.prototype.isAverageCenter=function(){return this._isAverageCenter},p.prototype.getMap=function(){return this._map},p.prototype.getMarkers=function(){return this._markers},p.prototype.getClustersCount=function(){for(var a=0,d=0,y;y=this._clusters[d];d++)y.isReal()&&a++;return a};function f(a){this._markerClusterer=a,this._map=a.getMap(),this._minClusterSize=a.getMinClusterSize(),this._isAverageCenter=a.isAverageCenter(),this._center=null,this._markers=[],this._gridBounds=null,this._isReal=!1,this._clusterMarker=new v(this._center,this._markers.length,{styles:this._markerClusterer.getStyles()})}return f.prototype.addMarker=function(a){if(this.isMarkerInCluster(a))return!1;if(!this._center)this._center=a.getPosition(),this.updateGridBounds();else if(this._isAverageCenter){var d=this._markers.length+1,y=(this._center.lat*(d-1)+a.getPosition().lat)/d,x=(this._center.lng*(d-1)+a.getPosition().lng)/d;this._center=new BMap.Point(x,y),this.updateGridBounds()}a.isInCluster=!0,this._markers.push(a);var u=this._markers.length;if(u<this._minClusterSize)return this._map.addOverlay(a),!0;if(u===this._minClusterSize)for(var B=0;B<u;B++){var O=this._markers[B].getLabel();this._markers[B].getMap()&&this._map.removeOverlay(this._markers[B]),this._markers[B].setLabel(O)}return this._map.addOverlay(this._clusterMarker),this._isReal=!0,this.updateClusterMarker(),!0},f.prototype.isMarkerInCluster=function(a){if(this._markers.indexOf)return this._markers.indexOf(a)!=-1;for(var d=0,y;y=this._markers[d];d++)if(y===a)return!0;return!1},f.prototype.isMarkerInClusterBounds=function(a){return this._gridBounds.containsPoint(a.getPosition())},f.prototype.isReal=function(a){return this._isReal},f.prototype.updateGridBounds=function(){var a=new BMap.Bounds(this._center,this._center);this._gridBounds=n(this._map,a,this._markerClusterer.getGridSize())},f.prototype.updateClusterMarker=function(){if(this._map.getZoom()>this._markerClusterer.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var a=0,d;d=this._markers[a];a++)this._map.addOverlay(d);return}if(this._markers.length<this._minClusterSize){this._clusterMarker.hide();return}this._clusterMarker.setPosition(this._center),this._clusterMarker.setText(this._markers.length),this._clusterMarker.addEventListener&&!this._clusterMarker._hasClickEvent&&this._clusterMarker.addEventListener("click",function(y){this._clusterMarker._hasClickEvent=!0,this._markers&&this._map.setViewport(this.getBounds())}.bind(this))},f.prototype.remove=function(){for(var a=0;this._markers[a];a++){var d=this._markers[a].getLabel();this._markers[a].getMap()&&this._map.removeOverlay(this._markers[a]),this._markers[a].setLabel(d)}this._map.removeOverlay(this._clusterMarker),this._markers.length=0,delete this._markers},f.prototype.getBounds=function(){for(var a=new BMap.Bounds(this._center,this._center),d=0,y;y=this._markers[d];d++)a.extend(y.getPosition());return a},f.prototype.getCenter=function(){return this._center},p})})(dt);var Ft=dt.exports;const H=[],Ht={name:"bml-marker-clusterer",mixins:[ct("markerClusterer")],provide(){return{Cluster:this}},props:{gridSize:{type:Number},maxZoom:{type:Number},minClusterSize:{type:Number},styles:{type:Array,default(){return[]}},averageCenter:{type:Boolean,default:!1}},data(){return{}},watch:{gridSize:{handler(t){const{BMap:r,originInstance:i}=this;i.setGridSize(t)},deep:!0},maxZoom(t){const{originInstance:r}=this;r.setMaxZoom(t)},minClusterSize:{handler(t){const{BMap:r,originInstance:i}=this;i.setMinClusterSize(t)},deep:!0},styles:{handler(t){const{BMap:r,originInstance:i}=this,h=JSON.parse(JSON.stringify(t)).map(_=>(_.size=_.size&&D(r,_.size),_));i.setStyles(h)},deep:!0},averageCenter(t){this.reload()}},methods:{load(){const{BMap:t,map:r,gridSize:i,minClusterSize:h,maxZoom:_,styles:v,averageCenter:n}=this;this.originInstance=new Ft(r,{gridSize:i||60,maxZoom:_,minClusterSize:h||2,styles:v.map(s=>(s.size=D(t,s.size),s)),isAverageCenter:n}),this.$nextTick(()=>{const s=H.map(e=>e.originInstance).filter(e=>e instanceof t.Marker);this.originInstance.addMarkers(s)})},addMaker(t){H.push(t)},removeMaker(t){H.splice(H.indexOf(t),1)}},beforeCreate(){this.preventChildrenRender=!0}};function Wt(t,r,i,h,_,v){return w.openBlock(),w.createElementBlock("span",null,[w.renderSlot(t.$slots,"default")])}var Vt=q(Ht,[["render",Wt]]),Gt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){var i={};i.dom={},i.dom.g=function(n){return typeof n=="string"||n instanceof String?document.getElementById(n):n&&n.nodeName&&(n.nodeType==1||n.nodeType==9)?n:null},i.g=i.G=i.dom.g,i.lang=i.lang||{},i.lang.isString=function(n){return Object.prototype.toString.call(n)=="[object String]"},i.isString=i.lang.isString,i.dom._g=function(n){return i.lang.isString(n)?document.getElementById(n):n},i._g=i.dom._g,i.dom.getDocument=function(n){return n=i.dom.g(n),n.nodeType==9?n:n.ownerDocument||n.document},i.browser=i.browser||{},i.browser.ie=i.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0,i.dom.getComputedStyle=function(n,s){n=i.dom._g(n);var e=i.dom.getDocument(n),o;return e.defaultView&&e.defaultView.getComputedStyle&&(o=e.defaultView.getComputedStyle(n,null),o)?o[s]||o.getPropertyValue(s):""},i.dom._styleFixer=i.dom._styleFixer||{},i.dom._styleFilter=i.dom._styleFilter||[],i.dom._styleFilter.filter=function(n,s,e){for(var o=0,c=i.dom._styleFilter,p;p=c[o];o++)(p=p[e])&&(s=p(n,s));return s},i.string=i.string||{},i.string.toCamelCase=function(n){return n.indexOf("-")<0&&n.indexOf("_")<0?n:n.replace(/[-_][^-_]/g,function(s){return s.charAt(1).toUpperCase()})},i.dom.getStyle=function(n,s){var e=i.dom;n=e.g(n),s=i.string.toCamelCase(s);var o=n.style[s]||(n.currentStyle?n.currentStyle[s]:"")||e.getComputedStyle(n,s);if(!o){var c=e._styleFixer[s];c&&(o=c.get?c.get(n):i.dom.getStyle(n,c))}return(c=e._styleFilter)&&(o=c.filter(s,o,"get")),o},i.getStyle=i.dom.getStyle,i.dom._NAME_ATTRS=(function(){var n={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};return i.browser.ie<8?(n.for="htmlFor",n.class="className"):(n.htmlFor="for",n.className="class"),n})(),i.dom.setAttr=function(n,s,e){return n=i.dom.g(n),s=="style"?n.style.cssText=e:(s=i.dom._NAME_ATTRS[s]||s,n.setAttribute(s,e)),n},i.setAttr=i.dom.setAttr,i.dom.setAttrs=function(n,s){n=i.dom.g(n);for(var e in s)i.dom.setAttr(n,e,s[e]);return n},i.setAttrs=i.dom.setAttrs,i.dom.create=function(n,s){var e=document.createElement(n),o=s||{};return i.dom.setAttrs(e,o)},i.object=i.object||{},i.extend=i.object.extend=function(n,s){for(var e in s)s.hasOwnProperty(e)&&(n[e]=s[e]);return n};var h=function(n,s,e){try{BMap}catch(o){throw Error("Baidu Map JS API is not ready yet!")}!s||s.length<1||(this._map=n,this._path=s,this.i=0,this._setTimeoutQuene=[],this._projection=this._map.getMapType().getProjection(),this._opts={icon:null,speed:4e3,defaultContent:"",showInfoWindow:!1},this._setOptions(e),this._rotation=0,!this._opts.icon instanceof BMap.Icon&&(this._opts.icon=defaultIcon))};h.prototype._setOptions=function(n){if(n)for(var s in n)n.hasOwnProperty(s)&&(this._opts[s]=n[s])},h.prototype.start=function(){var n=this,s=n._path.length;if(this._opts.onstart&&this._opts.onstart(n),n.i&&n.i<s-1)if(n._fromPause)n._fromStop||n._moveNext(++n.i);else return;else!n._marker&&n._addMarker(),n._timeoutFlag=setTimeout(function(){!n._overlay&&n._addInfoWin(),n._moveNext(n.i)},400);this._fromPause=!1,this._fromStop=!1},h.prototype.stop=function(){this.i=0,this._fromStop=!0,clearInterval(this._intervalFlag),this._clearTimeout();for(var n=0,s=this._opts.landmarkPois,e=s.length;n<e;n++)s[n].bShow=!1;this._opts.onstop&&this._opts.onstop(this)},h.prototype.pause=function(){clearInterval(this._intervalFlag),this._fromPause=!0,this._clearTimeout(),this._opts.onpause&&this._opts.onpause(this)},h.prototype.hideInfoWindow=function(){this._opts.showInfoWindow=!1,this._overlay&&(this._overlay._div.style.visibility="hidden")},h.prototype.showInfoWindow=function(){this._opts.showInfoWindow=!0,this._overlay&&(this._overlay._div.style.visibility="visible")},h.prototype.dispose=function(){clearInterval(this._intervalFlag),this._setTimeoutQuene&&this._clearTimeout(),this._map&&(this._map.removeOverlay(this._overlay),this._map.removeOverlay(this._marker))},i.object.extend(h.prototype,{_addMarker:function(n){this._marker&&(this.stop(),this._map.removeOverlay(this._marker),clearTimeout(this._timeoutFlag)),this._overlay&&this._map.removeOverlay(this._overlay);var s=new BMap.Marker(this._path[0]);this._opts.icon&&s.setIcon(this._opts.icon),this._map.addOverlay(s),s.setAnimation(BMAP_ANIMATION_DROP),this._marker=s},_addInfoWin:function(){var n=this;!_.prototype.initialize&&v();var s=new _(n._marker.getPosition(),n._opts.defaultContent);s.setRelatedClass(this),this._overlay=s,this._map.addOverlay(s),this._opts.showInfoWindow?this.showInfoWindow():this.hideInfoWindow()},_getMercator:function(n){return this._map.getMapType().getProjection().lngLatToPoint(n)},_getDistance:function(n,s){return Math.sqrt(Math.pow(n.x-s.x,2)+Math.pow(n.y-s.y,2))},_move:function(n,s,e){var o=this,c=0,p=10,f=this._opts.speed/(1e3/p),a=this._projection.lngLatToPoint(n),d=this._projection.lngLatToPoint(s),y=Math.round(o._getDistance(a,d)/f);if(y<1){o._moveNext(++o.i);return}o._intervalFlag=setInterval(function(){if(c>=y){if(clearInterval(o._intervalFlag),o.i>o._path.length)return;o._moveNext(++o.i),o._opts.onmove(o)}else{c++;var x=e(a.x,d.x,c,y),u=e(a.y,d.y,c,y),B=o._projection.pointToLngLat(new BMap.Pixel(x,u));if(c==1){var O=null;o.i-1>=0&&(O=o._path[o.i-1]),o._opts.enableRotation==!0&&o.setRotation(O,n,s),o._opts.autoView&&(o._map.getBounds().containsPoint(B)||o._map.setCenter(B))}o._marker.setPosition(B),o._setInfoWin(B)}},p)},setRotation:function(n,s,e){var o=this,c=0;if(s=o._map.pointToPixel(s),e=o._map.pointToPixel(e),e.x!=s.x){var p=(e.y-s.y)/(e.x-s.x),f=Math.atan(p);c=f*360/(2*Math.PI),e.x<s.x?c=-c+90+90:c=-c,o._marker.setRotation(-c)}else{var a=e.y-s.y,d=0;a>0?d=-1:d=1,o._marker.setRotation(-d*90)}},linePixellength:function(n,s){return Math.sqrt(Math.abs(n.x-s.x)*Math.abs(n.x-s.x)+Math.abs(n.y-s.y)*Math.abs(n.y-s.y))},pointToPoint:function(n,s){return Math.abs(n.x-s.x)*Math.abs(n.x-s.x)+Math.abs(n.y-s.y)*Math.abs(n.y-s.y)},_moveNext:function(n){var s=this;n<this._path.length-1?s._move(s._path[n],s._path[n+1],s._tween.linear):s.stop()},moveNext:function(n){var s=this;n<this._path.length-1?s._move(s._path[n],s._path[n+1],s._tween.linear):s.stop()},_setInfoWin:function(n){var s=this;s._overlay.setPosition(n,s._marker.getIcon().size);var e=s._troughPointIndex(n);e!=-1?(clearInterval(s._intervalFlag),s._overlay.setHtml(s._opts.landmarkPois[e].html),s._overlay.setPosition(n,s._marker.getIcon().size),s._pauseForView(e)):s._overlay.setHtml(s._opts.defaultContent)},_pauseForView:function(n){var s=this,e=setTimeout(function(){s._moveNext(++s.i)},s._opts.landmarkPois[n].pauseTime*1e3);s._setTimeoutQuene.push(e)},_clearTimeout:function(){for(var n in this._setTimeoutQuene)clearTimeout(this._setTimeoutQuene[n]);this._setTimeoutQuene.length=0},_tween:{linear:function(n,s,e,o){var c=n,p=s-n,f=e,a=o;return p*f/a+c}},_troughPointIndex:function(n){for(var s=this._opts.landmarkPois,e,o=0,c=s.length;o<c;o++)if(!s[o].bShow&&(e=this._map.getDistance(new BMap.Point(s[o].lng,s[o].lat),n),e<10))return s[o].bShow=!0,o;return-1}});function _(n,s){this._point=n,this._html=s}function v(){_.prototype=new BMap.Overlay,_.prototype.initialize=function(n){var s=this._div=i.dom.create("div",{style:"border:solid 1px #ccc;width:auto;min-width:50px;text-align:center;position:absolute;background:#fff;color:#000;font-size:12px;border-radius: 10px;padding:5px;white-space: nowrap;"});return s.innerHTML=this._html,n.getPanes().floatPane.appendChild(s),this._map=n,s},_.prototype.draw=function(){this.setPosition(this.lushuMain._marker.getPosition(),this.lushuMain._marker.getIcon().size)},i.object.extend(_.prototype,{setPosition:function(n,s){var e=this._map.pointToOverlayPixel(n),o=i.dom.getStyle(this._div,"width"),c=i.dom.getStyle(this._div,"height"),p=parseInt(this._div.clientWidth||o,10);parseInt(this._div.clientHeight||c,10),this._div.style.left=e.x-p/2+"px",this._div.style.bottom=-(e.y-s.height)+"px"},setHtml:function(n){this._div.innerHTML=n},setRelatedClass:function(n){this.lushuMain=n}})}return h})})(Gt);var Qt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){function i(v,n,s){var e,o,c=v.prototype,p=new Function;p.prototype=n.prototype,o=v.prototype=new p;for(e in c)o[e]=c[e];v.prototype.constructor=v,v.superClass=n.prototype,o._className=s}var h=(function(){var v=function(o){var c={data:[],heatmap:o};this.max=1,this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f}};v.prototype={addDataPoint:function(e,o){if(!(e<0||o<0)){var c=this,p=c.get("heatmap"),f=c.get("data");if(f[e]||(f[e]=[]),f[e][o]||(f[e][o]=0),f[e][o]+=arguments.length<3?1:arguments[2],c.set("data",f),c.max<f[e][o]){p.get("actx").clearRect(0,0,p.get("width"),p.get("height")),c.setDataSet({max:f[e][o],data:f},!0);return}p.drawAlpha(e,o,f[e][o],!0)}},setDataSet:function(e,o){var c=this,p=c.get("heatmap"),f=[],a=e.data,d=a.length;if(p.clear(),this.max=e.max,p.get("legend")&&p.get("legend").update(e.max),o!=null&&o){for(var y in a)if(y!==void 0)for(var x in a[y])x!==void 0&&p.drawAlpha(y,x,a[y][x],!1)}else for(;d--;){var u=a[d];p.drawAlpha(u.x,u.y,u.count,!1),f[u.x]||(f[u.x]=[]),f[u.x][u.y]||(f[u.x][u.y]=0),f[u.x][u.y]=u.count}p.colorize(),this.set("data",a)},exportDataSet:function(){var e=this,o=e.get("data"),c=[];for(var p in o)if(p!==void 0)for(var f in o[p])f!==void 0&&c.push({x:parseInt(p,10),y:parseInt(f,10),count:o[p][f]});return{max:e.max,data:c}},generateRandomDataSet:function(e){var o=this.get("heatmap"),c=o.get("width"),p=o.get("height"),f={},a=Math.floor(Math.random()*1e3+1);f.max=a;for(var d=[];e--;)d.push({x:Math.floor(Math.random()*c+1),y:Math.floor(Math.random()*p+1),count:Math.floor(Math.random()*a+1)});f.data=d,this.setDataSet(f)}};var n=function(o){this.config=o;var c={element:null,labelsEl:null,gradientCfg:null,ctx:null};this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f},this.init()};n.prototype={init:function(){var e=this,o=e.config,c=o.title||"Legend",p=o.position,f=o.offset||10;o.gradient;var a=document.createElement("ul"),d,y,x="";e.processGradientObject(),p.indexOf("t")>-1?x+="top:"+f+"px;":x+="bottom:"+f+"px;",p.indexOf("l")>-1?x+="left:"+f+"px;":x+="right:"+f+"px;",d=document.createElement("div"),d.style.cssText="border-radius:5px;position:absolute;"+x+"font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;",d.innerHTML="<h3 style='padding:0;margin:0;text-align:center;font-size:16px;'>"+c+"</h3>",a.style.cssText="position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;",y=document.createElement("div"),y.style.cssText=["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(",e.createGradientImage(),");"].join(""),d.appendChild(a),d.appendChild(y),e.set("element",d),e.set("labelsEl",a),e.update(1)},processGradientObject:function(){var e=this,o=this.config.gradient,c=[];for(var p in o)o.hasOwnProperty(p)&&c.push({stop:p,value:o[p]});c.sort(function(f,a){return f.stop-a.stop}),c.unshift({stop:0,value:"rgba(0,0,0,0)"}),e.set("gradientArr",c)},createGradientImage:function(){var e=this,o=e.get("gradientArr"),c=o.length,p=document.createElement("canvas"),f=p.getContext("2d"),a;p.width="256",p.height="15",a=f.createLinearGradient(0,5,256,10);for(var d=0;d<c;d++)a.addColorStop(1/(c-1)*d,o[d].value);f.fillStyle=a,f.fillRect(0,5,256,10),f.strokeStyle="black",f.beginPath();for(var d=0;d<c;d++)f.moveTo((1/(c-1)*d*256>>0)+.5,0),f.lineTo((1/(c-1)*d*256>>0)+.5,d==0?15:5);return f.moveTo(255.5,0),f.lineTo(255.5,15),f.moveTo(255.5,4.5),f.lineTo(0,4.5),f.stroke(),e.set("ctx",f),p.toDataURL()},getElement:function(){return this.get("element")},update:function(e){for(var o=this,c=o.get("gradientArr"),p=o.get("ctx"),f=o.get("labelsEl"),a,d="",y,x=0;x<c.length;x++)a=e*c[x].stop>>0,y=p.measureText(a).width/2>>0,x==0&&(y=0),x==c.length-1&&(y*=2),d+='<li style="position:absolute;left:'+(((1/(c.length-1)*x*256||0)>>0)-y+.5)+'px">'+a+"</li>";f.innerHTML=d}};var s=function(o){var c={radius:40,element:{},canvas:{},acanvas:{},ctx:{},actx:{},legend:null,visible:!0,width:0,height:0,max:!1,gradient:!1,opacity:180,premultiplyAlpha:!1,bounds:{l:1e3,r:0,t:1e3,b:0},debug:!1};this.store=new v(this),this.get=function(p){return c[p]},this.set=function(p,f){c[p]=f},this.configure(o),this.init()};return s.prototype={configure:function(e){var o=this;if(o.set("radius",e.radius||40),o.set("element",e.element instanceof Object?e.element:document.getElementById(e.element)),o.set("visible",e.visible!=null?e.visible:!0),o.set("max",e.max||!1),o.set("gradient",e.gradient||{.45:"rgb(0,0,255)",.55:"rgb(0,255,255)",.65:"rgb(0,255,0)",.95:"yellow",1:"rgb(255,0,0)"}),o.set("opacity",parseInt(255/(100/e.opacity),10)||180),o.set("width",e.width||0),o.set("height",e.height||0),o.set("debug",e.debug),e.legend){var c=e.legend;c.gradient=o.get("gradient"),o.set("legend",new n(c))}},resize:function(){var e=this,o=e.get("element"),c=e.get("canvas"),p=e.get("acanvas");c.width=p.width=e.get("width")||o.style.width.replace(/px/,"")||e.getWidth(o),this.set("width",c.width),c.height=p.height=e.get("height")||o.style.height.replace(/px/,"")||e.getHeight(o),this.set("height",c.height)},init:function(){var e=this,o=document.createElement("canvas"),c=document.createElement("canvas"),p=o.getContext("2d"),f=c.getContext("2d"),a=e.get("element");e.initColorPalette(),e.set("canvas",o),e.set("ctx",p),e.set("acanvas",c),e.set("actx",f),e.resize(),o.style.cssText=c.style.cssText="position:absolute;top:0;left:0;z-index:10000000;",e.get("visible")||(o.style.display="none"),a.appendChild(o),e.get("legend")&&a.appendChild(e.get("legend").getElement()),e.get("debug")&&document.body.appendChild(c),f.shadowOffsetX=15e3,f.shadowOffsetY=15e3,f.shadowBlur=15},initColorPalette:function(){var e=this,o=document.createElement("canvas"),c=e.get("gradient"),p,f,a;o.width="1",o.height="256",p=o.getContext("2d"),f=p.createLinearGradient(0,0,1,256),a=p.getImageData(0,0,1,1),a.data[0]=a.data[3]=64,a.data[1]=a.data[2]=0,p.putImageData(a,0,0),a=p.getImageData(0,0,1,1),e.set("premultiplyAlpha",a.data[0]<60||a.data[0]>70);for(var d in c)f.addColorStop(d,c[d]);p.fillStyle=f,p.fillRect(0,0,1,256),e.set("gradient",p.getImageData(0,0,1,256).data)},getWidth:function(e){var o=e.offsetWidth;return e.style.paddingLeft&&(o+=e.style.paddingLeft),e.style.paddingRight&&(o+=e.style.paddingRight),o},getHeight:function(e){var o=e.offsetHeight;return e.style.paddingTop&&(o+=e.style.paddingTop),e.style.paddingBottom&&(o+=e.style.paddingBottom),o},colorize:function(e,o){var c=this,p=c.get("width"),f=c.get("radius"),a=c.get("height"),d=c.get("actx"),y=c.get("ctx"),x=f*3,u=c.get("premultiplyAlpha"),B=c.get("gradient"),O=c.get("opacity"),z=c.get("bounds"),k,l,m,g,M,b,E,C,S;e!=null&&o!=null?(e+x>p&&(e=p-x),e<0&&(e=0),o<0&&(o=0),o+x>a&&(o=a-x),k=e,l=o,g=e+x,m=o+x):(z.l<0?k=0:k=z.l,z.r>p?g=p:g=z.r,z.t<0?l=0:l=z.t,z.b>a?m=a:m=z.b),M=d.getImageData(k,l,g-k,m-l),b=M.data.length;for(var P=3;P<b;P+=4)E=M.data[P],C=E*4,C&&(S=E<O?E:O,M.data[P-3]=B[C],M.data[P-2]=B[C+1],M.data[P-1]=B[C+2],u&&(M.data[P-3]/=255/S,M.data[P-2]/=255/S,M.data[P-1]/=255/S),M.data[P]=S);y.putImageData(M,k,l)},drawAlpha:function(e,o,c,p){var f=this,a=f.get("radius"),d=f.get("actx");f.get("max");var y=f.get("bounds"),x=e-1.5*a>>0,u=o-1.5*a>>0,B=e+1.5*a>>0,O=o+1.5*a>>0;d.shadowColor="rgba(0,0,0,"+(c?c/f.store.max:"0.1")+")",d.shadowOffsetX=15e3,d.shadowOffsetY=15e3,d.shadowBlur=15,d.beginPath(),d.arc(e-15e3,o-15e3,a,0,Math.PI*2,!0),d.closePath(),d.fill(),p?f.colorize(x,u):(x<y.l&&(y.l=x),u<y.t&&(y.t=u),B>y.r&&(y.r=B),O>y.b&&(y.b=O))},toggleDisplay:function(){var e=this,o=e.get("visible"),c=e.get("canvas");o?c.style.display="none":c.style.display="block",e.set("visible",!o)},getImageData:function(){return this.get("canvas").toDataURL()},clear:function(){var e=this,o=e.get("width"),c=e.get("height");e.store.set("data",[]),e.get("ctx").clearRect(0,0,o,c),e.get("actx").clearRect(0,0,o,c)},cleanup:function(){var e=this;e.get("element").removeChild(e.get("canvas"))}},{create:function(e){return new s(e)},util:{mousePosition:function(e){var o,c;if(e.layerX?(o=e.layerX,c=e.layerY):e.offsetX&&(o=e.offsetX,c=e.offsetY),typeof o!="undefined")return[o,c]}}}})(),_=function(v){try{BMap}catch(s){throw Error("Baidu Map JS API is not ready yet!")}if(!_._isExtended){_._isExtended=!0,i(_,BMap.Overlay,"HeatmapOverlay");var n=new _(v);this.__proto__=n.__proto__}this.conf=v,this.heatmap=null,this.latlngs=[],this.bounds=null,this._moveendHandler=this._moveendHandler.bind(this)};return _.prototype.initialize=function(v){this._map=v;var n=document.createElement("div");return n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.border=0,n.style.width=this._map.getSize().width+"px",n.style.height=this._map.getSize().height+"px",this.conf.element=n,v.getPanes().mapPane.appendChild(n),this.heatmap=h.create(this.conf),this._div=n,n},_.prototype.draw=function(){var v=this._map.getBounds();if(!v.equals(this.bounds)){this.bounds=v;var n=this._map.pointToOverlayPixel(v.getNorthEast()),s=this._map.pointToOverlayPixel(v.getSouthWest());if(!(!n||!s)){var e=n.y,o=s.x,c=s.y-n.y,p=n.x-s.x;if(this.conf.element.style.left=o+"px",this.conf.element.style.top=e+"px",this.conf.element.style.width=p+"px",this.conf.element.style.height=c+"px",this.heatmap.store.get("heatmap").resize(),this.latlngs.length>0){this.heatmap.clear();for(var f=this.latlngs.length,a={max:this.heatmap.store.max,data:[]};f--;){var d=this.latlngs[f].latlng;if(v.containsPoint(d)){var y=this._map.pointToOverlayPixel(d),x=new BMap.Pixel(y.x-o,y.y-e),u=this.pixelTransform(x);a.data.push({x:u.x,y:u.y,count:this.latlngs[f].c})}}this.heatmap.store.setDataSet(a)}}}},_.prototype.pixelTransform=function(v){for(var n=this.heatmap.get("width"),s=this.heatmap.get("height");v.x<0;)v.x+=n;for(;v.x>n;)v.x-=n;for(;v.y<0;)v.y+=s;for(;v.y>s;)v.y-=s;return v.x=v.x>>0,v.y=v.y>>0,v},_.prototype._moveendHandler=function(v){this.setDataSet(this._data),delete this._data,this._map.removeEventListener("moveend",this._moveendHandler)},_.prototype.setDataSet=function(v){if(this._map){var n=this._map.getBounds(),s=this._map.pointToOverlayPixel(n.getNorthEast()),e=this._map.pointToOverlayPixel(n.getSouthWest());(!s||!e)&&(this._data=v,this._map.addEventListener("moveend",this._moveendHandler));var o={max:v.max,data:[]},c=v.data,p=c.length;for(this.latlngs=[];p--;){var f=new BMap.Point(c[p].lng,c[p].lat);if(this.latlngs.push({latlng:f,c:c[p].count}),!!n.containsPoint(f)){var a=this._map.pointToOverlayPixel(f),d=this._map.pointToOverlayPixel(n.getSouthWest()).x,y=this._map.pointToOverlayPixel(n.getNorthEast()).y,x=new BMap.Pixel(a.x-d,a.y-y),u=this.pixelTransform(x);o.data.push({x:u.x,y:u.y,count:c[p].count})}}this.heatmap.clear(),this.heatmap.store.setDataSet(o)}},_.prototype.addDataPoint=function(v,n,s){var e=new BMap.Point(v,n),o=this.pixelTransform(this._map.pointToOverlayPixel(e));this.heatmap.store.addDataPoint(o.x,o.y,s),this.latlngs.push({latlng:e,c:s})},_.prototype.toggle=function(){this.heatmap.toggleDisplay()},_})})(Qt);var Xt={exports:{}};(function(t,r){(function(i,h){t.exports=h()})(Z,function(){function i(v,n){try{BMap}catch(o){throw Error("Baidu Map JS API is not ready yet!")}var s=h(v),e=new BMap.Polyline(s,n);return e.addEventListener("lineupdate",function(){this.isEditing&&this.enableEditing()}),e.cornerPoints=v,e.editMarkers=[],e.enableEditing=function(){var o=this;if(o.map){o.disableEditing();for(var c=0;c<o.cornerPoints.length;c++){var p=new BMap.Marker(o.cornerPoints[c],{icon:new BMap.Icon("http://api.map.baidu.com/library/CurveLine/1.5/src/circle.png",new BMap.Size(16,16)),enableDragging:!0,raiseOnDrag:!0});p.addEventListener("dragend",function(){o.cornerPoints.length=0;for(var f=0;f<o.editMarkers.length;f++)o.cornerPoints.push(o.editMarkers[f].getPosition());var a=h(o.cornerPoints);o.setPath(a)}),p.index=c,o.editMarkers.push(p),o.map.addOverlay(p)}}o.isEditing=!0},e.disableEditing=function(){this.isEditing=!1;for(var o=0;o<this.editMarkers.length;o++)this.map.removeOverlay(this.editMarkers[o]),this.editMarkers[o]=null;this.editMarkers.length=0},e.getPath=function(){return s},e}function h(v){for(var n=[],s=0;s<v.length-1;s++){var e=_(v[s],v[s+1]);e&&e.length>0&&(n=n.concat(e))}return n}function _(v,n){var s=[];if(!v||!n||!(v instanceof BMap.Point)||!(n instanceof BMap.Point))return null;var e=function(g){return 1-2*g+g*g},o=function(g){return 2*g-2*g*g},c=function(g){return g*g},p=30,f,a,d,y,x,u,B=0,O=0;if(typeof n=="undefined"){typeof s!="undefined"&&(s=[]);return}var z=parseFloat(v.lat),k=parseFloat(n.lat),l=parseFloat(v.lng),m=parseFloat(n.lng);for(m>l&&parseFloat(m-l)>180&&l<0&&(l=parseFloat(360+l)),l>m&&parseFloat(l-m)>180&&m<0&&(m=parseFloat(360+m)),u=0,k==z?(f=0,a=l-m):m==l?(f=Math.PI/2,a=z-k):(f=Math.atan((k-z)/(m-l)),a=(k-z)/Math.sin(f)),u==0&&(u=f+Math.PI/5),d=a/2,x=d*Math.cos(u)+l,y=d*Math.sin(u)+z,B=0;B<p+1;B++)s.push(new BMap.Point(l*e(O)+x*o(O)+m*c(O),z*e(O)+y*o(O)+k*c(O))),O=O+1/p;return s}return i})})(Xt);const Yt="data:image/gif;base64,R0lGODlhLAHIAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4ODg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdHR0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpaWltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1tbW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CAgIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOTk5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGx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wEOTAzAA9DX192Ds91Q2x1N2szx/NzASR04id2PQM0k7+rdAAnc3dkA7gpdtv3dbGrcwxPBCNLdWhzRA2bdm/7A7n0A3VjQ2i2w1YzdDWIA7ETdDd/RAsPRDscNrDh90LsczMMFvDnNTngNXOgA3iINrdENjSvN3FXd8NAd3bvNcEsdTjzN0o/cveKxDdkM0ZndegbT3xsNbnAOESftIMbdYoDg7ijRDxANAqbeFUDdbsMM1Xnc1BPd7NDd8ajdUljtAN7tdJbc0wnuMlntoHvdYbvthE3ePnTNaq/eRQ7sslns7ADOPpwN7aDczRoM/gcOBxc+ETHdgf/tVMnswQrs0STtjM0A06Td9PDdlZPnyB3c3WsA3i8OXTndYJseL49e3kUP7nUu7MWH3jb+7m2i3dYC3M8n3R2kzMTr3hhE7mDi4QP47Tk50Og57dbE3WBrHhvb3WBpEOvT3b38wO2azfBcHn3X3iKf7QfB4PGy7Omj582QwOT/7bTU3WuO3PAA3M8RDYkS7pk37m2fzNmF7rCBHryT3bxB7hzN7Xwu7glX4QTm0N09Dj0WzWYw7qSe3r04Dqbl3mk67MF5Has74Q5h4Rz3zu497u7v7u8B7v8j7v9F7v9n7v+J7v+r7v/N7v/v7vAB/wAj/wBF/wBn/wCJ/wCr/wDN/wDv/wEB/xEj/xFF/xFn/xGJ/xGr/xHN/xHu/xAQEAOw==",qt={class:"mix-body"},Kt={key:0},Jt={class:"w-[80px] h-[80px]"},Ut=["src"],$t={class:"bdmap-base-info"},te={class:"flex"},ee={class:"name"},ie={class:"value"},ne={class:"flex"},oe={class:"name"},re={class:"value"},ae={class:"flex"},se={class:"name"},le={class:"value"},ue={key:1,class:"w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"},ce={DEFAULT_ICON:et.DEFAULT_ICON,ACTIVE_ICON:et.ACTIVE_ICON,NAME_CN:"百度地图",NAME_EN:"Baidu Map",ORDER:2,PLATFORM:["pc","screen","mobile"]},de={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,lng:113.933782,lat:22.582649,zoom:10},pe={baiduMapAk:""},he={DEFAULT:ce,OPTIONS:de,COMMON:pe},me=w.defineComponent($(U({},he),{__name:"bmp",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(t){const{proxy:r}=w.getCurrentInstance(),i="bmp_"+Math.random().toString(16).substring(4,12);let h=null,_=null;const v=t;class n extends yt.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),zoom:this.getOptionValue("zoom",10),lng:this.getOptionValue("lng",113.933782),lat:this.getOptionValue("lat",22.582649),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var M;this.Style.value=this.extractStyles(),this.applyTheme(),c.zoom=this.Style.value.zoom,c.center.lat=this.Style.value.lat,c.center.lng=this.Style.value.lng;const g=((M=this.props.conf)==null?void 0:M.common)||{};if(c.ak=g.baiduMapAk||"",_&&h){const b=new _.Point(this.Style.value.lng,this.Style.value.lat);h.centerAndZoom(b,this.Style.value.zoom)}}}const s=new n(v,"bmp");s.setupLifecycle();const e=s.getStyle(),o=w.computed(()=>_t.generateTitleStyle(v.conf.options)),c=w.reactive({zoom:10,ak:"",center:{lat:22.582649,lng:113.933782}}),p=w.ref([]),f=w.ref({}),a=w.ref(0),d=w.ref(0),y=w.ref(!1),x=({BMap:m,map:g})=>{h=g,_=m,v.mode==="preview"&&u()},u=()=>tt(null,null,function*(){const{result:m}=yield V.api.post("get_object_list"),g=/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/,M=/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;p.value=[];let b=!1;m.data.forEach(C=>{let S="";if(C.gis||C.gis.split(", ").length>1){const A=C.gis.split(", ");if(g.test(A[1])&&M.test(A[0])&&Number(A[1])&&Number(A[0])){const j=xt(Number(A[1]),Number(A[0]));S=j[1]+","+j[0]}else S=C.custom_gis}else S=C.custom_gis;const P=S.split(",");P.length>=2&&!b&&(c.center.lng=Number(P[1]),c.center.lat=Number(P[0]),b=!0),S.length>1&&p.value.push({center:{lng:P[1],lat:P[0]},image:C.image,address:C.address||C.province+C.city,name:C.name,uid:C.uid,desc:C.description})}),!b&&p.value[0]&&(c.center=p.value[0].center);const E=new _.Point(c.center.lng,c.center.lat);h.centerAndZoom(E,e.value.zoom)}),B=(m,g)=>{a.value=m.pixel.y+10+"px",d.value=m.pixel.x+10+"px",f.value=g,g.address||k(g),y.value=!0},O=m=>console.log(m),z=w.computed(()=>f.value.image?r.config.file_url+"/"+f.value.image:Yt),k=m=>{const g=`${m.center.lat},${m.center.lng}`,M={ak:c.ak,location:g,coordtype:"bd09ll",output:"json",extensions_poi:1};V.api.getLocation("/bdMapAddress",M).then(b=>{b.status===0&&(f.value.address=b.result.formatted_address_poi||b.result.formatted_address)})},l=m=>{if(m){let g=location.href;g.indexOf("?object_id=")>-1&&(g=g.split("?object_id=")[0]),location.href=g+"?object_id="+m,location.reload()}};return(m,g)=>{const M=vt.ElIcon;return w.openBlock(),w.createElementBlock("div",{class:"mix-component",style:w.normalizeStyle({background:w.unref(e).bgColor,borderRadius:`${w.unref(e).radiusSize}px`})},[w.createElementVNode("div",{class:"mix-title",style:w.normalizeStyle(o.value)},w.toDisplayString(t.conf.caption||t.conf.name),5),w.createElementVNode("div",qt,[c.ak?(w.openBlock(),w.createElementBlock("div",{key:0,class:"map-wrap",id:i},[w.createVNode(w.unref(Dt),{class:"bm-view relative",center:c.center,"map-click":!1,zoom:c.zoom,ak:c.ak,v:"3.0",type:"API",onMovestart:g[2]||(g[2]=b=>y.value=!1),onZoomstart:g[3]||(g[3]=b=>y.value=!1),onClick:g[4]||(g[4]=b=>O("close")),"scroll-wheel-zoom":!0,onReady:x},{default:w.withCtx(()=>[p.value.length?(w.openBlock(),w.createElementBlock("div",Kt,[w.createVNode(w.unref(Vt),null,{default:w.withCtx(()=>[(w.openBlock(!0),w.createElementBlock(w.Fragment,null,w.renderList(p.value,b=>(w.openBlock(),w.createBlock(w.unref(Lt),{onClick:E=>B(E,b),key:b.uid,position:b.center},null,8,["onClick","position"]))),128))]),_:1})])):w.createCommentVNode("",!0),y.value?(w.openBlock(),w.createElementBlock("div",{key:1,class:"index-bdmap-equipment",style:w.normalizeStyle({top:a.value,left:d.value}),onClick:g[1]||(g[1]=b=>l(f.value))},[w.createElementVNode("div",Jt,[w.createElementVNode("img",{src:z.value,class:"w-[100%] h-[100%]"},null,8,Ut)]),w.createElementVNode("div",$t,[w.createElementVNode("div",te,[w.createElementVNode("span",ee,w.toDisplayString(m.$t("component.map.deviceNumber"))+":",1),w.createElementVNode("span",ie,w.toDisplayString(f.value.uid),1)]),w.createElementVNode("div",ne,[w.createElementVNode("span",oe,w.toDisplayString(m.$t("component.map.deviceName"))+":",1),w.createElementVNode("span",re,w.toDisplayString(f.value.name),1)]),w.createElementVNode("div",ae,[w.createElementVNode("span",se,w.toDisplayString(m.$t("component.map.address"))+":",1),w.createElementVNode("span",le,w.toDisplayString(f.value.address),1)])]),w.createVNode(M,{class:"close-icon"},{default:w.withCtx(()=>[w.createVNode(w.unref(bt.Close),{onClick:g[0]||(g[0]=w.withModifiers(b=>y.value=!1,["stop"]))})]),_:1})],4)):w.createCommentVNode("",!0)]),_:1},8,["center","zoom","ak"])])):(w.openBlock(),w.createElementBlock("div",ue,w.toDisplayString(m.$t("component.map.apiKeyRequired")),1))]),w.renderSlot(m.$slots,"default",{},void 0,!0)],4)}}})),fe=V._export_sfc(me,[["__scopeId","data-v-d1ccdc00"]]);exports.default=fe;
|
|
@@ -35,8 +35,8 @@ import "element-plus/es/components/button/style/css";
|
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as me, shallowRef as fe, ref as w, onMounted as ye, computed as ve, watch as he, openBlock as d, createElementBlock as f, normalizeStyle as j, Fragment as I, renderList as M, withModifiers as R, normalizeClass as H, createBlock as q, resolveDynamicComponent as be, createVNode as C, withCtx as k, unref as G, createElementVNode as $, toDisplayString as Q, createCommentVNode as X, renderSlot as ge } from "vue";
|
|
37
37
|
import { Plus as Ce, Close as xe } from "@element-plus/icons-vue";
|
|
38
|
-
import { B as _e } from "./BaseComponent-
|
|
39
|
-
import { v as P, _ as Oe } from "./index-
|
|
38
|
+
import { B as _e } from "./BaseComponent-DtvXBQYf.js";
|
|
39
|
+
import { v as P, _ as Oe } from "./index-BueGUjcH.js";
|
|
40
40
|
import { A as Se, D as we } from "./ele-box-icon-Brlhb3oN.js";
|
|
41
41
|
const ke = ["onClick"], $e = ["onClick"], Ne = {
|
|
42
42
|
key: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,H=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var D=(r,o,i)=>o in r?j(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i,v=(r,o)=>{for(var i in o||(o={}))Q.call(o,i)&&D(r,i,o[i]);if(A)for(var i of A(o))X.call(o,i)&&D(r,i,o[i]);return r},C=(r,o)=>H(r,G(o));var M=(r,o,i)=>new Promise((E,h)=>{var N=p=>{try{g(i.next(p))}catch(x){h(x)}},b=p=>{try{g(i.throw(p))}catch(x){h(x)}},g=p=>p.done?E(p.value):Promise.resolve(p.value).then(N,b);g((i=i.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=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/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),q=require("@element-plus/icons-vue"),Y=require("./BaseComponent-
|
|
1
|
+
"use strict";var j=Object.defineProperty,H=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var D=(r,o,i)=>o in r?j(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i,v=(r,o)=>{for(var i in o||(o={}))Q.call(o,i)&&D(r,i,o[i]);if(A)for(var i of A(o))X.call(o,i)&&D(r,i,o[i]);return r},C=(r,o)=>H(r,G(o));var M=(r,o,i)=>new Promise((E,h)=>{var N=p=>{try{g(i.next(p))}catch(x){h(x)}},b=p=>{try{g(i.throw(p))}catch(x){h(x)}},g=p=>p.done?E(p.value):Promise.resolve(p.value).then(N,b);g((i=i.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=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/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),q=require("@element-plus/icons-vue"),Y=require("./BaseComponent-B5ivgb3E.cjs"),B=require("./index-DYr57ceS.cjs"),P=require("./ele-box-icon-NZ0BTjhm.cjs"),Z=["onClick"],K=["onClick"],ee={key:1,class:"slot-placeholder"},te={key:2,class:"slot-actions"},oe={class:"component-selector"},ne={class:"component-grid"},le=["onClick"],ae={class:"comp-icon"},re=["src","alt"],ie={class:"comp-name"},ce={DEFAULT_ICON:P.DEFAULT_ICON,ACTIVE_ICON:P.ACTIVE_ICON,NAME_CN:"组合盒子",NAME_EN:"Box",ORDER:0,PLATFORM:["pc","screen","mobile"]},se={layoutType:{value:"horizontal",type:"select",label:"布局方式",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"},{label:"自由布局",value:"free"},{label:"网格布局",value:"grid"}]},slotCount:{value:2,type:"number",label:"插槽数量",min:1,max:12},gridCols:{value:2,type:"number",label:"网格列数",min:1,max:6},gap:{value:8,type:"number",label:"间距(px)",min:0,max:50},padding:{value:8,type:"number",label:"内边距(px)",min:0,max:50},backgroundColor:{value:"transparent",type:"color",label:"背景色"},borderWidth:{value:0,type:"number",label:"边框宽度",min:0,max:10},borderColor:{value:"#e5e7eb",type:"color",label:"边框颜色"},borderRadius:{value:4,type:"number",label:"圆角(px)",min:0,max:50},slotsConfig:{value:"[]",type:"textarea",label:"插槽配置(JSON)",placeholder:'[{"x":0,"y":0,"w":50,"h":100},{"x":50,"y":0,"w":50,"h":100}]'}},de=[],ue=[],pe=[],me={},ye={DEFAULT:ce,OPTIONS:se,DATA:de,PARAMS:ue,SOURCE:pe,COMMON:me},fe=e.defineComponent(C(v({},ye),{__name:"box",props:{conf:{type:Object,default:()=>({data:[],options:{}})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r,i=e.shallowRef({}),E=e.ref({}),h=e.ref(!1),N=e.ref([]),b=e.ref(-1),g=e.ref(-1);e.onMounted(()=>M(null,null,function*(){i.value=B.elements.loadComponents(),E.value=yield B.elements.getElementsMap()}));class p extends Y.BaseComponent{extractStyles(){return{layoutType:this.getOptionValue("layoutType","horizontal"),slotCount:this.getOptionValue("slotCount",2),gridCols:this.getOptionValue("gridCols",2),gap:this.getOptionValue("gap",8),padding:this.getOptionValue("padding",8),backgroundColor:this.getOptionValue("backgroundColor","transparent"),borderWidth:this.getOptionValue("borderWidth",0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderRadius:this.getOptionValue("borderRadius",4),slotsConfig:this.getOptionValue("slotsConfig","[]")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),$()}}const x=new p(o,"box");x.setupLifecycle();const y=x.getStyle(),_=e.ref([]),$=()=>{var O,V,l,c,s,T,I,z;const t=((O=y.value)==null?void 0:O.slotCount)||2,n=((V=y.value)==null?void 0:V.layoutType)||"horizontal",a=((l=o.conf)==null?void 0:l.slots)||[];let u=[];try{const d=((c=y.value)==null?void 0:c.slotsConfig)||"[]";u=JSON.parse(d)}catch(d){u=[]}const k=[];for(let d=0;d<t;d++){const m=a[d],f=u[d];let w={x:0,y:0,w:100,h:100};n==="free"&&f?w={x:(s=f.x)!=null?s:0,y:(T=f.y)!=null?T:0,w:(I=f.w)!=null?I:50,h:(z=f.h)!=null?z:100}:n==="horizontal"?w={x:100/t*d,y:0,w:100/t,h:100}:n==="vertical"&&(w={x:0,y:100/t*d,w:100,h:100/t}),k.push(C(v({id:(m==null?void 0:m.id)||`slot-${Date.now()}-${d}`,name:(m==null?void 0:m.name)||(f==null?void 0:f.name)||`插槽 ${d+1}`},w),{component:(m==null?void 0:m.component)||null}))}_.value=k,o.conf&&(o.conf.slots=k)},R=e.computed(()=>{const t=y.value,n=(t==null?void 0:t.layoutType)||"horizontal",a={width:"100%",height:"100%",backgroundColor:(t==null?void 0:t.backgroundColor)||"transparent",borderWidth:`${(t==null?void 0:t.borderWidth)||0}px`,borderStyle:(t==null?void 0:t.borderWidth)>0?"solid":"none",borderColor:(t==null?void 0:t.borderColor)||"#e5e7eb",borderRadius:`${(t==null?void 0:t.borderRadius)||4}px`,padding:`${(t==null?void 0:t.padding)||8}px`,boxSizing:"border-box",overflow:"hidden"};return n==="horizontal"?C(v({},a),{display:"flex",flexDirection:"row",gap:`${(t==null?void 0:t.gap)||8}px`}):n==="vertical"?C(v({},a),{display:"flex",flexDirection:"column",gap:`${(t==null?void 0:t.gap)||8}px`}):n==="grid"?C(v({},a),{display:"grid",gridTemplateColumns:`repeat(${(t==null?void 0:t.gridCols)||2}, 1fr)`,gap:`${(t==null?void 0:t.gap)||8}px`}):C(v({},a),{position:"relative"})}),J=t=>{var a;const n=((a=y.value)==null?void 0:a.layoutType)||"horizontal";return n==="free"?{position:"absolute",left:`${t.x}%`,top:`${t.y}%`,width:`${t.w}%`,height:`${t.h}%`}:{flex:n==="horizontal"||n==="vertical"?1:void 0,minWidth:0,minHeight:0,overflow:"hidden"}},L=(t,n)=>{o.mode==="edit"&&(t.component||(b.value=n,h.value=!0))},F=(t,n)=>{var u;if(o.mode!=="edit"||!t.component)return;g.value=n;const a=new CustomEvent("box-component-selected",{bubbles:!0,detail:{component:t.component,boxId:(u=o.conf)==null?void 0:u.id,slotIndex:n}});document.dispatchEvent(a)},W=t=>{if(b.value<0)return;const a=B.elements.getAllExposedProps()[t.type]||{},u={id:`box-comp-${Date.now()}`,type:t.type,i:`box-comp-${Date.now()}`,x:0,y:0,w:1,h:1,options:JSON.parse(JSON.stringify(a.OPTIONS||{})),data:JSON.parse(JSON.stringify(a.DATA||[])),common:JSON.parse(JSON.stringify(a.COMMON||{}))};_.value[b.value].component=u,o.conf&&(o.conf.slots=_.value),h.value=!1,b.value=-1},U=t=>{_.value[t].component=null,o.conf&&(o.conf.slots=_.value)};return e.watch(()=>{var t,n,a;return[(t=y.value)==null?void 0:t.slotCount,(n=y.value)==null?void 0:n.layoutType,(a=y.value)==null?void 0:a.slotsConfig]},()=>{$()},{deep:!0}),(t,n)=>{const a=S.ElIcon,u=S.ElButton,k=S.ElCollapseItem,O=S.ElCollapse,V=S.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"box-container",style:e.normalizeStyle(R.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["box-slot",{"slot-empty":!l.component,"slot-hover":r.mode==="edit"&&!l.component}]),style:e.normalizeStyle(J(l)),onClick:e.withModifiers(s=>L(l,c),["stop"])},[l.component&&i.value[l.component.type]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slot-component-wrapper",{"slot-component-selected":r.mode==="edit"&&g.value===c}]),onClick:e.withModifiers(s=>F(l,c),["stop"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value[l.component.type]),{conf:l.component,theme:r.theme,mode:r.mode,class:"slot-component"},null,8,["conf","theme","mode"]))],10,K)):r.mode==="edit"?(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(a,{size:24},{default:e.withCtx(()=>[e.createVNode(e.unref(q.Plus))]),_:1}),e.createElementVNode("span",null,e.toDisplayString(l.name||`插槽 ${c+1}`),1)])):e.createCommentVNode("",!0),r.mode==="edit"&&l.component?(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(u,{type:"danger",size:"small",circle:"",onClick:e.withModifiers(s=>U(c),["stop"])},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(q.Close))]),_:1})]),_:1},8,["onClick"])])):e.createCommentVNode("",!0)],14,Z))),128)),e.renderSlot(t.$slots,"default",{},void 0,!0),e.createVNode(V,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=l=>h.value=l),title:"选择组件",width:"600px","append-to-body":!0,"close-on-click-modal":!0,"destroy-on-close":""},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[e.createVNode(O,{modelValue:N.value,"onUpdate:modelValue":n[0]||(n[0]=l=>N.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,c)=>(e.openBlock(),e.createBlock(k,{key:c,title:l.name,name:c},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,s=>(e.openBlock(),e.createElementBlock("div",{key:s.type,class:"component-item",onClick:T=>W(s)},[e.createElementVNode("div",ae,[e.createElementVNode("img",{src:s.default_icon,alt:s.name},null,8,re)]),e.createElementVNode("div",ie,e.toDisplayString(s.name),1)],8,le))),128))])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],4)}}})),he=B._export_sfc(fe,[["__scopeId","data-v-61ed94fc"]]);exports.default=he;
|
|
@@ -22,7 +22,7 @@ import "element-plus/es/components/checkbox/style/css";
|
|
|
22
22
|
import "element-plus/es/components/date-picker/style/css";
|
|
23
23
|
import { defineComponent as Ie, useCssVars as Ee, computed as B, ref as u, onMounted as Re, openBlock as r, createElementBlock as c, Fragment as x, renderList as A, createElementVNode as o, toDisplayString as m, normalizeClass as U, createVNode as a, withCtx as p, createTextVNode as f, unref as ae, createBlock as Se, createCommentVNode as we, renderSlot as Te } from "vue";
|
|
24
24
|
import { Delete as Ae, Upload as Ue } from "@element-plus/icons-vue";
|
|
25
|
-
import { l as Oe, d as G, _ as Ne } from "./index-
|
|
25
|
+
import { l as Oe, d as G, _ as Ne } from "./index-BueGUjcH.js";
|
|
26
26
|
import { A as Pe, D as ze } from "./ele-ctrSet-icon-BtKGrCid.js";
|
|
27
27
|
const Le = { class: "chart-config-panel" }, Fe = {
|
|
28
28
|
key: 0,
|