@geotrekce/geotrek-rando-widget 0.24.2 → 0.26.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/geotrek-rando-widget.cjs.js +1 -1
- 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/grw-app.cjs.entry.js +1 -1
- 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-common-button_23.cjs.entry.js +241 -205
- package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-details-modal_8.cjs.entry.js +1 -1
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js +1 -1
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js +1 -1
- package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js +1 -1
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js +1 -1
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.gz +0 -0
- package/dist/cjs/{i18n-ceda6815.js → i18n-d757c0bf.js} +61 -1
- package/dist/cjs/i18n-d757c0bf.js.br +0 -0
- package/dist/cjs/i18n-d757c0bf.js.gz +0 -0
- package/dist/cjs/i18n-d757c0bf.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/{treks.service-829e772f.js → treks.service-3e1c0220.js} +2 -2
- package/dist/cjs/treks.service-3e1c0220.js.br +0 -0
- package/dist/cjs/treks.service-3e1c0220.js.gz +0 -0
- package/dist/cjs/{treks.service-829e772f.js.map → treks.service-3e1c0220.js.map} +1 -1
- package/dist/collection/components/grw-map/grw-map.css +14 -0
- 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 +5 -5
- 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-offline-confirm-modal/grw-offline-confirm-modal.js +36 -7
- package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.br +0 -0
- package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.gz +0 -0
- package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.map +1 -1
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +87 -47
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +179 -139
- 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/i18n/i18n.js +60 -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 -1
- package/dist/collection/services/treks.service.js +1 -1
- package/dist/collection/services/treks.service.js.br +0 -0
- package/dist/collection/services/treks.service.js.gz +0 -0
- package/dist/collection/services/treks.service.js.map +1 -1
- package/dist/collection/store/grw-trek-provider.js +2 -4
- 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/esm/geotrek-rando-widget.js +1 -1
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +1 -1
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js +241 -205
- package/dist/esm/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm/grw-details-modal_8.entry.js +1 -1
- package/dist/esm/grw-details-modal_8.entry.js.br +0 -0
- package/dist/esm/grw-details-modal_8.entry.js.gz +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js +1 -1
- package/dist/esm/grw-outdoor-courses-provider.entry.js.br +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js +1 -1
- package/dist/esm/grw-poi_3.entry.js.br +0 -0
- package/dist/esm/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm/grw-sensitive-area-detail_2.entry.js +1 -1
- package/dist/esm/grw-sensitive-area-detail_2.entry.js.br +0 -0
- package/dist/esm/grw-sensitive-area-detail_2.entry.js.gz +0 -0
- package/dist/esm/grw-toggle-slot-visibility.entry.js +1 -1
- package/dist/esm/grw-toggle-slot-visibility.entry.js.br +0 -0
- package/dist/esm/grw-toggle-slot-visibility.entry.js.gz +0 -0
- package/dist/esm/{i18n-4ec6fb16.js → i18n-d4785001.js} +61 -1
- package/dist/esm/i18n-d4785001.js.br +0 -0
- package/dist/esm/i18n-d4785001.js.gz +0 -0
- package/dist/esm/i18n-d4785001.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/{treks.service-a59a05d5.js → treks.service-53203dbb.js} +2 -2
- package/dist/esm/treks.service-53203dbb.js.br +0 -0
- package/dist/esm/treks.service-53203dbb.js.gz +0 -0
- package/dist/esm/{treks.service-a59a05d5.js.map → treks.service-53203dbb.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-common-button_23.entry.js +2 -2
- package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm-es5/grw-details-modal_8.entry.js +1 -1
- package/dist/esm-es5/grw-details-modal_8.entry.js.br +0 -0
- package/dist/esm-es5/grw-details-modal_8.entry.js.gz +0 -0
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js +1 -1
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.br +0 -0
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.gz +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js +1 -1
- package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js +1 -1
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.br +0 -0
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.gz +0 -0
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js +1 -1
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.br +0 -0
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.gz +0 -0
- package/dist/esm-es5/i18n-d4785001.js +2 -0
- package/dist/esm-es5/i18n-d4785001.js.br +0 -0
- package/dist/esm-es5/i18n-d4785001.js.gz +0 -0
- package/dist/esm-es5/i18n-d4785001.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/{treks.service-a59a05d5.js → treks.service-53203dbb.js} +2 -2
- package/dist/esm-es5/treks.service-53203dbb.js.br +0 -0
- package/dist/esm-es5/treks.service-53203dbb.js.gz +0 -0
- package/dist/{geotrek-rando-widget/p-d64a208b.system.js.map → esm-es5/treks.service-53203dbb.js.map} +1 -1
- 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/{p-94f1ea91.system.entry.js → p-1ecac760.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-1ecac760.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1ecac760.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1f5afac7.js +2 -0
- package/dist/geotrek-rando-widget/p-1f5afac7.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1f5afac7.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1f5afac7.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-a0027314.system.entry.js → p-24e8475f.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-24e8475f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-24e8475f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-20a73813.entry.js → p-2990b91c.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2990b91c.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2990b91c.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3208ccea.system.js +2 -0
- package/dist/geotrek-rando-widget/p-3208ccea.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3208ccea.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3208ccea.system.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-033910ba.system.entry.js → p-34a34d74.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-34a34d74.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-34a34d74.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-a9f81664.system.entry.js → p-3566b43b.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-3566b43b.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3566b43b.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3c53fc59.system.js +1 -1
- package/dist/geotrek-rando-widget/p-3c53fc59.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3c53fc59.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3c53fc59.system.js.map +1 -1
- package/dist/geotrek-rando-widget/{p-805e2ba0.js → p-4cf52b6c.js} +2 -2
- package/dist/geotrek-rando-widget/p-4cf52b6c.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4cf52b6c.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-805e2ba0.js.map → p-4cf52b6c.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-9844030a.entry.js → p-5a073c3e.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-5a073c3e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5a073c3e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d64a208b.system.js → p-7d139984.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-7d139984.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7d139984.system.js.gz +0 -0
- package/dist/{esm-es5/treks.service-a59a05d5.js.map → geotrek-rando-widget/p-7d139984.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-862c76ff.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-862c76ff.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-862c76ff.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-862c76ff.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-422bb6de.entry.js → p-87558980.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-87558980.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-87558980.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-45f46d33.entry.js → p-875e71d3.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-875e71d3.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-875e71d3.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-2a4d46f7.entry.js → p-87eb3dcc.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-87eb3dcc.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-87eb3dcc.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-90ee8d15.system.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-90ee8d15.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-90ee8d15.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-90ee8d15.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-aa1ff056.system.entry.js → p-9bcb7645.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9bcb7645.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9bcb7645.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-75f7d534.system.entry.js → p-d47a130a.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d47a130a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d47a130a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-beba3e06.entry.js → p-d92ca7f1.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d92ca7f1.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d92ca7f1.entry.js.gz +0 -0
- package/dist/types/components/grw-offline-confirm-modal/grw-offline-confirm-modal.d.ts +3 -0
- package/dist/types/components/grw-outdoor-site-detail/grw-outdoor-site-detail.d.ts +2 -0
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +2 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/i18n/i18n.d.ts +20 -0
- package/package.json +1 -1
- package/readme.md +75 -29
- package/dist/cjs/i18n-ceda6815.js.br +0 -0
- package/dist/cjs/i18n-ceda6815.js.gz +0 -0
- package/dist/cjs/i18n-ceda6815.js.map +0 -1
- package/dist/cjs/treks.service-829e772f.js.br +0 -0
- package/dist/cjs/treks.service-829e772f.js.gz +0 -0
- package/dist/esm/i18n-4ec6fb16.js.br +0 -0
- package/dist/esm/i18n-4ec6fb16.js.gz +0 -0
- package/dist/esm/i18n-4ec6fb16.js.map +0 -1
- package/dist/esm/treks.service-a59a05d5.js.br +0 -0
- package/dist/esm/treks.service-a59a05d5.js.gz +0 -0
- package/dist/esm-es5/i18n-4ec6fb16.js +0 -2
- package/dist/esm-es5/i18n-4ec6fb16.js.br +0 -0
- package/dist/esm-es5/i18n-4ec6fb16.js.gz +0 -0
- package/dist/esm-es5/i18n-4ec6fb16.js.map +0 -1
- package/dist/esm-es5/treks.service-a59a05d5.js.br +0 -0
- package/dist/esm-es5/treks.service-a59a05d5.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-033910ba.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-033910ba.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-046d4502.system.js +0 -2
- package/dist/geotrek-rando-widget/p-046d4502.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-046d4502.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-046d4502.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0a3fc934.js +0 -2
- package/dist/geotrek-rando-widget/p-0a3fc934.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0a3fc934.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0a3fc934.js.map +0 -1
- package/dist/geotrek-rando-widget/p-20a73813.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-20a73813.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2a4d46f7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2a4d46f7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-422bb6de.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-422bb6de.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-45f46d33.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-45f46d33.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-75f7d534.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-75f7d534.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-805e2ba0.js.br +0 -0
- package/dist/geotrek-rando-widget/p-805e2ba0.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-94f1ea91.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-94f1ea91.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9844030a.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9844030a.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a0027314.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a0027314.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a9f81664.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a9f81664.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-aa1ff056.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-aa1ff056.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-beba3e06.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-beba3e06.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d64a208b.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d64a208b.system.js.gz +0 -0
- /package/dist/geotrek-rando-widget/{p-94f1ea91.system.entry.js.map → p-1ecac760.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-a0027314.system.entry.js.map → p-24e8475f.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-20a73813.entry.js.map → p-2990b91c.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-033910ba.system.entry.js.map → p-34a34d74.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-a9f81664.system.entry.js.map → p-3566b43b.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-9844030a.entry.js.map → p-5a073c3e.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-422bb6de.entry.js.map → p-87558980.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-45f46d33.entry.js.map → p-875e71d3.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-2a4d46f7.entry.js.map → p-87eb3dcc.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-aa1ff056.system.entry.js.map → p-9bcb7645.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-75f7d534.system.entry.js.map → p-d47a130a.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-beba3e06.entry.js.map → p-d92ca7f1.entry.js.map} +0 -0
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,c as r,e as o,f as s,g as n,F as a}from"./p-6d1ce9f7.js";import{t as l}from"./p-0a3fc934.js";import{s as c,o as p}from"./p-82fd06d0.js";import{t as d,h,d as u,e as f,o as m,f as g,j as b,a as v,C as w,c as k,k as x,F as y,D as A,l as z,m as C,n as M,s as _,i as O,p as P,q as F,u as T,v as B}from"./p-51a45011.js";import{l as j,c as S,L as E,b as N,a as $,h as I,g as Y,w as D,d as H,e as R}from"./p-9fd3738a.js";import{c as G,g as Z,a as q,b as V,d as Q,e as U,f as X,h as W,i as J,j as K,k as tt,t as et}from"./p-805e2ba0.js";import{g as it,c as rt,a as ot,n as st,e as nt,S as at,N as lt,P as ct,K as pt}from"./p-e58fd9e3.js";import{f as dt,M as ht,C as ut,D as ft,g as mt,a as gt,b as bt,c as vt,d as wt,e as kt,h as xt}from"./p-4270930c.js";import{T as yt,O as At,M as zt}from"./p-d1c11cf1.js";import{a as Ct,b as Lt,c as Mt}from"./p-d97deffd.js";const _t=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z"/></svg>`;const Ot=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></svg>`;const Pt=".common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;height:44px}.common-button .common-button-icon{font-size:18px}";const Ft=Pt;const Tt=class{constructor(e){t(this,e);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}render(){return e(i,{key:"75c00d1d6355bfe164a96b8833e648cb1382986b",style:{"--font-family":this.fontFamily}},e("button",{key:"aeba6123a03f4226f9704c5f77d8968ed6002a80",part:"common-button",class:"common-button",onClick:()=>this.action()},e("span",{key:"78eac7ec8fc244bf0b640074670f35224136dddf",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?_t:Ot}),e("span",{key:"248b06ddd2cdd1d9ded5848670cb2eac816b6c30",part:"common-button-label",class:"label"},this.name)))}};Tt.style=Ft;const Bt='.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container,.filters-container .filters-outdoor-sites-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-family:var(--font-family)}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}.current-treks-within-bounds-length{color:var(--color-on-surface-variant);font-family:var(--font-family)}';const jt=Bt;const St=class{constructor(e){t(this,e);this.resetFilter=r(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}handleEraseTreksFilters(){d.forEach((t=>{c[t.property].forEach((t=>t.selected=false))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;c.currentTreks=h();this.resetFilter.emit()}handleOkTreksFilters(){this.handleFilters()}handleSelectedSegment(t){this.selectedSegment=t}handleSegment(t){if(c.mode==="treks"){return d.filter((e=>e.segment===t)).some((t=>c[t.property]&&c[t.property].length>0))}else if(c.mode==="touristicContents"){return u.filter((e=>e.segment===t)).some((t=>c[t.property]&&c[t.property].length>0))}else if(c.mode==="touristicEvents"){return f.filter((e=>e.segment===t)).some((t=>c[t.property]&&c[t.property].length>0))}else if(c.mode==="outdoor"){return m.filter((e=>e.segment===t)).some((t=>c[t.property]&&c[t.property].length>0))}}handleEraseTouristicContentsFilters(){u.forEach((t=>{c[t.property].forEach((t=>t.selected=false))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicContents=g();this.resetFilter.emit()}handleOkTouristicContentsFilters(){this.handleFilters()}handleEraseTouristicEventsFilters(){f.forEach((t=>{c[t.property].forEach((t=>t.selected=false))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentTouristicEvents=b();this.resetFilter.emit()}handleOkTouristicEventsFilters(){this.handleFilters()}handleEraseOutdoorSitesFilters(){m.forEach((t=>{c[t.property].forEach((t=>t.selected=false))}));c.selectedActivitiesFilters=0;c.selectedLocationFilters=0;c.currentOutdoorSites=v();this.resetFilter.emit()}handleOkOutdoorSitesFilters(){this.handleFilters()}render(){return e(i,{key:"de110e8139105f4124ca4b0d23b1ec230d0f9dfe",style:{"--font-family":this.fontFamily}},e("div",{key:"74b19f6bb8f18c933c5797748819151d65fd9656",part:"options-container",class:"options-container"},e("div",{key:"7c019d85dce235a02e66ba7ad5b1cadb30486850",part:"filters-container",class:"filters-container"},c.mode==="treks"&&e("div",{part:"filters-treks-container",class:"filters-treks-container"},e("div",{part:"filters-options-container",class:"filters-options-container"},c.treksWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${c.treksWithinBounds.length} ${c.treksWithinBounds.length>1?l[c.language].treks:l[c.language].trek}`),e("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleEraseTreksFilters()},l[c.language].erase),e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTreksFilters()},l[c.language].ok))),e("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[c.language].home.segment.treks," ",c.selectedActivitiesFilters!==0&&`(${c.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},l[c.language].themes," ",c.selectedThemesFilters!==0&&`(${c.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[c.language].location," ",c.selectedLocationFilters!==0&&`(${c.selectedLocationFilters})`)),e("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},c["practices"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderPractices})),c["difficulties"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderDifficulties})),c["durations"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderDurations})),c["lengths"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderLengths})),c["elevations"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderElevations})),c["routes"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderRoutes})),c["accessibilities"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderAccessibilities})),c["labels"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&e("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},c["themes"].length>0&&e("div",{part:"",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].themes,filterPlaceholder:l[c.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},c["districts"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:l[c.language].placeholderDistricts})),c["cities"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].crossedCities,filterPlaceholder:l[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),c.mode==="touristicContents"&&e("div",{part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},e("div",{part:"filters-options-container",class:"filters-options-container"},c.touristicContentsWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${c.touristicContentsWithinBounds.length} ${c.touristicContentsWithinBounds.length>1?l[c.language].home.touristicContents:l[c.language].home.touristicContent}`),e("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleEraseTouristicContentsFilters()},l[c.language].erase),e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTouristicContentsFilters()},l[c.language].ok))),e("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[c.language].services," ",c.selectedActivitiesFilters!==0&&`(${c.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[c.language].location," ",c.selectedLocationFilters!==0&&`(${c.selectedLocationFilters})`)),e("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},c["touristicContentCategories"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},c["districts"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:l[c.language].placeholderDistricts})),c["cities"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].crossedCities,filterPlaceholder:l[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),c.mode==="touristicEvents"&&e("div",{part:"filters-touristic-events-container",class:"filters-touristic-events-container"},e("div",{part:"filters-options-container",class:"filters-options-container"},c.touristicEventsWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${c.touristicEventsWithinBounds.length} ${c.touristicEventsWithinBounds.length>1?l[c.language].home.touristicEvents:l[c.language].home.touristicEvent}`),e("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleEraseTouristicEventsFilters()},l[c.language].erase),e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTouristicEventsFilters()},l[c.language].ok))),e("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[c.language].services," ",c.selectedActivitiesFilters!==0&&`(${c.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[c.language].location," ",c.selectedLocationFilters!==0&&`(${c.selectedLocationFilters})`)),e("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},c["touristicEventTypes"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].type,filterPlaceholder:l[c.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},c["districts"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:l[c.language].placeholderDistricts})),c["cities"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].crossedCities,filterPlaceholder:l[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),c.mode==="outdoor"&&e("div",{part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},e("div",{part:"filters-options-container",class:"filters-options-container"},c.outdoorSitesWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},`${c.outdoorSitesWithinBounds.length} ${c.outdoorSitesWithinBounds.length>1?l[c.language].home.outdoorSites:l[c.language].home.outdoorSite}`),e("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleEraseOutdoorSitesFilters()},l[c.language].erase),e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkOutdoorSitesFilters()},l[c.language].ok))),e("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[c.language].home.segment.outdoorSites," ",c.selectedActivitiesFilters!==0&&`(${c.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},l[c.language].themes," ",c.selectedThemesFilters!==0&&`(${c.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[c.language].location," ",c.selectedLocationFilters!==0&&`(${c.selectedLocationFilters})`)),e("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},c["outdoorPractices"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].practice,filterPlaceholder:l[c.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),c["outdoorSiteTypes"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[c.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&e("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},c["themes"].length>0&&e("div",{part:"",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].themes,filterPlaceholder:l[c.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"outdoor-sites-location-segment-container"},c["districts"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:l[c.language].placeholderDistricts})),c["cities"].length>0&&e("div",{part:"filter-container",class:"filter-container"},e("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:l[c.language].crossedCities,filterPlaceholder:l[c.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),e("div",{key:"6a6bbd344f45917ddd71a5c8f2eeb3449ea536f0",part:"back-filters-container",class:"back-filters-container",onClick:()=>this.handleFilters()})))}};St.style=jt;const Et=".loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);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)}}";const Nt=Et;const $t=class{constructor(e){t(this,e);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}render(){return e(i,{key:"46d79648e22472eab37c2e0576d6872fa7945966",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},e("span",{key:"5898aa6a9b04d0670a23b85bb959f0ab97913658",part:"loader",class:"loader"}))}};$t.style=Nt;var It={exports:{}};(function(t,e){(function(e,i){{t.exports=e(j.exports)}if(typeof i!=="undefined"&&i.L){e(i.L)}})((function(t){t.locales={};t.locale=null;t.registerLocale=function e(i,r){t.locales[i]=t.Util.extend({},t.locales[i],r)};t.setLocale=function e(i){t.locale=i};return t.i18n=t._=function e(i,r){if(t.locale&&t.locales[t.locale]&&typeof t.locales[t.locale][i]!=="undefined"){i=t.locales[t.locale][i]}try{i=t.Util.template(i,r)}catch(t){}return i}}),window)})(It);var Yt={exports:{}};(function(t,e){!function(t){t()}((function(){!function(e,i){t.exports=e(j.exports),void 0!==i&&i.L&&e(i.L)}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,i){t.locales[e]=t.Util.extend({},t.locales[e],i)},t.setLocale=function(e){t.locale=e},t.i18n=t._=function(e,i){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,i)}catch(t){}return e}}),window);var e=6e4,i=60*e,r=24*i;function o(t){var o=Math.floor(t/r),s=Math.floor((t-o*r)/i),n=Math.floor((t-o*r-s*i)/e),a=Math.round((t-o*r-s*i-n*e)/1e3);return 60===a&&(n++,a=0),60===n&&(s++,n=0),24===s&&(o++,s=0),(o?o+"d ":"")+s.toString().padStart(2,0)+":"+n.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'}function s(t,e){var i=g("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function n(t,e,i){return!1===e?Promise.resolve():i instanceof Promise?i:new Promise((function(e,i){var r=document.createElement("script");r.addEventListener("load",e,{once:!0}),r.src=t,document.head.appendChild(r)}))}function a(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);var i=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(i),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(i),t.globalAlpha=1,t.closePath()}function l(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function c(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))}function p(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))}function d(t,e,i){return(i?c:p).call(null,t,e)}function h(t,e,i){e&&p(t,e),i&&c(t,i)}function u(t,e,i){return void 0===i?L.DomUtil.getStyle(t,e):t.style.setProperty(e,i)}function f(t,e,i,r){return u(t,e,r?i:"")}function m(t,e,i,r){return t[r?"on":"off"](e,i)}function g(t,e,i,r){var o=L.DomUtil.create(t,e||"");return i&&w(o,i),r&&b(r,o),o}function b(t,e){return t.appendChild(e)}function v(t,e,i){return t.insertAdjacentElement(i,e)}function w(t,e){for(var i in e)t.setAttribute(i,e[i])}function k(t,e){return(e||document).querySelector(t)}var x=L.DomEvent.on,y=L.DomEvent.off,A=L.DomUtil.hasClass;function z(){return Math.random().toString(36).substr(2,9)}function C(t,e){for(var i in t)e(t[i],i)}var M=Object.freeze({__proto__:null,formatTime:o,saveFile:s,lazyLoader:n,drawCanvas:a,clamp:l,addClass:c,removeClass:p,toggleClass:d,replaceClass:h,style:u,toggleStyle:f,toggleEvent:m,create:g,append:b,insert:v,setAttributes:w,select:k,on:x,off:y,hasClass:A,randomId:z,each:C}),_={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},O=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,o=t.scaleX,s=t.scaleY,n=t.interpolation,a=void 0===n?"curveLinear":n;return d3.area().curve("string"==typeof a?d3[a]:a).x((function(t){return t.xDiagCoord=o(t[i])})).y0(e).y1((function(t){return s(t[r])}))},P=function(t){var e=t.name,i=t.color,r=t.strokeColor,o=t.strokeOpacity,s=t.fillOpacity,n=d3.create("svg:path");return e&&n.classed(e,!0),n.style("pointer-events","none"),n.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",o||"1").attr("fill-opacity",s||"0.8"),n},F=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,o=void 0===r?6:r,s=t.tickPadding,n=void 0===s?3:s,a=t.position,l=t.height,c=t.width,p=t.axis,d=t.scale,h=t.ticks,u=t.tickFormat,f=t.label,m=t.labelX,g=t.labelY,b=t.name,v=void 0===b?"":b,w=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==a&&(r=l),"right"==a&&(e=c),"x"==p&&"grid"==i?o=-l:"y"==p&&"grid"==i&&(o=-c);var s=d3["axis"+a.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(d).ticks(h).tickPadding(n).tickSize(o).tickFormat(u),b=t.append("g").attr("class",[p,i,a,v].join(" ")).attr("transform","translate("+e+","+r+")").call(s);return f&&b.append("svg:text").attr("x",m).attr("y",g).text(f),w&&b.call(w),b}},T=function(t){return t.type="grid",F(t)},B=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,o=t.yCoord,s=void 0===o?0:o,n=t.labels,a=void 0===n?{}:n,l=t.item,c=void 0===l?{}:l,p=t.length,d=void 0===p?0:p;return function(t){t.attr("class","height-focus-group");var i,o=t.select(".height-focus.line"),n=t.select(".height-focus.circle-lower"),l=t.select(".height-focus-label");return o.node()||(o=t.append("svg:line")),n.node()||(n=t.append("svg:circle")),l.node()||(l=t.append("svg:text")),isNaN(r)||isNaN(s)||(n.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+s+")").attr("r",6).attr("cx",0).attr("cy",0),o.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",s).attr("y2",d),l.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",d),Object.keys(a).sort((function(t,e){return a[t].order-a[e].order})).forEach((function(t){(i=l.select(".height-focus-"+a[t].name)).size()||(i=l.append("svg:tspan").attr("class","height-focus-"+a[t].name).attr("dy","1.5em")),i.text("function"!=typeof a[t].value?a[t].value:a[t].value(c))})),l.select("tspan").attr("dy",l.selectAll("tspan").size()>1?"-1.5em":"0em"),l.selectAll("tspan").attr("x",r+5)),t}},S=function(t){var e=t.name,i=t.label,r=t.width,o=t.height,s=t.margins,n=void 0===s?{}:s,a=t.color,l=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:l.node(),name:e,legend:t.node(),enabled:!l.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",r/2-50).attr("y",o+n.bottom/2).attr("width",50).attr("height",10).attr("fill",a).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(i||e)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",o+n.bottom/2).attr("dy","0.75em"),t}},E=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,o=t.height,s=t.labels,n=void 0===s?{}:s,a=t.item,l=void 0===a?{}:a;return function(t){var s=t.select(".mouse-focus-line"),a=t.select(".mouse-focus-label");s.node()||(s=t.append("svg:line")),a.node()||(a=t.append("g"));var c=a.select(".mouse-focus-label-rect"),p=a.select(".mouse-focus-label-text");c.node()||(c=a.append("svg:rect")),p.node()||(p=a.append("svg:text"));var d,h=0,u=0,f={width:0,height:0};try{f=p.node().getBBox()}catch(e){return t}return e&&(h=e+(e<r/2?10:-f.width-10)),i&&(u=Math.max(i-f.height,L.Browser.webkit?0:-1/0)),s.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",o),a.attr("class","mouse-focus-label"),c.attr("class","mouse-focus-label-rect").attr("x",h-5).attr("y",u-5).attr("width",f.width+10).attr("height",f.height+10).attr("rx",3).attr("ry",3),p.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",u),Object.keys(n).sort((function(t,e){return n[t].order-n[e].order})).forEach((function(t){(d=p.select(".mouse-focus-label-"+n[t].name)).size()||(d=p.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+n[t].name).attr("dy","1.5em")),d.text("function"!=typeof n[t].value?n[t].value:n[t].value(l))})),p.select("tspan").attr("dy","1em"),p.selectAll("tspan").attr("x",h),t}},N=function(t){var e=t.height,i=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));var r=t.selectAll(".horizontal-drag-rect").data([{w:i}]),o=t.selectAll(".horizontal-drag-line").data([{w:i}]),s=t.selectAll(".horizontal-drag-label").data([{w:i-8}]),n=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),o.exit().remove(),s.exit().remove(),n.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(t){return t.w})),o.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(o).attr("x2",(function(t){return t.w})),s.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(s).attr("x",(function(t){return t.w})),n.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(n).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return"translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},$=function(t){var e=t.point,i=t.height,r=t.width,o=t.x,s=t.y;return function(t){return isNaN(o)||isNaN(s)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:o,y:s}).attr("class",(function(t){return"point "+t.pos})).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-s,bottom:i-s}[e.position],x2:{left:-o,right:r-o}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},I=function(t){var e=t.min,i=t.max,r=t.attr,o=t.name,s=t.forceBounds,n=t.scale;return function(t){r=r||o,n&&n.attr&&(r=n.attr);var a=t&&t.length?d3.extent(t,(function(t){return t[r]})):[0,1];return void 0!==e&&(e<a[0]||s)&&(a[0]=e),void 0!==i&&(i>a[1]||s)&&(a[1]=i),a}},Y=function(t){var e=t.axis;return function(t,i){return"x"==e?[0,t]:"y"==e?[i,0]:void 0}},D=function(t){var e=t.data,i=t.attr,r=t.min,o=t.max,s=t.forceBounds,n=t.range;return d3.scaleLinear().range(n).domain(I({min:r,max:o,attr:i,forceBounds:s})(e))},H=function(t){var e=t.width,i=t.height,r=t.margins,o=void 0===r?{}:r,s=e-o.left-o.right,n=i-o.top-o.bottom,a=d3.create("svg:svg").attr("class","background"),l=a.append("g"),c={grid:l.append("g").attr("class","grid"),area:l.append("g").attr("class","area"),axis:l.append("g").attr("class","axis"),point:l.append("g").attr("class","point"),brush:l.append("g").attr("class","brush"),tooltip:l.append("g").attr("class","tooltip").attr("display","none"),ruler:l.append("g").attr("class","ruler"),legend:l.append("g").attr("class","legend")},p=c.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),d=p.append("svg:rect").attr("class","zoom").attr("fill","white"),h=c.area.append("svg:foreignObject").attr("mask","url(#"+p.attr("id")+")"),u=h.append("xhtml:canvas").attr("class","canvas-plot"),f=u.node().getContext("2d");c.tooltip.call(E({xCoord:0,yCoord:0,height:n,width:s,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return c.brush.select(".overlay").attr("cursor",null)})),g={mask:p,canvas:u,context:f,brush:m},b={svg:a,g:l,panes:c,utils:g,scale:function(t){return{x:D(t.x),y:D(t.y)}},_resize:function(t){var e=t.width,i=t.height,r=t.margins,o=void 0===r?{}:r,s=t.ruler,n=e-o.left-o.right,p=i-o.top-o.bottom;a.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).attr("height",i),l.attr("transform","translate("+o.left+","+o.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&u.style("transform","translate("+o.left+"px,"+o.top+"px)"),d.attr("x",0).attr("y",0).attr("width",n).attr("height",p),h.attr("width",n).attr("height",p),u.attr("width",n).attr("height",p),s&&c.ruler.call(N({height:p,width:n})),c.brush.call(m.extent([[0,0],[n,p]])),c.brush.select(".overlay").attr("cursor",null),b._width=n,b._height=p,b.svg.dispatch("resize",{detail:{width:n,height:p}})},pane:function(t){return c[t]||(c[t]=l.append("g").attr("class",t)),c[t]},get:function(t){return g[t]}};return b._resize({width:e,height:i,margins:o}),b},R=Object.freeze({__proto__:null,Colors:_,Area:O,Path:P,Axis:F,Grid:T,PositionMarker:B,LegendItem:S,Tooltip:E,Ruler:N,CheckPoint:$,Domain:I,Range:Y,Scale:D,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,o=t.x,s=t.attr;return d3.bisector((function(t){return t[s]})).left(i,r.invert(o))},Chart:H}),G=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var i=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var r=this._chart=H(t);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){i._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return i._maskGaps.push(t.index)}))}))},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove()},_drawPath:function(t){var e=this._paths[t],i=this._props.areas[t];e.datum(this._data).attr("d",O(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?a(this._context,e):this._area.append((function(){return e.node()})))},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(t){var e=this,i=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var i=e._chart.panes.brush.select(".overlay").node(),r=d3.pointers(t,i)[0][0],o=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:o,xCoord:r})}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var i=t.selection;if(i){var r=e._findIndexForXCoord(i[0]),o=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._data[o]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var t=this,e=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&e.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","")})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom")})),e.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var i=e.detail,r=i.path,o=i.legend,s=i.name,n=i.enabled;if(r){var a=k("text",o),l=k("rect",o);f(a,"text-decoration-line","line-through",n),f(l,"fill-opacity","0",n),d(r,"leaflet-hidden",n),t._updateArea(),t.fire("elepath_toggle",{path:r,name:s,legend:o,enabled:n})}}))},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),i=this._drag;i.on("start end",(function(e,i){var r=t._height(),o=t._ruler.data()[0].y;(o>=r||o<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var o=t._height(),s=d3.pointers(i,t._area.node())[0][1],n=s>0?s<o?s:o:0,a=t._y.invert(n),l=L.extend(t._ruler.data()[0],{y:n});t._ruler.data([l]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})).classed("active",n<o),t._container.select(".horizontal-drag-label").text(e(a)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:s<o&&s>0?t._findCoordsForY(s):[]})})),this._ruler.call(i)}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var i=P(t);this._paths[t.name]=i,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:i})},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,i=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:e.forceAxisBounds},i)).attr=i.attr||t.name;var r=this._domains[t.name]=I(t),o=this._ranges[t.name]=Y(t);i.range=i.range||o(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[t.name]=i,t.scale=this._scales[t.name]=D(i)}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,i},_registerCheckPoint:function(t){var e,i,r;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],i=this._x(e.dist),r=this._y(e.z)):isNaN(t.dist)||(i=this._x(t.dist),e=this._data[this._findIndexForXCoord(i)],r=this._y(e.z)),this._point.call($({point:t,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e)},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,i,r,o=this._props.grids,s=this._props.axes,n={width:this._width(),height:this._height(),tickFormat:""},a={width:this._width(),height:this._height()};for(var l in o)e=L.extend({},n,o[l]),r=T(e),this._grid.call(r);for(var c in s)!1!==t[c]&&"summary"!==t[c]&&(e=L.extend({},a,s[c]),i=F(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),o=r.attr("transform"),s=o.substring(o.indexOf("(")+1,o.indexOf(")")).split(",");r.attr("transform","translate("+(+s[0]+40*e)+","+s[1]+")"),e>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,i){if(!(i>=t._maskGaps.length-2)){var r=t._data[t._maskGaps[i]],o=t._data[t._maskGaps[i+1]],s=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),n=t._x(t._data[t._findIndexForLatLng(o.latlng)].dist);t._mask.append("rect").attr("x",s).attr("y",0).attr("width",n-s).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var t=this;if(!1!==this.options.legend){var e,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)e=S(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(e);var o=this._legend.selectAll(".legend-item"),s=o.nodes().length,n=Array(Math.floor(s/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(s%2))})),a=n.slice().reverse().map((function(t){return-t}));s%2!=0&&a.push(0),n=a.concat(n);var l=this._axis.selectAll(".x.axis.bottom").nodes().length,c=30+2*l,p=30*s;s&&this.options.margins.right<p&&(this.options.margins.right=p,this.fire("margins_updated")),l&&this.options.margins.bottom<c&&(this.options.margins.bottom=c,this.fire("margins_updated")),o.each((function(e,i,r){var o=d3.select(r[i]),s=(o.select("rect"),o.attr("data-name")),a=t._paths[s],c=55*n[i],p=2*l;o.attr("transform","translate("+c+", "+p+")"),s in t.options&&"disabled"==t.options[s]&&(a.classed("leaflet-hidden",!0),o.select("text").style("text-decoration-line","line-through"),o.select("rect").style("fill-opacity","0")),t._mask&&a.attr("mask","url(#"+t._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,i=this._data,r=this._y.invert(t),o=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),s=0;return o.reduce((function(t,r,n){return o[e=n+1]===o[n]+1&&e!==o.length||(t.push(o.slice(s,e).map((function(t){return i[t].latlng}))),s=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,i=1/0;return this._data.forEach((function(r,o){var s=t.distanceTo(r.latlng);s<i&&(i=s,e=o)})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(E({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function Z(t){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var q,V=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1})}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(B({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"})}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(B({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}))}break;case"position-marker":p(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng)}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":c(this._marker.getElement(),"leaflet-hidden")}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t}}),Q=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},u(this._container=g("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"")},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML=""},append:function(t,e,i){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,i){return t.labels[e].order-t.labels[i].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info))}))},_registerSummary:function(t){for(var e in t){var i;t[e].order=null!==(i=t[e].order)&&void 0!==i?i:100,this.labels[e]=t[e]}}}),U={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},X=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:U,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(t,e){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),i._addData(t),i._addLayer(e),i._fireEvt("eledata_added",{data:t,layer:e,track_info:i.track_info})}))},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||v(t.getContainer(),e,"afterend"),b(e,this.onAdd(t))}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){u(this._container,"display","none")},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=U.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=U.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(_,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:i="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":Z(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":Z(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==Z(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=n(t,e,L.Control.Elevation[i])},load:function(t){var e=this;this._parseFromString(t).then((function(i){return i?e._loadLayer(i):e._loadFile(t)}))},onAdd:function(t){var e=this;this._map=t;var i=this._container=g("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(i),e._initChart(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),x(t.getContainer(),"mousewheel",e._resetDrag,e),x(t.getContainer(),"touchstart",e._resetDrag,e),x(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()})),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),y(t.getContainer(),"mousewheel",this._resetDrag,this),y(t.getContainer(),"touchstart",this._resetDrag,this),y(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(t){this.options.zFollow=t},show:function(){u(this._container,"display","block")},_addData:function(t){var e=this;if(t){var i=t.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":C(i.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===t.type&&C(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties)}},_addGeoJSONData:function(t,e){var i=this;t.forEach((function(t,r){var o,s,n,a,l;t.meta=null!==(o=t.meta)&&void 0!==o?o:{time:null,ele:null,hr:null,cad:null,atemp:null};var c=e&&e.coordinateProperties||e;i.fire("elepoint_init",{point:t,props:c,id:r}),i._addPoint(null!==(s=t.lat)&&void 0!==s?s:t[1],null!==(n=t.lng)&&void 0!==n?n:t[0],null!==(a=null!==(l=t.alt)&&void 0!==l?l:t.meta.ele)&&void 0!==a?a:t[2]),i.fire("elepoint_added",{point:t,index:i._data.length-1})})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint:function(t,e,i){if(this.options.reverseCoords){var r=[e,t];t=r[0],e=r[1]}this._data.push({x:t,y:e,z:i,latlng:L.latLng(t,e,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}))},_addMarker:function(t){t&&this._markers.addLayer(t)},_initAlmostOverHandler:function(t,e){var i=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return i._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return i._mouseoutHandler(t)})))}))},_initDistanceMarkers:function(t,e){var i=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t))},_initElevationDiv:function(){var t=k(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+z(),t=g("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&h(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var i=t._map;t._map?(i.once("layeradd",(function(i){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(i):(t._initAlmostOverHandler(i,e),t._initDistanceMarkers(i,e))):console.warn("Undefined elevation map object")},_collapse:function(){h(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){h(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(i,r){if(e._layers.hasLayer(r)){var o=e.options.theme.replace("-theme",""),s=_[o]||{},n=r.options;if(n.color=s.line||s.area||o,n.stroke=!!n.color,t.call(this,i,r),n.stroke&&0!==n.weight){var a=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=s.outline||"#FFF",i.lineWidth=1.75*n.weight,i.stroke(),i.globalCompositeOperation=a}}else t.call(this,i,r)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data)}))}))},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i)},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var i=this.eleDiv,r=i.offsetWidth,o=i.offsetHeight;r>0&&(e.width=r),o>20&&(e.height=o-20)}else{var s=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>s&&(e.width=s-30)}var n=this._chart=new G(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(n.render()),n.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init")},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var i=e.layer;d(i.getElement&&i.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),m(i,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),m(i,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type)}))},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new V(this.options),this.fire("elechart_marker")},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=g("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this)):(x(e,"click",L.DomEvent.stop),x(e,"click",this._toggle,this)),x(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(t){this._summary=new Q({summary:this.options.summary},this),d3.select(t).call(this._summary.render())},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse()},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(i){e._downloadURL=t,e._parseFromString(i).then((function(t){return t&&e._loadLayer(t)}))})).catch((function(t){return console.warn(t)}))},_loadLayer:function(t){var e=this,i=e.options,r=i.wptIcons,o=i.wptLabels,s=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var i=L.extend({},e.options.polyline);return e.options.theme&&(i.className+=" "+e.options.theme),i},pointToLayer:function(t,i){var s,n,a;if(e.options.waypoints){var l=t.properties,c=null!==(s=l.desc)&&void 0!==s?s:"",p=null!==(n=l.name)&&void 0!==n?n:"",d=(null!==(a=l.sym)&&void 0!==a?a:p).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(o)?p:""}),[!0,"markers"].includes(e.options.waypoints)&&0!=r){r.hasOwnProperty(d)||(r[d]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+d+'"></i>'})));var h=L.marker(i,{icon:r[d]});if([!0,"markers"].includes(o)&&(p||c)){var u=decodeURI("<b>"+p+"</b>"+(c.length>0?"<br>"+c:""));h.bindPopup(u,{className:"elevation-popup",keepInView:!0}).openPopup(),h.bindTooltip(u,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return e._addMarker(h),e.fire("waypoint_added",{point:h,element:i,properties:l}),h}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(e.addData(r),e.track_info=L.extend({},e.track_info,{name:t.name}))}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,s),e._fireEvt("eledata_loaded",{data:t,layer:s,name:e.track_info.name,track_info:e.track_info})})),s},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(t){this.fire("elechart_enter")},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var i=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this._setMapView(e),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:i}),this.fire("elechart_hover",{data:e,xCoord:i})}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var i=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&p(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.lazyLoad(e.__TOGEOJSON).then((function(){var r;try{r=e._parseFromXMLString(t.trim())}catch(i){r=e._parseFromGeoJSONString(t.toString())}r&&(r=e._prepareMultiLineStrings(r),r=e._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),r=i.documentElement.tagName.toLowerCase(),o=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var s=toGeoJSON[r](i);return s.name=o.length>0?(null!==(e=Array.from(o).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:o[0]).textContent:"",s},_prepareAdditionalProperties:function(t){return!t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(i){t.features.push({geometry:{type:"LineString",coordinates:i},properties:e.properties,type:"Feature"})}))})),t.features.filter((function(t){return"MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}))},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}))},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}))},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}))},_registerDataAttribute:function(t){var e=this,i=null;t.init&&this.on("elepoint_init",(function(i){return t.init.call(e,i)})),this.on("elepoint_added",(function(r){if(!1===t.skipNull){var o=e._data[r.index][t.name];if(r.index>0){var s=e._data[r.index-1][t.name];if(isNaN(s)){if(isNaN(i)||isNaN(o)?isNaN(i)?isNaN(o)||(s=o):s=i:s=(i+o)/2,!isNaN(s))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=s}}isNaN(o)||(i=o)}e._data[r.index][t.name]=t.fetch.call(e,r.index,r.point),t.update&&(e._data[r.index][t.name]=t.update.call(e,e._data[r.index][t.name],r.index,r.point))}))},_registerTooltip:function(t){var e=this;if(t.chart){var i=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(i)}))}if(t.marker){var r=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(r)}))}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=u(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;t=e._maxWidth>i?i-30:e._maxWidth}if(t){var r=this._chart;e.width=t,r&&r._chart&&(r._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25})}},_toggleChartHandler:function(t){var e=this,i=t.name,r=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return d(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
|
|
2
|
-
/*!this._data.length ||*/
|
|
3
|
-
this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var t=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:s.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});X.addInitHook((function(){var t=this,e=this.options,i={};e.imperial?(e.distanceFactor=this.__mileFactor,i.label="mi"):(e.distanceFactor=e.distanceFactor||1,i.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=t._data[i].latlng.distanceTo(t._data[i>0?i-1:i].latlng)*e.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return(t.distance||0).toFixed(2)+" "+i.label},order:10}})})),X.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return o(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===Z(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),o=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+o)}else e.meta.time=new Date(Date.now());var s=e.meta.time;return s.getTime()-60*s.getTimezoneOffset()*1e3==0&&(s=0),s},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+o(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return o(t.time||0)},order:20}}))})),X.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),o=_[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,o=t.track_info;if(t.options.altitudeDeltaMax){var s=e-r[i>0?i-1:i].z,n=t.options.altitudeDeltaMax;Math.abs(s)>n&&(e=r[i-1].z+n*Math.sign(s))}return(e=l(e,t.options.altitudeRange))>o.elevation_max&&(o.elevation_max=e),e<o.elevation_min&&(o.elevation_min=e),o.elevation_avg=(e+o.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:o.area||r,strokeColor:e.detached?o.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?o.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+" "+i.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return(t.elevation_min||0).toFixed(2)+" "+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return(t.elevation_avg||0).toFixed(2)+" "+i.label},order:30}})})),X.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),o=i[e].z-i[e>0?e-1:e].z;return isNaN(o)||0===r?0:o/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,o=t._data,s=o[i].z-o[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var n=slop-o[i>0?i-1:i].slope,a=t.options.slopeDeltaMax;Math.abs(n)>a&&(e=o[i-1].slope+a*Math.sign(n))}return e=l(e,t.options.slopeRange),s>0?t.track_info.ascent+=s:s<0&&(t.track_info.descent-=s),e>r.slope_max&&(r.slope_max=e),e<r.slope_min&&(r.slope_min=e),r.slope_avg=(e+r.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+i.label},marker:function(t){return Math.round(t.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+" "+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+" "+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+" "+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+" "+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+" "+i.label},order:40}})}})),X.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,o=1e3*(r[i].dist-r[i>0?i-1:i].dist),s=r[i].time-r[i>0?i-1:i].time;return s>0?Math.abs(o/s*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,o=t.track_info;if(t.options.speedDeltaMax){var s=e-r[i>0?i-1:i].speed,n=t.options.speedDeltaMax;Math.abs(s)>n&&(e=r[i-1].speed+n*Math.sign(s))}return(e=l(e,t.options.speedRange))>o.speed_max&&(o.speed_max=e),e<o.speed_min&&(o.speed_min=e),o.speed_avg=(e+o.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+" "+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+" "+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+" "+i.label},order:50}}))}})),X.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,o=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),s=(r[i].time-r[i>0?i-1:i].time)/1e3;return s>0?Math.abs(o/s)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,o=t.track_info;if(t.options.accelerationDeltaMax){var s=e-r[i>0?i-1:i].acceleration,n=t.options.accelerationDeltaMax;Math.abs(s)>n&&(e=r[i-1].acceleration+n*Math.sign(s))}return(e=l(e,t.options.accelerationRange))>o.acceleration_max&&(o.acceleration_max=e),e<o.acceleration_min&&(o.acceleration_min=e),o.acceleration_avg=(e+o.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+" "+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+" "+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+" "+i.label},order:60}})}})),X.Utils=M,X.Components=R,X.Chart=G,q=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]=""),q.call(null,t,e)},X.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(t){return new X(t)}}))})(Yt);var Dt={exports:{}};(function(t,e){!function(t,i){i(e)}(S,(function(t){var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,r=this._featureGroup,o=this._nonPointGroup,s=this.options.chunkedLoading,n=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,c=0,p=!0;if(this._map){var d=(new Date).getTime(),h=L.bind((function(){var u=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(s&&c%200==0){var f=(new Date).getTime()-u;if(n<f)break}if((i=t[c])instanceof L.LayerGroup)p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),l=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),g=m[0]===i?m[1]:m[0];r.removeLayer(g)}}else o.addLayer(i),e||this.fire("layeradd",{layer:i})}a&&a(c,l,(new Date).getTime()-d),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(h,this.options.chunkDelay)}),this);h()}else for(var u=this._needsClustering;c<l;c++)(i=t[c])instanceof L.LayerGroup?(p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),l=t.length):i.getLatLng?this.hasLayer(i)||u.push(i):o.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,o=this._featureGroup,s=this._nonPointGroup,n=!0;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(n&&(t=t.slice(),n=!1),this._extractNonGroupLayers(i,t),r=t.length):(this._arraySplice(this._needsClustering,i),s.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),l=r;for(e=0;e<l;e++)(i=a[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),l=a.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(n&&(t=t.slice(),n=!1),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),o.hasLayer(i)&&(o.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,o,s=this._needsClustering.slice(),n=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(i=!0,o=n.length-1;0<=o;o--)if(n[o].layer===s[r]){i=!1;break}i&&t.call(e,s[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());o<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,o=this._gridUnclustered,s=this._featureGroup,n=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,p=c._markers;for(this._arraySplice(p,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,n.project(c._cLatLng,c._zoom)),o[c._zoom].addObject(l,n.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(s.removeLayer(c),i||s.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,o=this.options.spiderfyOnEveryZoom;(e||r||o)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,o=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),o.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var o=t;e<=o;o--)this._gridClusters[o]=new L.DistanceGrid(r(o)),this._gridUnclustered[o]=new L.DistanceGrid(r(o));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,o=this._gridClusters,s=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);n<=e;e--){i=this._map.project(t.getLatLng(),e);var a=o[e].getNearObject(i);if(a)return a._addChild(t),void(t.__parent=a);if(a=s[e].getNearObject(i)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,e,a,t);o[e].addObject(c,this._map.project(c._cLatLng,e)),a.__parent=c;var p=t.__parent=c;for(r=e-1;r>l._zoom;r--)p=new this._markerCluster(this,r,p),o[r].addObject(p,this._map.project(a.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(a,e)}s[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),o=0;for(e=e||[];o<r.length;o++)(i=r[o])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),o=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,s,(function(s){var n,a=s._latlng,l=s._markers;for(r.contains(a)||(a=null),s._isSingleParent()&&t+1===e?(o.removeLayer(s),s._recursivelyAddChildrenToMap(null,e,r)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,e,r)),i=l.length-1;0<=i;i--)n=l[i],r.contains(n._latlng)||o.removeLayer(n)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),o.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,s,(function(t){o.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,o,e+1,i);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var n=t._markers[0];this._ignoreMove=!0,n.setLatLng(n.getLatLng()),this._ignoreMove=!1,n.clusterShow&&n.clusterShow()}else t._recursively(r,i,o,(function(t){t._recursivelyRemoveChildrenFromMap(r,o,e+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,o=r.getBoundsZoom(this._bounds),s=this._zoom+1,n=r.getZoom();0<i.length&&s<o;){s++;var a=[];for(e=0;e<i.length;e++)a=a.concat(i[e]._childClusters);i=a}s<o?this._group._map.setView(this._latlng,s):o<=n?this._group._map.setView(this._latlng,n+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,r,o=this._markers,s=this._childClusters,n=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<o.length;t++)i=o[t]._latlng,this._bounds.extend(i),n+=i.lat,a+=i.lng;for(t=0;t<s.length;t++)(e=s[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,n+=i.lat*r,a+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(n/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,o=t._markers;for(i=o.length-1;0<=i;i--)(r=o[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,o=t._childClusters;for(i=o.length-1;0<=i;i--)(r=o[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(o){o._recursivelyAnimateChildrenIn(t,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),i),o._isSingleParent()&&i-1===r?(o.clusterShow(),o._recursivelyRemoveChildrenFromMap(t,e,i)):o.clusterHide(),o._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var o=r._markers.length-1;0<=o;o--){var s=r._markers[o];i.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),r._group._featureGroup.addLayer(s))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var o=this._childClusters.length-1;0<=o;o--)this._childClusters[o]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var o,s;this._recursively(t,e-1,i-1,(function(t){for(s=t._markers.length-1;0<=s;s--)o=t._markers[s],r&&r.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)o=t._childClusters[s],r&&r.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}))},_recursively:function(t,e,i,r,o){var s,n,a=this._childClusters,l=this._zoom;if(e<=l&&(r&&r(this),o&&l===i&&o(this)),l<e||l<i)for(s=a.length-1;0<=s;s--)(n=a[s])._boundsNeedUpdate&&n._recalculateBounds(),t.intersects(n._bounds)&&n._recursively(t,e,i,r,o)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),o=this._grid,s=o[r]=o[r]||{},n=s[i]=s[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,n.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,o=this._getCoord(e.x),s=this._getCoord(e.y),n=this._grid,a=n[s]=n[s]||{},l=a[o]=a[o]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=l.length;i<r;i++)if(l[i]===t)return l.splice(i,1),1===r&&delete a[o],!0},eachObject:function(t,e){var i,r,o,s,n,a,l=this._grid;for(i in l)for(r in n=l[i])for(o=0,s=(a=n[r]).length;o<s;o++)t.call(e,a[o])&&(o--,s--)},getNearObject:function(t){var e,i,r,o,s,n,a,l,c=this._getCoord(t.x),p=this._getCoord(t.y),d=this._objectPoint,h=this._sqCellSize,u=null;for(e=p-1;e<=p+1;e++)if(o=this._grid[e])for(i=c-1;i<=c+1;i++)if(s=o[i])for(r=0,n=s.length;r<n;r++)a=s[r],((l=this._sqDist(d[L.Util.stamp(a)],t))<h||l<=h&&null===u)&&(h=l,u=a);return u},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,o,s=0,n=null,a=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(o=this.getDistant(r,t))&&(a.push(r),s<o&&(s=o,n=r));return{maxPoint:n,newPoints:a}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,r=!1,o=!1,s=!1,n=null,a=null,l=null,c=null,p=null,d=null;for(e=t.length-1;0<=e;e--){var h=t[e];(!1===i||h.lat>i)&&(i=(n=h).lat),(!1===r||h.lat<r)&&(r=(a=h).lat),(!1===o||h.lng>o)&&(o=(l=h).lng),(!1===s||h.lng<s)&&(s=(c=h).lng)}return p=r!==i?(d=a,n):(d=c,l),[].concat(this.buildConvexHull([d,p],t),this.buildConvexHull([p,d],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),r=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,i):(i.y+=10,this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,r,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,n=[];for(o=Math.max(o,35),n.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*s,n[i]=new L.Point(e.x+o*Math.cos(r),e.y+o*Math.sin(r))._round();return n},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,o=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,n=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(i=l.length=t;0<=i;i--)i<t&&(l[i]=new L.Point(e.x+o*Math.cos(a),e.y+o*Math.sin(a))._round()),o+=n/(a+=s/o+5e-4*i);return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,o=i._featureGroup,s=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=s.length-1;0<=e;e--)t=s[e],o.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,o,s,n=this._group,a=n._map,l=n._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(n._ignoreMove=!0,i=0;i<t.length;i++)s=a.layerPointToLatLng(e[i]),r=t[i],o=new L.Polyline([this._latlng,s],c),a.addLayer(o),r._spiderLeg=o,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),n._ignoreMove=!1,n.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,o,s,n,a,l=this,c=this._group,p=c._map,d=c._featureGroup,h=this._latlng,u=p.latLngToLayerPoint(h),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,i=0;i<t.length;i++)r=t[i],a=p.layerPointToLatLng(e[i]),o=new L.Polyline([h,a],m),p.addLayer(o),r._spiderLeg=o,f&&(n=(s=o._path).getTotalLength()+.1,s.style.strokeDasharray=n,s.style.strokeDashoffset=n),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),d.addLayer(r),r._setPos&&r._setPos(u);for(c._forceLayout(),c._animationStart(),i=t.length-1;0<=i;i--)a=p.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),f&&((s=(o=r._spiderLeg)._path).style.strokeDashoffset=0,o.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,o,s,n,a=this,l=this._group,c=l._map,p=l._featureGroup,d=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),h=this.getAllChildMarkers(null,!0),u=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=h.length-1;0<=i;i--)(e=h[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,n=!0,e._setPos&&(e._setPos(d),n=!1),e.clusterHide&&(e.clusterHide(),n=!1),n&&p.removeLayer(e),u&&(s=(o=(r=e._spiderLeg)._path).getTotalLength()+.1,o.style.strokeDashoffset=s,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(i=h.length-1;0<=i;i--)(e=h[i])._spiderLeg&&t++;for(i=h.length-1;0<=i;i--)(e=h[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&p.removeLayer(e),c.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:h})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))})(Dt,Dt.exports);!function(t){if("function"==typeof define&&define.amd)define(["leaflet"],t);else if("object"==typeof exports)module.exports=t(require("leaflet"));else if("undefined"!=typeof window){if(void 0===window.L)throw"Leaflet must be loaded first.";window.L.Control.SimpleLocate=t(window.L)}}((function(t){let e=t.Control.extend({options:{className:"",title:"Locate Geolocation and Orientation",ariaLabel:"",minAngleChange:3,clickTimeoutDelay:500,setViewAfterClick:!0,zoomLevel:void 0,drawCircle:!0,afterClick:null,afterMarkerAdd:null,afterDeviceMove:null,htmlInit:`\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 8,1.5 A 6.5,6.5 0 0 0 1.5,8 6.5,6.5 0 0 0 8,14.5 6.5,6.5 0 0 0 14.5,8 6.5,6.5 0 0 0 8,1.5 Z m 0,2 A 4.5,4.5 0 0 1 12.5,8 4.5,4.5 0 0 1 8,12.5 4.5,4.5 0 0 1 3.5,8 4.5,4.5 0 0 1 8,3.5 Z" />\n\t<rect width="1.5" height="4" x="7.25" y="0.5" rx="0.5" ry="0.5" />\n\t<rect width="1.5" height="4" x="7.25" y="11.5" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="0.5" y="7.25" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="11.5" y="7.25" ry="0.5" rx="0.5" />\n\t<circle cx="8" cy="8" r="1" />\n</svg>`,htmlSpinner:`\n<svg width="16" height="16" viewBox="-8 -8 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<g>\n\t\t<circle opacity=".7" cx="0" cy="-6" r=".9" transform="rotate(90)" />\n\t\t<circle opacity=".9" cx="0" cy="-6" r="1.3" transform="rotate(45)" />\n\t\t<circle opacity="1" cx="0" cy="-6" r="1.5" />\n\t\t<circle opacity=".95" cx="0" cy="-6" r="1.42" transform="rotate(-45)" />\n\t\t<circle opacity=".85" cx="0" cy="-6" r="1.26" transform="rotate(-90)" />\n\t\t<circle opacity=".7" cx="0" cy="-6" r="1.02" transform="rotate(-135)" />\n\t\t<circle opacity=".5" cx="0" cy="-6" r=".7" transform="rotate(-180)" />\n\t\t<circle opacity=".25" cx="0" cy="-6" r=".3" transform="rotate(-225)" />\n\t\t<animateTransform attributeName="transform" type="rotate" values="0;0;45;45;90;90;135;135;180;180;225;225;270;270;315;315;360" keyTimes="0;.125;.125;.25;.25;.375;.375;.5;.5;.675;.675;.75;.75;.875;.875;1;1" dur="1.3s" repeatCount="indefinite" />\n\t</g>\n</svg>`,htmlGeolocation:`\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 13.329384,2.6706085 C 13.133096,2.4743297 12.77601,2.4382611 12.303066,2.6103882 L 6.6307133,4.6742285 1.1816923,6.6577732 C 1.0668479,6.6995703 0.95157337,6.752486 0.83540381,6.8133451 0.27343954,7.1201064 0.41842508,7.4470449 1.2644998,7.5962244 l 6.0688263,1.0701854 1.0714872,6.0698222 c 0.1491847,0.84604 0.4751513,0.990031 0.7816575,0.427825 0.060857,-0.116165 0.1137803,-0.231436 0.1555779,-0.346273 L 11.324426,9.3702482 13.389608,3.6968841 C 13.56174,3.2239596 13.52567,2.8668883 13.329392,2.6706094 Z" />\n</svg>`,htmlOrientation:`\n<svg class="leaflet-simple-locate-orientation" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path fill="#c00000" d="M 8,0 C 7.7058986,0 7.4109021,0.30139625 7.1855469,0.90234375 L 5.3378906,5.8300781 C 5.2559225,6.0486598 5.1908259,6.292468 5.1386719,6.5507812 6.0506884,6.193573 7.0205489,6.0068832 8,6 8.9768002,6.0005071 9.945249,6.1798985 10.857422,6.5292969 10.805917,6.2790667 10.741782,6.0425374 10.662109,5.8300781 L 8.8144531,0.90234375 C 8.5890978,0.30139615 8.2941007,0 8,0 Z" />\n\t<path d="M 8,5.9999998 C 7.0205501,6.006884 6.0506874,6.1935733 5.138672,6.5507817 4.9040515,7.7126196 4.9691485,9.1866095 5.3378906,10.169922 l 1.8476563,4.927734 c 0.4507105,1.201895 1.1781958,1.201894 1.628906,0 L 10.662109,10.169922 C 11.033147,9.1804875 11.097283,7.6944254 10.857422,6.5292967 9.9452497,6.1798989 8.9767993,6.0005076 8,5.9999998 Z m -1e-7,0.7499999 A 1.25,1.258 90 0 1 9.2578124,7.9999996 1.25,1.258 90 0 1 8,9.2500001 a 1.25,1.258 90 0 1 -1.2578124,-1.25 1.25,1.258 90 0 1 1.2578123,-1.2500004 z" />\n</svg>`,iconGeolocation:t.divIcon({html:`\n<svg width="24" height="24" viewBox="-12 -12 24 24" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;8;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>`,className:"leaflet-simple-locate-icon",iconSize:[24,24],iconAnchor:[12,12]}),iconOrientation:t.divIcon({html:`\n<svg width="96" height="96" viewBox="-48 -48 96 96" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<linearGradient id="gradient" x2="0" y2="-48" gradientUnits="userSpaceOnUse">\n\t\t\t<stop style="stop-opacity:1" offset="0" />\n\t\t\t<stop style="stop-opacity:0" offset="1" />\n\t\t</linearGradient>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<path class="orientation" opacity="1" style="fill:url(#gradient)" d="M -24,-48 H 24 L 10,0 H -10 z">\n\t\t<animate attributeName="opacity" values=".75;.33;.75" dur="2s" repeatCount="indefinite" />\n\t</path>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;9;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>`,className:"leaflet-simple-locate-icon",iconSize:[96,96],iconAnchor:[48,48]})},initialize:function(e){t.Util.setOptions(this,e),this._map=void 0,this._button=void 0,this._marker=void 0,this._circle=void 0,this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._clickTimeout=void 0,this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0,this._angle=void 0},onAdd:function(e){return this._map=e,this._button=t.DomUtil.create("button","leaflet-simple-locate"),this.options.className&&t.DomUtil.addClass(this._button,this.options.className),t.DomEvent.disableClickPropagation(this._button),this._button.innerHTML=this.options.htmlInit,this._button.title=this.options.title,this._button.setAttribute("aria-label",this.options.ariaLabel||this.options.title),t.DomEvent.on(this._button,"click",t.DomEvent.stopPropagation).on(this._button,"click",t.DomEvent.preventDefault).on(this._button,"click",this._onClick,this),this._button},getLatLng:function(){return this._latitude&&this._longitude?{lat:this._latitude,lng:this._longitude}:null},getAccuracy:function(){return this._accuracy||null},getAngle:function(){return this._angle||null},setZoomLevel:function(t){this.options.zoomLevel=t},_onClick:async function(){this._clickTimeout?(clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._clicked&&(this._geolocation&&this._unwatchGeolocation(),this._orientation&&this._unwatchOrientation(),this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._updateButton(),this._map.off("layeradd",this._onLayerAdd,this))):this._clickTimeout=setTimeout((()=>{clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._map&&(this._clicked&&this.options.setViewAfterClick?this._setView():(this._clicked=!0,this._updateButton(),this._map.on("layeradd",this._onLayerAdd,this),this._checkGeolocation().then((t=>{this._geolocation=!0,this._onLocationFound(t.coords),this.options.setViewAfterClick&&this._setView(),this._watchGeolocation(),this._checkClickResult()})).catch((()=>{this._geolocation=!1,this._checkClickResult()})),this._checkOrientation().then((()=>{this._orientation=!0,this._watchOrientation(),this._checkClickResult()})).catch((()=>{this._orientation=!1,this._checkClickResult()}))))}),this.options.clickTimeoutDelay)},_checkClickResult:function(){this._updateButton(),this.options.afterClick&&void 0!==this._geolocation&&void 0!==this._orientation&&this.options.afterClick({geolocation:this._geolocation,orientation:this._orientation}),!1===this._geolocation&&!1===this._orientation&&(this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0)},_checkGeolocation:function(){return"object"==typeof navigator&&"geolocation"in navigator&&"function"==typeof navigator.geolocation.getCurrentPosition&&"function"==typeof navigator.geolocation.watchPosition?new Promise(((t,e)=>{navigator.geolocation.getCurrentPosition(t,e,{maximumAge:0,enableHighAccuracy:!0})})):Promise.reject()},_checkOrientation:function(){return("ondeviceorientationabsolute"in window||"ondeviceorientation"in window)&&DeviceOrientationEvent?"function"!=typeof DeviceOrientationEvent.requestPermission?Promise.resolve():DeviceOrientationEvent.requestPermission().then((t=>"granted"===t||Promise.reject())):Promise.reject()},_watchGeolocation:function(){this._map.locate({watch:!0,enableHighAccuracy:!0}),this._map.on("locationfound",this._onLocationFound,this),this._map.on("zoomstart",this._onZoomStart,this),this._map.on("zoomend",this._onZoomEnd,this)},_unwatchGeolocation:function(){this._map.stopLocate(),this._map.off("locationfound",this._onLocationFound,this),this._map.off("zoomstart",this._onZoomStart,this),this._map.off("zoomend",this._onZoomEnd,this),this._circle&&(this._map.removeLayer(this._circle),this._circle=void 0),this._marker&&(this._map.removeLayer(this._marker),this._marker=void 0),this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0},_watchOrientation:function(){t.DomEvent.on(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this)},_unwatchOrientation:function(){t.DomEvent.off(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this),document.documentElement.style.setProperty("--leaflet-simple-locate-orientation","0deg"),this._angle=void 0},_onLocationFound:function(t){this._latitude&&t.latitude&&Math.round(1e6*this._latitude)===Math.round(1e6*t.latitude)&&this._longitude&&t.longitude&&Math.round(1e6*this._longitude)===Math.round(1e6*t.longitude)&&this._accuracy&&t.accuracy&&Math.round(100*this._accuracy)===Math.round(100*t.accuracy)||(this._latitude=t.latitude,this._longitude=t.longitude,this._accuracy=t.accuracy,this._updateMarker())},_onOrientation:function(t){let e;e=t.webkitCompassHeading||360-t.alpha,this._angle&&Math.abs(e-this._angle)<this.options.minAngleChange||(this._angle=e,"orientation"in screen&&(this._angle+=screen.orientation.angle),this._angle=(this._angle+360)%360,document.documentElement.style.setProperty("--leaflet-simple-locate-orientation",-this._angle+"deg"),this._updateMarker())},_onZoomStart:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","none")},_onZoomEnd:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","inline")},_onLayerAdd:function(t){this.options.afterMarkerAdd&&t.layer==this._marker&&this.options.afterMarkerAdd()},_setView:function(){this._map&&this._latitude&&this._longitude&&(this.options.zoomLevel?this._map.setView([this._latitude,this._longitude],this.options.zoomLevel):this._map.setView([this._latitude,this._longitude]))},_updateButton:function(){this._clicked?void 0===this._geolocation||void 0===this._orientation?"spinner"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlSpinner,this._button.html_name="spinner"):this._orientation&&"orientation"!==this._button.html_name?(this._button.innerHTML=this.options.htmlOrientation,this._button.html_name="orientation"):this._geolocation&&"geolocation"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlGeolocation,this._button.html_name="geolocation"):"init"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlInit,this._button.html_name="init")},_updateMarker:function(){if(this.options.afterDeviceMove&&this.options.afterDeviceMove({lat:this._latitude,lng:this._longitude,accuracy:this._accuracy,angle:this._angle}),this._latitude&&this._longitude&&(!this.options.drawCircle||this._accuracy)){let e;if(this._geolocation&&this._orientation&&this._angle)e="iconOrientation";else{if(!this._geolocation)return;e="iconGeolocation"}this._circle?(this._circle.setLatLng([this._latitude,this._longitude]),this._circle.setRadius(this._accuracy)):this.options.drawCircle&&(this._circle=t.circle([this._latitude,this._longitude],{className:"leaflet-simple-locate-circle",radius:this._accuracy}).addTo(this._map)),this._marker&&this._marker.icon_name===e?this._marker.setLatLng([this._latitude,this._longitude]):(this._marker&&this._map.removeLayer(this._marker),this._marker=t.marker([this._latitude,this._longitude],{icon:this.options[e]}),this._marker.icon_name=e,this._marker.addTo(this._map))}}});return t.control.simpleLocate=function(t){return new e(t)},e}));var Ht=6371008.8;var Rt={centimeters:Ht*100,centimetres:Ht*100,degrees:Ht/111325,feet:Ht*3.28084,inches:Ht*39.37,kilometers:Ht/1e3,kilometres:Ht/1e3,meters:Ht,metres:Ht,miles:Ht/1609.344,millimeters:Ht*1e3,millimetres:Ht*1e3,nauticalmiles:Ht/1852,radians:1,yards:Ht*1.0936};function Gt(t,e,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=e||{};r.geometry=t;return r}function Zt(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("coordinates is required")}if(!Array.isArray(t)){throw new Error("coordinates must be an Array")}if(t.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!Ut(t[0])||!Ut(t[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:t};return Gt(r,e,i)}function qt(t,e){if(e===void 0){e={}}var i={type:"FeatureCollection"};if(e.id){i.id=e.id}if(e.bbox){i.bbox=e.bbox}i.features=t;return i}function Vt(t,e){if(e===void 0){e="kilometers"}var i=Rt[e];if(!i){throw new Error(e+" units is invalid")}return t*i}function Qt(t){var e=t%360;return e*Math.PI/180}function Ut(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function Xt(t,e,i){if(t===null)return;var r,o,s,n,a,l,c,p=0,d=0,h,u=t.type,f=u==="FeatureCollection",m=u==="Feature",g=f?t.features.length:1;for(var b=0;b<g;b++){c=f?t.features[b].geometry:m?t.geometry:t;h=c?c.type==="GeometryCollection":false;a=h?c.geometries.length:1;for(var v=0;v<a;v++){var w=0;var k=0;n=h?c.geometries[v]:c;if(n===null)continue;l=n.coordinates;var x=n.type;p=i&&(x==="Polygon"||x==="MultiPolygon")?1:0;switch(x){case null:break;case"Point":if(e(l,d,b,w,k)===false)return false;d++;w++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(e(l[r],d,b,w,k)===false)return false;d++;if(x==="MultiPoint")w++}if(x==="LineString")w++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(o=0;o<l[r].length-p;o++){if(e(l[r][o],d,b,w,k)===false)return false;d++}if(x==="MultiLineString")w++;if(x==="Polygon")k++}if(x==="Polygon")w++;break;case"MultiPolygon":for(r=0;r<l.length;r++){k=0;for(o=0;o<l[r].length;o++){for(s=0;s<l[r][o].length-p;s++){if(e(l[r][o][s],d,b,w,k)===false)return false;d++}k++}w++}break;case"GeometryCollection":for(r=0;r<n.geometries.length;r++)if(Xt(n.geometries[r],e,i)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function Wt(t,e){if(t.type==="Feature"){e(t,0)}else if(t.type==="FeatureCollection"){for(var i=0;i<t.features.length;i++){if(e(t.features[i],i)===false)break}}}function Jt(t){var e=[];if(t.type==="FeatureCollection"){Wt(t,(function(t){Xt(t,(function(i){e.push(Zt(i,t.properties))}))}))}else{Xt(t,(function(i){e.push(Zt(i,t.properties))}))}return qt(e)}function Kt(t){var e=[Infinity,Infinity,-Infinity,-Infinity];Xt(t,(function(t){if(e[0]>t[0]){e[0]=t[0]}if(e[1]>t[1]){e[1]=t[1]}if(e[2]<t[0]){e[2]=t[0]}if(e[3]<t[1]){e[3]=t[1]}}));return e}Kt["default"]=Kt;function te(t,e){if(e===void 0){e={}}var i=Kt(t);var r=(i[0]+i[2])/2;var o=(i[1]+i[3])/2;return Zt([r,o],e.properties,e)}function ee(t){if(!t){throw new Error("geojson is required")}switch(t.type){case"Feature":return ie(t);case"FeatureCollection":return oe(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return se(t);default:throw new Error("unknown GeoJSON type")}}function ie(t){var e={type:"Feature"};Object.keys(t).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:e[i]=t[i]}}));e.properties=re(t.properties);e.geometry=se(t.geometry);return e}function re(t){var e={};if(!t){return e}Object.keys(t).forEach((function(i){var r=t[i];if(typeof r==="object"){if(r===null){e[i]=null}else if(Array.isArray(r)){e[i]=r.map((function(t){return t}))}else{e[i]=re(r)}}else{e[i]=r}}));return e}function oe(t){var e={type:"FeatureCollection"};Object.keys(t).forEach((function(i){switch(i){case"type":case"features":return;default:e[i]=t[i]}}));e.features=t.features.map((function(t){return ie(t)}));return e}function se(t){var e={type:t.type};if(t.bbox){e.bbox=t.bbox}if(t.type==="GeometryCollection"){e.geometries=t.geometries.map((function(t){return se(t)}));return e}e.coordinates=ne(t.coordinates);return e}function ne(t){var e=t;if(typeof e[0]!=="object"){return e.slice()}return e.map((function(t){return ne(t)}))}function ae(t){if(!t){throw new Error("coord is required")}if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point"){return t.geometry.coordinates}if(t.type==="Point"){return t.coordinates}}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1])){return t}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function le(t){if(t.type==="Feature"){return t.geometry}return t}function ce(t,e,i){if(i===void 0){i={}}var r=ae(t);var o=ae(e);var s=Qt(o[1]-r[1]);var n=Qt(o[0]-r[0]);var a=Qt(r[1]);var l=Qt(o[1]);var c=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(n/2),2)*Math.cos(a)*Math.cos(l);return Vt(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),i.units)}function pe(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i;var r=Infinity;var o=0;Wt(e,(function(e,i){var s=ce(t,e);if(s<r){o=i;r=s}}));i=ee(e.features[o]);i.properties.featureIndex=o;i.properties.distanceToPoint=r;return i}function de(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("point is required")}if(!e){throw new Error("polygon is required")}var r=ae(t);var o=le(e);var s=o.type;var n=e.bbox;var a=o.coordinates;if(n&&ue(r,n)===false){return false}if(s==="Polygon"){a=[a]}var l=false;for(var c=0;c<a.length&&!l;c++){if(he(r,a[c][0],i.ignoreBoundary)){var p=false;var d=1;while(d<a[c].length&&!p){if(he(r,a[c][d],!i.ignoreBoundary)){p=true}d++}if(!p){l=true}}}return l}function he(t,e,i){var r=false;if(e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){e=e.slice(0,e.length-1)}for(var o=0,s=e.length-1;o<e.length;s=o++){var n=e[o][0];var a=e[o][1];var l=e[s][0];var c=e[s][1];var p=t[1]*(n-l)+a*(l-t[0])+c*(t[0]-n)===0&&(n-t[0])*(l-t[0])<=0&&(a-t[1])*(c-t[1])<=0;if(p){return!i}var d=a>t[1]!==c>t[1]&&t[0]<(l-n)*(t[1]-a)/(c-a)+n;if(d){r=!r}}return r}function ue(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function fe(t){var e=me(t);var i=te(e);var r=false;var o=0;while(!r&&o<e.features.length){var s=e.features[o].geometry;var n,a,l,c,p,d,h;var u=false;if(s.type==="Point"){if(i.geometry.coordinates[0]===s.coordinates[0]&&i.geometry.coordinates[1]===s.coordinates[1]){r=true}}else if(s.type==="MultiPoint"){var f=false;h=0;while(!f&&h<s.coordinates.length){if(i.geometry.coordinates[0]===s.coordinates[h][0]&&i.geometry.coordinates[1]===s.coordinates[h][1]){r=true;f=true}h++}}else if(s.type==="LineString"){h=0;while(!u&&h<s.coordinates.length-1){n=i.geometry.coordinates[0];a=i.geometry.coordinates[1];l=s.coordinates[h][0];c=s.coordinates[h][1];p=s.coordinates[h+1][0];d=s.coordinates[h+1][1];if(ge(n,a,l,c,p,d)){u=true;r=true}h++}}else if(s.type==="MultiLineString"){var m=0;while(m<s.coordinates.length){u=false;h=0;var g=s.coordinates[m];while(!u&&h<g.length-1){n=i.geometry.coordinates[0];a=i.geometry.coordinates[1];l=g[h][0];c=g[h][1];p=g[h+1][0];d=g[h+1][1];if(ge(n,a,l,c,p,d)){u=true;r=true}h++}m++}}else if(s.type==="Polygon"||s.type==="MultiPolygon"){if(de(i,s)){r=true}}o++}if(r){return i}else{var b=qt([]);for(o=0;o<e.features.length;o++){b.features=b.features.concat(Jt(e.features[o]).features)}return Zt(pe(i,b).geometry.coordinates)}}function me(t){if(t.type!=="FeatureCollection"){if(t.type!=="Feature"){return qt([Gt(t)])}return qt([t])}return t}function ge(t,e,i,r,o,s){var n=Math.sqrt((o-i)*(o-i)+(s-r)*(s-r));var a=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var l=Math.sqrt((o-t)*(o-t)+(s-e)*(s-e));return n===a+l}const be='@charset "UTF-8";.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 img.leaflet-tile{mix-blend-mode:plus-lighter}.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}}@-moz-document url-prefix(){.leaflet-simple-locate .fa,.leaflet-simple-locate .fab,.leaflet-simple-locate .far,.leaflet-simple-locate .fas{margin-top:0.05rem;margin-bottom:-0.05rem}}.leaflet-simple-locate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:2.5rem;height:2.5rem;padding:0;margin:0;font-size:1.375rem;color:rgba(var(--primary-rgb), 1);background-color:rgba(255, 255, 255, 1) !important;border:0.125rem solid rgba(var(--primary-rgb), 1) !important;border-radius:2.5rem;-webkit-box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;text-size-adjust:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;-khtml-text-size-adjust:none}.leaflet-simple-locate:active{color:white;background-color:rgba(var(--primary-rgb), 1) !important;border-color:white !important}.leaflet-simple-locate:active svg{fill:white}.leaflet-simple-locate:focus{-webkit-box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25)}.leaflet-simple-locate:focus-visible{border:0.125rem solid rgba(0, 0, 0, 1)}.leaflet-simple-locate svg{fill:rgba(var(--primary-rgb), 1);width:1.375rem;height:1.375rem}.leaflet-simple-locate.button-locate{position:absolute;margin:0 !important;left:0.5rem;top:calc(var(--vh, 1vh) * 50);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.leaflet-simple-locate-icon{fill:rgba(var(--primary-rgb), 1);pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-icon stop{stop-color:rgba(var(--primary-rgb), 1)}.leaflet-simple-locate-icon .orientation{-webkit-transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)));transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)))}.leaflet-simple-locate-circle{display:var(--leaflet-simple-locate-circle-display);fill:rgba(var(--primary-rgb), 1);fill-opacity:0.1;stroke:rgba(var(--primary-rgb), 1);stroke-width:1;stroke-opacity:0.3;pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-orientation{-webkit-transform:rotate(var(--leaflet-simple-locate-orientation, 0deg));transform:rotate(var(--leaflet-simple-locate-orientation, 0deg))}#leaflet-simple-locate-icon-spot{pointer-events:auto;cursor:pointer}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:100%}.trek-map-and-elevation{height:calc(100% - var(--elevation-height))}.common-map{height:100%}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon,.outdoor-site-marker-cluster-group-icon{background-color:var(--color-clusters);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px;height:100%;width:100%}.trek-marker,.step-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker,.departure-marker,.arrival-marker{width:100%;height:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .step-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:100%;height:100%;-webkit-transform:rotate(-44deg);transform:rotate(-44deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.trek-marker .outdoor-site-marker-container img,.trek-marker .outdoor-site-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.step-marker .outdoor-site-marker-container img,.step-marker .outdoor-site-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-content-marker .outdoor-site-marker-container img,.touristic-content-marker .outdoor-site-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.touristic-event-marker .outdoor-site-marker-container img,.touristic-event-marker .outdoor-site-marker-container .step-number,.outdoor-site-marker .trek-marker-container img,.outdoor-site-marker .trek-marker-container .step-number,.outdoor-site-marker .step-marker-container img,.outdoor-site-marker .step-marker-container .step-number,.outdoor-site-marker .touristic-content-marker-container img,.outdoor-site-marker .touristic-content-marker-container .step-number,.outdoor-site-marker .touristic-event-marker-container img,.outdoor-site-marker .touristic-event-marker-container .step-number,.outdoor-site-marker .outdoor-site-marker-container img,.outdoor-site-marker .outdoor-site-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container img,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container img,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container img,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container img,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container img,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container img,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container img,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container img,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container img,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.departure-marker .outdoor-site-marker-container img,.departure-marker .outdoor-site-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number,.arrival-marker .outdoor-site-marker-container img,.arrival-marker .outdoor-site-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(44deg);transform:rotate(44deg);position:absolute;z-index:20;width:var(--main-marker-icon-width) !important}.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{-webkit-transform:rotate(-42deg);transform:rotate(-42deg)}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{background-color:var(--color-markers)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.outdoor-site-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-outdoor-site-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-markers)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker{height:100%;width:100%}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container .trek-marker,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container .trek-marker,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container .trek-marker,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container .trek-marker,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container .trek-marker,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number{width:100% !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);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-container);border-bottom-color:var(--color-on-primary-container);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)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup,.outdoor-site-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img,.outdoor-site-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.trek-departure-popup .outdoor-site-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-content-coordinates-popup .outdoor-site-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .outdoor-site-name,.outdoor-site-coordinates-popup .trek-name,.outdoor-site-coordinates-popup .touristic-content-name,.outdoor-site-coordinates-popup .touristic-event-name,.outdoor-site-coordinates-popup .outdoor-site-name{color:var(--color-primary-app);font-weight:700;font-size:16px;line-height:24px;padding:12px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.trek-departure-popup .outdoor-site-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-content-coordinates-popup .outdoor-site-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .outdoor-site-button,.outdoor-site-coordinates-popup .trek-button,.outdoor-site-coordinates-popup .touristic-content-button,.outdoor-site-coordinates-popup .touristic-event-button,.outdoor-site-coordinates-popup .outdoor-site-button{margin:0px 8px 16px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:1px solid var(--color-on-primary-container);background-color:var(--color-background);color:var(--color-on-primary-container);padding:12px 24px;border-radius:var(--border-radius, 8px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.trek-departure-popup .trek-button:hover,.trek-departure-popup .touristic-content-button:hover,.trek-departure-popup .touristic-event-button:hover,.trek-departure-popup .outdoor-site-button:hover,.touristic-content-coordinates-popup .trek-button:hover,.touristic-content-coordinates-popup .touristic-content-button:hover,.touristic-content-coordinates-popup .touristic-event-button:hover,.touristic-content-coordinates-popup .outdoor-site-button:hover,.touristic-event-coordinates-popup .trek-button:hover,.touristic-event-coordinates-popup .touristic-content-button:hover,.touristic-event-coordinates-popup .touristic-event-button:hover,.touristic-event-coordinates-popup .outdoor-site-button:hover,.outdoor-site-coordinates-popup .trek-button:hover,.outdoor-site-coordinates-popup .touristic-content-button:hover,.outdoor-site-coordinates-popup .touristic-event-button:hover,.outdoor-site-coordinates-popup .outdoor-site-button:hover{background-color:var(--color-primary-container)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.poi-tooltip .signage-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.information-desks-tooltip .signage-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.sensitive-area-tooltip .signage-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-content-tooltip .signage-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.touristic-event-tooltip .signage-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name,.parking-tooltip .signage-name,.signage-tootltip .poi-name,.signage-tootltip .information-desks-name,.signage-tootltip .sensitive-area-name,.signage-tootltip .touristic-content-name,.signage-tootltip .touristic-event-name,.signage-tootltip .parking-name,.signage-tootltip .signage-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.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:var(--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-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.signage-marker{background-color:var(--color-markers);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img,.outdoor-site-marker img,.signage-marker img{width:var(--common-marker-icon-width) !important;height:auto}.parking-marker{width:100%;height:100%}.parking-marker img{width:100% !important;height:auto}.point-reference-icon{color:var(--reference-point-color);background-color:var(--reference-point-background-color);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:100%;height:100%;font-size:24px}.leaflet-popup{bottom:40px !important;left:-110px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:221px;margin:0}.leaflet-simple-locate svg{--primary-rgb:00, 00, 00}.leaflet-simple-locate-icon{--primary-rgb:25, 135, 84}.leaflet-simple-locate-orientation{--primary-rgb:25, 135, 84 !important}.leaflet-simple-locate.button-locate{--primary-rgb:25, 135, 84;margin:10px 0px 0px 10px !important;position:relative;-webkit-transform:none;transform:none;top:auto;left:auto;width:34px;height:34px;border-radius:4px;border:2px solid rgba(0, 0, 0, 0.2) !important;-webkit-box-shadow:none;box-shadow:none}.leaflet-interactive{cursor:-webkit-grab;cursor:grab}.cursor-pointer{cursor:pointer}.grw-elevation-visibility-button-container{z-index:4000;position:absolute;left:10px;bottom:36px}';const ve=be;const we=class{constructor(e){t(this,e);this.trekCardPress=r(this,"trekCardPress",7);this.touristicContentCardPress=r(this,"touristicContentCardPress",7);this.touristicEventCardPress=r(this,"touristicEventCardPress",7);this.outdoorSiteCardPress=r(this,"outdoorSiteCardPress",7);this.outdoorCourseCardPress=r(this,"outdoorCourseCardPress",7);this.maxZoom=19;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.tilesMaxZoomOffline=16;this.grwApp=false;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.elevationHeight=280;this.mobileElevationHeight=280;this.largeViewSize=1024;this.elevationDefaultState="visible";this.isLargeView=false;this.fabBackgroundColor="#eaddff";this.fabColor="#21005d"}onCenterOnMap(t){this.map.setView(new E.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})}stepsIsInViewport(t){if(this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}}descriptionIsInViewport(t){if(this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}}parkingIsInViewport(t){if(this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}}onInformationPlacesIsInViewport(t){if(this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(t){if(this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(t){if(this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}}touristicContentsIsInViewport(t){if(this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}}touristicEventsIsInViewport(t){if(this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentTouristicEventsLayer)}}sitesIsInViewport(t){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorSitesLayer)}}coursesIsInViewport(t){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorCoursesLayer)}}onCardTrekMouseOver(t){if(!c.parentTrek&&(!c.selectedTrekId||c.selectedTrekId!==t.detail)){c.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(c.parentTrek){this.stepPopupIsOpen=false;c.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}}onCardTrekMouseLeave(){if(!this.trekPopupIsOpen&&c.selectedTrekId){this.trekPopupIsOpen=false;c.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}}onTouristicContentMouseOver(t){this.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)}onTouristicContentMouseLeave(){c.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}onTouristicEventMouseOver(t){this.touristicEventPopupIsOpen=false;c.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)}onTouristicEventMouseLeave(){c.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}onTrekDownloadedSuccessConfirm(){this.map.setMaxZoom(this.tilesMaxZoomOffline)}onTrekDeleteSuccessConfirm(){this.map.setMaxZoom(this.maxZoom)}onOutdoorSiteMouseOver(t){this.outdoorSitePopupIsOpen=false;c.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(t.detail)}onOutdoorSiteMouseLeave(){c.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}componentDidLoad(){this.map=E.map(this.mapRef,{zoom:4,center:[47,2],zoomControl:false});const t=this.nameLayer?this.nameLayer.split(","):[];const e=this.urlLayer.split(",http").map(((t,e)=>e===0?t:"http"+t));const i=this.attributionLayer?this.attributionLayer.split(","):[];e.forEach(((e,r)=>{this.tileLayer.push({key:`${t[r]}`,value:N.exports.tileLayerOffline(e,{maxZoom:this.maxZoom,attribution:`${i[r]&&i[r]!==""?i[r].concat(" | "):""}Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>`,crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(e.length>1){this.layersControl=E.control.layers(this.tileLayer.reduce(((t,e)=>Object.assign(t,{[e.key]:e.value})),{}),{},{collapsed:true}).addTo(this.map)}E.control.zoom({zoomInTitle:l[c.language].zoomIn,zoomOutTitle:l[c.language].zoomOut}).addTo(this.map);E.control.scale({metric:true,imperial:false}).addTo(this.map);E.Control.Contract=E.Control.extend({onAdd:()=>{const t=E.DomUtil.create("div");t.className="leaflet-bar leaflet-control";const e=t.appendChild(E.DomUtil.create("a"));e.href="#";e.style.backgroundImage=`var(--contract-image-src)`;t.onclick=t=>{this.bounds&&this.map.fitBounds(this.bounds);t.preventDefault()};e.title=l[c.language].contract;return t}});E.control.contract=t=>new E.Control.Contract(t);E.control.contract({position:"topleft"}).addTo(this.map);new E.Control.SimpleLocate({position:"topleft",className:"button-locate",title:l[c.language].locate}).addTo(this.map);if(c.currentTrek){this.addTrek()}else if(c.currentTreks){this.addTreks()}else if(c.currentTouristicContent){this.addTouristicContent()}else if(c.currentTouristicEvent){this.addTouristicEvent()}else if(c.currentOutdoorSite){this.addOutdoorSite()}else if(c.currentOutdoorCourse){this.addOutdoorCourse()}else if(c.touristicContents){this.addTouristicContents()}else if(c.touristicEvents){this.addTouristicEvents()}else if(c.outdoorSites){this.addOutdoorSites()}p("currentTreks",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(c.currentTrek){this.removeTreks();this.addTrek()}else if(c.currentTreks){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeOutdoorSites();this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks(true)}}));p("currentOutdoorSites",(()=>{if(c.currentOutdoorSites){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeOutdoorSites();this.addOutdoorSites(true)}}));p("currentTrek",(()=>{if(c.currentTrek){this.removeTreks();this.addTrek()}else if(c.currentTreks){this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks()}}));p("currentOutdoorSite",(()=>{if(c.currentOutdoorSite){this.removeOutdoorCourse();this.removeOutdoorSites();this.addOutdoorSite()}else if(c.currentOutdoorSites){this.removeOutdoorSite();this.addOutdoorSites()}}));p("currentOutdoorSite",(()=>{if(c.currentOutdoorCourse){this.removeOutdoorSite();this.addOutdoorCourse()}}));p("currentTouristicContent",(()=>{if(this.grwApp){if(c.currentTouristicContent){this.removeTrek();this.removeTouristicContents();this.addTouristicContent()}else if(c.touristicContents){this.removeTouristicContent();this.addTouristicContents()}else if(c.currentTrek){this.removeTouristicContent();this.addTrek()}else if(c.currentTreks){this.removeTouristicContent();this.addTreks()}}}));p("currentTouristicEvent",(()=>{if(this.grwApp){if(c.currentTouristicEvent){this.removeTrek();this.removeTouristicEvents();this.addTouristicEvent()}else if(c.currentTrek){this.removeTouristicEvent();this.addTrek()}else if(c.currentTreks){this.removeTouristicEvent();this.addTreks()}}}));p("currentTouristicContents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(c.currentTouristicContent){this.removeTouristicContents();this.addTouristicContent()}else if(c.currentTouristicContents){this.removeTreks();this.removeTouristicEvents();this.removeOutdoorSites();this.removeTouristicContent();this.addTouristicContents(true)}}));p("currentTouristicEvents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(c.currentTouristicEvent){this.removeTouristicEvents();this.addTouristicEvent()}else if(c.currentTouristicEvents){this.removeTreks();this.removeTouristicContents();this.removeOutdoorSites();this.removeTouristicEvent();this.addTouristicEvents(true)}}))}handleLayerVisibility(t,e){if(t&&!this.map.hasLayer(e)){e.addTo(this.map)}else if(this.map.hasLayer(e)&&!this.userLayersState[e._leaflet_id]){this.map.removeLayer(e)}this.handleLayersControlEvent()}async addTreks(t=false){var e;c.treksWithinBounds=c.currentTreks;const i=[];const r={type:"FeatureCollection",features:[]};if(c.currentTreks){for(const t of c.currentTreks){i.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=c.practices.find((e=>e.id===t.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((t=>t.type==="image")).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})}}if(!this.treksLayer){if(i.length>0&&!c.currentMapBounds||t){this.bounds=E.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}const e=await this.getIcons(r,"practice");this.treksLayer=E.geoJSON(r,{pointToLayer:(t,i)=>E.marker(i,{icon:E.divIcon({html:e[t.properties.practice]?`<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src=${e[t.properties.practice]} /></div>`:`<div part="trek-marker-container" class="trek-marker-container"></div>`,className:"trek-marker",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(async()=>{const i=await this.getIcon(t.properties.imgSrc);const r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;const o=E.DomUtil.create("div");o.part="trek-departure-popup";o.className="trek-departure-popup";if(r){const t=E.DomUtil.create("img");t.part="trek-image-popup";t.src=r;o.appendChild(t)}const s=E.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";o.appendChild(s);const n=E.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="trek-button";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);o.appendChild(n);e.bindPopup(o,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(e=>{this.hideTrekLine();this.showTrekLine(t.properties.id);this.addSelectedCurrentTrek(t.properties.id,e.latlng)}))}});this.treksMarkerClusterGroup=E.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>E.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+t.getChildCount()+"</div>",className:"",iconSize:this.mainClusterSize})});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(i.length>0){this.bounds=E.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer)}this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)}removeTreks(){if(this.treksLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(c.currentTreks&&!c.currentMapBounds||c.currentTreks&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.treksWithinBounds=c.currentTreks.filter((t=>this.map.getBounds().contains(E.latLng(t.departure_geom[1],t.departure_geom[0]))))}}handleTouristicContentsWithinBounds(){if(c.currentTouristicContents&&!c.currentMapBounds||c.currentTouristicContents&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.touristicContentsWithinBounds=c.currentTouristicContents.filter((t=>this.map.getBounds().contains(E.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleTouristicEventsWithinBounds(){if(c.currentTouristicEvents&&!c.currentMapBounds||c.currentTouristicEvents&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.touristicEventsWithinBounds=c.currentTouristicEvents.filter((t=>this.map.getBounds().contains(E.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleOutdoorSitesWithinBounds(){if(c.currentOutdoorSites&&!c.currentMapBounds||c.currentOutdoorSites&&c.currentMapBounds&&c.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){c.outdoorSitesWithinBounds=c.currentOutdoorSites.filter((t=>{const e=fe(t.geometry).geometry.coordinates;return this.map.getBounds().contains(E.latLng(e[1],e[0]))}))}}async addTrek(){var t;const e=await $("treks",c.currentTrek.id);if(e){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;c.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();const i={type:"Feature",geometry:c.currentTrek.geometry,properties:{}};this.currentTrekLayer=E.geoJSON(i,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);if(c.currentTrek.parking_location){const t=o(`${""}assets/parking.svg`);const e={type:"Feature",properties:{name:c.currentTrek.advised_parking},geometry:{type:"Point",coordinates:c.currentTrek.parking_location}};this.currentParkingLayer=E.geoJSON(e,{pointToLayer:(e,i)=>E.marker(i,{icon:E.divIcon({html:`<img part="parking-marker" src=${t} />`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("mouseover",(()=>{const i=E.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}if(c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const e of c.currentSensitiveAreas){t.features.push({type:"Feature",properties:{name:e.name},geometry:e.geometry})}this.currentSensitiveAreasLayer=E.geoJSON(t,{onEachFeature:(t,e)=>{e.once("mouseover",(()=>{const i=E.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}await this.addCurrentInformationDesks(c.currentTrek);await this.addCurrentPois();await this.addCurrentSignages();await this.addCurrentTouristicContents();await this.addCurrentTouristicEvents();if(c.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:c.currentTrek.points_reference});let e=0;this.currentReferencePointsLayer=E.geoJSON(t,{pointToLayer:(t,i)=>{e+=1;return E.marker(i,{icon:E.divIcon({html:`<div part="point-reference-icon" class="point-reference-icon">${e}</div>`,className:"",iconSize:this.pointReferenceMarkerSize}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&c.parentTrekId&&c.parentTrek&&c.currentTrek.id===c.parentTrekId){const e={type:"FeatureCollection",features:[]};if(c.currentTrekSteps){for(const i of c.currentTrekSteps){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:i.departure_geom},properties:{id:i.id,name:i.name,practice:(t=c.practices.find((t=>t.id===i.practice)))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((t=>t.type==="image")).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})}}let i=0;this.currentStepsLayer=E.geoJSON(e,{pointToLayer:(t,e)=>{i+=1;return E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:`<div part="step-marker" class="step-marker"><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">${i}</div></div></div>`,className:"",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:(t,e)=>{e.once("click",(async()=>{const i=await this.getIcon(t.properties.imgSrc);const r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;const o=E.DomUtil.create("div");o.part="trek-departure-popup";o.className="trek-departure-popup";if(r){const t=E.DomUtil.create("img");t.src=r;o.appendChild(t)}const s=E.DomUtil.create("div");s.innerHTML=t.properties.name;o.part="trek-name";s.className="trek-name";o.appendChild(s);const n=E.DomUtil.create("button");n.innerHTML="Afficher le détail";o.part="trek-button";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);o.appendChild(n);e.bindPopup(o,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(e=>{this.addSelectedCurrentStep(t.properties.id,e.latlng)}))}})}let r={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};E.registerLocale("fr",r);E.setLocale("fr");const n={elevationDiv:`#elevation-container`,theme:`custom-theme use-theme-color`,height:this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight,distanceMarkers:{distance:false,direction:true},summary:"inline",legend:false,downloadLink:false,autofitBounds:false,ruler:false,waypoints:false,almostOver:false,dragging:false};this.elevationControl=E.control.elevation(n).addTo(this.map);const a=JSON.stringify({name:`${c.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:c.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(a);this.elevationControl.eleDiv.style.display=this.elevationDefaultState==="visible"?"block":"none";s(this.hostElement);const l={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:c.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:c.currentTrek.geometry.coordinates[c.currentTrek.geometry.coordinates.length-1]},properties:null}]};let p=0;this.departureArrivalLayer=E.geoJSON(l,{pointToLayer:(t,e)=>{p+=1;return E.marker(e,{icon:E.divIcon({html:`<div part="${p===1?"departure-marker":"arrival-marker"}" class="${p===1?"departure-marker":"arrival-marker"}"></div>`,className:"",iconSize:this.departureArrivalMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=E.latLngBounds(c.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));this.map.on("eledata_loaded",(()=>{this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}))}async getIcons(t,e){const i={};for(let r=0;r<t.features.length;r++){if(t.features[r].properties[e]){i[t.features[r].properties[e]]=await this.getIcon(t.features[r].properties[e])}}return i}async getIcon(t){let e;if(!w.isNativePlatform()){const i=await k(t);e=i?window.URL.createObjectURL((await x(t)).data):t?t:null}else{const i=await y.getUri({path:t,directory:A.Data});if(i){e=w.convertFileSrc(i.uri)}}return e}async addSelectedCurrentTrek(t,e){var i;const r={type:"FeatureCollection",features:[]};if(c.currentTreks){const o=c.currentTreks.find((e=>e.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:o.departure_geom},properties:{id:o.id,name:o.name,practice:(i=c.practices.find((t=>t.id===o.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:o.attachments&&o.attachments.filter((t=>t.type==="image")).length>0?o.attachments[0].thumbnail!==""?o.attachments[0].thumbnail:o.attachments[0].url:null}})}this.removeSelectedCurrentTrek();c.selectedTrekId=t;const o=await this.getIcons(r,"practice");this.selectedCurrentTrekLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:o[t.properties.practice]?`<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src=${o[t.properties.practice]} /></div></div>`:`<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(async()=>{const i=await this.getIcon(t.properties.imgSrc);const r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;const o=E.DomUtil.create("div");o.part="trek-departure-popup";o.className="trek-departure-popup";if(r){const t=E.DomUtil.create("img");t.src=r;t.part="trek-image";o.appendChild(t)}const s=E.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";o.appendChild(s);const n=E.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="trek-button";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);o.appendChild(n);e.bindPopup(o,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.trekPopupIsOpen){c.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}));e.on("popupopen",(()=>{this.trekPopupIsOpen=Boolean(c.selectedTrekId)}));e.on("popupclose",(()=>{if(c.selectedTrekId){this.trekPopupIsOpen=false;c.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}))}}).addTo(this.map)}removeSelectedCurrentTrek(){c.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null}addSelectedCurrentStep(t,e){var i;const r={type:"FeatureCollection",features:[]};if(c.currentTrekSteps){const o=c.currentTrekSteps.findIndex((e=>e.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:c.currentTrekSteps[o].departure_geom},properties:{id:c.currentTrekSteps[o].id,name:c.currentTrekSteps[o].name,practice:(i=c.practices.find((t=>t.id===c.currentTrekSteps[o].practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:c.currentTrekSteps[o].attachments&&c.currentTrekSteps[o].attachments.filter((t=>t.type==="image")).length>0?c.currentTrekSteps[o].attachments[0].thumbnail!==""?c.currentTrekSteps[o].attachments[0].thumbnail:c.currentTrekSteps[o].attachments[0].url:null,index:o+1}})}this.removeSelectedCurrentStep();c.selectedStepId=t;this.selectedCurrentStepLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:`<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">${t.properties.index}</div></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(async()=>{const i=await this.getIcon(t.properties.imgSrc);const r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;const o=E.DomUtil.create("div");o.part="trek-departure-popup";o.className="trek-departure-popup";if(r){const t=E.DomUtil.create("img");t.part="trek-image";t.src=r;o.appendChild(t)}const s=E.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";o.appendChild(s);const n=E.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="trek-name";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);o.appendChild(n);e.bindPopup(o,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.stepPopupIsOpen){c.selectedTrekId=null;this.removeSelectedCurrentStep()}}));e.on("popupopen",(()=>{this.stepPopupIsOpen=Boolean(c.selectedStepId)}));e.on("popupclose",(()=>{if(c.selectedStepId){this.stepPopupIsOpen=false;c.selectedStepId=null;this.removeSelectedCurrentStep()}}))}}).addTo(this.map)}removeSelectedCurrentStep(){if(c.selectedStepId){c.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}}handleLayersControlEvent(){if(this.layersControl){const t=this.layersControl._layerControlInputs;t.forEach((t=>{if(this.layersControl._layers.find((e=>e.layer._leaflet_id===t.layerId)).overlay){t.onchange=e=>{this.userLayersState[t.layerId]=e.target.checked}}}))}}removeTrek(){this.handleLayersOnRemove()}async showTrekLine(t){this.removeSelectedCurrentTrek();const e=await G(t);const i={type:"Feature",geometry:e.geometry,properties:{}};this.currentTrekLayer=E.geoJSON(i,{style:()=>({color:this.colorTrekLine}),interactive:false}).addTo(this.map)}hideTrekLine(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}}async addTouristicContent(){this.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;this.removeSelectedTouristicContent();const t={type:"FeatureCollection",features:[]};if(c.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:c.currentTouristicContent.geometry.coordinates},properties:{id:c.currentTouristicContent.id,name:c.currentTouristicContent.name,practice:c.touristicContentCategories.find((t=>t.id===c.currentTouristicContent.category)).pictogram}})}if(!this.currentToutisticContentLayer){const e=await this.getIcons(t,"practice");this.currentToutisticContentLayer=E.geoJSON(t,{pointToLayer:(t,i)=>E.marker(i,{icon:E.divIcon({html:e[t.properties.practice]?`<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src=${e[t.properties.practice]} /></div></div>`:`<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([c.currentTouristicContent.geometry.coordinates[1],c.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicContent(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}}async addTouristicContents(t=false){c.touristicContentsWithinBounds=c.currentTouristicContents;const e=[];const i={type:"FeatureCollection",features:[]};if(c.currentTouristicContents){for(const t of c.currentTouristicContents){e.push(t.geometry.coordinates);i.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:c.touristicContentCategories.find((e=>e.id===t.category)).pictogram,imgSrc:t.attachments&&t.attachments.filter((t=>t.type==="image")).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})}}if(!this.toutisticContentsLayer){if(e.length>0&&!c.currentMapBounds||t){this.bounds=E.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}const r=await this.getIcons(i,"practice");this.toutisticContentsLayer=E.geoJSON(i,{pointToLayer:(t,e)=>E.marker(e,{icon:E.divIcon({html:r[t.properties.practice]?`<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src=${r[t.properties.practice]} /></div></div>`:`<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,className:"",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(()=>{const i=E.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const e=E.DomUtil.create("img");e.part="touristic-content-coordinates-image";e.src=t.properties.imgSrc;i.appendChild(e)}const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;i.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);const o=E.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(e=>{this.addSelectedTouristicContent(t.properties.id,e.latlng)}))}});this.touristicContentsMarkerClusterGroup=E.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>E.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:this.mainClusterSize})});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(e.length>0){this.bounds=E.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(i);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer)}this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind)}removeTouristicContents(){if(this.toutisticContentsLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}}async addTouristicEvent(){const t={type:"FeatureCollection",features:[]};if(c.currentTouristicEvent){const e=c.touristicEventTypes.find((t=>t.id===c.currentTouristicEvent.type));t.features.push({type:"Feature",geometry:{type:"Point",coordinates:c.currentTouristicEvent.geometry.coordinates},properties:{id:c.currentTouristicEvent.id,name:c.currentTouristicEvent.name,type:e?e.pictogram:null}})}if(!this.currentToutisticEventLayer){const e=await this.getIcons(t,"type");this.currentToutisticEventLayer=E.geoJSON(t,{pointToLayer:(t,i)=>E.marker(i,{icon:E.divIcon({html:e[t.properties.type]?`<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${e[t.properties.type]} /></div></div>`:`<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([c.currentTouristicEvent.geometry.coordinates[1],c.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicEvent(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}}async addSelectedTouristicContent(t,e){var i;const r={type:"FeatureCollection",features:[]};if(c.touristicContents){const o=c.touristicContents.find((e=>e.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(i=c.touristicContentCategories.find((t=>t.id===o.category)))===null||i===void 0?void 0:i.pictogram,imgSrc:o.attachments&&o.attachments.filter((t=>t.type==="image")).length>0?o.attachments[0].thumbnail!==""?o.attachments[0].thumbnail:o.attachments[0].url:null}})}this.removeSelectedTouristicContent();c.selectedTouristicContentId=t;const o=await this.getIcons(r,"category");this.selectedTouristicContentLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:o[t.properties.category]?`<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src=${o[t.properties.category]} /></div></div>`:`<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(()=>{const i=E.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const e=E.DomUtil.create("img");e.part="touristic-content-coordinates-image";e.src=t.properties.imgSrc;i.appendChild(e)}const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);const o=E.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.touristicContentPopupIsOpen){c.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}));e.on("popupopen",(()=>{this.touristicContentPopupIsOpen=Boolean(c.selectedTouristicContentId)}));e.on("popupclose",(()=>{if(c.selectedTouristicContentId){this.touristicContentPopupIsOpen=false;c.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}))}}).addTo(this.map)}removeSelectedTouristicContent(){c.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null}async addTouristicEvents(t=false){var e;c.touristicEventsWithinBounds=c.currentTouristicEvents;const i=[];const r={type:"FeatureCollection",features:[]};if(c.currentTouristicEvents){for(const t of c.currentTouristicEvents){i.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(e=c.touristicEventTypes.find((e=>e.id===t.type)))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((t=>t.type==="image")).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})}}if(!this.touristicEventsLayer){if(i.length>0&&!c.currentMapBounds||t){this.bounds=E.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}const e=await this.getIcons(r,"type");this.touristicEventsLayer=E.geoJSON(r,{pointToLayer:(t,i)=>E.marker(i,{icon:E.divIcon({html:e[t.properties.type]?`<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${e[t.properties.type]} /></div></div>`:`<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,className:"",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(()=>{const i=E.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const e=E.DomUtil.create("img");e.part="touristic-event-coordinates-image";e.src=t.properties.imgSrc;i.appendChild(e)}const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-event-name";r.className="touristic-event-name";i.appendChild(r);const o=E.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(e=>{this.addSelectedTouristicEvent(t.properties.id,e.latlng)}))}});this.touristicEventsMarkerClusterGroup=E.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>E.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:this.mainClusterSize})});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup)}else{if(i.length>0){this.bounds=E.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer)}this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind)}removeTouristicEvents(){if(this.touristicEventsLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}}async addOutdoorSites(t=false){var e;c.outdoorSitesWithinBounds=c.currentOutdoorSites;const i=[];const r={type:"FeatureCollection",features:[]};if(c.currentOutdoorSites){for(const t of c.currentOutdoorSites){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:fe(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(e=c.outdoorPractices.find((e=>e.id===t.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((t=>t.type==="image")).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})}}if(!this.outdoorSitesLayer){if(i.length>0&&!c.currentMapBounds||t){const t=Kt(r);this.bounds=E.latLngBounds([t[1],t[0]],[t[3],t[2]])}else{if(c.currentMapBounds){this.bounds=c.currentMapBounds}}const e=await this.getIcons(r,"practice");this.outdoorSitesLayer=E.geoJSON(r,{pointToLayer:(t,i)=>E.marker(i,{icon:E.divIcon({html:e[t.properties.practice]?`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src=${e[t.properties.practice]} /></div></div>`:`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>`,className:"",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(()=>{const i=E.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){const e=E.DomUtil.create("img");e.part="outdoor-site-coordinates-image";e.src=t.properties.imgSrc;i.appendChild(e)}const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="outdoor-site-name";r.className="outdoor-site-name";i.appendChild(r);const o=E.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=()=>this.outdoorSiteCardPress.emit(t.properties.id);i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(e=>{this.addSelectedOutdoorSite(t.properties.id,e.latlng)}))}});this.outdoorSitesMarkerClusterGroup=E.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>E.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:this.mainClusterSize})});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup)}else{if(i.length>0){this.bounds=E.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(r);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer)}this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind)}removeOutdoorSites(){if(this.outdoorSitesLayer){c.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}}async addOutdoorSite(){const t={type:"FeatureCollection",features:[]};if(c.currentOutdoorSite){const e=c.outdoorPractices.find((t=>t.id===c.currentOutdoorSite.practice));t.features.push({type:"Feature",geometry:c.currentOutdoorSite.geometry,properties:{id:c.currentOutdoorSite.id,name:c.currentOutdoorSite.name,practice:e?e.pictogram:null}})}if(!this.currentOutdoorSiteLayer){const e=await this.getIcons(t,"practice");this.currentOutdoorSiteLayer=E.geoJSON(t,{pointToLayer:(t,i)=>E.marker(i,{icon:E.divIcon({html:e[t.properties.practice]?`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src=${e[t.properties.practice]} /></div></div>`:`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})});this.map.addLayer(this.currentOutdoorSiteLayer)}await this.addCurrentInformationDesks(c.currentOutdoorSite);await this.addCurrentPois();await this.addCurrentTouristicContents();await this.addCurrentTouristicEvents();await this.addCurrentRelatedOutdoorSites();await this.addCurrentRelatedOutdoorCourses();this.handleLayersControl();this.map.invalidateSize();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(),{maxZoom:this.maxZoom});!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}async addCurrentRelatedOutdoorSites(){var t;const e={type:"FeatureCollection",features:[]};if(c.currentRelatedOutdoorSites){for(const i of c.currentRelatedOutdoorSites){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(t=c.outdoorPractices.find((t=>t.id===i.practice)))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((t=>t.type==="image")).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})}}if(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0){const t=await this.getIcons(e,"practice");this.currentRelatedOutdoorSitesLayer=E.geoJSON(e,{pointToLayer:(e,i)=>E.marker(i,{icon:E.divIcon({html:t[e.properties.practice]?`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src=${t[e.properties.practice]} /></div></div>`:`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})})}}async addCurrentRelatedOutdoorCourses(){var t;const e={type:"FeatureCollection",features:[]};if(c.currentRelatedOutdoorCourses){for(const i of c.currentRelatedOutdoorCourses){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(t=c.outdoorCourseTypes.find((t=>t.id===i.type)))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((t=>t.type==="image")).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})}}if(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0){const t=await this.getIcons(e,"type");this.currentRelatedOutdoorCoursesLayer=E.geoJSON(e,{pointToLayer:(e,i)=>E.marker(i,{icon:E.divIcon({html:t[e.properties.practice]?`<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"><img part="outdoor-courses-marker-icon" src=${t[e.properties.practice]} /></div></div>`:`<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})})}}removeOutdoorSite(){this.handleLayersOnRemove()}async addSelectedTouristicEvent(t,e){var i;const r={type:"FeatureCollection",features:[]};if(c.touristicEvents){const o=c.touristicEvents.find((e=>e.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(i=c.touristicEventTypes.find((t=>t.id===o.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:o.attachments&&o.attachments.filter((t=>t.type==="image")).length>0?o.attachments[0].thumbnail!==""?o.attachments[0].thumbnail:o.attachments[0].url:null}})}this.removeSelectedTouristicEvent();c.selectedTouristicEventId=t;const o=await this.getIcons(r,"category");this.selectedTouristicEventLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:o[t.properties.category]?`<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${o[t.properties.category]} /></div></div>`:`<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(()=>{const i=E.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const e=E.DomUtil.create("img");e.part="touristic-event-coordinates-image";e.src=t.properties.imgSrc;i.appendChild(e)}const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-event-name";r.className="touristic-event-name";i.appendChild(r);const o=E.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.touristicEventPopupIsOpen){c.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}));e.on("popupopen",(()=>{this.touristicEventPopupIsOpen=Boolean(c.selectedTouristicEventId)}));e.on("popupclose",(()=>{if(c.selectedTouristicEventId){this.touristicEventPopupIsOpen=false;c.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}))}}).addTo(this.map)}removeSelectedTouristicEvent(){c.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null}async addOutdoorCourse(){const t={type:"FeatureCollection",features:[]};if(c.currentOutdoorCourse){const e=c.outdoorCourseTypes.find((t=>t.id===c.currentOutdoorCourse.type));t.features.push({type:"Feature",geometry:c.currentOutdoorCourse.geometry,properties:{id:c.currentOutdoorCourse.id,name:c.currentOutdoorCourse.name,type:e?e.pictogram:null}})}if(!this.currentOutdoorCourseLayer){const e=await this.getIcons(t,"type");this.currentOutdoorCourseLayer=E.geoJSON(t,{pointToLayer:(t,i)=>E.marker(i,{icon:E.divIcon({html:e[t.properties.practice]?`<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src=${e[t.properties.practice]} /></div></div>`:`<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})});this.map.addLayer(this.currentOutdoorCourseLayer)}await this.addCurrentPois();await this.addCurrentTouristicContents();await this.addCurrentTouristicEvents();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeOutdoorCourse(){this.handleLayersOnRemove()}async addSelectedOutdoorSite(t,e){var i;const r={type:"FeatureCollection",features:[]};if(c.currentOutdoorSites){const e=c.currentOutdoorSites.find((e=>e.id===t));if(e&&e.geometry){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:fe(e.geometry).geometry.coordinates},properties:{id:e.id,name:e.name,practice:(i=c.outdoorPractices.find((t=>t.id===e.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.filter((t=>t.type==="image")).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})}}this.removeSelectedOutdoorSite();c.selectedOutdoorSiteId=t;const o=await this.getIcons(r,"practice");this.selectedOutdoorSiteLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:o[t.properties.practice]?`<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src=${o[t.properties.practice]} /></div></div>`:`<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(()=>{const i=E.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){const e=E.DomUtil.create("img");e.part="outdoor-site-coordinates-image";e.src=t.properties.imgSrc;i.appendChild(e)}const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="outdoor-site-name";r.className="outdoor-site-name";i.appendChild(r);const o=E.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=()=>this.outdoorSiteCardPress.emit(t.properties.id);i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.outdoorSitePopupIsOpen){c.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}}));e.on("popupopen",(()=>{this.outdoorSitePopupIsOpen=Boolean(c.selectedOutdoorSiteId)}));e.on("popupclose",(()=>{if(c.selectedOutdoorSiteId){this.outdoorSitePopupIsOpen=false;c.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map)}removeSelectedOutdoorSite(){c.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null}async addSelectedOutdoorCourse(t,e){var i;const r={type:"FeatureCollection",features:[]};if(c.currentOutdoorCourse){const t=c.currentOutdoorCourse;r.features.push({type:"Feature",geometry:{type:"Point",coordinates:fe(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=c.outdoorCourseTypes.find((e=>e.id===t.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.filter((t=>t.type==="image")).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})}this.removeSelectedOutdoorCourse();c.selectedOutdoorCourseId=t;const o=await this.getIcons(r,"type");this.selectedOutdoorCourseLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:o[t.properties.type]?`<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src=${o[t.properties.type]} /></div></div>`:`<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("click",(()=>{const i=E.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(t.properties.imgSrc){const e=E.DomUtil.create("img");e.part="outdoor-course-coordinates-image";e.src=t.properties.imgSrc;i.appendChild(e)}const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="outdoor-course-name";r.className="outdoor-course-name";i.appendChild(r);const o=E.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-course-button";o.className="outdoor-course-button";o.onclick=()=>this.outdoorCourseCardPress.emit(t.properties.id);i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.outdoorCoursePopupIsOpen){c.selectedOutdoorCourseId=null;this.removeSelectedOutdoorCourse()}}));e.on("popupopen",(()=>{this.outdoorCoursePopupIsOpen=Boolean(c.selectedOutdoorCourseId)}));e.on("popupclose",(()=>{if(c.selectedOutdoorCourseId){this.outdoorCoursePopupIsOpen=false;c.selectedOutdoorCourseId=null;this.removeSelectedOutdoorCourse()}}))}}).addTo(this.map)}removeSelectedOutdoorCourse(){c.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null}async addCurrentPois(){var t;if(c.currentPois&&c.currentPois.length>0){const e={type:"FeatureCollection",features:[]};for(const i of c.currentPois){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=c.poiTypes.find((t=>t.id===i.type)))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})}const i=await this.getIcons(e,"type_pictogram");this.currentPoisLayer=E.geoJSON(e,{pointToLayer:(t,e)=>E.marker(e,{icon:E.divIcon({html:i[t.properties.type_pictogram]?`<div part="poi-marker" class="poi-marker"><img src=${i[t.properties.type_pictogram]} /></div>`:`<div part="poi-marker" class="poi-marker"><img /></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("mouseover",(()=>{const i=E.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}}async addCurrentSignages(){if(c.currentSignages&&c.currentSignages.length>0){const t=o(`${""}assets/signage.svg`);const e={type:"FeatureCollection",features:[]};for(const t of c.currentSignages){e.features.push({type:"Feature",properties:{name:t.name},geometry:t.geometry})}this.currentSignagesLayer=E.geoJSON(e,{pointToLayer:(e,i)=>E.marker(i,{icon:E.divIcon({html:`<div part="signage-marker" class="signage-marker"><img src=${t} /></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("mouseover",(()=>{const i=E.DomUtil.create("div");i.part="signage-tooltip";i.className="signage-tooltip";const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="signage-name";r.className="signage-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}}async addCurrentTouristicContents(){var t;if(c.trekTouristicContents&&c.trekTouristicContents.length>0){const e={type:"FeatureCollection",features:[]};for(const i of c.trekTouristicContents){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,category_pictogram:(t=c.touristicContentCategories.find((t=>t.id===i.category)))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})}const i=await this.getIcons(e,"category_pictogram");this.currentToutisticContentsLayer=E.geoJSON(e,{pointToLayer:(t,e)=>E.marker(e,{icon:E.divIcon({html:i[t.properties.category_pictogram]?`<div part="touristic-content-marker" class="touristic-content-marker"><img src=${i[t.properties.category_pictogram]} /></div>`:`<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>`,className:this.grwApp?"":"cursor-pointer",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.on("click",(()=>{if(!this.grwApp){this.touristicContentCardPress.emit(t.properties.id)}}));e.on("mouseover",(()=>{const i=E.DomUtil.create("div");i.part="touristic-content-tooltip";i.className="touristic-content-tooltip";const r=E.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}}async addCurrentTouristicEvents(){var t;if(c.trekTouristicEvents&&c.trekTouristicEvents.length>0){const e={type:"FeatureCollection",features:[]};for(const i of c.trekTouristicEvents){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,type_pictogram:(t=c.touristicEventTypes.find((t=>t.id===i.type)))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})}const i=await this.getIcons(e,"type_pictogram");this.currentTouristicEventsLayer=E.geoJSON(e,{pointToLayer:(t,e)=>E.marker(e,{icon:E.divIcon({html:i[t.properties.type_pictogram]?`\n <div part="touristic-event-marker" class="touristic-event-marker"><img src=${i[t.properties.type_pictogram]} /></div>`:`<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>`,className:this.grwApp?"":"cursor-pointer",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.on("click",(()=>{if(!this.grwApp){this.touristicEventCardPress.emit(t.properties.id)}}));e.once("mouseover",(()=>{const i=E.DomUtil.create("div");i.part="touristic-event-tooltip";i.className="touristic-event-tooltip";const r=E.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=t.properties.name;r.className="touristic-event-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}}async addCurrentInformationDesks(t){if(c.currentInformationDesks&&c.currentInformationDesks.length>0){const e={type:"FeatureCollection",features:[]};for(const i of c.currentInformationDesks.filter((e=>t.information_desks.includes(e.id)))){if(i.latitude&&i.longitude){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}if(e.features.length>0){const t=await this.getIcons(e,"type_pictogram");this.currentInformationDesksLayer=E.geoJSON(e,{pointToLayer:(e,i)=>E.marker(i,{icon:E.divIcon({html:t[e.properties.type_pictogram]?`<div part="information-desks-marker" class="information-desks-marker"><img src=${t[e.properties.type_pictogram]} /></div>`:`<div part="information-desks-marker" class="information-desks-marker"><img /></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("mouseover",(()=>{const i=E.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";const r=E.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=t.properties.name;r.className="information-desks-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}}}handleLayersControl(){const t={};if(this.currentStepsLayer){t[l[c.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){t[l[c.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){t[l[c.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){t[l[c.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){t[l[c.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){t[l[c.language].layers.pois]=this.currentPoisLayer}if(this.currentSignagesLayer){t[l[c.language].layers.signages]=this.currentSignagesLayer;this.currentSignagesLayer.addTo(this.map)}if(this.currentToutisticContentsLayer){t[l[c.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentTouristicEventsLayer){t[l[c.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){t[l[c.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){t[l[c.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(t).forEach((e=>{this.layersControl.addOverlay(t[e],e)}))}else if(Object.keys(t).length>0){this.layersControl=E.control.layers({},t,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()}handleLayersOnRemove(){if(this.layersControl){if(!this.layersControl._layers.some((t=>!t.overlay))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((t=>t.overlay)).forEach((t=>{this.layersControl.removeLayer(t.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentSignagesLayer){this.map.removeLayer(this.currentSignagesLayer);this.currentSignagesLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentTouristicEventsLayer){this.map.removeLayer(this.currentTouristicEventsLayer);this.currentTouristicEventsLayer=null}if(this.currentOutdoorSiteLayer){this.map.removeLayer(this.currentOutdoorSiteLayer);this.currentOutdoorSiteLayer=null}if(this.currentOutdoorCourseLayer){this.map.removeLayer(this.currentOutdoorCourseLayer);this.currentOutdoorCourseLayer=null}if(this.currentRelatedOutdoorSitesLayer){this.map.removeLayer(this.currentRelatedOutdoorSitesLayer);this.currentRelatedOutdoorSitesLayer=null}if(this.currentRelatedOutdoorCoursesLayer){this.map.removeLayer(this.currentRelatedOutdoorCoursesLayer);this.currentRelatedOutdoorCoursesLayer=null}}onWindowResize(){this.handleView()}handleView(){const t=this.mapElement.getBoundingClientRect().width>=this.largeViewSize?this.elevationHeight:this.mobileElevationHeight;if(this.elevationControl){this.elevationControl.options.height=t;this.elevationControl.redraw()}if(this.map){this.map.invalidateSize()}s(this.hostElement)}handleElevation(){this.elevationControl.eleDiv.style.display=this.elevationControl.eleDiv.style.display==="block"?"none":"block";this.elevationControl.redraw();s(this.hostElement)}render(){const t=o(`${""}assets/layers.svg`);const r=o(`${""}assets/contract.svg`);return e(i,{key:"3e265f4cd8473338aae05758bbc5bc1e8993f3ae",ref:t=>this.hostElement=t,style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"--color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"--color-trek-line":this.colorTrekLine,"--layers-image-src":`url(${t})`,"--contract-image-src":`url(${r})`,"--elevation-height":(this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight).toString().concat("px")}},e("div",{key:"2d3aa1861b761f1951262c413a0aedc47f47e501",id:"map",part:"map",class:(c.currentTouristicContent||c.currentTouristicEvent||c.currentOutdoorSite||c.currentOutdoorCourse)&&this.grwApp?"common-map":c.currentTrek&&this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"trek-map-and-elevation":c.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t},c.currentTrek&&e("div",{class:"grw-elevation-visibility-button-container"},e("grw-fab",{exportparts:"fab-visibility-button,fab-visibility-button-icon,fab-visibility-button-label","font-family":this.fontFamily,action:()=>this.handleElevation(),icon:()=>this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"show-elevation":"hide-elevation",showTitle:l[c.language].showElevation,hideTitle:l[c.language].hideElevation,"fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.mapIsReady&&e("div",{part:"map-loader-container",class:"map-loader-container"},e("span",{part:"loader",class:"loader"})))}get mapElement(){return n(this)}};we.style=ve;const ke=":host{display:block}.modal-container{z-index:40000;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:0px;left:0px;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);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;margin-right:16px}@-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)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}";const xe=ke;const ye=class{constructor(e){t(this,e);this.downloadPress=r(this,"downloadPress",7);this.deletePress=r(this,"deletePress",7);this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false;this.mode=undefined}onDownloadConfirm(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;document.body.style.overflow=`hidden`;this.showOfflineModal=true;this.showConfirmModal=true}onDownloadedSuccessConfirm(){this.showLoaderModal=false;this.showSuccessModal=true}onDeleteConfirm(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;document.body.style.overflow=`hidden`;this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true}onDeleteSuccessConfirm(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true}handleOkDeleteModal(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()}handleOkDownloadModal(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()}handleCancelModal(){document.body.style.overflow=`visible`;this.showOfflineModal=false}render(){return e(i,{key:"d291e60c66b2b3cf92ca848a9768340ea26d04a1"},this.showOfflineModal&&e("div",{class:"modal-container"},e("div",{class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&e(a,null,e("div",{class:"modal-message-container"},`${this.mode==="treks"?"Êtes-vous sûr de vouloir rendre cet itinéraire disponible hors ligne ?":"Êtes-vous sûr de vouloir rendre cet outdoor disponible hors ligne ?"}`),e("div",{class:"modal-buttons-container"},e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},"ANNULER"),e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleOkDownloadModal()},"OK"))),this.showConfirmDeleteModal&&e(a,null,e("div",{class:"modal-message-container"},`${this.mode==="treks"?"Êtes-vous sûr de vouloir supprimer cet itinéraire du hors ligne ?":"Êtes-vous sûr de vouloir supprimer cet outdoor du hors ligne ?"}`),e("div",{class:"modal-buttons-container"},e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},"ANNULER"),e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleOkDeleteModal()},"OK"))),this.showLoaderModal&&e(a,null,e("div",{class:"modal-message-container"},e("div",{class:"modal-loader"}),this.showDeletingMessage?"Suppression en cours":"Téléchargement en cours")),this.showSuccessModal&&e(a,null,e("div",{class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?"L'itinéraire est supprimé du hors ligne":"L'outdoor est supprimé du hors ligne":this.mode==="treks"?"L'itinéraire est disponible hors ligne":"L'outdoor est disponible hors ligne"),e("div",{class:"modal-button-container"},e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},"OK"))))))}};ye.style=xe;function Ae({swiper:t,extendParams:e,on:i,emit:r}){const o=it();let s=false;let n=null;let a=null;let l;let c;let p;let d;e({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:`swiper-scrollbar-horizontal`,verticalClass:`swiper-scrollbar-vertical`}});t.scrollbar={el:null,dragEl:null};function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i}=t;const{dragEl:r,el:o}=e;const s=t.params.scrollbar;const a=t.params.loop?t.progressLoop:t.progress;let l=c;let d=(p-c)*a;if(i){d=-d;if(d>0){l=c-d;d=0}else if(-d+c>p){l=p+d}}else if(d<0){l=c+d;d=0}else if(d+c>p){l=p-d}if(t.isHorizontal()){r.style.transform=`translate3d(${d}px, 0, 0)`;r.style.width=`${l}px`}else{r.style.transform=`translate3d(0px, ${d}px, 0)`;r.style.height=`${l}px`}if(s.hide){clearTimeout(n);o.style.opacity=1;n=setTimeout((()=>{o.style.opacity=0;o.style.transitionDuration="400ms"}),1e3)}}function u(e){if(!t.params.scrollbar.el||!t.scrollbar.el)return;t.scrollbar.dragEl.style.transitionDuration=`${e}ms`}function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t;const{dragEl:i,el:r}=e;i.style.width="";i.style.height="";p=t.isHorizontal()?r.offsetWidth:r.offsetHeight;d=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0));if(t.params.scrollbar.dragSize==="auto"){c=p*d}else{c=parseInt(t.params.scrollbar.dragSize,10)}if(t.isHorizontal()){i.style.width=`${c}px`}else{i.style.height=`${c}px`}if(d>=1){r.style.display="none"}else{r.style.display=""}if(t.params.scrollbar.hide){r.style.opacity=0}if(t.params.watchOverflow&&t.enabled){e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}}function m(e){return t.isHorizontal()?e.clientX:e.clientY}function g(e){const{scrollbar:i,rtlTranslate:r}=t;const{el:o}=i;let s;s=(m(e)-nt(o)[t.isHorizontal()?"left":"top"]-(l!==null?l:c/2))/(p-c);s=Math.max(Math.min(s,1),0);if(r){s=1-s}const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*s;t.updateProgress(n);t.setTranslate(n);t.updateActiveIndex();t.updateSlidesClasses()}function b(e){const i=t.params.scrollbar;const{scrollbar:o,wrapperEl:n}=t;const{el:c,dragEl:p}=o;s=true;l=e.target===p?m(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null;e.preventDefault();e.stopPropagation();n.style.transitionDuration="100ms";p.style.transitionDuration="100ms";g(e);clearTimeout(a);c.style.transitionDuration="0ms";if(i.hide){c.style.opacity=1}if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="none"}r("scrollbarDragStart",e)}function v(e){const{scrollbar:i,wrapperEl:o}=t;const{el:n,dragEl:a}=i;if(!s)return;if(e.preventDefault)e.preventDefault();else e.returnValue=false;g(e);o.style.transitionDuration="0ms";n.style.transitionDuration="0ms";a.style.transitionDuration="0ms";r("scrollbarDragMove",e)}function w(e){const i=t.params.scrollbar;const{scrollbar:o,wrapperEl:n}=t;const{el:l}=o;if(!s)return;s=false;if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="";n.style.transitionDuration=""}if(i.hide){clearTimeout(a);a=st((()=>{l.style.opacity=0;l.style.transitionDuration="400ms"}),1e3)}r("scrollbarDragEnd",e);if(i.snapOnRelease){t.slideToClosest()}}function k(e){const{scrollbar:i,params:r}=t;const s=i.el;if(!s)return;const n=s;const a=r.passiveListeners?{passive:false,capture:false}:false;const l=r.passiveListeners?{passive:true,capture:false}:false;if(!n)return;const c=e==="on"?"addEventListener":"removeEventListener";n[c]("pointerdown",b,a);o[c]("pointermove",v,a);o[c]("pointerup",w,l)}function x(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;k("on")}function y(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;k("off")}function A(){const{scrollbar:e,el:i}=t;t.params.scrollbar=rt(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const r=t.params.scrollbar;if(!r.el)return;let s;if(typeof r.el==="string"&&t.isElement){s=t.el.shadowRoot.querySelector(r.el)}if(!s&&typeof r.el==="string"){s=o.querySelectorAll(r.el)}else if(!s){s=r.el}if(t.params.uniqueNavElements&&typeof r.el==="string"&&s.length>1&&i.querySelectorAll(r.el).length===1){s=i.querySelector(r.el)}if(s.length>0)s=s[0];s.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass);let n;if(s){n=s.querySelector(`.${t.params.scrollbar.dragClass}`);if(!n){n=ot("div",t.params.scrollbar.dragClass);s.append(n)}}Object.assign(e,{el:s,dragEl:n});if(r.draggable){x()}if(s){s.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}function z(){const e=t.params.scrollbar;const i=t.scrollbar.el;if(i){i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass)}y()}i("init",(()=>{if(t.params.scrollbar.enabled===false){L()}else{A();f();h()}}));i("update resize observerUpdate lock unlock",(()=>{f()}));i("setTranslate",(()=>{h()}));i("setTransition",((t,e)=>{u(e)}));i("enable disable",(()=>{const{el:e}=t.scrollbar;if(e){e.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}));i("destroy",(()=>{z()}));const C=()=>{t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass)}A();f();h()};const L=()=>{t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass)}z()};Object.assign(t.scrollbar,{enable:C,disable:L,updateSize:f,setTranslate:h,init:A,destroy:z})}const ze=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg>`;const Ce='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-course-detail{overflow:hidden}.outdoor-course-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.outdoor-course-detail-container .outdoor-course-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-course-detail-container .outdoor-course-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-course-detail-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-detail-container .outdoor-course-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-course-detail-container .outdoor-course-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.outdoor-course-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-course-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;gap:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-course-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-course-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-course-detail-container .downloads-container{padding:0px 24px 0px 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}.outdoor-course-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-course-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-course-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-course-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-course-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-container,.outdoor-course-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-course-detail-container .description-container a,.outdoor-course-detail-container .advice-container a,.outdoor-course-detail-container .weather-container a,.outdoor-course-detail-container .touristic-content-container a,.outdoor-course-detail-container .touristic-event-container a{color:var(--color-primary-app)}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;overflow-wrap:break-word}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{margin-bottom:16px}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-course-detail-container .description-container .description ol{position:relative;counter-reset:referencePoint}.outdoor-course-detail-container .description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.outdoor-course-detail-container .description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.outdoor-course-detail-container .description-container .description ol li p{margin:0}.outdoor-course-detail-container .description-container .description ol li:not(:first-child){margin-top:12px}.outdoor-course-detail-container .description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.outdoor-course-detail-container .current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.outdoor-course-detail-container .current-advice-container .icon img{width:26px;margin-right:8px}.outdoor-course-detail-container .advice-container div:last-child{margin-bottom:0px}.outdoor-course-detail-container .departure-container,.outdoor-course-detail-container .cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.outdoor-course-detail-container .departure-container .departure-title,.outdoor-course-detail-container .departure-container .cities-title,.outdoor-course-detail-container .cities-container .departure-title,.outdoor-course-detail-container .cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.outdoor-course-detail-container .weather-container iframe{width:100%}.outdoor-course-detail-container .divider{margin:16px;border-top:1px solid var(--color-outline)}.outdoor-course-detail-container .detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-course-detail-container .type .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.outdoor-course-detail-container .offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.outdoor-course-detail-container .offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .offline-button .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .departure-container{padding-top:24px}.outdoor-course-detail-container .advice-container .icon{margin-right:8px}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.accessibilities-container{padding:0px 24px 0px 24px;font-size:16px;line-height:24px;font-weight:400}.accessibilities-container a{color:var(--color-primary-app)}.accessibilities-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}';const Le=Ce;const Me=1;const _e=class{constructor(e){t(this,e);this.poiIsInViewport=r(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=r(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=r(this,"touristicEventsIsInViewport",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.grwApp=false;this.displayFullscreen=false;this.currentOutdoorCourse=undefined;this.offline=false}handleSwipers(){if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new at(this.swiperImagesRef,{modules:[lt,ct,pt,dt,ht],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new at(this.swiperTouristicContentsRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new at(this.swiperTouristicEventsRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new at(this.swiperPoisRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}}handleObservers(){if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.poiIsInViewport.emit(e)}),{threshold:Me});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(e)}),{threshold:Me});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(e)}),{threshold:Me});this.touristicEventObserver.observe(this.touristicEventsRef)}}componentDidUpdate(){this.handleObservers();this.handleSwipers()}componentDidLoad(){this.handleObservers();this.handleSwipers()}async connectedCallback(){if(c.currentOutdoorCourse){this.currentOutdoorCourse=c.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}p("currentOutdoorCourse",(async()=>{if(c.currentOutdoorCourse){this.currentOutdoorCourse=c.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}}))}handleFullscreen(t=false){if(!t){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}render(){const t=o(`${""}assets/default-image.svg`);const r=c.outdoorCourseTypes&&this.currentOutdoorCourse&&c.outdoorCourseTypes.find((t=>t.id===this.currentOutdoorCourse.type));const s=c.cities&&c.cities.find((t=>t.id===this.currentOutdoorCourse.cities[0]));const n=c.outdoorRatings&&this.currentOutdoorCourse&&c.outdoorRatings.filter((t=>this.currentOutdoorCourse.ratings.includes(t.id)));const a=n&&[...new Set(n.map((t=>t.scale)))];const p=a&&c.outdoorRatingsScale.filter((t=>a.includes(t.id)));return e(i,{key:"f8c78fc0516ee15f1d2d53668f97a041b2631da6",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"164px":"124px"}},this.currentOutdoorCourse&&e("div",{part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:t=>this.outdoorCourseDetailContainerRef=t},e("div",{part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:t=>this.presentationRef=t},e("div",{part:"swiper-images",class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((t=>t.type==="image")).length>0?this.currentOutdoorCourse.attachments.filter((t=>t.type==="image")).map((i=>{const r=[i.legend,i.author].filter(Boolean).join(" - ");return e("div",{part:"swiper-slide",class:"swiper-slide"},this.displayFullscreen&&e("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},e("span",{part:"outdoor-course-close-fullcreen-icon",class:"outdoor-course-close-fullcreen-icon",innerHTML:ut})),e("div",{part:"outdoor-course-image-legend",class:"outdoor-course-image-legend"},r),e("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:this.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:()=>this.handleFullscreen(),onerror:e=>{e.target.onerror=null;e.target.className="outdoor-course-img default-outdoor-course-img";e.target.src=t},alt:i.legend}))})):e("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:t,loading:"lazy",alt:""})),e("div",null,e("div",{part:"swiper-pagination",class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),e("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),e("div",{part:"swiper-button-next",class:"swiper-button-next",ref:t=>this.nextElImagesRef=t})))),e("div",{part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),e("div",{part:"sub-container",class:"sub-container"},e("div",{part:"icons-labels-container",class:"icons-labels-container"},r&&e("div",{part:"icon-label",class:"icon-label type"},r.pictogram&&e("img",{part:"icon",class:"icon",src:r.pictogram,alt:""}),e("span",{part:"label",class:"label"},r.name)),e("div",{part:"icon-label",class:"icon-label duration"},e("span",{part:"icon",class:"icon",innerHTML:yt}),e("span",{part:"label",class:"label"},z(this.currentOutdoorCourse.duration))),e("div",{part:"icon-label",class:"icon-label length"},e("span",{part:"icon",class:"icon",innerHTML:At}),e("span",{part:"label",class:"label"},C(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&e("div",{part:"icon-label",class:"icon-label ascent"},e("span",{part:"icon",class:"icon",innerHTML:zt}),e("span",{part:"label",class:"label"},M(this.currentOutdoorCourse.max_elevation))),n&&p.map((t=>e("div",{part:"row",class:"row"},`${t.name} : ${n.filter((e=>e.scale===t.id)).map((t=>t.name)).join(", ")}`))))),e("div",{part:"divider",class:"divider"}),e("div",{part:"downloads-container",class:"downloads-container"},e("div",{part:"download-title",class:"download-title"},l[c.language].downloads),e("div",{part:"links-container",class:"links-container"},e("a",{href:`${this.currentOutdoorCourse.pdf}${c.portalsFromProviders&&c.portalsFromProviders.length===1?"?portal="+c.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:ft}),e("span",{part:"label",class:"label"},"PDF")))),e("div",{part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&e("div",{part:"description-container",class:"description-container"},e("div",{part:"description-title",class:"description-title",ref:t=>this.descriptionRef=t},l[c.language].description),e("div",{part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&e("div",{part:"departure-container",class:"departure-container"},e("div",{part:"departure-title",class:"departure-title"},l[c.language].departure," : "),e("div",{part:"departure",innerHTML:s.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&e("div",{part:"cities-container",class:"cities-container"},e("div",{part:"cities-title",class:"cities-title"},l[c.language].crossedCities," : "),e("div",{part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((t=>{var e;return(e=c.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name})).join(", ")})),this.currentOutdoorCourse.advice&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"advice-container",class:"advice-container"},e("div",{part:"advice-title",class:"advice-title",ref:t=>this.recommendationRef=t},l[c.language].recommendations),this.currentOutdoorCourse.advice&&e("div",{part:"current-advice-container",class:"current-advice-container"},e("span",{part:"icon",class:"icon",innerHTML:ze}),e("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"accessibilities-container",class:"accessibilities-container"},e("div",{part:"accessibilites-title",class:"accessibilities-title"},l[c.language].accessibility),e("div",{part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),c.trekTouristicContents&&c.trekTouristicContents.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"touristic-content-container",class:"touristic-content-container"},e("div",{part:"touristic-content-title",class:"touristic-content-title",ref:t=>this.touristicContentsRef=t},l[c.language].touristicContents(c.trekTouristicContents.length)),e("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:t=>this.swiperTouristicContentsRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicContents.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:this.fontFamily,touristicContent:t,isInsideHorizontalList:true}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.touristicContentsSwiperScrollbar=t})))),c.trekTouristicEvents&&c.trekTouristicEvents.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"touristic-event-container",class:"touristic-event-container"},e("div",{part:"touristic-event-title",class:"touristic-event-title",ref:t=>this.touristicEventsRef=t},l[c.language].touristicEvents(c.trekTouristicEvents.length)),e("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:t=>this.swiperTouristicEventsRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicEvents.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:this.fontFamily,touristicEvent:t,isInsideHorizontalList:true}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.touristicEventsSwiperScrollbar=t})))),c.currentPois&&c.currentPois.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"pois-container",class:"pois-container"},e("div",{part:"pois-title",class:"pois-title",ref:t=>this.poiRef=t},l[c.language].pois(c.currentPois.length)),e("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentPois.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.poisSwiperScrollbar=t})))),this.weather&&s&&!this.offline&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"weather-container",class:"weather-container"},e("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${s.id}0#${this.colorPrimaryApp}`}))),this.grwApp&&e("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))}};_e.style=Le;const Oe=class{constructor(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorCourseId=undefined;this.portals=undefined}connectedCallback(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleOutdoorCourse()}async handleOutdoorCourse(){const t=await $("outdoorCourses",this.outdoorCourseId);if(t&&t.offline){this.handleOfflineOutdoorCourse(t)}else{this.handleOnlineOutdoorCourse()}}async handleOfflineOutdoorCourse(t){c.cities=await I("cities");c.districts=await I("districts");c.themes=await I("themes");c.touristicContentCategories=await I("touristicContentCategories");c.touristicEventTypes=await I("touristicEventTypes");c.poiTypes=await I("poiTypes");c.outdoorCourseTypes=await I("outdoorCourseTypes");const e=await I("pois",["url"]);const i=e.filter((e=>t.pois.some((t=>t===e.id))));c.currentPois=i;const r=await I("touristicContents",["url"]);const o=r.filter((e=>t.touristicContents.some((t=>t===e.id))));c.trekTouristicContents=o;const s=await I("touristicEvents",["url"]);const n=s.filter((e=>t.touristicEvents.some((t=>t===e.id))));c.trekTouristicEvents=n;await _(t,O,["url"]);c.currentOutdoorCourse=t}handleOnlineOutdoorCourse(){const t=[];t.push(!c.cities?Z(c.api,c.language,this.init):new Response("null"));t.push(!c.districts?q(c.api,c.language,this.init):new Response("null"));t.push(!c.themes?V(c.api,c.language,this.portals,this.init):new Response("null"));t.push(!c.outdoorCourseTypes?Ct(c.api,c.language,this.init):new Response("null"));t.push(mt(c.api,c.language,this.outdoorCourseId,this.init));t.push(fetch(`${c.api}touristiccontent_category/?language=${c.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init));t.push(gt(c.api,c.language,this.outdoorCourseId,this.init));t.push(fetch(`${c.api}touristicevent_type/?language=${c.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init));t.push(Lt(c.api,c.language,this.outdoorCourseId,this.init));t.push(fetch(`${c.api}poi_type/?language=${c.language}&fields=id,pictogram`,this.init));t.push(Mt(c.api,c.language,this.outdoorCourseId,this.init));try{Promise.all([...t]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,e,i,r,o,s,n,a,l,p,d])=>{c.networkError=false;if(t){c.cities=t.results}if(e){c.districts=e.results}if(i){c.themes=i.results}if(r){c.outdoorCourseTypes=r.results}if(o){c.trekTouristicContents=o.results}if(s){c.touristicContentCategories=s.results}if(n){c.trekTouristicEvents=n.results}if(a){c.touristicEventTypes=a.results}if(l){c.currentPois=l.results}if(p){c.poiTypes=p.results}c.currentOutdoorCourse=d}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}}disconnectedCallback(){this.controller.abort();c.networkError=false}render(){return e(i,{key:"c528699499e390381bf36072c33415d4b7562b90"})}};const Pe=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M580-240q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"/></svg>`;const Fe=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M460-160q-50 0-85-35t-35-85h80q0 17 11.5 28.5T460-240q17 0 28.5-11.5T500-280q0-17-11.5-28.5T460-320H80v-80h380q50 0 85 35t35 85q0 50-35 85t-85 35ZM80-560v-80h540q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43h-80q0-59 40.5-99.5T620-840q59 0 99.5 40.5T760-700q0 59-40.5 99.5T620-560H80Zm660 320v-80q26 0 43-17t17-43q0-26-17-43t-43-17H80v-80h660q59 0 99.5 40.5T880-380q0 59-40.5 99.5T740-240Z"/></svg>`;const Te=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m260-260 300-140 140-300-300 140-140 300Zm220-180q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520q17 0 28.5 11.5T520-480q0 17-11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>`;const Be=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-280h400v-80H280v80Zm200-120 160-160-56-56-64 62v-166h-80v166l-64-62-56 56 160 160Zm0 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>`;const je=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"/></svg>`;function Se(t,e,i,r,o,s,n,a,l){let c=`${t}outdoor_site/?language=${e}&root_sites_only=true&published=true`;i&&(c+=`&in_bbox=${i}`);r&&(c+=`&cities=${r}`);o&&(c+=`&districts=${o}`);s&&(c+=`&structures=${s}`);n&&(c+=`&themes=${n}`);a&&(c+=`&portals=${a}`);c+=`&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind&page_size=999`;return fetch(c,l)}function Ee(t,e,i,r){let o=`${t}outdoor_site/${i}/?language=${e}&published=true`;o+=`&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents&page_size=999`;return fetch(o,r)}function Ne(t,e,i){let r=`${t}outdoor_sitetype/?language=${e}&published=true`;return fetch(r,i)}function $e(t,e,i){let r=`${t}outdoor_practice/?language=${e}&published=true`;return fetch(r,i)}function Ie(t,e,i,r){return fetch(`${t}poi/?language=${e}&sites=${i}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`,r)}async function Ye(t){const e=await $("outdoorSites",t);return e&&e.offline}const De='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-site-detail{overflow:hidden}.swiper-related-outdoor-sites,.swiper-related-outdoor-courses{padding-right:32px;padding-left:32px;padding-bottom:20px}.related-outdoor-sites-title,.related-outdoor-courses-title{padding:0px 24px 0px 24px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;padding:0px 24px 0px 24px;margin-bottom:16px}.related-outdoor-sites-container,.related-outdoor-courses-container{font-size:16px;line-height:24px;font-weight:400}.related-outdoor-sites-container a,.related-outdoor-courses-container a{color:var(--color-primary-app)}grw-outdoor-site-detail{overflow:hidden}.outdoor-site-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.outdoor-site-options::-webkit-scrollbar{display:none}.outdoor-site-options .outdoor-site-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.outdoor-site-options .outdoor-site-option:hover{color:var(--color-primary-app)}@media (hover: none){.outdoor-site-options .outdoor-site-option:not(.selected-outdoor-site-option):hover{color:inherit}}.outdoor-site-options .outdoor-site-option:last-of-type{margin-right:16px}.outdoor-site-options .selected-outdoor-site-option{color:var(--color-primary-app)}.outdoor-site-options .outdoor-site-indicator-selected-outdoor-site-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.outdoor-site-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.outdoor-site-detail-container .outdoor-site-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-site-detail-container .outdoor-site-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-site-detail-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-site-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;gap:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-site-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-site-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-site-detail-container .downloads-container{padding:0px 24px 0px 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}.outdoor-site-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-site-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-site-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-site-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-site-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-site-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 0px 24px}.outdoor-site-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .weblinks-container{padding:0px 24px 0px 24px}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .information-desks-container,.outdoor-site-detail-container .pois-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .step-container,.outdoor-site-detail-container .touristic-content-container,.outdoor-site-detail-container .touristic-event-container,.outdoor-site-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-site-detail-container .ambiance a,.outdoor-site-detail-container .description-teaser a,.outdoor-site-detail-container .description-container a,.outdoor-site-detail-container .altimetric-profile-container a,.outdoor-site-detail-container .access-container a,.outdoor-site-detail-container .public-transport-container a,.outdoor-site-detail-container .advice-container a,.outdoor-site-detail-container .advised-parking-container a,.outdoor-site-detail-container .sensitive-areas-container a,.outdoor-site-detail-container .information-desks-container a,.outdoor-site-detail-container .pois-container a,.outdoor-site-detail-container .source-container a,.outdoor-site-detail-container .accessibilities-container a,.outdoor-site-detail-container .weather-container a,.outdoor-site-detail-container .parent-outdoor-site-container a,.outdoor-site-detail-container .step-container a,.outdoor-site-detail-container .touristic-content-container a,.outdoor-site-detail-container .touristic-event-container a,.outdoor-site-detail-container .weblinks-container a{color:var(--color-primary-app)}.outdoor-site-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-site-detail-container .access{margin-bottom:16px}.outdoor-site-detail-container .advised-parking-title{font-size:16px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{margin-bottom:16px}.outdoor-site-detail-container .step-title{margin-bottom:12px}.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-site-detail-container .parent-outdoor-site-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.outdoor-site-detail-container .parent-outdoor-site-title div{margin-right:4px}.outdoor-site-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.outdoor-site-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.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;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-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,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.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,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-site-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.outdoor-site-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-site-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.departure-container{padding-top:24px}.advice-container .icon{margin-right:8px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}';const He=De;const Re=1;const Ge=class{constructor(e){t(this,e);this.informationPlacesIsInViewport=r(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=r(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=r(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=r(this,"touristicEventsIsInViewport",7);this.sitesIsInViewport=r(this,"sitesIsInViewport",7);this.coursesIsInViewport=r(this,"coursesIsInViewport",7);this.downloadConfirm=r(this,"downloadConfirm",7);this.downloadedSuccessConfirm=r(this,"downloadedSuccessConfirm",7);this.deleteConfirm=r(this,"deleteConfirm",7);this.deleteSuccessConfirm=r(this,"deleteSuccessConfirm",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.enableOffline=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.rounded=true;this.offline=false;this.displayFullscreen=false;this.currentOutdoorSite=undefined;this.sources=undefined;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}onCloseDetailsModal(){document.body.style.overflow=`visible`;c.currentTouristicContent=null;c.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()}onTouristiceEventCardPress(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");const e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());const i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}}onTouristicContentCardPress(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");const e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());const i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}}onOpenDetailsModal(t){document.body.style.overflow=`hidden`;if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}}onDownloadPress(){this.downloadRootOutdoorSite()}onDeletePress(){this.deleteOutdoorSite()}handleObservers(){if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.informationPlacesIsInViewport.emit(e)}),{threshold:Re});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.poiIsInViewport.emit(e)}),{threshold:Re});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(e)}),{threshold:Re});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(e)}),{threshold:Re});this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef&&!this.siteObserver){this.siteObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.sitesIsInViewport.emit(e)}),{threshold:Re});this.siteObserver.observe(this.sitesRef)}if(this.coursesRef&&!this.courseObserver){this.courseObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.coursesIsInViewport.emit(e)}),{threshold:Re});this.courseObserver.observe(this.coursesRef)}}handleSwipers(){if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new at(this.swiperImagesRef,{modules:[lt,ct,pt,dt,ht],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}if(this.swiperRelatedOutdoorSitesRef&&!this.swiperRelatedOutdoorSites){this.swiperRelatedOutdoorSites=new at(this.swiperRelatedOutdoorSitesRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorSitesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new at(this.swiperInformationDesksRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperRelatedOutdoorCoursesRef&&!this.swiperRelatedOutdoorCourses){this.swiperRelatedOutdoorCourses=new at(this.swiperRelatedOutdoorCoursesRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorCoursesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new at(this.swiperTouristicContentsRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new at(this.swiperTouristicEventsRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new at(this.swiperPoisRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}}componentDidUpdate(){this.handleObservers();this.handleSwipers()}componentDidLoad(){this.handleObservers();this.handleSwipers()}async connectedCallback(){if(c.currentOutdoorSite){this.sources=c.sources.filter((t=>c.currentOutdoorSite.source.includes(t.id)));this.currentOutdoorSite=c.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}p("currentOutdoorSite",(async()=>{if(c.currentOutdoorSite){this.sources=c.sources.filter((t=>c.currentOutdoorSite.source.includes(t.id)));this.currentOutdoorSite=c.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}}))}handleFullscreen(t=false){if(!t){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}displayDownloadModal(){this.downloadConfirm.emit()}displayDeleteModal(){this.deleteConfirm.emit()}async downloadRootOutdoorSite(){const t=new AbortController;const e=t.signal;const i={cache:"default",signal:e};if(!c.outdoorSites){const t=await Se(c.api,c.language,c.inBboxFromProviders,c.citiesFromProviders,c.districtsFromProviders,c.structuresFromProviders,c.themesFromProviders,c.portalsFromProviders,i);c.outdoorSites=(await t.json()).results;c.currentOutdoorSites=c.outdoorSites}const r=(await Y("outdoorSites")).filter((t=>t.offline===true));let o;o=c.outdoorSites;o=o.filter((t=>r.findIndex((e=>e.id===t.id))===-1));await D("outdoorSites",o);await this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry);await H(c.themes,O);await H(c.outdoorSiteTypes,O);await H(c.outdoorPractices,O);await H(c.sources,O);await H(this.currentOutdoorSite,O,true,["url"]);await D("cities",c.cities);await D("districts",c.districts);await D("themes",c.themes);await D("outdoorSiteTypes",c.outdoorSiteTypes);await D("outdoorPractices",c.outdoorPractices);await D("outdoorRatings",c.outdoorRatings);await D("outdoorRatingsScale",c.outdoorRatingsScale);await D("pois",c.currentPois);await D("poiTypes",c.poiTypes);await D("informationDesks",c.currentInformationDesks);await D("outdoorCourseTypes",c.outdoorCourseTypes);await D("touristicEventTypes",c.touristicEventTypes);await D("touristicContentCategories",c.touristicContentCategories);await D("sources",c.sources);await H(c.currentPois,O,true,["url"]);await H(c.currentInformationDesks,O,true);await H(c.outdoorCourseTypes,O,true);await H(c.touristicContentCategories,O,true);await H(c.trekTouristicContents,O,true,["url"]);c.trekTouristicContents.forEach((t=>{t.offline=true}));await D("touristicContents",c.trekTouristicContents);await H(c.trekTouristicEvents,O,true,["url"]);c.trekTouristicEvents.forEach((t=>{t.offline=true}));await D("touristicEvents",c.trekTouristicEvents);if(c.currentOutdoorSite.courses&&c.currentOutdoorSite.courses.length>0){for(let t=0;t<c.currentOutdoorSite.courses.length;t++){const e=c.currentOutdoorSite.courses[t];await this.downloadOutdoorCourse(e)}}if(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0){for(let t=0;t<this.currentOutdoorSite.children.length;t++){const e=this.currentOutdoorSite.children[t];await this.downloadOutdoorSite(e)}}await D("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:c.currentPois.map((t=>t.id)),touristicContents:c.trekTouristicContents.map((t=>t.id)),touristicEvents:c.trekTouristicEvents.map((t=>t.id))})]);c.outdoorSites.find((t=>t.id===this.currentOutdoorSite.id)).offline=true;c.currentOutdoorSites.find((t=>t.id===this.currentOutdoorSite.id)).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit()}async downloadOutdoorSite(t){const e=new AbortController;const i=e.signal;const r={cache:"default",signal:i};const o=await Ee(c.api,c.language,t,r).then((t=>t.json()));await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,o.geometry);await H(o,O,true,["url"]);const s=(await Ie(c.api,c.language,t,r).then((t=>t.json()))).results;await D("pois",s);await H(s,O,true,["url"]);const n=(await bt(c.api,c.language,t,r).then((t=>t.json()))).results;await H(n,O,true,["url"]);n.forEach((t=>{t.offline=true}));await D("touristicContents",n);const a=(await vt(c.api,c.language,t,r).then((t=>t.json()))).results;await H(a,O,true,["url"]);a.forEach((t=>{t.offline=true}));await D("touristicEvents",a);await D("outdoorSites",[Object.assign(Object.assign({},o),{offline:true,pois:s.map((t=>t.id)),touristicContents:n.map((t=>t.id)),touristicEvents:a.map((t=>t.id))})]);if(o.courses&&o.courses.length>0){for(let t=0;t<o.courses.length;t++){const e=o.courses[t];await this.downloadOutdoorCourse(e)}}if(o.children&&o.children.length>0){for(let t=0;t<o.children.length;t++){const e=o.children[t];await this.downloadOutdoorSite(e)}}}async downloadOutdoorCourse(t){const e=new AbortController;const i=e.signal;const r={cache:"default",signal:i};const o=await Mt(c.api,c.language,t,r).then((t=>t.json()));await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,o.geometry);await H(o,O,true,["url"]);const s=(await Lt(c.api,c.language,t,r).then((t=>t.json()))).results;await D("pois",s);await H(s,O,true,["url"]);const n=(await mt(c.api,c.language,t,r).then((t=>t.json()))).results;await H(n,O,true,["url"]);n.forEach((t=>{t.offline=true}));await D("touristicContents",n);const a=(await gt(c.api,c.language,t,r).then((t=>t.json()))).results;await H(a,O,true,["url"]);a.forEach((t=>{t.offline=true}));await D("touristicEvents",a);await D("outdoorCourses",[Object.assign(Object.assign({},o),{offline:true,pois:s.map((t=>t.id)),touristicContents:n.map((t=>t.id)),touristicEvents:a.map((t=>t.id))})])}async deleteOutdoorSite(){const t=[];const e=await $("outdoorSites",this.currentOutdoorSite.id);this.deleteOfflineOutdoorSiteProperties(e);t.push(e);await D("outdoorSites",t);if(c.outdoorSites){delete c.outdoorSites.find((t=>t.id===this.currentOutdoorSite.id)).offline;if(!c.currentOutdoorSites){c.currentOutdoorSites=c.outdoorSites}delete c.currentOutdoorSites.find((t=>t.id===this.currentOutdoorSite.id)).offline}this.offline=false;this.deleteSuccessConfirm.emit()}async downloadGlobalTiles(t,e){const i=N.exports.tileLayerOffline(t,{attribution:e});const r=[];if(c.outdoorSites){for(const t of c.outdoorSites){r.push(fe(t.geometry).geometry.coordinates)}}const o=E.latLngBounds(r.map((t=>[t[1],t[0]])));await R(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)}async downloadOutdoorSiteTiles(t,e,i){const r=N.exports.tileLayerOffline(t,{attribution:e});const o=Kt(i);const s=E.latLngBounds([o[1],o[0]],[o[3],o[2]]);await R(r,s,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)}deleteOfflineOutdoorSiteProperties(t){delete t.offline;delete t.pois;delete t.touristicContents;delete t.touristicEvents}render(){const t=o(`${""}assets/default-image.svg`);const r=c.outdoorPractices&&this.currentOutdoorSite&&c.outdoorPractices.find((t=>t.id===this.currentOutdoorSite.practice));const s=c.cities&&this.currentOutdoorSite&&c.cities.find((t=>t.id===this.currentOutdoorSite.cities[0]));const n=c.outdoorRatings&&this.currentOutdoorSite&&c.outdoorRatings.filter((t=>this.currentOutdoorSite.ratings.includes(t.id)));const p=n&&[...new Set(n.map((t=>t.scale)))];const d=p&&c.outdoorRatingsScale.filter((t=>p.includes(t.id)));return e(i,{key:"c8c82a1c228977563d619f9cf46f8ebe3e859c2d",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"164px":"124px"}},this.currentOutdoorSite&&e("div",{part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:t=>this.outdoorSiteDetailContainerRef=t},e("div",{part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:t=>this.presentationRef=t},e("div",{part:"swiper-images",class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((t=>t.type==="image")).length>0?this.currentOutdoorSite.attachments.filter((t=>t.type==="image")).map((i=>{const r=[i.legend,i.author].filter(Boolean).join(" - ");return e("div",{part:"swiper-slide",class:"swiper-slide"},this.displayFullscreen&&e("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},e("span",{part:"outdoor-site-close-fullcreen-icon",class:"outdoor-site-close-fullcreen-icon",innerHTML:ut})),e("div",{part:"outdoor-site-image-legend",class:"outdoor-site-image-legend"},r),e("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:this.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:()=>this.handleFullscreen(),onerror:e=>{e.target.onerror=null;e.target.className="outdoor-site-img default-outdoor-site-img";e.target.src=t},alt:i.legend}))})):e("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:t,loading:"lazy",alt:""})),e("div",null,e("div",{part:"swiper-pagination",class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),e("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),e("div",{part:"swiper-button-next",class:"swiper-button-next",ref:t=>this.nextElImagesRef=t})))),e("div",{part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),c.themes&&c.themes.filter((t=>this.currentOutdoorSite.themes.includes(t.id))).length>0&&e("div",{part:"themes-container",class:"themes-container"},c.themes.filter((t=>this.currentOutdoorSite.themes.includes(t.id))).map((t=>e("div",{part:"theme",class:"theme"},t.label)))),e("div",{part:"sub-container",class:"sub-container"},e("div",{part:"icons-labels-container",class:"icons-labels-container"},r&&e("div",{part:"icon-label",class:"icon-label practice"},r.pictogram&&e("img",{part:"icon",class:"icon",src:r.pictogram,alt:""}),e("span",{part:"label",class:"label"},r.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&e("div",{part:"row",class:"row"},e("span",{part:"icon",class:"icon",innerHTML:Te}),e("span",{part:"label",class:"label"},this.currentOutdoorSite.orientation.map((t=>l[c.language].cardinalPoints[t.toLowerCase()])).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&e("div",{part:"row",class:"row"},e("span",{part:"icon",class:"icon",innerHTML:Fe}),e("span",{part:"label",class:"label"},this.currentOutdoorSite.wind.map((t=>l[c.language].cardinalPoints[t.toLowerCase()])).join(", "))),this.currentOutdoorSite.period&&e("div",{part:"row",class:"row"},e("span",{part:"icon",class:"icon",innerHTML:Pe}),e("span",{part:"label",class:"label"},this.currentOutdoorSite.period)),n&&d.map((t=>e("div",{part:"row",class:"row"},`${t.name} : ${n.filter((e=>e.scale===t.id)).map((t=>t.name)).join(", ")}`))))),e("div",{part:"divider",class:"divider"}),e("div",{part:"downloads-container",class:"downloads-container"},e("div",{part:"download-title",class:"download-title"},l[c.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&e("button",{part:"offline-button",class:"offline-button",onClick:()=>this.displayDownloadModal()},e("span",{part:"icon",class:"icon",innerHTML:Be}),e("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&e("button",{part:"offline-button",class:"offline-button",onClick:()=>this.displayDeleteModal()},e("span",{part:"icon",class:"icon",innerHTML:je}),e("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),e("div",{part:"links-container",class:"links-container"},e("a",{href:`${this.currentOutdoorSite.pdf}${c.portalsFromProviders&&c.portalsFromProviders.length===1?"?portal="+c.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:ft}),e("span",{part:"label",class:"label"},"PDF")))),e("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&e("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&e("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),e("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description&&e("div",{part:"description-container",class:"description-container"},e("div",{part:"description-title",class:"description-title",ref:t=>this.descriptionRef=t},l[c.language].description),e("div",{part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&e("div",{part:"departure-container",class:"departure-container"},e("div",{part:"departure-title",class:"departure-title"},l[c.language].departure," : "),e("div",{part:"departure",innerHTML:s.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&e("div",{part:"cities-container",class:"cities-container"},e("div",{part:"cities-title",class:"cities-title"},l[c.language].crossedCities," : "),e("div",{part:"cities",innerHTML:this.currentOutdoorSite.cities.map((t=>{var e;return(e=c.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name})).join(", ")})),c.currentPois&&c.currentPois.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"pois-container",class:"pois-container"},e("div",{part:"pois-title",class:"pois-title",ref:t=>this.poiRef=t},l[c.language].pois(c.currentPois.length)),e("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentPois.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.poisSwiperScrollbar=t})))),this.currentOutdoorSite.advice&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"advice-container",class:"advice-container"},e("div",{part:"advice-title",class:"advice-title",ref:t=>this.recommendationRef=t},l[c.language].recommendations),this.currentOutdoorSite.advice&&e("div",{part:"current-advice-container",class:"current-advice-container"},e("span",{part:"icon",class:"icon",innerHTML:ze}),e("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"accessibilities-container",class:"accessibilities-container"},e("div",{part:"accessibilites-title",class:"accessibilities-title"},l[c.language].accessibility),e("div",{part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),c.currentRelatedOutdoorSites&&c.currentRelatedOutdoorSites.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"related-outdoor-sites-container",class:"related-outdoor-sites-container"},e("div",{part:"related-outdoor-sites-title",class:"related-outdoor-sites-title",ref:t=>this.sitesRef=t},l[c.language].relatedOutdoorSites(c.currentRelatedOutdoorSites.length)),e("div",{part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:t=>this.swiperRelatedOutdoorSitesRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentRelatedOutdoorSites.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-outdoor-site-card",{exportparts:"related-outdoor-sites-card,related-outdoor-sites-img-container,swiper-related-outdoor-sites,swiper-wrapper,swiper-slide,related-outdoor-sites-img,default-related-outdoor-sites-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-sites-sub-container,related-outdoor-sites-sub-container,related-outdoor-sites-type-img,related-outdoor-sites-type-name,related-outdoor-sites-name,related-outdoor-sites-date-container,related-outdoor-sites-date,related-outdoor-sites-more-detail-container,more-details-button",fontFamily:this.fontFamily,outdoorSite:t,isInsideHorizontalList:true}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.relatedOutdoorSitesSwiperScrollbar=t})))),c.currentRelatedOutdoorCourses&&c.currentRelatedOutdoorCourses.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"related-outdoor-courses-container",class:"related-outdoor-courses-container"},e("div",{part:"related-outdoor-courses-title",class:"related-outdoor-courses-title",ref:t=>this.coursesRef=t},l[c.language].relatedOutdoorCourses(c.currentRelatedOutdoorCourses.length)),e("div",{part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:t=>this.swiperRelatedOutdoorCoursesRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentRelatedOutdoorCourses.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-outdoor-course-card",{exportparts:"related-outdoor-courses-card,related-outdoor-courses-img-container,swiper-related-outdoor-courses,swiper-wrapper,swiper-slide,related-outdoor-courses-img,default-related-outdoor-courses-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-courses-sub-container,related-outdoor-courses-sub-container,related-outdoor-courses-type-img,related-outdoor-courses-type-name,related-outdoor-courses-name,related-outdoor-courses-date-container,related-outdoor-courses-date,related-outdoor-courses-more-detail-container,more-details-button",fontFamily:this.fontFamily,outdoorCourse:t,isInsideHorizontalList:true}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.relatedOutdoorCoursesSwiperScrollbar=t})))),c.currentInformationDesks&&c.currentInformationDesks.filter((t=>this.currentOutdoorSite.information_desks.includes(t.id))).length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"information-desks-container",class:"information-desks-container"},e("div",{part:"information-desks-title",class:"information-desks-title",ref:t=>this.informationPlacesRef=t},l[c.language].informationPlaces),e("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentInformationDesks.filter((t=>this.currentOutdoorSite.information_desks.includes(t.id))).map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:t}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.informationDesksContentsSwiperScrollbar=t})))),c.trekTouristicContents&&c.trekTouristicContents.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"touristic-content-container",class:"touristic-content-container"},e("div",{part:"touristic-content-title",class:"touristic-content-title",ref:t=>this.touristicContentsRef=t},l[c.language].touristicContents(c.trekTouristicContents.length)),e("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:t=>this.swiperTouristicContentsRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicContents.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:this.fontFamily,touristicContent:t,isInsideHorizontalList:true,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.touristicContentsSwiperScrollbar=t})))),c.trekTouristicEvents&&c.trekTouristicEvents.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"touristic-event-container",class:"touristic-event-container"},e("div",{part:"touristic-event-title",class:"touristic-event-title",ref:t=>this.touristicEventsRef=t},l[c.language].touristicEvents(c.trekTouristicEvents.length)),e("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:t=>this.swiperTouristicEventsRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicEvents.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:this.fontFamily,touristicEvent:t,isInsideHorizontalList:true,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.touristicEventsSwiperScrollbar=t})))),this.weather&&s&&!this.offline&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"weather-container",class:"weather-container"},e("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${s.id}0#${this.colorPrimaryApp}`}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"weblinks-container",class:"weblinks-container"},e("div",{part:"weblinks-title",class:"weblinks-title"},l[c.language].learnMore),this.currentOutdoorSite.web_links.map((t=>e("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&e("img",{src:t.category.pictogram,alt:t.category.label}),t.name))))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"source-container",class:"source-container"},e("div",{part:"source-title",class:"source-title"},l[c.language].sources),this.sources.map((t=>e("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&e("img",{src:t.pictogram,alt:""}),e("div",null,e("div",{part:"source-name",class:"source-name",innerHTML:t.name}),e("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website}))))))),this.grwApp&&e("div",{part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&e(a,null,this.showTouristicContentDetailsModal&&e("grw-touristic-content-provider",{api:c.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&e("grw-touristic-event-provider",{api:c.api,"touristic-event-id":this.modalDetailsId})))}};Ge.style=He;const Ze=class{constructor(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorSiteId=undefined;this.portals=undefined}connectedCallback(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}c.portalsFromProviders=this.portals;this.handleOutdoorSite()}async handleOutdoorSite(){const t=await $("outdoorSites",this.outdoorSiteId);if(t&&t.offline){this.handleOfflineOutdoorSite(t)}else{this.handleOnlineOutdoorSite()}}async handleOfflineOutdoorSite(t){c.cities=await I("cities");c.sources=await I("sources");c.districts=await I("districts");c.themes=await I("themes");c.outdoorSiteTypes=await I("outdoorSiteTypes");c.outdoorPractices=await I("outdoorPractices");c.outdoorRatings=await I("outdoorRatings");c.outdoorRatingsScale=await I("outdoorRatingsScale");c.touristicContentCategories=await I("touristicContentCategories");c.touristicEventTypes=await I("touristicEventTypes");c.poiTypes=await I("poiTypes");c.outdoorCourseTypes=await I("outdoorCourseTypes");const e=await I("informationDesks");const i=e.filter((e=>t.information_desks.some((t=>t===e.id))));c.currentInformationDesks=i;const r=await I("pois",["url"]);const o=r.filter((e=>t.pois.some((t=>t===e.id))));c.currentPois=o;const s=await I("touristicContents",["url"]);const n=s.filter((e=>t.touristicContents.some((t=>t===e.id))));c.trekTouristicContents=n;const a=await I("touristicEvents",["url"]);const l=a.filter((e=>t.touristicEvents.some((t=>t===e.id))));c.trekTouristicEvents=l;const p=await I("outdoorSites",["url"]);const d=p.filter((e=>t.children.some((t=>t===e.id))));c.currentRelatedOutdoorSites=d;const h=await I("outdoorCourses",["url"]);const u=h.filter((e=>t.courses.some((t=>t===e.id))));c.currentRelatedOutdoorCourses=u;await _(t,O,["url"]);c.currentOutdoorSite=t}handleOnlineOutdoorSite(){const t=[];t.push(!c.cities?Z(c.api,c.language,this.init):new Response("null"));t.push(!c.sources?Q(c.api,c.language,this.init):new Response("null"));t.push(!c.districts?q(c.api,c.language,this.init):new Response("null"));t.push(!c.themes?V(c.api,c.language,this.portals,this.init):new Response("null"));t.push(!c.outdoorSiteTypes?Ne(c.api,c.language,this.init):new Response("null"));t.push(!c.outdoorPractices?$e(c.api,c.language,this.init):new Response("null"));t.push(!c.outdoorRatings?fetch(`${c.api}outdoor_rating/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));t.push(!c.outdoorRatingsScale?fetch(`${c.api}outdoor_ratingscale/?language=${c.language}&fields=id,name`,this.init):new Response("null"));t.push(U(c.api,c.language,this.init));t.push(bt(c.api,c.language,this.outdoorSiteId,this.init));t.push(fetch(`${c.api}touristiccontent_category/?language=${c.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init));t.push(vt(c.api,c.language,this.outdoorSiteId,this.init));t.push(fetch(`${c.api}touristicevent_type/?language=${c.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init));t.push(Ie(c.api,c.language,this.outdoorSiteId,this.init));t.push(fetch(`${c.api}poi_type/?language=${c.language}&fields=id,pictogram`,this.init));t.push(!c.outdoorCourseTypes?Ct(c.api,c.language,this.init):new Response("null"));t.push(Ee(c.api,c.language,this.outdoorSiteId,this.init));try{Promise.all([...t]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,e,i,r,o,s,n,a,l,p,d,h,u,f,m,g,b])=>{c.networkError=false;if(b&&b.children.length>0){const t=[];t.push(...b.children);const e=[];t.forEach((t=>{e.push(Ee(c.api,c.language,t,this.init))}));c.currentRelatedOutdoorSites=await Promise.all([...e]).then((t=>Promise.all(t.map((t=>t.json())))))}if(b&&b.courses.length>0){const t=[];t.push(...b.courses);const e=[];t.forEach((t=>{e.push(Mt(c.api,c.language,t,this.init))}));c.currentRelatedOutdoorCourses=await Promise.all([...e]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){c.cities=t.results}if(e){c.sources=e.results}if(i){c.districts=i.results}if(r){c.themes=r.results}if(o){c.outdoorSiteTypes=o.results}if(s){c.outdoorPractices=s.results}if(n){c.outdoorRatings=n.results}if(a){c.outdoorRatingsScale=a.results}if(l){c.currentInformationDesks=l.results}if(p){c.trekTouristicContents=p.results}if(d){c.touristicContentCategories=d.results}if(h){c.trekTouristicEvents=h.results}if(u){c.touristicEventTypes=u.results}if(f){c.currentPois=f.results}if(m){c.poiTypes=m.results}if(g){c.outdoorCourseTypes=g.results}c.currentOutdoorSite=b}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}}disconnectedCallback(){this.controller.abort();c.networkError=false}render(){return e(i,{key:"5ebb92dda19aeacaca9299268455c989611dfcb3"})}};const qe=":host{width:100%;height:100%;overflow-y:auto}grw-outdoor-site-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-outdoor-sites-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.outdoor-sites-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";const Ve=qe;const Qe=class{constructor(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}connectedCallback(){this.handleInfiniteScrollEvent(true);if(c.currentOutdoorSites){this.outdoorSitesToDisplay=[...c.currentOutdoorSites.slice(0,this.step)]}p("currentOutdoorSites",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(c.currentOutdoorSites){this.outdoorSitesToDisplay=[...c.currentOutdoorSites.slice(0,this.step)]}}));p("outdoorSitesWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(c.outdoorSitesWithinBounds){this.outdoorSitesToDisplay=[...c.outdoorSitesWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<c.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=c.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=c.outdoorSitesWithinBounds.length?c.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(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}}disconnectedCallback(){this.handleInfiniteScrollEvent(false)}render(){return e(i,{key:"bee368e2d6a322157ce586f2aa6caec9892da0d5",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.outdoorSitesWithinBounds&&e("div",{part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},`${c.outdoorSitesWithinBounds.length} ${c.outdoorSitesWithinBounds.length>1?l[c.language].outdoorSites:l[c.language].outdoorSite}`),e("div",{key:"3a67a6203aee1aa789e3af0836fccf424ec3a885",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((t=>e("grw-outdoor-site-card",{outdoorSite:t,exportparts:"outdoor-site-card,outdoor-site-img-container,outdoor-site-img,outdoor-site-sub-container,outdoor-site-departure,outdoor-site-name,outdoor-site-themes-container,outdoor-site-theme,outdoor-site-icons-labels-container,outdoor-site-icon-label,outdoor-site-icon,outdoor-site-label",key:`outdoorSite-${t.id}`,"is-large-view":this.isLargeView,fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})))),e("div",{key:"6688a1638e054127905a724cf489e600ca5b7e44",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return n(this)}};Qe.style=Ve;const Ue=class{constructor(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.offline=false}connectedCallback(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}c.portalsFromProviders=this.portals;c.inBboxFromProviders=this.inBbox;c.citiesFromProviders=this.cities;c.districtsFromProviders=this.districts;c.structuresFromProviders=this.structures;c.themesFromProviders=this.themes;this.handleOutdoorSites()}async handleOutdoorSites(){if(this.offline){this.handleOfflineOutdoorSites()}else{this.handleOnlineOutdoorSites()}}async handleOfflineOutdoorSites(){let t=await Y("outdoorSites");t.filter((t=>t.parents&&t.parents.length===0));if(t&&t.length>0){c.cities=await I("cities");c.districts=await I("districts");c.themes=await I("themes");c.outdoorSiteTypes=await I("outdoorSiteTypes");c.outdoorPractices=await I("outdoorPractices");t=await I("outdoorSites");c.outdoorSites=t;c.currentOutdoorSites=t}else{c.networkError=true}}handleOnlineOutdoorSites(){const t=[];t.push(!c.cities?Z(c.api,c.language,this.init):new Response("null"));t.push(!c.districts?q(c.api,c.language,this.init):new Response("null"));t.push(!c.themes?V(c.api,c.language,this.portals,this.init):new Response("null"));t.push(!c.outdoorSiteTypes?Ne(c.api,c.language,this.init):new Response("null"));t.push(!c.outdoorPractices?$e(c.api,c.language,this.init):new Response("null"));t.push(Se(c.api,c.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all([...t]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,e,i,r,o,s])=>{c.networkError=false;if(t){c.cities=t.results}if(e){c.districts=e.results}if(i){c.themes=i.results}if(r){c.outdoorSiteTypes=r.results}if(o){c.outdoorPractices=o.results}const n=[];for(let t=0;t<s.results.length;t++){const e=await Ye(s.results[t].id);n.push(Object.assign(Object.assign({},s.results[t]),{offline:e}))}c.outdoorSites=n;c.currentOutdoorSites=n})).catch((async()=>{await this.handleOfflineOutdoorSites()}))}disconnectedCallback(){this.controller.abort();c.networkError=false}render(){return e(i,{key:"50538523d43b534e2fe0de7663918b3a912ab95d"})}};const Xe=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>`;const We=":host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex;color:var(--color-on-primary-container);position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>\");background-size:20px 20px;height:20px;width:20px}";const Je=We;const Ke=class{constructor(e){t(this,e);this.fontFamily="Roboto"}onSearchChange(t){c.searchValue=t.target.value;if(c.mode==="treks"){c.currentTreks=h()}else if(c.mode==="touristicContents"){c.currentTouristicContents=g()}else if(c.mode==="touristicEvents"){c.currentTouristicEvents=b()}else if(c.mode==="outdoor"){c.currentOutdoorSites=v()}}render(){return e(i,{key:"16f5be92903a47127f23f924a5cfbe6a3f64c3fa",style:{"--font-family":this.fontFamily}},e("span",{key:"714dfed532c7f675f03bae2e447113a7460aaa51",part:"icon",class:"icon",innerHTML:Xe}),e("input",{key:"aedc4289d1524c0a8f088c6a08fb77982e19b4f5",part:"search-input",class:"search-input",onInput:t=>this.onSearchChange(t),type:"search",placeholder:"Rechercher",value:c.searchValue}))}};Ke.style=Je;const ti=".segmented-buttons-container{font-family:var(--font-family);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}";const ei=ti;const ii=class{constructor(e){t(this,e);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}changeMode(t){c.searchValue="";if(t==="treks"){d.forEach((t=>{c[t.property]&&c[t.property].forEach((t=>t.selected=false))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;if(c.treks){c.currentTreks=[...h()]}}else if(t==="touristicContents"){u.forEach((t=>{c[t.property]&&c[t.property].forEach((t=>t.selected=false))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;if(c.touristicContents){c.currentTouristicContents=[...g()]}}else if(t==="touristicEvents"){f.forEach((t=>{c[t.property]&&c[t.property].forEach((t=>t.selected=false))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;if(c.touristicEvents){c.currentTouristicEvents=[...b()]}}else if(t==="outdoor"){m.forEach((t=>{c[t.property]&&c[t.property].forEach((t=>t.selected=false))}));c.selectedActivitiesFilters=0;c.selectedThemesFilters=0;c.selectedLocationFilters=0;if(c.outdoorSites){c.currentOutdoorSites=[...v()]}}c.mode=t}render(){return e(i,{key:"9c2cb06725baba18e729619923fe5db99962ed77",style:{"--font-family":this.fontFamily}},e("div",{key:"6b63e32975c790768a185bf37f4a0ed22a34f35d",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&e("label",{part:"segment",class:`segment${c.mode==="treks"?" selected-segment":""}`,onClick:()=>this.changeMode("treks")},l[c.language].home.segment.treks),this.outdoor&&e("label",{part:"segment",class:`segment${c.mode==="outdoor"?" selected-segment":""}`,onClick:()=>this.changeMode("outdoor")},l[c.language].home.segment.outdoorSites),this.touristicContents&&e("label",{part:"segment",class:`segment${c.mode==="touristicContents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicContents")},l[c.language].home.segment.touristicContents),this.touristicEvents&&e("label",{part:"segment",class:`segment${c.mode==="touristicEvents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicEvents")},l[c.language].home.segment.touristicEvents)))}};ii.style=ei;const ri=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m476-80 182-480h84L924-80h-84l-43-122H603L560-80h-84ZM160-200l-56-56 202-202q-35-35-63.5-80T190-640h84q20 39 40 68t48 58q33-33 68.5-92.5T484-720H40v-80h280v-80h80v80h280v80H564q-21 72-63 148t-83 116l96 98-30 82-122-125-202 201Zm468-72h144l-72-204-72 204Z"/></svg>`;const oi=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}";const si=oi;const ni=class{constructor(e){t(this,e)}handleSelect(t){c.treks=null;c.currentTreks=null;c.currentTrek=null;c.language=t.target.value}render(){return e(i,{key:"94cdba3dad86c8e343d7c78c61c733efb87e2c31"},e("span",{key:"70cd7e019fadd7ed95a3af40631a9034308373d4",part:"select-language-icon",class:"icon",innerHTML:ri}),e("select",{key:"ad2f4bcae397ae9c87083a7efa98202fcca8777f",part:"select-language-select",onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},c.languages.map((t=>e("option",{part:"select-language-option",selected:t===c.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())))))}};ni.style=si;const ai=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`;const li='.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}';const ci=li;const pi=class{constructor(e){t(this,e);this.action=undefined;this.fontFamily="Roboto";this.checked=undefined}render(){return e(i,{key:"e301ad5ef9d7bb3d393d0d9d28580f3bcefae389",style:{"--font-family":this.fontFamily}},e("label",{key:"00e943e99e06f1d9db67c98e3d9f906c4123fbc7",class:"md3 switch"},e("input",{key:"a03eb811a5fa44d879929390665cbaf5efc3319d",checked:this.checked,onChange:()=>this.action(),type:"checkbox",id:"darkmode",name:"darkmode"}),e("span",{key:"112b77b294ce8b078b149574741be9d515a71da9",class:"slider"},e("span",{key:"91e64af80881bab4d345d8488216ad90a18363f8",part:"icon",class:"icon",innerHTML:ai}))))}};pi.style=ci;const di=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";const hi=di;const ui=class{constructor(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}connectedCallback(){this.handleInfiniteScrollEvent(true);if(c.currentTouristicContents){this.touristicContentsToDisplay=[...c.currentTouristicContents.slice(0,this.step)]}p("currentTouristicContents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(c.currentTouristicContents){this.touristicContentsToDisplay=[...c.currentTouristicContents.slice(0,this.step)]}}));p("touristicContentsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(c.touristicContentsWithinBounds){this.touristicContentsToDisplay=[...c.touristicContentsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<c.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=c.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=c.touristicContentsWithinBounds.length?c.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(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}}disconnectedCallback(){this.handleInfiniteScrollEvent(false)}render(){return e(i,{key:"e0ee344092f60c20a56ccf6052d60015401a7f6e",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.touristicContentsWithinBounds&&e("div",{part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},`${c.touristicContentsWithinBounds.length} ${c.touristicContentsWithinBounds.length>1?l[c.language].home.touristicContents:l[c.language].home.touristicContent}`),e("div",{key:"57bdc926890c9b1f49f081a0fcf5959dbb2c3831",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((t=>e("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:this.fontFamily,key:`touristic-content-${t.id}`,touristicContent:t,"is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})))),e("div",{key:"eb4269b384bc8a6643629dcd3d428d8bef5ee23f",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return n(this)}};ui.style=hi;const fi=class{constructor(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}connectedCallback(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicContents()}handleTouristicContents(){let t=`${c.api}touristiccontent/?language=${c.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);t+=`&fields=id,name,attachments,category,geometry,cities,districts&page_size=999`;const e=[];e.push(!c.cities?fetch(`${c.api}city/?language=${c.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));e.push(!c.districts?fetch(`${c.api}district/?language=${c.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));e.push(!c.touristicContentCategories?fetch(`${c.api}touristiccontent_category/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));try{Promise.all([...e,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,e,i,r])=>{c.networkError=false;if(t){c.cities=t.results}if(e){c.districts=e.results}if(i){c.touristicContentCategories=i.results}c.touristicContents=r.results;c.currentTouristicContents=r.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}}disconnectedCallback(){this.controller.abort();c.networkError=false}render(){return e(i,{key:"8ae3fe40968176999c99756f42f6fda279b2efd0"})}};const mi=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";const gi=mi;const bi=class{constructor(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}connectedCallback(){this.handleInfiniteScrollEvent(true);if(c.currentTouristicEvents){this.touristicEventsToDisplay=[...c.currentTouristicEvents.slice(0,this.step)]}p("currentTouristicEvents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(c.currentTouristicContents){this.touristicEventsToDisplay=[...c.currentTouristicEvents.slice(0,this.step)]}}));p("touristicEventsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(c.touristicEventsWithinBounds){this.touristicEventsToDisplay=[...c.touristicEventsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<c.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=c.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=c.touristicEventsWithinBounds.length?c.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(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}}disconnectedCallback(){this.handleInfiniteScrollEvent(false)}render(){return e(i,{key:"96e2feda4a638591f01da5cceda53cf014a92312",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.touristicEventsWithinBounds&&e("div",{part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},`${c.touristicEventsWithinBounds.length} ${c.touristicEventsWithinBounds.length>1?l[c.language].home.touristicEvents:l[c.language].home.touristicEvent}`),e("div",{key:"f3e7b4260b9f1ce0aa290e2fc5f64856ec5acf97",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((t=>e("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",key:`touristic-event-${t.id}`,touristicEvent:t,"is-large-view":this.isLargeView,fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})))),e("div",{key:"e3b5c1362aeb5efc52b40b9411c6dd7547db7f8d",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return n(this)}};bi.style=gi;const vi=class{constructor(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}connectedCallback(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}this.handleTouristicEvents()}handleTouristicEvents(){let t=`${c.api}touristicevent/?language=${c.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);t+=`&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999`;const e=[];e.push(!c.cities?fetch(`${c.api}city/?language=${c.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));e.push(!c.districts?fetch(`${c.api}district/?language=${c.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));e.push(!c.touristicEventTypes?fetch(`${c.api}touristicevent_type/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));try{Promise.all([...e,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,e,i,r])=>{c.networkError=false;if(t){c.cities=t.results}if(e){c.districts=e.results}if(i){c.touristicEventTypes=i.results}c.touristicEvents=r.results;c.currentTouristicEvents=r.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}}disconnectedCallback(){this.controller.abort();c.networkError=false}render(){return e(i,{key:"0475c63d6aebc11cf0059dc2d3bf3bb7f48b1fa7"})}};const wi=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M240-80q-33 0-56.5-23.5T160-160v-480q0-56 34-98t86-56v-86h120v80h160v-80h120v86q52 14 86 56t34 98v480q0 33-23.5 56.5T720-80H240Zm0-80h480v-480q0-33-23.5-56.5T640-720H320q-33 0-56.5 23.5T240-640v480Zm340-160h80v-160H300v80h280v80ZM480-440Z"/></svg>`;const ki='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{z-index:9;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0px;left:0px;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-detail-container .sub-container{padding:24px 24px 0px 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;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-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 .downloads-container{padding:0px 24px 0px 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-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.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 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.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 .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.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 .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.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 .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.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 .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.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 .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{color:var(--reference-point-color);background:var(--reference-point-background-color);position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;border-radius:12px;font-weight:bold;font-size:0.8em;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.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;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom: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:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-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,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.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,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}';const xi=ki;const yi=1;const Ai={visible:true,indicator:false,ref:"presentationOptionRef"};const zi={visible:false,indicator:false,ref:"stepsOptionRef"};const Ci={visible:false,indicator:false,ref:"descriptionOptionRef"};const Li={visible:false,indicator:false,ref:"poisOptionRef"};const Mi={visible:false,indicator:false,ref:"recommendationsOptionRef"};const _i={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};const Oi={visible:false,indicator:false,ref:"informationPlacesOptionRef"};const Pi={visible:false,indicator:false,ref:"accessibilityOptionRef"};const Fi={visible:false,indicator:false,ref:"touristicContentsOptionRef"};const Ti={visible:false,indicator:false,ref:"touristicEventsOptionRef"};const Bi={presentation:Ai,steps:zi,description:Ci,pois:Li,recommendations:Mi,sensitiveArea:_i,informationPlaces:Oi,accessibility:Pi,touristicContents:Fi,touristicEvents:Ti};const ji=class{constructor(e){t(this,e);this.descriptionIsInViewport=r(this,"descriptionIsInViewport",7);this.parkingIsInViewport=r(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=r(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=r(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=r(this,"poiIsInViewport",7);this.stepsIsInViewport=r(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=r(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=r(this,"touristicEventsIsInViewport",7);this.parentTrekPress=r(this,"parentTrekPress",7);this.downloadConfirm=r(this,"downloadConfirm",7);this.downloadedSuccessConfirm=r(this,"downloadedSuccessConfirm",7);this.deleteConfirm=r(this,"deleteConfirm",7);this.deleteSuccessConfirm=r(this,"deleteSuccessConfirm",7);this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};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.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.offline=false;this.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.rounded=true;this.weather=false;this.isLargeView=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}onCloseDetailsModal(){document.body.style.overflow=`visible`;c.currentTouristicContent=null;c.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()}onTouristiceEventCardPress(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");const e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());const i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}}onTouristicContentCardPress(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");const e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());const i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}}onOpenDetailsModal(t){document.body.style.overflow=`hidden`;if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}}componentDidUpdate(){this.handleObservers();this.handleSwipers()}handleSwipers(){if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new at(this.swiperImagesRef,{modules:[lt,ct,pt,dt,ht],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen&&!this.offline?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}if(this.swiperStepRef&&!this.swiperStep){this.swiperStep=new at(this.swiperStepRef,{modules:[dt,ht,Ae],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new at(this.swiperPoisRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new at(this.swiperInformationDesksRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new at(this.swiperTouristicContentsRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new at(this.swiperTouristicEventsRef,{modules:[dt,ht,Ae],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}}handleObservers(){if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.stepsIsInViewport.emit(e);this.options=Object.assign(Object.assign({},this.options),{steps:Object.assign(Object.assign({},this.defaultOptions.steps),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.descriptionIsInViewport.emit(e);this.options=Object.assign(Object.assign({},this.options),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.parkingIsInViewport.emit(e)}),{threshold:yi});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.sensitiveAreaIsInViewport.emit(e);this.options=Object.assign(Object.assign({},this.options),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.informationPlacesIsInViewport.emit(e);this.options=Object.assign(Object.assign({},this.options),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{accessibility:Object.assign(Object.assign({},this.defaultOptions.accessibility),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.poiIsInViewport.emit(e);this.options=Object.assign(Object.assign({},this.options),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(e);this.options=Object.assign(Object.assign({},this.options),{touristicContents:Object.assign(Object.assign({},this.defaultOptions.touristicContents),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(e);this.options=Object.assign(Object.assign({},this.options),{touristicEvents:Object.assign(Object.assign({},this.defaultOptions.touristicEvents),{indicator:e})});this.handleIndicatorSelectedTrekOption()}),{threshold:yi});this.touristicEventObserver.observe(this.touristicEventsRef)}}componentDidLoad(){this.handleObservers();this.handleSwipers()}async connectedCallback(){if(c.currentTrek){this.offline=c.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=c.difficulties.find((t=>t.id===c.currentTrek.difficulty));this.route=c.routes.find((t=>t.id===c.currentTrek.route));this.practice=c.practices.find((t=>t.id===c.currentTrek.practice));this.themes=c.themes.filter((t=>c.currentTrek.themes.includes(t.id)));this.labels=c.labels.filter((t=>c.currentTrek.labels.includes(t.id)));this.sources=c.sources.filter((t=>c.currentTrek.source.includes(t.id)));this.accessibilities=c.accessibilities.filter((t=>c.currentTrek.accessibilities.includes(t.id)));if(c.accessibilitiesLevel){this.accessibilityLevel=c.accessibilitiesLevel.find((t=>c.currentTrek.accessibility_level===t.id))}this.cities=c.currentTrek.cities.map((t=>{var e;return(e=c.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name}));this.hasStep=c.currentTrek.children.length>0;this.currentTrek=c.currentTrek}p("currentTrek",(async()=>{if(c.currentTrek){this.offline=c.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=c.difficulties.find((t=>t.id===c.currentTrek.difficulty));this.route=c.routes.find((t=>t.id===c.currentTrek.route));this.practice=c.practices.find((t=>t.id===c.currentTrek.practice));this.themes=c.themes.filter((t=>c.currentTrek.themes.includes(t.id)));this.labels=c.labels.filter((t=>c.currentTrek.labels.includes(t.id)));this.sources=c.sources.filter((t=>c.currentTrek.source.includes(t.id)));this.accessibilities=c.accessibilities.filter((t=>c.currentTrek.accessibilities.includes(t.id)));if(c.accessibilitiesLevel){this.accessibilityLevel=c.accessibilitiesLevel.find((t=>c.currentTrek.accessibility_level===t.id))}this.cities=c.currentTrek.cities.map((t=>{var e;return(e=c.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name}));this.hasStep=c.currentTrek.children.length>0;this.currentTrek=c.currentTrek}}))}disconnectedCallback(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()}handleOptions(){return Object.assign(Object.assign({},Bi),{presentation:Object.assign({},Ai),steps:Object.assign(Object.assign({},zi),{visible:Boolean(c.parentTrek)}),description:Object.assign(Object.assign({},Ci),{visible:Boolean(c.currentTrek.description)}),pois:Object.assign(Object.assign({},Li),{visible:Boolean(c.currentPois&&c.currentPois.length>0)}),recommendations:Object.assign(Object.assign({},Mi),{visible:Boolean(c.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},_i),{visible:Boolean(c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Oi),{visible:Boolean(c.currentInformationDesks&&c.currentInformationDesks.filter((t=>c.currentTrek.information_desks.includes(t.id))).length>0)}),accessibility:Object.assign(Object.assign({},Pi),{visible:Boolean(c.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||c.currentTrek.accessibility_level||c.currentTrek.accessibility_slope||c.currentTrek.accessibility_width||c.currentTrek.accessibility_signage||c.currentTrek.accessibility_covering||c.currentTrek.accessibility_exposure||c.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},Fi),{visible:Boolean(c.trekTouristicContents&&c.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Ti),{visible:Boolean(c.trekTouristicEvents&&c.trekTouristicEvents.length>0)})})}handleFullscreen(t=false){if(!t){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}handleIndicatorSelectedTrekOption(){let t;let e=0;let i=0;let r=0;const o=Object.values(this.options);let s=0;while(!t&&s<o.length){if(o[s].indicator){t=o[s]}else{if(o[s].visible){e+=1;i+=this[o[s].ref].clientWidth}}s++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:`${i+16*e-r/2}px`,width:`${r*2}px`,backgroundSize:`${r}px 100%`,ref:t.ref}}}handleScrollTo(t){const e=this.trekDetailContainerRef.scrollHeight>this.trekDetailContainerRef.clientHeight;if(e){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}else{window.scrollTo({top:t.offsetTop-64})}}getCurrentStepIndex(){return c.currentTrekSteps?c.currentTrekSteps.findIndex((t=>t.id===this.currentTrek.id)):0}async downloadGlobalTiles(t,e){const i=N.exports.tileLayerOffline(t,{attribution:e});const r=[];if(c.treks){for(const t of c.treks){r.push(t.departure_geom)}}const o=E.latLngBounds(r.map((t=>[t[1],t[0]])));await R(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)}async downloadTrekTiles(t,e){const i=N.exports.tileLayerOffline(t,{attribution:e});const r=E.latLngBounds(this.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));await R(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)}async downloadTrek(){const t=new AbortController;const e=t.signal;const i={cache:"default",signal:e};const r=(await Y("treks")).filter((t=>t.offline===true));let o;if(!c.treks){const t=await X(c.api,c.language,c.inBboxFromProviders,c.citiesFromProviders,c.districts,c.structuresFromProviders,c.themesFromProviders,c.portalsFromProviders,c.routesFromProviders,c.practicesFromProviders,c.labelsFromProviders,i);c.treks=(await t.json()).results}o=c.treks;o=o.filter((t=>r.findIndex((e=>e.id===t.id))===-1));if(!c.districts){const t=await q(c.api,c.language,i);c.districts=(await t.json()).results}await D("treks",o);await D("districts",c.districts);await this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await H(c.difficulties,O);await H(c.routes,O);await H(c.practices,O);await H(c.themes,O);await H(c.labels,O);await H(c.districts,O);await H(c.sources,O);await H(c.accessibilities,O);await H(c.poiTypes,O);await H(c.currentInformationDesks,O);await H(c.touristicContentCategories,O);await H(c.touristicEventTypes,O);await H(c.networks,O);await H(this.currentTrek,O,true,["url"]);await D("difficulties",c.difficulties);await D("routes",c.routes);await D("practices",c.practices.map((t=>Object.assign(Object.assign({},t),{selected:false}))));await D("themes",c.themes);await D("cities",c.cities);await D("accessibilities",c.accessibilities);await D("ratings",c.ratings);await D("ratingsScale",c.ratingsScale);await D("sensitiveAreas",c.currentSensitiveAreas);await D("labels",c.labels);await D("sources",c.sources);await D("accessibilitiesLevel",c.accessibilitiesLevel);await D("touristicContentCategories",c.touristicContentCategories);await D("touristicEventTypes",c.touristicEventTypes);await D("networks",c.networks);await D("pois",c.currentPois);await D("poiTypes",c.poiTypes);await D("signages",c.currentSignages);await D("informationDesks",c.currentInformationDesks);await D("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:c.currentPois.map((t=>t.id)),signages:c.currentSignages.map((t=>t.id)),touristicContents:c.trekTouristicContents.map((t=>t.id)),touristicEvents:c.trekTouristicEvents.map((t=>t.id)),sensitiveAreas:c.currentSensitiveAreas?c.currentSensitiveAreas.map((t=>t.id)):[]})]);await H(c.currentPois,O,true,["url"]);await H(c.currentInformationDesks,O,true);await H(c.trekTouristicContents,O,true,["url"]);c.trekTouristicContents.forEach((t=>{t.offline=true}));await D("touristicContents",c.trekTouristicContents);await H(c.trekTouristicEvents,O,true,["url"]);c.trekTouristicEvents.forEach((t=>{t.offline=true}));await D("touristicEvents",c.trekTouristicEvents);if(this.currentTrek.children&&this.currentTrek.children.length>0){const t=[];t.push(...this.currentTrek.children);const e=[];const r=[];const o=[];const s=[];const n=[];t.forEach((t=>{e.push(W(c.api,c.language,t,i));r.push(wt(c.api,c.language,t,i));o.push(kt(c.api,c.language,t,i));s.push(J(c.api,c.language,t,i));n.push(K(c.api,c.language,t,i))}));const a=await Promise.all([...e]).then((t=>Promise.all(t.map((t=>t.json())))));const l=await Promise.all([...r]).then((t=>Promise.all(t.map((t=>t.json())))));const p=await Promise.all([...o]).then((t=>Promise.all(t.map((t=>t.json())))));const d=await Promise.all([...s]).then((t=>Promise.all(t.map((t=>t.json())))));const h=await Promise.all([...n]).then((t=>Promise.all(t.map((t=>t.json())))));for(let t=0;t<a.length;t++){a[t].offline=true;a[t].pois=d[t].results.map((t=>t.id));a[t].touristicContents=l[t].results.map((t=>t.id));a[t].touristicEvents=p[t].results.map((t=>t.id));a[t].sensitiveAreas=h[t].results.map((t=>t.id));await D("treks",[a[t]]);await H(a[t],O,true,["url"])}}c.treks.find((t=>t.id===this.currentTrek.id)).offline=true;if(!c.currentTreks){c.currentTreks=c.treks}c.currentTreks.find((t=>t.id===this.currentTrek.id)).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit()}async deleteTrek(){const t=[];const e=await $("treks",this.currentTrek.id);this.deleteOfflineTrekProperties(e);t.push(e);if(this.currentTrek.children.length>0){for(let e=0;e<this.currentTrek.children.length;e++){const i=await $("treks",this.currentTrek.children[e]);this.deleteOfflineTrekProperties(i);t.push(i)}}await D("treks",t);if(c.treks){delete c.treks.find((t=>t.id===this.currentTrek.id)).offline;if(!c.currentTreks){c.currentTreks=c.treks}delete c.currentTreks.find((t=>t.id===this.currentTrek.id)).offline}if(c.parentTrek){delete c.parentTrek.offline}if(c.currentTrekSteps){c.currentTrekSteps.forEach((t=>{delete t.offline}))}this.offline=false;this.deleteSuccessConfirm.emit()}displayDownloadModal(){this.downloadConfirm.emit()}displayDeleteModal(){this.deleteConfirm.emit()}onDownloadPress(){this.downloadTrek()}onDeletePress(){this.deleteTrek()}deleteOfflineTrekProperties(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline}render(){var t,r,s,n,p;const d=o(`${""}assets/default-image.svg`);const h=this.currentTrek&&this.currentTrek.attachments.filter((t=>t.type==="image")).length>1||this.offline;return e(i,{key:"b816067767cb0e8a54d6aac8c07517253596e004",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?c.languages&&c.languages.length>1?"44px":"12px":c.languages&&c.languages.length>1?"164px":"124px"}},this.currentTrek&&e("div",{part:"trek-options",class:"trek-options"},e("a",{part:"trek-option",class:`presentation trek-option${this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""}`,ref:t=>this.presentationOptionRef=t,onClick:()=>this.handleScrollTo(this.presentationRef)},l[c.language].options.presentation),this.options.steps.visible&&e("a",{part:"trek-option",class:`steps trek-option${this.options.steps.indicator?" selected-trek-option":""}`,ref:t=>this.stepsOptionRef=t,onClick:()=>this.handleScrollTo(this.stepsRef)},l[c.language].options.steps),this.options.description.visible&&e("a",{part:"trek-option",class:`description trek-option${this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""}`,ref:t=>this.descriptionOptionRef=t,onClick:()=>this.handleScrollTo(this.descriptionRef)},l[c.language].options.description),this.options.pois.visible&&e("a",{part:"trek-option",class:`pois trek-option${this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""}`,ref:t=>this.poisOptionRef=t,onClick:()=>this.handleScrollTo(this.poiRef)},l[c.language].options.pois),this.options.recommendations.visible&&e("a",{part:"trek-option",class:`recommendations trek-option${this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""}`,ref:t=>this.recommendationsOptionRef=t,onClick:()=>this.handleScrollTo(this.recommendationRef)},l[c.language].options.recommendations),this.options.sensitiveArea.visible&&e("a",{part:"trek-option",class:`sensitive-areas trek-option${this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""}`,ref:t=>this.sensitiveAreaOptionRef=t,onClick:()=>this.handleScrollTo(this.sensitiveAreaRef)},l[c.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&e("a",{part:"trek-option",class:`information-places trek-option${this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""}`,ref:t=>this.informationPlacesOptionRef=t,onClick:()=>this.handleScrollTo(this.informationPlacesRef)},l[c.language].options.informationPlaces),this.options.accessibility.visible&&e("a",{part:"trek-option",class:`accessibility trek-option${this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""}`,ref:t=>this.accessibilityOptionRef=t,onClick:()=>this.handleScrollTo(this.accessibilityRef)},l[c.language].options.accessibility),this.options.touristicContents.visible&&e("a",{part:"trek-option",class:`touristic-content trek-option${this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""}`,ref:t=>this.touristicContentsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicContentsRef)},l[c.language].options.touristicContents),this.options.touristicEvents.visible&&e("a",{part:"trek-option",class:`touristic-event trek-option${this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""}`,ref:t=>this.touristicEventsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicEventsRef)},l[c.language].options.touristicEvents),this.presentationOptionRef&&e("span",{part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:`translateX(${this.indicatorSelectedTrekOption.translateX})`,width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&e("div",{part:"trek-detail-container",class:"trek-detail-container",ref:t=>this.trekDetailContainerRef=t},e("div",{part:"trek-images",class:"trek-images-container",ref:t=>this.presentationRef=t},e("div",{part:"swiper-images",class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((t=>t.type==="image")).length>0?this.currentTrek.attachments.filter((t=>t.type==="image")).map((t=>{const i=[t.legend,t.author].filter(Boolean).join(" - ");return e("div",{part:"swiper-slide",class:"swiper-slide"},this.displayFullscreen&&e("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},e("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon",innerHTML:ut})),e("div",{part:"trek-image-legend",class:"trek-image-legend"},i),e("img",{part:"trek-img",class:"trek-img",src:this.offline&&t.thumbnail!==""?t.thumbnail:t.url,loading:"lazy",onClick:()=>this.handleFullscreen(),onerror:t=>{t.target.onerror=null;t.target.className="trek-img default-trek-img";t.target.src=d},alt:t.legend}))})):e("img",{part:"trek-img",class:"trek-img default-trek-img",src:d,loading:"lazy",alt:""})),e("div",{style:{display:"block",visibility:h?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),e("div",{style:{display:"flex",visibility:h?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),e("div",{style:{display:"flex",visibility:h?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),e("div",{part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&e("div",{part:"themes-container",class:"themes-container"},this.themes.map((t=>e("div",{part:"theme",class:"theme"},t.label)))),e("div",{part:"sub-container",class:"sub-container"},e("div",{part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&e("div",{part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&e("img",{part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),e("span",{part:"label",class:"label"},this.difficulty.label)),e("div",{part:"icon-label",class:"icon-label duration"},e("span",{part:"icon",class:"icon",innerHTML:yt}),e("span",{part:"label",class:"label"},z((t=this.currentTrek)===null||t===void 0?void 0:t.duration))),e("div",{part:"icon-label",class:"icon-label route"},((r=this.route)===null||r===void 0?void 0:r.pictogram)&&e("img",{part:"icon",class:"icon",src:this.route.pictogram,alt:""}),e("span",{part:"label",class:"label"},(s=this.route)===null||s===void 0?void 0:s.route)),e("div",{part:"icon-label",class:"icon-label length"},e("span",{part:"icon",class:"icon",innerHTML:At}),e("span",{part:"label",class:"label"},C(this.currentTrek.length_2d))),this.currentTrek.ascent&&e("div",{part:"icon-label",class:"icon-label ascent"},e("span",{part:"icon",class:"icon",innerHTML:zt}),e("span",{part:"label",class:"label"},M(this.currentTrek.ascent))),this.currentTrek.descent&&e("div",{part:"icon-label",class:"icon-label descent"},e("span",{part:"icon",class:"icon",innerHTML:zt}),e("span",{part:"label",class:"label"},P(this.currentTrek.descent))),e("div",{part:"icon-label",class:"icon-label practice"},((n=this.practice)===null||n===void 0?void 0:n.pictogram)&&e("img",{part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),e("span",{part:"label",class:"label"},(p=this.practice)===null||p===void 0?void 0:p.name)),e("div",{part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((t=>{const i=c.networks.find((e=>e.id===t));return e("div",{part:"network",class:"network"},e("img",{part:"icon",class:"icon",src:i.pictogram,alt:""}),e("span",{part:"label",class:"label"},i.label))}))),this.currentTrek.ratings.map((t=>e("div",{part:"row",class:"row"},`${c.ratingsScale.find((e=>e.id===c.ratings.find((e=>e.id===t)).scale)).name} : ${c.ratings.find((e=>e.id===t)).name}`))),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&e("div",{part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),e("div",{part:"divider",class:"divider"}),e("div",{part:"downloads-container",class:"downloads-container"},e("div",{part:"download-title",class:"download-title"},l[c.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&e("button",{part:"offline-button",class:"offline-button",onClick:()=>this.displayDownloadModal()},e("span",{part:"icon",class:"icon",innerHTML:Be}),e("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&e("button",{part:"offline-button",class:"offline-button",onClick:()=>this.displayDeleteModal()},e("span",{part:"icon",class:"icon",innerHTML:je}),e("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),e("div",{part:"links-container",class:"links-container"},e("a",{part:"download-gpx-button",href:`${this.currentTrek.gpx}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:" icon",innerHTML:ft}),e("span",{part:"label",class:"label"},"GPX")),e("a",{part:"download-kml-button",href:`${this.currentTrek.kml}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:ft}),e("span",{part:"label",class:"label"},"KML")),e("a",{part:"download-pdf-button",href:`${this.currentTrek.pdf}${c.portalsFromProviders&&c.portalsFromProviders.length===1?"?portal="+c.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:ft}),e("span",{part:"label",class:"label"},"PDF")))),e("div",{part:"divider",class:"divider"}),this.currentTrek.description_teaser&&e("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&e("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),c.parentTrekId&&c.parentTrek&&this.currentTrek.id!==c.parentTrekId&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"parent-trek-container",class:"parent-trek-container"},e("button",{part:"parent-trek-title",class:"parent-trek-title",onClick:()=>this.parentTrekPress.emit(c.parentTrekId)},e("div",null,"<"),c.parentTrek.name))),c.currentTrekSteps&&e("div",{part:"step-container",class:"step-container"},e("div",{part:"step-title",class:"step-title",ref:t=>this.stepsRef=t},`${c.currentTrekSteps.length} ${l[c.language].steps}`),e("div",{part:"swiper-step",class:"swiper swiper-step",ref:t=>this.swiperStepRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentTrekSteps&&c.currentTrekSteps.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:`trek-${t.id}`,trek:t,"is-large-view":false,"is-step":true,fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"grw-app":this.grwApp}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.stepSwiperScrollbar=t}))),e("div",{part:"divider",class:"divider"}),this.currentTrek.description&&e("div",{part:"description-container",class:"description-container"},e("div",{part:"description-title",class:"description-title",ref:t=>this.descriptionRef=t},l[c.language].description),e("div",{part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&e("div",{part:"departure-container",class:"departure-container"},e("div",{part:"departure-title",class:"departure-title"},l[c.language].departure," : "),e("div",{part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&e("div",{part:"arrival-container",class:"arrival-container"},e("div",{part:"arrival-title",class:"arrival-title"},l[c.language].arrival," : "),e("div",{part:"arrival",innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&e("div",{part:"cities-container",class:"cities-container"},e("div",{part:"cities-title",class:"cities-title"},l[c.language].crossedCities," : "),e("div",{part:"cities",innerHTML:this.cities.join(", ")})),c.currentPois&&c.currentPois.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"pois-container",class:"pois-container"},e("div",{part:"pois-title",class:"pois-title",ref:t=>this.poiRef=t},l[c.language].pois(c.currentPois.length)),e("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentPois.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.poisSwiperScrollbar=t})))),this.weather&&this.currentTrek.departure_city&&!this.offline&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"weather-container",class:"weather-container"},e("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}`}))),this.currentTrek.access&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"access-container",class:"access-container"},e("div",{part:"access-title",class:"access-title"},l[c.language].roadAccessAndParking),e("div",{part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&e("div",null,e("div",{part:"advised-parking-title",class:"advised-parking-title",ref:t=>this.parkingRef=t},l[c.language].recommendedParking),e("div",{part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"public-transport-container",class:"public-transport-container"},e("div",{part:"public-transport-title",class:"public-transport-title"},l[c.language].transport),e("div",{part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"advice-container",class:"advice-container"},e("div",{part:"advice-title",class:"advice-title",ref:t=>this.recommendationRef=t},l[c.language].recommendations),this.currentTrek.advice&&e("div",{part:"current-advice-container",class:"current-advice-container"},e("span",{part:"icon",class:"icon",innerHTML:ze}),e("div",{part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&e("div",{part:"gear-container",class:"gear-container"},e("span",{part:"icon",class:"icon",innerHTML:wi}),e("div",{part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((t=>e("div",{part:"label-container",class:"label-container"},e("div",{part:"label-sub-container",class:"label-sub-container"},t.pictogram&&e("img",{src:t.pictogram,alt:""}),e("div",{part:"label-name",class:"label-name",innerHTML:t.name})),e("div",{part:"label-advice",class:"label-advice",innerHTML:t.advice})))))),c.currentSensitiveAreas&&c.currentSensitiveAreas.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"sensitive-areas-container",class:"sensitive-areas-container"},e("div",{part:"ensitive-areas-title",class:"sensitive-areas-title",ref:t=>this.sensitiveAreaRef=t},l[c.language].environmentalSensitiveAreas),e("div",{part:"sensitive-areas-description",class:"sensitive-areas-description"},l[c.language].sensitiveAreasDescription),c.currentSensitiveAreas.map((t=>e("grw-sensitive-area-detail",{exportparts:"sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value",sensitiveArea:t}))))),c.currentInformationDesks&&c.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"information-desks-container",class:"information-desks-container"},e("div",{part:"information-desks-title",class:"information-desks-title",ref:t=>this.informationPlacesRef=t},l[c.language].informationPlaces),e("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:t,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.informationDesksContentsSwiperScrollbar=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||this.emergencyNumber)&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"accessibilities-container",class:"accessibilities-container"},e("div",{part:"accessibilities-title",class:"accessibilities-title",ref:t=>this.accessibilityRef=t},l[c.language].accessibility),this.currentTrek.disabled_infrastructure&&e("div",{part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&e("div",{part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((t=>e("div",{part:"accessibility-content-container",class:"accessibility-content-container"},e("img",{src:t.pictogram,alt:""}),e("div",{part:"accessibility-name",innerHTML:t.name}))))),this.emergencyNumber&&e("div",{part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},e("div",{part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},l[c.language].emergencyNumber),e("div",{part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},e("a",{href:`tel:${this.emergencyNumber.toString()}`},e("span",{part:"icon",class:"icon",innerHTML:xt}),e("span",{part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&e("div",{part:"accessibility-level-container",class:"accessibility-level-container"},e("div",{part:"accessibility-level-title",class:"accessibility-level-title"},l[c.language].accessibilityLevel),e("div",{part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&e("div",{part:"accessibility-slope-container",class:"accessibility-slope-container"},e("div",{part:"accessibility-slope-title",class:"accessibility-slope-title"},l[c.language].accessibilitySlope),e("div",{part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&e("div",{part:"accessibility-width-container",class:"accessibility-width-container"},e("div",{part:"accessibility-width-title",class:"accessibility-width-title"},l[c.language].accessibilityWidth),e("div",{part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&e("div",{part:"accessibility-signage-container",class:"accessibility-signage-container"},e("div",{part:"accessibility-signage-title",class:"accessibility-signage-title"},l[c.language].accessibilitySignage),e("div",{part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&e("div",{part:"accessibility-covering-container",class:"accessibility-covering-container"},e("div",{part:"accessibility-covering-title",class:"accessibility-covering-title"},l[c.language].accessibilityCovering),e("div",{part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&e("div",{part:"accessibility-exposure-container",class:"accessibility-exposure-container"},e("div",{part:"accessibility-exposure-title",class:"accessibility-exposure-title"},l[c.language].accessibilityExposure),e("div",{part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&e("div",{part:"accessibility-advice-container",class:"accessibility-advice-container"},e("div",{part:"accessibility-advice-title",class:"accessibility-advice-title"},l[c.language].accessibilityAdvices),e("div",{part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),c.trekTouristicContents&&c.trekTouristicContents.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"touristic-content-container",class:"touristic-content-container"},e("div",{part:"touristic-content-title",class:"touristic-content-title",ref:t=>this.touristicContentsRef=t},l[c.language].touristicContents(c.trekTouristicContents.length)),e("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:t=>this.swiperTouristicContentsRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicContents.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:this.fontFamily,touristicContent:t,isInsideHorizontalList:true,"color-surface-container-low":this.colorSurfaceContainerLow}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.touristicContentsSwiperScrollbar=t})))),c.trekTouristicEvents&&c.trekTouristicEvents.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"touristic-event-container",class:"touristic-event-container"},e("div",{part:"touristic-event-title",class:"touristic-event-title",ref:t=>this.touristicEventsRef=t},l[c.language].touristicEvents(c.trekTouristicEvents.length)),e("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:t=>this.swiperTouristicEventsRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},c.trekTouristicEvents.map((t=>e("div",{part:"swiper-slide",class:"swiper-slide"},e("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:this.fontFamily,touristicEvent:t,isInsideHorizontalList:true,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),e("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:t=>this.touristicEventsSwiperScrollbar=t})))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"weblinks-container",class:"weblinks-container"},e("div",{part:"weblinks-title",class:"weblinks-title"},l[c.language].learnMore),this.currentTrek.web_links.map((t=>e("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&e("img",{src:t.category.pictogram,alt:t.category.label}),t.name))))),this.currentTrek.source&&this.currentTrek.source.length>0&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"source-container",class:"source-container"},e("div",{part:"source-title",class:"source-title"},l[c.language].sources),this.sources.map((t=>e("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&e("img",{src:t.pictogram,alt:""}),e("div",null,e("div",{part:"source-name",class:"source-name",innerHTML:t.name}),e("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website}))))))),this.grwApp&&e("div",{part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&e(a,null,this.showTouristicContentDetailsModal&&e("grw-touristic-content-provider",{api:c.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&e("grw-touristic-event-provider",{api:c.api,"touristic-event-id":this.modalDetailsId})))}};ji.style=xi;const Si=class{constructor(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined;this.signages=false}connectedCallback(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}c.portalsFromProviders=this.portals;c.inBboxFromProviders=this.inBbox;c.citiesFromProviders=this.cities;c.districtsFromProviders=this.districts;c.structuresFromProviders=this.structures;c.themesFromProviders=this.themes;c.routesFromProviders=this.routes;c.practicesFromProviders=this.practices;c.labelsFromProviders=this.labels;this.handleTrek()}disconnectedCallback(){this.controller.abort();c.networkError=false}async handleTrek(){const t=await $("treks",this.trekId);if(t&&t.offline){this.handleOfflineTrek(t)}else{this.handleOnlineTrek()}}async handleOfflineTrek(t){if(t&&t.children.length>0||c.parentTrekId){const e=[];if(t.children.length>0){c.parentTrekId=t.id;c.parentTrek=t;e.push(...t.children)}else{const t=await $("treks",c.parentTrekId);c.parentTrek=t;e.push(...t.children)}const i=[];e.forEach((t=>{i.push($("treks",t))}));c.currentTrekSteps=await Promise.all([...i]).then((t=>t))}c.difficulties=await I("difficulties");c.routes=await I("routes");c.practices=await I("practices");c.themes=await I("themes");c.cities=await I("cities");c.accessibilities=await I("accessibilities");c.ratings=await I("ratings");c.ratingsScale=await I("ratingsScale");c.labels=await I("labels");c.sources=await I("sources");c.accessibilitiesLevel=await I("accessibilitiesLevel");c.touristicContentCategories=await I("touristicContentCategories");c.touristicEventTypes=await I("touristicEventTypes");c.networks=await I("networks");c.poiTypes=await I("poiTypes");const e=await I("informationDesks");const i=e.filter((e=>t.information_desks.some((t=>t===e.id))));c.currentInformationDesks=i;const r=await I("pois",["url"]);const o=r.filter((e=>t.pois.some((t=>t===e.id))));c.currentPois=o;const s=await I("touristicContents",["url"]);const n=s.filter((e=>t.touristicContents.some((t=>t===e.id))));c.trekTouristicContents=n;const a=await I("touristicEvents",["url"]);const l=a.filter((e=>t.touristicEvents.some((t=>t===e.id))));c.trekTouristicEvents=l;const p=await I("sensitiveAreas");const d=p.filter((e=>t.sensitiveAreas.some((t=>t===e.id))));c.currentSensitiveAreas=d;const h=await I("signages");const u=h.filter((e=>t.signages.some((t=>t===e.id))));c.currentSignages=u;await _(t,O,["url"]);c.currentTrek=t}handleOnlineTrek(){const t=[];t.push(!c.difficulties?fetch(`${c.api}trek_difficulty/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!c.routes?fetch(`${c.api}trek_route/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!c.practices?fetch(`${c.api}trek_practice/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!c.themes?fetch(`${c.api}theme/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!c.cities?fetch(`${c.api}city/?language=${c.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!c.accessibilities?fetch(`${c.api}trek_accessibility/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!c.ratings?fetch(`${c.api}trek_rating/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));t.push(!c.ratingsScale?fetch(`${c.api}trek_ratingscale/?language=${c.language}&fields=id,name`,this.init):new Response("null"));t.push(this.signages?tt(c.api,c.language,this.trekId,this.init):new Response("null"));try{Promise.all([...t,K(c.api,c.language,this.trekId,this.init).then((t=>{if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((()=>new Response("null"))),fetch(`${c.api}label/?language=${c.language}&fields=id,name,advice,pictogram,filter`,this.init),Q(c.api,c.language,this.init),fetch(`${c.api}trek_accessibility_level/?language=${c.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),J(c.api,c.language,this.trekId,this.init),fetch(`${c.api}poi_type/?language=${c.language}&fields=id,pictogram`,this.init),U(c.api,c.language,this.init),wt(c.api,c.language,this.trekId,this.init),fetch(`${c.api}touristiccontent_category/?language=${c.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),kt(c.api,c.language,this.trekId,this.init),fetch(`${c.api}touristicevent_type/?language=${c.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init),fetch(`${c.api}trek_network/?language=${c.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),W(c.api,c.language,this.trekId,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,e,i,r,o,s,n,a,l,p,d,h,u,f,m,g,b,v,w,k,x,y])=>{c.networkError=false;if(y&&y.children.length>0||c.parentTrekId){const t=[];if(y.children.length>0){c.parentTrekId=y.id;c.parentTrek=y;t.push(...y.children)}else{const e=await fetch(`${c.api}trek/${c.parentTrekId}/?language=${c.language}&published=true&fields=name,children`).then((t=>t.json()));c.parentTrek=e;t.push(...e.children)}const e=[];t.forEach((t=>{e.push(W(c.api,c.language,t,this.init))}));c.currentTrekSteps=await Promise.all([...e]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){c.difficulties=t.results}if(e){c.routes=e.results}if(i){c.practices=i.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(r){c.themes=r.results}if(o){c.cities=o.results}if(s){c.accessibilities=s.results}if(n){c.ratings=n.results}if(a){c.ratingsScale=a.results}if(p){c.currentSensitiveAreas=p.results}if(d){c.labels=d.results}if(l){c.currentSignages=l.results}if(h){c.sources=h.results}if(u){c.accessibilitiesLevel=u.results}if(b){c.trekTouristicContents=b.results}if(v){c.touristicContentCategories=v.results}if(w){c.trekTouristicEvents=w.results}if(k){c.touristicEventTypes=k.results}if(x){c.networks=x.results}if(f){c.currentPois=f.results}if(m){c.poiTypes=m.results}if(g){c.currentInformationDesks=g.results}if(y){c.currentTrek=y}}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){c.networkError=true}}}render(){return e(i,{key:"9df863a5a5efbee89f7c96adf27b53fb47977989"})}};const Ei=":host{width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";const Ni=Ei;const $i=class{constructor(e){t(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false;this.grwApp=false}connectedCallback(){this.handleInfiniteScrollEvent(true);if(c.currentTreks){this.treksToDisplay=[...c.currentTreks.slice(0,this.step)]}p("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(c.currentTreks){this.treksToDisplay=[...c.currentTreks.slice(0,this.step)]}}));p("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(c.treksWithinBounds){this.treksToDisplay=[...c.treksWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<c.treksWithinBounds.length){this.treksToDisplay=c.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=c.treksWithinBounds.length?c.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(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}}disconnectedCallback(){this.handleInfiniteScrollEvent(false)}render(){return e(i,{key:"42ccb4ff982770a69a48c72234213480b27a80cd",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},c.treksWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${c.treksWithinBounds.length} ${c.treksWithinBounds.length>1?l[c.language].treks:l[c.language].trek}`),e("div",{key:"6220810e74b1c49739f6a6630b155ad10f2c1f89",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((t=>e("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:`trek-${t.id}`,trek:t,"is-large-view":this.isLargeView,fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"grw-app":this.grwApp})))),e("div",{key:"0aa652a96daddf4a5189ade5c8ee15607aa92ae2",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return n(this)}};$i.style=Ni;const Ii=class{constructor(e){t(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="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;this.labels=undefined;this.offline=false}connectedCallback(){if(!c.api){c.api=this.api;c.languages=this.languages.split(",");c.language=c.languages[0]}c.portalsFromProviders=this.portals;c.inBboxFromProviders=this.inBbox;c.citiesFromProviders=this.cities;c.districtsFromProviders=this.districts;c.structuresFromProviders=this.structures;c.themesFromProviders=this.themes;c.routesFromProviders=this.routes;c.practicesFromProviders=this.practices;c.labelsFromProviders=this.labels;this.handleTreks()}disconnectedCallback(){this.controller.abort();c.networkError=false}async handleTreks(){if(this.offline){this.handleOfflineTreks()}else{this.handleOnlineTreks()}}async handleOfflineTreks(){let t=await Y("treks");if(t&&t.length>0){c.difficulties=await this.handleOfflineProperty("difficulties");c.routes=await this.handleOfflineProperty("routes");c.practices=await this.handleOfflineProperty("practices");c.themes=await this.handleOfflineProperty("themes");c.cities=await this.handleOfflineProperty("cities");c.accessibilities=await this.handleOfflineProperty("accessibilities");c.labels=await this.handleOfflineProperty("labels");c.districts=await this.handleOfflineProperty("districts");c.durations=F;c.lengths=T;c.elevations=B;t=await this.handleOfflineProperty("treks");this.sortTreks(t);if(this.offline){t=t.filter((t=>t.offline))}c.treks=t;c.currentTreks=t}else{c.networkError=true}}sortTreks(t){t.sort(((t,e)=>t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})))}async handleOfflineProperty(t,e=[]){const i=await Y(t);await _(i,O,e);return i}handleOnlineTreks(){Promise.all([fetch(`${c.api}trek_difficulty/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${c.api}trek_route/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init),fetch(`${c.api}trek_practice/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init),fetch(`${c.api}theme/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${c.api}city/?language=${c.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(`${c.api}trek_accessibility/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram&published=true&page_size=999`,this.init),fetch(`${c.api}label/?language=${c.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,advice,pictogram,filter&published=true&page_size=999`,this.init),q(c.api,c.language,this.init),X(this.api,c.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((t=>{t.forEach((t=>{if(t.status!==200){throw new Error("network error")}}));return Promise.all(t.map((t=>t.json())))})).then((async([t,e,i,r,o,s,n,a,l])=>{c.networkError=false;c.difficulties=t.results;c.routes=e.results;c.practices=i.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));c.themes=r.results;c.cities=o.results;c.accessibilities=s.results;c.labels=n.results;c.districts=a.results;c.durations=F;c.lengths=T;c.elevations=B;const p=[];for(let t=0;t<l.results.length;t++){const e=await et(l.results[t].id);p.push(Object.assign(Object.assign({},l.results[t]),{offline:e}))}this.sortTreks(p);c.treks=p;c.currentTreks=p})).catch((async()=>{await this.handleOfflineTreks()}))}render(){return e(i,{key:"a9ce59fc3e6735c0353f6a4aad766cb3c8cd47f7"})}};export{Tt as grw_common_button,St as grw_filters,$t as grw_loader,we as grw_map,ye as grw_offline_confirm_modal,_e as grw_outdoor_course_detail,Oe as grw_outdoor_course_provider,Ge as grw_outdoor_site_detail,Ze as grw_outdoor_site_provider,Qe as grw_outdoor_sites_list,Ue as grw_outdoor_sites_provider,Ke as grw_search,ii as grw_segmented_segment,ni as grw_select_language,pi as grw_switch,ui as grw_touristic_contents_list,fi as grw_touristic_contents_provider,bi as grw_touristic_events_list,vi as grw_touristic_events_provider,ji as grw_trek_detail,Si as grw_trek_provider,$i as grw_treks_list,Ii as grw_treks_provider};
|
|
4
|
-
//# sourceMappingURL=p-0a37c6c9.entry.js.map
|