@das-fed/ui 6.4.0-test.2 → 6.4.0-test.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/i18n-collection/en.js +536 -0
  2. package/i18n-collection/zh-CN.js +537 -0
  3. package/package.json +8 -7
  4. package/packages/business-components/change-enterprises/index.d.ts +7 -8
  5. package/packages/business-components/change-enterprises/index.js +64 -59
  6. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  7. package/packages/business-components/change-enterprises/src/index.vue.d.ts +1 -0
  8. package/packages/business-components/change-enterprises/src/type.d.ts +1 -1
  9. package/packages/business-components/change-enterprises/style.css +1 -1
  10. package/packages/business-components/change-enterprises/style.css.gz +0 -0
  11. package/packages/business-components/change-pwd/i18n/index.d.ts +7 -0
  12. package/packages/business-components/change-pwd/index.d.ts +2 -8
  13. package/packages/business-components/change-pwd/index.js +126 -122
  14. package/packages/business-components/change-pwd/index.js.gz +0 -0
  15. package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +16 -16
  16. package/packages/business-components/change-pwd/style.css +1 -1
  17. package/packages/business-components/currency-page/index.js +24 -19
  18. package/packages/business-components/currency-page/index.js.gz +0 -0
  19. package/packages/business-components/currency-page/style.css +1 -1
  20. package/packages/business-components/device-panel/index.js +37081 -37019
  21. package/packages/business-components/device-panel/index.js.gz +0 -0
  22. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/listItem.vue.d.ts +1 -1
  23. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/listItem.vue.d.ts +1 -1
  24. package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +1 -1
  25. package/packages/business-components/device-panel/style.css +1 -1
  26. package/packages/business-components/device-panel/style.css.gz +0 -0
  27. package/packages/business-components/echarts/index.d.ts +12 -12
  28. package/packages/business-components/echarts/index.js +7004 -6952
  29. package/packages/business-components/echarts/index.js.gz +0 -0
  30. package/packages/business-components/echarts/src/Index.vue.d.ts +2 -2
  31. package/packages/business-components/echarts/style.css +1 -1
  32. package/packages/business-components/export-button/index.d.ts +6 -10
  33. package/packages/business-components/export-button/index.js +110 -110
  34. package/packages/business-components/export-button/index.js.gz +0 -0
  35. package/packages/business-components/export-button/src/App.vue.d.ts +2 -2
  36. package/packages/business-components/export-button/style.css +1 -1
  37. package/packages/business-components/import-button/hooks/file.d.ts +1 -0
  38. package/packages/business-components/import-button/hooks/useImport.d.ts +1 -0
  39. package/packages/business-components/import-button/index.d.ts +14 -18
  40. package/packages/business-components/import-button/index.js +272 -268
  41. package/packages/business-components/import-button/index.js.gz +0 -0
  42. package/packages/business-components/import-button/src/App.vue.d.ts +5 -5
  43. package/packages/business-components/import-button/style.css +1 -1
  44. package/packages/business-components/layout-breadcrumb/index.d.ts +2 -6
  45. package/packages/business-components/model-table-dialog/index.d.ts +74 -151
  46. package/packages/business-components/model-table-dialog/index.js +369 -369
  47. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  48. package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +12 -22
  49. package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +10 -330
  50. package/packages/business-components/model-table-dialog/style.css +1 -1
  51. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  52. package/packages/business-components/process-configuration/i18n/index.d.ts +6 -0
  53. package/packages/business-components/process-configuration/index.js +305 -259
  54. package/packages/business-components/process-configuration/index.js.gz +0 -0
  55. package/packages/business-components/process-configuration/style.css +1 -1
  56. package/packages/business-components/process-configuration/style.css.gz +0 -0
  57. package/packages/business-components/process-form/index.js +1209 -1150
  58. package/packages/business-components/process-form/index.js.gz +0 -0
  59. package/packages/business-components/process-form/src/hooks/useForm.d.ts +16 -16
  60. package/packages/business-components/process-form/src/hooks/useSelector.d.ts +2 -1
  61. package/packages/business-components/process-form/src/utils/common-methods.d.ts +1 -1
  62. package/packages/business-components/process-form/src/widgets/layout/accordion/accordion.d.ts +1 -1
  63. package/packages/business-components/process-form/src/widgets/layout/grid/grid.d.ts +1 -1
  64. package/packages/business-components/process-form/src/widgets/store.d.ts +2 -0
  65. package/packages/business-components/process-form/style.css +1 -1
  66. package/packages/business-components/process-log/index.js +252 -252
  67. package/packages/business-components/process-log/index.js.gz +0 -0
  68. package/packages/business-components/process-log/style.css +1 -1
  69. package/packages/business-components/process-log/style.css.gz +0 -0
  70. package/packages/business-components/process-search-form/index.js +399 -396
  71. package/packages/business-components/process-search-form/index.js.gz +0 -0
  72. package/packages/business-components/process-table/index.d.ts +14 -23
  73. package/packages/business-components/process-table/index.js +556 -534
  74. package/packages/business-components/process-table/index.js.gz +0 -0
  75. package/packages/business-components/process-table/src/App.vue.d.ts +6 -447
  76. package/packages/business-components/process-table/src/type.d.ts +2 -0
  77. package/packages/business-components/process-table/style.css +1 -1
  78. package/packages/business-components/upload-file/index.d.ts +2 -8
  79. package/packages/business-components/urgent-panel/index.js +1319 -1322
  80. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  81. package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +1 -1
  82. package/packages/business-components/urgent-panel/src/components/urgentPanelModal/urgentMonitorPanel.vue.d.ts +8 -3
  83. package/packages/business-components/urgent-panel/style.css +1 -1
  84. package/packages/business-components/urgent-panel/style.css.gz +0 -0
  85. package/packages/business-components/user-org-dialog/index.d.ts +2 -10
  86. package/packages/business-components/user-org-dialog/index.js +66 -66
  87. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  88. package/packages/business-components/user-org-dialog/style.css +1 -1
  89. package/packages/business-components/user-org-dialog/style.css.gz +0 -0
  90. package/packages/business-components/video-dialog/index.d.ts +2 -6
  91. package/packages/business-components/video-dialog/index.js +343 -312
  92. package/packages/business-components/video-dialog/index.js.gz +0 -0
  93. package/packages/business-components/video-dialog/style.css +1 -1
  94. package/packages/business-components/video-dialog/style.css.gz +0 -0
  95. package/packages/components/alert/index.d.ts +3 -3
  96. package/packages/components/audio-video/index.d.ts +14 -30
  97. package/packages/components/audio-video/src/Index.vue.d.ts +2 -2
  98. package/packages/components/autocomplete/index.d.ts +41 -59
  99. package/packages/components/autocomplete/src/index.vue.d.ts +23 -343
  100. package/packages/components/breadcrumb/index.d.ts +2 -6
  101. package/packages/components/button/index.d.ts +4 -7
  102. package/packages/components/button/src/Index.vue.d.ts +1 -1
  103. package/packages/components/calendar/index.d.ts +1 -4
  104. package/packages/components/calendar/index.js +56 -56
  105. package/packages/components/calendar/index.js.gz +0 -0
  106. package/packages/components/cascader/index.d.ts +7 -10
  107. package/packages/components/cascader/index.js +20 -19
  108. package/packages/components/cascader/index.js.gz +0 -0
  109. package/packages/components/cascader/src/Index.vue.d.ts +2 -2
  110. package/packages/components/cascader/style.css +1 -1
  111. package/packages/components/cascader/style.css.gz +0 -0
  112. package/packages/components/checkbox/index.d.ts +62 -74
  113. package/packages/components/checkbox/src/Index.vue.d.ts +8 -8
  114. package/packages/components/collapse-panel/index.d.ts +3 -9
  115. package/packages/components/collapse-transition/index.d.ts +1 -1
  116. package/packages/components/collaspe/index.d.ts +12 -12
  117. package/packages/components/collaspe/src/Index.vue.d.ts +1 -1
  118. package/packages/components/color-picker/index.d.ts +15 -23
  119. package/packages/components/color-picker/index.js +41 -40
  120. package/packages/components/color-picker/index.js.gz +0 -0
  121. package/packages/components/color-picker/src/Index.vue.d.ts +3 -3
  122. package/packages/components/color-picker/style.css +1 -1
  123. package/packages/components/color-picker/style.css.gz +0 -0
  124. package/packages/components/custom-search-item/index.d.ts +27 -36
  125. package/packages/components/custom-search-item/index.js +24 -23
  126. package/packages/components/custom-search-item/index.js.gz +0 -0
  127. package/packages/components/custom-search-item/src/Index.vue.d.ts +3 -3
  128. package/packages/components/custom-search-item/style.css +1 -1
  129. package/packages/components/date-picker/index.d.ts +32 -56
  130. package/packages/components/date-picker/index.js +490 -489
  131. package/packages/components/date-picker/index.js.gz +0 -0
  132. package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -2
  133. package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +1 -1
  134. package/packages/components/date-picker/src/RangePicker.vue.d.ts +2 -2
  135. package/packages/components/date-picker/src/TimePicker.vue.d.ts +2 -2
  136. package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +2 -2
  137. package/packages/components/date-picker/style.css +1 -1
  138. package/packages/components/date-picker/style.css.gz +0 -0
  139. package/packages/components/dialog/index.d.ts +14 -22
  140. package/packages/components/dialog/src/Index.vue.d.ts +5 -5
  141. package/packages/components/dimple-layout/editor/index.d.ts +2 -28
  142. package/packages/components/dimple-layout/index.js +2299 -2293
  143. package/packages/components/dimple-layout/index.js.gz +0 -0
  144. package/packages/components/dimple-layout/render/use-render.d.ts +1 -1
  145. package/packages/components/drawer/index.d.ts +1 -4
  146. package/packages/components/drawer/src/Index.vue.d.ts +1 -64
  147. package/packages/components/dropdown/index.d.ts +3 -5
  148. package/packages/components/dropdown/index.js +26 -25
  149. package/packages/components/dropdown/index.js.gz +0 -0
  150. package/packages/components/dropdown/src/index.vue.d.ts +1 -41
  151. package/packages/components/edit-table/index.d.ts +12 -24
  152. package/packages/components/edit-table/src/index.vue.d.ts +6 -448
  153. package/packages/components/empty/index.d.ts +1 -1
  154. package/packages/components/form/index.d.ts +26 -26
  155. package/packages/components/form/src/Index.vue.d.ts +3 -3
  156. package/packages/components/image-upload/index.d.ts +1 -1
  157. package/packages/components/image-upload/src/Index.vue.d.ts +1 -1
  158. package/packages/components/image-viewer/index.d.ts +1 -1
  159. package/packages/components/image-viewer/src/Index.vue.d.ts +1 -1
  160. package/packages/components/input/index.d.ts +13 -15
  161. package/packages/components/input/index.js +73 -72
  162. package/packages/components/input/index.js.gz +0 -0
  163. package/packages/components/input/src/index.vue.d.ts +4 -4
  164. package/packages/components/input/style.css +1 -1
  165. package/packages/components/input/style.css.gz +0 -0
  166. package/packages/components/input-dialog-select/index.d.ts +3 -3
  167. package/packages/components/input-dialog-select/index.js +65 -58
  168. package/packages/components/input-dialog-select/index.js.gz +0 -0
  169. package/packages/components/input-dialog-select/src/Index.vue.d.ts +3 -3
  170. package/packages/components/input-dialog-select/style.css +1 -1
  171. package/packages/components/input-dialog-select/style.css.gz +0 -0
  172. package/packages/components/input-number/src/App.vue.d.ts +5 -73
  173. package/packages/components/live-player/index.d.ts +3 -12
  174. package/packages/components/live-player/index.js +68 -67
  175. package/packages/components/live-player/index.js.gz +0 -0
  176. package/packages/components/live-player/style.css +1 -1
  177. package/packages/components/loading/index.js +86 -83
  178. package/packages/components/loading/index.js.gz +0 -0
  179. package/packages/components/map/index.d.ts +6 -14
  180. package/packages/components/map/index.js +613 -599
  181. package/packages/components/map/index.js.gz +0 -0
  182. package/packages/components/map/src/hooks/use-map.d.ts +1 -2
  183. package/packages/components/map/style.css +1 -1
  184. package/packages/components/menu-aside/index.d.ts +10 -15
  185. package/packages/components/menu-aside/index.js +714 -583
  186. package/packages/components/menu-aside/index.js.gz +0 -0
  187. package/packages/components/menu-aside/src/Index.vue.d.ts +4 -6
  188. package/packages/components/menu-aside/src/menu-icon.vue.d.ts +11 -0
  189. package/packages/components/menu-aside/src/style-theme.d.ts +83 -0
  190. package/packages/components/menu-aside/src/sub-menu/sub-menu.vue.d.ts +2 -2
  191. package/packages/components/menu-aside/src/type.d.ts +2 -0
  192. package/packages/components/menu-aside/src/use-aside-menu.d.ts +1 -1
  193. package/packages/components/menu-aside/style.css +1 -1
  194. package/packages/components/menu-aside/style.css.gz +0 -0
  195. package/packages/components/menu-aside/theme/base.d.ts +9 -3
  196. package/packages/components/menu-header/index.d.ts +4 -3
  197. package/packages/components/menu-header/index.js +129 -80
  198. package/packages/components/menu-header/index.js.gz +0 -0
  199. package/packages/components/menu-header/src/Index.vue.d.ts +1 -0
  200. package/packages/components/menu-header/src/style-theme.d.ts +43 -0
  201. package/packages/components/menu-header/src/type.d.ts +1 -0
  202. package/packages/components/menu-header/style.css +1 -1
  203. package/packages/components/menu-header/style.css.gz +0 -0
  204. package/packages/components/menu-header/theme/base.d.ts +2 -8
  205. package/packages/components/message/index.js +20 -19
  206. package/packages/components/message/index.js.gz +0 -0
  207. package/packages/components/notification/index.js +22 -21
  208. package/packages/components/notification/index.js.gz +0 -0
  209. package/packages/components/pagination/index.d.ts +12 -39
  210. package/packages/components/pagination/index.js +133 -132
  211. package/packages/components/pagination/index.js.gz +0 -0
  212. package/packages/components/pagination/src/Pagination.vue.d.ts +2 -29
  213. package/packages/components/pagination/src/components/index.d.ts +4 -20
  214. package/packages/components/pagination/style.css +1 -1
  215. package/packages/components/pagination/style.css.gz +0 -0
  216. package/packages/components/popover/index.d.ts +1 -5
  217. package/packages/components/popup-mask/index.d.ts +3 -18
  218. package/packages/components/popup-mask/src/Index.vue.d.ts +1 -1
  219. package/packages/components/preview/index.d.ts +1 -1
  220. package/packages/components/progress/index.d.ts +4 -4
  221. package/packages/components/progress/index.js +81 -80
  222. package/packages/components/progress/index.js.gz +0 -0
  223. package/packages/components/progress/src/Index.vue.d.ts +1 -1
  224. package/packages/components/progress/style.css +1 -1
  225. package/packages/components/progress/style.css.gz +0 -0
  226. package/packages/components/radio/index.d.ts +41 -50
  227. package/packages/components/radio/src/Index.vue.d.ts +5 -5
  228. package/packages/components/radio-tabs/index.d.ts +2 -18
  229. package/packages/components/rich-editor/i18n/index.d.ts +12 -0
  230. package/packages/components/rich-editor/index.d.ts +23 -33
  231. package/packages/components/rich-editor/index.js +5113 -5107
  232. package/packages/components/rich-editor/index.js.gz +0 -0
  233. package/packages/components/rich-editor/src/Index.vue.d.ts +5 -5
  234. package/packages/components/scrollbar/index.d.ts +1 -1
  235. package/packages/components/scrollbar/src/scrollbar.vue.d.ts +1 -27
  236. package/packages/components/search/index.d.ts +5 -5
  237. package/packages/components/search/src/Index.vue.d.ts +5 -5
  238. package/packages/components/search-form/index.js +572 -565
  239. package/packages/components/search-form/index.js.gz +0 -0
  240. package/packages/components/search-form/src/Index.vue.d.ts +1 -1
  241. package/packages/components/search-form/src/SearchDateRange.vue.d.ts +1 -1
  242. package/packages/components/search-form/style.css +1 -1
  243. package/packages/components/search-form/style.css.gz +0 -0
  244. package/packages/components/select/index.d.ts +21 -28
  245. package/packages/components/select/index.js +338 -319
  246. package/packages/components/select/index.js.gz +0 -0
  247. package/packages/components/select/src/Select.vue.d.ts +7 -7
  248. package/packages/components/select/style.css +1 -1
  249. package/packages/components/select/style.css.gz +0 -0
  250. package/packages/components/select-input/index.d.ts +1 -1
  251. package/packages/components/select-input/src/Index.vue.d.ts +1 -1
  252. package/packages/components/select-list/index.d.ts +1 -7
  253. package/packages/components/special-range-picker-month/index.d.ts +3 -3
  254. package/packages/components/special-range-picker-month/src/Index.vue.d.ts +3 -3
  255. package/packages/components/special-range-picker-year/index.d.ts +3 -3
  256. package/packages/components/special-range-picker-year/src/Index.vue.d.ts +3 -3
  257. package/packages/components/spin/index.d.ts +4 -4
  258. package/packages/components/spin/index.js +31 -30
  259. package/packages/components/spin/index.js.gz +0 -0
  260. package/packages/components/spin/src/index.vue.d.ts +1 -1
  261. package/packages/components/split-panel/index.d.ts +3 -24
  262. package/packages/components/steps/index.d.ts +1 -1
  263. package/packages/components/table/i18n/index.d.ts +9 -0
  264. package/packages/components/table/index.d.ts +126 -1690
  265. package/packages/components/table/index.js +3247 -3221
  266. package/packages/components/table/index.js.gz +0 -0
  267. package/packages/components/table/src/Table.vue.d.ts +3 -333
  268. package/packages/components/table/src/filter-pane/filterPane.vue.d.ts +2 -2
  269. package/packages/components/table/src/table-column/index.vue.d.ts +3 -64
  270. package/packages/components/table/style.css +1 -1
  271. package/packages/components/table/style.css.gz +0 -0
  272. package/packages/components/tabs/index.d.ts +10 -11
  273. package/packages/components/tabs/index.js +167 -148
  274. package/packages/components/tabs/index.js.gz +0 -0
  275. package/packages/components/tabs/src/style-theme.d.ts +13 -0
  276. package/packages/components/tabs/src/type.d.ts +2 -0
  277. package/packages/components/tabs/style.css +1 -1
  278. package/packages/components/tabs/style.css.gz +0 -0
  279. package/packages/components/tabs/theme/base.d.ts +0 -2
  280. package/packages/components/tag/index.d.ts +7 -7
  281. package/packages/components/tag/src/Index.vue.d.ts +2 -2
  282. package/packages/components/tooltip/index.d.ts +41 -50
  283. package/packages/components/tooltip/index.js +23 -22
  284. package/packages/components/tooltip/index.js.gz +0 -0
  285. package/packages/components/tooltip/src/index.vue.d.ts +6 -330
  286. package/packages/components/tree/index.js +1497 -1495
  287. package/packages/components/tree/index.js.gz +0 -0
  288. package/packages/components/tree/src/App.vue.d.ts +20 -196
  289. package/packages/components/tree-select/index.js +305 -304
  290. package/packages/components/tree-select/index.js.gz +0 -0
  291. package/packages/components/tree-select/src/App.vue.d.ts +61 -711
  292. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +50 -700
  293. package/packages/components/tree-table/index.d.ts +3 -24
  294. package/packages/components/upload/index.d.ts +4 -8
  295. package/packages/components/upload/src/Index.vue.d.ts +1 -1
  296. package/packages/components/virtual-tree/index.js +62 -61
  297. package/packages/components/virtual-tree/index.js.gz +0 -0
  298. package/packages/components/virtual-tree/src/App.vue.d.ts +2 -106
  299. package/packages/components/watermark/index.d.ts +1 -1
  300. package/packages/icons/caret-bottom/index.js +5 -5
  301. package/packages/icons/caret-bottom/index.js.gz +0 -0
  302. package/packages/icons/full-screen/index.js +6 -6
  303. package/packages/icons/full-screen/index.js.gz +0 -0
  304. package/packages/icons/header-seach/index.js +6 -6
  305. package/packages/icons/header-seach/index.js.gz +0 -0
  306. package/packages/icons/layout-refresh/index.js +5 -5
  307. package/packages/icons/layout-refresh/index.js.gz +0 -0
  308. package/packages/icons/project-list/index.js +5 -5
  309. package/packages/icons/project-list/index.js.gz +0 -0
  310. package/packages/icons/project-tree/index.js +4 -4
  311. package/packages/icons/project-tree/index.js.gz +0 -0
@@ -1,36 +1,37 @@
1
1
  import '@das-fed/ui/packages/components/map/style.css';
2
- import { ref as A, defineComponent as be, shallowRef as z, computed as _e, onMounted as xe, openBlock as ne, createElementBlock as oe, normalizeStyle as we, createElementVNode as te, withDirectives as H, createVNode as Me, unref as I, withKeys as Ae, h as Ft, render as Ht, isRef as Jt, createCommentVNode as Zt } from "vue";
3
- import { withInstall as Se } from "@das-fed/utils/with-install/index";
4
- import { ElAutocomplete as Ce, ElLoadingDirective as Oe } from "element-plus/es";
2
+ import { ref as A, defineComponent as me, shallowRef as G, computed as be, onMounted as _e, openBlock as xe, createElementBlock as we, normalizeStyle as Me, createElementVNode as Z, withDirectives as K, createVNode as Ae, unref as R, withKeys as Se, h as Ht, render as Jt, isRef as Zt, vShow as Wt } from "vue";
3
+ import { withInstall as Ce } from "@das-fed/utils/with-install/index";
4
+ import { ElAutocomplete as Oe, ElLoadingDirective as Te } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
6
6
  import "element-plus/es/components/loading/style/css";
7
7
  import "element-plus/es/components/autocomplete/style/css";
8
- import { vDasTooltip as Te } from "@das-fed/ui/packages/components/text-tooltip/index";
8
+ import { t as k } from "@das-fed/web/packages/i18n/index";
9
+ import { vDasTooltip as $e } from "@das-fed/ui/packages/components/text-tooltip/index";
9
10
  import { DasMessage as D } from "@das-fed/ui/packages/components/message/index";
10
- import { createService as tt } from "@das-fed/utils/create-api-service";
11
- const J = (e) => {
11
+ import { createService as at } from "@das-fed/utils/create-api-service";
12
+ const W = (e) => {
12
13
  if (e)
13
14
  return typeof e == "string" && hasCssUnit(e) ? e : e + "px";
14
- }, at = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: o, searchResultList: l, innerInput: u, innerPoint: n, adCode: c }, y) => {
15
- const d = A(), b = A();
16
- let _;
17
- const $ = (S, f, v, p) => {
18
- b.value = v, p && (_ = p);
15
+ }, rt = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: o, searchResultList: l, innerInput: u, innerPoint: n, adCode: c }, y) => {
16
+ const d = A(), _ = A();
17
+ let m;
18
+ const L = (S, f, v, g) => {
19
+ _.value = v, g && (m = g);
19
20
  const C = document.createElement("script");
20
21
  if (C.src = `${location.protocol}//webapi.amap.com/maps?v=1.4.15&key=${S}&callback=onLoad`, f) {
21
- const M = document.createElement("script");
22
- M.innerHTML = `window._AMapSecurityConfig = {
22
+ const w = document.createElement("script");
23
+ w.innerHTML = `window._AMapSecurityConfig = {
23
24
  securityJsCode: "${f}",
24
- }`, document.head.appendChild(M);
25
+ }`, document.head.appendChild(w);
25
26
  }
26
27
  document.head.appendChild(C), window.onLoad = () => {
27
- R();
28
+ P();
28
29
  };
29
- }, R = () => {
30
+ }, P = () => {
30
31
  var S, f;
31
32
  if (e.value = AMap, !(typeof e.value > "u")) {
32
33
  try {
33
- const v = ((S = b.value) == null ? void 0 : S.mapOpt) ?? {};
34
+ const v = ((S = _.value) == null ? void 0 : S.mapOpt) ?? {};
34
35
  t.value = new AMap.Map("map", {
35
36
  zoom: 15,
36
37
  ...v
@@ -46,11 +47,11 @@ const J = (e) => {
46
47
  liteStyle: !0
47
48
  })
48
49
  );
49
- }), i(), (f = b.value) != null && f.clickStream || s(), r.value = !1, _ && _();
50
+ }), i(), (f = _.value) != null && f.clickStream || s(), r.value = !1, m && m();
50
51
  }
51
52
  }, s = () => {
52
53
  t.value.on("click", (S) => {
53
- a.value && t.value.remove(a.value), n.value = [S.lnglat.getLng(), S.lnglat.getLat()], g(n.value, !0).then(() => {
54
+ a.value && t.value.remove(a.value), n.value = [S.lnglat.getLng(), S.lnglat.getLat()], p(n.value, !0).then(() => {
54
55
  a.value = new AMap.Marker({
55
56
  position: n.value,
56
57
  title: u.value
@@ -58,10 +59,10 @@ const J = (e) => {
58
59
  });
59
60
  });
60
61
  }, i = async () => {
61
- !u.value && !n.value.length && w(), u.value && n.value.length > 0 ? await g(n.value) : u.value ? await m(u.value) : n.value.length > 0 && await g(n.value, !0), u.value && h(u.value, (S, f) => {
62
+ !u.value && !n.value.length && x(), u.value && n.value.length > 0 ? await p(n.value) : u.value ? await b(u.value) : n.value.length > 0 && await p(n.value, !0), u.value && h(u.value, (S, f) => {
62
63
  if (f && f.length) {
63
64
  const v = f.find(
64
- (p) => p.value === u.value || p.info.name === u.value
65
+ (g) => g.value === u.value || g.info.name === u.value
65
66
  );
66
67
  v ? d.value = v.info : d.value = {
67
68
  district: "",
@@ -73,48 +74,48 @@ const J = (e) => {
73
74
  position: n.value,
74
75
  title: u.value
75
76
  }), t.value.add(a.value), n.value.length && t.value.setCenter(n.value);
76
- }, g = (S, f = !1) => {
77
+ }, p = (S, f = !1) => {
77
78
  const v = S.join(",");
78
- return new Promise((p, C) => {
79
+ return new Promise((g, C) => {
79
80
  AMap.service("AMap.Geocoder", () => {
80
81
  new AMap.Geocoder({
81
82
  city: "全国"
82
- }).getAddress(v, (j, x) => {
83
- var O, L;
84
- if (j === "complete" && (x != null && x.regeocode)) {
83
+ }).getAddress(v, ($, M) => {
84
+ var O, j;
85
+ if ($ === "complete" && (M != null && M.regeocode)) {
85
86
  if (f) {
86
- const { province: U = "", city: B = "", district: P = "", township: Ie = "" } = x.regeocode.addressComponent;
87
- u.value = x.regeocode.formattedAddress ?? "", d.value = {
88
- district: U + B + P,
89
- address: Ie,
90
- name: u.value.replace(U, "").replace(B, "").replace(P, "").replace(Ie, "")
87
+ const { province: B = "", city: z = "", district: I = "", township: De = "" } = M.regeocode.addressComponent;
88
+ u.value = M.regeocode.formattedAddress ?? "", d.value = {
89
+ district: B + z + I,
90
+ address: De,
91
+ name: u.value.replace(B, "").replace(z, "").replace(I, "").replace(De, "")
91
92
  };
92
93
  }
93
- c.value = ((L = (O = x.regeocode) == null ? void 0 : O.addressComponent) == null ? void 0 : L.adcode) ?? "", p(x.regeocode);
94
+ c.value = ((j = (O = M.regeocode) == null ? void 0 : O.addressComponent) == null ? void 0 : j.adcode) ?? "", g(M.regeocode);
94
95
  } else
95
96
  D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试"), C();
96
97
  });
97
98
  });
98
99
  });
99
- }, m = (S) => new Promise((f, v) => {
100
+ }, b = (S) => new Promise((f, v) => {
100
101
  AMap.service("AMap.Geocoder", () => {
101
102
  new AMap.Geocoder({
102
103
  city: "全国"
103
- }).getLocation(S, (C, M) => {
104
- var j, x;
105
- if (C === "complete" && ((j = M.geocodes) != null && j.length)) {
106
- const O = M.geocodes[0].location;
107
- n.value[0] = O.lng, n.value[1] = O.lat, c.value = ((x = M.geocodes[0]) == null ? void 0 : x.adcode) ?? "", f(M.geocodes[0].location);
104
+ }).getLocation(S, (C, w) => {
105
+ var $, M;
106
+ if (C === "complete" && (($ = w.geocodes) != null && $.length)) {
107
+ const O = w.geocodes[0].location;
108
+ n.value[0] = O.lng, n.value[1] = O.lat, c.value = ((M = w.geocodes[0]) == null ? void 0 : M.adcode) ?? "", f(w.geocodes[0].location);
108
109
  } else
109
110
  D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试"), v();
110
111
  });
111
112
  });
112
- }), w = () => {
113
+ }), x = () => {
113
114
  new AMap.CitySearch().getLocalCity((f, v) => {
114
115
  if (f === "complete" && v.info === "OK") {
115
116
  if (v && v.city && v.bounds) {
116
- const p = v.bounds;
117
- t.value.setBounds(p);
117
+ const g = v.bounds;
118
+ t.value.setBounds(g);
118
119
  }
119
120
  } else
120
121
  D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
@@ -127,30 +128,30 @@ const J = (e) => {
127
128
  AMap.plugin("AMap.Autocomplete", function() {
128
129
  var v = {
129
130
  city: "全国"
130
- }, p = new AMap.Autocomplete(v);
131
- p.search(S, function(C, M) {
132
- if (l.value = [], !M || !M.tips) return f([]);
133
- let j = M.tips;
134
- if (!j || !j.length) return f([]);
135
- j = j.map((x) => {
136
- const { district: O = "", address: L = "", name: U = "", location: B = "" } = x;
131
+ }, g = new AMap.Autocomplete(v);
132
+ g.search(S, function(C, w) {
133
+ if (l.value = [], !w || !w.tips) return f([]);
134
+ let $ = w.tips;
135
+ if (!$ || !$.length) return f([]);
136
+ $ = $.map((M) => {
137
+ const { district: O = "", address: j = "", name: B = "", location: z = "" } = M;
137
138
  return {
138
- value: O + L + U,
139
- point: B,
139
+ value: O + j + B,
140
+ point: z,
140
141
  info: {
141
142
  district: O,
142
- address: L,
143
- name: U
143
+ address: j,
144
+ name: B
144
145
  }
145
146
  };
146
- }), l.value = j.length > 5 ? j.slice(0, 5) : j, f(l.value, j);
147
+ }), l.value = $.length > 5 ? $.slice(0, 5) : $, f(l.value, $);
147
148
  });
148
149
  });
149
150
  };
150
151
  return {
151
152
  getLocationByInputSearch: h,
152
153
  handleSelectAddress: (S) => {
153
- u.value = S.value, d.value = S.info, m(S.value).then((f) => {
154
+ u.value = S.value, d.value = S.info, b(S.value).then((f) => {
154
155
  n.value = [f.lng, f.lat], a.value && t.value.remove(a.value), a.value = new AMap.Marker({
155
156
  position: n.value,
156
157
  title: u.value
@@ -163,7 +164,7 @@ const J = (e) => {
163
164
  if (!l.value.length) return D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
164
165
  if (u.value = l.value[0].value, !((S = l.value[0]) != null && S.point))
165
166
  return D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
166
- n.value = [l.value[0].point.lng, l.value[0].point.lat], d.value = l.value[0].info, await g(n.value), a.value = new AMap.Marker({
167
+ n.value = [l.value[0].point.lng, l.value[0].point.lat], d.value = l.value[0].info, await p(n.value), a.value = new AMap.Marker({
167
168
  position: n.value,
168
169
  title: u.value
169
170
  // 鼠标移上去时显示的内容
@@ -176,18 +177,18 @@ const J = (e) => {
176
177
  address: u.value,
177
178
  addressInfo: d.value
178
179
  }),
179
- loadJavascript: $
180
+ loadJavascript: L
180
181
  };
181
- }, rt = "v1", Wt = tt(`/api/tool/map/${rt}`), qt = tt(`/api/system-config/${rt}`), Yt = Wt.get("/regeo"), Xt = qt.get("/platform/map/list"), $e = async (e) => {
182
+ }, nt = "v1", qt = at(`/api/tool/map/${nt}`), Yt = at(`/api/system-config/${nt}`), Xt = qt.get("/regeo"), Qt = Yt.get("/platform/map/list"), je = async (e) => {
182
183
  var l, u, n, c, y;
183
- let t = null, [a, r] = await Xt().run();
184
+ let t = null, [a, r] = await Qt().run();
184
185
  if (a)
185
186
  return [a, t];
186
187
  const o = r.filter((d) => d.enable) || [];
187
188
  if ((o == null ? void 0 : o.length) == 0) return [null, t];
188
189
  if ((o == null ? void 0 : o.length) > 1) {
189
190
  let d = [];
190
- e == "baidu" ? d = o.filter((b) => b.serviceProvider == 1) : d = o.filter((b) => b.serviceProvider == 2), t = {
191
+ e == "baidu" ? d = o.filter((_) => _.serviceProvider == 1) : d = o.filter((_) => _.serviceProvider == 2), t = {
191
192
  mapType: e,
192
193
  akVal: (l = d[0]) == null ? void 0 : l.akValue,
193
194
  secretK: (u = d[0]) == null ? void 0 : u.securityKey
@@ -198,7 +199,7 @@ const J = (e) => {
198
199
  secretK: (y = o[0]) == null ? void 0 : y.securityKey
199
200
  });
200
201
  return [null, t];
201
- }, Qt = { class: "search-input" }, ea = { id: "map" }, ta = /* @__PURE__ */ be({
202
+ }, ea = { class: "search-input" }, ta = { id: "map" }, aa = /* @__PURE__ */ me({
202
203
  __name: "gaodeMap",
203
204
  props: {
204
205
  akValue: {},
@@ -211,10 +212,10 @@ const J = (e) => {
211
212
  dev: { type: Boolean }
212
213
  },
213
214
  setup(e, { expose: t }) {
214
- const a = e, r = z(null), o = z(null), l = z(null), u = A(!0), n = A(null), c = A([]), y = _e(() => ({
215
- width: a.width ? J(a.width) : "100%",
216
- height: a.height ? J(a.height) : "100%"
217
- })), d = A(""), b = A([]), _ = A(""), { getLocationByInputSearch: $, handleSelectAddress: R, getLocationParse: s, getMapInfo: i, loadJavascript: g } = at(
215
+ const a = e, r = G(null), o = G(null), l = G(null), u = A(!0), n = A(null), c = A([]), y = be(() => ({
216
+ width: a.width ? W(a.width) : "100%",
217
+ height: a.height ? W(a.height) : "100%"
218
+ })), d = A(""), _ = A([]), m = A(""), { getLocationByInputSearch: L, handleSelectAddress: P, getLocationParse: s, getMapInfo: i, loadJavascript: p } = rt(
218
219
  {
219
220
  MapGL: r,
220
221
  map: o,
@@ -223,63 +224,63 @@ const J = (e) => {
223
224
  $autocomplete: n,
224
225
  searchResultList: c,
225
226
  innerInput: d,
226
- innerPoint: b,
227
- adCode: _
227
+ innerPoint: _,
228
+ adCode: m
228
229
  }
229
- ), m = async () => {
230
- const w = {
230
+ ), b = async () => {
231
+ const x = {
231
232
  akValue: a.akValue ?? "",
232
233
  secretKey: a.secretKey ?? ""
233
234
  };
234
235
  {
235
- const [h, E] = await $e("gaode");
236
- h && D.error("获取地图配置信息失败"), !h && !E && D.error("暂未配置地图"), E && (w.akValue || (w.akValue = E.akVal), w.secretKey || (w.secretKey = E.secretK));
236
+ const [h, E] = await je("gaode");
237
+ h && D.error(k("获取地图配置信息失败")), !h && !E && D.error(k("暂未配置地图")), E && (x.akValue || (x.akValue = E.akVal), x.secretKey || (x.secretKey = E.secretK));
237
238
  }
238
- return w;
239
+ return x;
239
240
  };
240
- return xe(async () => {
241
- a.defaultLongitude && a.defaultLatitude && (b.value = [a.defaultLongitude, a.defaultLatitude]), d.value = a.defaultAddress ?? "";
242
- const { akValue: w, secretKey: h } = await m();
243
- g(w, h);
241
+ return _e(async () => {
242
+ a.defaultLongitude && a.defaultLatitude && (_.value = [a.defaultLongitude, a.defaultLatitude]), d.value = a.defaultAddress ?? "";
243
+ const { akValue: x, secretKey: h } = await b();
244
+ p(x, h);
244
245
  }), t({
245
246
  /** 获取经纬度、地址、行政区划编码 */
246
247
  getMapInfo: i
247
- }), (w, h) => {
248
- const E = Ce, V = Oe;
249
- return ne(), oe(
248
+ }), (x, h) => {
249
+ const E = Oe, U = Te;
250
+ return xe(), we(
250
251
  "div",
251
252
  {
252
253
  class: "das-map",
253
- style: we(y.value)
254
+ style: Me(y.value)
254
255
  },
255
256
  [
256
- te("div", Qt, [
257
- H(Me(E, {
257
+ Z("div", ea, [
258
+ K(Ae(E, {
258
259
  ref_key: "$autocomplete",
259
260
  ref: n,
260
261
  modelValue: d.value,
261
- "onUpdate:modelValue": h[0] || (h[0] = (k) => d.value = k),
262
+ "onUpdate:modelValue": h[0] || (h[0] = (V) => d.value = V),
262
263
  modelModifiers: { trim: !0 },
263
- "fetch-suggestions": I($),
264
- placeholder: "请输入位置",
264
+ "fetch-suggestions": R(L),
265
+ placeholder: R(k)("请输入位置"),
265
266
  style: { width: "100%" },
266
267
  "trigger-on-focus": !1,
267
- onSelect: I(R),
268
- onKeyup: Ae(I(s), ["enter", "native"]),
268
+ onSelect: R(P),
269
+ onKeyup: Se(R(s), ["enter", "native"]),
269
270
  clearable: ""
270
- }, null, 8, ["modelValue", "fetch-suggestions", "onSelect", "onKeyup"]), [
271
- [I(Te)]
271
+ }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
272
+ [R($e)]
272
273
  ])
273
274
  ]),
274
- H(te(
275
+ K(Z(
275
276
  "div",
276
- ea,
277
+ ta,
277
278
  null,
278
279
  512
279
280
  /* NEED_PATCH */
280
281
  ), [
281
282
  [
282
- V,
283
+ U,
283
284
  u.value,
284
285
  void 0,
285
286
  { lock: !0 }
@@ -291,27 +292,27 @@ const J = (e) => {
291
292
  );
292
293
  };
293
294
  }
294
- }), je = (e, t) => {
295
+ }), Le = (e, t) => {
295
296
  const a = e.__vccOpts || e;
296
297
  for (const [r, o] of t)
297
298
  a[r] = o;
298
299
  return a;
299
- }, aa = /* @__PURE__ */ je(ta, [["__scopeId", "data-v-6cbb28d3"]]), nt = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: o, searchResultList: l, innerInput: u, innerPoint: n, adCode: c }, y) => {
300
- const d = A(), b = A();
301
- let _;
302
- const $ = (f, v, p) => {
303
- b.value = v, p && (_ = p);
300
+ }, ra = /* @__PURE__ */ Le(aa, [["__scopeId", "data-v-8350a643"]]), ot = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: o, searchResultList: l, innerInput: u, innerPoint: n, adCode: c }, y) => {
301
+ const d = A(), _ = A();
302
+ let m;
303
+ const L = (f, v, g) => {
304
+ _.value = v, g && (m = g);
304
305
  const C = document.createElement("script");
305
306
  C.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${f}&services=&t=20200109192240`, C.onload = () => {
306
- R();
307
+ P();
307
308
  }, document.body.append(C);
308
- }, R = () => {
309
- var v, p;
309
+ }, P = () => {
310
+ var v, g;
310
311
  e.value = window.BMapGL;
311
312
  try {
312
- t.value = new e.value.Map("map", ((v = b.value) == null ? void 0 : v.mapOpt) ?? {});
313
+ t.value = new e.value.Map("map", ((v = _.value) == null ? void 0 : v.mapOpt) ?? {});
313
314
  } catch {
314
- r.value = !1, D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
315
+ r.value = !1, D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
315
316
  }
316
317
  const f = new e.value.NavigationControl({
317
318
  // @ts-ignore
@@ -319,18 +320,18 @@ const J = (e) => {
319
320
  // @ts-ignore
320
321
  type: BMAP_NAVIGATION_CONTROL_ZOOM
321
322
  });
322
- t.value.addControl(f), t.value.enableScrollWheelZoom(!0), i(), (p = b.value) != null && p.clickStream || g(), r.value = !1, _ && _();
323
- }, s = (f) => new Promise((v, p) => {
324
- new e.value.Geocoder().getPoint(f, (M) => {
325
- !M || JSON.stringify(M) == "{}" ? (D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试"), p()) : (n.value[0] = M.lng, n.value[1] = M.lat, v(M));
323
+ t.value.addControl(f), t.value.enableScrollWheelZoom(!0), i(), (g = _.value) != null && g.clickStream || p(), r.value = !1, m && m();
324
+ }, s = (f) => new Promise((v, g) => {
325
+ new e.value.Geocoder().getPoint(f, (w) => {
326
+ !w || JSON.stringify(w) == "{}" ? (D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试")), g()) : (n.value[0] = w.lng, n.value[1] = w.lat, v(w));
326
327
  });
327
328
  }), i = async () => {
328
- !u.value && !n.value.length && w(), u.value && n.value.length > 0 ? await m(n.value[0], n.value[1]) : u.value ? await s(u.value) : n.value.length > 0 && await m(n.value[0], n.value[1], !0), u.value && h(u.value, (f, v) => {
329
+ !u.value && !n.value.length && x(), u.value && n.value.length > 0 ? await b(n.value[0], n.value[1]) : u.value ? await s(u.value) : n.value.length > 0 && await b(n.value[0], n.value[1], !0), u.value && h(u.value, (f, v) => {
329
330
  if (v && v.length) {
330
- const p = v.find(
331
+ const g = v.find(
331
332
  (C) => C.value === u.value || C.info.name === u.value
332
333
  );
333
- p ? d.value = p.info : d.value = {
334
+ g ? d.value = g.info : d.value = {
334
335
  province: "",
335
336
  city: "",
336
337
  address: "",
@@ -338,33 +339,33 @@ const J = (e) => {
338
339
  };
339
340
  }
340
341
  });
341
- }, g = () => {
342
+ }, p = () => {
342
343
  t.value.addEventListener("click", (f) => {
343
344
  a.value && t.value.clearOverlays();
344
- const v = f.latlng.lng, p = f.latlng.lat;
345
- n.value = [v, p], m(v, p, !0);
345
+ const v = f.latlng.lng, g = f.latlng.lat;
346
+ n.value = [v, g], b(v, g, !0);
346
347
  });
347
- }, m = (f, v, p = !1, C = "default") => new Promise((M, j) => {
348
- const x = new e.value.Geocoder(), O = new e.value.Point(f, v);
349
- x.getLocation(O, (L) => {
350
- if (p) {
351
- u.value = L.address;
352
- const { province: U = "", city: B = "", district: P = "" } = L.addressComponents;
348
+ }, b = (f, v, g = !1, C = "default") => new Promise((w, $) => {
349
+ const M = new e.value.Geocoder(), O = new e.value.Point(f, v);
350
+ M.getLocation(O, (j) => {
351
+ if (g) {
352
+ u.value = j.address;
353
+ const { province: B = "", city: z = "", district: I = "" } = j.addressComponents;
353
354
  d.value = {
354
- province: U,
355
- city: B,
356
- address: B + P,
357
- name: L.address.replace(U, "").replace(B, "").replace(P, "")
355
+ province: B,
356
+ city: z,
357
+ address: z + I,
358
+ name: j.address.replace(B, "").replace(z, "").replace(I, "")
358
359
  };
359
360
  }
360
- L && L.address ? (C == "default" && (n.value[0] = L.point.lng, n.value[1] = L.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(O, { title: u.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(O, 16)), k(f, v), M(L.address)) : (D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试"), j());
361
+ j && j.address ? (C == "default" && (n.value[0] = j.point.lng, n.value[1] = j.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(O, { title: u.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(O, 16)), V(f, v), w(j.address)) : (D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试")), $());
361
362
  });
362
- }), w = () => {
363
+ }), x = () => {
363
364
  new e.value.LocalCity().get((v) => {
364
- const p = v.center;
365
- if (!v.center) return D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
365
+ const g = v.center;
366
+ if (!v.center) return D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
366
367
  a.value && t.value.clearOverlays();
367
- const C = new e.value.Point(p.lng, p.lat);
368
+ const C = new e.value.Point(g.lng, g.lat);
368
369
  t.value.centerAndZoom(C, 13);
369
370
  });
370
371
  }, h = (f, v) => {
@@ -374,42 +375,43 @@ const J = (e) => {
374
375
  }
375
376
  new e.value.LocalSearch(t.value, {
376
377
  onSearchComplete: (C) => {
377
- let M = [];
378
- for (let j = 0; j < C.getCurrentNumPois(); j++)
379
- M.push(C.getPoi(j));
380
- if (!M.length) return v([]);
381
- M = M.map((j) => {
382
- const { address: x = "", title: O = "", province: L = "", city: U = "", point: B = {} } = j;
378
+ let w = [];
379
+ for (let $ = 0; $ < C.getCurrentNumPois(); $++)
380
+ w.push(C.getPoi($));
381
+ if (!w.length) return v([]);
382
+ w = w.map(($) => {
383
+ const { address: M = "", title: O = "", province: j = "", city: B = "", point: z = {} } = $;
383
384
  return {
384
- value: x == O ? x : x + O,
385
- point: B,
385
+ value: M == O ? M : M + O,
386
+ point: z,
386
387
  info: {
387
- province: L,
388
- city: U,
389
- address: x,
388
+ province: j,
389
+ city: B,
390
+ address: M,
390
391
  name: O
391
392
  }
392
393
  };
393
- }), l.value = M.length > 5 ? M.slice(0, 5) : M, v(l.value, M);
394
+ }), l.value = w.length > 5 ? w.slice(0, 5) : w, v(l.value, w);
394
395
  }
395
396
  }).search(f);
396
397
  }, E = (f) => {
397
- var v, p;
398
- u.value = f.value, d.value = f.info, m((v = f.point) == null ? void 0 : v.lng, (p = f.point) == null ? void 0 : p.lat);
399
- }, V = () => {
398
+ var v, g;
399
+ u.value = f.value, d.value = f.info, b((v = f.point) == null ? void 0 : v.lng, (g = f.point) == null ? void 0 : g.lat);
400
+ }, U = () => {
400
401
  var f;
401
- if (!l.value.length) return D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
402
+ if (!l.value.length)
403
+ return D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
402
404
  if (u.value = l.value[0].value, d.value = l.value[0].info, !((f = l.value[0]) != null && f.point))
403
- return D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
404
- n.value = [l.value[0].point.lng, l.value[0].point.lat], m(n.value[0], n.value[1]), o.value.activated = !1;
405
- }, k = async (f, v) => {
406
- const [p, C] = await Yt().run({ longitude: f, latitude: v });
407
- p || (c.value = C.areaCode);
405
+ return D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
406
+ n.value = [l.value[0].point.lng, l.value[0].point.lat], b(n.value[0], n.value[1]), o.value.activated = !1;
407
+ }, V = async (f, v) => {
408
+ const [g, C] = await Xt().run({ longitude: f, latitude: v });
409
+ g || (c.value = C.areaCode);
408
410
  };
409
411
  return {
410
412
  getLocationByInputSearch: h,
411
413
  handleSelectAddress: E,
412
- getLocationParse: V,
414
+ getLocationParse: U,
413
415
  getMapInfo: () => ({
414
416
  longitude: n.value[0],
415
417
  latitude: n.value[1],
@@ -417,9 +419,9 @@ const J = (e) => {
417
419
  address: u.value,
418
420
  addressInfo: d.value
419
421
  }),
420
- loadJavascript: $
422
+ loadJavascript: L
421
423
  };
422
- }, ra = { class: "search-input" }, na = { id: "map" }, oa = /* @__PURE__ */ be({
424
+ }, na = { class: "search-input" }, oa = { id: "map" }, ua = /* @__PURE__ */ me({
423
425
  __name: "baiduMap",
424
426
  props: {
425
427
  akValue: {},
@@ -432,10 +434,10 @@ const J = (e) => {
432
434
  dev: { type: Boolean }
433
435
  },
434
436
  setup(e, { expose: t }) {
435
- const a = e, r = z(null), o = z(null), l = z(null), u = A(!0), n = A(null), c = A([]), y = _e(() => ({
436
- width: a.width ? J(a.width) : "100%",
437
- height: a.height ? J(a.height) : "100%"
438
- })), d = A(""), b = A([]), _ = A(""), { getLocationByInputSearch: $, handleSelectAddress: R, getLocationParse: s, getMapInfo: i, loadJavascript: g } = nt(
437
+ const a = e, r = G(null), o = G(null), l = G(null), u = A(!0), n = A(null), c = A([]), y = be(() => ({
438
+ width: a.width ? W(a.width) : "100%",
439
+ height: a.height ? W(a.height) : "100%"
440
+ })), d = A(""), _ = A([]), m = A(""), { getLocationByInputSearch: L, handleSelectAddress: P, getLocationParse: s, getMapInfo: i, loadJavascript: p } = ot(
439
441
  {
440
442
  BMap: r,
441
443
  map: o,
@@ -444,57 +446,57 @@ const J = (e) => {
444
446
  $autocomplete: n,
445
447
  searchResultList: c,
446
448
  innerInput: d,
447
- innerPoint: b,
448
- adCode: _
449
+ innerPoint: _,
450
+ adCode: m
449
451
  }
450
- ), m = async () => {
452
+ ), b = async () => {
451
453
  if (a.akValue) return a.akValue;
452
- const [w, h] = await $e("baidu");
453
- return w ? (D.error("获取地图配置信息失败"), "") : !w && !h ? (D.error("暂未配置地图"), "") : h.akVal;
454
+ const [x, h] = await je("baidu");
455
+ return x ? (D.error(k("获取地图配置信息失败")), "") : !x && !h ? (D.error(k("暂未配置地图")), "") : h.akVal;
454
456
  };
455
- return xe(async () => {
456
- a.defaultLongitude && a.defaultLatitude && (b.value = [a.defaultLongitude, a.defaultLatitude]), d.value = a.defaultAddress ?? "";
457
- const w = await m();
458
- g(w);
457
+ return _e(async () => {
458
+ a.defaultLongitude && a.defaultLatitude && (_.value = [a.defaultLongitude, a.defaultLatitude]), d.value = a.defaultAddress ?? "";
459
+ const x = await b();
460
+ p(x);
459
461
  }), t({
460
462
  // 获取经纬度、地址、行政区划信息
461
463
  getMapInfo: i
462
- }), (w, h) => {
463
- const E = Ce, V = Oe;
464
- return ne(), oe(
464
+ }), (x, h) => {
465
+ const E = Oe, U = Te;
466
+ return xe(), we(
465
467
  "div",
466
468
  {
467
469
  class: "das-map",
468
- style: we(y.value)
470
+ style: Me(y.value)
469
471
  },
470
472
  [
471
- te("div", ra, [
472
- H(Me(E, {
473
+ Z("div", na, [
474
+ K(Ae(E, {
473
475
  ref_key: "$autocomplete",
474
476
  ref: n,
475
477
  modelValue: d.value,
476
- "onUpdate:modelValue": h[0] || (h[0] = (k) => d.value = k),
478
+ "onUpdate:modelValue": h[0] || (h[0] = (V) => d.value = V),
477
479
  modelModifiers: { trim: !0 },
478
- "fetch-suggestions": I($),
479
- placeholder: "请输入位置",
480
+ "fetch-suggestions": R(L),
481
+ placeholder: R(k)("请输入位置"),
480
482
  style: { width: "100%" },
481
483
  "trigger-on-focus": !1,
482
- onSelect: I(R),
483
- onKeyup: Ae(I(s), ["enter", "native"]),
484
+ onSelect: R(P),
485
+ onKeyup: Se(R(s), ["enter", "native"]),
484
486
  clearable: ""
485
- }, null, 8, ["modelValue", "fetch-suggestions", "onSelect", "onKeyup"]), [
486
- [I(Te)]
487
+ }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
488
+ [R($e)]
487
489
  ])
488
490
  ]),
489
- H(te(
491
+ K(Z(
490
492
  "div",
491
- na,
493
+ oa,
492
494
  null,
493
495
  512
494
496
  /* NEED_PATCH */
495
497
  ), [
496
498
  [
497
- V,
499
+ U,
498
500
  u.value,
499
501
  void 0,
500
502
  { lock: !0 }
@@ -506,102 +508,102 @@ const J = (e) => {
506
508
  );
507
509
  };
508
510
  }
509
- }), ua = /* @__PURE__ */ je(oa, [["__scopeId", "data-v-eea2c7e3"]]);
510
- function la() {
511
+ }), la = /* @__PURE__ */ Le(ua, [["__scopeId", "data-v-54b081bc"]]);
512
+ function ia() {
511
513
  this.__data__ = [], this.size = 0;
512
514
  }
513
- function ie(e, t) {
515
+ function le(e, t) {
514
516
  return e === t || e !== e && t !== t;
515
517
  }
516
- function se(e, t) {
518
+ function ie(e, t) {
517
519
  for (var a = e.length; a--; )
518
- if (ie(e[a][0], t))
520
+ if (le(e[a][0], t))
519
521
  return a;
520
522
  return -1;
521
523
  }
522
- var ia = Array.prototype, sa = ia.splice;
523
- function ca(e) {
524
- var t = this.__data__, a = se(t, e);
524
+ var sa = Array.prototype, ca = sa.splice;
525
+ function da(e) {
526
+ var t = this.__data__, a = ie(t, e);
525
527
  if (a < 0)
526
528
  return !1;
527
529
  var r = t.length - 1;
528
- return a == r ? t.pop() : sa.call(t, a, 1), --this.size, !0;
530
+ return a == r ? t.pop() : ca.call(t, a, 1), --this.size, !0;
529
531
  }
530
- function da(e) {
531
- var t = this.__data__, a = se(t, e);
532
+ function fa(e) {
533
+ var t = this.__data__, a = ie(t, e);
532
534
  return a < 0 ? void 0 : t[a][1];
533
535
  }
534
- function fa(e) {
535
- return se(this.__data__, e) > -1;
536
+ function va(e) {
537
+ return ie(this.__data__, e) > -1;
536
538
  }
537
- function va(e, t) {
538
- var a = this.__data__, r = se(a, e);
539
+ function pa(e, t) {
540
+ var a = this.__data__, r = ie(a, e);
539
541
  return r < 0 ? (++this.size, a.push([e, t])) : a[r][1] = t, this;
540
542
  }
541
- function G(e) {
543
+ function N(e) {
542
544
  var t = -1, a = e == null ? 0 : e.length;
543
545
  for (this.clear(); ++t < a; ) {
544
546
  var r = e[t];
545
547
  this.set(r[0], r[1]);
546
548
  }
547
549
  }
548
- G.prototype.clear = la;
549
- G.prototype.delete = ca;
550
- G.prototype.get = da;
551
- G.prototype.has = fa;
552
- G.prototype.set = va;
550
+ N.prototype.clear = ia;
551
+ N.prototype.delete = da;
552
+ N.prototype.get = fa;
553
+ N.prototype.has = va;
554
+ N.prototype.set = pa;
553
555
  function ga() {
554
- this.__data__ = new G(), this.size = 0;
556
+ this.__data__ = new N(), this.size = 0;
555
557
  }
556
- function pa(e) {
558
+ function ha(e) {
557
559
  var t = this.__data__, a = t.delete(e);
558
560
  return this.size = t.size, a;
559
561
  }
560
- function ha(e) {
562
+ function ya(e) {
561
563
  return this.__data__.get(e);
562
564
  }
563
- function ya(e) {
565
+ function ma(e) {
564
566
  return this.__data__.has(e);
565
567
  }
566
- var ot = typeof global == "object" && global && global.Object === Object && global, ma = typeof self == "object" && self && self.Object === Object && self, W = ot || ma || Function("return this")(), Z = W.Symbol, ut = Object.prototype, ba = ut.hasOwnProperty, _a = ut.toString, Q = Z ? Z.toStringTag : void 0;
567
- function xa(e) {
568
- var t = ba.call(e, Q), a = e[Q];
568
+ var ut = typeof global == "object" && global && global.Object === Object && global, ba = typeof self == "object" && self && self.Object === Object && self, Y = ut || ba || Function("return this")(), q = Y.Symbol, lt = Object.prototype, _a = lt.hasOwnProperty, xa = lt.toString, te = q ? q.toStringTag : void 0;
569
+ function wa(e) {
570
+ var t = _a.call(e, te), a = e[te];
569
571
  try {
570
- e[Q] = void 0;
572
+ e[te] = void 0;
571
573
  var r = !0;
572
574
  } catch {
573
575
  }
574
- var o = _a.call(e);
575
- return r && (t ? e[Q] = a : delete e[Q]), o;
576
+ var o = xa.call(e);
577
+ return r && (t ? e[te] = a : delete e[te]), o;
576
578
  }
577
- var wa = Object.prototype, Ma = wa.toString;
578
- function Aa(e) {
579
- return Ma.call(e);
579
+ var Ma = Object.prototype, Aa = Ma.toString;
580
+ function Sa(e) {
581
+ return Aa.call(e);
580
582
  }
581
- var Sa = "[object Null]", Ca = "[object Undefined]", De = Z ? Z.toStringTag : void 0;
582
- function re(e) {
583
- return e == null ? e === void 0 ? Ca : Sa : De && De in Object(e) ? xa(e) : Aa(e);
583
+ var Ca = "[object Null]", Oa = "[object Undefined]", Ue = q ? q.toStringTag : void 0;
584
+ function ne(e) {
585
+ return e == null ? e === void 0 ? Oa : Ca : Ue && Ue in Object(e) ? wa(e) : Sa(e);
584
586
  }
585
- function K(e) {
587
+ function H(e) {
586
588
  var t = typeof e;
587
589
  return e != null && (t == "object" || t == "function");
588
590
  }
589
- var Oa = "[object AsyncFunction]", Ta = "[object Function]", $a = "[object GeneratorFunction]", ja = "[object Proxy]";
590
- function Le(e) {
591
- if (!K(e))
591
+ var Ta = "[object AsyncFunction]", $a = "[object Function]", ja = "[object GeneratorFunction]", La = "[object Proxy]";
592
+ function Ee(e) {
593
+ if (!H(e))
592
594
  return !1;
593
- var t = re(e);
594
- return t == Ta || t == $a || t == Oa || t == ja;
595
+ var t = ne(e);
596
+ return t == $a || t == ja || t == Ta || t == La;
595
597
  }
596
- var fe = W["__core-js_shared__"], Ve = function() {
597
- var e = /[^.]+$/.exec(fe && fe.keys && fe.keys.IE_PROTO || "");
598
+ var de = Y["__core-js_shared__"], Ve = function() {
599
+ var e = /[^.]+$/.exec(de && de.keys && de.keys.IE_PROTO || "");
598
600
  return e ? "Symbol(src)_1." + e : "";
599
601
  }();
600
- function La(e) {
602
+ function Ea(e) {
601
603
  return !!Ve && Ve in e;
602
604
  }
603
- var Ea = Function.prototype, Ra = Ea.toString;
604
- function Pa(e) {
605
+ var Pa = Function.prototype, Ra = Pa.toString;
606
+ function Ia(e) {
605
607
  if (e != null) {
606
608
  try {
607
609
  return Ra.call(e);
@@ -614,141 +616,141 @@ function Pa(e) {
614
616
  }
615
617
  return "";
616
618
  }
617
- var Ia = /[\\^$.*+?()[\]{}|]/g, Da = /^\[object .+?Constructor\]$/, Va = Function.prototype, ka = Object.prototype, Ua = Va.toString, Ba = ka.hasOwnProperty, za = RegExp(
618
- "^" + Ua.call(Ba).replace(Ia, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
619
+ var Da = /[\\^$.*+?()[\]{}|]/g, Ua = /^\[object .+?Constructor\]$/, Va = Function.prototype, ka = Object.prototype, Ba = Va.toString, za = ka.hasOwnProperty, Ga = RegExp(
620
+ "^" + Ba.call(za).replace(Da, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
619
621
  );
620
- function Ga(e) {
621
- if (!K(e) || La(e))
622
+ function Na(e) {
623
+ if (!H(e) || Ea(e))
622
624
  return !1;
623
- var t = Le(e) ? za : Da;
624
- return t.test(Pa(e));
625
+ var t = Ee(e) ? Ga : Ua;
626
+ return t.test(Ia(e));
625
627
  }
626
- function Na(e, t) {
628
+ function Ka(e, t) {
627
629
  return e == null ? void 0 : e[t];
628
630
  }
629
- function Ee(e, t) {
630
- var a = Na(e, t);
631
- return Ga(a) ? a : void 0;
631
+ function Pe(e, t) {
632
+ var a = Ka(e, t);
633
+ return Na(a) ? a : void 0;
632
634
  }
633
- var lt = Ee(W, "Map"), ae = Ee(Object, "create");
634
- function Ka() {
635
- this.__data__ = ae ? ae(null) : {}, this.size = 0;
635
+ var it = Pe(Y, "Map"), re = Pe(Object, "create");
636
+ function Fa() {
637
+ this.__data__ = re ? re(null) : {}, this.size = 0;
636
638
  }
637
- function Fa(e) {
639
+ function Ha(e) {
638
640
  var t = this.has(e) && delete this.__data__[e];
639
641
  return this.size -= t ? 1 : 0, t;
640
642
  }
641
- var Ha = "__lodash_hash_undefined__", Ja = Object.prototype, Za = Ja.hasOwnProperty;
642
- function Wa(e) {
643
+ var Ja = "__lodash_hash_undefined__", Za = Object.prototype, Wa = Za.hasOwnProperty;
644
+ function qa(e) {
643
645
  var t = this.__data__;
644
- if (ae) {
646
+ if (re) {
645
647
  var a = t[e];
646
- return a === Ha ? void 0 : a;
648
+ return a === Ja ? void 0 : a;
647
649
  }
648
- return Za.call(t, e) ? t[e] : void 0;
650
+ return Wa.call(t, e) ? t[e] : void 0;
649
651
  }
650
- var qa = Object.prototype, Ya = qa.hasOwnProperty;
651
- function Xa(e) {
652
+ var Ya = Object.prototype, Xa = Ya.hasOwnProperty;
653
+ function Qa(e) {
652
654
  var t = this.__data__;
653
- return ae ? t[e] !== void 0 : Ya.call(t, e);
655
+ return re ? t[e] !== void 0 : Xa.call(t, e);
654
656
  }
655
- var Qa = "__lodash_hash_undefined__";
656
- function er(e, t) {
657
+ var er = "__lodash_hash_undefined__";
658
+ function tr(e, t) {
657
659
  var a = this.__data__;
658
- return this.size += this.has(e) ? 0 : 1, a[e] = ae && t === void 0 ? Qa : t, this;
660
+ return this.size += this.has(e) ? 0 : 1, a[e] = re && t === void 0 ? er : t, this;
659
661
  }
660
- function N(e) {
662
+ function F(e) {
661
663
  var t = -1, a = e == null ? 0 : e.length;
662
664
  for (this.clear(); ++t < a; ) {
663
665
  var r = e[t];
664
666
  this.set(r[0], r[1]);
665
667
  }
666
668
  }
667
- N.prototype.clear = Ka;
668
- N.prototype.delete = Fa;
669
- N.prototype.get = Wa;
670
- N.prototype.has = Xa;
671
- N.prototype.set = er;
672
- function tr() {
669
+ F.prototype.clear = Fa;
670
+ F.prototype.delete = Ha;
671
+ F.prototype.get = qa;
672
+ F.prototype.has = Qa;
673
+ F.prototype.set = tr;
674
+ function ar() {
673
675
  this.size = 0, this.__data__ = {
674
- hash: new N(),
675
- map: new (lt || G)(),
676
- string: new N()
676
+ hash: new F(),
677
+ map: new (it || N)(),
678
+ string: new F()
677
679
  };
678
680
  }
679
- function ar(e) {
681
+ function rr(e) {
680
682
  var t = typeof e;
681
683
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
682
684
  }
683
- function ce(e, t) {
685
+ function se(e, t) {
684
686
  var a = e.__data__;
685
- return ar(t) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
686
- }
687
- function rr(e) {
688
- var t = ce(this, e).delete(e);
689
- return this.size -= t ? 1 : 0, t;
687
+ return rr(t) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
690
688
  }
691
689
  function nr(e) {
692
- return ce(this, e).get(e);
690
+ var t = se(this, e).delete(e);
691
+ return this.size -= t ? 1 : 0, t;
693
692
  }
694
693
  function or(e) {
695
- return ce(this, e).has(e);
694
+ return se(this, e).get(e);
696
695
  }
697
- function ur(e, t) {
698
- var a = ce(this, e), r = a.size;
696
+ function ur(e) {
697
+ return se(this, e).has(e);
698
+ }
699
+ function lr(e, t) {
700
+ var a = se(this, e), r = a.size;
699
701
  return a.set(e, t), this.size += a.size == r ? 0 : 1, this;
700
702
  }
701
- function q(e) {
703
+ function X(e) {
702
704
  var t = -1, a = e == null ? 0 : e.length;
703
705
  for (this.clear(); ++t < a; ) {
704
706
  var r = e[t];
705
707
  this.set(r[0], r[1]);
706
708
  }
707
709
  }
708
- q.prototype.clear = tr;
709
- q.prototype.delete = rr;
710
- q.prototype.get = nr;
711
- q.prototype.has = or;
712
- q.prototype.set = ur;
713
- var lr = 200;
714
- function ir(e, t) {
710
+ X.prototype.clear = ar;
711
+ X.prototype.delete = nr;
712
+ X.prototype.get = or;
713
+ X.prototype.has = ur;
714
+ X.prototype.set = lr;
715
+ var ir = 200;
716
+ function sr(e, t) {
715
717
  var a = this.__data__;
716
- if (a instanceof G) {
718
+ if (a instanceof N) {
717
719
  var r = a.__data__;
718
- if (!lt || r.length < lr - 1)
720
+ if (!it || r.length < ir - 1)
719
721
  return r.push([e, t]), this.size = ++a.size, this;
720
- a = this.__data__ = new q(r);
722
+ a = this.__data__ = new X(r);
721
723
  }
722
724
  return a.set(e, t), this.size = a.size, this;
723
725
  }
724
- function Y(e) {
725
- var t = this.__data__ = new G(e);
726
+ function Q(e) {
727
+ var t = this.__data__ = new N(e);
726
728
  this.size = t.size;
727
729
  }
728
- Y.prototype.clear = ga;
729
- Y.prototype.delete = pa;
730
- Y.prototype.get = ha;
731
- Y.prototype.has = ya;
732
- Y.prototype.set = ir;
733
- var ue = function() {
730
+ Q.prototype.clear = ga;
731
+ Q.prototype.delete = ha;
732
+ Q.prototype.get = ya;
733
+ Q.prototype.has = ma;
734
+ Q.prototype.set = sr;
735
+ var oe = function() {
734
736
  try {
735
- var e = Ee(Object, "defineProperty");
737
+ var e = Pe(Object, "defineProperty");
736
738
  return e({}, "", {}), e;
737
739
  } catch {
738
740
  }
739
741
  }();
740
742
  function Re(e, t, a) {
741
- t == "__proto__" && ue ? ue(e, t, {
743
+ t == "__proto__" && oe ? oe(e, t, {
742
744
  configurable: !0,
743
745
  enumerable: !0,
744
746
  value: a,
745
747
  writable: !0
746
748
  }) : e[t] = a;
747
749
  }
748
- function ge(e, t, a) {
749
- (a !== void 0 && !ie(e[t], a) || a === void 0 && !(t in e)) && Re(e, t, a);
750
+ function ve(e, t, a) {
751
+ (a !== void 0 && !le(e[t], a) || a === void 0 && !(t in e)) && Re(e, t, a);
750
752
  }
751
- function sr(e) {
753
+ function cr(e) {
752
754
  return function(t, a, r) {
753
755
  for (var o = -1, l = Object(t), u = r(t), n = u.length; n--; ) {
754
756
  var c = u[++o];
@@ -758,191 +760,191 @@ function sr(e) {
758
760
  return t;
759
761
  };
760
762
  }
761
- var cr = sr(), it = typeof exports == "object" && exports && !exports.nodeType && exports, ke = it && typeof module == "object" && module && !module.nodeType && module, dr = ke && ke.exports === it, Ue = dr ? W.Buffer : void 0;
762
- Ue && Ue.allocUnsafe;
763
- function fr(e, t) {
763
+ var dr = cr(), st = typeof exports == "object" && exports && !exports.nodeType && exports, ke = st && typeof module == "object" && module && !module.nodeType && module, fr = ke && ke.exports === st, Be = fr ? Y.Buffer : void 0;
764
+ Be && Be.allocUnsafe;
765
+ function vr(e, t) {
764
766
  return e.slice();
765
767
  }
766
- var Be = W.Uint8Array;
767
- function vr(e) {
768
+ var ze = Y.Uint8Array;
769
+ function pr(e) {
768
770
  var t = new e.constructor(e.byteLength);
769
- return new Be(t).set(new Be(e)), t;
771
+ return new ze(t).set(new ze(e)), t;
770
772
  }
771
773
  function gr(e, t) {
772
- var a = vr(e.buffer);
774
+ var a = pr(e.buffer);
773
775
  return new e.constructor(a, e.byteOffset, e.length);
774
776
  }
775
- function pr(e, t) {
777
+ function hr(e, t) {
776
778
  var a = -1, r = e.length;
777
779
  for (t || (t = Array(r)); ++a < r; )
778
780
  t[a] = e[a];
779
781
  return t;
780
782
  }
781
- var ze = Object.create, hr = /* @__PURE__ */ function() {
783
+ var Ge = Object.create, yr = /* @__PURE__ */ function() {
782
784
  function e() {
783
785
  }
784
786
  return function(t) {
785
- if (!K(t))
787
+ if (!H(t))
786
788
  return {};
787
- if (ze)
788
- return ze(t);
789
+ if (Ge)
790
+ return Ge(t);
789
791
  e.prototype = t;
790
792
  var a = new e();
791
793
  return e.prototype = void 0, a;
792
794
  };
793
795
  }();
794
- function yr(e, t) {
796
+ function mr(e, t) {
795
797
  return function(a) {
796
798
  return e(t(a));
797
799
  };
798
800
  }
799
- var st = yr(Object.getPrototypeOf, Object), mr = Object.prototype;
800
- function ct(e) {
801
- var t = e && e.constructor, a = typeof t == "function" && t.prototype || mr;
801
+ var ct = mr(Object.getPrototypeOf, Object), br = Object.prototype;
802
+ function dt(e) {
803
+ var t = e && e.constructor, a = typeof t == "function" && t.prototype || br;
802
804
  return e === a;
803
805
  }
804
- function br(e) {
805
- return typeof e.constructor == "function" && !ct(e) ? hr(st(e)) : {};
806
+ function _r(e) {
807
+ return typeof e.constructor == "function" && !dt(e) ? yr(ct(e)) : {};
806
808
  }
807
- function X(e) {
809
+ function ee(e) {
808
810
  return e != null && typeof e == "object";
809
811
  }
810
- var _r = "[object Arguments]";
811
- function Ge(e) {
812
- return X(e) && re(e) == _r;
812
+ var xr = "[object Arguments]";
813
+ function Ne(e) {
814
+ return ee(e) && ne(e) == xr;
813
815
  }
814
- var dt = Object.prototype, xr = dt.hasOwnProperty, wr = dt.propertyIsEnumerable, pe = Ge(/* @__PURE__ */ function() {
816
+ var ft = Object.prototype, wr = ft.hasOwnProperty, Mr = ft.propertyIsEnumerable, pe = Ne(/* @__PURE__ */ function() {
815
817
  return arguments;
816
- }()) ? Ge : function(e) {
817
- return X(e) && xr.call(e, "callee") && !wr.call(e, "callee");
818
- }, le = Array.isArray, Mr = 9007199254740991;
819
- function ft(e) {
820
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Mr;
818
+ }()) ? Ne : function(e) {
819
+ return ee(e) && wr.call(e, "callee") && !Mr.call(e, "callee");
820
+ }, ue = Array.isArray, Ar = 9007199254740991;
821
+ function vt(e) {
822
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ar;
821
823
  }
822
- function Pe(e) {
823
- return e != null && ft(e.length) && !Le(e);
824
+ function Ie(e) {
825
+ return e != null && vt(e.length) && !Ee(e);
824
826
  }
825
- function Ar(e) {
826
- return X(e) && Pe(e);
827
+ function Sr(e) {
828
+ return ee(e) && Ie(e);
827
829
  }
828
- function Sr() {
830
+ function Cr() {
829
831
  return !1;
830
832
  }
831
- var vt = typeof exports == "object" && exports && !exports.nodeType && exports, Ne = vt && typeof module == "object" && module && !module.nodeType && module, Cr = Ne && Ne.exports === vt, Ke = Cr ? W.Buffer : void 0, Or = Ke ? Ke.isBuffer : void 0, gt = Or || Sr, Tr = "[object Object]", $r = Function.prototype, jr = Object.prototype, pt = $r.toString, Lr = jr.hasOwnProperty, Er = pt.call(Object);
833
+ var pt = typeof exports == "object" && exports && !exports.nodeType && exports, Ke = pt && typeof module == "object" && module && !module.nodeType && module, Or = Ke && Ke.exports === pt, Fe = Or ? Y.Buffer : void 0, Tr = Fe ? Fe.isBuffer : void 0, gt = Tr || Cr, $r = "[object Object]", jr = Function.prototype, Lr = Object.prototype, ht = jr.toString, Er = Lr.hasOwnProperty, Pr = ht.call(Object);
832
834
  function Rr(e) {
833
- if (!X(e) || re(e) != Tr)
835
+ if (!ee(e) || ne(e) != $r)
834
836
  return !1;
835
- var t = st(e);
837
+ var t = ct(e);
836
838
  if (t === null)
837
839
  return !0;
838
- var a = Lr.call(t, "constructor") && t.constructor;
839
- return typeof a == "function" && a instanceof a && pt.call(a) == Er;
840
- }
841
- var Pr = "[object Arguments]", Ir = "[object Array]", Dr = "[object Boolean]", Vr = "[object Date]", kr = "[object Error]", Ur = "[object Function]", Br = "[object Map]", zr = "[object Number]", Gr = "[object Object]", Nr = "[object RegExp]", Kr = "[object Set]", Fr = "[object String]", Hr = "[object WeakMap]", Jr = "[object ArrayBuffer]", Zr = "[object DataView]", Wr = "[object Float32Array]", qr = "[object Float64Array]", Yr = "[object Int8Array]", Xr = "[object Int16Array]", Qr = "[object Int32Array]", en = "[object Uint8Array]", tn = "[object Uint8ClampedArray]", an = "[object Uint16Array]", rn = "[object Uint32Array]", T = {};
842
- T[Wr] = T[qr] = T[Yr] = T[Xr] = T[Qr] = T[en] = T[tn] = T[an] = T[rn] = !0;
843
- T[Pr] = T[Ir] = T[Jr] = T[Dr] = T[Zr] = T[Vr] = T[kr] = T[Ur] = T[Br] = T[zr] = T[Gr] = T[Nr] = T[Kr] = T[Fr] = T[Hr] = !1;
844
- function nn(e) {
845
- return X(e) && ft(e.length) && !!T[re(e)];
840
+ var a = Er.call(t, "constructor") && t.constructor;
841
+ return typeof a == "function" && a instanceof a && ht.call(a) == Pr;
846
842
  }
843
+ var Ir = "[object Arguments]", Dr = "[object Array]", Ur = "[object Boolean]", Vr = "[object Date]", kr = "[object Error]", Br = "[object Function]", zr = "[object Map]", Gr = "[object Number]", Nr = "[object Object]", Kr = "[object RegExp]", Fr = "[object Set]", Hr = "[object String]", Jr = "[object WeakMap]", Zr = "[object ArrayBuffer]", Wr = "[object DataView]", qr = "[object Float32Array]", Yr = "[object Float64Array]", Xr = "[object Int8Array]", Qr = "[object Int16Array]", en = "[object Int32Array]", tn = "[object Uint8Array]", an = "[object Uint8ClampedArray]", rn = "[object Uint16Array]", nn = "[object Uint32Array]", T = {};
844
+ T[qr] = T[Yr] = T[Xr] = T[Qr] = T[en] = T[tn] = T[an] = T[rn] = T[nn] = !0;
845
+ T[Ir] = T[Dr] = T[Zr] = T[Ur] = T[Wr] = T[Vr] = T[kr] = T[Br] = T[zr] = T[Gr] = T[Nr] = T[Kr] = T[Fr] = T[Hr] = T[Jr] = !1;
847
846
  function on(e) {
847
+ return ee(e) && vt(e.length) && !!T[ne(e)];
848
+ }
849
+ function un(e) {
848
850
  return function(t) {
849
851
  return e(t);
850
852
  };
851
853
  }
852
- var ht = typeof exports == "object" && exports && !exports.nodeType && exports, ee = ht && typeof module == "object" && module && !module.nodeType && module, un = ee && ee.exports === ht, ve = un && ot.process, Fe = function() {
854
+ var yt = typeof exports == "object" && exports && !exports.nodeType && exports, ae = yt && typeof module == "object" && module && !module.nodeType && module, ln = ae && ae.exports === yt, fe = ln && ut.process, He = function() {
853
855
  try {
854
- var e = ee && ee.require && ee.require("util").types;
855
- return e || ve && ve.binding && ve.binding("util");
856
+ var e = ae && ae.require && ae.require("util").types;
857
+ return e || fe && fe.binding && fe.binding("util");
856
858
  } catch {
857
859
  }
858
- }(), He = Fe && Fe.isTypedArray, yt = He ? on(He) : nn;
859
- function he(e, t) {
860
+ }(), Je = He && He.isTypedArray, mt = Je ? un(Je) : on;
861
+ function ge(e, t) {
860
862
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
861
863
  return e[t];
862
864
  }
863
- var ln = Object.prototype, sn = ln.hasOwnProperty;
864
- function cn(e, t, a) {
865
+ var sn = Object.prototype, cn = sn.hasOwnProperty;
866
+ function dn(e, t, a) {
865
867
  var r = e[t];
866
- (!(sn.call(e, t) && ie(r, a)) || a === void 0 && !(t in e)) && Re(e, t, a);
868
+ (!(cn.call(e, t) && le(r, a)) || a === void 0 && !(t in e)) && Re(e, t, a);
867
869
  }
868
- function dn(e, t, a, r) {
870
+ function fn(e, t, a, r) {
869
871
  var o = !a;
870
872
  a || (a = {});
871
873
  for (var l = -1, u = t.length; ++l < u; ) {
872
874
  var n = t[l], c = void 0;
873
- c === void 0 && (c = e[n]), o ? Re(a, n, c) : cn(a, n, c);
875
+ c === void 0 && (c = e[n]), o ? Re(a, n, c) : dn(a, n, c);
874
876
  }
875
877
  return a;
876
878
  }
877
- function fn(e, t) {
879
+ function vn(e, t) {
878
880
  for (var a = -1, r = Array(e); ++a < e; )
879
881
  r[a] = t(a);
880
882
  return r;
881
883
  }
882
- var vn = 9007199254740991, gn = /^(?:0|[1-9]\d*)$/;
883
- function mt(e, t) {
884
+ var pn = 9007199254740991, gn = /^(?:0|[1-9]\d*)$/;
885
+ function bt(e, t) {
884
886
  var a = typeof e;
885
- return t = t ?? vn, !!t && (a == "number" || a != "symbol" && gn.test(e)) && e > -1 && e % 1 == 0 && e < t;
887
+ return t = t ?? pn, !!t && (a == "number" || a != "symbol" && gn.test(e)) && e > -1 && e % 1 == 0 && e < t;
886
888
  }
887
- function pn(e, t) {
888
- var a = le(e), r = !a && pe(e), o = !a && !r && gt(e), l = !a && !r && !o && yt(e), u = a || r || o || l, n = u ? fn(e.length, String) : [], c = n.length;
889
+ function hn(e, t) {
890
+ var a = ue(e), r = !a && pe(e), o = !a && !r && gt(e), l = !a && !r && !o && mt(e), u = a || r || o || l, n = u ? vn(e.length, String) : [], c = n.length;
889
891
  for (var y in e)
890
892
  u && // Safari 9 has enumerable `arguments.length` in strict mode.
891
893
  (y == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
892
894
  o && (y == "offset" || y == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
893
895
  l && (y == "buffer" || y == "byteLength" || y == "byteOffset") || // Skip index properties.
894
- mt(y, c)) || n.push(y);
896
+ bt(y, c)) || n.push(y);
895
897
  return n;
896
898
  }
897
- function hn(e) {
899
+ function yn(e) {
898
900
  var t = [];
899
901
  if (e != null)
900
902
  for (var a in Object(e))
901
903
  t.push(a);
902
904
  return t;
903
905
  }
904
- var yn = Object.prototype, mn = yn.hasOwnProperty;
905
- function bn(e) {
906
- if (!K(e))
907
- return hn(e);
908
- var t = ct(e), a = [];
906
+ var mn = Object.prototype, bn = mn.hasOwnProperty;
907
+ function _n(e) {
908
+ if (!H(e))
909
+ return yn(e);
910
+ var t = dt(e), a = [];
909
911
  for (var r in e)
910
- r == "constructor" && (t || !mn.call(e, r)) || a.push(r);
912
+ r == "constructor" && (t || !bn.call(e, r)) || a.push(r);
911
913
  return a;
912
914
  }
913
- function bt(e) {
914
- return Pe(e) ? pn(e) : bn(e);
915
+ function _t(e) {
916
+ return Ie(e) ? hn(e) : _n(e);
915
917
  }
916
- function _n(e) {
917
- return dn(e, bt(e));
918
+ function xn(e) {
919
+ return fn(e, _t(e));
918
920
  }
919
- function xn(e, t, a, r, o, l, u) {
920
- var n = he(e, a), c = he(t, a), y = u.get(c);
921
+ function wn(e, t, a, r, o, l, u) {
922
+ var n = ge(e, a), c = ge(t, a), y = u.get(c);
921
923
  if (y) {
922
- ge(e, a, y);
924
+ ve(e, a, y);
923
925
  return;
924
926
  }
925
- var d = l ? l(n, c, a + "", e, t, u) : void 0, b = d === void 0;
926
- if (b) {
927
- var _ = le(c), $ = !_ && gt(c), R = !_ && !$ && yt(c);
928
- d = c, _ || $ || R ? le(n) ? d = n : Ar(n) ? d = pr(n) : $ ? (b = !1, d = fr(c)) : R ? (b = !1, d = gr(c)) : d = [] : Rr(c) || pe(c) ? (d = n, pe(n) ? d = _n(n) : (!K(n) || Le(n)) && (d = br(c))) : b = !1;
927
+ var d = l ? l(n, c, a + "", e, t, u) : void 0, _ = d === void 0;
928
+ if (_) {
929
+ var m = ue(c), L = !m && gt(c), P = !m && !L && mt(c);
930
+ d = c, m || L || P ? ue(n) ? d = n : Sr(n) ? d = hr(n) : L ? (_ = !1, d = vr(c)) : P ? (_ = !1, d = gr(c)) : d = [] : Rr(c) || pe(c) ? (d = n, pe(n) ? d = xn(n) : (!H(n) || Ee(n)) && (d = _r(c))) : _ = !1;
929
931
  }
930
- b && (u.set(c, d), o(d, c, r, l, u), u.delete(c)), ge(e, a, d);
932
+ _ && (u.set(c, d), o(d, c, r, l, u), u.delete(c)), ve(e, a, d);
931
933
  }
932
- function _t(e, t, a, r, o) {
933
- e !== t && cr(t, function(l, u) {
934
- if (o || (o = new Y()), K(l))
935
- xn(e, t, u, a, _t, r, o);
934
+ function xt(e, t, a, r, o) {
935
+ e !== t && dr(t, function(l, u) {
936
+ if (o || (o = new Q()), H(l))
937
+ wn(e, t, u, a, xt, r, o);
936
938
  else {
937
- var n = r ? r(he(e, u), l, u + "", e, t, o) : void 0;
938
- n === void 0 && (n = l), ge(e, u, n);
939
+ var n = r ? r(ge(e, u), l, u + "", e, t, o) : void 0;
940
+ n === void 0 && (n = l), ve(e, u, n);
939
941
  }
940
- }, bt);
942
+ }, _t);
941
943
  }
942
- function xt(e) {
944
+ function wt(e) {
943
945
  return e;
944
946
  }
945
- function wn(e, t, a) {
947
+ function Mn(e, t, a) {
946
948
  switch (a.length) {
947
949
  case 0:
948
950
  return e.call(t);
@@ -955,106 +957,106 @@ function wn(e, t, a) {
955
957
  }
956
958
  return e.apply(t, a);
957
959
  }
958
- var Je = Math.max;
959
- function Mn(e, t, a) {
960
- return t = Je(t === void 0 ? e.length - 1 : t, 0), function() {
961
- for (var r = arguments, o = -1, l = Je(r.length - t, 0), u = Array(l); ++o < l; )
960
+ var Ze = Math.max;
961
+ function An(e, t, a) {
962
+ return t = Ze(t === void 0 ? e.length - 1 : t, 0), function() {
963
+ for (var r = arguments, o = -1, l = Ze(r.length - t, 0), u = Array(l); ++o < l; )
962
964
  u[o] = r[t + o];
963
965
  o = -1;
964
966
  for (var n = Array(t + 1); ++o < t; )
965
967
  n[o] = r[o];
966
- return n[t] = a(u), wn(e, this, n);
968
+ return n[t] = a(u), Mn(e, this, n);
967
969
  };
968
970
  }
969
- function An(e) {
971
+ function Sn(e) {
970
972
  return function() {
971
973
  return e;
972
974
  };
973
975
  }
974
- var Sn = ue ? function(e, t) {
975
- return ue(e, "toString", {
976
+ var Cn = oe ? function(e, t) {
977
+ return oe(e, "toString", {
976
978
  configurable: !0,
977
979
  enumerable: !1,
978
- value: An(t),
980
+ value: Sn(t),
979
981
  writable: !0
980
982
  });
981
- } : xt, Cn = 800, On = 16, Tn = Date.now;
982
- function $n(e) {
983
+ } : wt, On = 800, Tn = 16, $n = Date.now;
984
+ function jn(e) {
983
985
  var t = 0, a = 0;
984
986
  return function() {
985
- var r = Tn(), o = On - (r - a);
987
+ var r = $n(), o = Tn - (r - a);
986
988
  if (a = r, o > 0) {
987
- if (++t >= Cn)
989
+ if (++t >= On)
988
990
  return arguments[0];
989
991
  } else
990
992
  t = 0;
991
993
  return e.apply(void 0, arguments);
992
994
  };
993
995
  }
994
- var jn = $n(Sn);
995
- function Ln(e, t) {
996
- return jn(Mn(e, t, xt), e + "");
996
+ var Ln = jn(Cn);
997
+ function En(e, t) {
998
+ return Ln(An(e, t, wt), e + "");
997
999
  }
998
- function En(e, t, a) {
999
- if (!K(a))
1000
+ function Pn(e, t, a) {
1001
+ if (!H(a))
1000
1002
  return !1;
1001
1003
  var r = typeof t;
1002
- return (r == "number" ? Pe(a) && mt(t, a.length) : r == "string" && t in a) ? ie(a[t], e) : !1;
1004
+ return (r == "number" ? Ie(a) && bt(t, a.length) : r == "string" && t in a) ? le(a[t], e) : !1;
1003
1005
  }
1004
1006
  function Rn(e) {
1005
- return Ln(function(t, a) {
1007
+ return En(function(t, a) {
1006
1008
  var r = -1, o = a.length, l = o > 1 ? a[o - 1] : void 0, u = o > 2 ? a[2] : void 0;
1007
- for (l = e.length > 3 && typeof l == "function" ? (o--, l) : void 0, u && En(a[0], a[1], u) && (l = o < 3 ? void 0 : l, o = 1), t = Object(t); ++r < o; ) {
1009
+ for (l = e.length > 3 && typeof l == "function" ? (o--, l) : void 0, u && Pn(a[0], a[1], u) && (l = o < 3 ? void 0 : l, o = 1), t = Object(t); ++r < o; ) {
1008
1010
  var n = a[r];
1009
1011
  n && e(t, n, r, l);
1010
1012
  }
1011
1013
  return t;
1012
1014
  });
1013
1015
  }
1014
- var Pn = Rn(function(e, t, a, r) {
1015
- _t(e, t, a, r);
1016
- }), In = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1017
- function Dn(e) {
1016
+ var In = Rn(function(e, t, a, r) {
1017
+ xt(e, t, a, r);
1018
+ }), Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1019
+ function Un(e) {
1018
1020
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1019
1021
  }
1020
- var wt = { exports: {} };
1022
+ var Mt = { exports: {} };
1021
1023
  (function(e) {
1022
1024
  (function(t, a) {
1023
1025
  e.exports ? e.exports = a() : t.coordtransform = a();
1024
- })(In, function() {
1026
+ })(Dn, function() {
1025
1027
  var t = 52.35987755982988, a = 3.141592653589793, r = 6378245, o = 0.006693421622965943, l = function(s, i) {
1026
- var s = +s, i = +i, g = s - 65e-4, m = i - 6e-3, w = Math.sqrt(g * g + m * m) - 2e-5 * Math.sin(m * t), h = Math.atan2(m, g) - 3e-6 * Math.cos(g * t), E = w * Math.cos(h), V = w * Math.sin(h);
1027
- return [E, V];
1028
+ var s = +s, i = +i, p = s - 65e-4, b = i - 6e-3, x = Math.sqrt(p * p + b * b) - 2e-5 * Math.sin(b * t), h = Math.atan2(b, p) - 3e-6 * Math.cos(p * t), E = x * Math.cos(h), U = x * Math.sin(h);
1029
+ return [E, U];
1028
1030
  }, u = function(i, s) {
1029
- var s = +s, i = +i, g = Math.sqrt(i * i + s * s) + 2e-5 * Math.sin(s * t), m = Math.atan2(s, i) + 3e-6 * Math.cos(i * t), w = g * Math.cos(m) + 65e-4, h = g * Math.sin(m) + 6e-3;
1030
- return [w, h];
1031
+ var s = +s, i = +i, p = Math.sqrt(i * i + s * s) + 2e-5 * Math.sin(s * t), b = Math.atan2(s, i) + 3e-6 * Math.cos(i * t), x = p * Math.cos(b) + 65e-4, h = p * Math.sin(b) + 6e-3;
1032
+ return [x, h];
1031
1033
  }, n = function(i, s) {
1032
1034
  var s = +s, i = +i;
1033
- if (b(i, s))
1035
+ if (_(i, s))
1034
1036
  return [i, s];
1035
- var g = y(i - 105, s - 35), m = d(i - 105, s - 35), w = s / 180 * a, h = Math.sin(w);
1037
+ var p = y(i - 105, s - 35), b = d(i - 105, s - 35), x = s / 180 * a, h = Math.sin(x);
1036
1038
  h = 1 - o * h * h;
1037
1039
  var E = Math.sqrt(h);
1038
- g = g * 180 / (r * (1 - o) / (h * E) * a), m = m * 180 / (r / E * Math.cos(w) * a);
1039
- var V = s + g, k = i + m;
1040
- return [k, V];
1040
+ p = p * 180 / (r * (1 - o) / (h * E) * a), b = b * 180 / (r / E * Math.cos(x) * a);
1041
+ var U = s + p, V = i + b;
1042
+ return [V, U];
1041
1043
  }, c = function(i, s) {
1042
1044
  var s = +s, i = +i;
1043
- if (b(i, s))
1045
+ if (_(i, s))
1044
1046
  return [i, s];
1045
- var g = y(i - 105, s - 35), m = d(i - 105, s - 35), w = s / 180 * a, h = Math.sin(w);
1047
+ var p = y(i - 105, s - 35), b = d(i - 105, s - 35), x = s / 180 * a, h = Math.sin(x);
1046
1048
  h = 1 - o * h * h;
1047
1049
  var E = Math.sqrt(h);
1048
- g = g * 180 / (r * (1 - o) / (h * E) * a), m = m * 180 / (r / E * Math.cos(w) * a);
1049
- var V = s + g, k = i + m;
1050
- return [i * 2 - k, s * 2 - V];
1050
+ p = p * 180 / (r * (1 - o) / (h * E) * a), b = b * 180 / (r / E * Math.cos(x) * a);
1051
+ var U = s + p, V = i + b;
1052
+ return [i * 2 - V, s * 2 - U];
1051
1053
  }, y = function(i, s) {
1052
- var s = +s, i = +i, g = -100 + 2 * i + 3 * s + 0.2 * s * s + 0.1 * i * s + 0.2 * Math.sqrt(Math.abs(i));
1053
- return g += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, g += (20 * Math.sin(s * a) + 40 * Math.sin(s / 3 * a)) * 2 / 3, g += (160 * Math.sin(s / 12 * a) + 320 * Math.sin(s * a / 30)) * 2 / 3, g;
1054
+ var s = +s, i = +i, p = -100 + 2 * i + 3 * s + 0.2 * s * s + 0.1 * i * s + 0.2 * Math.sqrt(Math.abs(i));
1055
+ return p += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, p += (20 * Math.sin(s * a) + 40 * Math.sin(s / 3 * a)) * 2 / 3, p += (160 * Math.sin(s / 12 * a) + 320 * Math.sin(s * a / 30)) * 2 / 3, p;
1054
1056
  }, d = function(i, s) {
1055
- var s = +s, i = +i, g = 300 + i + 2 * s + 0.1 * i * i + 0.1 * i * s + 0.1 * Math.sqrt(Math.abs(i));
1056
- return g += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, g += (20 * Math.sin(i * a) + 40 * Math.sin(i / 3 * a)) * 2 / 3, g += (150 * Math.sin(i / 12 * a) + 300 * Math.sin(i / 30 * a)) * 2 / 3, g;
1057
- }, b = function(i, s) {
1057
+ var s = +s, i = +i, p = 300 + i + 2 * s + 0.1 * i * i + 0.1 * i * s + 0.1 * Math.sqrt(Math.abs(i));
1058
+ return p += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, p += (20 * Math.sin(i * a) + 40 * Math.sin(i / 3 * a)) * 2 / 3, p += (150 * Math.sin(i / 12 * a) + 300 * Math.sin(i / 30 * a)) * 2 / 3, p;
1059
+ }, _ = function(i, s) {
1058
1060
  var s = +s, i = +i;
1059
1061
  return !(i > 73.66 && i < 135.05 && s > 3.86 && s < 53.55);
1060
1062
  };
@@ -1065,42 +1067,42 @@ var wt = { exports: {} };
1065
1067
  gcj02towgs84: c
1066
1068
  };
1067
1069
  });
1068
- })(wt);
1069
- var Vn = wt.exports;
1070
- const Mt = /* @__PURE__ */ Dn(Vn), kn = (e, t, { type: a, MapGL: r, map: o }) => {
1070
+ })(Mt);
1071
+ var Vn = Mt.exports;
1072
+ const At = /* @__PURE__ */ Un(Vn), kn = (e, t, { type: a, MapGL: r, map: o }) => {
1071
1073
  const l = (u, n) => {
1072
1074
  const c = document.createElement("div");
1073
1075
  c.style.cursor = "pointer";
1074
- const y = Ft(u, n);
1075
- return Ht(y, c), c;
1076
+ const y = Ht(u, n);
1077
+ return Jt(y, c), c;
1076
1078
  };
1077
1079
  e.addCustomComponent = (u) => {
1078
1080
  !Array.isArray(u) || (u == null ? void 0 : u.length) === 0 || u.forEach((n) => {
1079
- const { component: c, componentProps: y, lng: d, lat: b, markerOptions: _ = {} } = n, $ = typeof y == "function" ? y() : y, R = typeof c == "function" ? c() : c, s = () => l(R, $);
1081
+ const { component: c, componentProps: y, lng: d, lat: _, markerOptions: m = {} } = n, L = typeof y == "function" ? y() : y, P = typeof c == "function" ? c() : c, s = () => l(P, L);
1080
1082
  if (a.value === "baidu") {
1081
- const i = Mt.gcj02tobd09(d, b), g = new r.value.CustomOverlay(s, {
1083
+ const i = At.gcj02tobd09(d, _), p = new r.value.CustomOverlay(s, {
1082
1084
  point: { lng: i[0], lat: i[1] },
1083
- ..._
1085
+ ...m
1084
1086
  });
1085
- o.value.addOverlay(g), g.addEventListener("click", function(m) {
1086
- t("click-custom-component", n, m);
1087
+ o.value.addOverlay(p), p.addEventListener("click", function(b) {
1088
+ t("click-custom-component", n, b);
1087
1089
  });
1088
1090
  }
1089
1091
  if (a.value === "gaode") {
1090
- const i = l(R, $), g = new r.value.Marker({ content: i, position: [d, b], ..._ });
1091
- o.value.add(g), r.value.event.addListener(g, "click", function(m) {
1092
- t("click-custom-component", n, m);
1092
+ const i = l(P, L), p = new r.value.Marker({ content: i, position: [d, _], ...m });
1093
+ o.value.add(p), r.value.event.addListener(p, "click", function(b) {
1094
+ t("click-custom-component", n, b);
1093
1095
  });
1094
1096
  }
1095
1097
  });
1096
1098
  };
1097
- }, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1099
+ }, Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1098
1100
  __proto__: null,
1099
1101
  default: kn
1100
- }, Symbol.toStringTag, { value: "Module" })), Bn = (e, t, { type: a, MapGL: r, map: o, innerPoint: l, innerInput: u, adCode: n }) => {
1102
+ }, Symbol.toStringTag, { value: "Module" })), zn = (e, t, { type: a, MapGL: r, map: o, innerPoint: l, innerInput: u, adCode: n }) => {
1101
1103
  e.getMapInfo = () => {
1102
1104
  if (a.value === "baidu") {
1103
- const c = Mt.bd09togcj02(l.value[0], l.value[1]);
1105
+ const c = At.bd09togcj02(l.value[0], l.value[1]);
1104
1106
  return {
1105
1107
  longitude: c[0],
1106
1108
  latitude: c[1],
@@ -1116,80 +1118,80 @@ const Mt = /* @__PURE__ */ Dn(Vn), kn = (e, t, { type: a, MapGL: r, map: o }) =>
1116
1118
  adCode: n.value
1117
1119
  };
1118
1120
  };
1119
- }, zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1121
+ }, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1120
1122
  __proto__: null,
1121
- default: Bn
1123
+ default: zn
1122
1124
  }, Symbol.toStringTag, { value: "Module" }));
1123
- function Gn(e, t) {
1125
+ function Nn(e, t) {
1124
1126
  for (var a = -1, r = e == null ? 0 : e.length, o = Array(r); ++a < r; )
1125
1127
  o[a] = t(e[a], a, e);
1126
1128
  return o;
1127
1129
  }
1128
- var Nn = "[object Symbol]";
1129
- function Kn(e) {
1130
- return typeof e == "symbol" || X(e) && re(e) == Nn;
1130
+ var Kn = "[object Symbol]";
1131
+ function Fn(e) {
1132
+ return typeof e == "symbol" || ee(e) && ne(e) == Kn;
1131
1133
  }
1132
- var Fn = 1 / 0, Ze = Z ? Z.prototype : void 0, We = Ze ? Ze.toString : void 0;
1133
- function At(e) {
1134
+ var Hn = 1 / 0, We = q ? q.prototype : void 0, qe = We ? We.toString : void 0;
1135
+ function St(e) {
1134
1136
  if (typeof e == "string")
1135
1137
  return e;
1136
- if (le(e))
1137
- return Gn(e, At) + "";
1138
- if (Kn(e))
1139
- return We ? We.call(e) : "";
1138
+ if (ue(e))
1139
+ return Nn(e, St) + "";
1140
+ if (Fn(e))
1141
+ return qe ? qe.call(e) : "";
1140
1142
  var t = e + "";
1141
- return t == "0" && 1 / e == -Fn ? "-0" : t;
1143
+ return t == "0" && 1 / e == -Hn ? "-0" : t;
1142
1144
  }
1143
- function de(e) {
1144
- return e == null ? "" : At(e);
1145
+ function ce(e) {
1146
+ return e == null ? "" : St(e);
1145
1147
  }
1146
- function Hn(e, t, a) {
1148
+ function Jn(e, t, a) {
1147
1149
  var r = -1, o = e.length;
1148
1150
  t < 0 && (t = -t > o ? 0 : o + t), a = a > o ? o : a, a < 0 && (a += o), o = t > a ? 0 : a - t >>> 0, t >>>= 0;
1149
1151
  for (var l = Array(o); ++r < o; )
1150
1152
  l[r] = e[r + t];
1151
1153
  return l;
1152
1154
  }
1153
- function Jn(e, t, a) {
1155
+ function Zn(e, t, a) {
1154
1156
  var r = e.length;
1155
- return a = a === void 0 ? r : a, !t && a >= r ? e : Hn(e, t, a);
1157
+ return a = a === void 0 ? r : a, !t && a >= r ? e : Jn(e, t, a);
1156
1158
  }
1157
- var Zn = "\\ud800-\\udfff", Wn = "\\u0300-\\u036f", qn = "\\ufe20-\\ufe2f", Yn = "\\u20d0-\\u20ff", Xn = Wn + qn + Yn, Qn = "\\ufe0e\\ufe0f", eo = "\\u200d", to = RegExp("[" + eo + Zn + Xn + Qn + "]");
1158
- function St(e) {
1159
- return to.test(e);
1159
+ var Wn = "\\ud800-\\udfff", qn = "\\u0300-\\u036f", Yn = "\\ufe20-\\ufe2f", Xn = "\\u20d0-\\u20ff", Qn = qn + Yn + Xn, eo = "\\ufe0e\\ufe0f", to = "\\u200d", ao = RegExp("[" + to + Wn + Qn + eo + "]");
1160
+ function Ct(e) {
1161
+ return ao.test(e);
1160
1162
  }
1161
- function ao(e) {
1163
+ function ro(e) {
1162
1164
  return e.split("");
1163
1165
  }
1164
- var Ct = "\\ud800-\\udfff", ro = "\\u0300-\\u036f", no = "\\ufe20-\\ufe2f", oo = "\\u20d0-\\u20ff", uo = ro + no + oo, lo = "\\ufe0e\\ufe0f", io = "[" + Ct + "]", ye = "[" + uo + "]", me = "\\ud83c[\\udffb-\\udfff]", so = "(?:" + ye + "|" + me + ")", Ot = "[^" + Ct + "]", Tt = "(?:\\ud83c[\\udde6-\\uddff]){2}", $t = "[\\ud800-\\udbff][\\udc00-\\udfff]", co = "\\u200d", jt = so + "?", Lt = "[" + lo + "]?", fo = "(?:" + co + "(?:" + [Ot, Tt, $t].join("|") + ")" + Lt + jt + ")*", vo = Lt + jt + fo, go = "(?:" + [Ot + ye + "?", ye, Tt, $t, io].join("|") + ")", po = RegExp(me + "(?=" + me + ")|" + go + vo, "g");
1165
- function ho(e) {
1166
- return e.match(po) || [];
1167
- }
1166
+ var Ot = "\\ud800-\\udfff", no = "\\u0300-\\u036f", oo = "\\ufe20-\\ufe2f", uo = "\\u20d0-\\u20ff", lo = no + oo + uo, io = "\\ufe0e\\ufe0f", so = "[" + Ot + "]", he = "[" + lo + "]", ye = "\\ud83c[\\udffb-\\udfff]", co = "(?:" + he + "|" + ye + ")", Tt = "[^" + Ot + "]", $t = "(?:\\ud83c[\\udde6-\\uddff]){2}", jt = "[\\ud800-\\udbff][\\udc00-\\udfff]", fo = "\\u200d", Lt = co + "?", Et = "[" + io + "]?", vo = "(?:" + fo + "(?:" + [Tt, $t, jt].join("|") + ")" + Et + Lt + ")*", po = Et + Lt + vo, go = "(?:" + [Tt + he + "?", he, $t, jt, so].join("|") + ")", ho = RegExp(ye + "(?=" + ye + ")|" + go + po, "g");
1168
1167
  function yo(e) {
1169
- return St(e) ? ho(e) : ao(e);
1168
+ return e.match(ho) || [];
1170
1169
  }
1171
1170
  function mo(e) {
1171
+ return Ct(e) ? yo(e) : ro(e);
1172
+ }
1173
+ function bo(e) {
1172
1174
  return function(t) {
1173
- t = de(t);
1174
- var a = St(t) ? yo(t) : void 0, r = a ? a[0] : t.charAt(0), o = a ? Jn(a, 1).join("") : t.slice(1);
1175
+ t = ce(t);
1176
+ var a = Ct(t) ? mo(t) : void 0, r = a ? a[0] : t.charAt(0), o = a ? Zn(a, 1).join("") : t.slice(1);
1175
1177
  return r[e]() + o;
1176
1178
  };
1177
1179
  }
1178
- var bo = mo("toUpperCase");
1179
- function _o(e) {
1180
- return bo(de(e).toLowerCase());
1180
+ var _o = bo("toUpperCase");
1181
+ function xo(e) {
1182
+ return _o(ce(e).toLowerCase());
1181
1183
  }
1182
- function xo(e, t, a, r) {
1184
+ function wo(e, t, a, r) {
1183
1185
  for (var o = -1, l = e == null ? 0 : e.length; ++o < l; )
1184
1186
  a = t(a, e[o], o, e);
1185
1187
  return a;
1186
1188
  }
1187
- function wo(e) {
1189
+ function Mo(e) {
1188
1190
  return function(t) {
1189
1191
  return e == null ? void 0 : e[t];
1190
1192
  };
1191
1193
  }
1192
- var Mo = {
1194
+ var Ao = {
1193
1195
  // Latin-1 Supplement block.
1194
1196
  À: "A",
1195
1197
  Á: "A",
@@ -1382,151 +1384,147 @@ var Mo = {
1382
1384
  œ: "oe",
1383
1385
  ʼn: "'n",
1384
1386
  ſ: "s"
1385
- }, Ao = wo(Mo), So = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Co = "\\u0300-\\u036f", Oo = "\\ufe20-\\ufe2f", To = "\\u20d0-\\u20ff", $o = Co + Oo + To, jo = "[" + $o + "]", Lo = RegExp(jo, "g");
1386
- function Eo(e) {
1387
- return e = de(e), e && e.replace(So, Ao).replace(Lo, "");
1387
+ }, So = Mo(Ao), Co = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Oo = "\\u0300-\\u036f", To = "\\ufe20-\\ufe2f", $o = "\\u20d0-\\u20ff", jo = Oo + To + $o, Lo = "[" + jo + "]", Eo = RegExp(Lo, "g");
1388
+ function Po(e) {
1389
+ return e = ce(e), e && e.replace(Co, So).replace(Eo, "");
1388
1390
  }
1389
1391
  var Ro = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
1390
- function Po(e) {
1392
+ function Io(e) {
1391
1393
  return e.match(Ro) || [];
1392
1394
  }
1393
- var Io = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1394
- function Do(e) {
1395
- return Io.test(e);
1395
+ var Do = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1396
+ function Uo(e) {
1397
+ return Do.test(e);
1396
1398
  }
1397
- var Et = "\\ud800-\\udfff", Vo = "\\u0300-\\u036f", ko = "\\ufe20-\\ufe2f", Uo = "\\u20d0-\\u20ff", Bo = Vo + ko + Uo, Rt = "\\u2700-\\u27bf", Pt = "a-z\\xdf-\\xf6\\xf8-\\xff", zo = "\\xac\\xb1\\xd7\\xf7", Go = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", No = "\\u2000-\\u206f", Ko = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", It = "A-Z\\xc0-\\xd6\\xd8-\\xde", Fo = "\\ufe0e\\ufe0f", Dt = zo + Go + No + Ko, Vt = "['’]", qe = "[" + Dt + "]", Ho = "[" + Bo + "]", kt = "\\d+", Jo = "[" + Rt + "]", Ut = "[" + Pt + "]", Bt = "[^" + Et + Dt + kt + Rt + Pt + It + "]", Zo = "\\ud83c[\\udffb-\\udfff]", Wo = "(?:" + Ho + "|" + Zo + ")", qo = "[^" + Et + "]", zt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Gt = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + It + "]", Yo = "\\u200d", Ye = "(?:" + Ut + "|" + Bt + ")", Xo = "(?:" + F + "|" + Bt + ")", Xe = "(?:" + Vt + "(?:d|ll|m|re|s|t|ve))?", Qe = "(?:" + Vt + "(?:D|LL|M|RE|S|T|VE))?", Nt = Wo + "?", Kt = "[" + Fo + "]?", Qo = "(?:" + Yo + "(?:" + [qo, zt, Gt].join("|") + ")" + Kt + Nt + ")*", eu = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", tu = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", au = Kt + Nt + Qo, ru = "(?:" + [Jo, zt, Gt].join("|") + ")" + au, nu = RegExp([
1398
- F + "?" + Ut + "+" + Xe + "(?=" + [qe, F, "$"].join("|") + ")",
1399
- Xo + "+" + Qe + "(?=" + [qe, F + Ye, "$"].join("|") + ")",
1400
- F + "?" + Ye + "+" + Xe,
1401
- F + "+" + Qe,
1399
+ var Pt = "\\ud800-\\udfff", Vo = "\\u0300-\\u036f", ko = "\\ufe20-\\ufe2f", Bo = "\\u20d0-\\u20ff", zo = Vo + ko + Bo, Rt = "\\u2700-\\u27bf", It = "a-z\\xdf-\\xf6\\xf8-\\xff", Go = "\\xac\\xb1\\xd7\\xf7", No = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ko = "\\u2000-\\u206f", Fo = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Dt = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ho = "\\ufe0e\\ufe0f", Ut = Go + No + Ko + Fo, Vt = "['’]", Ye = "[" + Ut + "]", Jo = "[" + zo + "]", kt = "\\d+", Zo = "[" + Rt + "]", Bt = "[" + It + "]", zt = "[^" + Pt + Ut + kt + Rt + It + Dt + "]", Wo = "\\ud83c[\\udffb-\\udfff]", qo = "(?:" + Jo + "|" + Wo + ")", Yo = "[^" + Pt + "]", Gt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Nt = "[\\ud800-\\udbff][\\udc00-\\udfff]", J = "[" + Dt + "]", Xo = "\\u200d", Xe = "(?:" + Bt + "|" + zt + ")", Qo = "(?:" + J + "|" + zt + ")", Qe = "(?:" + Vt + "(?:d|ll|m|re|s|t|ve))?", et = "(?:" + Vt + "(?:D|LL|M|RE|S|T|VE))?", Kt = qo + "?", Ft = "[" + Ho + "]?", eu = "(?:" + Xo + "(?:" + [Yo, Gt, Nt].join("|") + ")" + Ft + Kt + ")*", tu = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", au = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ru = Ft + Kt + eu, nu = "(?:" + [Zo, Gt, Nt].join("|") + ")" + ru, ou = RegExp([
1400
+ J + "?" + Bt + "+" + Qe + "(?=" + [Ye, J, "$"].join("|") + ")",
1401
+ Qo + "+" + et + "(?=" + [Ye, J + Xe, "$"].join("|") + ")",
1402
+ J + "?" + Xe + "+" + Qe,
1403
+ J + "+" + et,
1404
+ au,
1402
1405
  tu,
1403
- eu,
1404
1406
  kt,
1405
- ru
1407
+ nu
1406
1408
  ].join("|"), "g");
1407
- function ou(e) {
1408
- return e.match(nu) || [];
1409
+ function uu(e) {
1410
+ return e.match(ou) || [];
1409
1411
  }
1410
- function uu(e, t, a) {
1411
- return e = de(e), t = t, t === void 0 ? Do(e) ? ou(e) : Po(e) : e.match(t) || [];
1412
+ function lu(e, t, a) {
1413
+ return e = ce(e), t = t, t === void 0 ? Uo(e) ? uu(e) : Io(e) : e.match(t) || [];
1412
1414
  }
1413
- var lu = "['’]", iu = RegExp(lu, "g");
1414
- function su(e) {
1415
+ var iu = "['’]", su = RegExp(iu, "g");
1416
+ function cu(e) {
1415
1417
  return function(t) {
1416
- return xo(uu(Eo(t).replace(iu, "")), e, "");
1418
+ return wo(lu(Po(t).replace(su, "")), e, "");
1417
1419
  };
1418
1420
  }
1419
- var cu = su(function(e, t, a) {
1420
- return t = t.toLowerCase(), e + (a ? _o(t) : t);
1421
+ var du = cu(function(e, t, a) {
1422
+ return t = t.toLowerCase(), e + (a ? xo(t) : t);
1421
1423
  });
1422
- const et = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Un, "./get-map-info/index.ts": zn }), du = Object.keys(et).reduce((e, t) => {
1423
- const a = cu(t.replace("./", "").split("/")[0]);
1424
- return e[a] = et[t].default, e;
1425
- }, {}), fu = (e, t, a) => {
1424
+ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./get-map-info/index.ts": Gn }), fu = Object.keys(tt).reduce((e, t) => {
1425
+ const a = du(t.replace("./", "").split("/")[0]);
1426
+ return e[a] = tt[t].default, e;
1427
+ }, {}), vu = (e, t, a) => {
1426
1428
  const r = A({});
1427
1429
  return { mapElement: r, addPlugins: () => {
1428
- const u = Pn({}, (e == null ? void 0 : e.options) || {}, (n, c) => {
1430
+ const u = In({}, (e == null ? void 0 : e.options) || {}, (n, c) => {
1429
1431
  if (Array.isArray(n)) return n.concat(c);
1430
1432
  });
1431
- Object.values(du).forEach((n) => n(r.value, t, a, u.plugins || {}));
1433
+ Object.values(fu).forEach((n) => n(r.value, t, a, u.plugins || {}));
1432
1434
  } };
1433
- }, vu = (e, t) => {
1434
- const a = A("gaode"), r = A(), o = A(), l = z(null), u = z(null), n = z(null), c = A(!0), y = A(null), d = A([]), b = _e(() => ({
1435
- width: e.width ? J(e.width) : "100%",
1436
- height: e.height ? J(e.height) : "100%"
1437
- })), _ = A(""), $ = A([]), R = A(""), {
1435
+ }, pu = (e, t) => {
1436
+ const a = A("gaode"), r = A(), o = A(), l = G(null), u = G(null), n = G(null), c = A(!0), y = A(null), d = A([]), _ = be(() => ({
1437
+ width: e.width ? W(e.width) : "100%",
1438
+ height: e.height ? W(e.height) : "100%"
1439
+ })), m = A(""), L = A([]), P = A(""), {
1438
1440
  loadJavascript: s,
1439
1441
  getLocationByInputSearch: i,
1440
- handleSelectAddress: g,
1441
- getLocationParse: m
1442
- } = nt({
1442
+ handleSelectAddress: p,
1443
+ getLocationParse: b
1444
+ } = ot({
1443
1445
  BMap: l,
1444
1446
  map: u,
1445
1447
  marker: n,
1446
1448
  mapLoading: c,
1447
1449
  $autocomplete: y,
1448
1450
  searchResultList: d,
1449
- innerInput: _,
1450
- innerPoint: $,
1451
- adCode: R
1451
+ innerInput: m,
1452
+ innerPoint: L,
1453
+ adCode: P
1452
1454
  }), {
1453
- loadJavascript: w,
1455
+ loadJavascript: x,
1454
1456
  getLocationByInputSearch: h,
1455
1457
  handleSelectAddress: E,
1456
- getLocationParse: V
1457
- } = at({
1458
+ getLocationParse: U
1459
+ } = rt({
1458
1460
  MapGL: l,
1459
1461
  map: u,
1460
1462
  marker: n,
1461
1463
  mapLoading: c,
1462
1464
  $autocomplete: y,
1463
1465
  searchResultList: d,
1464
- innerInput: _,
1465
- innerPoint: $,
1466
- adCode: R
1467
- }), { mapElement: k, addPlugins: S } = fu(e, t, {
1466
+ innerInput: m,
1467
+ innerPoint: L,
1468
+ adCode: P
1469
+ }), { mapElement: V, addPlugins: S } = vu(e, t, {
1468
1470
  type: a,
1469
1471
  MapGL: l,
1470
1472
  map: u,
1471
- innerPoint: $,
1472
- innerInput: _,
1473
- adCode: R
1473
+ innerPoint: L,
1474
+ innerInput: m,
1475
+ adCode: P
1474
1476
  }), f = () => {
1475
- a.value === "baidu" && s(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, p), a.value === "gaode" && w(
1477
+ a.value === "baidu" && s(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, g), a.value === "gaode" && x(
1476
1478
  r.value,
1477
1479
  o.value,
1478
1480
  { clickStream: !e.clickStream, mapOpt: e.mapOpt },
1479
- p
1481
+ g
1480
1482
  );
1481
- }, v = async (x) => {
1482
- const [O, L] = await $e(x);
1483
+ }, v = async (M) => {
1484
+ const [O, j] = await je(M);
1483
1485
  if (O) {
1484
1486
  c.value = !1;
1485
1487
  return;
1486
1488
  }
1487
- if (!O && !L) {
1488
- t("no-config-map", "暂未配置地图"), c.value = !1;
1489
+ if (!O && !j) {
1490
+ t("no-config-map", k("暂未配置地图")), c.value = !1;
1489
1491
  return;
1490
1492
  }
1491
- return L;
1493
+ return j;
1492
1494
  };
1493
- xe(async () => {
1494
- var x, O, L, U, B;
1495
- if (e.defaultLongitude && e.defaultLatitude && ($.value = [e.defaultLongitude, e.defaultLatitude]), _.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((x = e == null ? void 0 : e.sdkConfig) != null && x.akValue))
1496
- a.value = ((O = e.sdkConfig) == null ? void 0 : O.mapType) ?? "gaode", r.value = (L = e.sdkConfig) == null ? void 0 : L.akValue, o.value = (U = e.sdkConfig) == null ? void 0 : U.secretKey;
1495
+ _e(async () => {
1496
+ var M, O, j, B, z;
1497
+ if (e.defaultLongitude && e.defaultLatitude && (L.value = [e.defaultLongitude, e.defaultLatitude]), m.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((M = e == null ? void 0 : e.sdkConfig) != null && M.akValue))
1498
+ a.value = ((O = e.sdkConfig) == null ? void 0 : O.mapType) ?? "gaode", r.value = (j = e.sdkConfig) == null ? void 0 : j.akValue, o.value = (B = e.sdkConfig) == null ? void 0 : B.secretKey;
1497
1499
  else {
1498
- const P = await v((B = e == null ? void 0 : e.sdkConfig) == null ? void 0 : B.mapType);
1499
- P && (a.value = (P == null ? void 0 : P.mapType) ?? "gaode", r.value = P == null ? void 0 : P.akVal, o.value = P == null ? void 0 : P.secretK);
1500
+ const I = await v((z = e == null ? void 0 : e.sdkConfig) == null ? void 0 : z.mapType);
1501
+ I && (a.value = (I == null ? void 0 : I.mapType) ?? "gaode", r.value = I == null ? void 0 : I.akVal, o.value = I == null ? void 0 : I.secretK);
1500
1502
  }
1501
1503
  f();
1502
1504
  });
1503
- const p = () => {
1504
- k.value = u.value, S(), a.value === "baidu" && u.value.addEventListener("tilesloaded", () => {
1505
- t("update:mapElement", k.value);
1505
+ const g = () => {
1506
+ V.value = u.value, S(), a.value === "baidu" && u.value.addEventListener("tilesloaded", () => {
1507
+ t("update:mapElement", V.value);
1506
1508
  }), a.value === "gaode" && u.value.on("complete", () => {
1507
- t("update:mapElement", k.value);
1509
+ t("update:mapElement", V.value);
1508
1510
  });
1509
1511
  };
1510
1512
  return {
1511
- mapStyle: b,
1512
- innerInput: _,
1513
- getLocationByInputSearch: (x, O) => {
1514
- a.value === "baidu" && i(x, O), a.value === "gaode" && h(x, O);
1513
+ mapStyle: _,
1514
+ innerInput: m,
1515
+ getLocationByInputSearch: (M, O) => {
1516
+ a.value === "baidu" && i(M, O), a.value === "gaode" && h(M, O);
1515
1517
  },
1516
- handleSelectAddress: (x) => {
1517
- a.value === "baidu" && g(x), a.value === "gaode" && E(x);
1518
+ handleSelectAddress: (M) => {
1519
+ a.value === "baidu" && p(M), a.value === "gaode" && E(M);
1518
1520
  },
1519
- getLocationParse: (x) => {
1520
- a.value === "baidu" && m(x), a.value === "gaode" && V();
1521
+ getLocationParse: () => {
1522
+ a.value === "baidu" && b(), a.value === "gaode" && U();
1521
1523
  },
1522
- searchResultList: d,
1523
1524
  mapLoading: c,
1524
1525
  $autocomplete: y
1525
1526
  };
1526
- }, gu = {
1527
- key: 0,
1528
- class: "search-input"
1529
- }, pu = { id: "map" }, hu = /* @__PURE__ */ be({
1527
+ }, gu = { class: "search-input" }, hu = { id: "map" }, yu = /* @__PURE__ */ me({
1530
1528
  __name: "mixMap",
1531
1529
  props: {
1532
1530
  defaultAddress: {},
@@ -1543,44 +1541,60 @@ const et = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Un, "./g
1543
1541
  },
1544
1542
  emits: ["update:mapElement", "no-config-map", "click-custom-component"],
1545
1543
  setup(e, { emit: t }) {
1546
- const a = e, r = t, { mapStyle: o, innerInput: l, getLocationByInputSearch: u, handleSelectAddress: n, getLocationParse: c, searchResultList: y, mapLoading: d, $autocomplete: b } = vu(a, r);
1547
- return (_, $) => {
1548
- const R = Ce, s = Oe;
1549
- return ne(), oe(
1544
+ const a = e, r = t, {
1545
+ mapStyle: o,
1546
+ innerInput: l,
1547
+ getLocationByInputSearch: u,
1548
+ handleSelectAddress: n,
1549
+ getLocationParse: c,
1550
+ mapLoading: y,
1551
+ $autocomplete: d
1552
+ } = pu(a, r);
1553
+ return (_, m) => {
1554
+ const L = Oe, P = Te;
1555
+ return xe(), we(
1550
1556
  "div",
1551
1557
  {
1552
1558
  class: "das-map",
1553
- style: we(I(o))
1559
+ style: Me(R(o))
1554
1560
  },
1555
1561
  [
1556
- a.showSearch ? (ne(), oe("div", gu, [
1557
- H(Me(R, {
1558
- ref_key: "$autocomplete",
1559
- ref: b,
1560
- modelValue: I(l),
1561
- "onUpdate:modelValue": $[0] || ($[0] = (i) => Jt(l) ? l.value = i : null),
1562
- modelModifiers: { trim: !0 },
1563
- "fetch-suggestions": I(u),
1564
- placeholder: "请输入位置",
1565
- style: { width: "100%" },
1566
- "trigger-on-focus": !1,
1567
- onSelect: I(n),
1568
- onKeyup: $[1] || ($[1] = Ae((i) => I(c)(I(y)), ["enter", "native"])),
1569
- clearable: ""
1570
- }, null, 8, ["modelValue", "fetch-suggestions", "onSelect"]), [
1571
- [I(Te)]
1572
- ])
1573
- ])) : Zt("v-if", !0),
1574
- H(te(
1562
+ K(Z(
1563
+ "div",
1564
+ gu,
1565
+ [
1566
+ K(Ae(L, {
1567
+ ref_key: "$autocomplete",
1568
+ ref: d,
1569
+ modelValue: R(l),
1570
+ "onUpdate:modelValue": m[0] || (m[0] = (s) => Zt(l) ? l.value = s : null),
1571
+ modelModifiers: { trim: !0 },
1572
+ "fetch-suggestions": R(u),
1573
+ placeholder: R(k)("请输入位置"),
1574
+ style: { width: "100%" },
1575
+ "trigger-on-focus": !1,
1576
+ onSelect: R(n),
1577
+ onKeyup: Se(R(c), ["enter", "native"]),
1578
+ clearable: ""
1579
+ }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
1580
+ [R($e)]
1581
+ ])
1582
+ ],
1583
+ 512
1584
+ /* NEED_PATCH */
1585
+ ), [
1586
+ [Wt, a.showSearch]
1587
+ ]),
1588
+ K(Z(
1575
1589
  "div",
1576
- pu,
1590
+ hu,
1577
1591
  null,
1578
1592
  512
1579
1593
  /* NEED_PATCH */
1580
1594
  ), [
1581
1595
  [
1582
- s,
1583
- I(d),
1596
+ P,
1597
+ R(y),
1584
1598
  void 0,
1585
1599
  { lock: !0 }
1586
1600
  ]
@@ -1591,13 +1605,13 @@ const et = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Un, "./g
1591
1605
  );
1592
1606
  };
1593
1607
  }
1594
- }), yu = /* @__PURE__ */ je(hu, [["__scopeId", "data-v-f596479b"]]), Ou = Se(aa), Tu = () => A(null), $u = Se(ua), ju = () => A(null), Lu = Se(yu), Eu = () => A(null), Ru = { title: "Map 地图" };
1608
+ }), mu = /* @__PURE__ */ Le(yu, [["__scopeId", "data-v-ecb395cb"]]), $u = Ce(ra), ju = () => A(null), Lu = Ce(la), Eu = () => A(null), Pu = Ce(mu), Ru = () => A(null), Iu = { title: "Map 地图" };
1595
1609
  export {
1596
- $u as DasBaiduMap,
1597
- ju as DasBaiduMapRef,
1598
- Ou as DasGaodeMap,
1599
- Tu as DasGaodeMapRef,
1600
- Lu as DasMap,
1601
- Eu as DasMapRef,
1602
- Ru as default
1610
+ Lu as DasBaiduMap,
1611
+ Eu as DasBaiduMapRef,
1612
+ $u as DasGaodeMap,
1613
+ ju as DasGaodeMapRef,
1614
+ Pu as DasMap,
1615
+ Ru as DasMapRef,
1616
+ Iu as default
1603
1617
  };