@webquark/browser 1.1.0-dev.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{action.props-N0urQtdP.js → action.props-B6vl_1p5.js} +1 -1
- package/dist/cjs/{dom-Dk77oFF6.js → dom-BYrqRYna.js} +1 -1
- package/dist/cjs/{field-CsrQGhG-.js → field-B5nxD8Kc.js} +1 -1
- package/dist/cjs/{index-DWXhKHCB.js → index-BD6Jjssb.js} +5 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q-accordion.cjs.entry.js +2 -2
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +2 -2
- package/dist/cjs/q-banner.cjs.entry.js +1 -1
- package/dist/cjs/q-button_2.cjs.entry.js +5 -5
- package/dist/cjs/q-card.cjs.entry.js +3 -3
- package/dist/cjs/q-carousel.cjs.entry.js +120 -18
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-control-group.cjs.entry.js +64 -0
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +4 -4
- package/dist/cjs/q-dialog.cjs.entry.js +4 -4
- package/dist/cjs/q-divider.cjs.entry.js +26 -0
- package/dist/cjs/q-dropdown.cjs.entry.js +320 -104
- package/dist/cjs/q-form.cjs.entry.js +16 -6
- package/dist/cjs/q-grid.cjs.entry.js +3 -3
- package/dist/cjs/q-icon.cjs.entry.js +1 -1
- package/dist/cjs/q-image-comparison.cjs.entry.js +2 -2
- package/dist/cjs/q-inline.cjs.entry.js +3 -3
- package/dist/cjs/q-input_2.cjs.entry.js +9 -7
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +2 -2
- package/dist/cjs/q-media.cjs.entry.js +2 -2
- package/dist/cjs/q-navbar.cjs.entry.js +3 -3
- package/dist/cjs/q-pagination.cjs.entry.js +2 -2
- package/dist/cjs/q-panel.cjs.entry.js +7 -7
- package/dist/cjs/q-quantity-selector.cjs.entry.js +6 -6
- package/dist/cjs/q-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/q-reel.cjs.entry.js +4 -4
- package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
- package/dist/cjs/q-section.cjs.entry.js +2 -2
- package/dist/cjs/q-sidepanel.cjs.entry.js +2 -2
- package/dist/cjs/q-slider.cjs.entry.js +122 -0
- package/dist/cjs/q-stack.cjs.entry.js +3 -3
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram.cjs.entry.js +4 -4
- package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
- package/dist/cjs/q-tabs.cjs.entry.js +2 -2
- package/dist/cjs/q-textarea.cjs.entry.js +7 -5
- package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
- package/dist/cjs/q-toast.cjs.entry.js +1 -1
- package/dist/cjs/q-toggle.cjs.entry.js +6 -6
- package/dist/cjs/q-toolbar.cjs.entry.js +4 -4
- package/dist/cjs/{tokens-RMRaIOqv.js → tokens-Cd7g-VMz.js} +3 -0
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/actions/button/button.css +22 -0
- package/dist/collection/components/actions/button/{button.utils.unit.test.js → test/button.utils.unit.test.js} +1 -1
- package/dist/collection/components/content/carousel/carousel.css +7 -0
- package/dist/collection/components/content/carousel/carousel.js +256 -10
- package/dist/collection/components/content/carousel/internals/autoplay.js +31 -6
- package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +122 -0
- package/dist/collection/components/data-display/accordion/accordion.js +1 -1
- package/dist/collection/components/data-display/data-table/data-table.js +3 -3
- package/dist/collection/components/data-display/map/map.js +1 -1
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +1 -1
- package/dist/collection/components/data-display/pagination/pagination.js +1 -1
- package/dist/collection/{utils → components/data-display/syntax-box/internals}/formatter.unit.test.js +1 -1
- package/dist/collection/{utils → components/data-display/syntax-box/internals}/syntax.unit.test.js +1 -1
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +2 -2
- package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +1 -1
- package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +1 -1
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +2 -2
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +1 -1
- package/dist/collection/components/inputs/dropdown/dropdown.css +148 -0
- package/dist/collection/components/inputs/dropdown/dropdown.js +422 -104
- package/dist/collection/components/inputs/dropdown/test/dropdown.cmp.test.js +28 -0
- package/dist/collection/components/inputs/dropdown/test/fit-options.cmp.test.js +120 -0
- package/dist/collection/components/inputs/dropdown/test/multiple.cmp.test.js +124 -0
- package/dist/collection/components/inputs/dropdown/test/search-mode.cmp.test.js +186 -0
- package/dist/collection/components/inputs/form/form.js +2 -2
- package/dist/collection/components/inputs/form/internals/controls.js +1 -1
- package/dist/collection/components/inputs/form/internals/field-state.js +6 -1
- package/dist/collection/components/inputs/form/internals/values.js +5 -0
- package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +14 -8
- package/dist/collection/components/inputs/input/input.css +42 -0
- package/dist/collection/components/inputs/input/input.js +31 -3
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +22 -0
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/inputs/radio-group/radio-group.js +2 -2
- package/dist/collection/components/inputs/slider/slider.css +44 -0
- package/dist/collection/components/inputs/slider/slider.js +383 -0
- package/dist/collection/components/inputs/slider/test/slider.cmp.test.js +45 -0
- package/dist/collection/components/inputs/textarea/textarea.css +20 -0
- package/dist/collection/components/inputs/textarea/textarea.js +30 -2
- package/dist/collection/components/inputs/toggle/test/toggle-layout.cmp.test.js +69 -0
- package/dist/collection/components/inputs/toggle/toggle.css +27 -0
- package/dist/collection/components/inputs/toggle/toggle.js +3 -3
- package/dist/collection/components/layout/control-group/control-group.css +108 -0
- package/dist/collection/components/layout/control-group/control-group.js +142 -0
- package/dist/collection/components/layout/control-group/test/control-group.cmp.test.js +163 -0
- package/dist/collection/components/layout/divider/divider.css +40 -0
- package/dist/collection/components/layout/divider/divider.js +121 -0
- package/dist/collection/components/layout/divider/test/divider.cmp.test.js +105 -0
- package/dist/collection/components/layout/grid/grid.js +1 -1
- package/dist/collection/components/layout/inline/inline.js +1 -1
- package/dist/collection/components/layout/navbar/navbar.js +2 -2
- package/dist/collection/components/layout/panel/panel.js +4 -4
- package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
- package/dist/collection/components/layout/section/section.js +1 -1
- package/dist/collection/components/layout/stack/stack.js +1 -1
- package/dist/collection/components/layout/tabs/tabs.js +1 -1
- package/dist/collection/components/layout/toolbar/toolbar.js +2 -2
- package/dist/collection/components/media/avatar/avatar.js +1 -1
- package/dist/collection/components/media/image-comparison/image-comparison.js +1 -1
- package/dist/collection/components/media/media/media.js +1 -1
- package/dist/collection/components/media/reel/reel.js +2 -2
- package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/overlays/dialog/dialog.js +2 -2
- package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
- package/dist/collection/theme/test/input-width.cmp.test.js +117 -0
- package/dist/collection/theme/test/presets.unit.test.js +58 -0
- package/dist/collection/theme/tokens.js +3 -0
- package/dist/collection/utils/dom.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BDsIecIx.js +1 -0
- package/dist/components/{p-6PPZ2sIO.js → p-BGHNFaaC.js} +1 -1
- package/dist/components/{p-Dfp_If-_.js → p-BZXIeEKC.js} +1 -1
- package/dist/components/{p-DlIn_ZWk.js → p-Bc2_QcLn.js} +1 -1
- package/dist/components/{p-CKuPOxKN.js → p-Bp6Xr92S.js} +1 -1
- package/dist/{webquark/p-Dhsn99q4.js → components/p-BwPMm43W.js} +1 -1
- package/dist/components/p-CArIPzJU.js +1 -0
- package/dist/components/p-CpkX9YAW.js +1 -0
- package/dist/components/p-D2nxHd1b.js +1 -0
- package/dist/components/{p-DQhiqYeq.js → p-DkanItP3.js} +1 -1
- package/dist/components/p-IwIJb0Mc.js +1 -0
- package/dist/components/{p-Cg0Mv7Vb.js → p-kfrqZyfJ.js} +1 -1
- package/dist/components/{p-BH4gQWub.js → p-x3C-wjU9.js} +1 -1
- package/dist/components/q-accordion.js +1 -1
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.js +1 -1
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-control-group.d.ts +11 -0
- package/dist/components/q-control-group.js +1 -0
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-divider.d.ts +11 -0
- package/dist/components/q-divider.js +1 -0
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-grid.js +1 -1
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-image-comparison.js +1 -1
- package/dist/components/q-inline.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-media.js +1 -1
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-section.js +1 -1
- package/dist/components/q-sidepanel.js +1 -1
- package/dist/components/q-slider.d.ts +11 -0
- package/dist/components/q-slider.js +1 -0
- package/dist/components/q-stack.js +1 -1
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +2 -2
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{action.props-CpnGza8z.js → action.props-Di_LpF5H.js} +1 -1
- package/dist/esm/{dom-ByfrUWx1.js → dom-CArIPzJU.js} +1 -1
- package/dist/esm/{field-zfD6OQ02.js → field-C4Iilew6.js} +1 -1
- package/dist/esm/{index-B5ElFlHv.js → index-DoGM9gsC.js} +5 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q-accordion.entry.js +2 -2
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +2 -2
- package/dist/esm/q-banner.entry.js +1 -1
- package/dist/esm/q-button_2.entry.js +5 -5
- package/dist/esm/q-card.entry.js +3 -3
- package/dist/esm/q-carousel.entry.js +120 -18
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-control-group.entry.js +62 -0
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +4 -4
- package/dist/esm/q-dialog.entry.js +4 -4
- package/dist/esm/q-divider.entry.js +24 -0
- package/dist/esm/q-dropdown.entry.js +320 -104
- package/dist/esm/q-form.entry.js +16 -6
- package/dist/esm/q-grid.entry.js +3 -3
- package/dist/esm/q-icon.entry.js +1 -1
- package/dist/esm/q-image-comparison.entry.js +2 -2
- package/dist/esm/q-inline.entry.js +3 -3
- package/dist/esm/q-input_2.entry.js +9 -7
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +2 -2
- package/dist/esm/q-media.entry.js +2 -2
- package/dist/esm/q-navbar.entry.js +3 -3
- package/dist/esm/q-pagination.entry.js +2 -2
- package/dist/esm/q-panel.entry.js +7 -7
- package/dist/esm/q-quantity-selector.entry.js +6 -6
- package/dist/esm/q-radio-group.entry.js +4 -4
- package/dist/esm/q-reel.entry.js +4 -4
- package/dist/esm/q-scrollable.entry.js +4 -4
- package/dist/esm/q-section.entry.js +2 -2
- package/dist/esm/q-sidepanel.entry.js +2 -2
- package/dist/esm/q-slider.entry.js +120 -0
- package/dist/esm/q-stack.entry.js +3 -3
- package/dist/esm/q-step-diagram-item.entry.js +2 -2
- package/dist/esm/q-step-diagram.entry.js +4 -4
- package/dist/esm/q-syntax-box.entry.js +1 -1
- package/dist/esm/q-tabs.entry.js +2 -2
- package/dist/esm/q-textarea.entry.js +7 -5
- package/dist/esm/q-thumbnail.entry.js +3 -3
- package/dist/esm/q-toast.entry.js +1 -1
- package/dist/esm/q-toggle.entry.js +6 -6
- package/dist/esm/q-toolbar.entry.js +4 -4
- package/dist/esm/{tokens-B4Mg1xEw.js → tokens-BDsIecIx.js} +3 -0
- package/dist/esm/webquark.js +3 -3
- package/dist/playground/components/theme-designer/dimension-tokens.js +9 -0
- package/dist/playground/components/theme-designer/token-row.js +89 -0
- package/dist/playground/dom-factory.js +76 -0
- package/dist/playground/utils/color.js +26 -0
- package/dist/playground/utils/dom.js +38 -0
- package/dist/playground/utils/index.js +2 -0
- package/dist/types/components/content/carousel/carousel.d.ts +23 -2
- package/dist/types/components/content/carousel/carousel.types.d.ts +6 -0
- package/dist/types/components/content/carousel/internals/autoplay.d.ts +5 -0
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +45 -1
- package/dist/types/components/inputs/dropdown/test/fit-options.cmp.test.d.ts +3 -0
- package/dist/types/components/inputs/dropdown/test/multiple.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/dropdown/test/search-mode.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/internals/field-state.d.ts +1 -1
- package/dist/types/components/inputs/input/input.d.ts +3 -0
- package/dist/types/components/inputs/slider/slider.d.ts +45 -0
- package/dist/types/components/inputs/slider/test/slider.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/textarea/textarea.d.ts +3 -1
- package/dist/types/components/inputs/toggle/test/toggle-layout.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/control-group/control-group.d.ts +20 -0
- package/dist/types/components/layout/control-group/test/control-group.cmp.test.d.ts +7 -0
- package/dist/types/components/layout/divider/divider.d.ts +15 -0
- package/dist/types/components/layout/divider/test/divider.cmp.test.d.ts +1 -0
- package/dist/types/components.d.ts +390 -6
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/dimension-tokens.d.ts +3 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/components/theme-designer/token-row.d.ts +14 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/dom-factory.d.ts +12 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/color.d.ts +8 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/dom.d.ts +15 -0
- package/dist/types/home/runner/work/WebQuark/WebQuark/.stencil/src/playground/utils/index.d.ts +2 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/theme/test/input-width.cmp.test.d.ts +3 -0
- package/dist/types/theme/test/presets.unit.test.d.ts +1 -0
- package/dist/types/theme/tokens.d.ts +9 -0
- package/dist/types/utils/form-field-adapter.d.ts +3 -3
- package/dist/webquark/p-0182e114.entry.js +1 -0
- package/dist/webquark/{p-f98f9439.entry.js → p-048103e0.entry.js} +1 -1
- package/dist/webquark/{p-fe8c634a.entry.js → p-0a2c52de.entry.js} +1 -1
- package/dist/webquark/p-0baf478a.entry.js +1 -0
- package/dist/webquark/{p-9e78b796.entry.js → p-15bad9ef.entry.js} +1 -1
- package/dist/webquark/p-17b9713f.entry.js +1 -0
- package/dist/webquark/{p-fec6fe0a.entry.js → p-222405b8.entry.js} +1 -1
- package/dist/webquark/p-2eaa3a9f.entry.js +1 -0
- package/dist/webquark/{p-90b0858c.entry.js → p-3daafc56.entry.js} +1 -1
- package/dist/webquark/{p-09cca7b9.entry.js → p-44bbe12f.entry.js} +1 -1
- package/dist/webquark/{p-888e46a8.entry.js → p-4609c362.entry.js} +1 -1
- package/dist/webquark/{p-023f8437.entry.js → p-5b584d3c.entry.js} +1 -1
- package/dist/webquark/p-65fe9cac.entry.js +1 -0
- package/dist/webquark/p-846dc838.entry.js +1 -0
- package/dist/webquark/{p-030ecde3.entry.js → p-84b350a3.entry.js} +1 -1
- package/dist/webquark/p-85131314.entry.js +1 -0
- package/dist/webquark/{p-f1bac94c.entry.js → p-852e88ae.entry.js} +1 -1
- package/dist/webquark/{p-0aa74ad6.entry.js → p-86c05afd.entry.js} +1 -1
- package/dist/webquark/p-8c5b2706.entry.js +1 -0
- package/dist/webquark/p-923527f0.entry.js +1 -0
- package/dist/webquark/{p-f4f97e74.entry.js → p-9a76cd71.entry.js} +1 -1
- package/dist/webquark/p-BDsIecIx.js +1 -0
- package/dist/webquark/p-CArIPzJU.js +1 -0
- package/dist/{components/p-BofcK-7Z.js → webquark/p-DDUED8LT.js} +1 -1
- package/dist/webquark/{p-DWO-pleQ.js → p-Dnz3WmdX.js} +1 -1
- package/dist/webquark/p-DoGM9gsC.js +3 -0
- package/dist/webquark/p-a0d97367.entry.js +1 -0
- package/dist/webquark/{p-5f232b44.entry.js → p-a16bd8d5.entry.js} +1 -1
- package/dist/webquark/{p-059daa8a.entry.js → p-a2334abe.entry.js} +1 -1
- package/dist/webquark/{p-36118d90.entry.js → p-a2ff1b64.entry.js} +1 -1
- package/dist/webquark/{p-dd115868.entry.js → p-a314bc21.entry.js} +1 -1
- package/dist/webquark/p-a3e1096d.entry.js +1 -0
- package/dist/webquark/{p-f63b7214.entry.js → p-a66550da.entry.js} +1 -1
- package/dist/webquark/{p-f9ad63ff.entry.js → p-aa342e81.entry.js} +1 -1
- package/dist/webquark/{p-6e28cfe2.entry.js → p-b1c771fb.entry.js} +1 -1
- package/dist/webquark/p-b21ad707.entry.js +1 -0
- package/dist/webquark/p-b45ca926.entry.js +1 -0
- package/dist/webquark/{p-8ece2c62.entry.js → p-b8fdef4f.entry.js} +1 -1
- package/dist/webquark/{p-64096386.entry.js → p-d4788321.entry.js} +1 -1
- package/dist/webquark/p-d86bd51d.entry.js +1 -0
- package/dist/webquark/{p-48fb5228.entry.js → p-dbcf7592.entry.js} +1 -1
- package/dist/webquark/p-e0943d41.entry.js +1 -0
- package/dist/webquark/{p-6bfffa79.entry.js → p-e2721e77.entry.js} +1 -1
- package/dist/webquark/{p-3bc4629c.entry.js → p-e723a7ae.entry.js} +1 -1
- package/dist/webquark/p-eb800d1e.entry.js +1 -0
- package/dist/webquark/{p-99d785ca.entry.js → p-f4d23ffe.entry.js} +1 -1
- package/dist/webquark/{p-4d61b70d.entry.js → p-f51e1098.entry.js} +1 -1
- package/dist/webquark/{p-9ff7e5a4.entry.js → p-fe14f038.entry.js} +1 -1
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-B4Mg1xEw.js +0 -1
- package/dist/components/p-ByfrUWx1.js +0 -1
- package/dist/components/p-CN1ut2Lb.js +0 -1
- package/dist/components/p-ye27qtRo.js +0 -1
- package/dist/webquark/p-04c8cb9e.entry.js +0 -1
- package/dist/webquark/p-0ae43d6c.entry.js +0 -1
- package/dist/webquark/p-0c3aac3f.entry.js +0 -1
- package/dist/webquark/p-144ef339.entry.js +0 -1
- package/dist/webquark/p-296fbdb1.entry.js +0 -1
- package/dist/webquark/p-70d9ffde.entry.js +0 -1
- package/dist/webquark/p-91fff6b6.entry.js +0 -1
- package/dist/webquark/p-923dac41.entry.js +0 -1
- package/dist/webquark/p-97a89cae.entry.js +0 -1
- package/dist/webquark/p-B4Mg1xEw.js +0 -1
- package/dist/webquark/p-B5ElFlHv.js +0 -3
- package/dist/webquark/p-ByfrUWx1.js +0 -1
- package/dist/webquark/p-c523ec6f.entry.js +0 -1
- package/dist/webquark/p-d0253d64.entry.js +0 -1
- package/dist/webquark/p-d0fbd2b1.entry.js +0 -1
- package/dist/webquark/p-fe200f68.entry.js +0 -1
- /package/dist/collection/{utils → components/data-display/syntax-box/internals}/formatter.js +0 -0
- /package/dist/collection/{utils → components/data-display/syntax-box/internals}/syntax.js +0 -0
- /package/dist/types/components/actions/button/{button.utils.unit.test.d.ts → test/button.utils.unit.test.d.ts} +0 -0
- /package/dist/types/{utils → components/data-display/syntax-box/internals}/formatter.d.ts +0 -0
- /package/dist/types/{utils → components/data-display/syntax-box/internals}/formatter.unit.test.d.ts +0 -0
- /package/dist/types/{utils → components/data-display/syntax-box/internals}/syntax.d.ts +0 -0
- /package/dist/types/{utils → components/data-display/syntax-box/internals}/syntax.unit.test.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,c as r,h as s}from"./p-
|
|
1
|
+
import{t as e,p as t,H as i,c as r,h as s}from"./p-D2nxHd1b.js";import{i as a,h as o,c as n}from"./p-BcL0NVv0.js";const h=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.qChange=r(this,"qChange")}beforeSrc="";afterSrc="";beforeLabel="Before";afterLabel="After";beforeCrop;afterCrop;aspectRatio;position=50;beforeAlt="";afterAlt="";ariaLabel="Image comparison";qChange;beforeStatus="loading";afterStatus="loading";beforeDimensions;afterDimensions;generation=0;frame;range;pointer;componentWillLoad(){this.normalizePosition()}normalizePosition(){const e=Number.isFinite(this.position)?Math.max(0,Math.min(100,this.position)):50;e!==this.position&&(this.position=e)}resetImages(){this.generation++,this.beforeStatus="loading",this.afterStatus="loading",this.beforeDimensions=void 0,this.afterDimensions=void 0,this.endPointer()}resetGesture(){this.endPointer()}disconnectedCallback(){this.endPointer()}get ready(){return!!this.beforeSrc&&!!this.afterSrc&&"loaded"===this.beforeStatus&&"loaded"===this.afterStatus&&!this.cropUnavailable}get cropUnavailable(){return void 0!==this.beforeCrop&&(!a(this.beforeCrop)||"loaded"===this.beforeStatus&&!this.beforeDimensions)||void 0!==this.afterCrop&&(!a(this.afterCrop)||"loaded"===this.afterStatus&&!this.afterDimensions)}get frameRatio(){if(void 0!==this.aspectRatio)return Number.isFinite(this.aspectRatio)&&this.aspectRatio>0?this.aspectRatio:16/9;const e=o(this.afterCrop),t=e?this.afterCrop:this.beforeCrop,i=e?this.afterDimensions:this.beforeDimensions;return o(t)&&i?n(i.width,i.height,t)?.aspectRatio??16/9:16/9}imageResult(e,t,i,r,s){if(t!==this.generation||i!==("before"===e?this.beforeSrc:this.afterSrc))return;const a=r&&s&&Number.isFinite(s.naturalWidth)&&s.naturalWidth>0&&Number.isFinite(s.naturalHeight)&&s.naturalHeight>0?{width:s.naturalWidth,height:s.naturalHeight}:void 0;"before"===e?(this.beforeDimensions=a,this.beforeStatus=r?"loaded":"error"):(this.afterDimensions=a,this.afterStatus=r?"loaded":"error"),r||this.endPointer()}updatePosition(e){if(!this.ready||!Number.isFinite(e))return;const t=Math.max(0,Math.min(100,e));t!==this.position&&(this.position=t,this.qChange.emit(t))}moveTo(e){const t=this.frame.getBoundingClientRect();t.width>0&&this.updatePosition((e-t.left)/t.width*100)}handlePointerDown=e=>{this.ready&&!this.pointer&&e.isPrimary&&0===e.button&&(this.pointer={id:e.pointerId,x:e.clientX,y:e.clientY,pending:"touch"===e.pointerType},this.pointer.pending||(this.range?.focus({preventScroll:!0}),this.frame?.setPointerCapture(e.pointerId),this.moveTo(e.clientX),e.preventDefault()))};handlePointerMove=e=>{if(this.pointer&&this.pointer.id===e.pointerId){if(this.pointer.pending){const t=Math.abs(e.clientX-this.pointer.x),i=Math.abs(e.clientY-this.pointer.y);if(Math.max(t,i)<8)return;if(i>=t)return void this.endPointer();this.pointer.pending=!1,this.range?.focus({preventScroll:!0}),this.frame?.setPointerCapture(e.pointerId)}this.moveTo(e.clientX)}};handlePointerEnd=e=>{this.pointer?.id===e.pointerId&&this.endPointer()};endPointer(){const e=this.pointer?.id;this.pointer=void 0,void 0!==e&&this.frame?.hasPointerCapture(e)&&this.frame.releasePointerCapture(e)}boxStyle(e){return e&&{left:e.left+"%",top:e.top+"%",width:e.width+"%",height:e.height+"%"}}renderImage(e,t,i,r){if(!t)return null;const a="before"===e?this.beforeCrop:this.afterCrop,h="before"===e?this.beforeDimensions:this.afterDimensions,l=o(a)&&h?n(h.width,h.height,a,r):void 0;return s("div",{part:e+"-layer",class:{layer:!0,before:"before"===e},style:"before"===e?{clipPath:`inset(0 ${100-this.position}% 0 0)`}:void 0},s("div",{part:e+"-viewport",class:"viewport",style:this.boxStyle(l?.viewport)},s("img",{key:`${e}-${i}`,part:e+"-image",class:{image:!0,cropped:!!l},style:this.boxStyle(l?.image),src:t,alt:"before"===e?this.beforeAlt:this.afterAlt,draggable:!1,onLoad:r=>this.imageResult(e,i,t,!0,r.currentTarget),onError:()=>this.imageResult(e,i,t,!1)})))}render(){const e=this.generation,t=this.beforeSrc,i=this.afterSrc,r=this.frameRatio,a=!t||!i||"error"===this.beforeStatus||"error"===this.afterStatus||this.cropUnavailable;return s("div",{key:"e5410625988c20e6a76cccff54da4f2c1b6a9c21",part:"frame",class:{frame:!0,ready:this.ready},style:{aspectRatio:r+""},ref:e=>this.frame=e,onPointerDown:this.handlePointerDown,onPointerMove:this.handlePointerMove,onPointerUp:this.handlePointerEnd,onPointerCancel:this.handlePointerEnd,onLostPointerCapture:this.handlePointerEnd},this.renderImage("after",i,e,r),this.renderImage("before",t,e,r),!this.ready&&s("div",{key:"e9ec809349bcdca73642dd85dfce7be2c85e8e5d",part:"status",class:"status",role:"status"},a?"Comparison unavailable":"Loading images…"),this.ready&&s("div",{key:"261f042c581b98249982bbaacb5e011e83e3815c",class:"decorations","aria-hidden":"true"},s("span",{key:"e44600d0ebea85584ade0032ac67b2760d26fc78",part:"before-label",class:"label before-label"},this.beforeLabel),s("span",{key:"8b5ab613e9f85fe0b8031c73a18e42baa8199f13",part:"after-label",class:"label after-label"},this.afterLabel),s("div",{key:"61cd1aa7fa75b4a17e1fdeb8b5589716e481fe30",part:"divider",class:"divider",style:{left:this.position+"%"}},s("span",{key:"c6e5a4ac428bd57659be6ab0c1f6fdc49b1c596b",part:"handle",class:"handle"},"↔"))),s("input",{key:"d070ec8fc8404a6f37385b918cedd8ebd6414204",part:"control",class:"control",ref:e=>this.range=e,type:"range",min:"0",max:"100",step:"1",value:this.position,disabled:!this.ready,"aria-label":this.ariaLabel||"Image comparison","aria-valuetext":`${Math.round(this.position)}% ${this.beforeLabel||"Before"} revealed`,onInput:e=>this.updatePosition(Number(e.target.value))}))}static get watchers(){return{position:[{normalizePosition:0}],beforeSrc:[{resetImages:0}],afterSrc:[{resetImages:0}],beforeCrop:[{resetGesture:0}],afterCrop:[{resetGesture:0}],aspectRatio:[{resetGesture:0}]}}static get style(){return":host{display:block;min-width:0;font-family:var(--q-font-family, inherit)}.frame{position:relative;width:100%;overflow:hidden;border-radius:var(--q-radius-md, 7px);background:var(--q-bg-surface-2, #19243b);touch-action:pan-y;user-select:none}.frame.ready{cursor:ew-resize}.layer,.viewport{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.image{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;object-position:center;pointer-events:none}.image.cropped{max-width:none;max-height:none;object-fit:fill}.before{background:var(--q-bg-surface-2, #19243b)}.status{position:absolute;inset:0;display:grid;place-items:center;background:var(--q-bg-surface-2, #19243b);color:var(--q-fg-base, #f9fafb);font-size:.875rem}.decorations{pointer-events:none}.label{position:absolute;top:var(--q-space-sm, .5rem);padding:var(--q-space-xs, .25rem) var(--q-space-sm, .5rem);border-radius:var(--q-radius-sm, 4px);background:var(--q-bg-surface-1, #111827);color:var(--q-fg-base, #f9fafb);font-size:.875rem}.before-label{left:var(--q-space-sm, .5rem)}.after-label{right:var(--q-space-sm, .5rem)}.divider{position:absolute;top:0;bottom:0;width:2px;transform:translateX(-50%);background:var(--q-color-primary, #60a5fa)}.handle{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--q-bg-surface-1, #111827);color:var(--q-fg-base, #f9fafb);border:2px solid var(--q-color-primary, #60a5fa);font-size:24px}.control{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;pointer-events:none;direction:ltr}.frame:focus-within{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}"}},[513,"q-image-comparison",{beforeSrc:[1,"before-src"],afterSrc:[1,"after-src"],beforeLabel:[1,"before-label"],afterLabel:[1,"after-label"],beforeCrop:[16],afterCrop:[16],aspectRatio:[2,"aspect-ratio"],position:[1026],beforeAlt:[1,"before-alt"],afterAlt:[1,"after-alt"],ariaLabel:[1,"aria-label"],beforeStatus:[32],afterStatus:[32],beforeDimensions:[32],afterDimensions:[32]},void 0,{position:[{normalizePosition:0}],beforeSrc:[{resetImages:0}],afterSrc:[{resetImages:0}],beforeCrop:[{resetGesture:0}],afterCrop:[{resetGesture:0}],aspectRatio:[{resetGesture:0}]}]);function l(){"undefined"!=typeof customElements&&["q-image-comparison"].forEach((t=>{"q-image-comparison"===t&&(customElements.get(e(t))||customElements.define(e(t),h))}))}l();const c=h,f=l;export{c as QImageComparison,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as s,H as e,h as i}from"./p-D2nxHd1b.js";import{s as n}from"./p-BDsIecIx.js";const a=s(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}gap="sm";align="center";justify="start";wrap=!0;render(){return i("div",{key:"4a738a5cfb63fbfe527ef97e0d4fdc5b2b9d92bb",part:"layout",style:{gap:n(this.gap),alignItems:this.align,justifyContent:"between"===this.justify?"space-between":this.justify,flexWrap:this.wrap?"wrap":"nowrap"}},i("slot",{key:"441ff02b18335a81b7674d6b8078102bd22a46f5"}))}static get style(){return":host{display:block;min-width:0}div{display:flex;min-width:0}slot{display:contents}::slotted(*){min-width:0}"}},[769,"q-inline",{gap:[1],align:[1],justify:[1],wrap:[4]}]);function o(){"undefined"!=typeof customElements&&["q-inline"].forEach((s=>{"q-inline"===s&&(customElements.get(t(s))||customElements.define(t(s),a))}))}o();const l=a,r=o;export{l as QInline,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Q as o,d as
|
|
1
|
+
import{Q as o,d as p}from"./p-CpkX9YAW.js";const s=o,r=p;export{s as QInput,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,M as i,c as t,h as
|
|
1
|
+
import{p as e,M as i,c as t,h as n,t as a}from"./p-D2nxHd1b.js";import{w as r,a as o}from"./p-DkanItP3.js";const l=e(class extends(i(o,r)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.qClick=t(this,"qClick"),this.qFocus=t(this,"qFocus"),this.qBlur=t(this,"qBlur")}variant="default";underline="hover";url;mailto;tel;target;external=!1;qClick;qFocus;qBlur;get resolvedHref(){return this.href?this.href:this.url?this.url:this.mailto?"mailto:"+this.mailto:this.tel?"tel:"+this.tel:""}get resolvedRel(){return this.rel?this.rel:"_blank"===this.target||this.external?"noopener noreferrer":void 0}handleClick=e=>{if(this.disabled||!this.resolvedHref)return e.preventDefault(),void e.stopPropagation();this.qClick.emit(e)};handleFocus=e=>{this.qFocus.emit(e)};handleBlur=e=>{this.qBlur.emit(e)};render(){const e=this.disabled?void 0:this.resolvedHref||void 0,i=this.external||"_blank"===this.target,t="_blank"===this.target?"opens in new tab":"external link";return n("a",{key:"190cf38d3818d5387b546f39e79fbc670a7cc739",class:{link:!0,["variant-"+this.variant]:!0,["underline-"+this.underline]:!0,"is-disabled":this.disabled},href:e,target:this.disabled?void 0:this.target,rel:this.disabled?void 0:this.resolvedRel,download:this.disabled?void 0:this.download,"aria-disabled":this.disabled?"true":"false",tabindex:this.disabled?-1:void 0,part:"link",onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},n("slot",{key:"da416f871c0fe1747da4c9117ff7c99240bd8bdd",name:"icon-left"}),n("span",{key:"fd010829d1a8fe36bb1627f7e0077e40a3affc81",class:"link-label",part:"label"},n("slot",{key:"9a9b11ac5f1032525c8c828196bf3a4c0c8d284e"},this.label)),n("slot",{key:"0e8938e994d6c7076d281692e1f5ce3b8fa4d267",name:"icon-right"}),i&&n("span",{key:"0fea3416f3364a8d1d312b4d9690ad7c12395860",class:"external-affordance"},n("svg",{key:"fe3c7e149c248d7406f5107bcd8b418ad98031b7",class:"external-icon",part:"external-icon",viewBox:"0 0 24 24","aria-hidden":"true"},n("path",{key:"10e71ed796eaddc223ef6c83472d1e0745e8ae24",d:"M14 3h7v7"}),n("path",{key:"e522c15547771a60fc5f93b23dace13ee4ea58b6",d:"M10 14L21 3"}),n("path",{key:"6316757bd05ea7f05d8c9d0ab4af3a1d0287903a",d:"M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5"})),n("span",{key:"4698f7d717f468fbe8b19ea1f6c77083d440418b",class:"visually-hidden"},"(",t,")")))}static get style(){return":host{display:inline}.link{display:inline-flex;align-items:center;gap:var(--q-link-gap, 0.35em);color:var(--q-link-color, var(--q-color-primary, #2563eb));font-family:var(--q-font-family, inherit);font-size:var(--q-link-font-size, inherit);font-weight:var(--q-link-font-weight, var(--q-font-weight-medium, 500));line-height:1.4;text-decoration-color:currentColor;text-underline-offset:var(--q-link-underline-offset, 0.18em);transition:color var(--q-transition-fast, 150ms ease), opacity var(--q-transition-fast, 150ms ease)}.link:hover,.link:focus-visible{color:var(--q-link-color-hover, var(--q-color-primary-hover, #1d4ed8))}.link:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #2563eb));outline-offset:var(--q-link-focus-offset, 3px);border-radius:var(--q-radius-xs, 3px)}.underline-hover{text-decoration-line:none}.underline-hover:hover,.underline-hover:focus-visible{text-decoration-line:underline}.underline-always{text-decoration-line:underline}.underline-none{text-decoration-line:none}.variant-muted{color:var(--q-link-muted-color, var(--q-fg-muted, #64748b))}.variant-muted:hover,.variant-muted:focus-visible{color:var(--q-link-muted-color-hover, var(--q-fg-base, #172033))}.variant-accent{color:var(--q-link-accent-color, var(--q-color-secondary, #7c3aed))}.variant-danger{color:var(--q-link-danger-color, var(--q-color-danger, #dc2626))}.is-disabled{color:var(--q-link-disabled-color, var(--q-fg-subtle, #94a3b8));cursor:not-allowed;opacity:0.7;pointer-events:none}.link-label{min-width:0}.external-affordance{display:inline-flex;align-items:center}.external-icon{width:var(--q-link-external-icon-size, 0.9em);height:var(--q-link-external-icon-size, 0.9em);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}"}},[769,"q-link",{label:[1],disabled:[516],href:[1],rel:[1],download:[1],variant:[513],underline:[513],url:[1],mailto:[1],tel:[1],target:[1],external:[516]}]);function s(){"undefined"!=typeof customElements&&["q-link"].forEach((e=>{"q-link"===e&&(customElements.get(a(e))||customElements.define(a(e),l))}))}s();const d=l,c=s;export{d as QLink,c as defineCustomElement}
|
package/dist/components/q-map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as r,c as a,h as i}from"./p-ye27qtRo.js";import{g as o,d as n,e as s,f as l,a as c,b as d,c as h,Q as u}from"./p-CoIMrUb3.js";import{d as m}from"./p-Cg0Mv7Vb.js";class p{operations;revision=0;active;pendingAttachController;constructor(t){this.operations=t}getActiveState(){return{activeProvider:this.active?.provider,usingFallback:this.active?.usingFallback??!1}}async sync(t){const e=++this.revision;if(this.abortPendingAttach(),!this.isConfigured(t))return this.clearActiveLayer(),{kind:"empty",activeProvider:void 0,usingFallback:!1};const r=await this.createCandidate(t.requestedProvider,t,e);if("stale"===r.kind)return r;const a="ready"===r.kind?await this.commit(r.candidate,t.requestedProvider,!1,e):r;if("stale"===a.kind||"ready"===a.kind)return a;if("tiles"===t.requestedProvider||!t.tileUrl.trim())return{kind:"error",error:a.error,...this.getActiveState()};const i=await this.createCandidate("tiles",t,e);if("stale"===i.kind)return i;if("error"===i.kind)return{kind:"error",error:a.error,fallbackError:i.error,...this.getActiveState()};const o=await this.commit(i.candidate,"tiles",!0,e);return"ready"===o.kind?{...o,warning:a.error}:"error"===o.kind?{kind:"error",error:a.error,fallbackError:o.error,...this.getActiveState()}:o}destroy(){this.revision+=1,this.abortPendingAttach(),this.clearActiveLayer()}isConfigured(t){return"google"===t.requestedProvider?t.googleApiAvailable||t.googleApiKey.trim().length>0:"vector"===t.requestedProvider?t.vectorStyleUrl.trim().length>0:t.tileUrl.trim().length>0}async createCandidate(t,e,r){try{const a="google"===t?await this.operations.createGoogle(e):"vector"===t?await this.operations.createVector(e):this.operations.createTiles(e);return r!==this.revision?(this.removeLayer(a),{kind:"stale"}):{kind:"ready",candidate:a}}catch(t){return r===this.revision?{kind:"error",error:t}:{kind:"stale"}}}async commit(t,e,r,a){if(a!==this.revision)return this.removeLayer(t),{kind:"stale"};const i=new AbortController;this.pendingAttachController=i;try{await this.operations.attach(t,e,{replacing:void 0!==this.active,signal:i.signal})}catch(e){return this.clearPendingAttach(i),this.removeLayer(t),a!==this.revision||i.signal.aborted?{kind:"stale"}:{kind:"error",error:e,...this.getActiveState()}}if(this.clearPendingAttach(i),a!==this.revision)return this.removeLayer(t),{kind:"stale"};const o=this.active;return this.active={layer:t,provider:e,usingFallback:r},o?.layer!==t&&this.removeLayer(o?.layer),{kind:"ready",activeProvider:e,usingFallback:r}}clearActiveLayer(){this.removeLayer(this.active?.layer),this.active=void 0}abortPendingAttach(){this.pendingAttachController?.abort(),this.pendingAttachController=void 0}clearPendingAttach(t){this.pendingAttachController===t&&(this.pendingAttachController=void 0)}removeLayer(t){if(t)try{t.remove()}catch{}}}function f(t,e,r,a,i="full-batch"){const o=t.tileLayer(e,r),n=o._initTile.bind(o);if(o._initTile=t=>{n(t);const e=o.getTileSize();t.style.width=e.x+1+"px",t.style.height=e.y+1+"px"},"progressive"===i&&function(t){const e=t.onAdd.bind(t);let r=!1;t.onAdd=a=>{const i=e(a);return function(t){if(null===t._tiles||"object"!=typeof t._tiles||Array.isArray(t._tiles))throw g()}(t),r||(function(t){const e=t._tileReady.bind(t),r=t._pruneTiles.bind(t),a=t._updateOpacity.bind(t),i=e=>{const r=t._pruneTiles;t._pruneTiles=()=>{};try{e()}finally{t._pruneTiles=r}};t._tileReady=(a,o,n)=>{const s=t._tiles[t._tileCoordsToKey(a)];if(!o)return s&&(s.progressiveLoadFailed=!1),void e(a,o,n);i((()=>e(a,o,n))),s&&(s.progressiveLoadFailed=!0,s.active=!1),r()},t._updateOpacity=()=>{i(a),(()=>{for(const e of Object.values(t._tiles))e.progressiveLoadFailed&&(e.active=!1)})(),r()}}(t),r=!0),i}}(function(t){const e=t;if("function"!=typeof e._pruneTiles||"function"!=typeof e._tileCoordsToKey||"function"!=typeof e._tileReady||"function"!=typeof e._updateOpacity||"function"!=typeof e.onAdd)throw g();return e}(o)),0===a)return o;const s=o._getTiledPixelBounds.bind(o);return o._getTiledPixelBounds=e=>{const r=s(e),i=o.getTileSize(),n=i.x*a,l=i.y*a;return new t.Bounds(r.min.subtract([n,l]),r.max.add([n,l]))},o}function g(){return Error("Progressive raster loading is not supported by this Leaflet tile layer.")}function b(t){return"number"==typeof t&&Number.isFinite(t)&&t>=-90&&t<=90}function v(t){return"number"==typeof t&&Number.isFinite(t)&&t>=-180&&t<=180}function k(t){const{parsed:e,invalidJson:r}=function(t){if("string"!=typeof t)return{parsed:t,invalidJson:!1};if(!t.trim())return{parsed:void 0,invalidJson:!1};try{return{parsed:JSON.parse(t),invalidJson:!1}}catch{return{invalidJson:!0}}}(t);if(r)return{kind:"invalid",message:"maxBounds must be valid JSON or a bounds object."};if(void 0===e)return{kind:"clear"};if(!function(t){return"object"==typeof t&&null!==t}(e))return{kind:"invalid",message:"maxBounds must be a bounds object."};const{southLatitude:a,westLongitude:i,northLatitude:o,eastLongitude:n}=e;if(!b(a)||!b(o))return{kind:"invalid",message:"maxBounds latitude values must be finite numbers from -90 to 90."};if(!v(i)||!v(n))return{kind:"invalid",message:"maxBounds longitude values must be finite numbers from -180 to 180."};if(a>=o)return{kind:"invalid",message:"maxBounds southLatitude must be below northLatitude."};if(i>=n)return{kind:"invalid",message:"maxBounds westLongitude must be below eastLongitude; antimeridian-crossing bounds are not supported."};const s={southLatitude:a,westLongitude:i,northLatitude:o,eastLongitude:n};return{kind:"valid",bounds:s,leafletBounds:[[s.southLatitude,s.westLongitude],[s.northLatitude,s.eastLongitude]]}}function y(t){return"valid"===t.kind?t.leafletBounds:void 0}function q(t){return Math.max(0,Math.min(1,Number.isFinite(t)?t:1))}let w,x,M,_,z=0;function C(){return"undefined"!=typeof window&&"function"==typeof window.google?.maps?.Map}function L(){if(!C())throw Error("The Maps library loaded without exposing google.maps.Map.")}const P=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],A=new Uint32Array(96);class Z{static from(t){if(!t||void 0===t.byteLength||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw Error("Data does not appear to be in a KDBush format.");const a=r>>4;if(1!==a)throw Error(`Got v${a} data when expected v1.`);const i=P[15&r];if(!i)throw Error("Unrecognized array type.");const[o]=new Uint16Array(t,2,1),[n]=new Uint32Array(t,4,1);return new Z(n,o,i,void 0,t)}constructor(t,e=64,r=Float64Array,a=ArrayBuffer,i){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=P.indexOf(this.ArrayType),n=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-s%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${r}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+s+l,2*t),this._pos=2*t,this._finished=!0;else{const i=this.data=new a(8+n+s+l);this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+s+l,2*t),this._pos=0,this._finished=!1,new Uint8Array(i,0,2).set([219,16+o]),new Uint16Array(i,2,1)[0]=e,new Uint32Array(i,4,1)[0]=t}}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return B(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:n}=this;A[0]=0,A[1]=i.length-1,A[2]=0;let s=3;const l=[];for(;s>0;){const c=A[--s],d=A[--s],h=A[--s];if(d-h<=n){for(let n=h;n<=d;n++){const s=o[2*n],c=o[2*n+1];s>=t&&s<=r&&c>=e&&c<=a&&l.push(i[n])}continue}const u=h+d>>1,m=o[2*u],p=o[2*u+1];m>=t&&m<=r&&p>=e&&p<=a&&l.push(i[u]),(0===c?t<=m:e<=p)&&(A[s++]=h,A[s++]=u-1,A[s++]=1-c),(0===c?r>=m:a>=p)&&(A[s++]=u+1,A[s++]=d,A[s++]=1-c)}return l}within(t,e,r){const a=[];return this.withinInto(t,e,r,a),a}withinInto(t,e,r,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:n}=this;A[0]=0,A[1]=i.length-1,A[2]=0;let s=3,l=0;const c=r*r;for(;s>0;){const d=A[--s],h=A[--s],u=A[--s];if(h-u<=n){for(let r=u;r<=h;r++)I(o[2*r],o[2*r+1],t,e)<=c&&(a[l++]=i[r]);continue}const m=u+h>>1,p=o[2*m],f=o[2*m+1];I(p,f,t,e)<=c&&(a[l++]=i[m]),(0===d?t-r<=p:e-r<=f)&&(A[s++]=u,A[s++]=m-1,A[s++]=1-d),(0===d?t+r>=p:e+r>=f)&&(A[s++]=m+1,A[s++]=h,A[s++]=1-d)}return l}}function B(t,e,r,a,i,o){if(i-a<=r)return;const n=a+i>>1;E(t,e,n,a,i,o),B(t,e,r,a,n-1,1-o),B(t,e,r,n+1,i,1-o)}function E(t,e,r,a,i,o){for(;i>a;){if(i-a>600){const n=i-a+1,s=r-a+1,l=Math.log(n),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(n-c)/n)*(s-n/2<0?-1:1);E(t,e,r,Math.max(a,Math.floor(r-s*c/n+d)),Math.min(i,Math.floor(r+(n-s)*c/n+d)),o)}const n=e[2*r+o];let s=a,l=i;for(S(t,e,a,r),e[2*i+o]>n&&S(t,e,a,i);s<l;){for(S(t,e,s,l),s++,l--;e[2*s+o]<n;)s++;for(;e[2*l+o]>n;)l--}e[2*a+o]===n?S(t,e,a,l):(l++,S(t,e,l,i)),l<=r&&(a=l+1),r<=l&&(i=l-1)}}function S(t,e,r,a){N(t,r,a),N(e,2*r,2*a),N(e,2*r+1,2*a+1)}function N(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function I(t,e,r,a){const i=t-r,o=e-a;return i*i+o*o}const U={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},T=1073741824,O=1/T,R=t=>(t-.5)*T,$=t=>t*O+.5;class V{constructor(t){const e=this.options=Object.assign(Object.create(U),t);e.maxZoom=Math.min(e.maxZoom,30),e.minZoom=Math.min(e.minZoom,e.maxZoom),this.trees=Array(e.maxZoom+1),this.stride=e.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:a}=this.options;e&&console.time("total time");const i=a+1,o=`z${i}: ${t.length} points`;e&&console.time(o);const n=this.stride;let s=t.length;for(const e of t){const t=e.geometry;t&&"MultiPoint"===t.type&&(s+=t.coordinates.length-1)}this.numPoints=s;const l=this.props=Array(s),c=this.coords=new Float64Array(2*s);let d=null;const h=new Int32Array(s*n);let u=0,m=0;for(const e of t){const t=e.geometry;if(!t){m++;continue}const r=t.coordinates,a="MultiPoint"===t.type;for(let t=0,o=a?r.length:1;t<o;t++,m++){const[o,p]=a?r[t]:r,f=F(o),g=G(p);c[2*m]=f,c[2*m+1]=g,h[u]=R(f),h[u+1]=R(g),h[u+2]=i,h[u+3]=m,h[u+4]=-1,h[u+5]=1,l[m]=e.properties,void 0!==e.id&&(d||(d=Array(s)),d[m]=e.id),u+=n}}this.ids=d;let p=u===h.length?h:h.subarray(0,u),f=u/n;this.trees[a+1]=this._createTree(p,f),e&&console.timeEnd(o);let g=null;for(let t=a;t>=r;t--){const r=performance.now(),a=g||new Int32Array(f*n);g=null;const i=this._cluster(p,f,t,a);i===f?(this.trees[t]=this.trees[t+1],g=a):(this.trees[t]=this._createTree(a,i),p=a,f=i),e&&console.log(`z${t}: ${this.trees[t].numItems} clusters in ${(performance.now()-r).toFixed(2)}ms`)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[1]));let i=180===t[2]?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){const t=this.getClusters([r,a,180,o],e),n=this.getClusters([-180,a,i,o],e);return t.concat(n)}const n=this.trees[this._limitZoom(e)],s=n.range(R(F(r)),R(G(o)),R(F(i)),R(G(a))),l=n.data,c=[];for(const t of s)c.push(this._featureJSON(l,this.stride*t));return c}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),a="No cluster with the specified id.",i=this.trees[r];if(!i)throw Error(a);const o=i.data;if(e>=i.numItems)throw Error(a);const n=i.within(o[e*this.stride],o[e*this.stride+1],this.options.radius/(this.options.extent*Math.pow(2,r-1))*T),s=[];for(const e of n){const r=e*this.stride;o[r+4]===t&&s.push(this._featureJSON(o,r))}if(0===s.length)throw Error(a);return s}getLeaves(t,e,r){const a=[];return this._appendLeaves(a,t,e=e||10,r=r||0,0),a}getTile(t,e,r){return this._getTile(t,e,r,!1)}getTileRaw(t,e,r){return this._getTile(t,e,r,!0)}_getTile(t,e,r,a){const i=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:n,radius:s}=this.options,l=s/n,c=R((r-l)/o),d=R((r+1+l)/o),h={features:[]};return this._addTileFeatures(i.range(R((e-l)/o),c,R((e+1+l)/o),d),i.data,e,r,o,h,a),0===e&&this._addTileFeatures(i.range(R(1-l/o),c,R(1),d),i.data,o,r,o,h,a),e===o-1&&this._addTileFeatures(i.range(R(0),c,R(l/o),d),i.data,-1,r,o,h,a),h.features.length?h:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,a,i){const o=this.getChildren(e);for(const e of o){const o=e.properties;if(o&&o.cluster?i+o.point_count<=a?i+=o.point_count:i=this._appendLeaves(t,o.cluster_id,r,a,i):i<a?i++:t.push(e),t.length===r)break}return i}_createTree(t,e){const r=new Z(e,this.options.nodeSize,Int32Array),a=this.stride;for(let i=0;i<e;i++)r.add(t[i*a],t[i*a+1]);return r.finish(),r.data=t,r}_addTileFeatures(t,e,r,a,i,o,n){for(const s of t){const t=s*this.stride,l=e[t+5]>1;let c,d,h;if(l)c=j(e,t,this.clusterProps),d=$(e[t]),h=$(e[t+1]);else{const r=e[t+3];c=this.props[r],d=this.coords[2*r],h=this.coords[2*r+1]}const u=Math.round(this.options.extent*(d*i-r)),m=Math.round(this.options.extent*(h*i-a)),p=n?{type:4,x:u,y:m,tags:c}:{type:1,geometry:[[u,m]],tags:c},f=e[t+3],g=l||this.options.generateId?f:this.ids?this.ids[f]:void 0;void 0!==g&&(p.id=g),o.features.push(p)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e,r,a){const{radius:i,extent:o,reduce:n,minPoints:s,maxZoom:l}=this.options,c=i/(o*(1<<r))*T,d=l+1,h=this.trees[r+1],u=this.stride,m=e*u,p=new Uint32Array(e);let f=0;for(let e=0;e<m;e+=u){if(t[e+2]<=r)continue;t[e+2]=r;const i=t[e],o=t[e+1],l=h.withinInto(i,o,c,p),m=t[e+5];let g=m;for(let e=0;e<l;e++){const a=p[e]*u;t[a+2]>r&&(g+=t[a+5])}if(g>m&&g>=s){let s,c=i*m,h=o*m,b=-1;const v=(e/u<<5)+(r+1)+this.numPoints;for(let a=0;a<l;a++){const i=p[a]*u;if(t[i+2]<=r)continue;t[i+2]=r;const o=t[i+5];c+=t[i]*o,h+=t[i+1]*o,t[i+4]=v,n&&(s||(s=this._map(t,e,!0),b=this.clusterProps.length,this.clusterProps.push(s)),n(s,this._map(t,i)))}t[e+4]=v,a[f]=c/g,a[f+1]=h/g,a[f+2]=d,a[f+3]=v,a[f+4]=-1,a[f+5]=g,n&&(a[f+6]=b),f+=u}else{for(let r=0;r<u;r++)a[f+r]=t[e+r];if(f+=u,g>1)for(let e=0;e<l;e++){const i=p[e]*u;if(!(t[i+2]<=r)){t[i+2]=r;for(let e=0;e<u;e++)a[f+e]=t[i+e];f+=u}}}}return f/u}_getOriginId(t){return t-this.numPoints>>5}_getOriginZoom(t){return(t-this.numPoints)%32}_featureJSON(t,e){const r=t[e+3],a=t[e+5]>1,i=a?r:this.ids?this.ids[r]:void 0,o={type:"Feature",properties:a?j(t,e,this.clusterProps):this.props[r],geometry:{type:"Point",coordinates:a?[Q($(t[e])),D($(t[e+1]))]:[Q(this.coords[2*r]),D(this.coords[2*r+1])]}};return void 0!==i&&(o.id=i),o}_map(t,e,r){if(t[e+5]>1){const a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}const a=this.props[t[e+3]],i=this.options.map(a);return r&&i===a?Object.assign({},i):i}}function j(t,e,r){const a=t[e+5],i=a>=1e4?Math.round(a/1e3)+"k":a>=1e3?Math.round(a/100)/10+"k":a,o=t[e+6],n=-1===o?{}:Object.assign({},r[o]);return Object.assign(n,{cluster:!0,cluster_id:t[e+3],point_count:a,point_count_abbreviated:i})}function F(t){return t/360+.5}function G(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function Q(t){return 360*(t-.5)}function D(t){return 360*Math.atan(Math.exp((180-360*t)*Math.PI/180))/Math.PI-90}const K=new Set(o),W=new Set(n),J=new Set(s),X=new Set(l),Y=new Set(c),H=new Set(d),tt=new Set(h);function et(t){return"object"==typeof t&&null!==t}function rt(t){return"string"==typeof t&&K.has(t)?t:"default"}function at(t,e){return"string"==typeof t&&e.has(t)?t:void 0}function it(t){if("string"!=typeof t)return;const e=t.trim();return e.length>0?e:void 0}function ot(t){return"number"==typeof t&&Number.isFinite(t)?t:void 0}function nt(t,e){if(!Array.isArray(t)||2!==t.length)return;const r=ot(t[0]),a=ot(t[1]);return void 0===r||void 0===a||e&&(r<=0||a<=0)?void 0:[r,a]}function st(t){return it(t)??u}function lt(t){return st(t.clusterGroup)}function ct(t){if(!et(t))return;const e=it(t.label),r="number"==typeof t.value&&Number.isFinite(t.value)?t.value:it(t.value);return e&&void 0!==r?{label:e,value:r,layout:at(t.layout,H)??"compact"}:void 0}function dt(t){if(!et(t)||!function(t){return"string"==typeof t&&t.trim().length>0||"number"==typeof t&&Number.isFinite(t)}(t.id))return;if("number"!=typeof t.latitude||!Number.isFinite(t.latitude)||t.latitude<-90||t.latitude>90)return;if("number"!=typeof t.longitude||!Number.isFinite(t.longitude)||t.longitude<-180||t.longitude>180)return;const e="string"==typeof t.label&&t.label.trim().length>0?t.label:t.id+"",r=it(t.imageUrl),a=nt(t.imageSize,!0),i=nt(t.imageAnchor,!1),o=it(t.fallbackText),n=it(t.icon),s=ot(t.iconSize),l=ot(t.iconOffsetX),c=ot(t.iconOffsetY),d=at(t.kind,W),h="icon"===d&&!n||"image"===d&&!r?"dot":d,u=at(t.size,X),m=at(t.ring,J),p=function(t){if(!et(t))return;const e=it(t.ariaLabel),r=it(t.icon),a=it(t.text);return e&&(r||a)?{ariaLabel:e,variant:rt(t.variant),...r?{icon:r}:{},...a?{text:a}:{}}:void 0}(t.badge),f=function(t){if(!et(t))return;const e=it(t.title);if(!e)return;const r=it(t.subtitle),a=it(t.meta),i=function(t){if(!Array.isArray(t))return;const e=t.map(ct).filter((t=>void 0!==t)).slice(0,6);return e.length>0?e:void 0}(t.stats),o=function(t){if(!et(t))return;const e=it(t.label);return e?{label:e,variant:rt(t.variant)}:void 0}(t.status),n=at(t.placement,Y)??"auto",s=at(t.visibility,tt)??"always";return{title:e,variant:rt(t.variant),placement:n,visibility:s,...r?{subtitle:r}:{},...a?{meta:a}:{},...i?{stats:i}:{},...o?{status:o}:{}}}(t.callout);return{id:t.id,latitude:t.latitude,longitude:t.longitude,label:e,clusterable:!1!==t.clusterable,clusterGroup:st(t.clusterGroup),variant:rt(t.variant),...r?{imageUrl:r}:{},...a?{imageSize:a}:{},...i?{imageAnchor:i}:{},...o?{fallbackText:o}:{},...h?{kind:h}:{},...n?{icon:n}:{},...void 0!==s?{iconSize:s}:{},...void 0!==l?{iconOffsetX:l}:{},...void 0!==c?{iconOffsetY:c}:{},...u?{size:u}:{},...m?{ring:m}:{},...!0===t.pulse?{pulse:!0}:{},...p?{badge:p}:{},...f?{callout:f}:{}}}function ht(t){return"number"==typeof t?"number:"+t:"string:"+t}function ut(t){const e=new Map;for(const r of function(t){if(Array.isArray(t))return t;try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}(t)){const t=dt(r);t&&e.set(ht(t.id),t)}return[...e.values()]}function mt(t,e,r){return Math.max(e,Math.min(r,Math.round(t)))}function pt(t,e){return`${e.radius}:${e.minPoints}:${e.maxZoom}:${t.map((t=>`${ht(t.id)}@${t.longitude},${t.latitude}`)).sort().join("|")}`}function ft(t){return"cluster"in t.properties&&!0===t.properties.cluster}function gt(t,e){const r=new V({radius:e.radius,minPoints:e.minPoints,maxZoom:e.maxZoom});return r.load(t.map((t=>({type:"Feature",geometry:{type:"Point",coordinates:[t.longitude,t.latitude]},properties:{markerKey:ht(t.id)}})))),r}class bt{clusterGroups=new Map;standaloneMarkers=new Map;load(t,e){const r=[...t].sort(((t,e)=>ht(t.id).localeCompare(ht(e.id))));this.standaloneMarkers.clear();const a=new Map;for(const t of r){const e=ht(t.id);if(!1===t.clusterable)this.standaloneMarkers.set(e,t);else{const e=lt(t),r=a.get(e)??[];r.push(t),a.set(e,r)}}const i=new Map,o=[...a].sort((([t],[e])=>t.localeCompare(e)));for(const[t,r]of o){const a=new Map(r.map((t=>[ht(t.id),t]))),o=pt(r,e),n=this.clusterGroups.get(t);i.set(t,{index:n?.signature===o?n.index:gt(r,e),markers:a,signature:o})}this.clusterGroups=i}getViewportItems(t,e,r){const a=void 0===r?void 0:ht(r),i=new Map;for(const[r,o]of this.clusterGroups)for(const n of o.index.getClusters(t,Math.max(0,Math.floor(e)))){if(!ft(n)){const t=o.markers.get(n.properties.markerKey);if(t){const e=ht(t.id);i.set(e,{kind:"marker",key:e,marker:t})}continue}const t=n.properties.cluster_id,e=o.index.getLeaves(t,1/0).map((t=>t.properties.markerKey)).filter((t=>o.markers.has(t))).sort(),s=e.map((t=>o.markers.get(t)?.id)).filter((t=>void 0!==t)),l=t+"",c=`cluster:${encodeURIComponent(r)}:${l}`;i.set(c,{kind:"cluster",key:c,clusterId:l,clusterGroup:r,markerIds:s,markerKeys:e,latitude:n.geometry.coordinates[1],longitude:n.geometry.coordinates[0],count:s.length,expansionZoom:o.index.getClusterExpansionZoom(t),containsSelection:void 0!==a&&e.includes(a)})}for(const[e,r]of this.standaloneMarkers)vt(r,t)&&i.set(e,{kind:"marker",key:e,marker:r});return[...i.values()].sort(((t,e)=>t.key.localeCompare(e.key)))}clear(){this.clusterGroups.clear(),this.standaloneMarkers.clear()}}function vt(t,[e,r,a,i]){return t.longitude>=e&&t.longitude<=a&&t.latitude>=r&&t.latitude<=i}function kt(t){return t.x+t.offset.x}function yt(t){return t.y+t.offset.y}function qt(t,e){let r=2166136261;for(const a of`${t}\0${e}`)r^=a.charCodeAt(0),r=Math.imul(r,16777619);const a=(r>>>0)%360*(Math.PI/180);return{x:Math.cos(a),y:Math.sin(a)}}const wt=["kind-dot","kind-avatar","kind-icon","kind-image"],xt=["ring-none","ring-solid","ring-dashed"];function Mt(t,e){const r=t.createElement("q-icon");return r.className=e,r.setAttribute("size","100%"),r.setAttribute("aria-hidden","true"),r}function _t(t,e){t.hidden=!e,e?t.setAttribute("name",e):t.removeAttribute("name")}function zt(t,e){const r=t.parentElement,a="image"===t.dataset.markerKind,i=a&&!e.hidden;if(i?(t.classList.add("kind-image"),r?.classList.add("is-image")):(t.classList.remove("kind-image"),r?.classList.remove("is-image")),!a)return;if(t.classList.toggle("kind-dot",!i),t.classList.toggle("has-content",i),!i||!r)return;const o=e.naturalWidth||32,n=e.naturalHeight||32,s=Math.min(1,48/o,48/n),l=Number(e.dataset.width)||o*s,c=Number(e.dataset.height)||n*s,d=void 0===e.dataset.anchorX?l/2:Number(e.dataset.anchorX),h=void 0===e.dataset.anchorY?c:Number(e.dataset.anchorY);r.style.setProperty("--q-map-image-width",l+"px"),r.style.setProperty("--q-map-image-height",c+"px"),r.style.setProperty("--q-map-image-anchor-x",d+"px"),r.style.setProperty("--q-map-image-anchor-y",h+"px")}function Ct(t,e,r){Number.isFinite(r)?t.style.setProperty(e,(Object.is(r,-0)?0:r)+"px"):t.style.removeProperty(e)}const Lt=l.map((t=>At(t)));class Pt{options;layers=new Map;markers=new Map;clusterIndex=new bt;visibleItems=new Map;pendingFocusMarkerKey;markerResizeObserver;collisionFrame;handleViewportChange=()=>this.reconcile();constructor(t){this.options=t,t.map.on("moveend zoomend",this.handleViewportChange),"undefined"!=typeof ResizeObserver&&(this.markerResizeObserver=new ResizeObserver((()=>{void 0===this.collisionFrame&&(this.collisionFrame=requestAnimationFrame((()=>{this.collisionFrame=void 0,this.syncCollisionOffsets([...this.visibleItems.values()])})))})))}sync(t){const e=ut(t);this.markers.clear();for(const t of e)this.markers.set(ht(t.id),t);const r=this.options.getClusteringOptions();r.enabled?this.clusterIndex.load(e,r):this.clusterIndex.clear(),this.reconcile()}syncSelection(){this.reconcile()}getVisibilityTarget(t){const e=ht(t),r=this.markers.get(e);if(!r)return;const a=this.layers.get(e);if("marker"===a?.kind)return{latitude:r.latitude,longitude:r.longitude,rendered:{kind:a.kind,element:a.element}};for(const t of this.layers.values())if(t.markerKeys.includes(e))return{latitude:r.latitude,longitude:r.longitude,rendered:{kind:t.kind,element:t.element}};return{latitude:r.latitude,longitude:r.longitude}}destroy(){this.markerResizeObserver?.disconnect(),void 0!==this.collisionFrame&&cancelAnimationFrame(this.collisionFrame),this.collisionFrame=void 0,this.options.map.off("moveend zoomend",this.handleViewportChange);for(const t of[...this.layers.keys()])this.remove(t);this.visibleItems.clear(),this.markers.clear(),this.clusterIndex.clear()}reconcile(){const t=this.captureFocusIntent(),e=this.getVisibleItems();this.visibleItems=new Map(e.map((t=>[t.key,t])));for(const t of[...this.layers.keys()])this.visibleItems.has(t)||this.remove(t);for(const t of e){const e=this.layers.get(t.key);e&&e.kind!==t.kind&&this.remove(t.key);const r=this.layers.get(t.key)??this.add(t);r&&this.update(r,t)}this.syncCollisionOffsets(e);const r=t&&this.layers.get(t.renderKey)?.element===t.element;this.pendingFocusMarkerKey?this.restoreFocus(this.pendingFocusMarkerKey)&&(this.pendingFocusMarkerKey=void 0):t&&!r&&(this.restoreFocus(t.markerKey)||this.options.map.getContainer().focus())}getVisibleItems(){if(!this.options.getClusteringOptions().enabled)return[...this.markers].map((([t,e])=>({kind:"marker",key:t,marker:e})));const t=this.options.map.getBounds().pad(.2),e=Math.max(-90,t.getSouth()),r=Math.min(90,t.getNorth()),a=Math.max(-180,t.getWest()),i=Math.min(180,t.getEast());return this.clusterIndex.getViewportItems(i>a?[a,e,i,r]:[-180,e,180,r],this.options.map.getZoom(),this.options.getSelectedMarkerId())}add(t){const e=this.options.map.getContainer().ownerDocument,r="marker"===t.kind?function(t){const e=t.createElement("span");e.className="q-map-marker",e.setAttribute("part","marker");const r=t.createElement("span");r.className="q-map-marker__content",r.setAttribute("aria-hidden","true");const a=t.createElement("span");a.className="q-map-marker__center";const i=t.createElement("span");i.className="q-map-marker__fallback",i.hidden=!0;const o=t.createElement("img");o.className="q-map-marker__image",o.alt="",o.decoding="async",o.draggable=!1,o.hidden=!0,o.setAttribute("aria-hidden","true"),o.addEventListener("load",(()=>{o.dataset.source===o.getAttribute("src")&&("image"===e.dataset.markerKind&&(!o.complete||o.naturalWidth<=0)||(o.hidden=!1,a.classList.add("has-image"),zt(e,o)))})),o.addEventListener("error",(()=>{o.dataset.source===o.getAttribute("src")&&("image"===e.dataset.markerKind&&(!o.complete||o.naturalWidth>0)||(o.hidden=!0,a.classList.remove("has-image"),zt(e,o)))}));const n=Mt(t,"q-map-marker__icon");n.hidden=!0;const s=t.createElement("span");s.className="q-map-marker__badge",s.setAttribute("part","marker-badge"),s.hidden=!0;const l=Mt(t,"q-map-marker__badge-icon");l.hidden=!0;const c=t.createElement("span");return c.className="q-map-marker__badge-text",c.hidden=!0,a.append(i,o,n),s.append(l,c),r.append(a,s),e.append(r),e}(e):function(t){const e=t.createElement("span");e.className="q-map-cluster",e.setAttribute("part","cluster");const r=t.createElement("span");r.className="q-map-cluster__content",r.setAttribute("aria-hidden","true");const a=t.createElement("span");return a.className="q-map-cluster__count",r.append(a),e.append(r),e}(e),a="marker"===t.kind?"q-map-marker-position":"q-map-cluster-position",i="marker"===t.kind?t.marker.label:t.count+" map markers",o=this.options.leaflet.marker([this.getLatitude(t),this.getLongitude(t)],{bubblingMouseEvents:!1,icon:this.options.leaflet.divIcon({className:a,html:r,iconAnchor:[0,0],iconSize:[0,0]}),keyboard:!1,riseOnHover:!0,riseOffset:1e3,title:i,zIndexOffset:this.getZIndexOffset(t)});o.addTo(this.options.map);const n=o.getElement();n&&this.markerResizeObserver?.observe(n);const s=o.getElement();if(!s)return void o.remove();if(!s.contains(r))return void o.remove();const l=e=>{e.stopPropagation(),this.activate(t.key,e)},c=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),this.activate(t.key,e))};r.addEventListener("click",l),r.addEventListener("keydown",c);const d={kind:t.kind,layer:o,element:r,markerKeys:[],click:l,keydown:c};return this.layers.set(t.key,d),d}update(t,e){if(t.layer.setLatLng([this.getLatitude(e),this.getLongitude(e)]),t.layer.setZIndexOffset(this.getZIndexOffset(e)),t.markerKeys="marker"===e.kind?[ht(e.marker.id)]:e.markerKeys,"marker"===e.kind){const r=this.isSelected(e.marker.id);return this.syncMarkerSize(t,e.marker.size),function(t,e,r){for(const e of o)t.classList.remove("variant-"+e);t.classList.remove(...wt,...xt),t.classList.add("variant-"+(e.variant??"default"),"ring-"+(e.ring??"none"));const a="icon"!==e.kind||e.icon?e.kind:"dot";a&&t.classList.add("kind-"+a),t.dataset.markerKind=a??"",t.classList.toggle("is-pulsing",!0===e.pulse),t.classList.toggle("is-selected",r),Ct(t,"--q-map-marker-icon-size",e.iconSize),Ct(t,"--q-map-marker-icon-offset-x",e.iconOffsetX),Ct(t,"--q-map-marker-icon-offset-y",e.iconOffsetY);const i=t.querySelector(".q-map-marker__center"),n=i?.querySelector(".q-map-marker__fallback"),s=i?.querySelector(".q-map-marker__image"),l=i?.querySelector(".q-map-marker__icon");if(!(i&&n&&s&&l))return;const c="avatar"===a||void 0===a,d=c?e.fallbackText??"":"",h=c||"image"===a?e.imageUrl:void 0,u="icon"===a?e.icon:void 0;n.textContent=d,n.hidden=!d;for(const[t,r]of Object.entries({width:e.imageSize?.[0],height:e.imageSize?.[1],anchorX:e.imageAnchor?.[0],anchorY:e.imageAnchor?.[1]}))void 0===r?delete s.dataset[t]:s.dataset[t]=r+"";!function(t,e,r){if(!r)return e.hidden=!0,e.removeAttribute("src"),delete e.dataset.source,void t.classList.remove("has-image");e.dataset.source!==r&&(e.hidden=!0,t.classList.remove("has-image"),e.dataset.source=r,e.src=r)}(i,s,h),_t(l,u),t.classList.toggle("has-content",!!(d||h||u)),zt(t,s);const m=t.querySelector(".q-map-marker__badge"),p=m?.querySelector(".q-map-marker__badge-icon"),f=m?.querySelector(".q-map-marker__badge-text");if(m&&p&&f){for(const t of o)m.classList.remove("variant-"+t);m.hidden=!e.badge,m.classList.add("variant-"+(e.badge?.variant??"default")),_t(p,e.badge?.icon),f.textContent=e.badge?.text??"",f.hidden=!e.badge?.text}}(t.element,e.marker,r),t.element.setAttribute("role","button"),t.element.setAttribute("tabindex","0"),t.element.setAttribute("aria-label",function(t){return t.badge?`${t.label}. ${t.badge.ariaLabel}`:t.label}(e.marker)),t.element.setAttribute("aria-pressed",r?"true":"false"),t.element.setAttribute("data-marker-id",e.key),t.element.setAttribute("title",e.marker.label),void this.syncCallout(t,e.marker,r)}this.unbindCallout(t),function(t,e,r){const a=t.querySelector(".q-map-cluster__count");a&&(a.textContent=e>999?Math.floor(e/100)/10+"k":e+""),t.classList.toggle("contains-selection",r)}(t.element,e.count,e.containsSelection),t.element.setAttribute("role","button"),t.element.setAttribute("tabindex","0"),t.element.setAttribute("aria-label",`${e.count} map markers${e.containsSelection?", including the selected marker":""}`),t.element.setAttribute("part","cluster "+function(t){return"cluster-group-"+(t.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"default")}(e.clusterGroup)),t.element.setAttribute("data-cluster-id",e.clusterId),t.element.setAttribute("data-cluster-group",e.clusterGroup),t.element.setAttribute("title",e.count+" map markers"),t.element.removeAttribute("aria-pressed")}getZIndexOffset(t){return"marker"===t.kind&&!1===t.marker.clusterable?2e3:0}syncMarkerSize(t,e){const r=t.layer.getElement();r&&(r.classList.remove(...Lt),e&&r.classList.add(At(e)))}syncCollisionOffsets(t){const e=[];for(const r of t){const t=this.layers.get(r.key);if(!t||t.kind!==r.kind)continue;const a=this.options.map.latLngToContainerPoint([this.getLatitude(r),this.getLongitude(r)]),i=t.layer.getElement(),o=i?.getBoundingClientRect();e.push({key:r.key,x:a.x,y:a.y,diameter:Math.max(o?.width??0,o?.height??0)||("cluster"===r.kind?32:20)})}const r=function(t){const e=t.filter((t=>Number.isFinite(t.x)&&Number.isFinite(t.y)&&Number.isFinite(t.diameter)&&t.diameter>0)).map((t=>({...t,collisionRadius:.75*t.diameter*.5,offset:{x:0,y:0}}))).sort(((t,e)=>t.key.localeCompare(e.key))),r=Math.max(0,...e.map((t=>t.collisionRadius)));for(let t=0;t<12;t+=1){let t=!1;const a=[...e].sort(((t,e)=>kt(t)-kt(e)||yt(t)-yt(e)||t.key.localeCompare(e.key)));for(let e=0;e<a.length;e+=1){const i=a[e];if(i)for(let o=e+1;o<a.length;o+=1){const e=a[o];if(!e)continue;if(kt(e)-kt(i)>=i.collisionRadius+r)break;const n=kt(e)-kt(i),s=yt(e)-yt(i),l=Math.hypot(n,s),c=i.collisionRadius+e.collisionRadius;if(l+.01>=c)continue;const d=l>.01?{x:n/l,y:s/l}:qt(i.key,e.key),h=.5*(c-l);i.offset.x-=d.x*h,i.offset.y-=d.y*h,e.offset.x+=d.x*h,e.offset.y+=d.y*h,t=!0}}if(!t)break}return new Map(e.map((t=>[t.key,t.offset])))}(e);for(const t of e){const e=this.layers.get(t.key);if(!e)continue;const a=r.get(t.key);!a||Math.abs(a.x)<.01&&Math.abs(a.y)<.01?(e.element.style.removeProperty("translate"),this.syncCalloutCollisionOffset(e,0,0)):(e.element.style.setProperty("translate",`${Zt(a.x)}px ${Zt(a.y)}px`),this.syncCalloutCollisionOffset(e,a.x,a.y))}}syncCalloutCollisionOffset(t,e,r){const a=t.layer.getTooltip();if(!a)return;const i=Zt(e),o=Zt(r),n=`${i}:${o}`;t.calloutCollisionOffset===n||void 0===t.calloutCollisionOffset&&0===i&&0===o||(t.calloutCollisionOffset=n,a.options.offset=this.options.leaflet.point(i,o),a.update())}syncCallout(t,e,r){const a=e.callout;if(!a||!a||"selected"===a.visibility&&!r)return void this.unbindCallout(t);const i=a.placement??"auto";t.calloutBound&&t.calloutPlacement!==i&&this.unbindCallout(t),t.calloutContent??=function(t){const e=t.createElement("div");e.className="q-map-callout__content",e.setAttribute("aria-hidden","true");const r=t.createElement("span");r.className="q-map-callout__heading";const a=t.createElement("span");a.className="q-map-callout__title";const i=t.createElement("span");i.className="q-map-callout__status",i.hidden=!0;const o=t.createElement("span");o.className="q-map-callout__subtitle",o.hidden=!0;const n=t.createElement("span");n.className="q-map-callout__meta",n.hidden=!0;const s=t.createElement("dl");return s.className="q-map-callout__stats",s.hidden=!0,r.append(a,i),e.append(r,o,n,s),e}(t.element.ownerDocument),function(t,e){const r=t.querySelector(".q-map-callout__title"),a=t.querySelector(".q-map-callout__subtitle"),i=t.querySelector(".q-map-callout__status"),n=t.querySelector(".q-map-callout__meta"),s=t.querySelector(".q-map-callout__stats");if(r&&a&&i&&n&&s){for(const e of o)t.classList.remove("variant-"+e);t.classList.add("variant-"+(e.variant??"default")),r.textContent=e.title,a.textContent=e.subtitle??"",a.hidden=!e.subtitle;for(const t of o)i.classList.remove("variant-"+t);i.classList.add("variant-"+(e.status?.variant??"default")),i.textContent=e.status?.label??"",i.hidden=!e.status,n.textContent=e.meta??"",n.hidden=!e.meta,function(t,e){const r=e.map((e=>{const r=t.ownerDocument.createElement("div");r.className="q-map-callout__stat layout-"+(e.layout??"compact");const a=t.ownerDocument.createElement("dt");a.className="q-map-callout__stat-label",a.textContent=e.label;const i=t.ownerDocument.createElement("dd");return i.className="q-map-callout__stat-value",i.textContent=e.value+"",r.append(a,i),r}));t.textContent="",t.append(...r),t.hidden=0===r.length}(s,e.stats??[])}}(t.calloutContent,a),t.calloutPlacement=i,t.calloutBound||(t.layer.bindTooltip(t.calloutContent,{className:"q-map-callout",direction:i,interactive:!1,opacity:1,permanent:!0}),t.calloutBound=!0),t.layer.setTooltipContent(t.calloutContent),t.layer.openTooltip();const n=t.layer.getTooltip()?.getElement();n?.setAttribute("part","marker-callout"),n?.setAttribute("aria-hidden","true")}unbindCallout(t){t.calloutBound&&(t.layer.unbindTooltip(),t.calloutBound=!1,t.calloutCollisionOffset=void 0)}activate(t,e){const r=this.visibleItems.get(t);r&&("marker"!==r.kind?this.activateCluster(r,e):this.options.onMarkerSelect(r.marker,e))}activateCluster(t,e){const r=Math.min(this.options.map.getMaxZoom(),Math.max(this.options.map.getZoom()+1,t.expansionZoom));if(!this.options.onClusterSelect({clusterId:t.clusterId,clusterGroup:t.clusterGroup,markerIds:t.markerIds,latitude:t.latitude,longitude:t.longitude,expansionZoom:r,originalEvent:e})){if(e instanceof KeyboardEvent){const e=this.options.getSelectedMarkerId(),r=void 0===e?void 0:ht(e);this.pendingFocusMarkerKey=r&&t.markerKeys.includes(r)?r:t.markerKeys[0]}this.options.map.setView([t.latitude,t.longitude],r,{animate:!this.options.prefersReducedMotion()})}}captureFocusIntent(){for(const[t,e]of this.layers){if(e.element.getRootNode().activeElement!==e.element)continue;const r=this.options.getSelectedMarkerId(),a=void 0===r?void 0:ht(r);return{element:e.element,renderKey:t,markerKey:a&&e.markerKeys.includes(a)?a:e.markerKeys[0]}}}restoreFocus(t){const e=this.layers.get(t);if("marker"===e?.kind)return e.element.focus(),!0;for(const e of this.layers.values())if("cluster"===e.kind&&e.markerKeys.includes(t))return e.element.focus(),!0;return!1}isSelected(t){const e=this.options.getSelectedMarkerId();return void 0!==e&&ht(e)===ht(t)}getLatitude(t){return"marker"===t.kind?t.marker.latitude:t.latitude}getLongitude(t){return"marker"===t.kind?t.marker.longitude:t.longitude}remove(t){const e=this.layers.get(t);if(!e)return;const r=e.layer.getElement();r&&this.markerResizeObserver?.unobserve(r),e.element.removeEventListener("click",e.click),e.element.removeEventListener("keydown",e.keydown),this.unbindCallout(e),e.layer.remove(),this.layers.delete(t)}}function At(t){return"size-"+t}function Zt(t){return Math.round(100*t)/100}const Bt=.01;function Et(t,e,r){const a=It(t),i=It(e);if(!a||!i)return;if(Ut(a)>Ut(i)+Bt||Tt(a)>Tt(i)+Bt)return;const o=r.map(It).filter((t=>void 0!==t)).map((t=>function(t,e){return It({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)})}(t,i))).filter((t=>void 0!==t)),n=new Set([0,i.left-a.left,i.right-a.right]),s=new Set([0,i.top-a.top,i.bottom-a.bottom]);for(const t of o)n.add(t.left-a.right),n.add(t.right-a.left),s.add(t.top-a.bottom),s.add(t.bottom-a.top);let l,c=1/0;for(const t of n)for(const e of s){const r=$t(a,t,e);if(!Vt(i,r))continue;if(o.some((t=>jt(r,t))))continue;const n=t*t+e*e;n+Bt<c&&(l={x:t,y:e},c=n)}return l}function St(t,e,r){const a=It(t),i=It(e);return!(!a||!i||!Vt(i,a)||r.some((t=>{const e=It(t);return!!e&&jt(a,e)})))}function Nt(t,e){const r=Ot(t.getBoundingClientRect());if("marker"===e){const e=Math.max(function(t){if(!t.classList.contains("ring-solid")&&!t.classList.contains("ring-dashed"))return 0;const e=t.ownerDocument.defaultView;if(!e)return 7;const r=e.getComputedStyle(t,"::after"),a=[r.top,r.right,r.bottom,r.left].map((t=>Number.parseFloat(t))).filter(Number.isFinite).map((t=>Math.max(0,-t)));return Math.max(7,...a)}(t),t.classList.contains("is-selected")?3:0);let a=Rt(r,e);const i=t.querySelector(".q-map-marker__badge:not([hidden])");return i&&(a=function(t,e){return{top:Math.min(t.top,e.top),right:Math.max(t.right,e.right),bottom:Math.max(t.bottom,e.bottom),left:Math.min(t.left,e.left)}}(a,Ot(i.getBoundingClientRect()))),a}return Rt(r,t.classList.contains("contains-selection")?7:4)}function It(t){const{top:e,right:r,bottom:a,left:i}=t;if([e,r,a,i].every(Number.isFinite)&&!(r<=i||a<=e))return{top:e,right:r,bottom:a,left:i}}function Ut(t){return t.right-t.left}function Tt(t){return t.bottom-t.top}function Ot(t){return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}}function Rt(t,e){return{top:t.top-e,right:t.right+e,bottom:t.bottom+e,left:t.left-e}}function $t(t,e,r){return{top:t.top+r,right:t.right+e,bottom:t.bottom+r,left:t.left+e}}function Vt(t,e){return e.left>=t.left-Bt&&e.top>=t.top-Bt&&e.right<=t.right+Bt&&e.bottom<=t.bottom+Bt}function jt(t,e){return t.left<e.right-Bt&&t.right>e.left+Bt&&t.top<e.bottom-Bt&&t.bottom>e.top+Bt}function Ft(t){return Number.isFinite(t)?Math.min(4,Math.max(0,Math.round(t))):0}const Gt=1e4;function Qt(){const t=Error("Raster tile loading was cancelled.");return t.name="AbortError",t}function Dt(t){return Number.isFinite(t)?Math.max(0,Math.min(.5,t)):.2}const Kt=["roadmap","satellite","terrain","hybrid"],Wt=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.qReady=a(this,"qReady"),this.qMapClick=a(this,"qMapClick"),this.qMarkerSelect=a(this,"qMarkerSelect"),this.qClusterSelect=a(this,"qClusterSelect"),this.qStatusChange=a(this,"qStatusChange"),this.qError=a(this,"qError")}get el(){return this}attribution="";attributionUrl="";markers=[];clusterMarkers=!1;clusterRadius=48;clusterMinPoints=2;clusterMaxZoom;centerLatitude=0;centerLongitude=0;zoom=2;zoomControls=!0;scrollWheelZoom=!0;minZoom=0;maxZoom=19;maxBounds;maxBoundsViscosity=1;selectedMarkerId;provider="tiles";tileUrl="";tilePreloadBuffer=0;rasterTileLoadingPolicy="full-batch";vectorStyleUrl="";vectorPadding=.2;googleApiKey="";googleMapType="roadmap";ariaLabel="Interactive map";qReady;qMapClick;qMarkerSelect;qClusterSelect;qStatusChange;qError;providerStatus="initializing";activeProvider;usingFallback=!1;errorMessage;leaflet;map;canvas;resizeObserver;initializationToken=0;markerVisibilityToken=0;cancelMarkerVisibilityPan;layerController;markerController;lastInvalidBoundsInput;reportedRequestedProvider;baseLayerSyncQueued=!1;hasLoaded=!1;connected=!1;connectedCallback(){this.connected=!0,this.hasLoaded&&this.initializeMap()}componentDidLoad(){this.hasLoaded=!0,this.initializeMap()}disconnectedCallback(){this.connected=!1,this.initializationToken+=1,this.destroyMap()}async fitMarkers(t={}){const e=this.map,r=ut(this.markers);if(!e||!this.connected||0===r.length)return!1;e.invalidateSize({animate:!1,pan:!1});const a=e.getSize();if(a.x<=0||a.y<=0)return!1;const{minimum:i,maximum:o}=this.getZoomLimits(),n=Number.isFinite(t.maxZoom)?Math.max(i,Math.min(o,t.maxZoom)):o,s=Math.min(Number.isFinite(t.padding)?Math.max(0,t.padding):0,Math.max(0,(Math.min(a.x,a.y)-1)/2));return this.markerVisibilityToken+=1,this.cancelMarkerVisibilityPan?.(),this.markerController?.sync(this.markers),e.fitBounds(r.map((t=>[t.latitude,t.longitude])),{animate:!1,padding:[s,s],maxZoom:n}),!0}async ensureMarkerVisible(t,e){const r=++this.markerVisibilityToken;if(this.cancelMarkerVisibilityPan?.(),!this.isMarkerVisibilityCurrent(r))return"unavailable";let a=!1;for(let i=0;i<3;i+=1){if(!this.isMarkerVisibilityCurrent(r))return"unavailable";const i=this.map,o=this.canvas,n=this.markerController;if(!i||!o||!n)return"unavailable";const s=n.getVisibilityTarget(t);if(!s)return"unavailable";const l=this.toViewportRect(o.getBoundingClientRect()),c=this.getMarkerVisibilityOcclusions(e),d=s.rendered?Nt(s.rendered.element,s.rendered.kind):this.getCoordinateRect(s.latitude,s.longitude,l);if(s.rendered&&St(d,l,c))return a?"panned":"visible";const h=Et(d,l,c);if(!h)return"constrained";if(Math.abs(h.x)<.01&&Math.abs(h.y)<.01){if(n.syncSelection(),!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.waitForMarkerLayout(),!this.isMarkerVisibilityCurrent(r))return"unavailable"}else{if(!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.panByMarkerTranslation(i,h.x,h.y,r),!this.isMarkerVisibilityCurrent(r))return"unavailable";if(a=!0,!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.waitForMarkerLayout(),!this.isMarkerVisibilityCurrent(r))return"unavailable"}}if(!this.isMarkerVisibilityCurrent(r))return"unavailable";const i=this.map,o=this.canvas,n=this.markerController?.getVisibilityTarget(t);if(!i||!o||!n)return"unavailable";if(!n.rendered)return"constrained";const s=this.toViewportRect(o.getBoundingClientRect());return St(Nt(n.rendered.element,n.rendered.kind),s,this.getMarkerVisibilityOcclusions(e))?a?"panned":"visible":"constrained"}handleBaseLayerChange(){this.scheduleBaseLayerSync()}handleTilePreloadBufferChange(){const t=this.getProvider(),e=this.layerController?.getActiveState().activeProvider;(function(t,e){return"tiles"===t||"tiles"===e})(t,e)&&this.scheduleBaseLayerSync()}handleVectorPaddingChange(){const t=this.getProvider(),e=this.layerController?.getActiveState().activeProvider;(function(t,e){return"vector"===t||"vector"===e})(t,e)&&this.scheduleBaseLayerSync()}scheduleBaseLayerSync(){this.map?this.baseLayerSyncQueued||(this.baseLayerSyncQueued=!0,queueMicrotask((()=>{this.baseLayerSyncQueued=!1,this.connected&&this.map&&this.syncBaseLayer()}))):this.initializeMap()}handleMarkersChange(){this.markerController?.sync(this.markers)}handleMarkerClusteringChange(){this.markerController?.sync(this.markers)}handleSelectedMarkerChange(){this.markerController?.syncSelection()}handleViewChange(){this.syncView(!0)}handleZoomLimitsChange(){if(!this.map)return;const{minimum:t,maximum:e}=this.getZoomLimits();this.map.setMinZoom(t),this.map.setMaxZoom(e),this.syncView(),this.syncBaseLayer(),this.markerController?.sync(this.markers)}handleBoundsChange(){this.syncBounds(!0)}handleScrollWheelZoomChange(){this.scrollWheelZoom?this.map?.scrollWheelZoom.enable():this.map?.scrollWheelZoom.disable()}handleZoomControlsChange(){this.map&&(this.destroyMap(),this.initializeMap())}setCanvas=t=>{this.canvas=t??void 0};handleMapClick=t=>{this.qMapClick.emit({latitude:t.latlng.lat,longitude:t.latlng.lng,originalEvent:t.originalEvent})};async initializeMap(){if(this.map||!this.canvas||!this.connected||"undefined"==typeof window)return;const t=++this.initializationToken;this.setProviderStatus("initializing",void 0,!1,!0);try{const e=this.leaflet??await import("./p-DYMWBqU1.js").then((function(t){return t.L}));if(this.leaflet=e,t!==this.initializationToken||!this.canvas||!this.connected||!this.el.isConnected)return;const{minimum:r,maximum:a}=this.getZoomLimits(),i=k(this.maxBounds),o=!this.prefersReducedMotion();if(this.map=e.map(this.canvas,{attributionControl:!1,fadeAnimation:o,inertia:!1,keyboard:!0,markerZoomAnimation:o,maxBounds:y(i),maxBoundsViscosity:q(this.maxBoundsViscosity),maxZoom:a,minZoom:r,trackResize:!1,wheelDebounceTime:o?16:40,wheelPxPerZoomLevel:o?120:60,zoomAnimation:o,zoomControl:this.zoomControls,scrollWheelZoom:this.scrollWheelZoom,zoomDelta:o?.5:1,zoomSnap:o?.25:1}),"invalid"===i.kind?this.reportInvalidBounds(i.message):this.lastInvalidBoundsInput=void 0,this.bindMapEvents(this.map),this.createControllers(this.map,e),this.syncView(),await this.syncBaseLayer(),t!==this.initializationToken||!this.map||!this.connected)return;this.markerController?.sync(this.markers),this.observeResize(),this.map.invalidateSize({animate:!1,pan:!0}),this.qReady.emit()}catch(e){if(t!==this.initializationToken)return;this.destroyMap(),this.errorMessage="Map failed to initialize.",this.setProviderStatus("error",void 0,!1),this.reportError("leaflet-initialization-failed",e,!1)}}bindMapEvents(t){t.on("click",this.handleMapClick)}unbindMapEvents(t){t.off("click",this.handleMapClick)}createControllers(t,e){this.layerController=new p({attach:async(e,r,a)=>{if("tiles"===r){const r=e;a.replacing?await function(t,e={}){const{loadingPolicy:r="full-batch",signal:a,startLoading:i,timeoutMs:o=Gt}=e;return new Promise(((e,n)=>{if(a?.aborted)return void n(Qt());let s,l=!1;const c=r=>{l||(l=!0,t.off("load",d),t.off("tileload",h),t.off("tileerror",u),a?.removeEventListener("abort",m),void 0!==s&&clearTimeout(s),r?n(r):e())},d=()=>"full-batch"===r?c():c(Error("Raster tiles failed to load.")),h=()=>{"progressive"===r&&c()},u=()=>{"full-batch"===r&&c(Error("Raster tiles failed to load."))},m=()=>c(Qt());if(t.on("load",d),t.on("tileload",h),t.on("tileerror",u),a?.addEventListener("abort",m,{once:!0}),s=setTimeout((()=>c(Error("Raster tile loading timed out."))),Math.max(0,o)),i)try{i(),t.isLoading()||c()}catch(t){c(function(t){return t instanceof Error?t:Error(t+"")}(t))}}))}(r,{loadingPolicy:this.getRasterTileLoadingPolicy(),signal:a.signal,startLoading:()=>e.addTo(t)}):e.addTo(t)}else e.addTo(t);"vector"===r&&await function(t){const e=t.getMaplibreMap;if("function"!=typeof e)return Promise.reject(Error("QMap: the vector layer did not expose its MapLibre map."));const r=e.call(t);return r.loaded()?Promise.resolve():new Promise(((t,e)=>{const a=()=>n(t),i=t=>{n((()=>e(t.error??Error("QMap: the vector style failed to load."))))},o=window.setTimeout((()=>{n((()=>e(Error("QMap: the vector style timed out while loading."))))}),15e3),n=t=>{window.clearTimeout(o),r.off("load",a),r.off("error",i),t()};r.on("load",a),r.on("error",i)}))}(e)},createGoogle:async t=>(await function(t){if("undefined"==typeof window||"undefined"==typeof document)return Promise.reject(Error("QMap: Google Maps is only available in a browser environment."));if(C())return Promise.resolve();const e=t.trim(),r=window.google?.maps?.importLibrary;return x?w&&e&&w!==e?Promise.reject(Error("QMap: Google Maps is already loading with a different API key.")):x:r?(x=function(t){return x=t("maps").then((()=>L())).catch((t=>{throw x=void 0,Error("QMap: Google Maps failed to load.",{cause:t})})),x}(r),x):e?(w=e,x=function(t){const e=window,r=e.google,a=r?.maps,i="__webquarkGoogleMapsReady"+ ++z,o=e,n=document.createElement("script"),s=new URLSearchParams({callback:i,key:t,loading:"async",v:"quarterly"});n.async=!0,n.defer=!0,n.src="https://maps.googleapis.com/maps/api/js?"+s,n.dataset.webquarkGoogleMaps="true";const l=document.querySelector("script[nonce]")?.nonce;return l&&(n.nonce=l),new Promise(((t,s)=>{const l=t=>{delete o[i],n.onerror=null,t&&(n.remove(),function(t,e,r){e?(t.google=e,r?e.maps=r:delete e.maps):delete t.google}(e,r,a))};o[i]=()=>{try{L(),l(!1),t()}catch(t){l(!0),s(t)}},n.onerror=()=>{l(!0),s(Error("The Google Maps script could not be loaded."))},document.head.append(n)}))}(e).catch((t=>{throw w=void 0,x=void 0,Error("QMap: Google Maps failed to load.",{cause:t})})),x):Promise.reject(Error("QMap: A Google Maps API key is required."))}(t.googleApiKey),new(await function(t){return M||(M=async function(t){if("undefined"==typeof window)throw Error("QMap: GoogleMutant is only available in a browser environment.");const e=globalThis,r=t.gridLayer,a=Object.prototype.hasOwnProperty,i=a.call(e,"L"),o=e.L,n=a.call(r,"googleMutant"),s=r.googleMutant;e.L=t;try{const t=await import("./p-DuX-9GOi.js");if("function"!=typeof t.default)throw Error("QMap: GoogleMutant did not expose its default constructor.");return t.default}finally{n?r.googleMutant=s:delete r.googleMutant,i?e.L=o:delete e.L}}(t).catch((t=>{throw M=void 0,t}))),M}(e))({type:t.googleMapType,minZoom:t.minZoom,maxZoom:t.maxZoom})),createTiles:t=>{const r=this.getRasterTileLoadingPolicy();return f(e,t.tileUrl,function(t,e,r,a="full-batch"){return{attribution:"",minZoom:t,maxZoom:e,..."progressive"===a?{updateWhenZooming:!0}:{},...r>0?{updateInterval:50,updateWhenIdle:!1,updateWhenZooming:!0}:{}}}(t.minZoom,t.maxZoom,t.tilePreloadBuffer,r),t.tilePreloadBuffer,r)},createVector:async t=>(await function(t){return _||(_=async function(t){if("undefined"==typeof window)throw Error("QMap: the vector provider is only available in a browser environment.");await import("./p-C_RztzNv.js");const e=t.maplibreGL;if("function"!=typeof e)throw Error("QMap: MapLibre did not register its Leaflet layer factory.");return e}(t).catch((t=>{throw _=void 0,t}))),_}(e))({attributionControl:!1,fadeDuration:750,interactive:!1,maxTileCacheZoomLevels:6,maxZoom:t.maxZoom,minZoom:t.minZoom,padding:t.vectorPadding,style:t.vectorStyleUrl,updateInterval:16})}),this.markerController=new Pt({map:t,leaflet:e,getSelectedMarkerId:()=>this.selectedMarkerId,getClusteringOptions:()=>function(t,e,r,a,i){const o=Number.isFinite(i)?Math.max(0,Math.floor(i)):19;return{enabled:t,radius:Number.isFinite(e)?mt(e,1,200):48,minPoints:Number.isFinite(r)?mt(r,2,1e3):2,maxZoom:Number.isFinite(a)?mt(a,0,o):Math.max(0,o-1)}}(this.clusterMarkers,this.clusterRadius,this.clusterMinPoints,this.clusterMaxZoom,t.getMaxZoom()),prefersReducedMotion:()=>this.prefersReducedMotion(),onMarkerSelect:(t,e)=>this.qMarkerSelect.emit({marker:t,originalEvent:e}),onClusterSelect:t=>this.qClusterSelect.emit(t).defaultPrevented})}async syncBaseLayer(){const t=this.layerController;if(!t)return;const e=this.getProvider(),r=t.getActiveState();this.errorMessage=void 0,this.setProviderStatus("initializing",r.activeProvider,r.usingFallback);const{minimum:a,maximum:i}=this.getZoomLimits(),o=await t.sync({requestedProvider:e,tileUrl:this.tileUrl.trim(),tilePreloadBuffer:Ft(this.tilePreloadBuffer),vectorStyleUrl:this.vectorStyleUrl.trim(),vectorPadding:Dt(this.vectorPadding),googleApiKey:this.googleApiKey.trim(),googleApiAvailable:!!C()||"undefined"!=typeof window&&"function"==typeof window.google?.maps?.importLibrary,googleMapType:this.getGoogleMapType(),minZoom:a,maxZoom:i});if(t===this.layerController&&"stale"!==o.kind)if("empty"!==o.kind){if("ready"===o.kind)return o.warning&&this.reportError("provider-initialization-failed",o.warning,!0),void this.setProviderStatus("ready",o.activeProvider,o.usingFallback);this.reportError("provider-initialization-failed",o.error,!0),o.fallbackError&&this.reportError("fallback-initialization-failed",o.fallbackError,!0),this.errorMessage=o.activeProvider?"The requested map provider failed. The previous map remains available.":"Map imagery failed to load.",this.setProviderStatus("error",o.activeProvider,o.usingFallback)}else this.setProviderStatus("empty",void 0,!1)}getZoomLimits(){const t=Number.isFinite(this.minZoom)?this.minZoom:0;return{minimum:t,maximum:Math.max(t,Number.isFinite(this.maxZoom)?this.maxZoom:19)}}getCenter(){return[Number.isFinite(this.centerLatitude)?Math.max(-90,Math.min(90,this.centerLatitude)):0,Number.isFinite(this.centerLongitude)?Math.max(-180,Math.min(180,this.centerLongitude)):0]}getZoom(){const{minimum:t,maximum:e}=this.getZoomLimits();return Math.max(t,Math.min(e,Number.isFinite(this.zoom)?this.zoom:t))}getProvider(){return"google"===this.provider||"vector"===this.provider?this.provider:"tiles"}getRasterTileLoadingPolicy(){return"progressive"===this.rasterTileLoadingPolicy?"progressive":"full-batch"}getGoogleMapType(){return Kt.includes(this.googleMapType)?this.googleMapType:"roadmap"}syncView(t=!1){this.map?.setView(this.getCenter(),this.getZoom(),{animate:t&&!this.prefersReducedMotion()})}getMarkerVisibilityOcclusions(t){const e=[...t],r=this.el.shadowRoot;if(!r)return e;for(const t of Array.from(r.querySelectorAll(".leaflet-control, .map-attribution"))){const r=t.ownerDocument.defaultView?.getComputedStyle(t);if("none"===r?.display||"hidden"===r?.visibility)continue;const a=t.getBoundingClientRect();a.width<=0||a.height<=0||e.push(this.toViewportRect(a))}return e}getCoordinateRect(t,e,r){const a=this.map?.latLngToContainerPoint([t,e]),i=r.left+(a?.x??0),o=r.top+(a?.y??0);return{top:o-.5,right:i+.5,bottom:o+.5,left:i-.5}}toViewportRect(t){return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}}async panByMarkerTranslation(t,e,r,a){const i=!this.prefersReducedMotion();await new Promise((o=>{const n=this.el.ownerDocument.defaultView,s=Date.now();let l,c,d=!1;const h=()=>{d||(d=!0,t.off("moveend",u),void 0!==l&&n?.clearTimeout(l),void 0!==c&&n?.clearTimeout(c),this.cancelMarkerVisibilityPan===m&&(this.cancelMarkerVisibilityPan=void 0),o())},u=()=>{if(d)return;t.off("moveend",u),void 0!==l&&n?.clearTimeout(l);const e=i?Math.max(0,275-(Date.now()-s)):0;e>0&&n?c=n.setTimeout(h,e):h()},m=()=>{d||(t.stop(),h())};this.isMarkerVisibilityCurrent(a)?(this.cancelMarkerVisibilityPan=m,t.once("moveend",u),l=n?.setTimeout(u,500),t.panBy([-Jt(e),-Jt(r)],{animate:i})):h()}))}async waitForMarkerLayout(){await new Promise((t=>{const e=this.el.ownerDocument.defaultView;e&&"function"==typeof e.requestAnimationFrame?e.requestAnimationFrame((()=>t())):queueMicrotask(t)}))}isMarkerVisibilityCurrent(t){return t===this.markerVisibilityToken&&this.connected}prefersReducedMotion(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}syncBounds(t){if(!this.map)return;const e=k(this.maxBounds);!function(t,e,r){t.options.maxBoundsViscosity=q(r),"invalid"!==e.kind&&t.setMaxBounds("valid"===e.kind?e.leafletBounds:void 0)}(this.map,e,this.maxBoundsViscosity),"invalid"===e.kind?t&&this.reportInvalidBounds(e.message):this.lastInvalidBoundsInput=void 0}reportInvalidBounds(t){this.lastInvalidBoundsInput!==this.maxBounds&&(this.lastInvalidBoundsInput=this.maxBounds,this.reportError("invalid-max-bounds",Error(t),!0))}setProviderStatus(t,e,r,a=!1){const i=t!==this.providerStatus||e!==this.activeProvider||r!==this.usingFallback||this.getProvider()!==this.reportedRequestedProvider;this.providerStatus=t,this.activeProvider=e,this.usingFallback=r,this.reportedRequestedProvider=this.getProvider(),(i||a)&&this.qStatusChange.emit({status:t,requestedProvider:this.getProvider(),activeProvider:e,usingFallback:r})}reportError(t,e,r){this.qError.emit({code:t,message:e instanceof Error?e.message:e+"",requestedProvider:this.getProvider(),recoverable:r})}observeResize(){this.canvas&&"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver((()=>this.resizeMap())),this.resizeObserver.observe(this.canvas))}resizeMap(){this.map?.invalidateSize({animate:!1,debounceMoveend:!0,pan:!0}),this.syncBounds(!1)}destroyMap(){this.markerVisibilityToken+=1,this.cancelMarkerVisibilityPan?.(),this.cancelMarkerVisibilityPan=void 0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.markerController?.destroy(),this.markerController=void 0,this.layerController?.destroy(),this.layerController=void 0;const t=this.map;t&&(this.unbindMapEvents(t),t.remove()),this.map=void 0}renderAttribution(){if("tiles"!==this.activeProvider&&"vector"!==this.activeProvider)return null;const t=this.attribution.trim();if(!t)return null;const e=this.getAttributionUrl();return e?i("a",{class:"map-attribution",part:"attribution",href:e,target:"_blank",rel:"noopener noreferrer"},t,i("span",{class:"visually-hidden"}," (opens in a new tab)")):i("span",{class:"map-attribution",part:"attribution"},t)}getAttributionUrl(){const t=this.attributionUrl.trim();if(t)try{const e=new URL(t,this.el.ownerDocument.baseURI);return"https:"===e.protocol||"http:"===e.protocol?t:void 0}catch{return}}render(){return i("div",{key:"033fd7a2d32834e77a2558c65534977586ceedeb",class:"map-surface",part:"surface"},i("div",{key:"e478148f947ed36790471bb2fbf793de05aa8c85",class:"map-canvas",part:"canvas",role:"region","aria-label":this.ariaLabel,"aria-busy":"initializing"===this.providerStatus?"true":void 0,ref:this.setCanvas}),i("q-icon",{key:"f2257ff57c557e82e0373fed177892c37190cbeb",class:"map-icon-registration","aria-hidden":"true"}),"empty"===this.providerStatus&&i("div",{key:"1473bd03ecda753ae602340396a342a9f36d0869",class:"map-empty",part:"empty",role:"status"},i("slot",{key:"3459312eb6bf78f542c6bd3f700304097dc1add8",name:"empty"},"Map provider is not configured.")),"error"===this.providerStatus&&i("div",{key:"7477ce15ffad0b72381973c7ffd6e3dc64557159",class:"map-empty map-error",part:"error",role:"alert"},i("slot",{key:"ae647a72990bde7889aed466fdb005088c47e83d",name:"error"},this.errorMessage??"Map imagery is unavailable.")),this.renderAttribution())}static get watchers(){return{provider:[{handleBaseLayerChange:0}],tileUrl:[{handleBaseLayerChange:0}],rasterTileLoadingPolicy:[{handleBaseLayerChange:0}],vectorStyleUrl:[{handleBaseLayerChange:0}],googleApiKey:[{handleBaseLayerChange:0}],googleMapType:[{handleBaseLayerChange:0}],tilePreloadBuffer:[{handleTilePreloadBufferChange:0}],vectorPadding:[{handleVectorPaddingChange:0}],markers:[{handleMarkersChange:0}],clusterMarkers:[{handleMarkerClusteringChange:0}],clusterRadius:[{handleMarkerClusteringChange:0}],clusterMinPoints:[{handleMarkerClusteringChange:0}],clusterMaxZoom:[{handleMarkerClusteringChange:0}],selectedMarkerId:[{handleSelectedMarkerChange:0}],centerLatitude:[{handleViewChange:0}],centerLongitude:[{handleViewChange:0}],zoom:[{handleViewChange:0}],minZoom:[{handleZoomLimitsChange:0}],maxZoom:[{handleZoomLimitsChange:0}],maxBounds:[{handleBoundsChange:0}],maxBoundsViscosity:[{handleBoundsChange:0}],scrollWheelZoom:[{handleScrollWheelZoomChange:0}],zoomControls:[{handleZoomControlsChange:0}]}}static get style(){return":host{display:block;width:100%;height:var(--q-map-height, 100%);min-width:0;min-height:var(--q-map-min-height, 240px);box-sizing:border-box}.map-surface{position:relative;width:100%;height:100%;min-height:inherit;box-sizing:border-box;overflow:hidden;background:var(--q-map-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-map-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-map-radius, var(--q-radius-lg, 11px))}.map-canvas{width:100%;height:100%;min-height:inherit;background:inherit;outline:none}.map-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--q-color-primary, #60a5fa)}.map-icon-registration{display:none}.map-empty{position:absolute;z-index:900;top:50%;left:50%;max-width:calc(100% - 32px);padding:8px 12px;transform:translate(-50%, -50%);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-muted, #9ca3af);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.8rem);line-height:1.4;text-align:center;pointer-events:none}.map-error{color:var(--q-color-danger, #ef4444)}.map-attribution{position:absolute;z-index:1000;right:0;bottom:0;max-width:calc(100% - 8px);padding:2px 6px;overflow:hidden;background:var(--q-map-attribution-bg, var(--q-bg-base, #111827));color:var(--q-map-attribution-color, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-xs, 0.7rem);line-height:1.4;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}a.map-attribution:hover,a.map-attribution:focus-visible{color:var(--q-fg-base, #f9fafb);text-decoration:underline}a.map-attribution:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-tooltip-pane{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:none}.maplibregl-map{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-control-container{display:none}.leaflet-zoom-animated{transform-origin:0 0}.leaflet-tile-container.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform 250ms cubic-bezier(0, 0, 0.25, 1);will-change:transform}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{display:block;user-select:none;-webkit-user-drag:none}.leaflet-container .leaflet-tile-pane img,.leaflet-container .leaflet-tile{width:auto;max-width:none !important;max-height:none !important;padding:0}.leaflet-tile-pane{filter:var(--q-map-tile-filter, none)}.leaflet-tile{visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{position:relative;z-index:800;float:left;clear:both;pointer-events:auto}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive{pointer-events:auto}.leaflet-grab{cursor:grab}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-marker-draggable{cursor:grabbing}.leaflet-interactive{cursor:pointer}.leaflet-bar{overflow:hidden;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2))}.leaflet-bar a{display:block;width:30px;height:30px;border-bottom:1px solid var(--q-border-color, #374151);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:700 18px/30px var(--q-font-family, sans-serif);text-align:center;text-decoration:none}.leaflet-bar a:last-child{border-bottom:0}.leaflet-bar a:hover,.leaflet-bar a:focus-visible{background:var(--q-bg-surface-2, #374151);color:var(--q-color-primary, #60a5fa)}.leaflet-bar a:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.leaflet-bar a.leaflet-disabled{color:var(--q-fg-disabled, #6b7280);cursor:default}.q-map-marker-position{--q-map-marker-rendered-size:var(--q-map-marker-size, 20px);width:var(--q-map-marker-rendered-size) !important;height:var(--q-map-marker-rendered-size) !important;margin-top:calc(var(--q-map-marker-rendered-size) * -0.5) !important;margin-left:calc(var(--q-map-marker-rendered-size) * -0.5) !important}.q-map-marker-position.size-small{--q-map-marker-rendered-size:var(--q-map-marker-size-small, 16px)}.q-map-marker-position.size-medium{--q-map-marker-rendered-size:var(--q-map-marker-size-medium, var(--q-map-marker-size, 20px))}.q-map-marker-position.size-large{--q-map-marker-rendered-size:var(--q-map-marker-size-large, 24px)}.q-map-marker{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:3px solid var(--q-bg-base, #111827);border-radius:50%;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.3));outline:none;transition:box-shadow 160ms ease}.q-map-marker.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker.is-selected{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), var( --q-map-marker-selected-shadow, var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3)) )}.q-map-marker:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-marker__center{display:grid;width:30%;height:30%;place-items:center;overflow:hidden;border-radius:50%;background:var(--q-bg-base, #111827);pointer-events:none}.q-map-marker.has-content{padding:var(--q-map-marker-content-gap, 2px)}.q-map-marker.has-content .q-map-marker__center{width:100%;height:100%;background:var(--q-map-marker-content-bg, var(--q-bg-base, #111827));color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));font:700 clamp(0.5rem, calc(var(--q-map-marker-rendered-size, var(--q-map-marker-size, 20px)) * 0.25), 0.75rem) / 1 var(--q-font-family, sans-serif)}.q-map-marker__fallback,.q-map-marker__image{grid-area:1 / 1}.q-map-marker__fallback{max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap}.q-map-marker__image{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.q-map-marker__image[hidden]{display:none}.q-map-marker__content{position:relative;z-index:1;display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-marker.kind-icon{border-radius:var(--q-radius-md, 8px)}.q-map-marker.kind-icon .q-map-marker__center{border-radius:calc(var(--q-radius-md, 8px) - 3px)}.q-map-marker__icon{width:var(--q-map-marker-icon-size, 58%) !important;height:var(--q-map-marker-icon-size, 58%) !important;transform:translate( var(--q-map-marker-icon-offset-x, 0), var(--q-map-marker-icon-offset-y, 0) );color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));pointer-events:none}.q-map-marker__icon[hidden]{display:none}.q-map-marker-position.is-image{width:var(--q-map-image-width) !important;height:var(--q-map-image-height) !important;margin-left:calc(var(--q-map-image-anchor-x) * -1) !important;margin-top:calc(var(--q-map-image-anchor-y) * -1) !important}.q-map-marker.kind-image{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.q-map-marker.kind-image.is-selected{filter:drop-shadow(0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)))}.q-map-marker.kind-image .q-map-marker__center{width:100%;height:100%;overflow:visible;border-radius:0;background:transparent}.q-map-marker.kind-image .q-map-marker__image{object-fit:contain}.q-map-marker.ring-solid::after,.q-map-marker.ring-dashed::after{position:absolute;z-index:0;inset:-7px;box-sizing:border-box;border:2px solid var(--q-map-marker-ring-color, currentColor);border-radius:inherit;content:'';pointer-events:none}.q-map-marker.ring-dashed::after{border-style:dashed}.q-map-marker.is-pulsing::before{position:absolute;z-index:0;inset:-4px;border:2px solid var(--q-map-marker-pulse-color, var(--q-color-primary, #60a5fa));border-radius:inherit;content:'';pointer-events:none;animation:q-map-marker-pulse 1.8s ease-out infinite}@keyframes q-map-marker-pulse{0%{opacity:0.85;transform:scale(0.9)}75%,100%{opacity:0;transform:scale(1.8)}}.q-map-marker__badge{position:absolute;z-index:3;right:-7px;bottom:-6px;display:inline-flex;min-width:14px;height:14px;padding:0 3px;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;border:2px solid var(--q-bg-base, #111827);border-radius:999px;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));color:var(--q-fg-base, #f9fafb);font:700 8px/1 var(--q-font-family, sans-serif);white-space:nowrap}.q-map-marker__badge[hidden]{display:none}.q-map-marker__badge.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker__badge.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker__badge.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker__badge.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker__badge-icon{width:8px !important;height:8px !important}.q-map-marker__badge-icon[hidden],.q-map-marker__badge-text[hidden]{display:none}.q-map-cluster-position{width:var(--q-map-marker-cluster-size, 32px) !important;height:var(--q-map-marker-cluster-size, 32px) !important;margin-top:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important;margin-left:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important}.q-map-cluster{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:2px solid color-mix(in srgb, var(--q-color-primary, #60a5fa) 70%, white);border-radius:50%;background:color-mix(in srgb, var(--q-color-primary, #60a5fa) 24%, var(--q-bg-base, #111827));box-shadow:0 0 0 4px color-mix(in srgb, var(--q-color-primary, #60a5fa) 18%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));color:var(--q-fg-base, #f9fafb);outline:none;transition:box-shadow 160ms ease}.q-map-cluster.contains-selection{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), 0 0 0 7px color-mix(in srgb, var(--q-color-primary, #60a5fa) 28%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3))}.q-map-cluster:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-cluster__content{display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-cluster__count{font:700 0.7rem/1 var(--q-font-family, sans-serif)}.leaflet-tooltip{position:absolute;box-sizing:border-box;white-space:nowrap;pointer-events:none;user-select:none}.q-map-callout{width:var(--q-map-marker-callout-width, var(--q-map-marker-callout-max-width, 220px));max-width:calc(100vw - 24px);padding:7px 9px;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-map-marker-callout-bg, color-mix(in srgb, var(--q-bg-base, #111827) 94%, transparent));color:var(--q-fg-base, #f9fafb);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));font-family:var(--q-font-family, sans-serif)}.q-map-callout.leaflet-tooltip-top{margin-top:-20px}.q-map-callout.leaflet-tooltip-bottom{margin-top:20px}.q-map-callout.leaflet-tooltip-left{margin-left:-20px}.q-map-callout.leaflet-tooltip-right{margin-left:20px}.q-map-callout__content{display:grid;min-width:0;gap:2px}.q-map-callout__heading{display:flex;min-width:0;align-items:center;gap:6px}.q-map-callout__title,.q-map-callout__subtitle,.q-map-callout__meta{overflow:hidden;text-overflow:ellipsis}.q-map-callout__title{flex:1 1 auto;min-width:0;color:inherit;font-size:var(--q-font-size-sm, 0.8rem);font-weight:700}.q-map-callout__subtitle,.q-map-callout__meta{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-xs, 0.7rem)}.q-map-callout__subtitle{min-width:0}.q-map-callout__status{--q-map-marker-callout-status-accent:var(--q-color-primary, #60a5fa);display:inline-flex;flex:none;max-width:var(--q-map-marker-callout-status-max-width, 45%);margin-inline-start:auto;min-height:18px;padding:2px 6px;align-items:center;overflow:hidden;box-sizing:border-box;border:1px solid color-mix(in srgb, var(--q-map-marker-callout-status-accent) 34%, transparent);border-radius:999px;background:color-mix(in srgb, var(--q-map-marker-callout-status-accent) 16%, transparent);color:var(--q-map-marker-callout-status-accent);font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1;text-overflow:ellipsis;white-space:nowrap}.q-map-callout__status.variant-success{--q-map-marker-callout-status-accent:var(--q-color-success, #34d399)}.q-map-callout__status.variant-warning{--q-map-marker-callout-status-accent:var(--q-color-warning, #fbbf24)}.q-map-callout__status.variant-danger{--q-map-marker-callout-status-accent:var(--q-color-danger, #f87171)}.q-map-callout__status.variant-muted{--q-map-marker-callout-status-accent:var(--q-fg-muted, #9ca3af)}.q-map-callout__meta{color:var(--q-map-marker-callout-meta-color, var(--q-color-primary, #60a5fa))}.q-map-callout__stats{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px 8px;margin:4px 0 0;padding:5px 0 0;border-top:1px solid color-mix(in srgb, var(--q-border-color, #374151) 70%, transparent)}.q-map-callout__stat{min-width:0}.q-map-callout__stat.layout-wide{grid-column:1 / -1}.q-map-callout__stat-label,.q-map-callout__stat-value{margin:0;overflow:hidden;text-overflow:ellipsis}.q-map-callout__stat-label{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-2xs, 0.625rem);line-height:1.2;white-space:nowrap}.q-map-callout__stat-value{margin-top:1px;color:inherit;font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1.25;white-space:nowrap}.q-map-callout__stat.layout-wide .q-map-callout__stat-value{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.q-map-callout__subtitle[hidden],.q-map-callout__status[hidden],.q-map-callout__meta[hidden],.q-map-callout__stats[hidden]{display:none}@media (prefers-reduced-motion: reduce){.q-map-marker,.q-map-cluster{transition:none}.q-map-marker.is-pulsing::before{opacity:0.65;animation:none;transform:none}}"}},[769,"q-map",{attribution:[1],attributionUrl:[1,"attribution-url"],markers:[1],clusterMarkers:[4,"cluster-markers"],clusterRadius:[2,"cluster-radius"],clusterMinPoints:[2,"cluster-min-points"],clusterMaxZoom:[2,"cluster-max-zoom"],centerLatitude:[2,"center-latitude"],centerLongitude:[2,"center-longitude"],zoom:[2],zoomControls:[4,"zoom-controls"],scrollWheelZoom:[4,"scroll-wheel-zoom"],minZoom:[2,"min-zoom"],maxZoom:[2,"max-zoom"],maxBounds:[1,"max-bounds"],maxBoundsViscosity:[2,"max-bounds-viscosity"],selectedMarkerId:[8,"selected-marker-id"],provider:[1],tileUrl:[1,"tile-url"],tilePreloadBuffer:[2,"tile-preload-buffer"],rasterTileLoadingPolicy:[1,"raster-tile-loading-policy"],vectorStyleUrl:[1,"vector-style-url"],vectorPadding:[2,"vector-padding"],googleApiKey:[1,"google-api-key"],googleMapType:[1,"google-map-type"],ariaLabel:[1,"aria-label"],providerStatus:[32],activeProvider:[32],usingFallback:[32],errorMessage:[32],fitMarkers:[64],ensureMarkerVisible:[64]},void 0,{provider:[{handleBaseLayerChange:0}],tileUrl:[{handleBaseLayerChange:0}],rasterTileLoadingPolicy:[{handleBaseLayerChange:0}],vectorStyleUrl:[{handleBaseLayerChange:0}],googleApiKey:[{handleBaseLayerChange:0}],googleMapType:[{handleBaseLayerChange:0}],tilePreloadBuffer:[{handleTilePreloadBufferChange:0}],vectorPadding:[{handleVectorPaddingChange:0}],markers:[{handleMarkersChange:0}],clusterMarkers:[{handleMarkerClusteringChange:0}],clusterRadius:[{handleMarkerClusteringChange:0}],clusterMinPoints:[{handleMarkerClusteringChange:0}],clusterMaxZoom:[{handleMarkerClusteringChange:0}],selectedMarkerId:[{handleSelectedMarkerChange:0}],centerLatitude:[{handleViewChange:0}],centerLongitude:[{handleViewChange:0}],zoom:[{handleViewChange:0}],minZoom:[{handleZoomLimitsChange:0}],maxZoom:[{handleZoomLimitsChange:0}],maxBounds:[{handleBoundsChange:0}],maxBoundsViscosity:[{handleBoundsChange:0}],scrollWheelZoom:[{handleScrollWheelZoomChange:0}],zoomControls:[{handleZoomControlsChange:0}]}]);function Jt(t){return Math.sign(t)*Math.ceil(Math.abs(t))}function Xt(){"undefined"!=typeof customElements&&["q-map","q-icon"].forEach((e=>{switch(e){case"q-map":customElements.get(t(e))||customElements.define(t(e),Wt);break;case"q-icon":customElements.get(t(e))||m()}}))}Xt();const Yt=Wt,Ht=Xt;export{Yt as QMap,Ht as defineCustomElement}
|
|
1
|
+
import{t,p as e,H as r,c as a,h as i}from"./p-D2nxHd1b.js";import{g as n,d as o,e as s,f as l,a as c,b as d,c as h,Q as u}from"./p-CoIMrUb3.js";import{d as m}from"./p-kfrqZyfJ.js";class p{operations;revision=0;active;pendingAttachController;constructor(t){this.operations=t}getActiveState(){return{activeProvider:this.active?.provider,usingFallback:this.active?.usingFallback??!1}}async sync(t){const e=++this.revision;if(this.abortPendingAttach(),!this.isConfigured(t))return this.clearActiveLayer(),{kind:"empty",activeProvider:void 0,usingFallback:!1};const r=await this.createCandidate(t.requestedProvider,t,e);if("stale"===r.kind)return r;const a="ready"===r.kind?await this.commit(r.candidate,t.requestedProvider,!1,e):r;if("stale"===a.kind||"ready"===a.kind)return a;if("tiles"===t.requestedProvider||!t.tileUrl.trim())return{kind:"error",error:a.error,...this.getActiveState()};const i=await this.createCandidate("tiles",t,e);if("stale"===i.kind)return i;if("error"===i.kind)return{kind:"error",error:a.error,fallbackError:i.error,...this.getActiveState()};const n=await this.commit(i.candidate,"tiles",!0,e);return"ready"===n.kind?{...n,warning:a.error}:"error"===n.kind?{kind:"error",error:a.error,fallbackError:n.error,...this.getActiveState()}:n}destroy(){this.revision+=1,this.abortPendingAttach(),this.clearActiveLayer()}isConfigured(t){return"google"===t.requestedProvider?t.googleApiAvailable||t.googleApiKey.trim().length>0:"vector"===t.requestedProvider?t.vectorStyleUrl.trim().length>0:t.tileUrl.trim().length>0}async createCandidate(t,e,r){try{const a="google"===t?await this.operations.createGoogle(e):"vector"===t?await this.operations.createVector(e):this.operations.createTiles(e);return r!==this.revision?(this.removeLayer(a),{kind:"stale"}):{kind:"ready",candidate:a}}catch(t){return r===this.revision?{kind:"error",error:t}:{kind:"stale"}}}async commit(t,e,r,a){if(a!==this.revision)return this.removeLayer(t),{kind:"stale"};const i=new AbortController;this.pendingAttachController=i;try{await this.operations.attach(t,e,{replacing:void 0!==this.active,signal:i.signal})}catch(e){return this.clearPendingAttach(i),this.removeLayer(t),a!==this.revision||i.signal.aborted?{kind:"stale"}:{kind:"error",error:e,...this.getActiveState()}}if(this.clearPendingAttach(i),a!==this.revision)return this.removeLayer(t),{kind:"stale"};const n=this.active;return this.active={layer:t,provider:e,usingFallback:r},n?.layer!==t&&this.removeLayer(n?.layer),{kind:"ready",activeProvider:e,usingFallback:r}}clearActiveLayer(){this.removeLayer(this.active?.layer),this.active=void 0}abortPendingAttach(){this.pendingAttachController?.abort(),this.pendingAttachController=void 0}clearPendingAttach(t){this.pendingAttachController===t&&(this.pendingAttachController=void 0)}removeLayer(t){if(t)try{t.remove()}catch{}}}function f(t,e,r,a,i="full-batch"){const n=t.tileLayer(e,r),o=n._initTile.bind(n);if(n._initTile=t=>{o(t);const e=n.getTileSize();t.style.width=e.x+1+"px",t.style.height=e.y+1+"px"},"progressive"===i&&function(t){const e=t.onAdd.bind(t);let r=!1;t.onAdd=a=>{const i=e(a);return function(t){if(null===t._tiles||"object"!=typeof t._tiles||Array.isArray(t._tiles))throw g()}(t),r||(function(t){const e=t._tileReady.bind(t),r=t._pruneTiles.bind(t),a=t._updateOpacity.bind(t),i=e=>{const r=t._pruneTiles;t._pruneTiles=()=>{};try{e()}finally{t._pruneTiles=r}};t._tileReady=(a,n,o)=>{const s=t._tiles[t._tileCoordsToKey(a)];if(!n)return s&&(s.progressiveLoadFailed=!1),void e(a,n,o);i((()=>e(a,n,o))),s&&(s.progressiveLoadFailed=!0,s.active=!1),r()},t._updateOpacity=()=>{i(a),(()=>{for(const e of Object.values(t._tiles))e.progressiveLoadFailed&&(e.active=!1)})(),r()}}(t),r=!0),i}}(function(t){const e=t;if("function"!=typeof e._pruneTiles||"function"!=typeof e._tileCoordsToKey||"function"!=typeof e._tileReady||"function"!=typeof e._updateOpacity||"function"!=typeof e.onAdd)throw g();return e}(n)),0===a)return n;const s=n._getTiledPixelBounds.bind(n);return n._getTiledPixelBounds=e=>{const r=s(e),i=n.getTileSize(),o=i.x*a,l=i.y*a;return new t.Bounds(r.min.subtract([o,l]),r.max.add([o,l]))},n}function g(){return Error("Progressive raster loading is not supported by this Leaflet tile layer.")}function b(t){return"number"==typeof t&&Number.isFinite(t)&&t>=-90&&t<=90}function v(t){return"number"==typeof t&&Number.isFinite(t)&&t>=-180&&t<=180}function k(t){const{parsed:e,invalidJson:r}=function(t){if("string"!=typeof t)return{parsed:t,invalidJson:!1};if(!t.trim())return{parsed:void 0,invalidJson:!1};try{return{parsed:JSON.parse(t),invalidJson:!1}}catch{return{invalidJson:!0}}}(t);if(r)return{kind:"invalid",message:"maxBounds must be valid JSON or a bounds object."};if(void 0===e)return{kind:"clear"};if(!function(t){return"object"==typeof t&&null!==t}(e))return{kind:"invalid",message:"maxBounds must be a bounds object."};const{southLatitude:a,westLongitude:i,northLatitude:n,eastLongitude:o}=e;if(!b(a)||!b(n))return{kind:"invalid",message:"maxBounds latitude values must be finite numbers from -90 to 90."};if(!v(i)||!v(o))return{kind:"invalid",message:"maxBounds longitude values must be finite numbers from -180 to 180."};if(a>=n)return{kind:"invalid",message:"maxBounds southLatitude must be below northLatitude."};if(i>=o)return{kind:"invalid",message:"maxBounds westLongitude must be below eastLongitude; antimeridian-crossing bounds are not supported."};const s={southLatitude:a,westLongitude:i,northLatitude:n,eastLongitude:o};return{kind:"valid",bounds:s,leafletBounds:[[s.southLatitude,s.westLongitude],[s.northLatitude,s.eastLongitude]]}}function y(t){return"valid"===t.kind?t.leafletBounds:void 0}function q(t){return Math.max(0,Math.min(1,Number.isFinite(t)?t:1))}let w,x,M,_,z=0;function C(){return"undefined"!=typeof window&&"function"==typeof window.google?.maps?.Map}function L(){if(!C())throw Error("The Maps library loaded without exposing google.maps.Map.")}const P=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],A=new Uint32Array(96);class Z{static from(t){if(!t||void 0===t.byteLength||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw Error("Data does not appear to be in a KDBush format.");const a=r>>4;if(1!==a)throw Error(`Got v${a} data when expected v1.`);const i=P[15&r];if(!i)throw Error("Unrecognized array type.");const[n]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new Z(o,n,i,void 0,t)}constructor(t,e=64,r=Float64Array,a=ArrayBuffer,i){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const n=P.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-s%8)%8;if(n<0)throw Error(`Unexpected typed array class: ${r}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+s+l,2*t),this._pos=2*t,this._finished=!0;else{const i=this.data=new a(8+o+s+l);this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+s+l,2*t),this._pos=0,this._finished=!1,new Uint8Array(i,0,2).set([219,16+n]),new Uint16Array(i,2,1)[0]=e,new Uint32Array(i,4,1)[0]=t}}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return B(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");const{ids:i,coords:n,nodeSize:o}=this;A[0]=0,A[1]=i.length-1,A[2]=0;let s=3;const l=[];for(;s>0;){const c=A[--s],d=A[--s],h=A[--s];if(d-h<=o){for(let o=h;o<=d;o++){const s=n[2*o],c=n[2*o+1];s>=t&&s<=r&&c>=e&&c<=a&&l.push(i[o])}continue}const u=h+d>>1,m=n[2*u],p=n[2*u+1];m>=t&&m<=r&&p>=e&&p<=a&&l.push(i[u]),(0===c?t<=m:e<=p)&&(A[s++]=h,A[s++]=u-1,A[s++]=1-c),(0===c?r>=m:a>=p)&&(A[s++]=u+1,A[s++]=d,A[s++]=1-c)}return l}within(t,e,r){const a=[];return this.withinInto(t,e,r,a),a}withinInto(t,e,r,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");const{ids:i,coords:n,nodeSize:o}=this;A[0]=0,A[1]=i.length-1,A[2]=0;let s=3,l=0;const c=r*r;for(;s>0;){const d=A[--s],h=A[--s],u=A[--s];if(h-u<=o){for(let r=u;r<=h;r++)I(n[2*r],n[2*r+1],t,e)<=c&&(a[l++]=i[r]);continue}const m=u+h>>1,p=n[2*m],f=n[2*m+1];I(p,f,t,e)<=c&&(a[l++]=i[m]),(0===d?t-r<=p:e-r<=f)&&(A[s++]=u,A[s++]=m-1,A[s++]=1-d),(0===d?t+r>=p:e+r>=f)&&(A[s++]=m+1,A[s++]=h,A[s++]=1-d)}return l}}function B(t,e,r,a,i,n){if(i-a<=r)return;const o=a+i>>1;E(t,e,o,a,i,n),B(t,e,r,a,o-1,1-n),B(t,e,r,o+1,i,1-n)}function E(t,e,r,a,i,n){for(;i>a;){if(i-a>600){const o=i-a+1,s=r-a+1,l=Math.log(o),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);E(t,e,r,Math.max(a,Math.floor(r-s*c/o+d)),Math.min(i,Math.floor(r+(o-s)*c/o+d)),n)}const o=e[2*r+n];let s=a,l=i;for(S(t,e,a,r),e[2*i+n]>o&&S(t,e,a,i);s<l;){for(S(t,e,s,l),s++,l--;e[2*s+n]<o;)s++;for(;e[2*l+n]>o;)l--}e[2*a+n]===o?S(t,e,a,l):(l++,S(t,e,l,i)),l<=r&&(a=l+1),r<=l&&(i=l-1)}}function S(t,e,r,a){N(t,r,a),N(e,2*r,2*a),N(e,2*r+1,2*a+1)}function N(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function I(t,e,r,a){const i=t-r,n=e-a;return i*i+n*n}const U={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},T=1073741824,O=1/T,R=t=>(t-.5)*T,$=t=>t*O+.5;class V{constructor(t){const e=this.options=Object.assign(Object.create(U),t);e.maxZoom=Math.min(e.maxZoom,30),e.minZoom=Math.min(e.minZoom,e.maxZoom),this.trees=Array(e.maxZoom+1),this.stride=e.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:a}=this.options;e&&console.time("total time");const i=a+1,n=`z${i}: ${t.length} points`;e&&console.time(n);const o=this.stride;let s=t.length;for(const e of t){const t=e.geometry;t&&"MultiPoint"===t.type&&(s+=t.coordinates.length-1)}this.numPoints=s;const l=this.props=Array(s),c=this.coords=new Float64Array(2*s);let d=null;const h=new Int32Array(s*o);let u=0,m=0;for(const e of t){const t=e.geometry;if(!t){m++;continue}const r=t.coordinates,a="MultiPoint"===t.type;for(let t=0,n=a?r.length:1;t<n;t++,m++){const[n,p]=a?r[t]:r,f=F(n),g=G(p);c[2*m]=f,c[2*m+1]=g,h[u]=R(f),h[u+1]=R(g),h[u+2]=i,h[u+3]=m,h[u+4]=-1,h[u+5]=1,l[m]=e.properties,void 0!==e.id&&(d||(d=Array(s)),d[m]=e.id),u+=o}}this.ids=d;let p=u===h.length?h:h.subarray(0,u),f=u/o;this.trees[a+1]=this._createTree(p,f),e&&console.timeEnd(n);let g=null;for(let t=a;t>=r;t--){const r=performance.now(),a=g||new Int32Array(f*o);g=null;const i=this._cluster(p,f,t,a);i===f?(this.trees[t]=this.trees[t+1],g=a):(this.trees[t]=this._createTree(a,i),p=a,f=i),e&&console.log(`z${t}: ${this.trees[t].numItems} clusters in ${(performance.now()-r).toFixed(2)}ms`)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[1]));let i=180===t[2]?180:((t[2]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){const t=this.getClusters([r,a,180,n],e),o=this.getClusters([-180,a,i,n],e);return t.concat(o)}const o=this.trees[this._limitZoom(e)],s=o.range(R(F(r)),R(G(n)),R(F(i)),R(G(a))),l=o.data,c=[];for(const t of s)c.push(this._featureJSON(l,this.stride*t));return c}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),a="No cluster with the specified id.",i=this.trees[r];if(!i)throw Error(a);const n=i.data;if(e>=i.numItems)throw Error(a);const o=i.within(n[e*this.stride],n[e*this.stride+1],this.options.radius/(this.options.extent*Math.pow(2,r-1))*T),s=[];for(const e of o){const r=e*this.stride;n[r+4]===t&&s.push(this._featureJSON(n,r))}if(0===s.length)throw Error(a);return s}getLeaves(t,e,r){const a=[];return this._appendLeaves(a,t,e=e||10,r=r||0,0),a}getTile(t,e,r){return this._getTile(t,e,r,!1)}getTileRaw(t,e,r){return this._getTile(t,e,r,!0)}_getTile(t,e,r,a){const i=this.trees[this._limitZoom(t)],n=Math.pow(2,t),{extent:o,radius:s}=this.options,l=s/o,c=R((r-l)/n),d=R((r+1+l)/n),h={features:[]};return this._addTileFeatures(i.range(R((e-l)/n),c,R((e+1+l)/n),d),i.data,e,r,n,h,a),0===e&&this._addTileFeatures(i.range(R(1-l/n),c,R(1),d),i.data,n,r,n,h,a),e===n-1&&this._addTileFeatures(i.range(R(0),c,R(l/n),d),i.data,-1,r,n,h,a),h.features.length?h:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,a,i){const n=this.getChildren(e);for(const e of n){const n=e.properties;if(n&&n.cluster?i+n.point_count<=a?i+=n.point_count:i=this._appendLeaves(t,n.cluster_id,r,a,i):i<a?i++:t.push(e),t.length===r)break}return i}_createTree(t,e){const r=new Z(e,this.options.nodeSize,Int32Array),a=this.stride;for(let i=0;i<e;i++)r.add(t[i*a],t[i*a+1]);return r.finish(),r.data=t,r}_addTileFeatures(t,e,r,a,i,n,o){for(const s of t){const t=s*this.stride,l=e[t+5]>1;let c,d,h;if(l)c=j(e,t,this.clusterProps),d=$(e[t]),h=$(e[t+1]);else{const r=e[t+3];c=this.props[r],d=this.coords[2*r],h=this.coords[2*r+1]}const u=Math.round(this.options.extent*(d*i-r)),m=Math.round(this.options.extent*(h*i-a)),p=o?{type:4,x:u,y:m,tags:c}:{type:1,geometry:[[u,m]],tags:c},f=e[t+3],g=l||this.options.generateId?f:this.ids?this.ids[f]:void 0;void 0!==g&&(p.id=g),n.features.push(p)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e,r,a){const{radius:i,extent:n,reduce:o,minPoints:s,maxZoom:l}=this.options,c=i/(n*(1<<r))*T,d=l+1,h=this.trees[r+1],u=this.stride,m=e*u,p=new Uint32Array(e);let f=0;for(let e=0;e<m;e+=u){if(t[e+2]<=r)continue;t[e+2]=r;const i=t[e],n=t[e+1],l=h.withinInto(i,n,c,p),m=t[e+5];let g=m;for(let e=0;e<l;e++){const a=p[e]*u;t[a+2]>r&&(g+=t[a+5])}if(g>m&&g>=s){let s,c=i*m,h=n*m,b=-1;const v=(e/u<<5)+(r+1)+this.numPoints;for(let a=0;a<l;a++){const i=p[a]*u;if(t[i+2]<=r)continue;t[i+2]=r;const n=t[i+5];c+=t[i]*n,h+=t[i+1]*n,t[i+4]=v,o&&(s||(s=this._map(t,e,!0),b=this.clusterProps.length,this.clusterProps.push(s)),o(s,this._map(t,i)))}t[e+4]=v,a[f]=c/g,a[f+1]=h/g,a[f+2]=d,a[f+3]=v,a[f+4]=-1,a[f+5]=g,o&&(a[f+6]=b),f+=u}else{for(let r=0;r<u;r++)a[f+r]=t[e+r];if(f+=u,g>1)for(let e=0;e<l;e++){const i=p[e]*u;if(!(t[i+2]<=r)){t[i+2]=r;for(let e=0;e<u;e++)a[f+e]=t[i+e];f+=u}}}}return f/u}_getOriginId(t){return t-this.numPoints>>5}_getOriginZoom(t){return(t-this.numPoints)%32}_featureJSON(t,e){const r=t[e+3],a=t[e+5]>1,i=a?r:this.ids?this.ids[r]:void 0,n={type:"Feature",properties:a?j(t,e,this.clusterProps):this.props[r],geometry:{type:"Point",coordinates:a?[D($(t[e])),Q($(t[e+1]))]:[D(this.coords[2*r]),Q(this.coords[2*r+1])]}};return void 0!==i&&(n.id=i),n}_map(t,e,r){if(t[e+5]>1){const a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}const a=this.props[t[e+3]],i=this.options.map(a);return r&&i===a?Object.assign({},i):i}}function j(t,e,r){const a=t[e+5],i=a>=1e4?Math.round(a/1e3)+"k":a>=1e3?Math.round(a/100)/10+"k":a,n=t[e+6],o=-1===n?{}:Object.assign({},r[n]);return Object.assign(o,{cluster:!0,cluster_id:t[e+3],point_count:a,point_count_abbreviated:i})}function F(t){return t/360+.5}function G(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function D(t){return 360*(t-.5)}function Q(t){return 360*Math.atan(Math.exp((180-360*t)*Math.PI/180))/Math.PI-90}const K=new Set(n),W=new Set(o),J=new Set(s),X=new Set(l),Y=new Set(c),H=new Set(d),tt=new Set(h);function et(t){return"object"==typeof t&&null!==t}function rt(t){return"string"==typeof t&&K.has(t)?t:"default"}function at(t,e){return"string"==typeof t&&e.has(t)?t:void 0}function it(t){if("string"!=typeof t)return;const e=t.trim();return e.length>0?e:void 0}function nt(t){return"number"==typeof t&&Number.isFinite(t)?t:void 0}function ot(t,e){if(!Array.isArray(t)||2!==t.length)return;const r=nt(t[0]),a=nt(t[1]);return void 0===r||void 0===a||e&&(r<=0||a<=0)?void 0:[r,a]}function st(t){return it(t)??u}function lt(t){return st(t.clusterGroup)}function ct(t){if(!et(t))return;const e=it(t.label),r="number"==typeof t.value&&Number.isFinite(t.value)?t.value:it(t.value);return e&&void 0!==r?{label:e,value:r,layout:at(t.layout,H)??"compact"}:void 0}function dt(t){if(!et(t)||!function(t){return"string"==typeof t&&t.trim().length>0||"number"==typeof t&&Number.isFinite(t)}(t.id))return;if("number"!=typeof t.latitude||!Number.isFinite(t.latitude)||t.latitude<-90||t.latitude>90)return;if("number"!=typeof t.longitude||!Number.isFinite(t.longitude)||t.longitude<-180||t.longitude>180)return;const e="string"==typeof t.label&&t.label.trim().length>0?t.label:t.id+"",r=it(t.imageUrl),a=ot(t.imageSize,!0),i=ot(t.imageAnchor,!1),n=it(t.fallbackText),o=it(t.icon),s=nt(t.iconSize),l=nt(t.iconOffsetX),c=nt(t.iconOffsetY),d=at(t.kind,W),h="icon"===d&&!o||"image"===d&&!r?"dot":d,u=at(t.size,X),m=at(t.ring,J),p=function(t){if(!et(t))return;const e=it(t.ariaLabel),r=it(t.icon),a=it(t.text);return e&&(r||a)?{ariaLabel:e,variant:rt(t.variant),...r?{icon:r}:{},...a?{text:a}:{}}:void 0}(t.badge),f=function(t){if(!et(t))return;const e=it(t.title);if(!e)return;const r=it(t.subtitle),a=it(t.meta),i=function(t){if(!Array.isArray(t))return;const e=t.map(ct).filter((t=>void 0!==t)).slice(0,6);return e.length>0?e:void 0}(t.stats),n=function(t){if(!et(t))return;const e=it(t.label);return e?{label:e,variant:rt(t.variant)}:void 0}(t.status),o=at(t.placement,Y)??"auto",s=at(t.visibility,tt)??"always";return{title:e,variant:rt(t.variant),placement:o,visibility:s,...r?{subtitle:r}:{},...a?{meta:a}:{},...i?{stats:i}:{},...n?{status:n}:{}}}(t.callout);return{id:t.id,latitude:t.latitude,longitude:t.longitude,label:e,clusterable:!1!==t.clusterable,clusterGroup:st(t.clusterGroup),variant:rt(t.variant),...r?{imageUrl:r}:{},...a?{imageSize:a}:{},...i?{imageAnchor:i}:{},...n?{fallbackText:n}:{},...h?{kind:h}:{},...o?{icon:o}:{},...void 0!==s?{iconSize:s}:{},...void 0!==l?{iconOffsetX:l}:{},...void 0!==c?{iconOffsetY:c}:{},...u?{size:u}:{},...m?{ring:m}:{},...!0===t.pulse?{pulse:!0}:{},...p?{badge:p}:{},...f?{callout:f}:{}}}function ht(t){return"number"==typeof t?"number:"+t:"string:"+t}function ut(t){const e=new Map;for(const r of function(t){if(Array.isArray(t))return t;try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}(t)){const t=dt(r);t&&e.set(ht(t.id),t)}return[...e.values()]}function mt(t,e,r){return Math.max(e,Math.min(r,Math.round(t)))}function pt(t,e){return`${e.radius}:${e.minPoints}:${e.maxZoom}:${t.map((t=>`${ht(t.id)}@${t.longitude},${t.latitude}`)).sort().join("|")}`}function ft(t){return"cluster"in t.properties&&!0===t.properties.cluster}function gt(t,e){const r=new V({radius:e.radius,minPoints:e.minPoints,maxZoom:e.maxZoom});return r.load(t.map((t=>({type:"Feature",geometry:{type:"Point",coordinates:[t.longitude,t.latitude]},properties:{markerKey:ht(t.id)}})))),r}class bt{clusterGroups=new Map;standaloneMarkers=new Map;load(t,e){const r=[...t].sort(((t,e)=>ht(t.id).localeCompare(ht(e.id))));this.standaloneMarkers.clear();const a=new Map;for(const t of r){const e=ht(t.id);if(!1===t.clusterable)this.standaloneMarkers.set(e,t);else{const e=lt(t),r=a.get(e)??[];r.push(t),a.set(e,r)}}const i=new Map,n=[...a].sort((([t],[e])=>t.localeCompare(e)));for(const[t,r]of n){const a=new Map(r.map((t=>[ht(t.id),t]))),n=pt(r,e),o=this.clusterGroups.get(t);i.set(t,{index:o?.signature===n?o.index:gt(r,e),markers:a,signature:n})}this.clusterGroups=i}getViewportItems(t,e,r){const a=void 0===r?void 0:ht(r),i=new Map;for(const[r,n]of this.clusterGroups)for(const o of n.index.getClusters(t,Math.max(0,Math.floor(e)))){if(!ft(o)){const t=n.markers.get(o.properties.markerKey);if(t){const e=ht(t.id);i.set(e,{kind:"marker",key:e,marker:t})}continue}const t=o.properties.cluster_id,e=n.index.getLeaves(t,1/0).map((t=>t.properties.markerKey)).filter((t=>n.markers.has(t))).sort(),s=e.map((t=>n.markers.get(t)?.id)).filter((t=>void 0!==t)),l=t+"",c=`cluster:${encodeURIComponent(r)}:${l}`;i.set(c,{kind:"cluster",key:c,clusterId:l,clusterGroup:r,markerIds:s,markerKeys:e,latitude:o.geometry.coordinates[1],longitude:o.geometry.coordinates[0],count:s.length,expansionZoom:n.index.getClusterExpansionZoom(t),containsSelection:void 0!==a&&e.includes(a)})}for(const[e,r]of this.standaloneMarkers)vt(r,t)&&i.set(e,{kind:"marker",key:e,marker:r});return[...i.values()].sort(((t,e)=>t.key.localeCompare(e.key)))}clear(){this.clusterGroups.clear(),this.standaloneMarkers.clear()}}function vt(t,[e,r,a,i]){return t.longitude>=e&&t.longitude<=a&&t.latitude>=r&&t.latitude<=i}function kt(t){return t.x+t.offset.x}function yt(t){return t.y+t.offset.y}function qt(t,e){let r=2166136261;for(const a of`${t}\0${e}`)r^=a.charCodeAt(0),r=Math.imul(r,16777619);const a=(r>>>0)%360*(Math.PI/180);return{x:Math.cos(a),y:Math.sin(a)}}const wt=["kind-dot","kind-avatar","kind-icon","kind-image"],xt=["ring-none","ring-solid","ring-dashed"];function Mt(t,e){const r=t.createElement("q-icon");return r.className=e,r.setAttribute("size","100%"),r.setAttribute("aria-hidden","true"),r}function _t(t,e){t.hidden=!e,e?t.setAttribute("name",e):t.removeAttribute("name")}function zt(t,e){const r=t.parentElement,a="image"===t.dataset.markerKind,i=a&&!e.hidden;if(i?(t.classList.add("kind-image"),r?.classList.add("is-image")):(t.classList.remove("kind-image"),r?.classList.remove("is-image")),!a)return;if(t.classList.toggle("kind-dot",!i),t.classList.toggle("has-content",i),!i||!r)return;const n=e.naturalWidth||32,o=e.naturalHeight||32,s=Math.min(1,48/n,48/o),l=Number(e.dataset.width)||n*s,c=Number(e.dataset.height)||o*s,d=void 0===e.dataset.anchorX?l/2:Number(e.dataset.anchorX),h=void 0===e.dataset.anchorY?c:Number(e.dataset.anchorY);r.style.setProperty("--q-map-image-width",l+"px"),r.style.setProperty("--q-map-image-height",c+"px"),r.style.setProperty("--q-map-image-anchor-x",d+"px"),r.style.setProperty("--q-map-image-anchor-y",h+"px")}function Ct(t,e,r){Number.isFinite(r)?t.style.setProperty(e,(Object.is(r,-0)?0:r)+"px"):t.style.removeProperty(e)}const Lt=l.map((t=>At(t)));class Pt{options;layers=new Map;markers=new Map;clusterIndex=new bt;visibleItems=new Map;pendingFocusMarkerKey;markerResizeObserver;collisionFrame;handleViewportChange=()=>this.reconcile();constructor(t){this.options=t,t.map.on("moveend zoomend",this.handleViewportChange),"undefined"!=typeof ResizeObserver&&(this.markerResizeObserver=new ResizeObserver((()=>{void 0===this.collisionFrame&&(this.collisionFrame=requestAnimationFrame((()=>{this.collisionFrame=void 0,this.syncCollisionOffsets([...this.visibleItems.values()])})))})))}sync(t){const e=ut(t);this.markers.clear();for(const t of e)this.markers.set(ht(t.id),t);const r=this.options.getClusteringOptions();r.enabled?this.clusterIndex.load(e,r):this.clusterIndex.clear(),this.reconcile()}syncSelection(){this.reconcile()}getVisibilityTarget(t){const e=ht(t),r=this.markers.get(e);if(!r)return;const a=this.layers.get(e);if("marker"===a?.kind)return{latitude:r.latitude,longitude:r.longitude,rendered:{kind:a.kind,element:a.element}};for(const t of this.layers.values())if(t.markerKeys.includes(e))return{latitude:r.latitude,longitude:r.longitude,rendered:{kind:t.kind,element:t.element}};return{latitude:r.latitude,longitude:r.longitude}}destroy(){this.markerResizeObserver?.disconnect(),void 0!==this.collisionFrame&&cancelAnimationFrame(this.collisionFrame),this.collisionFrame=void 0,this.options.map.off("moveend zoomend",this.handleViewportChange);for(const t of[...this.layers.keys()])this.remove(t);this.visibleItems.clear(),this.markers.clear(),this.clusterIndex.clear()}reconcile(){const t=this.captureFocusIntent(),e=this.getVisibleItems();this.visibleItems=new Map(e.map((t=>[t.key,t])));for(const t of[...this.layers.keys()])this.visibleItems.has(t)||this.remove(t);for(const t of e){const e=this.layers.get(t.key);e&&e.kind!==t.kind&&this.remove(t.key);const r=this.layers.get(t.key)??this.add(t);r&&this.update(r,t)}this.syncCollisionOffsets(e);const r=t&&this.layers.get(t.renderKey)?.element===t.element;this.pendingFocusMarkerKey?this.restoreFocus(this.pendingFocusMarkerKey)&&(this.pendingFocusMarkerKey=void 0):t&&!r&&(this.restoreFocus(t.markerKey)||this.options.map.getContainer().focus())}getVisibleItems(){if(!this.options.getClusteringOptions().enabled)return[...this.markers].map((([t,e])=>({kind:"marker",key:t,marker:e})));const t=this.options.map.getBounds().pad(.2),e=Math.max(-90,t.getSouth()),r=Math.min(90,t.getNorth()),a=Math.max(-180,t.getWest()),i=Math.min(180,t.getEast());return this.clusterIndex.getViewportItems(i>a?[a,e,i,r]:[-180,e,180,r],this.options.map.getZoom(),this.options.getSelectedMarkerId())}add(t){const e=this.options.map.getContainer().ownerDocument,r="marker"===t.kind?function(t){const e=t.createElement("span");e.className="q-map-marker",e.setAttribute("part","marker");const r=t.createElement("span");r.className="q-map-marker__content",r.setAttribute("aria-hidden","true");const a=t.createElement("span");a.className="q-map-marker__center";const i=t.createElement("span");i.className="q-map-marker__fallback",i.hidden=!0;const n=t.createElement("img");n.className="q-map-marker__image",n.alt="",n.decoding="async",n.draggable=!1,n.hidden=!0,n.setAttribute("aria-hidden","true"),n.addEventListener("load",(()=>{n.dataset.source===n.getAttribute("src")&&("image"===e.dataset.markerKind&&(!n.complete||n.naturalWidth<=0)||(n.hidden=!1,a.classList.add("has-image"),zt(e,n)))})),n.addEventListener("error",(()=>{n.dataset.source===n.getAttribute("src")&&("image"===e.dataset.markerKind&&(!n.complete||n.naturalWidth>0)||(n.hidden=!0,a.classList.remove("has-image"),zt(e,n)))}));const o=Mt(t,"q-map-marker__icon");o.hidden=!0;const s=t.createElement("span");s.className="q-map-marker__badge",s.setAttribute("part","marker-badge"),s.hidden=!0;const l=Mt(t,"q-map-marker__badge-icon");l.hidden=!0;const c=t.createElement("span");return c.className="q-map-marker__badge-text",c.hidden=!0,a.append(i,n,o),s.append(l,c),r.append(a,s),e.append(r),e}(e):function(t){const e=t.createElement("span");e.className="q-map-cluster",e.setAttribute("part","cluster");const r=t.createElement("span");r.className="q-map-cluster__content",r.setAttribute("aria-hidden","true");const a=t.createElement("span");return a.className="q-map-cluster__count",r.append(a),e.append(r),e}(e),a="marker"===t.kind?"q-map-marker-position":"q-map-cluster-position",i="marker"===t.kind?t.marker.label:t.count+" map markers",n=this.options.leaflet.marker([this.getLatitude(t),this.getLongitude(t)],{bubblingMouseEvents:!1,icon:this.options.leaflet.divIcon({className:a,html:r,iconAnchor:[0,0],iconSize:[0,0]}),keyboard:!1,riseOnHover:!0,riseOffset:1e3,title:i,zIndexOffset:this.getZIndexOffset(t)});n.addTo(this.options.map);const o=n.getElement();o&&this.markerResizeObserver?.observe(o);const s=n.getElement();if(!s)return void n.remove();if(!s.contains(r))return void n.remove();const l=e=>{e.stopPropagation(),this.activate(t.key,e)},c=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),this.activate(t.key,e))};r.addEventListener("click",l),r.addEventListener("keydown",c);const d={kind:t.kind,layer:n,element:r,markerKeys:[],click:l,keydown:c};return this.layers.set(t.key,d),d}update(t,e){if(t.layer.setLatLng([this.getLatitude(e),this.getLongitude(e)]),t.layer.setZIndexOffset(this.getZIndexOffset(e)),t.markerKeys="marker"===e.kind?[ht(e.marker.id)]:e.markerKeys,"marker"===e.kind){const r=this.isSelected(e.marker.id);return this.syncMarkerSize(t,e.marker.size),function(t,e,r){for(const e of n)t.classList.remove("variant-"+e);t.classList.remove(...wt,...xt),t.classList.add("variant-"+(e.variant??"default"),"ring-"+(e.ring??"none"));const a="icon"!==e.kind||e.icon?e.kind:"dot";a&&t.classList.add("kind-"+a),t.dataset.markerKind=a??"",t.classList.toggle("is-pulsing",!0===e.pulse),t.classList.toggle("is-selected",r),Ct(t,"--q-map-marker-icon-size",e.iconSize),Ct(t,"--q-map-marker-icon-offset-x",e.iconOffsetX),Ct(t,"--q-map-marker-icon-offset-y",e.iconOffsetY);const i=t.querySelector(".q-map-marker__center"),o=i?.querySelector(".q-map-marker__fallback"),s=i?.querySelector(".q-map-marker__image"),l=i?.querySelector(".q-map-marker__icon");if(!(i&&o&&s&&l))return;const c="avatar"===a||void 0===a,d=c?e.fallbackText??"":"",h=c||"image"===a?e.imageUrl:void 0,u="icon"===a?e.icon:void 0;o.textContent=d,o.hidden=!d;for(const[t,r]of Object.entries({width:e.imageSize?.[0],height:e.imageSize?.[1],anchorX:e.imageAnchor?.[0],anchorY:e.imageAnchor?.[1]}))void 0===r?delete s.dataset[t]:s.dataset[t]=r+"";!function(t,e,r){if(!r)return e.hidden=!0,e.removeAttribute("src"),delete e.dataset.source,void t.classList.remove("has-image");e.dataset.source!==r&&(e.hidden=!0,t.classList.remove("has-image"),e.dataset.source=r,e.src=r)}(i,s,h),_t(l,u),t.classList.toggle("has-content",!!(d||h||u)),zt(t,s);const m=t.querySelector(".q-map-marker__badge"),p=m?.querySelector(".q-map-marker__badge-icon"),f=m?.querySelector(".q-map-marker__badge-text");if(m&&p&&f){for(const t of n)m.classList.remove("variant-"+t);m.hidden=!e.badge,m.classList.add("variant-"+(e.badge?.variant??"default")),_t(p,e.badge?.icon),f.textContent=e.badge?.text??"",f.hidden=!e.badge?.text}}(t.element,e.marker,r),t.element.setAttribute("role","button"),t.element.setAttribute("tabindex","0"),t.element.setAttribute("aria-label",function(t){return t.badge?`${t.label}. ${t.badge.ariaLabel}`:t.label}(e.marker)),t.element.setAttribute("aria-pressed",r?"true":"false"),t.element.setAttribute("data-marker-id",e.key),t.element.setAttribute("title",e.marker.label),void this.syncCallout(t,e.marker,r)}this.unbindCallout(t),function(t,e,r){const a=t.querySelector(".q-map-cluster__count");a&&(a.textContent=e>999?Math.floor(e/100)/10+"k":e+""),t.classList.toggle("contains-selection",r)}(t.element,e.count,e.containsSelection),t.element.setAttribute("role","button"),t.element.setAttribute("tabindex","0"),t.element.setAttribute("aria-label",`${e.count} map markers${e.containsSelection?", including the selected marker":""}`),t.element.setAttribute("part","cluster "+function(t){return"cluster-group-"+(t.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"default")}(e.clusterGroup)),t.element.setAttribute("data-cluster-id",e.clusterId),t.element.setAttribute("data-cluster-group",e.clusterGroup),t.element.setAttribute("title",e.count+" map markers"),t.element.removeAttribute("aria-pressed")}getZIndexOffset(t){return"marker"===t.kind&&!1===t.marker.clusterable?2e3:0}syncMarkerSize(t,e){const r=t.layer.getElement();r&&(r.classList.remove(...Lt),e&&r.classList.add(At(e)))}syncCollisionOffsets(t){const e=[];for(const r of t){const t=this.layers.get(r.key);if(!t||t.kind!==r.kind)continue;const a=this.options.map.latLngToContainerPoint([this.getLatitude(r),this.getLongitude(r)]),i=t.layer.getElement(),n=i?.getBoundingClientRect();e.push({key:r.key,x:a.x,y:a.y,diameter:Math.max(n?.width??0,n?.height??0)||("cluster"===r.kind?32:20)})}const r=function(t){const e=t.filter((t=>Number.isFinite(t.x)&&Number.isFinite(t.y)&&Number.isFinite(t.diameter)&&t.diameter>0)).map((t=>({...t,collisionRadius:.75*t.diameter*.5,offset:{x:0,y:0}}))).sort(((t,e)=>t.key.localeCompare(e.key))),r=Math.max(0,...e.map((t=>t.collisionRadius)));for(let t=0;t<12;t+=1){let t=!1;const a=[...e].sort(((t,e)=>kt(t)-kt(e)||yt(t)-yt(e)||t.key.localeCompare(e.key)));for(let e=0;e<a.length;e+=1){const i=a[e];if(i)for(let n=e+1;n<a.length;n+=1){const e=a[n];if(!e)continue;if(kt(e)-kt(i)>=i.collisionRadius+r)break;const o=kt(e)-kt(i),s=yt(e)-yt(i),l=Math.hypot(o,s),c=i.collisionRadius+e.collisionRadius;if(l+.01>=c)continue;const d=l>.01?{x:o/l,y:s/l}:qt(i.key,e.key),h=.5*(c-l);i.offset.x-=d.x*h,i.offset.y-=d.y*h,e.offset.x+=d.x*h,e.offset.y+=d.y*h,t=!0}}if(!t)break}return new Map(e.map((t=>[t.key,t.offset])))}(e);for(const t of e){const e=this.layers.get(t.key);if(!e)continue;const a=r.get(t.key);!a||Math.abs(a.x)<.01&&Math.abs(a.y)<.01?(e.element.style.removeProperty("translate"),this.syncCalloutCollisionOffset(e,0,0)):(e.element.style.setProperty("translate",`${Zt(a.x)}px ${Zt(a.y)}px`),this.syncCalloutCollisionOffset(e,a.x,a.y))}}syncCalloutCollisionOffset(t,e,r){const a=t.layer.getTooltip();if(!a)return;const i=Zt(e),n=Zt(r),o=`${i}:${n}`;t.calloutCollisionOffset===o||void 0===t.calloutCollisionOffset&&0===i&&0===n||(t.calloutCollisionOffset=o,a.options.offset=this.options.leaflet.point(i,n),a.update())}syncCallout(t,e,r){const a=e.callout;if(!a||!a||"selected"===a.visibility&&!r)return void this.unbindCallout(t);const i=a.placement??"auto";t.calloutBound&&t.calloutPlacement!==i&&this.unbindCallout(t),t.calloutContent??=function(t){const e=t.createElement("div");e.className="q-map-callout__content",e.setAttribute("aria-hidden","true");const r=t.createElement("span");r.className="q-map-callout__heading";const a=t.createElement("span");a.className="q-map-callout__title";const i=t.createElement("span");i.className="q-map-callout__status",i.hidden=!0;const n=t.createElement("span");n.className="q-map-callout__subtitle",n.hidden=!0;const o=t.createElement("span");o.className="q-map-callout__meta",o.hidden=!0;const s=t.createElement("dl");return s.className="q-map-callout__stats",s.hidden=!0,r.append(a,i),e.append(r,n,o,s),e}(t.element.ownerDocument),function(t,e){const r=t.querySelector(".q-map-callout__title"),a=t.querySelector(".q-map-callout__subtitle"),i=t.querySelector(".q-map-callout__status"),o=t.querySelector(".q-map-callout__meta"),s=t.querySelector(".q-map-callout__stats");if(r&&a&&i&&o&&s){for(const e of n)t.classList.remove("variant-"+e);t.classList.add("variant-"+(e.variant??"default")),r.textContent=e.title,a.textContent=e.subtitle??"",a.hidden=!e.subtitle;for(const t of n)i.classList.remove("variant-"+t);i.classList.add("variant-"+(e.status?.variant??"default")),i.textContent=e.status?.label??"",i.hidden=!e.status,o.textContent=e.meta??"",o.hidden=!e.meta,function(t,e){const r=e.map((e=>{const r=t.ownerDocument.createElement("div");r.className="q-map-callout__stat layout-"+(e.layout??"compact");const a=t.ownerDocument.createElement("dt");a.className="q-map-callout__stat-label",a.textContent=e.label;const i=t.ownerDocument.createElement("dd");return i.className="q-map-callout__stat-value",i.textContent=e.value+"",r.append(a,i),r}));t.textContent="",t.append(...r),t.hidden=0===r.length}(s,e.stats??[])}}(t.calloutContent,a),t.calloutPlacement=i,t.calloutBound||(t.layer.bindTooltip(t.calloutContent,{className:"q-map-callout",direction:i,interactive:!1,opacity:1,permanent:!0}),t.calloutBound=!0),t.layer.setTooltipContent(t.calloutContent),t.layer.openTooltip();const o=t.layer.getTooltip()?.getElement();o?.setAttribute("part","marker-callout"),o?.setAttribute("aria-hidden","true")}unbindCallout(t){t.calloutBound&&(t.layer.unbindTooltip(),t.calloutBound=!1,t.calloutCollisionOffset=void 0)}activate(t,e){const r=this.visibleItems.get(t);r&&("marker"!==r.kind?this.activateCluster(r,e):this.options.onMarkerSelect(r.marker,e))}activateCluster(t,e){const r=Math.min(this.options.map.getMaxZoom(),Math.max(this.options.map.getZoom()+1,t.expansionZoom));if(!this.options.onClusterSelect({clusterId:t.clusterId,clusterGroup:t.clusterGroup,markerIds:t.markerIds,latitude:t.latitude,longitude:t.longitude,expansionZoom:r,originalEvent:e})){if(e instanceof KeyboardEvent){const e=this.options.getSelectedMarkerId(),r=void 0===e?void 0:ht(e);this.pendingFocusMarkerKey=r&&t.markerKeys.includes(r)?r:t.markerKeys[0]}this.options.map.setView([t.latitude,t.longitude],r,{animate:!this.options.prefersReducedMotion()})}}captureFocusIntent(){for(const[t,e]of this.layers){if(e.element.getRootNode().activeElement!==e.element)continue;const r=this.options.getSelectedMarkerId(),a=void 0===r?void 0:ht(r);return{element:e.element,renderKey:t,markerKey:a&&e.markerKeys.includes(a)?a:e.markerKeys[0]}}}restoreFocus(t){const e=this.layers.get(t);if("marker"===e?.kind)return e.element.focus(),!0;for(const e of this.layers.values())if("cluster"===e.kind&&e.markerKeys.includes(t))return e.element.focus(),!0;return!1}isSelected(t){const e=this.options.getSelectedMarkerId();return void 0!==e&&ht(e)===ht(t)}getLatitude(t){return"marker"===t.kind?t.marker.latitude:t.latitude}getLongitude(t){return"marker"===t.kind?t.marker.longitude:t.longitude}remove(t){const e=this.layers.get(t);if(!e)return;const r=e.layer.getElement();r&&this.markerResizeObserver?.unobserve(r),e.element.removeEventListener("click",e.click),e.element.removeEventListener("keydown",e.keydown),this.unbindCallout(e),e.layer.remove(),this.layers.delete(t)}}function At(t){return"size-"+t}function Zt(t){return Math.round(100*t)/100}const Bt=.01;function Et(t,e,r){const a=It(t),i=It(e);if(!a||!i)return;if(Ut(a)>Ut(i)+Bt||Tt(a)>Tt(i)+Bt)return;const n=r.map(It).filter((t=>void 0!==t)).map((t=>function(t,e){return It({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)})}(t,i))).filter((t=>void 0!==t)),o=new Set([0,i.left-a.left,i.right-a.right]),s=new Set([0,i.top-a.top,i.bottom-a.bottom]);for(const t of n)o.add(t.left-a.right),o.add(t.right-a.left),s.add(t.top-a.bottom),s.add(t.bottom-a.top);let l,c=1/0;for(const t of o)for(const e of s){const r=$t(a,t,e);if(!Vt(i,r))continue;if(n.some((t=>jt(r,t))))continue;const o=t*t+e*e;o+Bt<c&&(l={x:t,y:e},c=o)}return l}function St(t,e,r){const a=It(t),i=It(e);return!(!a||!i||!Vt(i,a)||r.some((t=>{const e=It(t);return!!e&&jt(a,e)})))}function Nt(t,e){const r=Ot(t.getBoundingClientRect());if("marker"===e){const e=Math.max(function(t){if(!t.classList.contains("ring-solid")&&!t.classList.contains("ring-dashed"))return 0;const e=t.ownerDocument.defaultView;if(!e)return 7;const r=e.getComputedStyle(t,"::after"),a=[r.top,r.right,r.bottom,r.left].map((t=>Number.parseFloat(t))).filter(Number.isFinite).map((t=>Math.max(0,-t)));return Math.max(7,...a)}(t),t.classList.contains("is-selected")?3:0);let a=Rt(r,e);const i=t.querySelector(".q-map-marker__badge:not([hidden])");return i&&(a=function(t,e){return{top:Math.min(t.top,e.top),right:Math.max(t.right,e.right),bottom:Math.max(t.bottom,e.bottom),left:Math.min(t.left,e.left)}}(a,Ot(i.getBoundingClientRect()))),a}return Rt(r,t.classList.contains("contains-selection")?7:4)}function It(t){const{top:e,right:r,bottom:a,left:i}=t;if([e,r,a,i].every(Number.isFinite)&&!(r<=i||a<=e))return{top:e,right:r,bottom:a,left:i}}function Ut(t){return t.right-t.left}function Tt(t){return t.bottom-t.top}function Ot(t){return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}}function Rt(t,e){return{top:t.top-e,right:t.right+e,bottom:t.bottom+e,left:t.left-e}}function $t(t,e,r){return{top:t.top+r,right:t.right+e,bottom:t.bottom+r,left:t.left+e}}function Vt(t,e){return e.left>=t.left-Bt&&e.top>=t.top-Bt&&e.right<=t.right+Bt&&e.bottom<=t.bottom+Bt}function jt(t,e){return t.left<e.right-Bt&&t.right>e.left+Bt&&t.top<e.bottom-Bt&&t.bottom>e.top+Bt}function Ft(t){return Number.isFinite(t)?Math.min(4,Math.max(0,Math.round(t))):0}const Gt=1e4;function Dt(){const t=Error("Raster tile loading was cancelled.");return t.name="AbortError",t}function Qt(t){return Number.isFinite(t)?Math.max(0,Math.min(.5,t)):.2}const Kt=["roadmap","satellite","terrain","hybrid"],Wt=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.qReady=a(this,"qReady"),this.qMapClick=a(this,"qMapClick"),this.qMarkerSelect=a(this,"qMarkerSelect"),this.qClusterSelect=a(this,"qClusterSelect"),this.qStatusChange=a(this,"qStatusChange"),this.qError=a(this,"qError")}get el(){return this}attribution="";attributionUrl="";markers=[];clusterMarkers=!1;clusterRadius=48;clusterMinPoints=2;clusterMaxZoom;centerLatitude=0;centerLongitude=0;zoom=2;zoomControls=!0;scrollWheelZoom=!0;minZoom=0;maxZoom=19;maxBounds;maxBoundsViscosity=1;selectedMarkerId;provider="tiles";tileUrl="";tilePreloadBuffer=0;rasterTileLoadingPolicy="full-batch";vectorStyleUrl="";vectorPadding=.2;googleApiKey="";googleMapType="roadmap";ariaLabel="Interactive map";qReady;qMapClick;qMarkerSelect;qClusterSelect;qStatusChange;qError;providerStatus="initializing";activeProvider;usingFallback=!1;errorMessage;leaflet;map;canvas;resizeObserver;initializationToken=0;markerVisibilityToken=0;cancelMarkerVisibilityPan;layerController;markerController;lastInvalidBoundsInput;reportedRequestedProvider;baseLayerSyncQueued=!1;hasLoaded=!1;connected=!1;connectedCallback(){this.connected=!0,this.hasLoaded&&this.initializeMap()}componentDidLoad(){this.hasLoaded=!0,this.initializeMap()}disconnectedCallback(){this.connected=!1,this.initializationToken+=1,this.destroyMap()}async fitMarkers(t={}){const e=this.map,r=ut(this.markers);if(!e||!this.connected||0===r.length)return!1;e.invalidateSize({animate:!1,pan:!1});const a=e.getSize();if(a.x<=0||a.y<=0)return!1;const{minimum:i,maximum:n}=this.getZoomLimits(),o=Number.isFinite(t.maxZoom)?Math.max(i,Math.min(n,t.maxZoom)):n,s=Math.min(Number.isFinite(t.padding)?Math.max(0,t.padding):0,Math.max(0,(Math.min(a.x,a.y)-1)/2));return this.markerVisibilityToken+=1,this.cancelMarkerVisibilityPan?.(),this.markerController?.sync(this.markers),e.fitBounds(r.map((t=>[t.latitude,t.longitude])),{animate:!1,padding:[s,s],maxZoom:o}),!0}async ensureMarkerVisible(t,e){const r=++this.markerVisibilityToken;if(this.cancelMarkerVisibilityPan?.(),!this.isMarkerVisibilityCurrent(r))return"unavailable";let a=!1;for(let i=0;i<3;i+=1){if(!this.isMarkerVisibilityCurrent(r))return"unavailable";const i=this.map,n=this.canvas,o=this.markerController;if(!i||!n||!o)return"unavailable";const s=o.getVisibilityTarget(t);if(!s)return"unavailable";const l=this.toViewportRect(n.getBoundingClientRect()),c=this.getMarkerVisibilityOcclusions(e),d=s.rendered?Nt(s.rendered.element,s.rendered.kind):this.getCoordinateRect(s.latitude,s.longitude,l);if(s.rendered&&St(d,l,c))return a?"panned":"visible";const h=Et(d,l,c);if(!h)return"constrained";if(Math.abs(h.x)<.01&&Math.abs(h.y)<.01){if(o.syncSelection(),!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.waitForMarkerLayout(),!this.isMarkerVisibilityCurrent(r))return"unavailable"}else{if(!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.panByMarkerTranslation(i,h.x,h.y,r),!this.isMarkerVisibilityCurrent(r))return"unavailable";if(a=!0,!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.waitForMarkerLayout(),!this.isMarkerVisibilityCurrent(r))return"unavailable"}}if(!this.isMarkerVisibilityCurrent(r))return"unavailable";const i=this.map,n=this.canvas,o=this.markerController?.getVisibilityTarget(t);if(!i||!n||!o)return"unavailable";if(!o.rendered)return"constrained";const s=this.toViewportRect(n.getBoundingClientRect());return St(Nt(o.rendered.element,o.rendered.kind),s,this.getMarkerVisibilityOcclusions(e))?a?"panned":"visible":"constrained"}handleBaseLayerChange(){this.scheduleBaseLayerSync()}handleTilePreloadBufferChange(){const t=this.getProvider(),e=this.layerController?.getActiveState().activeProvider;(function(t,e){return"tiles"===t||"tiles"===e})(t,e)&&this.scheduleBaseLayerSync()}handleVectorPaddingChange(){const t=this.getProvider(),e=this.layerController?.getActiveState().activeProvider;(function(t,e){return"vector"===t||"vector"===e})(t,e)&&this.scheduleBaseLayerSync()}scheduleBaseLayerSync(){this.map?this.baseLayerSyncQueued||(this.baseLayerSyncQueued=!0,queueMicrotask((()=>{this.baseLayerSyncQueued=!1,this.connected&&this.map&&this.syncBaseLayer()}))):this.initializeMap()}handleMarkersChange(){this.markerController?.sync(this.markers)}handleMarkerClusteringChange(){this.markerController?.sync(this.markers)}handleSelectedMarkerChange(){this.markerController?.syncSelection()}handleViewChange(){this.syncView(!0)}handleZoomLimitsChange(){if(!this.map)return;const{minimum:t,maximum:e}=this.getZoomLimits();this.map.setMinZoom(t),this.map.setMaxZoom(e),this.syncView(),this.syncBaseLayer(),this.markerController?.sync(this.markers)}handleBoundsChange(){this.syncBounds(!0)}handleScrollWheelZoomChange(){this.scrollWheelZoom?this.map?.scrollWheelZoom.enable():this.map?.scrollWheelZoom.disable()}handleZoomControlsChange(){this.map&&(this.destroyMap(),this.initializeMap())}setCanvas=t=>{this.canvas=t??void 0};handleMapClick=t=>{this.qMapClick.emit({latitude:t.latlng.lat,longitude:t.latlng.lng,originalEvent:t.originalEvent})};async initializeMap(){if(this.map||!this.canvas||!this.connected||"undefined"==typeof window)return;const t=++this.initializationToken;this.setProviderStatus("initializing",void 0,!1,!0);try{const e=this.leaflet??await import("./p-DYMWBqU1.js").then((function(t){return t.L}));if(this.leaflet=e,t!==this.initializationToken||!this.canvas||!this.connected||!this.el.isConnected)return;const{minimum:r,maximum:a}=this.getZoomLimits(),i=k(this.maxBounds),n=!this.prefersReducedMotion();if(this.map=e.map(this.canvas,{attributionControl:!1,fadeAnimation:n,inertia:!1,keyboard:!0,markerZoomAnimation:n,maxBounds:y(i),maxBoundsViscosity:q(this.maxBoundsViscosity),maxZoom:a,minZoom:r,trackResize:!1,wheelDebounceTime:n?16:40,wheelPxPerZoomLevel:n?120:60,zoomAnimation:n,zoomControl:this.zoomControls,scrollWheelZoom:this.scrollWheelZoom,zoomDelta:n?.5:1,zoomSnap:n?.25:1}),"invalid"===i.kind?this.reportInvalidBounds(i.message):this.lastInvalidBoundsInput=void 0,this.bindMapEvents(this.map),this.createControllers(this.map,e),this.syncView(),await this.syncBaseLayer(),t!==this.initializationToken||!this.map||!this.connected)return;this.markerController?.sync(this.markers),this.observeResize(),this.map.invalidateSize({animate:!1,pan:!0}),this.qReady.emit()}catch(e){if(t!==this.initializationToken)return;this.destroyMap(),this.errorMessage="Map failed to initialize.",this.setProviderStatus("error",void 0,!1),this.reportError("leaflet-initialization-failed",e,!1)}}bindMapEvents(t){t.on("click",this.handleMapClick)}unbindMapEvents(t){t.off("click",this.handleMapClick)}createControllers(t,e){this.layerController=new p({attach:async(e,r,a)=>{if("tiles"===r){const r=e;a.replacing?await function(t,e={}){const{loadingPolicy:r="full-batch",signal:a,startLoading:i,timeoutMs:n=Gt}=e;return new Promise(((e,o)=>{if(a?.aborted)return void o(Dt());let s,l=!1;const c=r=>{l||(l=!0,t.off("load",d),t.off("tileload",h),t.off("tileerror",u),a?.removeEventListener("abort",m),void 0!==s&&clearTimeout(s),r?o(r):e())},d=()=>"full-batch"===r?c():c(Error("Raster tiles failed to load.")),h=()=>{"progressive"===r&&c()},u=()=>{"full-batch"===r&&c(Error("Raster tiles failed to load."))},m=()=>c(Dt());if(t.on("load",d),t.on("tileload",h),t.on("tileerror",u),a?.addEventListener("abort",m,{once:!0}),s=setTimeout((()=>c(Error("Raster tile loading timed out."))),Math.max(0,n)),i)try{i(),t.isLoading()||c()}catch(t){c(function(t){return t instanceof Error?t:Error(t+"")}(t))}}))}(r,{loadingPolicy:this.getRasterTileLoadingPolicy(),signal:a.signal,startLoading:()=>e.addTo(t)}):e.addTo(t)}else e.addTo(t);"vector"===r&&await function(t){const e=t.getMaplibreMap;if("function"!=typeof e)return Promise.reject(Error("QMap: the vector layer did not expose its MapLibre map."));const r=e.call(t);return r.loaded()?Promise.resolve():new Promise(((t,e)=>{const a=()=>o(t),i=t=>{o((()=>e(t.error??Error("QMap: the vector style failed to load."))))},n=window.setTimeout((()=>{o((()=>e(Error("QMap: the vector style timed out while loading."))))}),15e3),o=t=>{window.clearTimeout(n),r.off("load",a),r.off("error",i),t()};r.on("load",a),r.on("error",i)}))}(e)},createGoogle:async t=>(await function(t){if("undefined"==typeof window||"undefined"==typeof document)return Promise.reject(Error("QMap: Google Maps is only available in a browser environment."));if(C())return Promise.resolve();const e=t.trim(),r=window.google?.maps?.importLibrary;return x?w&&e&&w!==e?Promise.reject(Error("QMap: Google Maps is already loading with a different API key.")):x:r?(x=function(t){return x=t("maps").then((()=>L())).catch((t=>{throw x=void 0,Error("QMap: Google Maps failed to load.",{cause:t})})),x}(r),x):e?(w=e,x=function(t){const e=window,r=e.google,a=r?.maps,i="__webquarkGoogleMapsReady"+ ++z,n=e,o=document.createElement("script"),s=new URLSearchParams({callback:i,key:t,loading:"async",v:"quarterly"});o.async=!0,o.defer=!0,o.src="https://maps.googleapis.com/maps/api/js?"+s,o.dataset.webquarkGoogleMaps="true";const l=document.querySelector("script[nonce]")?.nonce;return l&&(o.nonce=l),new Promise(((t,s)=>{const l=t=>{delete n[i],o.onerror=null,t&&(o.remove(),function(t,e,r){e?(t.google=e,r?e.maps=r:delete e.maps):delete t.google}(e,r,a))};n[i]=()=>{try{L(),l(!1),t()}catch(t){l(!0),s(t)}},o.onerror=()=>{l(!0),s(Error("The Google Maps script could not be loaded."))},document.head.append(o)}))}(e).catch((t=>{throw w=void 0,x=void 0,Error("QMap: Google Maps failed to load.",{cause:t})})),x):Promise.reject(Error("QMap: A Google Maps API key is required."))}(t.googleApiKey),new(await function(t){return M||(M=async function(t){if("undefined"==typeof window)throw Error("QMap: GoogleMutant is only available in a browser environment.");const e=globalThis,r=t.gridLayer,a=Object.prototype.hasOwnProperty,i=a.call(e,"L"),n=e.L,o=a.call(r,"googleMutant"),s=r.googleMutant;e.L=t;try{const t=await import("./p-DuX-9GOi.js");if("function"!=typeof t.default)throw Error("QMap: GoogleMutant did not expose its default constructor.");return t.default}finally{o?r.googleMutant=s:delete r.googleMutant,i?e.L=n:delete e.L}}(t).catch((t=>{throw M=void 0,t}))),M}(e))({type:t.googleMapType,minZoom:t.minZoom,maxZoom:t.maxZoom})),createTiles:t=>{const r=this.getRasterTileLoadingPolicy();return f(e,t.tileUrl,function(t,e,r,a="full-batch"){return{attribution:"",minZoom:t,maxZoom:e,..."progressive"===a?{updateWhenZooming:!0}:{},...r>0?{updateInterval:50,updateWhenIdle:!1,updateWhenZooming:!0}:{}}}(t.minZoom,t.maxZoom,t.tilePreloadBuffer,r),t.tilePreloadBuffer,r)},createVector:async t=>(await function(t){return _||(_=async function(t){if("undefined"==typeof window)throw Error("QMap: the vector provider is only available in a browser environment.");await import("./p-C_RztzNv.js");const e=t.maplibreGL;if("function"!=typeof e)throw Error("QMap: MapLibre did not register its Leaflet layer factory.");return e}(t).catch((t=>{throw _=void 0,t}))),_}(e))({attributionControl:!1,fadeDuration:750,interactive:!1,maxTileCacheZoomLevels:6,maxZoom:t.maxZoom,minZoom:t.minZoom,padding:t.vectorPadding,style:t.vectorStyleUrl,updateInterval:16})}),this.markerController=new Pt({map:t,leaflet:e,getSelectedMarkerId:()=>this.selectedMarkerId,getClusteringOptions:()=>function(t,e,r,a,i){const n=Number.isFinite(i)?Math.max(0,Math.floor(i)):19;return{enabled:t,radius:Number.isFinite(e)?mt(e,1,200):48,minPoints:Number.isFinite(r)?mt(r,2,1e3):2,maxZoom:Number.isFinite(a)?mt(a,0,n):Math.max(0,n-1)}}(this.clusterMarkers,this.clusterRadius,this.clusterMinPoints,this.clusterMaxZoom,t.getMaxZoom()),prefersReducedMotion:()=>this.prefersReducedMotion(),onMarkerSelect:(t,e)=>this.qMarkerSelect.emit({marker:t,originalEvent:e}),onClusterSelect:t=>this.qClusterSelect.emit(t).defaultPrevented})}async syncBaseLayer(){const t=this.layerController;if(!t)return;const e=this.getProvider(),r=t.getActiveState();this.errorMessage=void 0,this.setProviderStatus("initializing",r.activeProvider,r.usingFallback);const{minimum:a,maximum:i}=this.getZoomLimits(),n=await t.sync({requestedProvider:e,tileUrl:this.tileUrl.trim(),tilePreloadBuffer:Ft(this.tilePreloadBuffer),vectorStyleUrl:this.vectorStyleUrl.trim(),vectorPadding:Qt(this.vectorPadding),googleApiKey:this.googleApiKey.trim(),googleApiAvailable:!!C()||"undefined"!=typeof window&&"function"==typeof window.google?.maps?.importLibrary,googleMapType:this.getGoogleMapType(),minZoom:a,maxZoom:i});if(t===this.layerController&&"stale"!==n.kind)if("empty"!==n.kind){if("ready"===n.kind)return n.warning&&this.reportError("provider-initialization-failed",n.warning,!0),void this.setProviderStatus("ready",n.activeProvider,n.usingFallback);this.reportError("provider-initialization-failed",n.error,!0),n.fallbackError&&this.reportError("fallback-initialization-failed",n.fallbackError,!0),this.errorMessage=n.activeProvider?"The requested map provider failed. The previous map remains available.":"Map imagery failed to load.",this.setProviderStatus("error",n.activeProvider,n.usingFallback)}else this.setProviderStatus("empty",void 0,!1)}getZoomLimits(){const t=Number.isFinite(this.minZoom)?this.minZoom:0;return{minimum:t,maximum:Math.max(t,Number.isFinite(this.maxZoom)?this.maxZoom:19)}}getCenter(){return[Number.isFinite(this.centerLatitude)?Math.max(-90,Math.min(90,this.centerLatitude)):0,Number.isFinite(this.centerLongitude)?Math.max(-180,Math.min(180,this.centerLongitude)):0]}getZoom(){const{minimum:t,maximum:e}=this.getZoomLimits();return Math.max(t,Math.min(e,Number.isFinite(this.zoom)?this.zoom:t))}getProvider(){return"google"===this.provider||"vector"===this.provider?this.provider:"tiles"}getRasterTileLoadingPolicy(){return"progressive"===this.rasterTileLoadingPolicy?"progressive":"full-batch"}getGoogleMapType(){return Kt.includes(this.googleMapType)?this.googleMapType:"roadmap"}syncView(t=!1){this.map?.setView(this.getCenter(),this.getZoom(),{animate:t&&!this.prefersReducedMotion()})}getMarkerVisibilityOcclusions(t){const e=[...t],r=this.el.shadowRoot;if(!r)return e;for(const t of Array.from(r.querySelectorAll(".leaflet-control, .map-attribution"))){const r=t.ownerDocument.defaultView?.getComputedStyle(t);if("none"===r?.display||"hidden"===r?.visibility)continue;const a=t.getBoundingClientRect();a.width<=0||a.height<=0||e.push(this.toViewportRect(a))}return e}getCoordinateRect(t,e,r){const a=this.map?.latLngToContainerPoint([t,e]),i=r.left+(a?.x??0),n=r.top+(a?.y??0);return{top:n-.5,right:i+.5,bottom:n+.5,left:i-.5}}toViewportRect(t){return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}}async panByMarkerTranslation(t,e,r,a){const i=!this.prefersReducedMotion();await new Promise((n=>{const o=this.el.ownerDocument.defaultView,s=Date.now();let l,c,d=!1;const h=()=>{d||(d=!0,t.off("moveend",u),void 0!==l&&o?.clearTimeout(l),void 0!==c&&o?.clearTimeout(c),this.cancelMarkerVisibilityPan===m&&(this.cancelMarkerVisibilityPan=void 0),n())},u=()=>{if(d)return;t.off("moveend",u),void 0!==l&&o?.clearTimeout(l);const e=i?Math.max(0,275-(Date.now()-s)):0;e>0&&o?c=o.setTimeout(h,e):h()},m=()=>{d||(t.stop(),h())};this.isMarkerVisibilityCurrent(a)?(this.cancelMarkerVisibilityPan=m,t.once("moveend",u),l=o?.setTimeout(u,500),t.panBy([-Jt(e),-Jt(r)],{animate:i})):h()}))}async waitForMarkerLayout(){await new Promise((t=>{const e=this.el.ownerDocument.defaultView;e&&"function"==typeof e.requestAnimationFrame?e.requestAnimationFrame((()=>t())):queueMicrotask(t)}))}isMarkerVisibilityCurrent(t){return t===this.markerVisibilityToken&&this.connected}prefersReducedMotion(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}syncBounds(t){if(!this.map)return;const e=k(this.maxBounds);!function(t,e,r){t.options.maxBoundsViscosity=q(r),"invalid"!==e.kind&&t.setMaxBounds("valid"===e.kind?e.leafletBounds:void 0)}(this.map,e,this.maxBoundsViscosity),"invalid"===e.kind?t&&this.reportInvalidBounds(e.message):this.lastInvalidBoundsInput=void 0}reportInvalidBounds(t){this.lastInvalidBoundsInput!==this.maxBounds&&(this.lastInvalidBoundsInput=this.maxBounds,this.reportError("invalid-max-bounds",Error(t),!0))}setProviderStatus(t,e,r,a=!1){const i=t!==this.providerStatus||e!==this.activeProvider||r!==this.usingFallback||this.getProvider()!==this.reportedRequestedProvider;this.providerStatus=t,this.activeProvider=e,this.usingFallback=r,this.reportedRequestedProvider=this.getProvider(),(i||a)&&this.qStatusChange.emit({status:t,requestedProvider:this.getProvider(),activeProvider:e,usingFallback:r})}reportError(t,e,r){this.qError.emit({code:t,message:e instanceof Error?e.message:e+"",requestedProvider:this.getProvider(),recoverable:r})}observeResize(){this.canvas&&"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver((()=>this.resizeMap())),this.resizeObserver.observe(this.canvas))}resizeMap(){this.map?.invalidateSize({animate:!1,debounceMoveend:!0,pan:!0}),this.syncBounds(!1)}destroyMap(){this.markerVisibilityToken+=1,this.cancelMarkerVisibilityPan?.(),this.cancelMarkerVisibilityPan=void 0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.markerController?.destroy(),this.markerController=void 0,this.layerController?.destroy(),this.layerController=void 0;const t=this.map;t&&(this.unbindMapEvents(t),t.remove()),this.map=void 0}renderAttribution(){if("tiles"!==this.activeProvider&&"vector"!==this.activeProvider)return null;const t=this.attribution.trim();if(!t)return null;const e=this.getAttributionUrl();return e?i("a",{class:"map-attribution",part:"attribution",href:e,target:"_blank",rel:"noopener noreferrer"},t,i("span",{class:"visually-hidden"}," (opens in a new tab)")):i("span",{class:"map-attribution",part:"attribution"},t)}getAttributionUrl(){const t=this.attributionUrl.trim();if(t)try{const e=new URL(t,this.el.ownerDocument.baseURI);return"https:"===e.protocol||"http:"===e.protocol?t:void 0}catch{return}}render(){return i("div",{key:"cc1311b01c382e8fb9fa56dfe106df28d0f53284",class:"map-surface",part:"surface"},i("div",{key:"7a045981dcf9ef74d1b56044c9cccedb136b5fe3",class:"map-canvas",part:"canvas",role:"region","aria-label":this.ariaLabel,"aria-busy":"initializing"===this.providerStatus?"true":void 0,ref:this.setCanvas}),i("q-icon",{key:"afc8b162325d4773a204337439787a3c8b4d4618",class:"map-icon-registration","aria-hidden":"true"}),"empty"===this.providerStatus&&i("div",{key:"5cd6e3499fa313b8674d270c3b603bf4f99b3f82",class:"map-empty",part:"empty",role:"status"},i("slot",{key:"208a04301474df21413c9ecd088964071199c8b2",name:"empty"},"Map provider is not configured.")),"error"===this.providerStatus&&i("div",{key:"fa3e8abf20064b642bbe81ed4cae631cb005e95e",class:"map-empty map-error",part:"error",role:"alert"},i("slot",{key:"f2920a6e59a7dadd0585a3c3e0f8a017749477fd",name:"error"},this.errorMessage??"Map imagery is unavailable.")),this.renderAttribution())}static get watchers(){return{provider:[{handleBaseLayerChange:0}],tileUrl:[{handleBaseLayerChange:0}],rasterTileLoadingPolicy:[{handleBaseLayerChange:0}],vectorStyleUrl:[{handleBaseLayerChange:0}],googleApiKey:[{handleBaseLayerChange:0}],googleMapType:[{handleBaseLayerChange:0}],tilePreloadBuffer:[{handleTilePreloadBufferChange:0}],vectorPadding:[{handleVectorPaddingChange:0}],markers:[{handleMarkersChange:0}],clusterMarkers:[{handleMarkerClusteringChange:0}],clusterRadius:[{handleMarkerClusteringChange:0}],clusterMinPoints:[{handleMarkerClusteringChange:0}],clusterMaxZoom:[{handleMarkerClusteringChange:0}],selectedMarkerId:[{handleSelectedMarkerChange:0}],centerLatitude:[{handleViewChange:0}],centerLongitude:[{handleViewChange:0}],zoom:[{handleViewChange:0}],minZoom:[{handleZoomLimitsChange:0}],maxZoom:[{handleZoomLimitsChange:0}],maxBounds:[{handleBoundsChange:0}],maxBoundsViscosity:[{handleBoundsChange:0}],scrollWheelZoom:[{handleScrollWheelZoomChange:0}],zoomControls:[{handleZoomControlsChange:0}]}}static get style(){return":host{display:block;width:100%;height:var(--q-map-height, 100%);min-width:0;min-height:var(--q-map-min-height, 240px);box-sizing:border-box}.map-surface{position:relative;width:100%;height:100%;min-height:inherit;box-sizing:border-box;overflow:hidden;background:var(--q-map-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-map-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-map-radius, var(--q-radius-lg, 11px))}.map-canvas{width:100%;height:100%;min-height:inherit;background:inherit;outline:none}.map-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--q-color-primary, #60a5fa)}.map-icon-registration{display:none}.map-empty{position:absolute;z-index:900;top:50%;left:50%;max-width:calc(100% - 32px);padding:8px 12px;transform:translate(-50%, -50%);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-muted, #9ca3af);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.8rem);line-height:1.4;text-align:center;pointer-events:none}.map-error{color:var(--q-color-danger, #ef4444)}.map-attribution{position:absolute;z-index:1000;right:0;bottom:0;max-width:calc(100% - 8px);padding:2px 6px;overflow:hidden;background:var(--q-map-attribution-bg, var(--q-bg-base, #111827));color:var(--q-map-attribution-color, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-xs, 0.7rem);line-height:1.4;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}a.map-attribution:hover,a.map-attribution:focus-visible{color:var(--q-fg-base, #f9fafb);text-decoration:underline}a.map-attribution:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-tooltip-pane{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:none}.maplibregl-map{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-control-container{display:none}.leaflet-zoom-animated{transform-origin:0 0}.leaflet-tile-container.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform 250ms cubic-bezier(0, 0, 0.25, 1);will-change:transform}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{display:block;user-select:none;-webkit-user-drag:none}.leaflet-container .leaflet-tile-pane img,.leaflet-container .leaflet-tile{width:auto;max-width:none !important;max-height:none !important;padding:0}.leaflet-tile-pane{filter:var(--q-map-tile-filter, none)}.leaflet-tile{visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{position:relative;z-index:800;float:left;clear:both;pointer-events:auto}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive{pointer-events:auto}.leaflet-grab{cursor:grab}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-marker-draggable{cursor:grabbing}.leaflet-interactive{cursor:pointer}.leaflet-bar{overflow:hidden;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2))}.leaflet-bar a{display:block;width:30px;height:30px;border-bottom:1px solid var(--q-border-color, #374151);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:700 18px/30px var(--q-font-family, sans-serif);text-align:center;text-decoration:none}.leaflet-bar a:last-child{border-bottom:0}.leaflet-bar a:hover,.leaflet-bar a:focus-visible{background:var(--q-bg-surface-2, #374151);color:var(--q-color-primary, #60a5fa)}.leaflet-bar a:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.leaflet-bar a.leaflet-disabled{color:var(--q-fg-disabled, #6b7280);cursor:default}.q-map-marker-position{--q-map-marker-rendered-size:var(--q-map-marker-size, 20px);width:var(--q-map-marker-rendered-size) !important;height:var(--q-map-marker-rendered-size) !important;margin-top:calc(var(--q-map-marker-rendered-size) * -0.5) !important;margin-left:calc(var(--q-map-marker-rendered-size) * -0.5) !important}.q-map-marker-position.size-small{--q-map-marker-rendered-size:var(--q-map-marker-size-small, 16px)}.q-map-marker-position.size-medium{--q-map-marker-rendered-size:var(--q-map-marker-size-medium, var(--q-map-marker-size, 20px))}.q-map-marker-position.size-large{--q-map-marker-rendered-size:var(--q-map-marker-size-large, 24px)}.q-map-marker{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:3px solid var(--q-bg-base, #111827);border-radius:50%;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.3));outline:none;transition:box-shadow 160ms ease}.q-map-marker.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker.is-selected{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), var( --q-map-marker-selected-shadow, var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3)) )}.q-map-marker:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-marker__center{display:grid;width:30%;height:30%;place-items:center;overflow:hidden;border-radius:50%;background:var(--q-bg-base, #111827);pointer-events:none}.q-map-marker.has-content{padding:var(--q-map-marker-content-gap, 2px)}.q-map-marker.has-content .q-map-marker__center{width:100%;height:100%;background:var(--q-map-marker-content-bg, var(--q-bg-base, #111827));color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));font:700 clamp(0.5rem, calc(var(--q-map-marker-rendered-size, var(--q-map-marker-size, 20px)) * 0.25), 0.75rem) / 1 var(--q-font-family, sans-serif)}.q-map-marker__fallback,.q-map-marker__image{grid-area:1 / 1}.q-map-marker__fallback{max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap}.q-map-marker__image{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.q-map-marker__image[hidden]{display:none}.q-map-marker__content{position:relative;z-index:1;display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-marker.kind-icon{border-radius:var(--q-radius-md, 8px)}.q-map-marker.kind-icon .q-map-marker__center{border-radius:calc(var(--q-radius-md, 8px) - 3px)}.q-map-marker__icon{width:var(--q-map-marker-icon-size, 58%) !important;height:var(--q-map-marker-icon-size, 58%) !important;transform:translate( var(--q-map-marker-icon-offset-x, 0), var(--q-map-marker-icon-offset-y, 0) );color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));pointer-events:none}.q-map-marker__icon[hidden]{display:none}.q-map-marker-position.is-image{width:var(--q-map-image-width) !important;height:var(--q-map-image-height) !important;margin-left:calc(var(--q-map-image-anchor-x) * -1) !important;margin-top:calc(var(--q-map-image-anchor-y) * -1) !important}.q-map-marker.kind-image{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.q-map-marker.kind-image.is-selected{filter:drop-shadow(0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)))}.q-map-marker.kind-image .q-map-marker__center{width:100%;height:100%;overflow:visible;border-radius:0;background:transparent}.q-map-marker.kind-image .q-map-marker__image{object-fit:contain}.q-map-marker.ring-solid::after,.q-map-marker.ring-dashed::after{position:absolute;z-index:0;inset:-7px;box-sizing:border-box;border:2px solid var(--q-map-marker-ring-color, currentColor);border-radius:inherit;content:'';pointer-events:none}.q-map-marker.ring-dashed::after{border-style:dashed}.q-map-marker.is-pulsing::before{position:absolute;z-index:0;inset:-4px;border:2px solid var(--q-map-marker-pulse-color, var(--q-color-primary, #60a5fa));border-radius:inherit;content:'';pointer-events:none;animation:q-map-marker-pulse 1.8s ease-out infinite}@keyframes q-map-marker-pulse{0%{opacity:0.85;transform:scale(0.9)}75%,100%{opacity:0;transform:scale(1.8)}}.q-map-marker__badge{position:absolute;z-index:3;right:-7px;bottom:-6px;display:inline-flex;min-width:14px;height:14px;padding:0 3px;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;border:2px solid var(--q-bg-base, #111827);border-radius:999px;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));color:var(--q-fg-base, #f9fafb);font:700 8px/1 var(--q-font-family, sans-serif);white-space:nowrap}.q-map-marker__badge[hidden]{display:none}.q-map-marker__badge.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker__badge.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker__badge.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker__badge.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker__badge-icon{width:8px !important;height:8px !important}.q-map-marker__badge-icon[hidden],.q-map-marker__badge-text[hidden]{display:none}.q-map-cluster-position{width:var(--q-map-marker-cluster-size, 32px) !important;height:var(--q-map-marker-cluster-size, 32px) !important;margin-top:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important;margin-left:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important}.q-map-cluster{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:2px solid color-mix(in srgb, var(--q-color-primary, #60a5fa) 70%, white);border-radius:50%;background:color-mix(in srgb, var(--q-color-primary, #60a5fa) 24%, var(--q-bg-base, #111827));box-shadow:0 0 0 4px color-mix(in srgb, var(--q-color-primary, #60a5fa) 18%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));color:var(--q-fg-base, #f9fafb);outline:none;transition:box-shadow 160ms ease}.q-map-cluster.contains-selection{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), 0 0 0 7px color-mix(in srgb, var(--q-color-primary, #60a5fa) 28%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3))}.q-map-cluster:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-cluster__content{display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-cluster__count{font:700 0.7rem/1 var(--q-font-family, sans-serif)}.leaflet-tooltip{position:absolute;box-sizing:border-box;white-space:nowrap;pointer-events:none;user-select:none}.q-map-callout{width:var(--q-map-marker-callout-width, var(--q-map-marker-callout-max-width, 220px));max-width:calc(100vw - 24px);padding:7px 9px;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-map-marker-callout-bg, color-mix(in srgb, var(--q-bg-base, #111827) 94%, transparent));color:var(--q-fg-base, #f9fafb);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));font-family:var(--q-font-family, sans-serif)}.q-map-callout.leaflet-tooltip-top{margin-top:-20px}.q-map-callout.leaflet-tooltip-bottom{margin-top:20px}.q-map-callout.leaflet-tooltip-left{margin-left:-20px}.q-map-callout.leaflet-tooltip-right{margin-left:20px}.q-map-callout__content{display:grid;min-width:0;gap:2px}.q-map-callout__heading{display:flex;min-width:0;align-items:center;gap:6px}.q-map-callout__title,.q-map-callout__subtitle,.q-map-callout__meta{overflow:hidden;text-overflow:ellipsis}.q-map-callout__title{flex:1 1 auto;min-width:0;color:inherit;font-size:var(--q-font-size-sm, 0.8rem);font-weight:700}.q-map-callout__subtitle,.q-map-callout__meta{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-xs, 0.7rem)}.q-map-callout__subtitle{min-width:0}.q-map-callout__status{--q-map-marker-callout-status-accent:var(--q-color-primary, #60a5fa);display:inline-flex;flex:none;max-width:var(--q-map-marker-callout-status-max-width, 45%);margin-inline-start:auto;min-height:18px;padding:2px 6px;align-items:center;overflow:hidden;box-sizing:border-box;border:1px solid color-mix(in srgb, var(--q-map-marker-callout-status-accent) 34%, transparent);border-radius:999px;background:color-mix(in srgb, var(--q-map-marker-callout-status-accent) 16%, transparent);color:var(--q-map-marker-callout-status-accent);font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1;text-overflow:ellipsis;white-space:nowrap}.q-map-callout__status.variant-success{--q-map-marker-callout-status-accent:var(--q-color-success, #34d399)}.q-map-callout__status.variant-warning{--q-map-marker-callout-status-accent:var(--q-color-warning, #fbbf24)}.q-map-callout__status.variant-danger{--q-map-marker-callout-status-accent:var(--q-color-danger, #f87171)}.q-map-callout__status.variant-muted{--q-map-marker-callout-status-accent:var(--q-fg-muted, #9ca3af)}.q-map-callout__meta{color:var(--q-map-marker-callout-meta-color, var(--q-color-primary, #60a5fa))}.q-map-callout__stats{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px 8px;margin:4px 0 0;padding:5px 0 0;border-top:1px solid color-mix(in srgb, var(--q-border-color, #374151) 70%, transparent)}.q-map-callout__stat{min-width:0}.q-map-callout__stat.layout-wide{grid-column:1 / -1}.q-map-callout__stat-label,.q-map-callout__stat-value{margin:0;overflow:hidden;text-overflow:ellipsis}.q-map-callout__stat-label{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-2xs, 0.625rem);line-height:1.2;white-space:nowrap}.q-map-callout__stat-value{margin-top:1px;color:inherit;font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1.25;white-space:nowrap}.q-map-callout__stat.layout-wide .q-map-callout__stat-value{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.q-map-callout__subtitle[hidden],.q-map-callout__status[hidden],.q-map-callout__meta[hidden],.q-map-callout__stats[hidden]{display:none}@media (prefers-reduced-motion: reduce){.q-map-marker,.q-map-cluster{transition:none}.q-map-marker.is-pulsing::before{opacity:0.65;animation:none;transform:none}}"}},[769,"q-map",{attribution:[1],attributionUrl:[1,"attribution-url"],markers:[1],clusterMarkers:[4,"cluster-markers"],clusterRadius:[2,"cluster-radius"],clusterMinPoints:[2,"cluster-min-points"],clusterMaxZoom:[2,"cluster-max-zoom"],centerLatitude:[2,"center-latitude"],centerLongitude:[2,"center-longitude"],zoom:[2],zoomControls:[4,"zoom-controls"],scrollWheelZoom:[4,"scroll-wheel-zoom"],minZoom:[2,"min-zoom"],maxZoom:[2,"max-zoom"],maxBounds:[1,"max-bounds"],maxBoundsViscosity:[2,"max-bounds-viscosity"],selectedMarkerId:[8,"selected-marker-id"],provider:[1],tileUrl:[1,"tile-url"],tilePreloadBuffer:[2,"tile-preload-buffer"],rasterTileLoadingPolicy:[1,"raster-tile-loading-policy"],vectorStyleUrl:[1,"vector-style-url"],vectorPadding:[2,"vector-padding"],googleApiKey:[1,"google-api-key"],googleMapType:[1,"google-map-type"],ariaLabel:[1,"aria-label"],providerStatus:[32],activeProvider:[32],usingFallback:[32],errorMessage:[32],fitMarkers:[64],ensureMarkerVisible:[64]},void 0,{provider:[{handleBaseLayerChange:0}],tileUrl:[{handleBaseLayerChange:0}],rasterTileLoadingPolicy:[{handleBaseLayerChange:0}],vectorStyleUrl:[{handleBaseLayerChange:0}],googleApiKey:[{handleBaseLayerChange:0}],googleMapType:[{handleBaseLayerChange:0}],tilePreloadBuffer:[{handleTilePreloadBufferChange:0}],vectorPadding:[{handleVectorPaddingChange:0}],markers:[{handleMarkersChange:0}],clusterMarkers:[{handleMarkerClusteringChange:0}],clusterRadius:[{handleMarkerClusteringChange:0}],clusterMinPoints:[{handleMarkerClusteringChange:0}],clusterMaxZoom:[{handleMarkerClusteringChange:0}],selectedMarkerId:[{handleSelectedMarkerChange:0}],centerLatitude:[{handleViewChange:0}],centerLongitude:[{handleViewChange:0}],zoom:[{handleViewChange:0}],minZoom:[{handleZoomLimitsChange:0}],maxZoom:[{handleZoomLimitsChange:0}],maxBounds:[{handleBoundsChange:0}],maxBoundsViscosity:[{handleBoundsChange:0}],scrollWheelZoom:[{handleScrollWheelZoomChange:0}],zoomControls:[{handleZoomControlsChange:0}]}]);function Jt(t){return Math.sign(t)*Math.ceil(Math.abs(t))}function Xt(){"undefined"!=typeof customElements&&["q-map","q-icon"].forEach((e=>{switch(e){case"q-map":customElements.get(t(e))||customElements.define(t(e),Wt);break;case"q-icon":customElements.get(t(e))||m()}}))}Xt();const Yt=Wt,Ht=Xt;export{Yt as QMap,Ht as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as
|
|
1
|
+
import{t as e,p as t,H as s,h as a,d as n}from"./p-D2nxHd1b.js";const c=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}src="";kind="image";loading="lazy";alt="";render(){return a(n,{key:"49f6d5a90a5cb7afeee7ab095fef25de2033640a"},a("slot",{key:"96b02b03210be05385b0cef1e815ea2e1815696f"}),a("slot",{key:"ed0a47203720efe45c55e00718d20f2120c1c183",name:"fallback"}))}static get style(){return":host{display:block;min-width:0}"}},[769,"q-media",{src:[1],kind:[513],loading:[1],alt:[1]}]);function d(){"undefined"!=typeof customElements&&["q-media"].forEach((t=>{"q-media"===t&&(customElements.get(e(t))||customElements.define(e(t),c))}))}d();const o=c,i=d;export{o as QMedia,i as defineCustomElement}
|