@geotrekce/geotrek-rando-widget 0.0.21 → 0.2.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/{css-shim-4e479c1a.js → css-shim-541cb78a.js} +2 -2
- package/dist/cjs/css-shim-541cb78a.js.br +0 -0
- package/dist/cjs/css-shim-541cb78a.js.gz +0 -0
- package/dist/cjs/{css-shim-4e479c1a.js.map → css-shim-541cb78a.js.map} +1 -1
- package/dist/cjs/{dom-52c0133a.js → dom-7f26de17.js} +2 -2
- package/dist/cjs/dom-7f26de17.js.br +0 -0
- package/dist/cjs/dom-7f26de17.js.gz +0 -0
- package/dist/cjs/{dom-52c0133a.js.map → dom-7f26de17.js.map} +1 -1
- package/dist/cjs/geotrek-rando-widget.cjs.js +4 -4
- package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.map +1 -1
- package/dist/cjs/grw-app.cjs.entry.js +61 -17
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/{grw-filter_6.cjs.entry.js → grw-filter_7.cjs.entry.js} +5554 -257
- package/dist/cjs/grw-filter_7.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter_7.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter_7.cjs.entry.js.map +1 -0
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +51 -9
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-trek-card.cjs.entry.js +17 -10
- package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js.map +1 -1
- package/dist/cjs/i18n-67fd458f.js +108 -0
- package/dist/cjs/i18n-67fd458f.js.br +0 -0
- package/dist/cjs/i18n-67fd458f.js.gz +0 -0
- package/dist/cjs/i18n-67fd458f.js.map +1 -0
- package/dist/cjs/{index-5c1a15c7.js → index-965985fa.js} +486 -30
- package/dist/cjs/index-965985fa.js.br +0 -0
- package/dist/cjs/index-965985fa.js.gz +0 -0
- package/dist/cjs/index-965985fa.js.map +1 -0
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/pagination-149c2052.js +4655 -0
- package/dist/cjs/pagination-149c2052.js.br +0 -0
- package/dist/cjs/pagination-149c2052.js.gz +0 -0
- package/dist/cjs/pagination-149c2052.js.map +1 -0
- package/dist/cjs/{shadow-css-388a8a25.js → shadow-css-2e025b8c.js} +2 -2
- package/dist/cjs/shadow-css-2e025b8c.js.br +0 -0
- package/dist/cjs/shadow-css-2e025b8c.js.gz +0 -0
- package/dist/cjs/{shadow-css-388a8a25.js.map → shadow-css-2e025b8c.js.map} +1 -1
- package/dist/cjs/{store-a027262c.js → store-002456b2.js} +11 -9
- package/dist/cjs/store-002456b2.js.br +0 -0
- package/dist/cjs/store-002456b2.js.gz +0 -0
- package/dist/cjs/store-002456b2.js.map +1 -0
- package/dist/collection/assets/default-image.svg +1 -0
- package/dist/collection/assets/default-image.svg.br +1 -0
- package/dist/collection/assets/default-image.svg.gz +0 -0
- package/dist/collection/assets/layers.svg +1 -0
- package/dist/collection/assets/layers.svg.br +0 -0
- package/dist/collection/assets/layers.svg.gz +0 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/grw-app/grw-app.css +120 -73
- package/dist/collection/components/grw-app/grw-app.css.br +0 -0
- package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js +332 -49
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-filter/grw-filter.css +43 -10
- package/dist/collection/components/grw-filter/grw-filter.css.br +0 -0
- package/dist/collection/components/grw-filter/grw-filter.css.gz +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js +1 -1
- package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css +78 -8
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css.br +0 -0
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css.gz +0 -0
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js +32 -4
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.br +0 -0
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.gz +0 -0
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.map +1 -1
- package/dist/collection/components/grw-map/grw-map.css +1213 -672
- package/dist/collection/components/grw-map/grw-map.css.br +0 -0
- package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js +269 -59
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.css +563 -11
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.css.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.css.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js +45 -2
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.map +1 -1
- package/dist/collection/components/grw-select-language/grw-select-language.css +7 -0
- package/dist/collection/components/grw-select-language/grw-select-language.css.br +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.css.gz +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js +26 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js.br +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js.gz +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js.map +1 -0
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css +9 -6
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css.br +0 -0
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.css +44 -16
- package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +75 -14
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +807 -53
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +419 -25
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/collection/components/grw-treks-list/grw-treks-list.css +7 -2
- package/dist/collection/components/grw-treks-list/grw-treks-list.css.br +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.css.gz +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js +66 -9
- package/dist/collection/components/grw-treks-list/grw-treks-list.js.br +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js.gz +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js.map +1 -1
- package/dist/collection/i18n/i18n.js +103 -0
- package/dist/collection/i18n/i18n.js.br +0 -0
- package/dist/collection/i18n/i18n.js.gz +0 -0
- package/dist/collection/i18n/i18n.js.map +1 -0
- package/dist/collection/store/grw-trek-provider.js +29 -20
- package/dist/collection/store/grw-trek-provider.js.br +0 -0
- package/dist/collection/store/grw-trek-provider.js.gz +0 -0
- package/dist/collection/store/grw-trek-provider.js.map +1 -1
- package/dist/collection/store/grw-treks-provider.js +24 -16
- package/dist/collection/store/grw-treks-provider.js.br +0 -0
- package/dist/collection/store/grw-treks-provider.js.gz +0 -0
- package/dist/collection/store/grw-treks-provider.js.map +1 -1
- package/dist/collection/store/store.js +9 -7
- package/dist/collection/store/store.js.br +0 -0
- package/dist/collection/store/store.js.gz +0 -0
- package/dist/collection/store/store.js.map +1 -1
- package/dist/collection/stories/App.js +30 -6
- package/dist/collection/stories/App.js.br +0 -0
- package/dist/collection/stories/App.js.gz +0 -0
- package/dist/collection/stories/App.stories.js +16 -4
- package/dist/collection/stories/App.stories.js.br +0 -0
- package/dist/collection/stories/App.stories.js.gz +0 -0
- package/dist/collection/stories/TrekCard.js +6 -3
- package/dist/collection/stories/TrekCard.js.br +0 -0
- package/dist/collection/stories/TrekCard.js.gz +0 -0
- package/dist/collection/stories/TrekCard.stories.js +6 -3
- package/dist/collection/stories/TrekCard.stories.js.br +0 -0
- package/dist/collection/stories/TrekCard.stories.js.gz +0 -0
- package/dist/collection/stories/TrekDetail.js +19 -4
- package/dist/collection/stories/TrekDetail.js.br +0 -0
- package/dist/collection/stories/TrekDetail.js.gz +0 -0
- package/dist/collection/stories/TrekDetail.stories.js +8 -4
- package/dist/collection/stories/TrekDetail.stories.js.br +0 -0
- package/dist/collection/stories/TrekDetail.stories.js.gz +0 -0
- package/dist/collection/stories/TrekMap.js +23 -1
- package/dist/collection/stories/TrekMap.js.br +0 -0
- package/dist/collection/stories/TrekMap.js.gz +0 -0
- package/dist/collection/stories/TrekMap.stories.js +6 -1
- package/dist/collection/stories/TrekMap.stories.js.br +0 -0
- package/dist/collection/stories/TrekMap.stories.js.gz +0 -0
- package/dist/collection/stories/TreksList.js +22 -3
- package/dist/collection/stories/TreksList.js.br +0 -0
- package/dist/collection/stories/TreksList.js.gz +0 -0
- package/dist/collection/stories/TreksList.stories.js +6 -3
- package/dist/collection/stories/TreksList.stories.js.br +0 -0
- package/dist/collection/stories/TreksList.stories.js.gz +0 -0
- package/dist/collection/stories/TreksMap.js +6 -3
- package/dist/collection/stories/TreksMap.js.br +0 -0
- package/dist/collection/stories/TreksMap.js.gz +0 -0
- package/dist/collection/stories/TreksMap.stories.js +6 -3
- package/dist/collection/stories/TreksMap.stories.js.br +0 -0
- package/dist/collection/stories/TreksMap.stories.js.gz +0 -0
- package/dist/collection/types/types.js.map +1 -1
- package/dist/esm/{css-shim-cfbf2cf5.js → css-shim-8cc70a22.js} +2 -2
- package/dist/esm/css-shim-8cc70a22.js.br +0 -0
- package/dist/esm/css-shim-8cc70a22.js.gz +0 -0
- package/dist/esm/{css-shim-cfbf2cf5.js.map → css-shim-8cc70a22.js.map} +1 -1
- package/dist/esm/{dom-c0f8af80.js → dom-60e3e2ad.js} +2 -2
- package/dist/esm/dom-60e3e2ad.js.br +0 -0
- package/dist/esm/dom-60e3e2ad.js.gz +0 -0
- package/dist/esm/{dom-c0f8af80.js.map → dom-60e3e2ad.js.map} +1 -1
- package/dist/esm/geotrek-rando-widget.js +5 -5
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/geotrek-rando-widget.js.map +1 -1
- package/dist/esm/grw-app.entry.js +61 -17
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/{grw-filter_6.entry.js → grw-filter_7.entry.js} +5539 -263
- package/dist/esm/grw-filter_7.entry.js.br +0 -0
- package/dist/esm/grw-filter_7.entry.js.gz +0 -0
- package/dist/esm/grw-filter_7.entry.js.map +1 -0
- package/dist/esm/grw-information-desk-detail_3.entry.js +51 -9
- package/dist/esm/grw-information-desk-detail_3.entry.js.br +0 -0
- package/dist/esm/grw-information-desk-detail_3.entry.js.gz +0 -0
- package/dist/esm/grw-information-desk-detail_3.entry.js.map +1 -1
- package/dist/esm/grw-trek-card.entry.js +17 -10
- package/dist/esm/grw-trek-card.entry.js.br +0 -0
- package/dist/esm/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm/grw-trek-card.entry.js.map +1 -1
- package/dist/esm/i18n-b25e6b48.js +106 -0
- package/dist/esm/i18n-b25e6b48.js.br +0 -0
- package/dist/esm/i18n-b25e6b48.js.gz +0 -0
- package/dist/esm/i18n-b25e6b48.js.map +1 -0
- package/dist/esm/{index-e862524f.js → index-57c9193c.js} +487 -31
- package/dist/esm/index-57c9193c.js.br +0 -0
- package/dist/esm/index-57c9193c.js.gz +0 -0
- package/dist/esm/index-57c9193c.js.map +1 -0
- package/dist/esm/loader.js +5 -5
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/pagination-24051620.js +4646 -0
- package/dist/esm/pagination-24051620.js.br +0 -0
- package/dist/esm/pagination-24051620.js.gz +0 -0
- package/dist/esm/pagination-24051620.js.map +1 -0
- package/dist/esm/{shadow-css-12b9a099.js → shadow-css-19be24ee.js} +2 -2
- package/dist/esm/shadow-css-19be24ee.js.br +0 -0
- package/dist/esm/shadow-css-19be24ee.js.gz +0 -0
- package/dist/esm/{shadow-css-12b9a099.js.map → shadow-css-19be24ee.js.map} +1 -1
- package/dist/esm/{store-5565fa38.js → store-b2d579d9.js} +11 -9
- package/dist/esm/store-b2d579d9.js.br +0 -0
- package/dist/esm/store-b2d579d9.js.gz +0 -0
- package/dist/esm/store-b2d579d9.js.map +1 -0
- package/dist/esm-es5/{css-shim-cfbf2cf5.js → css-shim-8cc70a22.js} +1 -1
- package/dist/esm-es5/css-shim-8cc70a22.js.br +0 -0
- package/dist/esm-es5/css-shim-8cc70a22.js.gz +0 -0
- package/dist/esm-es5/{css-shim-cfbf2cf5.js.map → css-shim-8cc70a22.js.map} +1 -1
- package/dist/esm-es5/{dom-c0f8af80.js → dom-60e3e2ad.js} +1 -1
- package/dist/esm-es5/dom-60e3e2ad.js.br +0 -0
- package/dist/esm-es5/dom-60e3e2ad.js.gz +0 -0
- package/dist/esm-es5/{dom-c0f8af80.js.map → dom-60e3e2ad.js.map} +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-filter_7.entry.js +14 -0
- package/dist/esm-es5/grw-filter_7.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter_7.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter_7.entry.js.map +1 -0
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.map +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js.map +1 -1
- package/dist/esm-es5/i18n-b25e6b48.js +2 -0
- package/dist/esm-es5/i18n-b25e6b48.js.br +0 -0
- package/dist/esm-es5/i18n-b25e6b48.js.gz +0 -0
- package/dist/esm-es5/i18n-b25e6b48.js.map +1 -0
- package/dist/esm-es5/index-57c9193c.js +3 -0
- package/dist/esm-es5/index-57c9193c.js.br +0 -0
- package/dist/esm-es5/index-57c9193c.js.gz +0 -0
- package/dist/esm-es5/index-57c9193c.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.br +0 -0
- package/dist/esm-es5/loader.js.gz +0 -0
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/pagination-24051620.js +2 -0
- package/dist/esm-es5/pagination-24051620.js.br +0 -0
- package/dist/esm-es5/pagination-24051620.js.gz +0 -0
- package/dist/esm-es5/pagination-24051620.js.map +1 -0
- package/dist/esm-es5/{shadow-css-12b9a099.js → shadow-css-19be24ee.js} +1 -1
- package/dist/esm-es5/shadow-css-19be24ee.js.br +0 -0
- package/dist/esm-es5/shadow-css-19be24ee.js.gz +0 -0
- package/dist/esm-es5/{shadow-css-12b9a099.js.map → shadow-css-19be24ee.js.map} +1 -1
- package/dist/esm-es5/{store-5565fa38.js → store-b2d579d9.js} +2 -2
- package/dist/esm-es5/store-b2d579d9.js.br +0 -0
- package/dist/esm-es5/store-b2d579d9.js.gz +0 -0
- package/dist/esm-es5/store-b2d579d9.js.map +1 -0
- package/dist/geotrek-rando-widget/assets/default-image.svg +1 -0
- package/dist/geotrek-rando-widget/assets/default-image.svg.br +1 -0
- package/dist/geotrek-rando-widget/assets/default-image.svg.gz +0 -0
- package/dist/geotrek-rando-widget/assets/layers.svg +1 -0
- package/dist/geotrek-rando-widget/assets/layers.svg.br +0 -0
- package/dist/geotrek-rando-widget/assets/layers.svg.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.css +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.css.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.css.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0773c38f.js +2 -0
- package/dist/geotrek-rando-widget/p-0773c38f.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0773c38f.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0773c38f.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-3eb96982.js → p-0f28420f.js} +1 -1
- package/dist/geotrek-rando-widget/p-0f28420f.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0f28420f.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-3eb96982.js.map → p-0f28420f.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-1eb5bb96.js → p-15fed795.js} +1 -1
- package/dist/geotrek-rando-widget/p-15fed795.js.br +0 -0
- package/dist/geotrek-rando-widget/p-15fed795.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-1eb5bb96.js.map → p-15fed795.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-1a25ab22.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-1a25ab22.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1a25ab22.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1a25ab22.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-1e1b3006.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-1e1b3006.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1e1b3006.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1e1b3006.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-e6f85aed.system.js → p-2a99981a.system.js} +1 -1
- package/dist/geotrek-rando-widget/p-2a99981a.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2a99981a.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-e6f85aed.system.js.map → p-2a99981a.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-4f746b28.js +3 -0
- package/dist/geotrek-rando-widget/p-4f746b28.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4f746b28.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4f746b28.js.map +1 -0
- package/dist/geotrek-rando-widget/p-58cf0dd0.js +2 -0
- package/dist/geotrek-rando-widget/p-58cf0dd0.js.br +0 -0
- package/dist/geotrek-rando-widget/p-58cf0dd0.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-58cf0dd0.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-66d490d8.system.js → p-634eaa8f.system.js} +1 -1
- package/dist/geotrek-rando-widget/p-634eaa8f.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-634eaa8f.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-66d490d8.system.js.map → p-634eaa8f.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-a9a35a44.system.js → p-63e651bf.system.js} +1 -1
- package/dist/geotrek-rando-widget/p-63e651bf.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-63e651bf.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-a9a35a44.system.js.map → p-63e651bf.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-6d748d33.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-6d748d33.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6d748d33.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6d748d33.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-758bdb7e.system.js +2 -0
- package/dist/geotrek-rando-widget/p-758bdb7e.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-758bdb7e.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-758bdb7e.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-8872ebd8.system.js +2 -0
- package/dist/geotrek-rando-widget/p-8872ebd8.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-8872ebd8.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-8872ebd8.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-8e38db57.system.js +2 -0
- package/dist/geotrek-rando-widget/p-8e38db57.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-8e38db57.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-8e38db57.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-a06aacd4.js +2 -0
- package/dist/geotrek-rando-widget/p-a06aacd4.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a06aacd4.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a06aacd4.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-88c3a6bd.js → p-b5fc5b41.js} +1 -1
- package/dist/geotrek-rando-widget/p-b5fc5b41.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b5fc5b41.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-88c3a6bd.js.map → p-b5fc5b41.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-c72585fe.system.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-c72585fe.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c72585fe.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c72585fe.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-d0b22f11.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-d0b22f11.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d0b22f11.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d0b22f11.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-d5094323.system.js +3 -0
- package/dist/geotrek-rando-widget/p-d5094323.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d5094323.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d5094323.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-d5b0f2d5.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-d5b0f2d5.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d5b0f2d5.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d5b0f2d5.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-dbf7dc54.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-dbf7dc54.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-dbf7dc54.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-dbf7dc54.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-dc91249a.system.js +2 -0
- package/dist/geotrek-rando-widget/p-dc91249a.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-dc91249a.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-dc91249a.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-f60bd917.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-f60bd917.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f60bd917.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f60bd917.entry.js.map +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +20 -6
- package/dist/types/components/grw-information-desk-detail/grw-information-desk-detail.d.ts +8 -0
- package/dist/types/components/grw-map/grw-map.d.ts +28 -6
- package/dist/types/components/grw-poi-detail/grw-poi-detail.d.ts +11 -0
- package/dist/types/components/grw-select-language/grw-select-language.d.ts +4 -0
- package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +5 -2
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +74 -4
- package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +6 -3
- package/dist/types/components.d.ts +115 -30
- package/dist/types/i18n/i18n.d.ts +56 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -0
- package/dist/types/store/grw-trek-provider.d.ts +3 -1
- package/dist/types/store/grw-treks-provider.d.ts +3 -1
- package/dist/types/store/store.d.ts +4 -0
- package/dist/types/types/types.d.ts +17 -3
- package/loader/index.d.ts +1 -1
- package/package.json +17 -14
- package/readme.md +4 -2
- package/dist/cjs/css-shim-4e479c1a.js.br +0 -0
- package/dist/cjs/css-shim-4e479c1a.js.gz +0 -0
- package/dist/cjs/dom-52c0133a.js.br +0 -0
- package/dist/cjs/dom-52c0133a.js.gz +0 -0
- package/dist/cjs/grw-filter_6.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter_6.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter_6.cjs.entry.js.map +0 -1
- package/dist/cjs/index-5c1a15c7.js.br +0 -0
- package/dist/cjs/index-5c1a15c7.js.gz +0 -0
- package/dist/cjs/index-5c1a15c7.js.map +0 -1
- package/dist/cjs/shadow-css-388a8a25.js.br +0 -0
- package/dist/cjs/shadow-css-388a8a25.js.gz +0 -0
- package/dist/cjs/store-a027262c.js.br +0 -0
- package/dist/cjs/store-a027262c.js.gz +0 -0
- package/dist/cjs/store-a027262c.js.map +0 -1
- package/dist/collection/assets/arrow-back.svg +0 -1
- package/dist/collection/assets/arrow-back.svg.br +0 -0
- package/dist/collection/assets/arrow-back.svg.gz +0 -0
- package/dist/collection/assets/ascent.svg +0 -1
- package/dist/collection/assets/ascent.svg.br +0 -0
- package/dist/collection/assets/ascent.svg.gz +0 -0
- package/dist/collection/assets/duration.svg +0 -1
- package/dist/collection/assets/duration.svg.br +0 -0
- package/dist/collection/assets/duration.svg.gz +0 -0
- package/dist/collection/assets/length.svg +0 -1
- package/dist/collection/assets/length.svg.br +0 -4
- package/dist/collection/assets/length.svg.gz +0 -0
- package/dist/esm/css-shim-cfbf2cf5.js.br +0 -0
- package/dist/esm/css-shim-cfbf2cf5.js.gz +0 -0
- package/dist/esm/dom-c0f8af80.js.br +0 -0
- package/dist/esm/dom-c0f8af80.js.gz +0 -0
- package/dist/esm/grw-filter_6.entry.js.br +0 -0
- package/dist/esm/grw-filter_6.entry.js.gz +0 -0
- package/dist/esm/grw-filter_6.entry.js.map +0 -1
- package/dist/esm/index-e862524f.js.br +0 -0
- package/dist/esm/index-e862524f.js.gz +0 -0
- package/dist/esm/index-e862524f.js.map +0 -1
- package/dist/esm/shadow-css-12b9a099.js.br +0 -0
- package/dist/esm/shadow-css-12b9a099.js.gz +0 -0
- package/dist/esm/store-5565fa38.js.br +0 -0
- package/dist/esm/store-5565fa38.js.gz +0 -0
- package/dist/esm/store-5565fa38.js.map +0 -1
- package/dist/esm-es5/css-shim-cfbf2cf5.js.br +0 -0
- package/dist/esm-es5/css-shim-cfbf2cf5.js.gz +0 -0
- package/dist/esm-es5/dom-c0f8af80.js.br +0 -0
- package/dist/esm-es5/dom-c0f8af80.js.gz +0 -0
- package/dist/esm-es5/grw-filter_6.entry.js +0 -7
- package/dist/esm-es5/grw-filter_6.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter_6.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter_6.entry.js.map +0 -1
- package/dist/esm-es5/index-e862524f.js +0 -3
- package/dist/esm-es5/index-e862524f.js.br +0 -0
- package/dist/esm-es5/index-e862524f.js.gz +0 -0
- package/dist/esm-es5/index-e862524f.js.map +0 -1
- package/dist/esm-es5/shadow-css-12b9a099.js.br +0 -0
- package/dist/esm-es5/shadow-css-12b9a099.js.gz +0 -0
- package/dist/esm-es5/store-5565fa38.js.br +0 -0
- package/dist/esm-es5/store-5565fa38.js.gz +0 -0
- package/dist/esm-es5/store-5565fa38.js.map +0 -1
- package/dist/geotrek-rando-widget/assets/arrow-back.svg +0 -1
- package/dist/geotrek-rando-widget/assets/arrow-back.svg.br +0 -0
- package/dist/geotrek-rando-widget/assets/arrow-back.svg.gz +0 -0
- package/dist/geotrek-rando-widget/assets/ascent.svg +0 -1
- package/dist/geotrek-rando-widget/assets/ascent.svg.br +0 -0
- package/dist/geotrek-rando-widget/assets/ascent.svg.gz +0 -0
- package/dist/geotrek-rando-widget/assets/duration.svg +0 -1
- package/dist/geotrek-rando-widget/assets/duration.svg.br +0 -0
- package/dist/geotrek-rando-widget/assets/duration.svg.gz +0 -0
- package/dist/geotrek-rando-widget/assets/length.svg +0 -1
- package/dist/geotrek-rando-widget/assets/length.svg.br +0 -4
- package/dist/geotrek-rando-widget/assets/length.svg.gz +0 -0
- package/dist/geotrek-rando-widget/p-199359a3.system.js +0 -2
- package/dist/geotrek-rando-widget/p-199359a3.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-199359a3.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-199359a3.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-19d69e2f.system.js +0 -3
- package/dist/geotrek-rando-widget/p-19d69e2f.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-19d69e2f.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-19d69e2f.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-1eb5bb96.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1eb5bb96.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-24c3dfb6.entry.js +0 -7
- package/dist/geotrek-rando-widget/p-24c3dfb6.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-24c3dfb6.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-24c3dfb6.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3eb96982.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3eb96982.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-504d151b.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-504d151b.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-504d151b.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-504d151b.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-52c83c69.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-52c83c69.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-52c83c69.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-52c83c69.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-66d490d8.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-66d490d8.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7262406c.js +0 -2
- package/dist/geotrek-rando-widget/p-7262406c.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7262406c.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7262406c.js.map +0 -1
- package/dist/geotrek-rando-widget/p-88c3a6bd.js.br +0 -0
- package/dist/geotrek-rando-widget/p-88c3a6bd.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-921dc146.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-921dc146.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-921dc146.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-921dc146.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-99c86553.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-99c86553.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-99c86553.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-99c86553.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-a96ced47.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-a96ced47.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a96ced47.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a96ced47.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-a9a35a44.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a9a35a44.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b00cf3cc.system.js +0 -2
- package/dist/geotrek-rando-widget/p-b00cf3cc.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b00cf3cc.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b00cf3cc.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c0687c5e.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-c0687c5e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c0687c5e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c0687c5e.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-d8bdcfaf.js +0 -3
- package/dist/geotrek-rando-widget/p-d8bdcfaf.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d8bdcfaf.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d8bdcfaf.js.map +0 -1
- package/dist/geotrek-rando-widget/p-e6f85aed.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e6f85aed.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ee15d9b3.system.entry.js +0 -7
- package/dist/geotrek-rando-widget/p-ee15d9b3.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ee15d9b3.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ee15d9b3.system.entry.js.map +0 -1
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,o=e.length,r;n<o;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host,i as createEvent,g as getAssetPath,c as getElement}from"./index-e862524f.js";import{s as state,o as onChange,r as reset}from"./store-5565fa38.js";import{f as formatDuration,a as formatLength,b as formatAscent}from"./utils-160ec4d0.js";var grwFilterCss=".filter-name{margin-left:8px;color:var(--color-primary);font-size:24px;font-weight:bold}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.filter-button-container .filter-button,.filter-button-container .selected-filter-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;border:1px var(--color-primary) solid;border-radius:8px;margin:8px 0px 0px 8px;padding:8px}.filter-button-container .filter-button{color:var(--color-primary);background-color:#ffffff}.filter-button-container .selected-filter-button{color:#ffffff;background-color:var(--color-primary)}";var GrwFilter=function(){function t(t){registerInstance(this,t);this.filters=[{property:"practices",trekProperty:"practice",type:"include"},{property:"difficulties",trekProperty:"difficulty",type:"include"},{property:"durations",trekProperty:"duration",type:"interval"}];this.filterType=undefined;this.filterName=undefined;this.filterNameProperty=undefined}t.prototype.handleFilter=function(t,e){var i=__spreadArray([],state[this.filterType],true);i.find((function(t){return t.id===e.id})).selected=!i.find((function(t){return t.id===e.id})).selected;state[this.filterType]=i;var n=false;var o=[];var r=function(t){var e=state[t.property].filter((function(t){return t.selected})).map((function(t){return t.id}));if(e.length>0){if(o.length>0){if(t.type==="include"){o=__spreadArray([],o.filter((function(i){return e.includes(i[t.trekProperty])})),true)}else if(t.type==="interval"){o=__spreadArray([],o.filter((function(i){var n=function(e){var n=state[t.property].find((function(t){return t.id===e}));if(i[t.trekProperty]>=n.minValue&&i[t.trekProperty]<=n.maxValue){return{value:true}}};for(var o=0,r=e;o<r.length;o++){var s=r[o];var a=n(s);if(typeof a==="object")return a.value}return false})),true)}}else{if(!n){n=true}if(t.type==="include"){o=__spreadArray([],state.treks.filter((function(i){return e.includes(i[t.trekProperty])})),true)}else if(t.type==="interval"){var i;var r;var s=function(e){var n=state[t.property].find((function(t){return t.id===e}));if(isNaN(i)||n.minValue<i){i=n.minValue}if(isNaN(r)||n.maxValue>r){r=n.maxValue}};for(var a=0,l=e;a<l.length;a++){var h=l[a];s(h)}o=__spreadArray([],state.treks.filter((function(e){return e[t.trekProperty]>=i&&e[t.trekProperty]<=r})),true)}}}};for(var s=0,a=this.filters;s<a.length;s++){var l=a[s];r(l)}state.currentTreks=n?o:state.treks};t.prototype.render=function(){var t=this;return h(Host,null,h("div",{class:"filter-name"},this.filterName),h("div",{class:"filter-button-container"},state[this.filterType].map((function(e){return h("div",{onClick:function(i){return t.handleFilter(i,e)},class:e.selected?"selected-filter-button":"filter-button"},e[t.filterNameProperty])}))))};return t}();GrwFilter.style=grwFilterCss;var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function createCommonjsModule(t,e,i){return i={path:e,exports:{},require:function(t,e){return commonjsRequire()}},t(i,i.exports),i.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var leafletSrc=createCommonjsModule((function(t,e){
|
|
2
|
-
/* @preserve
|
|
3
|
-
* Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com
|
|
4
|
-
* (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
5
|
-
*/
|
|
6
|
-
(function(t,i){i(e)})(commonjsGlobal,(function(t){var e="1.9.3";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++){o=arguments[i];for(e in o){t[e]=o[e]}}return t}var n=Object.create||function(){function t(){}return function(e){t.prototype=e;return new t}}();function o(t,e){var i=Array.prototype.slice;if(t.bind){return t.bind.apply(t,i.call(arguments,1))}var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var r=0;function s(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++r}return t._leaflet_id}function a(t,e,i){var n,o,r,s;s=function(){n=false;if(o){r.apply(i,o);o=false}};r=function(){if(n){o=arguments}else{t.apply(i,arguments);setTimeout(s,e);n=true}};return r}function l(t,e,i){var n=e[1],o=e[0],r=n-o;return t===n&&i?t:((t-o)%r+r)%r+o}function h(){return false}function c(t,e){if(e===false){return t}var i=Math.pow(10,e===undefined?6:e);return Math.round(t*i)/i}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return u(t).split(/\s+/)}function d(t,e){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?n(t.options):{}}for(var i in e){t.options[i]=e[i]}return t.options}function p(t,e,i){var n=[];for(var o in t){n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]))}return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function _(t,e){return t.replace(m,(function(t,i){var n=e[i];if(n===undefined){throw new Error("No value provided for variable "+t)}else if(typeof n==="function"){n=n(e)}return n}))}var g=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function v(t,e){for(var i=0;i<t.length;i++){if(t[i]===e){return i}}return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,i=Math.max(0,16-(e-x));x=e+i;return window.setTimeout(t,i)}var k=window.requestAnimationFrame||b("RequestAnimationFrame")||w;var T=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,i){if(i&&k===w){t.call(e)}else{return k.call(window,o(t,e))}}function z(t){if(t){T.call(window,t)}}var M={__proto__:null,extend:i,create:n,bind:o,get lastId(){return r},stamp:s,throttle:a,wrapNum:l,falseFn:h,formatNum:c,trim:u,splitWords:f,setOptions:d,getParamString:p,template:_,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:k,cancelFn:T,requestAnimFrame:P,cancelAnimFrame:z};function S(){}S.extend=function(t){var e=function(){d(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var o=e.__super__=this.prototype;var r=n(o);r.constructor=e;e.prototype=r;for(var s in this){if(Object.prototype.hasOwnProperty.call(this,s)&&s!=="prototype"&&s!=="__super__"){e[s]=this[s]}}if(t.statics){i(e,t.statics)}if(t.includes){C(t.includes);i.apply(null,[r].concat(t.includes))}i(r,t);delete r.statics;delete r.includes;if(r.options){r.options=o.options?n(o.options):{};i(r.options,t.options)}r._initHooks=[];r.callInitHooks=function(){if(this._initHooksCalled){return}if(o.callInitHooks){o.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,e=r._initHooks.length;t<e;t++){r._initHooks[t].call(this)}};return e};S.include=function(t){var e=this.prototype.options;i(this.prototype,t);if(t.options){this.prototype.options=e;this.mergeOptions(t.options)}return this};S.mergeOptions=function(t){i(this.prototype.options,t);return this};S.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);var i=typeof t==="function"?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(i);return this};function C(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=g(t)?t:[t];for(var e=0;e<t.length;e++){if(t[e]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var A={on:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e)}}else{t=f(t);for(var o=0,r=t.length;o<r;o++){this._on(t[o],e,i)}}return this},off:function(t,e,i){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var n in t){this._off(n,t[n],e)}}else{t=f(t);var o=arguments.length===1;for(var r=0,s=t.length;r<s;r++){if(o){this._off(t[r])}else{this._off(t[r],e,i)}}}return this},_on:function(t,e,i,n){if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,i)!==false){return}if(i===this){i=undefined}var o={fn:e,ctx:i};if(n){o.once=true}this._events=this._events||{};this._events[t]=this._events[t]||[];this._events[t].push(o)},_off:function(t,e,i){var n,o,r;if(!this._events){return}n=this._events[t];if(!n){return}if(arguments.length===1){if(this._firingCount){for(o=0,r=n.length;o<r;o++){n[o].fn=h}}delete this._events[t];return}if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}var s=this._listens(t,e,i);if(s!==false){var a=n[s];if(this._firingCount){a.fn=h;this._events[t]=n=n.slice()}n.splice(s,1)}},fire:function(t,e,n){if(!this.listens(t,n)){return this}var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var l=r[s];var h=l.fn;if(l.once){this.off(t,h,l.ctx)}h.call(l.ctx||this,o)}this._firingCount--}}if(n){this._propagateEvent(o)}return this},listens:function(t,e,i,n){if(typeof t!=="string"){console.warn('"string" type argument expected')}var o=e;if(typeof e!=="function"){n=!!e;o=undefined;i=undefined}var r=this._events&&this._events[t];if(r&&r.length){if(this._listens(t,o,i)!==false){return true}}if(n){for(var s in this._eventParents){if(this._eventParents[s].listens(t,e,i,n)){return true}}}return false},_listens:function(t,e,i){if(!this._events){return false}var n=this._events[t]||[];if(!e){return!!n.length}if(i===this){i=undefined}for(var o=0,r=n.length;o<r;o++){if(n[o].fn===e&&n[o].ctx===i){return o}}return false},once:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e,true)}}else{t=f(t);for(var o=0,r=t.length;o<r;o++){this._on(t[o],e,i,true)}}return this},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[s(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[s(t)]}return this},_propagateEvent:function(t){for(var e in this._eventParents){this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),true)}}};A.addEventListener=A.on;A.removeEventListener=A.clearAllEventListeners=A.off;A.addOneTimeEventListener=A.once;A.fireEvent=A.fire;A.hasEventListeners=A.listens;var I=S.extend(A);function E(t,e,i){this.x=i?Math.round(t):t;this.y=i?Math.round(e):e}var Z=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};E.prototype={clone:function(){return new E(this.x,this.y)},add:function(t){return this.clone()._add(B(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(B(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new E(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new E(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=Z(this.x);this.y=Z(this.y);return this},distanceTo:function(t){t=B(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){t=B(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=B(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}};function B(t,e,i){if(t instanceof E){return t}if(g(t)){return new E(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new E(t.x,t.y)}return new E(t,e,i)}function O(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n<o;n++){this.extend(i[n])}}O.prototype={extend:function(t){var e,i;if(!t){return this}if(t instanceof E||typeof t[0]==="number"||"x"in t){e=i=B(t)}else{t=D(t);e=t.min;i=t.max;if(!e||!i){return this}}if(!this.min&&!this.max){this.min=e.clone();this.max=i.clone()}else{this.min.x=Math.min(e.x,this.min.x);this.max.x=Math.max(i.x,this.max.x);this.min.y=Math.min(e.y,this.min.y);this.max.y=Math.max(i.y,this.max.y)}return this},getCenter:function(t){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;if(typeof t[0]==="number"||t instanceof E){t=B(t)}else{t=D(t)}if(t instanceof O){e=t.min;i=t.max}else{e=i=t}return e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=D(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,s=o.y>=e.y&&n.y<=i.y;return r&&s},overlaps:function(t){t=D(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.x<i.x,s=o.y>e.y&&n.y<i.y;return r&&s},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,o=Math.abs(e.y-i.y)*t;return D(B(e.x-n,e.y-o),B(i.x+n,i.y+o))},equals:function(t){if(!t){return false}t=D(t);return this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())}};function D(t,e){if(!t||t instanceof O){return t}return new O(t,e)}function N(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n<o;n++){this.extend(i[n])}}N.prototype={extend:function(t){var e=this._southWest,i=this._northEast,n,o;if(t instanceof j){n=t;o=t}else if(t instanceof N){n=t._southWest;o=t._northEast;if(!n||!o){return this}}else{return t?this.extend(H(t)||R(t)):this}if(!e&&!i){this._southWest=new j(n.lat,n.lng);this._northEast=new j(o.lat,o.lng)}else{e.lat=Math.min(n.lat,e.lat);e.lng=Math.min(n.lng,e.lng);i.lat=Math.max(o.lat,i.lat);i.lng=Math.max(o.lng,i.lng)}return this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new N(new j(e.lat-n,e.lng-o),new j(i.lat+n,i.lng+o))},getCenter:function(){return new j((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){if(typeof t[0]==="number"||t instanceof j||"lat"in t){t=H(t)}else{t=R(t)}var e=this._southWest,i=this._northEast,n,o;if(t instanceof N){n=t.getSouthWest();o=t.getNorthEast()}else{n=o=t}return n.lat>=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=R(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,s=o.lng>=e.lng&&n.lng<=i.lng;return r&&s},overlaps:function(t){t=R(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.lat<i.lat,s=o.lng>e.lng&&n.lng<i.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){if(!t){return false}t=R(t);return this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)},isValid:function(){return!!(this._southWest&&this._northEast)}};function R(t,e){if(t instanceof N){return t}return new N(t,e)}function j(t,e,i){if(isNaN(t)||isNaN(e)){throw new Error("Invalid LatLng object: ("+t+", "+e+")")}this.lat=+t;this.lng=+e;if(i!==undefined){this.alt=+i}}j.prototype={equals:function(t,e){if(!t){return false}t=H(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===undefined?1e-9:e)},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,H(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return R([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new j(this.lat,this.lng,this.alt)}};function H(t,e,i){if(t instanceof j){return t}if(g(t)&&typeof t[0]!=="object"){if(t.length===3){return new j(t[0],t[1],t[2])}if(t.length===2){return new j(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new j(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(e===undefined){return null}return new j(t,e,i)}var F={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var e=this.projection.bounds,i=this.scale(t),n=this.transformation.transform(e.min,i),o=this.transformation.transform(e.max,i);return new O(n,o)},infinite:false,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,i=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,n=t.alt;return new j(i,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(n===0&&o===0){return t}var r=t.getSouthWest(),s=t.getNorthEast(),a=new j(r.lat-n,r.lng-o),l=new j(s.lat-n,s.lng-o);return new N(a,l)}};var W=i({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),s=Math.sin((e.lng-t.lng)*i/2),a=r*r+Math.cos(n)*Math.cos(o)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}});var V=6378137;var U={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new E(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=V*Math.PI;return new O([-t,-t],[t,t])}()};function G(t,e,i,n){if(g(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=e;this._c=i;this._d=n}G.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){e=e||1;t.x=e*(this._a*t.x+this._b);t.y=e*(this._c*t.y+this._d);return t},untransform:function(t,e){e=e||1;return new E((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function q(t,e,i,n){return new G(t,e,i,n)}var K=i({},W,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return q(t,.5,-t,.5)}()});var Y=i({},K,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,e){var i="",n,o,r,s,a,l;for(n=0,r=t.length;n<r;n++){a=t[n];for(o=0,s=a.length;o<s;o++){l=a[o];i+=(o?"L":"M")+l.x+" "+l.y}i+=e?Ot.svg?"z":"x":""}return i||"M0 0"}var $=document.documentElement.style;var Q="ActiveXObject"in window;var tt=Q&&!document.addEventListener;var et="msLaunchUri"in navigator&&!("documentMode"in document);var it=Bt("webkit");var nt=Bt("android");var ot=Bt("android 2")||Bt("android 3");var rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var st=nt&&Bt("Google")&&rt<537&&!("AudioNode"in window);var at=!!window.opera;var lt=!et&&Bt("chrome");var ht=Bt("gecko")&&!it&&!at&&!Q;var ct=!lt&&Bt("safari");var ut=Bt("phantom");var ft="OTransition"in $;var dt=navigator.platform.indexOf("Win")===0;var pt=Q&&"transition"in $;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot;var _t="MozPerspective"in $;var gt=!window.L_DISABLE_3D&&(pt||mt||_t)&&!ft&&!ut;var vt=typeof orientation!=="undefined"||Bt("mobile");var yt=vt&⁢var bt=vt&&mt;var xt=!window.PointerEvent&&window.MSPointerEvent;var wt=!!(window.PointerEvent||xt);var kt="ontouchstart"in window||!!window.TouchEvent;var Tt=!window.L_NO_TOUCH&&(kt||wt);var Lt=vt&&at;var Pt=vt&&ht;var zt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Mt=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",h,e);window.removeEventListener("testPassiveEventSupport",h,e)}catch(i){}return t}();var St=function(){return!!document.createElement("canvas").getContext}();var Ct=!!(document.createElementNS&&J("svg").createSVGRect);var At=!!Ct&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var It=!Ct&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;e.style.behavior="url(#default#VML)";return e&&typeof e.adj==="object"}catch(i){return false}}();var Et=navigator.platform.indexOf("Mac")===0;var Zt=navigator.platform.indexOf("Linux")===0;function Bt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ot={ie:Q,ielt9:tt,edge:et,webkit:it,android:nt,android23:ot,androidStock:st,opera:at,chrome:lt,gecko:ht,safari:ct,phantom:ut,opera12:ft,win:dt,ie3d:pt,webkit3d:mt,gecko3d:_t,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:bt,msPointer:xt,pointer:wt,touch:Tt,touchNative:kt,mobileOpera:Lt,mobileGecko:Pt,retina:zt,passiveEvents:Mt,canvas:St,svg:Ct,vml:It,inlineSvg:At,mac:Et,linux:Zt};var Dt=Ot.msPointer?"MSPointerDown":"pointerdown";var Nt=Ot.msPointer?"MSPointerMove":"pointermove";var Rt=Ot.msPointer?"MSPointerUp":"pointerup";var jt=Ot.msPointer?"MSPointerCancel":"pointercancel";var Ht={touchstart:Dt,touchmove:Nt,touchend:Rt,touchcancel:jt};var Ft={touchstart:$t,touchmove:Xt,touchend:Xt,touchcancel:Xt};var Wt={};var Vt=false;function Ut(t,e,i){if(e==="touchstart"){Jt()}if(!Ft[e]){console.warn("wrong event specified:",e);return h}i=Ft[e].bind(this,i);t.addEventListener(Ht[e],i,false);return i}function Gt(t,e,i){if(!Ht[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ht[e],i,false)}function qt(t){Wt[t.pointerId]=t}function Kt(t){if(Wt[t.pointerId]){Wt[t.pointerId]=t}}function Yt(t){delete Wt[t.pointerId]}function Jt(){if(!Vt){document.addEventListener(Dt,qt,true);document.addEventListener(Nt,Kt,true);document.addEventListener(Rt,Yt,true);document.addEventListener(jt,Yt,true);Vt=true}}function Xt(t,e){if(e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")){return}e.touches=[];for(var i in Wt){e.touches.push(Wt[i])}e.changedTouches=[e];t(e)}function $t(t,e){if(e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH){qe(e)}Xt(t,e)}function Qt(t){var e={},i,n;for(n in t){i=t[n];e[n]=i&&i.bind?i.bind(t):i}t=e;e.type="dblclick";e.detail=2;e.isTrusted=false;e._simulated=true;return e}var te=200;function ee(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(t){if(t.detail!==1){n=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var o=Ye(t);if(o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))&&!o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){return}var r=Date.now();if(r-i<=te){n++;if(n===2){e(Qt(t))}}else{n=1}i=r}t.addEventListener("click",o);return{dblclick:e,simDblclick:o}}function ie(t,e){t.removeEventListener("dblclick",e.dblclick);t.removeEventListener("click",e.simDblclick)}var ne=be(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var oe=be(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var re=oe==="webkitTransition"||oe==="OTransition"?oe+"End":"transitionend";function se(t){return typeof t==="string"?document.getElementById(t):t}function ae(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function le(t,e,i){var n=document.createElement(t);n.className=e||"";if(i){i.appendChild(n)}return n}function he(t){var e=t.parentNode;if(e){e.removeChild(t)}}function ce(t){while(t.firstChild){t.removeChild(t.firstChild)}}function ue(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function fe(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function de(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var i=ge(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function pe(t,e){if(t.classList!==undefined){var i=f(e);for(var n=0,o=i.length;n<o;n++){t.classList.add(i[n])}}else if(!de(t,e)){var r=ge(t);_e(t,(r?r+" ":"")+e)}}function me(t,e){if(t.classList!==undefined){t.classList.remove(e)}else{_e(t,u((" "+ge(t)+" ").replace(" "+e+" "," ")))}}function _e(t,e){if(t.className.baseVal===undefined){t.className=e}else{t.className.baseVal=e}}function ge(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function ve(t,e){if("opacity"in t.style){t.style.opacity=e}else if("filter"in t.style){ye(t,e)}}function ye(t,e){var i=false,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(o){if(e===1){return}}e=Math.round(e*100);if(i){i.Enabled=e!==100;i.Opacity=e}else{t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function be(t){var e=document.documentElement.style;for(var i=0;i<t.length;i++){if(t[i]in e){return t[i]}}return false}function xe(t,e,i){var n=e||new E(0,0);t.style[ne]=(Ot.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function we(t,e){t._leaflet_pos=e;if(Ot.any3d){xe(t,e)}else{t.style.left=e.x+"px";t.style.top=e.y+"px"}}function ke(t){return t._leaflet_pos||new E(0,0)}var Te;var Le;var Pe;if("onselectstart"in document){Te=function(){De(window,"selectstart",qe)};Le=function(){Re(window,"selectstart",qe)}}else{var ze=be(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Te=function(){if(ze){var t=document.documentElement.style;Pe=t[ze];t[ze]="none"}};Le=function(){if(ze){document.documentElement.style[ze]=Pe;Pe=undefined}}}function Me(){De(window,"dragstart",qe)}function Se(){Re(window,"dragstart",qe)}var Ce,Ae;function Ie(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Ee();Ce=t;Ae=t.style.outline;t.style.outline="none";De(window,"keydown",Ee)}function Ee(){if(!Ce){return}Ce.style.outline=Ae;Ce=undefined;Ae=undefined;Re(window,"keydown",Ee)}function Ze(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Be(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Oe={__proto__:null,TRANSFORM:ne,TRANSITION:oe,TRANSITION_END:re,get:se,getStyle:ae,create:le,remove:he,empty:ce,toFront:ue,toBack:fe,hasClass:de,addClass:pe,removeClass:me,setClass:_e,getClass:ge,setOpacity:ve,testProp:be,setTransform:xe,setPosition:we,getPosition:ke,get disableTextSelection(){return Te},get enableTextSelection(){return Le},disableImageDrag:Me,enableImageDrag:Se,preventOutline:Ie,restoreOutline:Ee,getSizedParentNode:Ze,getScale:Be};function De(t,e,i,n){if(e&&typeof e==="object"){for(var o in e){Fe(t,o,e[o],i)}}else{e=f(e);for(var r=0,s=e.length;r<s;r++){Fe(t,e[r],i,n)}}return this}var Ne="_leaflet_events";function Re(t,e,i,n){if(arguments.length===1){je(t);delete t[Ne]}else if(e&&typeof e==="object"){for(var o in e){We(t,o,e[o],i)}}else{e=f(e);if(arguments.length===2){je(t,(function(t){return v(e,t)!==-1}))}else{for(var r=0,s=e.length;r<s;r++){We(t,e[r],i,n)}}}return this}function je(t,e){for(var i in t[Ne]){var n=i.split(/\d/)[0];if(!e||e(n)){We(t,n,null,null,i)}}}var He={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Fe(t,e,i,n){var o=e+s(i)+(n?"_"+s(n):"");if(t[Ne]&&t[Ne][o]){return this}var r=function(e){return i.call(n||t,e||window.event)};var a=r;if(!Ot.touchNative&&Ot.pointer&&e.indexOf("touch")===0){r=Ut(t,e,r)}else if(Ot.touch&&e==="dblclick"){r=ee(t,r)}else if("addEventListener"in t){if(e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"){t.addEventListener(He[e]||e,r,Ot.passiveEvents?{passive:false}:false)}else if(e==="mouseenter"||e==="mouseleave"){r=function(e){e=e||window.event;if(Qe(t,e)){a(e)}};t.addEventListener(He[e],r,false)}else{t.addEventListener(e,a,false)}}else{t.attachEvent("on"+e,r)}t[Ne]=t[Ne]||{};t[Ne][o]=r}function We(t,e,i,n,o){o=o||e+s(i)+(n?"_"+s(n):"");var r=t[Ne]&&t[Ne][o];if(!r){return this}if(!Ot.touchNative&&Ot.pointer&&e.indexOf("touch")===0){Gt(t,e,r)}else if(Ot.touch&&e==="dblclick"){ie(t,r)}else if("removeEventListener"in t){t.removeEventListener(He[e]||e,r,false)}else{t.detachEvent("on"+e,r)}t[Ne][o]=null}function Ve(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function Ue(t){Fe(t,"wheel",Ve);return this}function Ge(t){De(t,"mousedown touchstart dblclick contextmenu",Ve);t["_leaflet_disable_click"]=true;return this}function qe(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function Ke(t){qe(t);Ve(t);return this}function Ye(t){if(t.composedPath){return t.composedPath()}var e=[];var i=t.target;while(i){e.push(i);i=i.parentNode}return e}function Je(t,e){if(!e){return new E(t.clientX,t.clientY)}var i=Be(e),n=i.boundingClientRect;return new E((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Xe=Ot.linux&&Ot.chrome?window.devicePixelRatio:Ot.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function $e(t){return Ot.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Xe:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Qe(t,e){var i=e.relatedTarget;if(!i){return true}try{while(i&&i!==t){i=i.parentNode}}catch(n){return false}return i!==t}var ti={__proto__:null,on:De,off:Re,stopPropagation:Ve,disableScrollPropagation:Ue,disableClickPropagation:Ge,preventDefault:qe,stop:Ke,getPropagationPath:Ye,getMousePosition:Je,getWheelDelta:$e,isExternalTarget:Qe,addListener:De,removeListener:Re};var ei=I.extend({run:function(t,e,i,n){this.stop();this._el=t;this._inProgress=true;this._duration=i||.25;this._easeOutPower=1/Math.max(n||.5,.2);this._startPos=ke(t);this._offset=e.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=P(this._animate,this);this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;if(e<i){this._runFrame(this._easeOut(e/i),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));if(e){i._round()}we(this._el,i);this.fire("step")},_complete:function(){z(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var ii=I.extend({options:{crs:K,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,e){e=d(this,e);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=o(this._onResize,this);this._initEvents();if(e.maxBounds){this.setMaxBounds(e.maxBounds)}if(e.zoom!==undefined){this._zoom=this._limitZoom(e.zoom)}if(e.center&&e.zoom!==undefined){this.setView(H(e.center),e.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=oe&&Ot.any3d&&!Ot.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();De(this._proxy,re,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,e,n){e=e===undefined?this._zoom:this._limitZoom(e);t=this._limitCenter(H(t),e,this.options.maxBounds);n=n||{};this._stop();if(this._loaded&&!n.reset&&n!==true){if(n.animate!==undefined){n.zoom=i({animate:n.animate},n.zoom);n.pan=i({animate:n.animate,duration:n.duration},n.pan)}var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o){clearTimeout(this._sizeTimer);return this}}this._resetView(t,e,n.pan&&n.pan.noMoveStart);return this},setZoom:function(t,e){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:e})},zoomIn:function(t,e){t=t||(Ot.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){t=t||(Ot.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),r=t instanceof E?t:this.latLngToContainerPoint(t),s=r.subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(s));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{};t=t.getBounds?t.getBounds():R(t);var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,false,i.add(n));o=typeof e.maxZoom==="number"?Math.min(e.maxZoom,o):o;if(o===Infinity){return{center:t.getCenter(),zoom:o}}var r=n.subtract(i).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),l=this.unproject(s.add(a).divideBy(2).add(r),o);return{center:l,zoom:o}},fitBounds:function(t,e){t=R(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){t=B(t).round();e=e||{};if(!t.x&&!t.y){return this.fire("moveend")}if(e.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new ei;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!e.noMoveStart){this.fire("movestart")}if(e.animate!==false){pe(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,e,i){i=i||{};if(i.animate===false||!Ot.any3d){return this.setView(t,e,i)}this._stop();var n=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=H(t);e=e===undefined?s:e;var a=Math.max(r.x,r.y),l=a*this.getZoomScale(s,e),h=o.distanceTo(n)||1,c=1.42,u=c*c;function f(t){var e=t?-1:1,i=t?l:a,n=l*l-a*a+e*u*u*h*h,o=2*i*u*h,r=n/o,s=Math.sqrt(r*r+1)-r;var c=s<1e-9?-18:Math.log(s);return c}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return d(t)/p(t)}var _=f(0);function g(t){return a*(p(_)/p(_+c*t))}function v(t){return a*(p(_)*m(_+c*t)-d(_))/u}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),x=(f(1)-_)/c,w=i.duration?1e3*i.duration:1e3*x*.8;function k(){var i=(Date.now()-b)/w,r=y(i)*x;if(i<=1){this._flyToFrame=P(k,this);this._move(this.unproject(n.add(o.subtract(n).multiplyBy(v(r)/h)),s),this.getScaleZoom(a/g(r),s),{flyTo:true})}else{this._move(t,e)._moveEnd(true)}}this._moveStart(true,i.noMoveStart);k.call(this);return this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){t=R(t);if(this.listens("moveend",this._panInsideMaxBounds)){this.off("moveend",this._panInsideMaxBounds)}if(!t.isValid()){this.options.maxBounds=null;return this}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var e=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var e=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,e){this._enforcingBounds=true;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,R(t));if(!i.equals(n)){this.panTo(n,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=D([s.min.add(i),s.max.subtract(n)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=true;var h=r.subtract(a.getCenter());var c=a.extend(r).getSize().subtract(l);o.x+=h.x<0?-c.x:c.x;o.y+=h.y<0?-c.y:c.y;this.panTo(this.unproject(o),e);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=i({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var n=this.getSize(),r=e.divideBy(2).round(),s=n.divideBy(2).round(),a=r.subtract(s);if(!a.x&&!a.y){return this}if(t.animate&&t.pan){this.panBy(a)}else{if(t.pan){this._rawPanBy(a)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:n})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=i({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,n,t)}else{navigator.geolocation.getCurrentPosition(e,n,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){if(!this._container._leaflet_id){return}var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var e=t.coords.latitude,i=t.coords.longitude,n=new j(e,i),o=n.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){var s=this.getBoundsZoom(o);this.setView(n,r.maxZoom?Math.min(s,r.maxZoom):s)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var l in t.coords){if(typeof t.coords[l]==="number"){a[l]=t.coords[l]}}this.fire("locationfound",a)},addHandler:function(t,e){if(!e){return this}var i=this[t]=new e(this);this._handlers.push(i);if(this.options[t]){i.enable()}return this},remove:function(){this._initEvents(true);if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}if(this._containerId!==this._container._leaflet_id){throw new Error("Map container is being reused by another instance")}try{delete this._container._leaflet_id;delete this._containerId}catch(e){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();he(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){z(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){he(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=le("div",i,e||this._mapPane);if(t){this._panes[t]=n}return n},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter.clone()}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new N(e,i)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=R(t);i=B(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(i),h=D(this.project(a,n),this.project(s,n)).getSize(),c=Ot.any3d?this.options.zoomSnap:1,u=l.x/h.x,f=l.y/h.y,d=e?Math.max(u,f):Math.min(u,f);n=this.getScaleZoom(d,n);if(c){n=Math.round(n/(c/100))*(c/100);n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c}return Math.max(o,Math.min(r,n))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new O(i,i.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;return i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?Infinity:n},project:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(B(t),e)},layerPointToLatLng:function(t){var e=B(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(H(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(R(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return B(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return B(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(B(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Je(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=se(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}De(e,"scroll",this._onScroll,this);this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ot.any3d;pe(t,"leaflet-container"+(Ot.touch?" leaflet-touch":"")+(Ot.retina?" leaflet-retina":"")+(Ot.ielt9?" leaflet-oldie":"")+(Ot.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ae(t,"position");if(e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);we(this._mapPane,new E(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){pe(t.markerPane,"leaflet-zoom-hide");pe(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e,i){we(this._mapPane,new E(0,0));var n=!this._loaded;this._loaded=true;e=this._limitZoom(e);this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o);this.fire("viewreset");if(n){this.fire("load")}},_moveStart:function(t,e){if(t){this.fire("zoomstart")}if(!e){this.fire("movestart")}return this},_move:function(t,e,i,n){if(e===undefined){e=this._zoom}var o=this._zoom!==e;this._zoom=e;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!n){if(o||i&&i.pinch){this.fire("zoom",i)}this.fire("move",i)}else if(i&&i.pinch){this.fire("zoom",i)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){z(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){we(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!this._enforcingBounds){this.panInsideBounds(this.options.maxBounds)}},_checkIfLoaded:function(){if(!this._loaded){throw new Error("Set map center and zoom first.")}},_initEvents:function(t){this._targets={};this._targets[s(this._container)]=this;var e=t?Re:De;e(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){e(window,"resize",this._onResize,this)}if(Ot.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){z(this._resizeRequest);this._resizeRequest=P((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,e){var i=[],n,o=e==="mouseout"||e==="mouseover",r=t.target||t.srcElement,a=false;while(r){n=this._targets[s(r)];if(n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){a=true;break}if(n&&n.listens(e,true)){if(o&&!Qe(r,t)){break}i.push(n);if(o){break}}if(r===this._container){break}r=r.parentNode}if(!i.length&&!a&&!o&&this.listens(e,true)){i=[this]}return i},_isClickDisabled:function(t){while(t&&t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!this._loaded||e["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(e)){return}var i=t.type;if(i==="mousedown"){Ie(e)}this._fireDOMEvent(t,i)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=i({},t);o.type="preclick";this._fireDOMEvent(o,o.type,n)}var r=this._findEventTargets(t,e);if(n){var s=[];for(var a=0;a<n.length;a++){if(n[a].listens(e,true)){s.push(n[a])}}r=s.concat(r)}if(!r.length){return}if(e==="contextmenu"){qe(t)}var l=r[0];var h={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var c=l.getLatLng&&(!l._radius||l._radius<=10);h.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t);h.layerPoint=this.containerPointToLayerPoint(h.containerPoint);h.latlng=c?l.getLatLng():this.layerPointToLatLng(h.layerPoint)}for(a=0;a<r.length;a++){r[a].fire(e,h,true);if(h.originalEvent._stopped||r[a].options.bubblingMouseEvents===false&&v(this._mouseEvents,e)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++){this._handlers[t].disable()}},whenReady:function(t,e){if(this._loaded){t.call(e||this,{target:this})}else{this.on("load",t,e)}return this},_getMapPanePos:function(){return ke(this._mapPane)||new E(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==undefined?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return D([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i){return t}var n=this.project(t,e),o=this.getSize().divideBy(2),r=new O(n.subtract(o),n.add(o)),s=this._getBoundsOffset(r,i,e);if(Math.abs(s.x)<=1&&Math.abs(s.y)<=1){return t}return this.unproject(n.add(s),e)},_limitOffset:function(t,e){if(!e){return t}var i=this.getPixelBounds(),n=new O(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=D(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),r=n.max.subtract(t.max),s=this._rebound(o.x,-r.x),a=this._rebound(o.y,-r.y);return new E(s,a)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Ot.any3d?this.options.zoomSnap:1;if(n){t=Math.round(t/n)*n}return Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){me(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();if((e&&e.animate)!==true&&!this.getSize().contains(i)){return false}this.panBy(i,e);return true},_createAnimProxy:function(){var t=this._proxy=le("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var e=ne,i=this._proxy.style[e];xe(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(i===this._proxy.style[e]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){he(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();xe(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom){return true}i=i||{};if(!this._zoomAnimated||i.animate===false||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold){return false}var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);if(i.animate!==true&&!this.getSize().contains(o)){return false}P((function(){this._moveStart(true,false)._animateZoom(t,e,true)}),this);return true},_animateZoom:function(t,e,i,n){if(!this._mapPane){return}if(i){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=e;pe(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:n});if(!this._tempFireZoomEvent){this._tempFireZoomEvent=this._zoom!==this._animateToZoom}this._move(this._animateToCenter,this._animateToZoom,undefined,true);setTimeout(o(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){me(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom,undefined,true);if(this._tempFireZoomEvent){this.fire("zoom")}delete this._tempFireZoomEvent;this.fire("move");this._moveEnd(true)}});function ni(t,e){return new ii(t,e)}var oi=S.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;if(e){e.removeControl(this)}this.options.position=t;if(e){e.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];pe(e,"leaflet-control");if(i.indexOf("bottom")!==-1){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}he(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var ri=function(t){return new oi(t)};ii.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=le("div",e+"control-container",this._container);function n(n,o){var r=e+n+" "+e+o;t[n+o]=le("div",r,i)}n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){he(this._controlCorners[t])}he(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var si=oi.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){d(this,i);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;for(var n in t){this._addLayer(t[n],n)}for(n in e){this._addLayer(e[n],n,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++){this._layers[e].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){oi.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,e){this._addLayer(t,e);return this._map?this._update():this},addOverlay:function(t,e){this._addLayer(t,e,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(s(t));if(e){this._layers.splice(this._layers.indexOf(e),1)}return this._map?this._update():this},expand:function(){pe(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){pe(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{me(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){me(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=le("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",true);Ge(e);Ue(e);var n=this._section=le("section",t+"-list");if(i){this._map.on("click",this.collapse,this);De(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)}var o=this._layersLink=le("a",t+"-toggle",e);o.href="#";o.title="Layers";o.setAttribute("role","button");De(o,{keydown:function(t){if(t.keyCode===13){this._expandSafely()}},click:function(t){qe(t);this._expandSafely()}},this);if(!i){this.expand()}this._baseLayersList=le("div",t+"-base",n);this._separator=le("div",t+"-separator",n);this._overlaysList=le("div",t+"-overlays",n);e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++){if(this._layers[e]&&s(this._layers[e].layer)===t){return this._layers[e]}}},_addLayer:function(t,e,i){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:e,overlay:i});if(this.options.sortLayers){this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}ce(this._baseLayersList);ce(this._overlaysList);this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++){n=this._layers[i];this._addItem(n);e=e||n.overlay;t=t||!n.overlay;o+=!n.overlay?1:0}if(this.options.hideSingleBase){t=t&&o>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=e&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var e=this._getLayer(s(t.target));var i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(i){this._map.fire(i,e)}},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>";var n=document.createElement("div");n.innerHTML=i;return n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;if(t.overlay){n=document.createElement("input");n.type="checkbox";n.className="leaflet-control-layers-selector";n.defaultChecked=i}else{n=this._createRadioElement("leaflet-base-layers_"+s(this),i)}this._layerControlInputs.push(n);n.layerId=s(t.layer);De(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("span");e.appendChild(r);r.appendChild(n);r.appendChild(o);var a=t.overlay?this._overlaysList:this._baseLayersList;a.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){var t=this._layerControlInputs,e,i;var n=[],o=[];this._handlingClick=true;for(var r=t.length-1;r>=0;r--){e=t[r];i=this._getLayer(e.layerId).layer;if(e.checked){n.push(i)}else if(!e.checked){o.push(i)}}for(r=0;r<o.length;r++){if(this._map.hasLayer(o[r])){this._map.removeLayer(o[r])}}for(r=0;r<n.length;r++){if(!this._map.hasLayer(n[r])){this._map.addLayer(n[r])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,e,i,n=this._map.getZoom();for(var o=t.length-1;o>=0;o--){e=t[o];i=this._getLayer(e.layerId).layer;e.disabled=i.options.minZoom!==undefined&&n<i.options.minZoom||i.options.maxZoom!==undefined&&n>i.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expandSafely:function(){var t=this._section;De(t,"click",qe);this.expand();setTimeout((function(){Re(t,"click",qe)}))}});var ai=function(t,e,i){return new si(t,e,i)};var li=oi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=le("div",e+" leaflet-bar"),n=this.options;this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn);this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,e,i,n,o){var r=le("a",i,n);r.innerHTML=t;r.href="#";r.title=e;r.setAttribute("role","button");r.setAttribute("aria-label",e);Ge(r);De(r,"click",Ke);De(r,"click",o,this);De(r,"click",this._refocusOnMap,this);return r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";me(this._zoomInButton,e);me(this._zoomOutButton,e);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){pe(this._zoomOutButton,e);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){pe(this._zoomInButton,e);this._zoomInButton.setAttribute("aria-disabled","true")}}});ii.mergeOptions({zoomControl:true});ii.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new li;this.addControl(this.zoomControl)}}));var hi=function(t){return new li(t)};var ci=oi.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",i=le("div",e),n=this.options;this._addScales(n,e+"-line",i);t.on(n.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){if(t.metric){this._mScale=le("div",e,i)}if(t.imperial){this._iScale=le("div",e,i)}},_update:function(){var t=this._map,e=t.getSize().y/2;var i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;if(e>5280){i=e/5280;n=this._getRoundNum(i);this._updateScale(this._iScale,n+" mi",n/i)}else{o=this._getRoundNum(e);this._updateScale(this._iScale,o+" ft",o/e)}},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px";t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1;return e*i}});var ui=function(t){return new ci(t)};var fi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';var di=oi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ot.inlineSvg?fi+" ":"")+"Leaflet</a>"},initialize:function(t){d(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=le("div","leaflet-control-attribution");Ge(this._container);for(var e in t._layers){if(t._layers[e].getAttribution){this.addAttribution(t._layers[e].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var e in this._attributions){if(this._attributions[e]){t.push(e)}}var i=[];if(this.options.prefix){i.push(this.options.prefix)}if(t.length){i.push(t.join(", "))}this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}});ii.mergeOptions({attributionControl:true});ii.addInitHook((function(){if(this.options.attributionControl){(new di).addTo(this)}}));var pi=function(t){return new di(t)};oi.Layers=si;oi.Zoom=li;oi.Scale=ci;oi.Attribution=di;ri.layers=ai;ri.zoom=hi;ri.scale=ui;ri.attribution=pi;var mi=S.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});mi.addTo=function(t,e){t.addHandler(e,this);return this};var _i={Events:A};var gi=Ot.touch?"touchstart mousedown":"mousedown";var vi=I.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){d(this,n);this._element=t;this._dragStartTarget=e||t;this._preventOutline=i},enable:function(){if(this._enabled){return}De(this._dragStartTarget,gi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(vi._dragging===this){this.finishDrag(true)}Re(this._dragStartTarget,gi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(de(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(vi._dragging===this){this.finishDrag()}return}if(vi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}vi._dragging=this;if(this._preventOutline){Ie(this._element)}Me();Te();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,i=Ze(this._element);this._startPoint=new E(e.clientX,e.clientY);this._startPos=ke(this._element);this._parentScale=Be(i);var n=t.type==="mousedown";De(document,n?"mousemove":"touchmove",this._onMove,this);De(document,n?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new E(e.clientX,e.clientY)._subtract(this._startPoint);if(!i.x&&!i.y){return}if(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance){return}i.x/=this._parentScale.x;i.y/=this._parentScale.y;qe(t);if(!this._moved){this.fire("dragstart");this._moved=true;pe(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}pe(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(i);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);we(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){me(document.body,"leaflet-dragging");if(this._lastTarget){me(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Re(document,"mousemove touchmove",this._onMove,this);Re(document,"mouseup touchend touchcancel",this._onUp,this);Se();Le();if(this._moved&&this._moving){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}this._moving=false;vi._dragging=false}});function yi(t,e){if(!e||!t.length){return t.slice()}var i=e*e;t=Ti(t,i);t=wi(t,i);return t}function bi(t,e,i){return Math.sqrt(Ci(t,e,i,true))}function xi(t,e,i){return Ci(t,e,i)}function wi(t,e){var i=t.length,n=typeof Uint8Array!==undefined+""?Uint8Array:Array,o=new n(i);o[0]=o[i-1]=1;ki(t,o,e,0,i-1);var r,s=[];for(r=0;r<i;r++){if(o[r]){s.push(t[r])}}return s}function ki(t,e,i,n,o){var r=0,s,a,l;for(a=n+1;a<=o-1;a++){l=Ci(t[a],t[n],t[o],true);if(l>r){s=a;r=l}}if(r>i){e[s]=1;ki(t,e,i,n,s);ki(t,e,i,s,o)}}function Ti(t,e){var i=[t[0]];for(var n=1,o=0,r=t.length;n<r;n++){if(Si(t[n],t[o])>e){i.push(t[n]);o=n}}if(o<r-1){i.push(t[r-1])}return i}var Li;function Pi(t,e,i,n,o){var r=n?Li:Mi(t,i),s=Mi(e,i),a,l,h;Li=s;while(true){if(!(r|s)){return[t,e]}if(r&s){return false}a=r||s;l=zi(t,e,a,i,o);h=Mi(l,i);if(a===r){t=l;r=h}else{e=l;s=h}}}function zi(t,e,i,n,o){var r=e.x-t.x,s=e.y-t.y,a=n.min,l=n.max,h,c;if(i&8){h=t.x+r*(l.y-t.y)/s;c=l.y}else if(i&4){h=t.x+r*(a.y-t.y)/s;c=a.y}else if(i&2){h=l.x;c=t.y+s*(l.x-t.x)/r}else if(i&1){h=a.x;c=t.y+s*(a.x-t.x)/r}return new E(h,c,o)}function Mi(t,e){var i=0;if(t.x<e.min.x){i|=1}else if(t.x>e.max.x){i|=2}if(t.y<e.min.y){i|=4}else if(t.y>e.max.y){i|=8}return i}function Si(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ci(t,e,i,n){var o=e.x,r=e.y,s=i.x-o,a=i.y-r,l=s*s+a*a,h;if(l>0){h=((t.x-o)*s+(t.y-r)*a)/l;if(h>1){o=i.x;r=i.y}else if(h>0){o+=s*h;r+=a*h}}s=t.x-o;a=t.y-r;return n?s*s+a*a:new E(o,r)}function Ai(t){return!g(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Ii(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Ai(t)}function Ei(t,e){var i,n,o,r,s,a,l,h;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Ai(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var c=[];for(var u in t){c.push(e.project(H(t[u])))}var f=c.length;for(i=0,n=0;i<f-1;i++){n+=c[i].distanceTo(c[i+1])/2}if(n===0){h=c[0]}else{for(i=0,r=0;i<f-1;i++){s=c[i];a=c[i+1];o=s.distanceTo(a);r+=o;if(r>n){l=(r-n)/o;h=[a.x-l*(a.x-s.x),a.y-l*(a.y-s.y)];break}}}return e.unproject(B(h))}var Zi={__proto__:null,simplify:yi,pointToSegmentDistance:bi,closestPointOnSegment:xi,clipSegment:Pi,_getEdgeIntersection:zi,_getBitCode:Mi,_sqClosestPointOnSegment:Ci,isFlat:Ai,_flat:Ii,polylineCenter:Ei};function Bi(t,e,i){var n,o=[1,4,2,8],r,s,a,l,h,c,u,f;for(r=0,c=t.length;r<c;r++){t[r]._code=Mi(t[r],e)}for(a=0;a<4;a++){u=o[a];n=[];for(r=0,c=t.length,s=c-1;r<c;s=r++){l=t[r];h=t[s];if(!(l._code&u)){if(h._code&u){f=zi(h,l,u,e,i);f._code=Mi(f,e);n.push(f)}n.push(l)}else if(!(h._code&u)){f=zi(h,l,u,e,i);f._code=Mi(f,e);n.push(f)}}t=n}return t}function Oi(t,e){var i,n,o,r,s,a,l,h,c;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Ai(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var u=[];for(var f in t){u.push(e.project(H(t[f])))}var d=u.length;a=l=h=0;for(i=0,n=d-1;i<d;n=i++){o=u[i];r=u[n];s=o.y*r.x-r.y*o.x;l+=(o.x+r.x)*s;h+=(o.y+r.y)*s;a+=s*3}if(a===0){c=u[0]}else{c=[l/a,h/a]}return e.unproject(B(c))}var Di={__proto__:null,clipPolygon:Bi,polygonCenter:Oi};var Ni={project:function(t){return new E(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new O([-180,-90],[180,90])};var Ri={R:6378137,R_MINOR:6356752.314245179,bounds:new O([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=r*Math.sin(n);var a=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),r/2);n=-i*Math.log(Math.max(a,1e-10));return new E(t.lng*e*i,n)},unproject:function(t){var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),r=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(r);for(var a=0,l=.1,h;a<15&&Math.abs(l)>1e-7;a++){h=o*Math.sin(s);h=Math.pow((1-h)/(1+h),o/2);l=Math.PI/2-2*Math.atan(r*h)-s;s+=l}return new j(s*e,t.x*e/i)}};var ji={__proto__:null,LonLat:Ni,Mercator:Ri,SphericalMercator:U};var Hi=i({},W,{code:"EPSG:3395",projection:Ri,transformation:function(){var t=.5/(Math.PI*Ri.R);return q(t,.5,-t,.5)}()});var Fi=i({},W,{code:"EPSG:4326",projection:Ni,transformation:q(1/180,1,-1/180,.5)});var Wi=i({},F,{projection:Ni,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:true});F.Earth=W;F.EPSG3395=Hi;F.EPSG3857=K;F.EPSG900913=Y;F.EPSG4326=Fi;F.Simple=Wi;var Vi=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[s(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[s(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(!e.hasLayer(this)){return}this._map=e;this._zoomAnimated=e._zoomAnimated;if(this.getEvents){var i=this.getEvents();e.on(i,this);this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e);this.fire("add");e.fire("layeradd",{layer:this})}});ii.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=s(t);if(this._layers[e]){return this}this._layers[e]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var e=s(t);if(!this._layers[e]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[e];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return s(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},_addLayers:function(t){t=t?g(t)?t:[t]:[];for(var e=0,i=t.length;e<i;e++){this.addLayer(t[e])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[s(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var e=s(t);if(this._zoomBoundLayers[e]){delete this._zoomBoundLayers[e];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,e=-Infinity,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=o.minZoom===undefined?t:Math.min(t,o.minZoom);e=o.maxZoom===undefined?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-Infinity?undefined:e;this._layersMinZoom=t===Infinity?undefined:t;if(i!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var Ui=Vi.extend({initialize:function(t,e){d(this,e);this._layers={};var i,n;if(t){for(i=0,n=t.length;i<n;i++){this.addLayer(t[i])}}},addLayer:function(t){var e=this.getLayerId(t);this._layers[e]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[e]){this._map.removeLayer(this._layers[e])}delete this._layers[e];return this},hasLayer:function(t){var e=typeof t==="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),i,n;for(i in this._layers){n=this._layers[i];if(n[t]){n[t].apply(n,e)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return s(t)}});var Gi=function(t,e){return new Ui(t,e)};var qi=Ui.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Ui.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Ui.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new N;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}});var Ki=function(t,e){return new qi(t,e)};var Yi=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var n=this._createImg(i,e&&e.tagName==="IMG"?e:null);this._setIconStyles(n,t);if(this.options.crossOrigin||this.options.crossOrigin===""){n.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return n},_setIconStyles:function(t,e){var i=this.options;var n=i[e+"Size"];if(typeof n==="number"){n=[n,n]}var o=B(n),r=B(e==="shadow"&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,true));t.className="leaflet-marker-"+e+" "+(i.className||"");if(r){t.style.marginLeft=-r.x+"px";t.style.marginTop=-r.y+"px"}if(o){t.style.width=o.x+"px";t.style.height=o.y+"px"}},_createImg:function(t,e){e=e||document.createElement("img");e.src=t;return e},_getIconUrl:function(t){return Ot.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Ji(t){return new Yi(t)}var Xi=Yi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){if(typeof Xi.imagePath!=="string"){Xi.imagePath=this._detectIconPath()}return(this.options.imagePath||Xi.imagePath)+Yi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};t=e(t,/^url\((['"])?(.+)\1\)$/,2);return t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=le("div","leaflet-default-icon-path",document.body);var e=ae(t,"background-image")||ae(t,"backgroundImage");document.body.removeChild(t);e=this._stripUrl(e);if(e){return e}var i=document.querySelector('link[href$="leaflet.css"]');if(!i){return""}return i.href.substring(0,i.href.length-"leaflet.css".length-1)}});var $i=mi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new vi(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();pe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){me(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=ke(e._icon),s=i.getPixelBounds(),a=i.getPixelOrigin();var l=D(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!l.contains(r)){var h=B((Math.max(l.max.x,r.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(n);i.panBy(h,{animate:false});this._draggable._newPos._add(h);this._draggable._startPos._add(h);we(e._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=P(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){z(this._panRequest);this._panRequest=P(this._adjustPan.bind(this,t))}},_onDrag:function(t){var e=this._marker,i=e._shadow,n=ke(e._icon),o=e._map.layerPointToLatLng(n);if(i){we(i,n)}e._latlng=o;t.latlng=o;t.oldLatLng=this._oldLatLng;e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){z(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var Qi=Vi.extend({options:{icon:new Xi,interactive:true,keyboard:true,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,autoPanOnFocus:true,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e);this._latlng=H(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;this._latlng=H(t);this.update();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var i=t.icon.createIcon(this._icon),n=false;if(i!==this._icon){if(this._icon){this._removeIcon()}n=true;if(t.title){i.title=t.title}if(i.tagName==="IMG"){i.alt=t.alt||""}}pe(i,e);if(t.keyboard){i.tabIndex="0";i.setAttribute("role","button")}this._icon=i;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){De(i,"focus",this._panOnFocus,this)}var o=t.icon.createShadow(this._shadow),r=false;if(o!==this._shadow){this._removeShadow();r=true}if(o){pe(o,e);o.alt=""}this._shadow=o;if(t.opacity<1){this._updateOpacity()}if(n){this.getPane().appendChild(this._icon)}this._initInteraction();if(o&&r){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Re(this._icon,"focus",this._panOnFocus,this)}he(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){he(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){we(this._icon,t)}if(this._shadow){we(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(!this.options.interactive){return}pe(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if($i){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new $i(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){ve(this._icon,t)}if(this._shadow){ve(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var e=this.options.icon.options;var i=e.iconSize?B(e.iconSize):B(0,0);var n=e.iconAnchor?B(e.iconAnchor):B(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function tn(t,e){return new Qi(t,e)}var en=Vi.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){d(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var nn=en.extend({options:{fill:true,radius:10},initialize:function(t,e){d(this,e);this._latlng=H(t);this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;this._latlng=H(t);this.redraw();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;en.prototype.setStyle.call(this,t);this.setRadius(e);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new O(this._point.subtract(n),this._point.add(n))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function on(t,e){return new nn(t,e)}var rn=nn.extend({initialize:function(t,e,n){if(typeof e==="number"){e=i({},n,{radius:e})}d(this,e);this._latlng=H(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new N(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:en.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===W.distance){var o=Math.PI/180,r=this._mRadius/W.R/o,s=i.project([e+r,t]),a=i.project([e-r,t]),l=s.add(a).divideBy(2),h=i.unproject(l).lat,c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(h*o))/(Math.cos(e*o)*Math.cos(h*o)))/o;if(isNaN(c)||c===0){c=r/Math.cos(Math.PI/180*e)}this._point=l.subtract(i.getPixelOrigin());this._radius=isNaN(c)?0:l.x-i.project([h,t-c]).x;this._radiusY=l.y-s.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng);this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}});function sn(t,e,i){return new rn(t,e,i)}var an=en.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,e){d(this,e);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var e=Infinity,i=null,n=Ci,o,r;for(var s=0,a=this._parts.length;s<a;s++){var l=this._parts[s];for(var h=1,c=l.length;h<c;h++){o=l[h-1];r=l[h];var u=n(t,o,r,true);if(u<e){e=u;i=n(t,o,r)}}}if(i){i.distance=Math.sqrt(e)}return i},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return Ei(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=H(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new N;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Ai(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var e=[],i=Ai(t);for(var n=0,o=t.length;n<o;n++){if(i){e[n]=H(t[n]);this._bounds.extend(e[n])}else{e[n]=this._convertLatLngs(t[n])}}return e},_project:function(){var t=new O;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),e=new E(t,t);if(!this._rawPxBounds){return}this._pxBounds=new O([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n=t[0]instanceof j,o=t.length,r,s;if(n){s=[];for(r=0;r<o;r++){s[r]=this._map.latLngToLayerPoint(t[r]);i.extend(s[r])}e.push(s)}else{for(r=0;r<o;r++){this._projectLatlngs(t[r],e,i)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,i,n,o,r,s,a,l;for(i=0,o=0,r=this._rings.length;i<r;i++){l=this._rings[i];for(n=0,s=l.length;n<s-1;n++){a=Pi(l[n],l[n+1],t,n,true);if(!a){continue}e[o]=e[o]||[];e[o].push(a[0]);if(a[1]!==l[n+1]||n===s-2){e[o].push(a[1]);o++}}}},_simplifyPoints:function(){var t=this._parts,e=this.options.smoothFactor;for(var i=0,n=t.length;i<n;i++){t[i]=yi(t[i],e)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,r,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(i=0,r=this._parts.length;i<r;i++){a=this._parts[i];for(n=0,s=a.length,o=s-1;n<s;o=n++){if(!e&&n===0){continue}if(bi(t,a[o],a[n])<=l){return true}}}return false}});function ln(t,e){return new an(t,e)}an._flat=Ii;var hn=an.extend({options:{fill:true},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return Oi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=an.prototype._convertLatLngs.call(this,t),i=e.length;if(i>=2&&e[0]instanceof j&&e[0].equals(e[i-1])){e.pop()}return e},_setLatLngs:function(t){an.prototype._setLatLngs.call(this,t);if(Ai(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Ai(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new E(e,e);t=new O(t.min.subtract(i),t.max.add(i));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,r;n<o;n++){r=Bi(this._rings[n],t,true);if(r.length){this._parts.push(r)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var e=false,i,n,o,r,s,a,l,h;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(r=0,l=this._parts.length;r<l;r++){i=this._parts[r];for(s=0,h=i.length,a=h-1;s<h;a=s++){n=i[s];o=i[a];if(n.y>t.y!==o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x){e=!e}}}return e||an.prototype._containsPoint.call(this,t,true)}});function cn(t,e){return new hn(t,e)}var un=qi.extend({initialize:function(t,e){d(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=g(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i<n;i++){o=e[i];if(o.geometries||o.geometry||o.features||o.coordinates){this.addData(o)}}return this}var r=this.options;if(r.filter&&!r.filter(t)){return this}var s=fn(t,r);if(!s){return this}s.feature=yn(t);s.defaultOptions=s.options;this.resetStyle(s);if(r.onEachFeature){r.onEachFeature(t,s)}return this.addLayer(s)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=i({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){if(t.setStyle){if(typeof e==="function"){e=e(t.feature)}t.setStyle(e)}}});function fn(t,e){var i=t.type==="Feature"?t.geometry:t,n=i?i.coordinates:null,o=[],r=e&&e.pointToLayer,s=e&&e.coordsToLatLng||pn,a,l,h,c;if(!n&&!i){return null}switch(i.type){case"Point":a=s(n);return dn(r,t,a,e);case"MultiPoint":for(h=0,c=n.length;h<c;h++){a=s(n[h]);o.push(dn(r,t,a,e))}return new qi(o);case"LineString":case"MultiLineString":l=mn(n,i.type==="LineString"?0:1,s);return new an(l,e);case"Polygon":case"MultiPolygon":l=mn(n,i.type==="Polygon"?1:2,s);return new hn(l,e);case"GeometryCollection":for(h=0,c=i.geometries.length;h<c;h++){var u=fn({geometry:i.geometries[h],type:"Feature",properties:t.properties},e);if(u){o.push(u)}}return new qi(o);case"FeatureCollection":for(h=0,c=i.features.length;h<c;h++){var f=fn(i.features[h],e);if(f){o.push(f)}}return new qi(o);default:throw new Error("Invalid GeoJSON object.")}}function dn(t,e,i,n){return t?t(e,i):new Qi(i,n&&n.markersInheritOptions&&n)}function pn(t){return new j(t[1],t[0],t[2])}function mn(t,e,i){var n=[];for(var o=0,r=t.length,s;o<r;o++){s=e?mn(t[o],e-1,i):(i||pn)(t[o]);n.push(s)}return n}function _n(t,e){t=H(t);return t.alt!==undefined?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function gn(t,e,i,n){var o=[];for(var r=0,s=t.length;r<s;r++){o.push(e?gn(t[r],Ai(t[r])?0:e-1,i,n):_n(t[r],n))}if(!e&&i){o.push(o[0].slice())}return o}function vn(t,e){return t.feature?i({},t.feature,{geometry:e}):yn(e)}function yn(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var bn={toGeoJSON:function(t){return vn(this,{type:"Point",coordinates:_n(this.getLatLng(),t)})}};Qi.include(bn);rn.include(bn);nn.include(bn);an.include({toGeoJSON:function(t){var e=!Ai(this._latlngs);var i=gn(this._latlngs,e?1:0,false,t);return vn(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}});hn.include({toGeoJSON:function(t){var e=!Ai(this._latlngs),i=e&&!Ai(this._latlngs[0]);var n=gn(this._latlngs,i?2:e?1:0,true,t);if(!e){n=[n]}return vn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}});Ui.include({toMultiPoint:function(t){var e=[];this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}));return vn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint"){return this.toMultiPoint(t)}var i=e==="GeometryCollection",n=[];this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i){n.push(o.geometry)}else{var r=yn(o);if(r.type==="FeatureCollection"){n.push.apply(n,r.features)}else{n.push(r)}}}}));if(i){return vn(this,{geometries:n,type:"GeometryCollection"})}return{type:"FeatureCollection",features:n}}});function xn(t,e){return new un(t,e)}var wn=xn;var kn=Vi.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t;this._bounds=R(e);d(this,i)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){pe(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){he(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){ue(this._image)}return this},bringToBack:function(){if(this._map){fe(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=R(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var e=this._image=t?this._url:le("img");pe(e,"leaflet-image-layer");if(this._zoomAnimated){pe(e,"leaflet-zoom-animated")}if(this.options.className){pe(e,this.options.className)}e.onselectstart=h;e.onmousemove=h;e.onload=o(this.fire,this,"load");e.onerror=o(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=e.src;return}e.src=this._url;e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;xe(this._image,i,e)},_reset:function(){var t=this._image,e=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();we(t,e.min);t.style.width=i.x+"px";t.style.height=i.y+"px"},_updateOpacity:function(){ve(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var Tn=function(t,e,i){return new kn(t,e,i)};var Ln=kn.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var e=this._image=t?this._url:le("video");pe(e,"leaflet-image-layer");if(this._zoomAnimated){pe(e,"leaflet-zoom-animated")}if(this.options.className){pe(e,this.options.className)}e.onselectstart=h;e.onmousemove=h;e.onloadeddata=o(this.fire,this,"load");if(t){var i=e.getElementsByTagName("source");var n=[];for(var r=0;r<i.length;r++){n.push(i[r].src)}this._url=i.length>0?n:[e.src];return}if(!g(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;e.muted=!!this.options.muted;e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=le("source");a.src=this._url[s];e.appendChild(a)}}});function Pn(t,e,i){return new Ln(t,e,i)}var zn=kn.extend({_initImage:function(){var t=this._image=this._url;pe(t,"leaflet-image-layer");if(this._zoomAnimated){pe(t,"leaflet-zoom-animated")}if(this.options.className){pe(t,this.options.className)}t.onselectstart=h;t.onmousemove=h}});function Mn(t,e,i){return new zn(t,e,i)}var Sn=Vi.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined,content:""},initialize:function(t,e){if(t&&(t instanceof j||g(t))){this._latlng=H(t);d(this,e)}else{d(this,t);this._source=e}if(this.options.content){this._content=this.options.content}},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){ve(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){ve(this._container,1)}this.bringToFront();if(this.options.interactive){pe(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){ve(this._container,0);this._removeTimeout=setTimeout(o(he,undefined,this._container),200)}else{he(this._container)}if(this.options.interactive){me(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=H(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}this._container.style.visibility="hidden";this._updateContent();this._updateLayout();this._updatePosition();this._container.style.visibility="";this._adjustPan()},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){ue(this._container)}return this},bringToBack:function(){if(this._map){fe(this._container)}return this},_prepareOpen:function(t){var e=this._source;if(!e._map){return false}if(e instanceof qi){e=null;var i=this._source._layers;for(var n in i){if(i[n]._map){e=i[n];break}}if(!e){return false}this._source=e}if(!t){if(e.getCenter){t=e.getCenter()}else if(e.getLatLng){t=e.getLatLng()}else if(e.getBounds){t=e.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var e=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof e==="string"){t.innerHTML=e}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(e)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),e=B(this.options.offset),i=this._getAnchor();if(this._zoomAnimated){we(this._container,t.add(i))}else{e=e.add(t).add(i)}var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px";this._container.style.left=o+"px"},_getAnchor:function(){return[0,0]}});ii.include({_initOverlay:function(t,e,i,n){var o=e;if(!(o instanceof t)){o=new t(n).setContent(e)}if(i){o.setLatLng(i)}return o}});Vi.include({_initOverlay:function(t,e,i,n){var o=i;if(o instanceof t){d(o,n);o._source=this}else{o=e&&!n?e:new t(n,this);o.setContent(i)}return o}});var Cn=Sn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return Sn.prototype.openOn.call(this,t)},onAdd:function(t){Sn.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof en)){this._source.on("preclick",Ve)}}},onRemove:function(t){Sn.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof en)){this._source.off("preclick",Ve)}}},getEvents:function(){var t=Sn.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",e=this._container=le("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var i=this._wrapper=le("div",t+"-content-wrapper",e);this._contentNode=le("div",t+"-content",i);Ge(e);Ue(this._contentNode);De(e,"contextmenu",Ve);this._tipContainer=le("div",t+"-tip-container",e);this._tip=le("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var n=this._closeButton=le("a",t+"-close-button",e);n.setAttribute("role","button");n.setAttribute("aria-label","Close popup");n.href="#close";n.innerHTML='<span aria-hidden="true">×</span>';De(n,"click",(function(t){qe(t);this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="";e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth);e.width=i+1+"px";e.whiteSpace="";e.height="";var n=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";if(o&&n>o){e.height=o+"px";pe(t,r)}else{me(t,r)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();we(this._container,e.add(i))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}if(this._autopanning){this._autopanning=false;return}var t=this._map,e=parseInt(ae(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new E(this._containerLeft,-i-this._containerBottom);o._add(ke(this._container));var r=t.layerPointToContainerPoint(o),s=B(this.options.autoPanPadding),a=B(this.options.autoPanPaddingTopLeft||s),l=B(this.options.autoPanPaddingBottomRight||s),h=t.getSize(),c=0,u=0;if(r.x+n+l.x>h.x){c=r.x+n-h.x+l.x}if(r.x-c-a.x<0){c=r.x-a.x}if(r.y+i+l.y>h.y){u=r.y+i-h.y+l.y}if(r.y-u-a.y<0){u=r.y-a.y}if(c||u){if(this.options.keepInView){this._autopanning=true}t.fire("autopanstart").panBy([c,u])}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var An=function(t,e){return new Cn(t,e)};ii.mergeOptions({closePopupOnClick:true});ii.include({openPopup:function(t,e,i){this._initOverlay(Cn,t,e,i).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});Vi.include({bindPopup:function(t,e){this._popup=this._initOverlay(Cn,this._popup,t,e);if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t){if(this._popup){if(!(this instanceof qi)){this._popup._source=this}if(this._popup._prepareOpen(t||this._latlng)){this._popup.openOn(this._map)}}return this},closePopup:function(){if(this._popup){this._popup.close()}return this},togglePopup:function(){if(this._popup){this._popup.toggle(this)}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}Ke(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof en)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=e;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var In=Sn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){Sn.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){Sn.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Sn.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=le("div",e);this._container.setAttribute("role","tooltip");this._container.setAttribute("id","leaflet-tooltip-"+s(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,r=n.latLngToContainerPoint(n.getCenter()),s=n.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,h=o.offsetHeight,c=B(this.options.offset),u=this._getAnchor();if(a==="top"){e=l/2;i=h}else if(a==="bottom"){e=l/2;i=0}else if(a==="center"){e=l/2;i=h/2}else if(a==="right"){e=0;i=h/2}else if(a==="left"){e=l;i=h/2}else if(s.x<r.x){a="right";e=0;i=h/2}else{a="left";e=l+(c.x+u.x)*2;i=h/2}t=t.subtract(B(e,i,true)).add(c).add(u);me(o,"leaflet-tooltip-right");me(o,"leaflet-tooltip-left");me(o,"leaflet-tooltip-top");me(o,"leaflet-tooltip-bottom");pe(o,"leaflet-tooltip-"+a);we(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){ve(this._container,t)}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var En=function(t,e){return new In(t,e)};ii.include({openTooltip:function(t,e,i){this._initOverlay(In,t,e,i).openOn(this);return this},closeTooltip:function(t){t.close();return this}});Vi.include({bindTooltip:function(t,e){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(In,this._tooltip,t,e);this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){i.mouseover=this._openTooltip;i.mouseout=this.closeTooltip;i.click=this._openTooltip;if(this._map){this._addFocusListeners()}else{i.add=this._addFocusListeners}}else{i.add=this._openTooltip}if(this._tooltip.options.sticky){i.mousemove=this._moveTooltip}this[e](i);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip){if(!(this instanceof qi)){this._tooltip._source=this}if(this._tooltip._prepareOpen(t)){this._tooltip.openOn(this._map);if(this.getElement){this._setAriaDescribedByOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._setAriaDescribedByOnLayer,this)}}}return this},closeTooltip:function(){if(this._tooltip){return this._tooltip.close()}},toggleTooltip:function(){if(this._tooltip){this._tooltip.toggle(this)}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){if(this.getElement){this._addFocusListenersOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._addFocusListenersOnLayer,this)}},_addFocusListenersOnLayer:function(t){var e=t.getElement();if(e){De(e,"focus",(function(){this._tooltip._source=t;this.openTooltip()}),this);De(e,"blur",this.closeTooltip,this)}},_setAriaDescribedByOnLayer:function(t){var e=t.getElement();if(e){e.setAttribute("aria-describedby",this._tooltip._container.id)}},_openTooltip:function(t){if(!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()){return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var e=t.latlng,i,n;if(this._tooltip.options.sticky&&t.originalEvent){i=this._map.mouseEventToContainerPoint(t.originalEvent);n=this._map.containerPointToLayerPoint(i);e=this._map.layerPointToLatLng(n)}this._tooltip.setLatLng(e)}});var Zn=Yi.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element){ce(e);e.appendChild(i.html)}else{e.innerHTML=i.html!==false?i.html:""}if(i.bgPos){var n=B(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}this._setIconStyles(e,"icon");return e},createShadow:function(){return null}});function Bn(t){return new Zn(t)}Yi.Default=Xi;var On=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ot.mobile,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();he(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){ue(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){fe(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(t!==this._tileZoom){this._tileZoom=t;this._updateLevels()}this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof E?t:new E(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var e=this.getPane().children,i=-t(-Infinity,Infinity);for(var n=0,o=e.length,r;n<o;n++){r=e[n].style.zIndex;if(e[n]!==this._container&&r){i=t(i,+r)}}if(isFinite(i)){this.options.zIndex=i+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Ot.ielt9){return}ve(this._container,this.options.opacity);var t=+new Date,e=false,i=false;for(var n in this._tiles){var o=this._tiles[n];if(!o.current||!o.loaded){continue}var r=Math.min(1,(t-o.loaded)/200);ve(o.el,r);if(r<1){e=true}else{if(o.active){i=true}else{this._onOpaqueTile(o)}o.active=true}}if(i&&!this._noPrune){this._pruneTiles()}if(e){z(this._fadeFrame);this._fadeFrame=P(this._updateOpacity,this)}},_onOpaqueTile:h,_initContainer:function(){if(this._container){return}this._container=le("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t===undefined){return undefined}for(var i in this._levels){i=Number(i);if(this._levels[i].el.children.length||i===t){this._levels[i].el.style.zIndex=e-Math.abs(t-i);this._onUpdateLevel(i)}else{he(this._levels[i].el);this._removeTilesAtZoom(i);this._onRemoveLevel(i);delete this._levels[i]}}var n=this._levels[t],o=this._map;if(!n){n=this._levels[t]={};n.el=le("div","leaflet-tile-container leaflet-zoom-animated",this._container);n.el.style.zIndex=e;n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round();n.zoom=t;this._setZoomTransform(n,o.getCenter(),o.getZoom());this._onCreateLevel(n)}this._level=n;return n},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(!this._map){return}var t,e;var i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){e=this._tiles[t];e.retain=e.current}for(t in this._tiles){e=this._tiles[t];if(e.current&&!e.active){var n=e.coords;if(!this._retainParent(n.x,n.y,n.z,n.z-5)){this._retainChildren(n.x,n.y,n.z,n.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles){if(this._tiles[e].coords.z!==t){continue}this._removeTile(e)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){he(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),r=Math.floor(e/2),s=i-1,a=new E(+o,+r);a.z=+s;var l=this._tileCoordsToKey(a),h=this._tiles[l];if(h&&h.active){h.retain=true;return true}else if(h&&h.loaded){h.retain=true}if(s>n){return this._retainParent(o,r,s,n)}return false},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++){for(var r=2*e;r<2*e+2;r++){var s=new E(o,r);s.z=i+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(i+1<n){this._retainChildren(o,r,i+1,n)}}}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var e=this.options;if(undefined!==e.minNativeZoom&&t<e.minNativeZoom){return e.minNativeZoom}if(undefined!==e.maxNativeZoom&&e.maxNativeZoom<t){return e.maxNativeZoom}return t},_setView:function(t,e,i,n){var o=Math.round(e);if(this.options.maxZoom!==undefined&&o>this.options.maxZoom||this.options.minZoom!==undefined&&o<this.options.minZoom){o=undefined}else{o=this._clampZoom(o)}var r=this.options.updateWhenZooming&&o!==this._tileZoom;if(!n||r){this._tileZoom=o;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(o!==undefined){this._update(t)}if(!i){this._pruneTiles()}this._noPrune=!!i}this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels){this._setZoomTransform(this._levels[i],t,e)}},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();if(Ot.any3d){xe(t.el,o,n)}else{we(t.el,o)}},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom;var o=this._map.getPixelWorldBounds(this._tileZoom);if(o){this._globalTileRange=this._pxBoundsToTileRange(o)}this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)];this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(n*2);return new O(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(!e){return}var i=this._clampZoom(e.getZoom());if(t===undefined){t=e.getCenter()}if(this._tileZoom===undefined){return}var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),r=o.getCenter(),s=[],a=this.options.keepBuffer,l=new O(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var h in this._tiles){var c=this._tiles[h].coords;if(c.z!==this._tileZoom||!l.contains(new E(c.x,c.y))){this._tiles[h].current=false}}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var u=o.min.y;u<=o.max.y;u++){for(var f=o.min.x;f<=o.max.x;f++){var d=new E(f,u);d.z=this._tileZoom;if(!this._isValidTile(d)){continue}var p=this._tiles[this._tileCoordsToKey(d)];if(p){p.current=true}else{s.push(d)}}}s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)}));if(s.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(f=0;f<s.length;f++){this._addTile(s[f],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y)){return false}}if(!this.options.bounds){return true}var n=this._tileCoordsToBounds(t);return R(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),r=e.unproject(n,t.z),s=e.unproject(o,t.z);return[r,s]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(e[0],e[1]);if(!this.options.noWrap){i=this._map.wrapLatLngBounds(i)}return i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new E(+e[0],+e[1]);i.z=+e[2];return i},_removeTile:function(t){var e=this._tiles[t];if(!e){return}he(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){pe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=h;t.onmousemove=h;if(Ot.ielt9&&this.options.opacity<1){ve(t,this.options.opacity)}},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t);var r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r);if(this.createTile.length<2){P(o(this._tileReady,this,t,null,r))}we(r,i);this._tiles[n]={el:r,coords:t,current:true};e.appendChild(r);this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,i){if(e){this.fire("tileerror",{error:e,tile:i,coords:t})}var n=this._tileCoordsToKey(t);i=this._tiles[n];if(!i){return}i.loaded=+new Date;if(this._map._fadeAnimated){ve(i.el,0);z(this._fadeFrame);this._fadeFrame=P(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!e){pe(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Ot.ielt9||!this._map._fadeAnimated){P(this._pruneTiles,this)}else{setTimeout(o(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new E(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new O(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Dn(t){return new On(t)}var Nn=On.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,e){this._url=t;e=d(this,e);if(e.detectRetina&&Ot.retina&&e.maxZoom>0){e.tileSize=Math.floor(e.tileSize/2);if(!e.zoomReverse){e.zoomOffset++;e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)}else{e.zoomOffset--;e.minZoom=Math.min(e.maxZoom,e.minZoom+1)}e.minZoom=Math.max(0,e.minZoom)}else if(!e.zoomReverse){e.maxZoom=Math.max(e.minZoom,e.maxZoom)}else{e.minZoom=Math.min(e.maxZoom,e.minZoom)}if(typeof e.subdomains==="string"){e.subdomains=e.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){if(this._url===t&&e===undefined){e=true}this._url=t;if(!e){this.redraw()}return this},createTile:function(t,e){var i=document.createElement("img");De(i,"load",o(this._tileOnLoad,this,e,i));De(i,"error",o(this._tileOnError,this,e,i));if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){i.referrerPolicy=this.options.referrerPolicy}i.alt="";i.src=this.getTileUrl(t);return i},getTileUrl:function(t){var e={r:Ot.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=n}e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,e){if(Ot.ielt9){setTimeout(o(t,this,null,e),0)}else{t(null,e)}},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;if(n&&e.getAttribute("src")!==n){e.src=n}t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;if(i){t=e-t}return t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){e=this._tiles[t].el;e.onload=h;e.onerror=h;if(!e.complete){e.src=y;var i=this._tiles[t].coords;he(e);delete this._tiles[t];this.fire("tileabort",{tile:e,coords:i})}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}e.el.setAttribute("src",y);return On.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!this._map||i&&i.getAttribute("src")===y){return}return On.prototype._tileReady.call(this,t,e,i)}});function Rn(t,e){return new Nn(t,e)}var jn=Nn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e){if(!(o in this.options)){n[o]=e[o]}}e=d(this,e);var r=e.detectRetina&&Ot.retina?2:1;var s=this.getTileSize();n.width=s.x*r;n.height=s.y*r;this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;Nn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=D(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,s=(this._wmsVersion>=1.3&&this._crs===Fi?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=Nn.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){i(this.wmsParams,t);if(!e){this.redraw()}return this}});function Hn(t,e){return new jn(t,e)}Nn.WMS=jn;Rn.wms=Hn;var Fn=Vi.extend({options:{padding:.1},initialize:function(t){d(this,t);s(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();if(this._zoomAnimated){pe(this._container,"leaflet-zoom-animated")}}this.getPane().appendChild(this._container);this._update();this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this);this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));if(Ot.any3d){xe(this._container,r,i)}else{we(this._container,r)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new O(i,i.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Wn=Fn.extend({options:{tolerance:0},getEvents:function(){var t=Fn.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Fn.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");De(t,"mousemove",this._onMouseMove,this);De(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);De(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest);delete this._ctx;he(this._container);Re(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var e in this._layers){t=this._layers[e];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Fn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Ot.retina?2:1;we(e,t.min);e.width=n*i.x;e.height=n*i.y;e.style.width=i.x+"px";e.style.height=i.y+"px";if(Ot.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Fn.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=e}this._drawLast=e;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order;var i=e.next;var n=e.prev;if(i){i.prev=n}else{this._drawLast=n}if(n){n.next=i}else{this._drawFirst=i}delete t._order;delete this._layers[s(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o<e.length;o++){n=Number(e[o]);if(isNaN(n)){return}i.push(n)}t.options._dashArray=i}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||P(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new O;this._redrawBounds.extend(t._pxBounds.min.subtract([e,e]));this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else{this._ctx.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var t,e=this._redrawBounds;this._ctx.save();if(e){var i=e.getSize();this._ctx.beginPath();this._ctx.rect(e.min.x,e.min.y,i.x,i.y);this._ctx.clip()}this._drawing=true;for(var n=this._drawFirst;n;n=n.next){t=n.layer;if(!e||t._pxBounds&&t._pxBounds.intersects(e)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,e){if(!this._drawing){return}var i,n,o,r,s=t._parts,a=s.length,l=this._ctx;if(!a){return}l.beginPath();for(i=0;i<a;i++){for(n=0,o=s[i].length;n<o;n++){r=s[i][n];l[n?"lineTo":"moveTo"](r.x,r.y)}if(e){l.closePath()}}this._fillStroke(l,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;if(o!==1){i.save();i.scale(1,o)}i.beginPath();i.arc(e.x,e.y/o,n,0,Math.PI*2,false);if(o!==1){i.restore()}this._fillStroke(i,t)},_fillStroke:function(t,e){var i=e.options;if(i.fill){t.globalAlpha=i.fillOpacity;t.fillStyle=i.fillColor||i.color;t.fill(i.fillRule||"evenodd")}if(i.stroke&&i.weight!==0){if(t.setLineDash){t.setLineDash(e.options&&e.options._dashArray||[])}t.globalAlpha=i.opacity;t.lineWidth=i.weight;t.strokeStyle=i.color;t.lineCap=i.lineCap;t.lineJoin=i.lineJoin;t.stroke()}},_onClick:function(t){var e=this._map.mouseEventToLayerPoint(t),i,n;for(var o=this._drawFirst;o;o=o.next){i=o.layer;if(i.options.interactive&&i._containsPoint(e)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i)){n=i}}}this._fireEvent(n?[n]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)},_handleMouseOut:function(t){var e=this._hoveredLayer;if(e){me(this._container,"leaflet-interactive");this._fireEvent([e],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,e){if(this._mouseHoverThrottled){return}var i,n;for(var r=this._drawFirst;r;r=r.next){i=r.layer;if(i.options.interactive&&i._containsPoint(e)){n=i}}if(n!==this._hoveredLayer){this._handleMouseOut(t);if(n){pe(this._container,"leaflet-interactive");this._fireEvent([n],t,"mouseover");this._hoveredLayer=n}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(o((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(i){i.prev=n}else{return}if(n){n.next=i}else if(i){this._drawFirst=i}e.prev=this._drawLast;this._drawLast.next=e;e.next=null;this._drawLast=e;this._requestRedraw(t)},_bringToBack:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(n){n.next=i}else{return}if(i){i.prev=n}else if(n){this._drawLast=n}e.prev=null;e.next=this._drawFirst;this._drawFirst.prev=e;this._drawFirst=e;this._requestRedraw(t)}});function Vn(t){return Ot.canvas?new Wn(t):null}var Un=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}();var Gn={_initContainer:function(){this._container=le("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Fn.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=Un("shape");pe(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=Un("path");e.appendChild(t._path);this._updateStyle(t);this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e);if(t.options.interactive){t.addInteractiveTarget(e)}},_removePath:function(t){var e=t._container;he(e);t.removeInteractiveTarget(e);delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke;o.filled=!!n.fill;if(n.stroke){if(!e){e=t._stroke=Un("stroke")}o.appendChild(e);e.weight=n.weight+"px";e.color=n.color;e.opacity=n.opacity;if(n.dashArray){e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," ")}else{e.dashStyle=""}e.endcap=n.lineCap.replace("butt","flat");e.joinstyle=n.lineJoin}else if(e){o.removeChild(e);t._stroke=null}if(n.fill){if(!i){i=t._fill=Un("fill")}o.appendChild(i);i.color=n.fillColor||n.color;i.opacity=n.fillOpacity}else if(i){o.removeChild(i);t._fill=null}},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ue(t._container)},_bringToBack:function(t){fe(t._container)}};var qn=Ot.vml?Un:J;var Kn=Fn.extend({_initContainer:function(){this._container=qn("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=qn("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){he(this._container);Re(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Fn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;if(!this._svgSize||!this._svgSize.equals(e)){this._svgSize=e;i.setAttribute("width",e.x);i.setAttribute("height",e.y)}we(i,t.min);i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" "));this.fire("update")},_initPath:function(t){var e=t._path=qn("path");if(t.options.className){pe(e,t.options.className)}if(t.options.interactive){pe(e,"leaflet-interactive")}this._updateStyle(t);this._layers[s(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){he(t._path);t.removeInteractiveTarget(t._path);delete this._layers[s(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var e=t._path,i=t.options;if(!e){return}if(i.stroke){e.setAttribute("stroke",i.color);e.setAttribute("stroke-opacity",i.opacity);e.setAttribute("stroke-width",i.weight);e.setAttribute("stroke-linecap",i.lineCap);e.setAttribute("stroke-linejoin",i.lineJoin);if(i.dashArray){e.setAttribute("stroke-dasharray",i.dashArray)}else{e.removeAttribute("stroke-dasharray")}if(i.dashOffset){e.setAttribute("stroke-dashoffset",i.dashOffset)}else{e.removeAttribute("stroke-dashoffset")}}else{e.setAttribute("stroke","none")}if(i.fill){e.setAttribute("fill",i.fillColor||i.color);e.setAttribute("fill-opacity",i.fillOpacity);e.setAttribute("fill-rule",i.fillRule||"evenodd")}else{e.setAttribute("fill","none")}},_updatePoly:function(t,e){this._setPath(t,X(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ";var r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ue(t._path)},_bringToBack:function(t){fe(t._path)}});if(Ot.vml){Kn.include(Gn)}function Yn(t){return Ot.svg||Ot.vml?new Kn(t):null}ii.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!e){e=this._renderer=this._createRenderer()}if(!this.hasLayer(e)){this.addLayer(e)}return e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var e=this._paneRenderers[t];if(e===undefined){e=this._createRenderer({pane:t});this._paneRenderers[t]=e}return e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Yn(t)}});var Jn=hn.extend({initialize:function(t,e){hn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=R(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Xn(t,e){return new Jn(t,e)}Kn.create=qn;Kn.pointsToPath=X;un.geometryToLayer=fn;un.coordsToLatLng=pn;un.coordsToLatLngs=mn;un.latLngToCoords=_n;un.latLngsToCoords=gn;un.getFeature=vn;un.asFeature=yn;ii.mergeOptions({boxZoom:true});var $n=mi.extend({initialize:function(t){this._map=t;this._container=t._container;this._pane=t._panes.overlayPane;this._resetStateTimeout=0;t.on("unload",this._destroy,this)},addHooks:function(){De(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){he(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();Te();Me();this._startPoint=this._map.mouseEventToContainerPoint(t);De(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=le("div","leaflet-zoom-box",this._container);pe(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new O(this._point,this._startPoint),i=e.getSize();we(this._box,e.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){he(this._box);me(this._container,"leaflet-crosshair")}Le();Se();Re(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});ii.addInitHook("addHandler","boxZoom",$n);ii.mergeOptions({doubleClickZoom:true});var Qn=mi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;if(e.options.doubleClickZoom==="center"){e.setZoom(o)}else{e.setZoomAround(t.containerPoint,o)}}});ii.addInitHook("addHandler","doubleClickZoom",Qn);ii.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var to=mi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new vi(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}pe(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){me(this._map._container,"leaflet-grab");me(this._map._container,"leaflet-touch-drag");this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=R(this._map.options.maxBounds);this._offsetLimit=D(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i);this._times.push(e);this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var e=this._offsetLimit;if(t.x<e.min.x){t.x=this._viscousLimit(t.x,e.min.x)}if(t.y<e.min.y){t.y=this._viscousLimit(t.y,e.min.y)}if(t.x>e.max.x){t.x=this._viscousLimit(t.x,e.max.x)}if(t.y>e.max.y){t.y=this._viscousLimit(t.y,e.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,s=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;e.fire("dragend",t);if(n){e.fire("moveend")}else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=i.easeLinearity,a=o.multiplyBy(s/r),l=a.distanceTo([0,0]),h=Math.min(i.inertiaMaxSpeed,l),c=a.multiplyBy(h/l),u=h/(i.inertiaDeceleration*s),f=c.multiplyBy(-u/2).round();if(!f.x&&!f.y){e.fire("moveend")}else{f=e._limitOffset(f,e.options.maxBounds);P((function(){e.panBy(f,{duration:u,easeLinearity:s,noMoveStart:true,animate:true})}))}}}});ii.addInitHook("addHandler","dragging",to);ii.mergeOptions({keyboard:true,keyboardPanDelta:80});var eo=mi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}De(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();Re(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(this._focused){return}var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus();window.scrollTo(n,i)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},i=this.keyCodes,n,o;for(n=0,o=i.left.length;n<o;n++){e[i.left[n]]=[-1*t,0]}for(n=0,o=i.right.length;n<o;n++){e[i.right[n]]=[t,0]}for(n=0,o=i.down.length;n<o;n++){e[i.down[n]]=[0,t]}for(n=0,o=i.up.length;n<o;n++){e[i.up[n]]=[0,-1*t]}},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,n,o;for(n=0,o=i.zoomIn.length;n<o;n++){e[i.zoomIn[n]]=t}for(n=0,o=i.zoomOut.length;n<o;n++){e[i.zoomOut[n]]=-t}},_addHooks:function(){De(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Re(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var e=t.keyCode,i=this._map,n;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress){n=this._panKeys[e];if(t.shiftKey){n=B(n).multiplyBy(3)}if(i.options.maxBounds){n=i._limitOffset(B(n),i.options.maxBounds)}if(i.options.worldCopyJump){var o=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(n)));i.panTo(o)}else{i.panBy(n)}}}else if(e in this._zoomKeys){i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e])}else if(e===27&&i._popup&&i._popup.options.closeOnEscapeKey){i.closePopup()}else{return}Ke(t)}});ii.addInitHook("addHandler","keyboard",eo);ii.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var io=mi.extend({addHooks:function(){De(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Re(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=$e(t);var i=this._map.options.wheelDebounceTime;this._delta+=e;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(o(this._performZoom,this),n);Ke(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(this._map.options.wheelPxPerZoomLevel*4),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0;this._startTime=null;if(!s){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+s)}else{t.setZoomAround(this._lastMousePos,e+s)}}});ii.addInitHook("addHandler","scrollWheelZoom",io);var no=600;ii.mergeOptions({tapHold:Ot.touchNative&&Ot.safari&&Ot.mobile,tapTolerance:15});var oo=mi.extend({addHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var e=t.touches[0];this._startPos=this._newPos=new E(e.clientX,e.clientY);this._holdTimeout=setTimeout(o((function(){this._cancel();if(!this._isTapValid()){return}De(document,"touchend",qe);De(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",e)}),this),no);De(document,"touchend touchcancel contextmenu",this._cancel,this);De(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Re(document,"touchend",qe);Re(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Re(document,"touchend touchcancel contextmenu",this._cancel,this);Re(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new E(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=true;e.target.dispatchEvent(i)}});ii.addInitHook("addHandler","tapHold",oo);ii.mergeOptions({touchZoom:Ot.touch,bounceAtZoomLimits:true});var ro=mi.extend({addHooks:function(){pe(this._map._container,"leaflet-touch-zoom");De(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){me(this._map._container,"leaflet-touch-zoom");Re(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming){return}var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2);this._startLatLng=e.containerPointToLatLng(this._centerPoint);if(e.options.touchZoom!=="center"){this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))}this._startDist=i.distanceTo(n);this._startZoom=e.getZoom();this._moved=false;this._zooming=true;e._stop();De(document,"touchmove",this._onTouchMove,this);De(document,"touchend touchcancel",this._onTouchEnd,this);qe(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),r=i.distanceTo(n)/this._startDist;this._zoom=e.getScaleZoom(r,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(r===1){return}}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(r===1&&s.x===0&&s.y===0){return}this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}if(!this._moved){e._moveStart(true,false);this._moved=true}z(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:true,round:false},undefined);this._animRequest=P(a,this,true);qe(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;z(this._animRequest);Re(document,"touchmove",this._onTouchMove,this);Re(document,"touchend touchcancel",this._onTouchEnd,this);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});ii.addInitHook("addHandler","touchZoom",ro);ii.BoxZoom=$n;ii.DoubleClickZoom=Qn;ii.Drag=to;ii.Keyboard=eo;ii.ScrollWheelZoom=io;ii.TapHold=oo;ii.TouchZoom=ro;t.Bounds=O;t.Browser=Ot;t.CRS=F;t.Canvas=Wn;t.Circle=rn;t.CircleMarker=nn;t.Class=S;t.Control=oi;t.DivIcon=Zn;t.DivOverlay=Sn;t.DomEvent=ti;t.DomUtil=Oe;t.Draggable=vi;t.Evented=I;t.FeatureGroup=qi;t.GeoJSON=un;t.GridLayer=On;t.Handler=mi;t.Icon=Yi;t.ImageOverlay=kn;t.LatLng=j;t.LatLngBounds=N;t.Layer=Vi;t.LayerGroup=Ui;t.LineUtil=Zi;t.Map=ii;t.Marker=Qi;t.Mixin=_i;t.Path=en;t.Point=E;t.PolyUtil=Di;t.Polygon=hn;t.Polyline=an;t.Popup=Cn;t.PosAnimation=ei;t.Projection=ji;t.Rectangle=Jn;t.Renderer=Fn;t.SVG=Kn;t.SVGOverlay=zn;t.TileLayer=Nn;t.Tooltip=In;t.Transformation=G;t.Util=M;t.VideoOverlay=Ln;t.bind=o;t.bounds=D;t.canvas=Vn;t.circle=sn;t.circleMarker=on;t.control=ri;t.divIcon=Bn;t.extend=i;t.featureGroup=Ki;t.geoJSON=xn;t.geoJson=wn;t.gridLayer=Dn;t.icon=Ji;t.imageOverlay=Tn;t.latLng=H;t.latLngBounds=R;t.layerGroup=Gi;t.map=ni;t.marker=tn;t.point=B;t.polygon=cn;t.polyline=ln;t.popup=An;t.rectangle=Xn;t.setOptions=d;t.stamp=s;t.svg=Yn;t.svgOverlay=Mn;t.tileLayer=Rn;t.tooltip=En;t.transformation=q;t.version=e;t.videoOverlay=Pn;var so=window.L;t.noConflict=function(){window.L=so;return this};window.L=t}))}));var grwMapCss='.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.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{float:left;clear:both}.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-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1), -webkit-transform 0.25s cubic-bezier(0,0,0.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.65);box-shadow:0 1px 5px rgba(0,0,0,0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \'Lucida Console\', Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.4);box-shadow:0 1px 5px rgba(0,0,0,0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0,0,0,0.4);box-shadow:0 3px 14px rgba(0,0,0,0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.4);box-shadow:0 1px 3px rgba(0,0,0,0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}grw-map{font-family:"Roboto";display:block;height:100%;max-height:100vh}.departure-icon img,.arrival-icon img{width:48px;height:48px}.departure-icon img path,.arrival-icon img path{fill:currentColor;stroke:currentColor}.departure-icon{color:var(--color-departure-icon)}.arrival-icon{color:var(--color-arrival-icon)}.trek-marker{background-color:var(--color-primary);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-marker img{width:36px !important}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background:rgba(255, 255, 255, 0.5);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-tint);border-bottom-color:var(--color-primary);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-popup-content{width:144px;margin:0}.trek-departure-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100px;height:auto;padding:24px}.trek-departure-popup img{border-radius:8px;-webkit-box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25)}.trek-departure-popup .trek-name{color:var(--color-primary);font-weight:bold;font-size:12px}.trek-departure-popup .trek-name-margin-top{margin-top:12px}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name{color:var(--color-primary);font-weight:bold;font-size:12px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:24px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:18px;color:#ffffff}';var GrwMap=function(){function t(t){registerInstance(this,t);this.trekCardPress=createEvent(this,"trekCardPress",7);this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.mapIsReady=false;this.urlLayer=undefined;this.attribution=undefined;this.center="1, 1";this.zoom=10;this.colorPrimary="#6b0030";this.colorPrimaryTint="#974c6e";this.colorTrekLine="#6b0030";this.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.resetStoreOnDisconnected=true}t.prototype.componentDidLoad=function(){var t=this;this.map=leafletSrc.map(this.element,{center:this.center.split(",").map(Number),zoom:this.zoom});leafletSrc.control.scale().addTo(this.map);leafletSrc.tileLayer(this.urlLayer,{maxZoom:19,attribution:this.attribution}).addTo(this.map);if(state.currentTrek){this.addTrek()}else if(state.currentTreks){this.addTreks()}onChange("currentTreks",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.addTreks()}}));onChange("currentTrek",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else{t.removeTrek();t.addTreks()}}))};t.prototype.addTreks=function(){var t=this;var e;var i=[];var n={type:"FeatureCollection",features:[]};if(state.currentTreks){var o=function(t){i.push(t.departure_geom);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=state.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(var r=0,s=state.currentTreks;r<s.length;r++){var a=s[r];o(a)}}if(!this.treksLayer){if(i.length>0&&!state.currentMapTreksBounds){var l=leafletSrc.latLngBounds(i.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(l)}else{if(state.currentMapTreksBounds){this.map.fitBounds(state.currentMapTreksBounds)}}this.treksLayer=leafletSrc.geoJSON(n,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.practice?"<img src=".concat(t.properties.practice," />"):"<img />",className:"trek-marker",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var n=leafletSrc.DomUtil.create("div");n.className="trek-departure-popup";n.onclick=function(){return t.trekCardPress.emit(e.properties.id)};var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";if(e.properties.imgSrc){o.className+=" trek-name-margin-top";var r=leafletSrc.DomUtil.create("img");r.src=e.properties.imgSrc;n.appendChild(r)}n.appendChild(o);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}))}}).addTo(this.map)}else{if(i.length>0){var l=leafletSrc.latLngBounds(i.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(l)}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n)}!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)};t.prototype.removeTreks=function(){if(this.treksLayer){state.currentMapTreksBounds=this.map.getBounds();this.map.removeLayer(this.treksLayer);this.treksLayer=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(state.currentTreks&&!state.currentMapTreksBounds||state.currentTreks&&state.currentMapTreksBounds&&state.currentMapTreksBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.treksWithinBounds=state.currentTreks.filter((function(e){return t.map.getBounds().contains(leafletSrc.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.addTrek=function(){var t=this;var e;var i=getAssetPath("assets/departure-arrival.svg");var n={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=leafletSrc.geoJSON(n,{style:function(){return{color:t.colorTrekLine}},interactive:false}).addTo(this.map);var o=leafletSrc.latLngBounds(state.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(o);var r=[state.currentTrek.geometry.coordinates.at(0)[0],state.currentTrek.geometry.coordinates.at(0)[1]];var s=[state.currentTrek.geometry.coordinates.at(-1)[0],state.currentTrek.geometry.coordinates.at(-1)[1]];var a={type:"FeatureCollection",features:[{type:"Feature",properties:{type:"departure"},geometry:{type:"Point",coordinates:r}}]};if(r[0]!==s[0]||r[1]!==s[1]){a.features.push({type:"Feature",properties:{type:"arrival"},geometry:{type:"Point",coordinates:s}})}this.currentDepartureArrivalLayer=leafletSrc.geoJSON(a,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:"<img src=".concat(i,">"),className:t.properties.type==="departure"?"departure-icon":"arrival-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map);if(state.currentTrek.parking_location){var l={type:"Feature",properties:{},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=leafletSrc.geoJSON(l,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map)}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){var h={type:"FeatureCollection",features:[]};for(var c=0,u=state.currentSensitiveAreas;c<u.length;c++){var f=u[c];h.features.push({type:"Feature",properties:{name:f.name},geometry:f.geometry})}this.currentSensitiveAreasLayer=leafletSrc.geoJSON(h,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="sensitive-area-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="sensitive-area-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:t.colorSensitiveArea}}}).addTo(this.map);leafletSrc.Control.SensitiveAreasCheckboxContainer=leafletSrc.Control.extend({onAdd:function(){var e=leafletSrc.DomUtil.create("div");e.className="sensitiveAreasCheckboxContainer";var i=leafletSrc.DomUtil.create("input");i.setAttribute("id","sensitiveAreasCheckbox");i.setAttribute("type","checkbox");i.setAttribute("checked","true");i.onclick=function(e){return e.composedPath()[0].checked?t.map.addLayer(t.currentSensitiveAreasLayer):t.map.removeLayer(t.currentSensitiveAreasLayer)};var n=leafletSrc.DomUtil.create("label");n.setAttribute("for","sensitiveAreasCheckbox");n.innerHTML=h.features.length>1||h.features[0].geometry.type==="MultiPolygon"?"Afficher les zones sensibles":"Afficher la zone sensible";e.appendChild(i);e.appendChild(n);return e}});leafletSrc.control.sensitiveAreasCheckboxContainer=function(){return new leafletSrc.Control.SensitiveAreasCheckboxContainer};this.sensitiveAreasControl=leafletSrc.control.sensitiveAreasCheckboxContainer({position:"topright"}).addTo(this.map)}if(state.currentPois&&state.currentPois.length>0){var d={type:"FeatureCollection",features:[]};var p=function(t){d.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(e=state.poiTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram},geometry:t.geometry})};for(var m=0,_=state.currentPois;m<_.length;m++){var g=_[m];p(g)}this.currentPoisLayer=leafletSrc.geoJSON(d,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="poi-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="poi-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}}).addTo(this.map)}if(state.currentInformationDesks&&state.currentInformationDesks.length>0){var v={type:"FeatureCollection",features:[]};for(var y=0,b=state.currentInformationDesks;y<b.length;y++){var x=b[y];v.features.push({type:"Feature",properties:{name:x.name,type_pictogram:x.type.pictogram},geometry:{type:"Point",coordinates:[Number(x.longitude),Number(x.latitude)]}})}this.currentInformationDesksLayer=leafletSrc.geoJSON(v,{pointToLayer:function(t,e){return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="information-desks-tooltip";var n=leafletSrc.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="information-desks-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}}).addTo(this.map)}if(state.currentTrek.points_reference){var w={type:"FeatureCollection",features:[]};w.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});var k=0;this.currentPointsReferenceLayer=leafletSrc.geoJSON(w,{pointToLayer:function(t,e){k+=1;return leafletSrc.marker(e,{icon:leafletSrc.divIcon({html:k,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map)}!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.removeTrek=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentDepartureArrivalLayer){this.map.removeLayer(this.currentDepartureArrivalLayer);this.currentDepartureArrivalLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null;this.map.removeControl(this.sensitiveAreasControl);this.sensitiveAreasControl=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentPointsReferenceLayer){this.map.removeLayer(this.currentPointsReferenceLayer);this.currentPointsReferenceLayer=null}};t.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};t.prototype.render=function(){return h(Host,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint,"--color-departure-icon":this.colorDepartureIcon,"--color-arrival-icon":this.colorArrivalIcon,"--color-poi-icon":this.colorPoiIcon}},!this.mapIsReady&&h("div",{class:"map-loader-container"},h("span",{class:"loader"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwMap.style=grwMapCss;var grwTrekDetailCss='grw-sensitive-area-detail,grw-information-desk-detail,grw-poi-detail{margin-top:12px}.trek-detail-container{font-family:"Roboto";display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-primary);font-size:48px;font-weight:bold;padding:24px}.trek-detail-container .image{border-radius:8px;-ms-flex-item-align:center;align-self:center;width:100%;max-width:700px;height:auto;-webkit-box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25)}.trek-detail-container .sub-container{padding:24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img{width:24px;height:auto;margin-right:24px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary)}.trek-detail-container .downloads-container{padding:0px 24px 24px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-primary);font-size:18px;margin-bottom:12px}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex}.trek-detail-container .downloads-container .links-container a{background-color:var(--color-primary);padding:8px;color:#ffffff;text-decoration:none;border-radius:8px}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:0px 12px}.trek-detail-container .downloads-container .links-container a:hover{background-color:var(--color-primary-shade)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 24px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-primary-tint);color:#ffffff;border-radius:8px;padding:8px;margin:0px 8px 8px 0px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .pois-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container{padding:0px 24px 24px 24px}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .gear-container a,.trek-detail-container .pois-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a{color:var(--color-primary)}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .pois-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title{color:var(--color-primary);font-size:36px;font-weight:bold;margin:12px 0px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px}.label-container .label-sub-container .label-name{color:var(--color-primary);font-size:24px;font-weight:bold;padding:12px 0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-primary);font-size:24px;font-weight:bold;padding:12px 0px}.departure-container,.arrival-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.arrival-container .departure-title,.arrival-container .arrival-title{color:var(--color-primary);font-weight:bold}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-primary);font-size:24px;padding:12px 0px}';var GrwTrekDetail=function(){function t(t){registerInstance(this,t);this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.trek=undefined;this.colorPrimary="#6b0030";this.colorPrimaryShade="#4a0021";this.colorPrimaryTint="#974c6e";this.resetStoreOnDisconnected=true}t.prototype.connectedCallback=function(){var t=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.difficulty=state.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));this.route=state.routes.find((function(e){return e.id===t.currentTrek.route}));this.practice=state.practices.find((function(e){return e.id===t.currentTrek.practice}));this.themes=state.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));this.labels=state.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));this.sources=state.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));this.accessibilities=state.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}}onChange("currentTrek",(function(){t.currentTrek=t.trek?t.trek:state.currentTrek;if(t.currentTrek){t.difficulty=state.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));t.route=state.routes.find((function(e){return e.id===t.currentTrek.route}));t.practice=state.practices.find((function(e){return e.id===t.currentTrek.practice}));t.themes=state.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));t.labels=state.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));t.sources=state.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));t.accessibilities=state.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(state.accessibilitiesLevel){t.accessibilityLevel=state.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}}}))};t.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};t.prototype.render=function(){var t,e,i,n,o,r,s;var a=getAssetPath("assets/duration.svg");var l=getAssetPath("assets/length.svg");var c=getAssetPath("assets/ascent.svg");return h(Host,{style:{"--color-primary":this.colorPrimary,"--color-primary-shade":this.colorPrimaryShade,"--color-primary-tint":this.colorPrimaryTint}},this.currentTrek&&h("div",{class:"trek-detail-container"},h("div",{class:"name"},this.currentTrek.name),this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url&&h("img",{class:"image",src:this.currentTrek.attachments[0].url,loading:"lazy"}),h("div",{class:"sub-container"},h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&h("img",{src:this.difficulty.pictogram}),(e=this.difficulty)===null||e===void 0?void 0:e.label),h("div",{class:"icon-label duration"},h("img",{src:a}),formatDuration((i=this.currentTrek)===null||i===void 0?void 0:i.duration)),h("div",{class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&h("img",{src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route)),h("div",{class:"row"},h("div",{class:"icon-label length"},h("img",{src:l}),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("img",{src:c}),formatAscent(this.currentTrek.ascent)),h("div",{class:"icon-label practice"},((r=this.practice)===null||r===void 0?void 0:r.pictogram)&&h("img",{src:this.practice.pictogram}),(s=this.practice)===null||s===void 0?void 0:s.name)))),h("div",{class:"downloads-container"},h("div",{class:"download-title"},"Téléchargements"),h("div",{class:"links-container"},h("a",{href:"".concat(this.currentTrek.gpx)},"GPX"),h("a",{href:"".concat(this.currentTrek.kml)},"KML"),h("a",{href:"".concat(this.currentTrek.pdf)},"PDF"))),this.themes.length>0&&h("div",{class:"themes-container"},this.themes.map((function(t){return h("div",{class:"theme"},t.label)}))),this.currentTrek.description_teaser&&h("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),this.currentTrek.description&&h("div",{class:"description-container"},h("div",{class:"description-title"},"Description"),h("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{class:"departure-container"},h("div",{class:"departure-title"},"Départ : "),h("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{class:"arrival-container"},h("div",{class:"arrival-title"},"Arrivée : "),h("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.altimetric_profile&&h("div",{class:"altimetric-profile-container"},h("div",{class:"altimetric-profile-title"},"Profil altimétrique"),h("img",{src:this.currentTrek.altimetric_profile.endsWith(".json")?this.currentTrek.altimetric_profile.replace(".json",".svg"):"".concat(this.currentTrek.altimetric_profile,"?format=svg")})),this.currentTrek.access&&h("div",{class:"access-container"},h("div",{class:"access-title"},"Accès routier"),h("div",{class:"access",innerHTML:this.currentTrek.access})),this.currentTrek.public_transport&&h("div",{class:"public-transport-container"},h("div",{class:"public-transport-title"},"Transport"),h("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport})),(this.currentTrek.advice||this.labels.length>0)&&h("div",{class:"advice-container"},h("div",{class:"advice-title"},"Recommandations"),this.currentTrek.advice&&h("div",{class:"advice",innerHTML:this.currentTrek.advice}),this.labels.map((function(t){return h("div",{class:"label-container"},h("div",{class:"label-sub-container"},t.pictogram&&h("img",{src:t.pictogram}),h("div",{class:"label-name",innerHTML:t.name})),h("div",{class:"label-advice",innerHTML:t.advice}))}))),this.currentTrek.advised_parking&&h("div",{class:"advised-parking-container"},h("div",{class:"advised-parking-title"},"Parking conseillé"),h("div",{class:"advised_parking",innerHTML:this.currentTrek.advised_parking})),this.currentTrek.gear&&h("div",{class:"gear-container"},h("div",{class:"gear-title"},"Équipements"),h("div",{class:"gear",innerHTML:this.currentTrek.gear})),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",{class:"sensitive-areas-container"},h("div",{class:"sensitive-areas-title"},"Zones de sensibilité environnementale"),state.currentSensitiveAreas.map((function(t){return h("grw-sensitive-area-detail",{sensitiveArea:t})}))),state.currentInformationDesks&&state.currentInformationDesks.length>0&&h("div",{class:"information-desks-container"},h("div",{class:"information-desks-title"},"Lieux de renseignement"),state.currentInformationDesks.map((function(t){return h("grw-information-desk-detail",{informationDesk:t})}))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&h("div",{class:"accessibilities-container"},h("div",{class:"accessibilities-title"},"Accessibilité"),this.currentTrek.disabled_infrastructure&&h("div",{innerHTML:this.currentTrek.disabled_infrastructure}),h("div",{class:"accessibilities-content-container"},this.accessibilities.map((function(t){return h("div",{class:"accessibility-content-container"},h("img",{src:t.pictogram}),h("div",{innerHTML:t.name}))}))),this.currentTrek.accessibility_level&&h("div",{class:"accessibility-level-container"},h("div",{class:"accessibility-level-title"},"Niveau d'accessibilité"),h("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{class:"accessibility-slope-container"},h("div",{class:"accessibility-slope-title"},"Pente"),h("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{class:"accessibility-width-container"},h("div",{class:"accessibility-width-title"},"Largeur"),h("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{class:"accessibility-signage-container"},h("div",{class:"accessibility-signage-title"},"Pente"),h("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{class:"accessibility-covering-container"},h("div",{class:"accessibility-covering-title"},"Revêtement"),h("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{class:"accessibility-exposure-container"},h("div",{class:"accessibility-exposure-title"},"Exposition"),h("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{class:"accessibility-advice-container"},h("div",{class:"accessibility-advice-title"},"Conseils"),h("div",{innerHTML:this.currentTrek.accessibility_advice}))),state.currentPois&&state.currentPois.length>0&&h("div",{class:"pois-container"},h("div",{class:"pois-title"},"Points d'intérêts"),state.currentPois.map((function(t){return h("grw-poi-detail",{poi:t})}))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",{class:"source-container"},h("div",{class:"source-title"},"Sources"),this.sources.map((function(t){return h("div",{class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram}),h("div",null,h("div",{class:"source-name",innerHTML:t.name}),h("a",{class:"source-advice",href:t.website,innerHTML:t.website})))})))))};return t}();GrwTrekDetail.style=grwTrekDetailCss;var GrwTrekProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.language="fr";this.api=undefined;this.trekId=undefined}t.prototype.connectedCallback=function(){state.api=this.api;var t=[];t.push(!state.difficulties?fetch("".concat(this.api,"trek_difficulty/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}):new Response("null"));t.push(!state.routes?fetch("".concat(this.api,"trek_route/?language=").concat(this.language,"&fields=id,route,pictogram"),{signal:this.signal}):new Response("null"));t.push(!state.practices?fetch("".concat(this.api,"trek_practice/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}):new Response("null"));t.push(!state.themes?fetch("".concat(this.api,"theme/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}):new Response("null"));t.push(!state.cities?fetch("".concat(this.api,"city/?language=").concat(this.language,"&fields=id,name&published=true"),{signal:this.signal}):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(this.language,"&published=true&trek=").concat(this.trekId,"&fields=id,geometry,name,description,contact,info_url,period,practices"),{signal:this.signal}).catch((function(){return new Response("null")})),fetch("".concat(this.api,"label/?language=").concat(this.language,"&fields=id,name,advice,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"source/?language=").concat(this.language,"&fields=id,name,website,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_accessibility/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_accessibility_level/?language=").concat(this.language,"&fields=id,name"),{signal:this.signal}).catch((function(){return new Response("null")})),fetch("".concat(this.api,"poi/?language=").concat(this.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),{signal:this.signal}),fetch("".concat(this.api,"poi_type/?language=").concat(this.language,"&fields=id,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"informationdesk/?language=").concat(this.language,"&near_trek=").concat(this.trekId,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),{signal:this.signal}),fetch("".concat(this.api,"trek/").concat(this.trekId,"/?language=").concat(this.language,"&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,altimetric_profile,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities"),{signal:this.signal})],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2],o=t[3],r=t[4],s=t[5],a=t[6],l=t[7],h=t[8],c=t[9],u=t[10],f=t[11],d=t[12],p=t[13];state.trekNetworkError=false;if(e){state.difficulties=e.results}if(i){state.routes=i.results}if(n){state.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(o){state.themes=o.results}if(r){state.cities=r.results}if(s){state.currentSensitiveAreas=s.results}state.labels=a.results;state.sources=l.results;state.accessibilities=h.results;if(c){state.accessibilitiesLevel=c.results}state.currentPois=u.results;state.poiTypes=f.results;state.currentInformationDesks=d.results;state.currentTrek=p})).catch((function(){state.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.currentTrek=null;state.trekNetworkError=false};t.prototype.render=function(){return h(Host,null)};return t}();var grwTreksListCss=':host{font-family:"Roboto";width:100%;height:100%;max-height:100vh;overflow-y:auto;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}grw-trek-card{margin:6px}';var GrwTreksList=function(){function t(t){registerInstance(this,t);this.step=10;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.shouldAddInfiniteScrollEvent=true;this.treksToDisplay=[];this.colorPrimary="#6b0030";this.colorPrimaryTint="#974c6e";this.isLargeView=false;this.resetStoreOnDisconnected=true}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTreks){this.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,this.step),true)}onChange("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTreks){t.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,t.step),true)}}));onChange("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.treksWithinBounds){t.treksToDisplay=__spreadArray([],state.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<state.treksWithinBounds.length){this.treksToDisplay=state.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=state.treksWithinBounds.length?state.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint}},this.treksToDisplay.map((function(e){return h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(e.id),trek:e,"is-large-view":t.isLargeView,"color-primary":t.colorPrimary,"color-primary-tint":t.colorPrimaryTint})})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTreksList.style=grwTreksListCss;var GrwTreksProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.language="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined}t.prototype.connectedCallback=function(){state.api=this.api;var t="".concat(this.api,"trek/?language=").concat(this.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));this.routes&&(t+="&routes=".concat(this.routes));this.practices&&(t+="&practices=".concat(this.practices));t+="&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom&page_size=999";Promise.all([fetch("".concat(this.api,"trek_difficulty/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_route/?language=").concat(this.language,"&fields=id,route,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_practice/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"theme/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"city/?language=").concat(this.language,"&fields=id,name&published=true"),{signal:this.signal}),fetch(t,{signal:this.signal})]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2],o=t[3],r=t[4],s=t[5];state.treksNetworkError=false;state.difficulties=e.results;state.routes=i.results;state.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=o.results;state.cities=r.results;state.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];state.currentTreks=s.results;state.treksWithinBounds=s.results;state.treks=s.results})).catch((function(){return state.treksNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.treksNetworkError=false};t.prototype.render=function(){return h(Host,null)};return t}();export{GrwFilter as grw_filter,GrwMap as grw_map,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
|
|
7
|
-
//# sourceMappingURL=grw-filter_6.entry.js.map
|
|
Binary file
|
|
Binary file
|