@geotrekce/geotrek-rando-widget 0.18.0 → 0.18.2
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/grw-app.cjs.entry.js +5 -5
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-common-button_27.cjs.entry.js +496 -374
- package/dist/cjs/grw-common-button_27.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_27.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_27.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-information-desk_3.cjs.entry.js +1 -1
- package/dist/cjs/grw-information-desk_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js +58 -38
- 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-poi_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-2df02bcf.js → i18n-736691e8.js} +5 -1
- package/dist/cjs/i18n-736691e8.js.br +0 -0
- package/dist/cjs/i18n-736691e8.js.gz +0 -0
- package/dist/cjs/i18n-736691e8.js.map +1 -0
- package/dist/collection/components/grw-app/grw-app.js +4 -4
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-common-button/grw-common-button.css +1 -0
- package/dist/collection/components/grw-common-button/grw-common-button.css.br +0 -0
- package/dist/collection/components/grw-common-button/grw-common-button.css.gz +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js +104 -77
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.br +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.gz +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.map +1 -1
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +185 -143
- 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-poi-detail/grw-poi.js +31 -23
- package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +13 -7
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +24 -16
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +13 -7
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +24 -16
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +157 -120
- 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 +4 -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/stories/App.js +2 -1
- package/dist/collection/stories/App.js.br +0 -0
- package/dist/collection/stories/App.js.gz +0 -0
- package/dist/collection/stories/App.stories.js +1 -0
- package/dist/collection/stories/App.stories.js.br +0 -0
- package/dist/collection/stories/App.stories.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +5 -5
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/grw-common-button_27.entry.js +496 -374
- package/dist/esm/grw-common-button_27.entry.js.br +0 -0
- package/dist/esm/grw-common-button_27.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_27.entry.js.map +1 -1
- package/dist/esm/grw-information-desk_3.entry.js +1 -1
- package/dist/esm/grw-information-desk_3.entry.js.br +0 -0
- package/dist/esm/grw-information-desk_3.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js +58 -38
- 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-poi_3.entry.js.map +1 -1
- package/dist/esm/{i18n-9a7ac609.js → i18n-84192695.js} +5 -1
- package/dist/esm/i18n-84192695.js.br +0 -0
- package/dist/esm/i18n-84192695.js.gz +0 -0
- package/dist/esm/i18n-84192695.js.map +1 -0
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-common-button_27.entry.js +3 -3
- package/dist/esm-es5/grw-common-button_27.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_27.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_27.entry.js.map +1 -1
- package/dist/esm-es5/grw-information-desk_3.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk_3.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-poi_3.entry.js.map +1 -1
- package/dist/esm-es5/i18n-84192695.js +2 -0
- package/dist/esm-es5/i18n-84192695.js.br +0 -0
- package/dist/esm-es5/i18n-84192695.js.gz +0 -0
- package/dist/esm-es5/i18n-84192695.js.map +1 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-989276bc.entry.js → p-2ed1025e.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js → p-3ea6b596.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js +10 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js +2 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js +2 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.map +1 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js +1 -1
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6ac9b3f1.entry.js → p-9d7b3f9a.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js +10 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-01061bf4.system.entry.js → p-f3a9a20f.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.map +1 -0
- package/dist/types/components/grw-outdoor-course-detail/grw-outdoor-course-detail.d.ts +3 -0
- package/dist/types/components/grw-outdoor-site-detail/grw-outdoor-site-detail.d.ts +3 -0
- package/dist/types/components/grw-poi-detail/grw-poi.d.ts +2 -0
- package/dist/types/components/grw-touristic-content-card/grw-touristic-content-card.d.ts +2 -0
- package/dist/types/components/grw-touristic-content-detail/grw-touristic-content-detail.d.ts +2 -0
- package/dist/types/components/grw-touristic-event-card/grw-touristic-event-card.d.ts +2 -0
- package/dist/types/components/grw-touristic-event-detail/grw-touristic-event-detail.d.ts +2 -0
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +1 -0
- package/dist/types/i18n/i18n.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/i18n-2df02bcf.js.br +0 -0
- package/dist/cjs/i18n-2df02bcf.js.gz +0 -0
- package/dist/cjs/i18n-2df02bcf.js.map +0 -1
- package/dist/esm/i18n-9a7ac609.js.br +0 -0
- package/dist/esm/i18n-9a7ac609.js.gz +0 -0
- package/dist/esm/i18n-9a7ac609.js.map +0 -1
- package/dist/esm-es5/i18n-9a7ac609.js +0 -2
- package/dist/esm-es5/i18n-9a7ac609.js.br +0 -0
- package/dist/esm-es5/i18n-9a7ac609.js.gz +0 -0
- package/dist/esm-es5/i18n-9a7ac609.js.map +0 -1
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-105ea0c8.js +0 -2
- package/dist/geotrek-rando-widget/p-105ea0c8.js.br +0 -0
- package/dist/geotrek-rando-widget/p-105ea0c8.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-105ea0c8.js.map +0 -1
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js +0 -10
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-989276bc.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-989276bc.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js +0 -10
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b4942f58.system.js +0 -2
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.map +0 -1
- /package/dist/geotrek-rando-widget/{p-989276bc.entry.js.map → p-2ed1025e.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js.map → p-3ea6b596.system.entry.js.map} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,c as r,e as s,g as o}from"./p-835a85e7.js";import{t as n}from"./p-105ea0c8.js";import{t as a,s as l,h as c,f as p,j as d,o as h,k as u,l as f,b as m,m as w,C as g,d as b,n as v,F as k,D as x,p as y,q as A,u as z,e as C,i as M,v as B,w as _,x as T,y as P}from"./p-d87140c7.js";import{l as F,c as O,L as E,b as j,a as Y,h as S,g as N,w as I,d as $,e as D}from"./p-f34dc852.js";import{c as H,g as G,a as Z,b as R,d as q,e as Q,f as V,h as U,i as X,j as W,t as K}from"./p-7eed098b.js";import{g as J,n as tt,a as et,b as it,c as rt,d as st,e as ot,f as nt,S as at,N as lt,P as ct,K as pt}from"./p-6b440166.js";import{T as dt,O as ht,M as ut}from"./p-d1c11cf1.js";import{a as ft,b as mt,c as wt}from"./p-d97deffd.js";import{C as gt}from"./p-8ba930cb.js";const bt=`<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 vt=`<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 kt=".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}.common-button .common-button-icon{font-size:18px}";const xt=kt;const yt=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"?bt:vt}),e("span",{key:"248b06ddd2cdd1d9ded5848670cb2eac816b6c30",part:"common-button-label",class:"label"},this.name)))}};yt.style=xt;const At=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm0 160q17 0 28.5-11.5T360-480q0-17-11.5-28.5T320-520q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440Zm0 160q17 0 28.5-11.5T360-320q0-17-11.5-28.5T320-360q-17 0-28.5 11.5T280-320q0 17 11.5 28.5T320-280ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h440l200 200v440q0 33-23.5 56.5T760-120H200Zm0-80h560v-400H600v-160H200v560Zm0-560v160-160 560-560Z"/></svg>`;const zt=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m600-120-240-84-186 72q-20 8-37-4.5T120-170v-560q0-13 7.5-23t20.5-15l212-72 240 84 186-72q20-8 37 4.5t17 33.5v560q0 13-7.5 23T812-192l-212 72Zm-40-98v-468l-160-56v468l160 56Zm80 0 120-40v-474l-120 46v468Zm-440-10 120-46v-468l-120 40v474Zm440-458v468-468Zm-320-56v468-468Z"/></svg>`;const Lt=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-600v-80h560v80H280Zm0 160v-80h560v80H280Zm0 160v-80h560v80H280ZM160-600q-17 0-28.5-11.5T120-640q0-17 11.5-28.5T160-680q17 0 28.5 11.5T200-640q0 17-11.5 28.5T160-600Zm0 160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520q17 0 28.5 11.5T200-480q0 17-11.5 28.5T160-440Zm0 160q-17 0-28.5-11.5T120-320q0-17 11.5-28.5T160-360q17 0 28.5 11.5T200-320q0 17-11.5 28.5T160-280Z"/></svg>`;const Ct=".map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--fab-background-color);color:var(--fab-color);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:var(--border-radius, 12px);height:56px;font-family:var(--font-family);font-size:16px;width:unset}.map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button .icon{display:-ms-flexbox;display:flex;margin-right:8px;color:var(--fab-color)}";const Mt=Ct;const Bt=class{constructor(e){t(this,e);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}render(){const t=this.icon();return e(i,{key:"7474c22931fa6d143b914124d662030d2a233ee0",style:{"--font-family":this.fontFamily}},e("button",{key:"08b6fa90f4cb61eceade8b480729969cd8a1bec8",part:"map-visibility-button",class:"map-visibility-button",onClick:()=>this.action(),style:{display:this.display}},e("span",{key:"5a27e2aa43c2c02aaa8c4d66aa69db79693c8205",part:"map-visibility-button-icon",class:"icon",innerHTML:t==="Summarize"?At:t==="map"?zt:Lt}),e("span",{key:"13524be33bae65509da1b406aef9e0f968eb8586",part:"map-visibility-button-label",class:"label"},this.name())))}};Bt.style=Mt;const _t='.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 Tt=_t;const Pt=class{constructor(e){t(this,e);this.resetFilter=r(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}handleEraseTreksFilters(){a.forEach((t=>{l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;l.currentTreks=c();this.resetFilter.emit()}handleOkTreksFilters(){this.handleFilters()}handleSelectedSegment(t){this.selectedSegment=t}handleSegment(t){if(l.mode==="treks"){return a.filter((e=>e.segment===t)).some((t=>l[t.property]&&l[t.property].length>0))}else if(l.mode==="touristicContents"){return p.filter((e=>e.segment===t)).some((t=>l[t.property]&&l[t.property].length>0))}else if(l.mode==="touristicEvents"){return d.filter((e=>e.segment===t)).some((t=>l[t.property]&&l[t.property].length>0))}else if(l.mode==="outdoor"){return h.filter((e=>e.segment===t)).some((t=>l[t.property]&&l[t.property].length>0))}}handleEraseTouristicContentsFilters(){p.forEach((t=>{l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentTouristicContents=u();this.resetFilter.emit()}handleOkTouristicContentsFilters(){this.handleFilters()}handleEraseTouristicEventsFilters(){d.forEach((t=>{l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentTouristicEvents=f();this.resetFilter.emit()}handleOkTouristicEventsFilters(){this.handleFilters()}handleEraseOutdoorSitesFilters(){h.forEach((t=>{l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentOutdoorSites=m();this.resetFilter.emit()}handleOkOutdoorSitesFilters(){this.handleFilters()}render(){return e(i,{key:"8319f0b1047c6f2c8cb89e7c9fffd2a23dbf2f53",style:{"--font-family":this.fontFamily}},e("div",{key:"0f1e294677dc05332434eafce7740ae3d0060fe4",part:"options-container",class:"options-container"},e("div",{key:"5fa03c9a081ad337a1a7b61a0f6e6eefcd034e23",part:"filters-container",class:"filters-container"},l.mode==="treks"&&e("div",{part:"filters-treks-container",class:"filters-treks-container"},e("div",{part:"filters-options-container",class:"filters-options-container"},l.treksWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${l.treksWithinBounds.length} ${l.treksWithinBounds.length>1?n[l.language].treks:n[l.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()},n[l.language].erase),e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTreksFilters()},n[l.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")},n[l.language].home.segment.treks," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},n[l.language].themes," ",l.selectedThemesFilters!==0&&`(${l.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},n[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.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"},l["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:n[l.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderPractices})),l["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:n[l.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderDifficulties})),l["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:n[l.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderDurations})),l["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:n[l.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderLengths})),l["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:n[l.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderElevations})),l["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:n[l.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderRoutes})),l["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:n[l.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderAccessibilities})),l["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:n[l.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&e("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},l["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:n[l.language].themes,filterPlaceholder:n[l.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},l["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:n[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:n[l.language].placeholderDistricts})),l["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:n[l.language].crossedCities,filterPlaceholder:n[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="touristicContents"&&e("div",{part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},e("div",{part:"filters-options-container",class:"filters-options-container"},l.touristicContentsWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${l.touristicContentsWithinBounds.length} ${l.touristicContentsWithinBounds.length>1?n[l.language].home.touristicContents:n[l.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()},n[l.language].erase),e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTouristicContentsFilters()},n[l.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")},n[l.language].services," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},n[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.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"},l["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:n[l.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&e("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},l["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:n[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:n[l.language].placeholderDistricts})),l["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:n[l.language].crossedCities,filterPlaceholder:n[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="touristicEvents"&&e("div",{part:"filters-touristic-events-container",class:"filters-touristic-events-container"},e("div",{part:"filters-options-container",class:"filters-options-container"},l.touristicEventsWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${l.touristicEventsWithinBounds.length} ${l.touristicEventsWithinBounds.length>1?n[l.language].home.touristicEvents:n[l.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()},n[l.language].erase),e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTouristicEventsFilters()},n[l.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")},n[l.language].services," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},n[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.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"},l["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:n[l.language].type,filterPlaceholder:n[l.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"},l["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:n[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:n[l.language].placeholderDistricts})),l["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:n[l.language].crossedCities,filterPlaceholder:n[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="outdoor"&&e("div",{part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},e("div",{part:"filters-options-container",class:"filters-options-container"},l.outdoorSitesWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},`${l.outdoorSitesWithinBounds.length} ${l.outdoorSitesWithinBounds.length>1?n[l.language].home.outdoorSites:n[l.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()},n[l.language].erase),e("button",{part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkOutdoorSitesFilters()},n[l.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")},n[l.language].home.segment.outdoorSites," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},n[l.language].themes," ",l.selectedThemesFilters!==0&&`(${l.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&e("label",{part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},n[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.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"},l["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:n[l.language].practice,filterPlaceholder:n[l.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),l["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:n[l.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:n[l.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&e("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},l["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:n[l.language].themes,filterPlaceholder:n[l.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"},l["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:n[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:n[l.language].placeholderDistricts})),l["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:n[l.language].crossedCities,filterPlaceholder:n[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),e("div",{key:"e321af3fe889643fbeebdf98b795b45bee577e99",part:"back-filters-container",class:"back-filters-container",onClick:()=>this.handleFilters()})))}};Pt.style=Tt;const Ft=".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 Ot=Ft;const Et=class{constructor(e){t(this,e);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}render(){return e(i,{key:"8cd022c14d3042ec3aa810280591403200618e27",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},e("span",{key:"46787d8eebe717ddf59f632c375a2e3260fbba1a",part:"loader",class:"loader"}))}};Et.style=Ot;!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){const t=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(e,i,r,s,o){var n=i||new L.Point(0,0);if(!s)return i=n._round(),t.setTransform.apply(this,arguments);n=n.rotateFrom(s,o),e.style[L.DomUtil.TRANSFORM]="translate3d("+n.x+"px,"+n.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+s+"rad)"},setPosition:function(e,i,r,s,o){if(!r)return t.setPosition.apply(this,arguments);e._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(e,i,o,r,s):(e.style.left=i.x+"px",e.style.top=i.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(t){return this.rotateFrom(t,new L.Point(0,0))},rotateFrom:function(t,e){if(!t)return this;var i=Math.sin(t),r=Math.cos(t),s=e.x,o=e.y,n=this.x-s,a=this.y-o;return new L.Point(n*r-a*i+s,n*i+a*r+o)}});const e=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(e.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(e._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var t=this._getAnchor(),i=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(i).add(t))}}});const i=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(t){if(i._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var e=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(e))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,r=this._containerWidth,s=new L.Point(this._containerLeft,-i-this._containerBottom);s._add(L.DomUtil.getPosition(this._container));var o=s._add(this._map._getMapPanePos()),n=L.point(this.options.autoPanPadding),a=L.point(this.options.autoPanPaddingTopLeft||n),l=L.point(this.options.autoPanPaddingBottomRight||n),c=t.getSize(),p=0,d=0;o.x+r+l.x>c.x&&(p=o.x+r-c.x+l.x),o.x-p-a.x<0&&(p=o.x-a.x),o.y+i+l.y>c.y&&(d=o.y+i-c.y+l.y),o.y-d-a.y<0&&(d=o.y-a.y),(p||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([p,d]))}}});const r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);e=this._map.rotatedPointToMapPanePoint(e),this._setPosition(e)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var t=this._map.latLngToLayerPoint(this._latlng);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(t,e){var i=this.options,r=i[e+"Size"];"number"==typeof r&&(r=[r,r]);var s=L.point(r),o=L.point("shadow"===e&&i.shadowAnchor||i.iconAnchor||s&&s.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=o.x+"px "+o.y+"px 0px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")}});const s=L.extend({},L.Marker.prototype);var o;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var n={_onDrag:function(t){var e=this._marker,i=e.options.rotation||e.options.rotateWithView,r=e._shadow,s=L.DomUtil.getPosition(e._icon);!i&&r&&L.DomUtil.setPosition(r,s),e._map._rotate&&(s=e._map.mapPanePointToRotatedPoint(s));var o=e._map.layerPointToLatLng(s);e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i?e.setLatLng(o):e.fire("move",t),e.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),o._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(s.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=s._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(o=o||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:n._onDrag.bind(this.dragging),_onDragEnd:n._onDragEnd.bind(this.dragging)}),this.dragging.enable()),t},_setPos:function(t){this._map._rotate&&(t=this._map.rotatedPointToMapPanePoint(t));var e=this.options.rotation||0;this.options.rotateWithView&&(e+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,t,e,t,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,t,e,t,this.options.scale),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(t){this.options.rotation=t,this.update()}});const a=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=a.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),t.rotate=this._onRotate),t},_getTiledPixelBounds:function(t){return this._map._rotate?this._map._getNewPixelBounds(t,this._tileZoom):a._getTiledPixelBounds.apply(this,arguments)}});const l=L.extend({},L.Renderer.prototype);L.Renderer.include({getEvents:function(){return L.extend(l.getEvents.apply(this,arguments),{rotate:this._update})},onAdd:function(){l.onAdd.apply(this,arguments),L.version<="1.9.3"&&this._container.classList.add("leaflet-zoom-animated")},_updateTransform:function(t,e){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var i=this._map.getZoomScale(e,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,e,t);L.DomUtil.setTransform(this._container,r,i)},_update:function(){if(!this._map._rotate)return l._update.apply(this,arguments);this._bounds=this._map._getPaddedPixelBounds(this.options.padding),this._topLeft=this._map.layerPointToLatLng(this._bounds.min),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}});const c=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(t,e){e.rotate&&(this._rotate=!0,this._bearing=0),c.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(t){return this._rotate?L.point(t).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):c.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(t){return this._rotate?L.point(t).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):c.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(t){return L.point(t).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(t){return L.point(t)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(t){if(!this._rotate&&c.mapBoundsToContainerBounds)return c.mapBoundsToContainerBounds.apply(this,arguments);const e=this.getPixelOrigin(),i=this.layerPointToContainerPoint(this.project(t.getNorthWest())._subtract(e)),r=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(e)),s=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(e)),o=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(e));return L.bounds([L.point(Math.min(i.x,r.x,o.x,s.x),Math.min(i.y,r.y,o.y,s.y)),L.point(Math.max(i.x,r.x,o.x,s.x),Math.max(i.y,r.y,o.y,s.y))])},getBounds:function(){if(!this._rotate)return c.getBounds.apply(this,arguments);var t=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([t.x,0]),this.containerPointToLatLng([t.x,t.y]),this.containerPointToLatLng([0,t.y])])},setBearing:function(t){if(L.Browser.any3d&&this._rotate){var e=L.Util.wrapNum(t,[0,360])*L.DomUtil.DEG_TO_RAD,i=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,i),s=r.rotateFrom(e,i);L.DomUtil.setPosition(this._rotatePane,r,e,i),this._pivot=i,this._bearing=e,this._rotatePanePos=s,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(t.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(t.shadowPane,"leaflet-zoom-hide"))},panInside(t,e){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.panInside.apply(this,arguments);e=e||{};const i=L.point(e.paddingTopLeft||e.padding||[0,0]),r=L.point(e.paddingBottomRight||e.padding||[0,0]),s=this._container.getBoundingClientRect(),o=this.latLngToContainerPoint(t),n=L.bounds([L.point(s),L.point(s).add(this.getSize())]),a=n.getCenter(),l=L.bounds([n.min.add(i),n.max.subtract(r)]),p=l.getSize();if(!l.contains(o)){this._enforcingBounds=!0;const t=o.subtract(l.getCenter()),i=l.extend(o).getSize().subtract(p);a.x+=t.x<0?-i.x:i.x,a.y+=t.y<0?-i.y:i.y,this.panTo(this.containerPointToLatLng(a),e),this._enforcingBounds=!1}return this},getBoundsZoom(t,e,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.getBoundsZoom.apply(this,arguments);t=L.latLngBounds(t),i=L.point(i||[0,0]);let r=this.getZoom()||0;const s=this.getMinZoom(),o=this.getMaxZoom(),n=this.getSize().subtract(i),a=this.mapBoundsToContainerBounds(t).getSize(),l=this.options.zoomSnap,p=n.x/a.x,d=n.y/a.y,h=e?Math.max(p,d):Math.min(p,d);return r=this.getScaleZoom(h,r),l&&(r=Math.round(r/(l/100))*(l/100),r=e?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(s,Math.min(o,r))},_getCenterOffset:function(t){var e=c._getCenterOffset.apply(this,arguments);return this._rotate&&(e=e.rotate(this._bearing)),e},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(t,e){if(!this._rotate)return c._getNewPixelOrigin.apply(this,arguments);var i=this.getSize()._divideBy(2);return this.project(t,e).rotate(this._bearing)._subtract(i)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(t,e){if(t=t||this.getCenter(),e=e||this.getZoom(),!this._rotate&&c._getNewPixelBounds)return c._getNewPixelBounds.apply(this,arguments);var i=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(i,e),s=this.project(t,e).floor(),o=this.getSize(),n=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([o.x,0]).floor(),this.containerPointToLayerPoint([0,o.y]).floor(),this.containerPointToLayerPoint([o.x,o.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(s.subtract(n),s.add(n))},_getPixelCenter:function(){return!this._rotate&&c._getPixelCenter?c._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(t){if(!this._rotate&&c._getPaddedPixelBounds)return c._getPaddedPixelBounds.apply(this,arguments);var e=t,i=this.getSize(),r=i.multiplyBy(-e),s=i.multiplyBy(1+e);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,s.y]).floor(),this.containerPointToLayerPoint([s.x,r.y]).floor(),this.containerPointToLayerPoint([s.x,s.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,r=t.coords.heading,s=new L.LatLng(e,i),o=s.toBounds(t.coords.accuracy),n=this._locateOptions;if(n.setView){var a=this.getBoundsZoom(o);this.setView(s,n.maxZoom?Math.min(a,n.maxZoom):a)}var l={latlng:s,bounds:o,timestamp:t.timestamp,heading:r};for(var c in t.coords)"number"==typeof t.coords[c]&&(l[c]=t.coords[c]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(t){this._map=t,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(t){var e=t.webkitCompassHeading||t.alpha,i=0;!t.absolute&&t.webkitCompassHeading&&(e=360-e),t.absolute||void 0===window.orientation||(i=window.orientation),this._map.setBearing(e-i)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(t){this._map=t,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming&&!this._rotating){var i=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),s=i.subtract(r);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(r)._divideBy(2))),this._startDist=i.distanceTo(r),this._startZoom=e.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(s.x/s.y),this._startBearing=e.getBearing(),s.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,e._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&(this._zooming||this._rotating)){var e,i=this._map,r=i.mouseEventToContainerPoint(t.touches[0]),s=i.mouseEventToContainerPoint(t.touches[1]),o=r.subtract(s),n=r.distanceTo(s)/this._startDist;if(this._rotating){var a=(Math.atan(o.x/o.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;o.y<0&&(a+=180),a&&i.setBearing(this._startBearing-a)}if(this._zooming)if(this._zoom=i.getScaleZoom(n,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&n<1||this._zoom>i.getMaxZoom()&&n>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===n)return}else{if(e=r._add(s)._divideBy(2)._subtract(this._centerPoint),1===n&&0===e.x&&0===e.y)return;var l=-i.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=i.unproject(i.project(this._pinchStartLatLng).subtract(e.rotate(l)))}this._moved||(i._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var c=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(c,this,!0),L.DomEvent.preventDefault(t)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(t){t.shiftKey?(t.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(t.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(t){var e=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),i=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");i.style.backgroundImage="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")",i.style.cursor="grab",i.style.display="block",i.style.width="100%",i.style.height="100%",i.style.backgroundRepeat="no-repeat",i.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",e);return r.appendChild(i),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),t.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===t.getBearing()&&(e.style.display="none"),e},onRemove:function(t){t.off("rotate",this._restyle,this)},_handleMouseDown:function(t){L.DomEvent.stop(t),this.dragging=!0,this.dragstartX=t.pageX,this.dragstartY=t.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(t){L.DomEvent.stop(t),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(t){if(this.dragging){var e=t.clientX-this.dragstartX;this._map.setBearing(e)}},_cycleState:function(t){if(this._map){var e=this._map;e.touchRotate.enabled()||e.compassBearing.enabled()?e.compassBearing.enabled()?(e.compassBearing.disable(),e.setBearing(0),this.options.closeOnZeroBearing&&e.touchRotate.enable()):(e.touchRotate.disable(),e.compassBearing.enable()):e.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var t=this._map,e=t.getBearing();this._arrow.style.transform="rotate("+e+"deg)",e&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),t.compassBearing.enabled()?this._link.style.backgroundColor="orange":t.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===e&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(t){return new L.Control.Rotate(t)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var t="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(t),this.addControl(this.rotateControl)}}))}));var jt={exports:{}};
|
|
2
|
-
/*!
|
|
3
|
-
Copyright (c) 2016 Dominik Moritz
|
|
4
|
-
|
|
5
|
-
This file is part of the leaflet locate control. It is licensed under the MIT license.
|
|
6
|
-
You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
|
|
7
|
-
*/(function(t,e){(function(e,i){{if(typeof i!=="undefined"&&i.L){t.exports=e(L)}else{t.exports=e(F.exports)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=e(L)}})((function(t){const e=(e,i,r)=>{r=r.split(" ");r.forEach((function(r){t.DomUtil[e].call(this,i,r)}))};const i=(t,i)=>e("addClass",t,i);const r=(t,i)=>e("removeClass",t,i);const s=t.Marker.extend({initialize(e,i){t.Util.setOptions(this,i);this._latlng=e;this.createIcon()},createIcon(){const e=this.options;let i="";if(e.color!==undefined){i+=`stroke:${e.color};`}if(e.weight!==undefined){i+=`stroke-width:${e.weight};`}if(e.fillColor!==undefined){i+=`fill:${e.fillColor};`}if(e.fillOpacity!==undefined){i+=`fill-opacity:${e.fillOpacity};`}if(e.opacity!==undefined){i+=`opacity:${e.opacity};`}const r=this._getIconSVG(e,i);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG(t,e){const i=t.radius;const r=t.weight;const s=i+r;const o=s*2;const n=`<svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${o}" version="1.1" viewBox="-${s} -${s} ${o} ${o}">`+'<circle r="'+i+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:n,w:o,h:o}},setStyle(e){t.Util.setOptions(this,e);this.createIcon()}});const o=s.extend({initialize(e,i,r){t.Util.setOptions(this,r);this._latlng=e;this._heading=i;this.createIcon()},setHeading(t){this._heading=t},_getIconSVG(t,e){const i=t.radius;const r=t.width+t.weight;const s=(i+t.depth+t.weight)*2;const o=`M0,0 l${t.width/2},${t.depth} l-${r},0 z`;const n=`transform: rotate(${this._heading}deg)`;const a=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${s}" version="1.1" viewBox="-${r/2} 0 ${r} ${s}" style="${n}">`+'<path d="'+o+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:s}}});const n=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds(t){return t.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:s,compassClass:o,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback(e,i){const r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",e);r.title=i.strings.title;r.href="#";r.setAttribute("role","button");const s=t.DomUtil.create(i.iconElementTag,i.icon,r);if(i.strings.text!==undefined){const e=t.DomUtil.create(i.textElementTag,"leaflet-locate-text",r);e.textContent=i.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(i.icon.length>0){s.classList.add("leaflet-locate-icon")}}return{link:r,icon:s}},onLocationError(t,e){alert(t.message)},onLocationOutsideMapBounds(t){t.stop();alert(t.options.strings.outsideMapBoundsMsg)},showPopup:true,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:Infinity,watch:true,setView:false}},initialize(e){for(const i in e){if(typeof this.options[i]==="object"){t.extend(this.options[i],e[i])}else{this.options[i]=e[i]}}this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=t.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd(e){const i=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=i;this._map=e;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(e);this._event=undefined;this._compassHeading=null;this._prevBounds=null;const r=this.options.createButtonCallback(i,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(e){t.DomEvent.stopPropagation(e);t.DomEvent.preventDefault(e);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return i},_onClick(){this._justClicked=true;const t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){const e=this.options.clickBehavior;let i=e.outOfView;if(this._map.getBounds().contains(this._event.latlng)){i=t?e.inView:e.inViewNotFollowing}if(e[i]){i=e[i]}switch(i){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){const t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;t.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate(){if(this._active||!this._map){return}this._map.locate(this.options.locateOptions);this._map.fire("locateactivate",this);this._active=true;this._map.on("locationfound",this._onLocationFound,this);this._map.on("locationerror",this._onLocationError,this);this._map.on("dragstart",this._onDrag,this);this._map.on("zoomstart",this._onZoom,this);this._map.on("zoomend",this._onZoomEnd,this);if(this.options.showCompass){const e="ondeviceorientationabsolute"in window;if(e||"ondeviceorientation"in window){const i=this;const r=function(){t.DomEvent.on(window,e?"deviceorientationabsolute":"deviceorientation",i._onDeviceOrientation,i)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){r()}}))}else{r()}}}},_deactivate(){if(!this._active||!this._map){return}this._map.stopLocate();this._map.fire("locatedeactivate",this);this._active=false;if(!this.options.cacheLocation){this._event=undefined}this._map.off("locationfound",this._onLocationFound,this);this._map.off("locationerror",this._onLocationError,this);this._map.off("dragstart",this._onDrag,this);this._map.off("zoomstart",this._onZoom,this);this._map.off("zoomend",this._onZoomEnd,this);if(this.options.showCompass){this._compassHeading=null;if("ondeviceorientationabsolute"in window){t.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){t.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var e=this.options.flyTo?this._map.flyTo:this._map.setView;e.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var e=this.options.flyTo?this._map.flyTo:this._map.panTo;e.bind(this._map)([this._event.latitude,this._event.longitude])}else{var e=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;e.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});t.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass(){if(!this._event){return}const t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){const e=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,e).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(e)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker(){if(this._event.accuracy===undefined){this._event.accuracy=0}const e=this._event.accuracy;const i=this._event.latlng;if(this.options.drawCircle){const r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(i,e,r).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(e).setStyle(r)}}let r;let s;if(this.options.metric){r=e.toFixed(0);s=this.options.strings.metersUnit}else{r=(e*3.2808399).toFixed(0);s=this.options.strings.feetUnit}if(this.options.drawMarker){const t=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(i,t).addTo(this._layer)}else{this._marker.setLatLng(i);if(this._marker.setStyle){this._marker.setStyle(t)}}}this._drawCompass();const o=this.options.strings.popup;function n(){if(typeof o==="string"){return t.Util.template(o,{distance:r,unit:s})}else if(typeof o==="function"){return o({distance:r,unit:s})}else{return o}}if(this.options.showPopup&&o&&this._marker){this._marker.bindPopup(n())._popup.setLatLng(i)}if(this.options.showPopup&&o&&this._compass){this._compass.bindPopup(n())._popup.setLatLng(i)}},_removeMarker(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading(e){if(!isNaN(parseFloat(e))&&isFinite(e)){e=Math.round(e);this._compassHeading=e;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration(){this._setCompassHeading()},_onDeviceOrientation(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound(t){if(this._event&&this._event.latlng.lat===t.latlng.lat&&this._event.latlng.lng===t.latlng.lng&&this._event.accuracy===t.accuracy){return}if(!this._active){return}this._event=t;this._drawMarker();this._updateContainerStyle();switch(this.options.setView){case"once":if(this._justClicked){this.setView()}break;case"untilPan":if(!this._userPanned){this.setView()}break;case"untilPanOrZoom":if(!this._userPanned&&!this._userZoomed){this.setView()}break;case"always":this.setView();break}this._justClicked=false},_onDrag(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd(){if(this._event){this._drawCompass()}if(this._event&&!this._ignoreEvent){if(this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}}},_isFollowing(){if(!this._active){return false}if(this.options.setView==="always"){return true}else if(this.options.setView==="untilPan"){return!this._userPanned}else if(this.options.setView==="untilPanOrZoom"){return!this._userPanned&&!this._userZoomed}},_isOutsideMapBounds(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle(){if(!this._container){return}if(this._active&&!this._event){this._setClasses("requesting")}else if(this._isFollowing()){this._setClasses("following")}else if(this._active){this._setClasses("active")}else{this._cleanClasses()}},_setClasses(t){if(t=="requesting"){r(this._container,"active following");i(this._container,"requesting");r(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");i(this._container,"active");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");i(this._container,"active following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}},_cleanClasses(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)},_resetVariables(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=e=>new t.Control.Locate(e);return n}),window)})(jt);var Yt={exports:{}};(function(t,e){(function(e,i){{t.exports=e(F.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)})(Yt);var St={exports:{}};(function(t,e){!function(t){t()}((function(){!function(e,i){t.exports=e(F.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 s(t){var s=Math.floor(t/r),o=Math.floor((t-s*r)/i),n=Math.floor((t-s*r-o*i)/e),a=Math.round((t-s*r-o*i-n*e)/1e3);return 60===a&&(n++,a=0),60===n&&(o++,n=0),24===o&&(s++,o=0),(s?s+"d ":"")+o.toString().padStart(2,0)+":"+n.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'}function o(t,e){var i=w("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 w(t,e,i,r){var s=L.DomUtil.create(t,e||"");return i&&v(s,i),r&&g(r,s),s}function g(t,e){return t.appendChild(e)}function b(t,e,i){return t.insertAdjacentElement(i,e)}function v(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:s,saveFile:o,lazyLoader:n,drawCanvas:a,clamp:l,addClass:c,removeClass:p,toggleClass:d,replaceClass:h,style:u,toggleStyle:f,toggleEvent:m,create:w,append:g,insert:b,setAttributes:v,select:k,on:x,off:y,hasClass:A,randomId:z,each:C}),B={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"}},_=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,s=t.scaleX,o=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=s(t[i])})).y0(e).y1((function(t){return o(t[r])}))},T=function(t){var e=t.name,i=t.color,r=t.strokeColor,s=t.strokeOpacity,o=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",s||"1").attr("fill-opacity",o||"0.8"),n},P=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,s=void 0===r?6:r,o=t.tickPadding,n=void 0===o?3:o,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,w=t.labelY,g=t.name,b=void 0===g?"":g,v=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==a&&(r=l),"right"==a&&(e=c),"x"==p&&"grid"==i?s=-l:"y"==p&&"grid"==i&&(s=-c);var o=d3["axis"+a.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(d).ticks(h).tickPadding(n).tickSize(s).tickFormat(u),g=t.append("g").attr("class",[p,i,a,b].join(" ")).attr("transform","translate("+e+","+r+")").call(o);return f&&g.append("svg:text").attr("x",m).attr("y",w).text(f),v&&g.call(v),g}},O=function(t){return t.type="grid",P(t)},E=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,s=t.yCoord,o=void 0===s?0:s,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,s=t.select(".height-focus.line"),n=t.select(".height-focus.circle-lower"),l=t.select(".height-focus-label");return s.node()||(s=t.append("svg:line")),n.node()||(n=t.append("svg:circle")),l.node()||(l=t.append("svg:text")),isNaN(r)||isNaN(o)||(n.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+o+")").attr("r",6).attr("cx",0).attr("cy",0),s.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",o).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}},j=function(t){var e=t.name,i=t.label,r=t.width,s=t.height,o=t.margins,n=void 0===o?{}:o,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",s+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",s+n.bottom/2).attr("dy","0.75em"),t}},Y=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,s=t.height,o=t.labels,n=void 0===o?{}:o,a=t.item,l=void 0===a?{}:a;return function(t){var o=t.select(".mouse-focus-line"),a=t.select(".mouse-focus-label");o.node()||(o=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)),o.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",s),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}},S=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}]),s=t.selectAll(".horizontal-drag-line").data([{w:i}]),o=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(),s.exit().remove(),o.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})),s.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(s).attr("x2",(function(t){return t.w})),o.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(o).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}},N=function(t){var e=t.point,i=t.height,r=t.width,s=t.x,o=t.y;return function(t){return isNaN(s)||isNaN(o)||(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:s,y:o}).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:-o,bottom:i-o}[e.position],x2:{left:-s,right:r-s}[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,s=t.name,o=t.forceBounds,n=t.scale;return function(t){r=r||s,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]||o)&&(a[0]=e),void 0!==i&&(i>a[1]||o)&&(a[1]=i),a}},$=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,s=t.max,o=t.forceBounds,n=t.range;return d3.scaleLinear().range(n).domain(I({min:r,max:s,attr:i,forceBounds:o})(e))},H=function(t){var e=t.width,i=t.height,r=t.margins,s=void 0===r?{}:r,o=e-s.left-s.right,n=i-s.top-s.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(Y({xCoord:0,yCoord:0,height:n,width:o,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return c.brush.select(".overlay").attr("cursor",null)})),w={mask:p,canvas:u,context:f,brush:m},g={svg:a,g:l,panes:c,utils:w,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,s=void 0===r?{}:r,o=t.ruler,n=e-s.left-s.right,p=i-s.top-s.bottom;a.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).attr("height",i),l.attr("transform","translate("+s.left+","+s.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&u.style("transform","translate("+s.left+"px,"+s.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),o&&c.ruler.call(S({height:p,width:n})),c.brush.call(m.extent([[0,0],[n,p]])),c.brush.select(".overlay").attr("cursor",null),g._width=n,g._height=p,g.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 w[t]}};return g._resize({width:e,height:i,margins:s}),g},G=Object.freeze({__proto__:null,Colors:B,Area:_,Path:T,Axis:P,Grid:O,PositionMarker:E,LegendItem:j,Tooltip:Y,Ruler:S,CheckPoint:N,Domain:I,Range:$,Scale:D,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,s=t.x,o=t.attr;return d3.bisector((function(t){return t[o]})).left(i,r.invert(s))},Chart:H}),Z=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",_(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],s=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:s,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]),s=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._data[s]})}}})).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,s=i.legend,o=i.name,n=i.enabled;if(r){var a=k("text",s),l=k("rect",s);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:o,legend:s,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(),s=t._ruler.data()[0].y;(s>=r||s<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var s=t._height(),o=d3.pointers(i,t._area.node())[0][1],n=o>0?o<s?o:s: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<s),t._container.select(".horizontal-drag-label").text(e(a)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:o<s&&o>0?t._findCoordsForY(o):[]})})),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=T(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),s=this._ranges[t.name]=$(t);i.range=i.range||s(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(N({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,s=this._props.grids,o=this._props.axes,n={width:this._width(),height:this._height(),tickFormat:""},a={width:this._width(),height:this._height()};for(var l in s)e=L.extend({},n,s[l]),r=O(e),this._grid.call(r);for(var c in o)!1!==t[c]&&"summary"!==t[c]&&(e=L.extend({},a,o[c]),i=P(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),s=r.attr("transform"),o=s.substring(s.indexOf("(")+1,s.indexOf(")")).split(",");r.attr("transform","translate("+(+o[0]+40*e)+","+o[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]],s=t._data[t._maskGaps[i+1]],o=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),n=t._x(t._data[t._findIndexForLatLng(s.latlng)].dist);t._mask.append("rect").attr("x",o).attr("y",0).attr("width",n-o).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=j(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(e);var s=this._legend.selectAll(".legend-item"),o=s.nodes().length,n=Array(Math.floor(o/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(o%2))})),a=n.slice().reverse().map((function(t){return-t}));o%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*o;o&&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")),s.each((function(e,i,r){var s=d3.select(r[i]),o=(s.select("rect"),s.attr("data-name")),a=t._paths[o],c=55*n[i],p=2*l;s.attr("transform","translate("+c+", "+p+")"),o in t.options&&"disabled"==t.options[o]&&(a.classed("leaflet-hidden",!0),s.select("text").style("text-decoration-line","line-through"),s.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),s=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),o=0;return s.reduce((function(t,r,n){return s[e=n+1]===s[n]+1&&e!==s.length||(t.push(s.slice(o,e).map((function(t){return i[t].latlng}))),o=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,s){var o=t.distanceTo(r.latlng);o<i&&(i=o,e=s)})),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(Y({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 R(t){return(R="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,Q=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(E({}));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(E({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}}),V=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},u(this._container=w("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||b(t.getContainer(),e,"afterend"),g(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(B,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":R(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":R(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==R(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=w("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 s,o,n,a,l;t.meta=null!==(s=t.meta)&&void 0!==s?s:{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!==(o=t.lat)&&void 0!==o?o: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=w("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 s=e.options.theme.replace("-theme",""),o=B[s]||{},n=r.options;if(n.color=o.line||o.area||s,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=o.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,s=i.offsetHeight;r>0&&(e.width=r),s>20&&(e.height=s-20)}else{var o=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>o&&(e.width=o-30)}var n=this._chart=new Z(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 Q(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=w("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 V({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,s=i.wptLabels,o=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 o,n,a;if(e.options.waypoints){var l=t.properties,c=null!==(o=l.desc)&&void 0!==o?o:"",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(s)?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(s)&&(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,o),e._fireEvt("eledata_loaded",{data:t,layer:o,name:e.track_info.name,track_info:e.track_info})})),o},_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(),s=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[r](i);return o.name=s.length>0?(null!==(e=Array.from(s).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:s[0]).textContent:"",o},_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 s=e._data[r.index][t.name];if(r.index>0){var o=e._data[r.index-1][t.name];if(isNaN(o)){if(isNaN(i)||isNaN(s)?isNaN(i)?isNaN(s)||(o=s):o=i:o=(i+s)/2,!isNaN(o))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=o}}isNaN(s)||(i=s)}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(){
|
|
8
|
-
/*!this._data.length ||*/
|
|
9
|
-
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:o.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 s(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"===R(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(),s=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+s)}else e.meta.time=new Date(Date.now());var o=e.meta.time;return o.getTime()-60*o.getTimezoneOffset()*1e3==0&&(o=0),o},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: ")+s(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return s(t.time||0)},order:20}}))})),X.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),s=B[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,s=t.track_info;if(t.options.altitudeDeltaMax){var o=e-r[i>0?i-1:i].z,n=t.options.altitudeDeltaMax;Math.abs(o)>n&&(e=r[i-1].z+n*Math.sign(o))}return(e=l(e,t.options.altitudeRange))>s.elevation_max&&(s.elevation_max=e),e<s.elevation_min&&(s.elevation_min=e),s.elevation_avg=(e+s.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:s.area||r,strokeColor:e.detached?s.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?s.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),s=i[e].z-i[e>0?e-1:e].z;return isNaN(s)||0===r?0:s/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,s=t._data,o=s[i].z-s[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var n=slop-s[i>0?i-1:i].slope,a=t.options.slopeDeltaMax;Math.abs(n)>a&&(e=s[i-1].slope+a*Math.sign(n))}return e=l(e,t.options.slopeRange),o>0?t.track_info.ascent+=o:o<0&&(t.track_info.descent-=o),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,s=1e3*(r[i].dist-r[i>0?i-1:i].dist),o=r[i].time-r[i>0?i-1:i].time;return o>0?Math.abs(s/o*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,s=t.track_info;if(t.options.speedDeltaMax){var o=e-r[i>0?i-1:i].speed,n=t.options.speedDeltaMax;Math.abs(o)>n&&(e=r[i-1].speed+n*Math.sign(o))}return(e=l(e,t.options.speedRange))>s.speed_max&&(s.speed_max=e),e<s.speed_min&&(s.speed_min=e),s.speed_avg=(e+s.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,s=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),o=(r[i].time-r[i>0?i-1:i].time)/1e3;return o>0?Math.abs(s/o)*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,s=t.track_info;if(t.options.accelerationDeltaMax){var o=e-r[i>0?i-1:i].acceleration,n=t.options.accelerationDeltaMax;Math.abs(o)>n&&(e=r[i-1].acceleration+n*Math.sign(o))}return(e=l(e,t.options.accelerationRange))>s.acceleration_max&&(s.acceleration_max=e),e<s.acceleration_min&&(s.acceleration_min=e),s.acceleration_avg=(e+s.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=G,X.Chart=Z,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)}}))})(St);var Nt={exports:{}};(function(t,e){!function(t,i){i(e)}(O,(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,s=this._nonPointGroup,o=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(o&&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(),w=m[0]===i?m[1]:m[0];r.removeLayer(w)}}else s.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):s.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,s=this._featureGroup,o=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),o.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}),s.hasLayer(i)&&(s.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.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,s,o=this._needsClustering.slice(),n=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),r=o.length-1;0<=r;r--){for(i=!0,s=n.length-1;0<=s;s--)if(n[s].layer===o[r]){i=!1;break}i&&t.call(e,o[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,s=Math.floor(this._map.getMinZoom());s<=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,s=this._gridUnclustered,o=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)),s[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&&(o.removeLayer(c),i||o.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,s=this.options.spiderfyOnEveryZoom;(e||r||s)&&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,s=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),s.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 s=t;e<=s;s--)this._gridClusters[s]=new L.DistanceGrid(r(s)),this._gridUnclustered[s]=new L.DistanceGrid(r(s));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,s=this._gridClusters,o=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=s[e].getNearObject(i);if(a)return a._addChild(t),void(t.__parent=a);if(a=o[e].getNearObject(i)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,e,a,t);s[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),s[r].addObject(p,this._map.project(a.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(a,e)}o[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(),s=0;for(e=e||[];s<r.length;s++)(i=r[s])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(),s=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,o,(function(o){var n,a=o._latlng,l=o._markers;for(r.contains(a)||(a=null),o._isSingleParent()&&t+1===e?(s.removeLayer(o),o._recursivelyAddChildrenToMap(null,e,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,e,r)),i=l.length-1;0<=i;i--)n=l[i],r.contains(n._latlng)||s.removeLayer(n)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),s.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,o,(function(t){s.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(),s=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,s,e+1,i);var o=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,s,(function(t){t._recursivelyRemoveChildrenFromMap(r,s,e+1)}));o._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,s=r.getBoundsZoom(this._bounds),o=this._zoom+1,n=r.getZoom();0<i.length&&o<s;){o++;var a=[];for(e=0;e<i.length;e++)a=a.concat(i[e]._childClusters);i=a}o<s?this._group._map.setView(this._latlng,o):s<=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,s=this._markers,o=this._childClusters,n=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<s.length;t++)i=s[t]._latlng,this._bounds.extend(i),n+=i.lat,a+=i.lng;for(t=0;t<o.length;t++)(e=o[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,s=t._markers;for(i=s.length-1;0<=i;i--)(r=s[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,s=t._childClusters;for(i=s.length-1;0<=i;i--)(r=s[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(s){s._recursivelyAnimateChildrenIn(t,s._group._map.latLngToLayerPoint(s.getLatLng()).round(),i),s._isSingleParent()&&i-1===r?(s.clusterShow(),s._recursivelyRemoveChildrenFromMap(t,e,i)):s.clusterHide(),s._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 s=r._markers.length-1;0<=s;s--){var o=r._markers[s];i.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(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 s=this._childClusters.length-1;0<=s;s--)this._childClusters[s]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var s,o;this._recursively(t,e-1,i-1,(function(t){for(o=t._markers.length-1;0<=o;o--)s=t._markers[o],r&&r.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())}),(function(t){for(o=t._childClusters.length-1;0<=o;o--)s=t._childClusters[o],r&&r.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())}))},_recursively:function(t,e,i,r,s){var o,n,a=this._childClusters,l=this._zoom;if(e<=l&&(r&&r(this),s&&l===i&&s(this)),l<e||l<i)for(o=a.length-1;0<=o;o--)(n=a[o])._boundsNeedUpdate&&n._recalculateBounds(),t.intersects(n._bounds)&&n._recursively(t,e,i,r,s)},_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),s=this._grid,o=s[r]=s[r]||{},n=o[i]=o[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,s=this._getCoord(e.x),o=this._getCoord(e.y),n=this._grid,a=n[o]=n[o]||{},l=a[s]=a[s]||[];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[s],!0},eachObject:function(t,e){var i,r,s,o,n,a,l=this._grid;for(i in l)for(r in n=l[i])for(s=0,o=(a=n[r]).length;s<o;s++)t.call(e,a[s])&&(s--,o--)},getNearObject:function(t){var e,i,r,s,o,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(s=this._grid[e])for(i=c-1;i<=c+1;i++)if(o=s[i])for(r=0,n=o.length;r<n;r++)a=o[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,s,o=0,n=null,a=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(s=this.getDistant(r,t))&&(a.push(r),o<s&&(o=s,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,s=!1,o=!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===s||h.lng>s)&&(s=(l=h).lng),(!1===o||h.lng<o)&&(o=(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,s=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,n=[];for(s=Math.max(s,35),n.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*o,n[i]=new L.Point(e.x+s*Math.cos(r),e.y+s*Math.sin(r))._round();return n},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,s=r*this._spiralLengthStart,o=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+s*Math.cos(a),e.y+s*Math.sin(a))._round()),s+=n/(a+=o/s+5e-4*i);return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,s=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=o.length-1;0<=e;e--)t=o[e],s.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:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,s,o,n=this._group,a=n._map,l=n._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(n._ignoreMove=!0,i=0;i<t.length;i++)o=a.layerPointToLatLng(e[i]),r=t[i],s=new L.Polyline([this._latlng,o],c),a.addLayer(s),r._spiderLeg=s,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),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,s,o,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),w=m.opacity;for(void 0===w&&(w=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=w,c._ignoreMove=!0,i=0;i<t.length;i++)r=t[i],a=p.layerPointToLatLng(e[i]),s=new L.Polyline([h,a],m),p.addLayer(s),r._spiderLeg=s,f&&(n=(o=s._path).getTotalLength()+.1,o.style.strokeDasharray=n,o.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&&((o=(s=r._spiderLeg)._path).style.strokeDashoffset=0,s.setStyle({opacity:w}));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,s,o,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&&(o=(s=(r=e._spiderLeg)._path).getTotalLength()+.1,s.style.strokeDashoffset=o,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})}))})(Nt,Nt.exports);var It=6371008.8;var $t={centimeters:It*100,centimetres:It*100,degrees:It/111325,feet:It*3.28084,inches:It*39.37,kilometers:It/1e3,kilometres:It/1e3,meters:It,metres:It,miles:It/1609.344,millimeters:It*1e3,millimetres:It*1e3,nauticalmiles:It/1852,radians:1,yards:It*1.0936};function Dt(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 Ht(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(!qt(t[0])||!qt(t[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:t};return Dt(r,e,i)}function Gt(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 Zt(t,e){if(e===void 0){e="kilometers"}var i=$t[e];if(!i){throw new Error(e+" units is invalid")}return t*i}function Rt(t){var e=t%360;return e*Math.PI/180}function qt(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function Qt(t,e,i){if(t===null)return;var r,s,o,n,a,l,c,p=0,d=0,h,u=t.type,f=u==="FeatureCollection",m=u==="Feature",w=f?t.features.length:1;for(var g=0;g<w;g++){c=f?t.features[g].geometry:m?t.geometry:t;h=c?c.type==="GeometryCollection":false;a=h?c.geometries.length:1;for(var b=0;b<a;b++){var v=0;var k=0;n=h?c.geometries[b]: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,g,v,k)===false)return false;d++;v++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(e(l[r],d,g,v,k)===false)return false;d++;if(x==="MultiPoint")v++}if(x==="LineString")v++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(s=0;s<l[r].length-p;s++){if(e(l[r][s],d,g,v,k)===false)return false;d++}if(x==="MultiLineString")v++;if(x==="Polygon")k++}if(x==="Polygon")v++;break;case"MultiPolygon":for(r=0;r<l.length;r++){k=0;for(s=0;s<l[r].length;s++){for(o=0;o<l[r][s].length-p;o++){if(e(l[r][s][o],d,g,v,k)===false)return false;d++}k++}v++}break;case"GeometryCollection":for(r=0;r<n.geometries.length;r++)if(Qt(n.geometries[r],e,i)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function Vt(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 Ut(t){var e=[];if(t.type==="FeatureCollection"){Vt(t,(function(t){Qt(t,(function(i){e.push(Ht(i,t.properties))}))}))}else{Qt(t,(function(i){e.push(Ht(i,t.properties))}))}return Gt(e)}function Xt(t){var e=[Infinity,Infinity,-Infinity,-Infinity];Qt(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}Xt["default"]=Xt;function Wt(t,e){if(e===void 0){e={}}var i=Xt(t);var r=(i[0]+i[2])/2;var s=(i[1]+i[3])/2;return Ht([r,s],e.properties,e)}function Kt(t){if(!t){throw new Error("geojson is required")}switch(t.type){case"Feature":return Jt(t);case"FeatureCollection":return ee(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return ie(t);default:throw new Error("unknown GeoJSON type")}}function Jt(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=te(t.properties);e.geometry=ie(t.geometry);return e}function te(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]=te(r)}}else{e[i]=r}}));return e}function ee(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 Jt(t)}));return e}function ie(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 ie(t)}));return e}e.coordinates=re(t.coordinates);return e}function re(t){var e=t;if(typeof e[0]!=="object"){return e.slice()}return e.map((function(t){return re(t)}))}function se(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 oe(t){if(t.type==="Feature"){return t.geometry}return t}function ne(t,e,i){if(i===void 0){i={}}var r=se(t);var s=se(e);var o=Rt(s[1]-r[1]);var n=Rt(s[0]-r[0]);var a=Rt(r[1]);var l=Rt(s[1]);var c=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(n/2),2)*Math.cos(a)*Math.cos(l);return Zt(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),i.units)}function ae(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i;var r=Infinity;var s=0;Vt(e,(function(e,i){var o=ne(t,e);if(o<r){s=i;r=o}}));i=Kt(e.features[s]);i.properties.featureIndex=s;i.properties.distanceToPoint=r;return i}function le(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=se(t);var s=oe(e);var o=s.type;var n=e.bbox;var a=s.coordinates;if(n&&pe(r,n)===false){return false}if(o==="Polygon"){a=[a]}var l=false;for(var c=0;c<a.length&&!l;c++){if(ce(r,a[c][0],i.ignoreBoundary)){var p=false;var d=1;while(d<a[c].length&&!p){if(ce(r,a[c][d],!i.ignoreBoundary)){p=true}d++}if(!p){l=true}}}return l}function ce(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 s=0,o=e.length-1;s<e.length;o=s++){var n=e[s][0];var a=e[s][1];var l=e[o][0];var c=e[o][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 pe(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function de(t){var e=he(t);var i=Wt(e);var r=false;var s=0;while(!r&&s<e.features.length){var o=e.features[s].geometry;var n,a,l,c,p,d,h;var u=false;if(o.type==="Point"){if(i.geometry.coordinates[0]===o.coordinates[0]&&i.geometry.coordinates[1]===o.coordinates[1]){r=true}}else if(o.type==="MultiPoint"){var f=false;h=0;while(!f&&h<o.coordinates.length){if(i.geometry.coordinates[0]===o.coordinates[h][0]&&i.geometry.coordinates[1]===o.coordinates[h][1]){r=true;f=true}h++}}else if(o.type==="LineString"){h=0;while(!u&&h<o.coordinates.length-1){n=i.geometry.coordinates[0];a=i.geometry.coordinates[1];l=o.coordinates[h][0];c=o.coordinates[h][1];p=o.coordinates[h+1][0];d=o.coordinates[h+1][1];if(ue(n,a,l,c,p,d)){u=true;r=true}h++}}else if(o.type==="MultiLineString"){var m=0;while(m<o.coordinates.length){u=false;h=0;var w=o.coordinates[m];while(!u&&h<w.length-1){n=i.geometry.coordinates[0];a=i.geometry.coordinates[1];l=w[h][0];c=w[h][1];p=w[h+1][0];d=w[h+1][1];if(ue(n,a,l,c,p,d)){u=true;r=true}h++}m++}}else if(o.type==="Polygon"||o.type==="MultiPolygon"){if(le(i,o)){r=true}}s++}if(r){return i}else{var g=Gt([]);for(s=0;s<e.features.length;s++){g.features=g.features.concat(Ut(e.features[s]).features)}return Ht(ae(i,g).geometry.coordinates)}}function he(t){if(t.type!=="FeatureCollection"){if(t.type!=="Feature"){return Gt([Dt(t)])}return Gt([t])}return t}function ue(t,e,i,r,s,o){var n=Math.sqrt((s-i)*(s-i)+(o-r)*(o-r));var a=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var l=Math.sqrt((s-t)*(s-t)+(o-e)*(o-e));return n===a+l}const fe='@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}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"/></svg>\');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(32, 116, 182)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(252, 132, 40)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.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:calc(100% - 280px - var(--map-bottom-space-height))}.common-map{height:calc(100% - 64px)}#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 .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(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.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:14px;height:14px;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:32px !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,.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,.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,.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-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,.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{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{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{width:36px !important}.parking-marker{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.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}';const me=fe;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.useGradient=false;this.tilesMaxZoomOffline=16;this.isLargeView=false;this.grwApp=false}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(!l.parentTrek&&(!l.selectedTrekId||l.selectedTrekId!==t.detail)){l.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(l.parentTrek){this.stepPopupIsOpen=false;l.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}}onCardTrekMouseLeave(){if(!this.trekPopupIsOpen&&l.selectedTrekId){this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}}onTouristicContentMouseOver(t){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)}onTouristicContentMouseLeave(){l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}onTouristicEventMouseOver(t){this.touristicEventPopupIsOpen=false;l.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)}onTouristicEventMouseLeave(){l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}onTrekDownloadedSuccessConfirm(){this.map.setMaxZoom(this.tilesMaxZoomOffline)}onTrekDeleteSuccessConfirm(){this.map.setMaxZoom(this.maxZoom)}onOutdoorSiteMouseOver(t){this.outdoorSitePopupIsOpen=false;l.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(t.detail)}onOutdoorSiteMouseLeave(){l.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}componentDidLoad(){this.map=E.map(this.mapRef,{zoom:4,center:[47,2]});E.control.scale({metric:true,imperial:false}).addTo(this.map);E.control.locate({showPopup:false}).addTo(this.map);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:j.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.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()};return t}});E.control.contract=t=>new E.Control.Contract(t);E.control.contract({position:"topleft"}).addTo(this.map);if(l.currentTrek){this.addTrek()}else if(l.currentTreks){this.addTreks()}else if(l.currentTouristicContent){this.addTouristicContent()}else if(l.currentTouristicEvent){this.addTouristicEvent()}else if(l.currentOutdoorSite){this.addOutdoorSite()}else if(l.currentOutdoorCourse){this.addOutdoorCourse()}else if(l.touristicContents){this.addTouristicContents()}else if(l.touristicEvents){this.addTouristicEvents()}else if(l.outdoorSites){this.addOutdoorSites()}w("currentTreks",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTrek){this.removeTreks();this.addTrek()}else if(l.currentTreks){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeOutdoorSites();this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks(true)}}));w("currentOutdoorSites",(()=>{if(l.currentOutdoorSites){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeOutdoorSites();this.addOutdoorSites(true)}}));w("currentTrek",(()=>{if(l.currentTrek){this.removeTreks();this.addTrek()}else if(l.currentTreks){this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks()}}));w("currentOutdoorSite",(()=>{if(l.currentOutdoorSite){this.removeOutdoorCourse();this.removeOutdoorSites();this.addOutdoorSite()}else if(l.currentOutdoorSites){this.removeOutdoorSite();this.addOutdoorSites()}}));w("currentOutdoorSite",(()=>{if(l.currentOutdoorCourse){this.removeOutdoorSite();this.addOutdoorCourse()}}));w("currentTouristicContent",(()=>{if(l.currentTouristicContent){this.removeTrek();this.removeTouristicContents();this.addTouristicContent()}else if(l.touristicContents){this.removeTouristicContent();this.addTouristicContents()}else if(l.currentTrek){this.removeTouristicContent();this.addTrek()}else if(l.currentTreks){this.removeTouristicContent();this.addTreks()}}));w("currentTouristicEvent",(()=>{if(l.currentTouristicEvent){this.removeTrek();this.removeTouristicEvents();this.addTouristicEvent()}else if(l.currentTrek){this.removeTouristicEvent();this.addTrek()}else if(l.currentTreks){this.removeTouristicEvent();this.addTreks()}}));w("currentTouristicContents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTouristicContent){this.removeTouristicContents();this.addTouristicContent()}else if(l.currentTouristicContents){this.removeTreks();this.removeTouristicEvents();this.removeOutdoorSites();this.removeTouristicContent();this.addTouristicContents(true)}}));w("currentTouristicEvents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTouristicEvent){this.removeTouristicEvents();this.addTouristicEvent()}else if(l.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;l.treksWithinBounds=l.currentTreks;const i=[];const r={type:"FeatureCollection",features:[]};if(l.currentTreks){for(const t of l.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=l.practices.find((e=>e.id===t.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.treksLayer){if(i.length>0&&!l.currentMapBounds||t){this.bounds=E.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(l.currentMapBounds){this.bounds=l.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:32,iconAnchor:[16,32]}),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 s=E.DomUtil.create("div");s.part="trek-departure-popup";s.className="trek-departure-popup";if(r){const t=E.DomUtil.create("img");t.part="trek-image-popup";t.src=r;s.appendChild(t)}const o=E.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";s.appendChild(o);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);s.appendChild(n);e.bindPopup(s,{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:48})});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){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(l.currentTreks&&!l.currentMapBounds||l.currentTreks&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.treksWithinBounds=l.currentTreks.filter((t=>this.map.getBounds().contains(E.latLng(t.departure_geom[1],t.departure_geom[0]))))}}handleTouristicContentsWithinBounds(){if(l.currentTouristicContents&&!l.currentMapBounds||l.currentTouristicContents&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.touristicContentsWithinBounds=l.currentTouristicContents.filter((t=>this.map.getBounds().contains(E.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleTouristicEventsWithinBounds(){if(l.currentTouristicEvents&&!l.currentMapBounds||l.currentTouristicEvents&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.touristicEventsWithinBounds=l.currentTouristicEvents.filter((t=>this.map.getBounds().contains(E.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleOutdoorSitesWithinBounds(){if(l.currentOutdoorSites&&!l.currentMapBounds||l.currentOutdoorSites&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.outdoorSitesWithinBounds=l.currentOutdoorSites.filter((t=>{const e=de(t.geometry).geometry.coordinates;return this.map.getBounds().contains(E.latLng(e[1],e[0]))}))}}async addTrek(){var t;const e=await Y("treks",l.currentTrek.id);if(e){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();const i={type:"Feature",geometry:l.currentTrek.geometry,properties:{}};this.currentTrekLayer=E.geoJSON(i,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);if(l.currentTrek.parking_location){const t=s(`${""}assets/parking.svg`);const e={type:"Feature",properties:{name:l.currentTrek.advised_parking},geometry:{type:"Point",coordinates:l.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:48,iconAnchor:[24,48]}),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(l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const e of l.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(l.currentTrek);await this.addCurrentPois();await this.addCurrentTouristicContents();await this.addCurrentTouristicEvents();if(l.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:l.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:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&l.parentTrekId&&l.parentTrek&&l.currentTrek.id===l.parentTrekId){const e={type:"FeatureCollection",features:[]};if(l.currentTrekSteps){for(const i of l.currentTrekSteps){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:i.departure_geom},properties:{id:i.id,name:i.name,practice:(t=l.practices.find((t=>t.id===i.practice)))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})}}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:32,iconAnchor:[16,32]}),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 s=E.DomUtil.create("div");s.part="trek-departure-popup";s.className="trek-departure-popup";if(r){const t=E.DomUtil.create("img");t.src=r;s.appendChild(t)}const o=E.DomUtil.create("div");o.innerHTML=t.properties.name;s.part="trek-name";o.className="trek-name";s.appendChild(o);const n=E.DomUtil.create("button");n.innerHTML="Afficher le détail";s.part="trek-button";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);s.appendChild(n);e.bindPopup(s,{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 o={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:`#elevation`,theme:`custom-theme${!this.useGradient?" use-theme-color":""}`,detached:true,height:280,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:"inline",time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=E.control.elevation(Object.assign({},o)).addTo(this.map);const n=JSON.stringify({name:`${l.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:l.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(n);const a={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:l.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:l.currentTrek.geometry.coordinates[l.currentTrek.geometry.coordinates.length-1]},properties:null}]};let c=0;this.departureArrivalLayer=E.geoJSON(a,{pointToLayer:(t,e)=>{c+=1;return E.marker(e,{icon:E.divIcon({html:`<div part="${c===1?"departure-marker":"arrival-marker"}" class="${c===1?"departure-marker":"arrival-marker"}"></div>`,className:"",iconSize:14}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=E.latLngBounds(l.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));this.map.on("eledata_loaded",(()=>{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(!g.isNativePlatform()){const i=await b(t);e=i?window.URL.createObjectURL((await v(t)).data):t?t:null}else{const i=await k.getUri({path:t,directory:x.Data});if(i){e=g.convertFileSrc(i.uri)}}return e}async addSelectedCurrentTrek(t,e){var i;const r={type:"FeatureCollection",features:[]};if(l.currentTreks){const s=l.currentTreks.find((e=>e.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:s.departure_geom},properties:{id:s.id,name:s.name,practice:(i=l.practices.find((t=>t.id===s.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:s.attachments&&s.attachments.length>0&&s.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();l.selectedTrekId=t;const s=await this.getIcons(r,"practice");this.selectedCurrentTrekLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:s[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=${s[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:48,iconAnchor:[24,48]}),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 s=E.DomUtil.create("div");s.part="trek-departure-popup";s.className="trek-departure-popup";if(r){const t=E.DomUtil.create("img");t.src=r;t.part="trek-image";s.appendChild(t)}const o=E.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";s.appendChild(o);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);s.appendChild(n);e.bindPopup(s,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.trekPopupIsOpen){l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}));e.on("popupopen",(()=>{this.trekPopupIsOpen=Boolean(l.selectedTrekId)}));e.on("popupclose",(()=>{if(l.selectedTrekId){this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}))}}).addTo(this.map)}removeSelectedCurrentTrek(){l.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null}addSelectedCurrentStep(t,e){var i;const r={type:"FeatureCollection",features:[]};if(l.currentTrekSteps){const s=l.currentTrekSteps.findIndex((e=>e.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:l.currentTrekSteps[s].departure_geom},properties:{id:l.currentTrekSteps[s].id,name:l.currentTrekSteps[s].name,practice:(i=l.practices.find((t=>t.id===l.currentTrekSteps[s].practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:l.currentTrekSteps[s].attachments&&l.currentTrekSteps[s].attachments.length>0&&l.currentTrekSteps[s].attachments[0].thumbnail,index:s+1}})}this.removeSelectedCurrentStep();l.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:48,iconAnchor:[24,48]}),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 s=E.DomUtil.create("div");s.part="trek-departure-popup";s.className="trek-departure-popup";if(r){const t=E.DomUtil.create("img");t.part="trek-image";t.src=r;s.appendChild(t)}const o=E.DomUtil.create("div");o.innerHTML=t.properties.name;o.part="trek-name";o.className="trek-name";s.appendChild(o);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);s.appendChild(n);e.bindPopup(s,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.stepPopupIsOpen){l.selectedTrekId=null;this.removeSelectedCurrentStep()}}));e.on("popupopen",(()=>{this.stepPopupIsOpen=Boolean(l.selectedStepId)}));e.on("popupclose",(()=>{if(l.selectedStepId){this.stepPopupIsOpen=false;l.selectedStepId=null;this.removeSelectedCurrentStep()}}))}}).addTo(this.map)}removeSelectedCurrentStep(){if(l.selectedStepId){l.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 H(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;l.selectedTouristicContentId=null;this.removeSelectedTouristicContent();const t={type:"FeatureCollection",features:[]};if(l.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:l.currentTouristicContent.geometry.coordinates},properties:{id:l.currentTouristicContent.id,name:l.currentTouristicContent.name,practice:l.touristicContentCategories.find((t=>t.id===l.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:48}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([l.currentTouristicContent.geometry.coordinates[1],l.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){l.touristicContentsWithinBounds=l.currentTouristicContents;const e=[];const i={type:"FeatureCollection",features:[]};if(l.currentTouristicContents){for(const t of l.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:l.touristicContentCategories.find((e=>e.id===t.category)).pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticContentsLayer){if(e.length>0&&!l.currentMapBounds||t){this.bounds=E.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(l.currentMapBounds){this.bounds=l.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:32,iconAnchor:[16,32]}),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 s=E.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-content-button";s.className="touristic-content-button";s.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);i.appendChild(s);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:48})});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.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind)}removeTouristicContents(){if(this.toutisticContentsLayer){l.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(l.currentTouristicEvent){const e=l.touristicEventTypes.find((t=>t.id===l.currentTouristicEvent.type));t.features.push({type:"Feature",geometry:{type:"Point",coordinates:l.currentTouristicEvent.geometry.coordinates},properties:{id:l.currentTouristicEvent.id,name:l.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:48}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([l.currentTouristicEvent.geometry.coordinates[1],l.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(l.touristicContents){const s=l.touristicContents.find((e=>e.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:s.geometry.coordinates},properties:{id:s.id,name:s.name,category:(i=l.touristicContentCategories.find((t=>t.id===s.category)))===null||i===void 0?void 0:i.pictogram,imgSrc:s.attachments&&s.attachments.length>0&&s.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();l.selectedTouristicContentId=t;const s=await this.getIcons(r,"category");this.selectedTouristicContentLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:s[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=${s[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:48,iconAnchor:[24,48]}),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 s=E.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-content-button";s.className="touristic-content-button";s.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.touristicContentPopupIsOpen){l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}));e.on("popupopen",(()=>{this.touristicContentPopupIsOpen=Boolean(l.selectedTouristicContentId)}));e.on("popupclose",(()=>{if(l.selectedTouristicContentId){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}))}}).addTo(this.map)}removeSelectedTouristicContent(){l.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null}async addTouristicEvents(t=false){var e;l.touristicEventsWithinBounds=l.currentTouristicEvents;const i=[];const r={type:"FeatureCollection",features:[]};if(l.currentTouristicEvents){for(const t of l.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=l.touristicEventTypes.find((e=>e.id===t.type)))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.touristicEventsLayer){if(i.length>0&&!l.currentMapBounds||t){this.bounds=E.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(l.currentMapBounds){this.bounds=l.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:32,iconAnchor:[16,32]}),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 s=E.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-event-button";s.className="touristic-event-button";s.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);i.appendChild(s);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:48})});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.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind)}removeTouristicEvents(){if(this.touristicEventsLayer){l.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;l.outdoorSitesWithinBounds=l.currentOutdoorSites;const i=[];const r={type:"FeatureCollection",features:[]};if(l.currentOutdoorSites){for(const t of l.currentOutdoorSites){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:de(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(e=l.outdoorPractices.find((e=>e.id===t.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.outdoorSitesLayer){if(i.length>0&&!l.currentMapBounds||t){const t=Xt(r);this.bounds=E.latLngBounds([t[1],t[0]],[t[3],t[2]])}else{if(l.currentMapBounds){this.bounds=l.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:32,iconAnchor:[16,32]}),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 s=E.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-site-button";s.className="outdoor-site-button";s.onclick=()=>this.outdoorSiteCardPress.emit(t.properties.id);i.appendChild(s);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:48})});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.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind)}removeOutdoorSites(){if(this.outdoorSitesLayer){l.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(l.currentOutdoorSite){const e=l.outdoorPractices.find((t=>t.id===l.currentOutdoorSite.practice));t.features.push({type:"Feature",geometry:l.currentOutdoorSite.geometry,properties:{id:l.currentOutdoorSite.id,name:l.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>`,iconSize:48}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})});this.map.addLayer(this.currentOutdoorSiteLayer)}await this.addCurrentInformationDesks(l.currentOutdoorSite);await this.addCurrentPois();await this.addCurrentTouristicContents();await this.addCurrentTouristicEvents();await this.addCurrentRelatedOutdoorSites();await this.addCurrentRelatedOutdoorCourses();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}async addCurrentRelatedOutdoorSites(){var t;const e={type:"FeatureCollection",features:[]};if(l.currentRelatedOutdoorSites){for(const i of l.currentRelatedOutdoorSites){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(t=l.outdoorPractices.find((t=>t.id===i.practice)))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})}}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>`,iconSize:48}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})})}}async addCurrentRelatedOutdoorCourses(){var t;const e={type:"FeatureCollection",features:[]};if(l.currentRelatedOutdoorCourses){for(const i of l.currentRelatedOutdoorCourses){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(t=l.outdoorCourseTypes.find((t=>t.id===i.type)))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})}}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>`,iconSize:48}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})})}}removeOutdoorSite(){this.handleLayersOnRemove()}async addSelectedTouristicEvent(t,e){var i;const r={type:"FeatureCollection",features:[]};if(l.touristicEvents){const s=l.touristicEvents.find((e=>e.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:s.geometry.coordinates},properties:{id:s.id,name:s.name,category:(i=l.touristicEventTypes.find((t=>t.id===s.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:s.attachments&&s.attachments.length>0&&s.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();l.selectedTouristicEventId=t;const s=await this.getIcons(r,"category");this.selectedTouristicEventLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:s[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=${s[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:48,iconAnchor:[24,48]}),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 s=E.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="touristic-event-button";s.className="touristic-event-button";s.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.touristicEventPopupIsOpen){l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}));e.on("popupopen",(()=>{this.touristicEventPopupIsOpen=Boolean(l.selectedTouristicEventId)}));e.on("popupclose",(()=>{if(l.selectedTouristicEventId){this.touristicEventPopupIsOpen=false;l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}))}}).addTo(this.map)}removeSelectedTouristicEvent(){l.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null}async addOutdoorCourse(){const t={type:"FeatureCollection",features:[]};if(l.currentOutdoorCourse){const e=l.outdoorCourseTypes.find((t=>t.id===l.currentOutdoorCourse.type));t.features.push({type:"Feature",geometry:l.currentOutdoorCourse.geometry,properties:{id:l.currentOutdoorCourse.id,name:l.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>`,iconSize:48}),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(l.currentOutdoorSites){const e=l.currentOutdoorSites.find((e=>e.id===t));if(e&&e.geometry){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:de(e.geometry).geometry.coordinates},properties:{id:e.id,name:e.name,practice:(i=l.outdoorPractices.find((t=>t.id===e.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})}}this.removeSelectedOutdoorSite();l.selectedOutdoorSiteId=t;const s=await this.getIcons(r,"practice");this.selectedOutdoorSiteLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:s[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=${s[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:48,iconAnchor:[24,48]}),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 s=E.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-site-button";s.className="outdoor-site-button";s.onclick=()=>this.outdoorSiteCardPress.emit(t.properties.id);i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.outdoorSitePopupIsOpen){l.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}}));e.on("popupopen",(()=>{this.outdoorSitePopupIsOpen=Boolean(l.selectedOutdoorSiteId)}));e.on("popupclose",(()=>{if(l.selectedOutdoorSiteId){this.outdoorSitePopupIsOpen=false;l.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map)}removeSelectedOutdoorSite(){l.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null}async addSelectedOutdoorCourse(t,e){var i;const r={type:"FeatureCollection",features:[]};if(l.currentOutdoorCourse){const t=l.currentOutdoorCourse;r.features.push({type:"Feature",geometry:{type:"Point",coordinates:de(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=l.outdoorCourseTypes.find((e=>e.id===t.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}this.removeSelectedOutdoorCourse();l.selectedOutdoorCourseId=t;const s=await this.getIcons(r,"type");this.selectedOutdoorCourseLayer=E.geoJSON(r,{pointToLayer:(t,e)=>E.marker(e,{zIndexOffset:4e6,icon:E.divIcon({html:s[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=${s[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:48,iconAnchor:[24,48]}),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 s=E.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-course-button";s.className="outdoor-course-button";s.onclick=()=>this.outdoorCourseCardPress.emit(t.properties.id);i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(()=>{if(!this.outdoorCoursePopupIsOpen){l.selectedOutdoorCourseId=null;this.removeSelectedOutdoorCourse()}}));e.on("popupopen",(()=>{this.outdoorCoursePopupIsOpen=Boolean(l.selectedOutdoorCourseId)}));e.on("popupclose",(()=>{if(l.selectedOutdoorCourseId){this.outdoorCoursePopupIsOpen=false;l.selectedOutdoorCourseId=null;this.removeSelectedOutdoorCourse()}}))}}).addTo(this.map)}removeSelectedOutdoorCourse(){l.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null}async addCurrentPois(){var t;if(l.currentPois&&l.currentPois.length>0){const e={type:"FeatureCollection",features:[]};for(const i of l.currentPois){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=l.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:48}),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 addCurrentTouristicContents(){var t;if(l.trekTouristicContents&&l.trekTouristicContents.length>0){const e={type:"FeatureCollection",features:[]};for(const i of l.trekTouristicContents){e.features.push({type:"Feature",properties:{name:i.name,category_pictogram:(t=l.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:"",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{e.once("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(l.trekTouristicEvents&&l.trekTouristicEvents.length>0){const e={type:"FeatureCollection",features:[]};for(const i of l.trekTouristicEvents){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=l.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:"",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,e)=>{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(l.currentInformationDesks&&l.currentInformationDesks.length>0){const e={type:"FeatureCollection",features:[]};for(const i of l.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:48}),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[n[l.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){t[n[l.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){t[n[l.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){t[n[l.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){t[n[l.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){t[n[l.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){t[n[l.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentTouristicEventsLayer){t[n[l.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){t[n[l.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){t[n[l.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.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}}render(){const t=s(`${""}assets/layers.svg`);const r=s(`${""}assets/contract.svg`);return e(i,{key:"7bb7283327e9c052d62a3e289c984dde39f222fd",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})`,"--map-bottom-space-height":this.isLargeView||!this.grwApp?"0px":"144px"}},e("div",{key:"791ec31343feebab7ab861f8f5b754a3d1c01ac7",id:"map",part:"map",class:l.currentTouristicContent||l.currentTouristicEvent||l.currentOutdoorSite||l.currentOutdoorCourse?"common-map":l.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t}),!this.mapIsReady&&e("div",{part:"map-loader-container",class:"map-loader-container"},e("span",{part:"loader",class:"loader"})))}};we.style=me;function ge({swiper:t,extendParams:e,on:i,emit:r}){const s=J();e({mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});t.mousewheel={enabled:false};let o;let n=et();let a;const l=[];function c(t){const e=10;const i=40;const r=800;let s=0;let o=0;let n=0;let a=0;if("detail"in t){o=t.detail}if("wheelDelta"in t){o=-t.wheelDelta/120}if("wheelDeltaY"in t){o=-t.wheelDeltaY/120}if("wheelDeltaX"in t){s=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){s=o;o=0}n=s*e;a=o*e;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){n=t.deltaX}if(t.shiftKey&&!n){n=a;a=0}if((n||a)&&t.deltaMode){if(t.deltaMode===1){n*=i;a*=i}else{n*=r;a*=r}}if(n&&!s){s=n<1?-1:1}if(a&&!o){o=a<1?-1:1}return{spinX:s,spinY:o,pixelX:n,pixelY:a}}function p(){if(!t.enabled)return;t.mouseEntered=true}function d(){if(!t.enabled)return;t.mouseEntered=false}function h(e){if(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&et()-n<t.params.mousewheel.thresholdTime){return false}if(e.delta>=6&&et()-n<60){return true}if(e.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();r("scroll",e.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();r("scroll",e.raw)}n=(new s.Date).getTime();return false}function u(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges){return true}return false}function f(e){let i=e;let s=true;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const n=t.params.mousewheel;if(t.params.cssMode){i.preventDefault()}let p=t.el;if(t.params.mousewheel.eventsTarget!=="container"){p=document.querySelector(t.params.mousewheel.eventsTarget)}const d=p&&p.contains(i.target);if(!t.mouseEntered&&!d&&!n.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;let f=0;const m=t.rtlTranslate?-1:1;const w=c(i);if(n.forceToAxis){if(t.isHorizontal()){if(Math.abs(w.pixelX)>Math.abs(w.pixelY))f=-w.pixelX*m;else return true}else if(Math.abs(w.pixelY)>Math.abs(w.pixelX))f=-w.pixelY;else return true}else{f=Math.abs(w.pixelX)>Math.abs(w.pixelY)?-w.pixelX*m:-w.pixelY}if(f===0)return true;if(n.invert)f=-f;let g=t.getTranslate()+f*n.sensitivity;if(g>=t.minTranslate())g=t.minTranslate();if(g<=t.maxTranslate())g=t.maxTranslate();s=t.params.loop?true:!(g===t.minTranslate()||g===t.maxTranslate());if(s&&t.params.nested)i.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){const t={time:et(),delta:Math.abs(f),direction:Math.sign(f),raw:e};if(l.length>=2){l.shift()}const i=l.length?l[l.length-1]:undefined;l.push(t);if(i){if(t.direction!==i.direction||t.delta>i.delta||t.time>i.time+150){h(t)}}else{h(t)}if(u(t)){return true}}else{const e={time:et(),delta:Math.abs(f),direction:Math.sign(f)};const s=a&&e.time<a.time+500&&e.delta<=a.delta&&e.direction===a.direction;if(!s){a=undefined;let c=t.getTranslate()+f*n.sensitivity;const p=t.isBeginning;const d=t.isEnd;if(c>=t.minTranslate())c=t.minTranslate();if(c<=t.maxTranslate())c=t.maxTranslate();t.setTransition(0);t.setTranslate(c);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!p&&t.isBeginning||!d&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(o);o=undefined;if(l.length>=15){l.shift()}const i=l.length?l[l.length-1]:undefined;const r=l[0];l.push(e);if(i&&(e.delta>i.delta||e.direction!==i.direction)){l.splice(0)}else if(l.length>=15&&e.time-r.time<500&&r.delta-e.delta>=1&&e.delta<=6){const i=f>0?.8:.2;a=e;l.splice(0);o=tt((()=>{t.slideToClosest(t.params.speed,true,undefined,i)}),0)}if(!o){o=tt((()=>{const i=.5;a=e;l.splice(0);t.slideToClosest(t.params.speed,true,undefined,i)}),500)}}if(!s)r("scroll",i);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(c===t.minTranslate()||c===t.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function m(e){let i=t.el;if(t.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(t.params.mousewheel.eventsTarget)}i[e]("mouseenter",p);i[e]("mouseleave",d);i[e]("wheel",f)}function w(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",f);return true}if(t.mousewheel.enabled)return false;m("addEventListener");t.mousewheel.enabled=true;return true}function g(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,f);return true}if(!t.mousewheel.enabled)return false;m("removeEventListener");t.mousewheel.enabled=false;return true}i("init",(()=>{if(!t.params.mousewheel.enabled&&t.params.cssMode){g()}if(t.params.mousewheel.enabled)w()}));i("destroy",(()=>{if(t.params.cssMode){w()}if(t.mousewheel.enabled)g()}));Object.assign(t.mousewheel,{enable:w,disable:g})}function be({swiper:t,extendParams:e,on:i,emit:r}){const s=it();let o=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:s}=e;const o=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(o.hide){clearTimeout(n);s.style.opacity=1;n=setTimeout((()=>{s.style.opacity=0;s.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 w(e){const{scrollbar:i,rtlTranslate:r}=t;const{el:s}=i;let o;o=(m(e)-ot(s)[t.isHorizontal()?"left":"top"]-(l!==null?l:c/2))/(p-c);o=Math.max(Math.min(o,1),0);if(r){o=1-o}const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(n);t.setTranslate(n);t.updateActiveIndex();t.updateSlidesClasses()}function g(e){const i=t.params.scrollbar;const{scrollbar:s,wrapperEl:n}=t;const{el:c,dragEl:p}=s;o=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";w(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 b(e){const{scrollbar:i,wrapperEl:s}=t;const{el:n,dragEl:a}=i;if(!o)return;if(e.preventDefault)e.preventDefault();else e.returnValue=false;w(e);s.style.transitionDuration="0ms";n.style.transitionDuration="0ms";a.style.transitionDuration="0ms";r("scrollbarDragMove",e)}function v(e){const i=t.params.scrollbar;const{scrollbar:s,wrapperEl:n}=t;const{el:l}=s;if(!o)return;o=false;if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="";n.style.transitionDuration=""}if(i.hide){clearTimeout(a);a=tt((()=>{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 o=i.el;if(!o)return;const n=o;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",g,a);s[c]("pointermove",b,a);s[c]("pointerup",v,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 o;if(typeof r.el==="string"&&t.isElement){o=t.el.shadowRoot.querySelector(r.el)}if(!o&&typeof r.el==="string"){o=s.querySelectorAll(r.el)}else if(!o){o=r.el}if(t.params.uniqueNavElements&&typeof r.el==="string"&&o.length>1&&i.querySelectorAll(r.el).length===1){o=i.querySelector(r.el)}if(o.length>0)o=o[0];o.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass);let n;if(o){n=o.querySelector(`.${t.params.scrollbar.dragClass}`);if(!n){n=st("div",t.params.scrollbar.dragClass);o.append(n)}}Object.assign(e,{el:o,dragEl:n});if(r.draggable){x()}if(o){o.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){C()}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 L=()=>{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 C=()=>{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:L,disable:C,updateSize:f,setTranslate:h,init:A,destroy:z})}function ve({swiper:t,extendParams:e,emit:i,once:r}){e({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function s(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function o(){if(t.params.cssMode)return;const{touchEventsData:e,touches:i}=t;if(e.velocities.length===0){e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime})}e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:et()})}function n({currentPos:e}){if(t.params.cssMode)return;const{params:s,wrapperEl:o,rtlTranslate:n,snapGrid:a,touchEventsData:l}=t;const c=et();const p=c-l.touchStartTime;if(e<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(e>-t.maxTranslate()){if(t.slides.length<a.length){t.slideTo(a.length-1)}else{t.slideTo(t.slides.length-1)}return}if(s.freeMode.momentum){if(l.velocities.length>1){const e=l.velocities.pop();const i=l.velocities.pop();const r=e.position-i.position;const o=e.time-i.time;t.velocity=r/o;t.velocity/=2;if(Math.abs(t.velocity)<s.freeMode.minimumVelocity){t.velocity=0}if(o>150||et()-e.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=s.freeMode.momentumVelocityRatio;l.velocities.length=0;let e=1e3*s.freeMode.momentumRatio;const c=t.velocity*e;let p=t.translate+c;if(n)p=-p;let d=false;let h;const u=Math.abs(t.velocity)*20*s.freeMode.momentumBounceRatio;let f;if(p<t.maxTranslate()){if(s.freeMode.momentumBounce){if(p+t.maxTranslate()<-u){p=t.maxTranslate()-u}h=t.maxTranslate();d=true;l.allowMomentumBounce=true}else{p=t.maxTranslate()}if(s.loop&&s.centeredSlides)f=true}else if(p>t.minTranslate()){if(s.freeMode.momentumBounce){if(p-t.minTranslate()>u){p=t.minTranslate()+u}h=t.minTranslate();d=true;l.allowMomentumBounce=true}else{p=t.minTranslate()}if(s.loop&&s.centeredSlides)f=true}else if(s.freeMode.sticky){let e;for(let t=0;t<a.length;t+=1){if(a[t]>-p){e=t;break}}if(Math.abs(a[e]-p)<Math.abs(a[e-1]-p)||t.swipeDirection==="next"){p=a[e]}else{p=a[e-1]}p=-p}if(f){r("transitionEnd",(()=>{t.loopFix()}))}if(t.velocity!==0){if(n){e=Math.abs((-p-t.translate)/t.velocity)}else{e=Math.abs((p-t.translate)/t.velocity)}if(s.freeMode.sticky){const i=Math.abs((n?-p:p)-t.translate);const r=t.slidesSizesGrid[t.activeIndex];if(i<r){e=s.speed}else if(i<2*r){e=s.speed*1.5}else{e=s.speed*2.5}}}else if(s.freeMode.sticky){t.slideToClosest();return}if(s.freeMode.momentumBounce&&d){t.updateProgress(h);t.setTransition(e);t.setTranslate(p);t.transitionStart(true,t.swipeDirection);t.animating=true;nt(o,(()=>{if(!t||t.destroyed||!l.allowMomentumBounce)return;i("momentumBounce");t.setTransition(s.speed);setTimeout((()=>{t.setTranslate(h);nt(o,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){i("_freeModeNoMomentumRelease");t.updateProgress(p);t.setTransition(e);t.setTranslate(p);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;nt(o,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(p)}t.updateActiveIndex();t.updateSlidesClasses()}else if(s.freeMode.sticky){t.slideToClosest();return}else if(s.freeMode){i("_freeModeNoMomentumRelease")}if(!s.freeMode.momentum||p>=s.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:s,onTouchMove:o,onTouchEnd:n}})}const ke=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>`;const xe=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"/></svg>`;const ye=`<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 Ae='@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}.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 ze=Ae;const Le=1;const Ce=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.displayFullscreen=false;this.currentOutdoorCourse=undefined;this.offline=false}componentDidLoad(){this.swiperImages=new at(this.swiperImagesRef,{modules:[lt,ct,pt,ve,ge],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()};this.swiperTouristicContents=new at(this.swiperTouristicContentsRef,{modules:[ve,ge,be],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}},loop:false});this.swiperTouristicEvents=new at(this.swiperTouristicEventsRef,{modules:[ve,ge,be],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}},loop:false});this.swiperPois=new at(this.swiperPoisRef,{modules:[ve,ge,be],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}},loop:false});if(this.poiRef){this.poiObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.poiIsInViewport.emit(e)}),{threshold:Le});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef){this.touristicContentObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(e)}),{threshold:Le});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef){this.touristicEventObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(e)}),{threshold:Le});this.touristicEventObserver.observe(this.touristicEventsRef)}}async connectedCallback(){if(l.currentOutdoorCourse){this.currentOutdoorCourse=l.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}w("currentOutdoorCourse",(async()=>{if(l.currentOutdoorCourse){this.currentOutdoorCourse=l.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=s(`${""}assets/default-image.svg`);const r=l.outdoorCourseTypes&&this.currentOutdoorCourse&&l.outdoorCourseTypes.find((t=>t.id===this.currentOutdoorCourse.type));const o=l.cities&&l.cities.find((t=>t.id===this.currentOutdoorCourse.cities[0]));const a=l.outdoorRatings&&this.currentOutdoorCourse&&l.outdoorRatings.filter((t=>this.currentOutdoorCourse.ratings.includes(t.id)));const c=a&&[...new Set(a.map((t=>t.scale)))];const p=c&&l.outdoorRatingsScale.filter((t=>c.includes(t.id)));return e(i,{key:"0c53ba770f1205fa1cdfd6857985876e25c3af8b",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?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"244px":"204px"}},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:ke})),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.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:dt}),e("span",{part:"label",class:"label"},y(this.currentOutdoorCourse.duration))),e("div",{part:"icon-label",class:"icon-label length"},e("span",{part:"icon",class:"icon",innerHTML:ht}),e("span",{part:"label",class:"label"},A(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&e("div",{part:"icon-label",class:"icon-label ascent"},e("span",{part:"icon",class:"icon",innerHTML:ut}),e("span",{part:"label",class:"label"},z(this.currentOutdoorCourse.max_elevation))),a&&p.map((t=>e("div",{part:"row",class:"row"},`${t.name} : ${a.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"},n[l.language].downloads),e("div",{part:"links-container",class:"links-container"},e("a",{href:`${this.currentOutdoorCourse.pdf}${l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:xe}),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},n[l.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"},n[l.language].departure," : "),e("div",{part:"departure",innerHTML:o.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"},n[l.language].crossedCities," : "),e("div",{part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((t=>{var e;return(e=l.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},n[l.language].recommendations),this.currentOutdoorCourse.advice&&e("div",{part:"current-advice-container",class:"current-advice-container"},e("span",{part:"icon",class:"icon",innerHTML:ye}),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"},n[l.language].accessibility),e("div",{part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),l.trekTouristicContents&&l.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},n[l.language].touristicContents(l.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"},l.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})))),l.trekTouristicEvents&&l.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},n[l.language].touristicEvents(l.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"},l.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})))),l.currentPois&&l.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},n[l.language].pois(l.currentPois.length)),e("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.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&&o&&!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/${o.id}0#${this.colorPrimaryApp}`}))),e("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))}};Ce.style=ze;function Me(t,e,i,r){return fetch(`${t}touristiccontent/${i}/?language=${e}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts`,r)}function Be(t,e,i,r){return fetch(`${t}touristiccontent/?language=${e}&near_trek=${i}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999`,r)}function _e(t,e,i,r){return fetch(`${t}touristiccontent/?language=${e}&near_outdoorsite=${i}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999`,r)}function Te(t,e,i,r){return fetch(`${t}touristiccontent/?language=${e}&near_outdoorcourse=${i}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999`,r)}function Pe(t,e,i,r){return fetch(`${t}touristicevent/${i}/?language=${e}&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true`,r)}function Fe(t,e,i,r){return fetch(`${t}touristicevent/?language=${e}&near_trek=${i}&published=true&fields=id,name,attachments,type,geometry&page_size=999`,r)}function Oe(t,e,i,r){return fetch(`${t}touristicevent/?language=${e}&near_outdoorsite=${i}&published=true&fields=id,name,attachments,type,geometry&page_size=999`,r)}function Ee(t,e,i,r){return fetch(`${t}touristicevent/?language=${e}&near_outdoorcourse=${i}&published=true&fields=id,name,attachments,type,geometry&page_size=999`,r)}const je=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(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleOutdoorCourse()}async handleOutdoorCourse(){const t=await Y("outdoorCourses",this.outdoorCourseId);if(t&&t.offline){this.handleOfflineOutdoorCourse(t)}else{this.handleOnlineOutdoorCourse()}}async handleOfflineOutdoorCourse(t){l.cities=await S("cities");l.districts=await S("districts");l.themes=await S("themes");l.touristicContentCategories=await S("touristicContentCategories");l.touristicEventTypes=await S("touristicEventTypes");l.poiTypes=await S("poiTypes");l.outdoorCourseTypes=await S("outdoorCourseTypes");const e=await S("pois",["url"]);const i=e.filter((e=>t.pois.some((t=>t===e.id))));l.currentPois=i;const r=await S("touristicContents",["url"]);const s=r.filter((e=>t.touristicContents.some((t=>t===e.id))));l.trekTouristicContents=s;const o=await S("touristicEvents",["url"]);const n=o.filter((e=>t.touristicEvents.some((t=>t===e.id))));l.trekTouristicEvents=n;await C(t,M,["url"]);l.currentOutdoorCourse=t}handleOnlineOutdoorCourse(){const t=[];t.push(!l.cities?G(l.api,l.language,this.init):new Response("null"));t.push(!l.districts?Z(l.api,l.language,this.init):new Response("null"));t.push(!l.themes?R(l.api,l.language,this.portals,this.init):new Response("null"));t.push(!l.outdoorCourseTypes?ft(l.api,l.language,this.init):new Response("null"));t.push(Te(l.api,l.language,this.outdoorCourseId,this.init));t.push(fetch(`${l.api}touristiccontent_category/?language=${l.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init));t.push(Ee(l.api,l.language,this.outdoorCourseId,this.init));t.push(fetch(`${l.api}touristicevent_type/?language=${l.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init));t.push(mt(l.api,l.language,this.outdoorCourseId,this.init));t.push(fetch(`${l.api}poi_type/?language=${l.language}&fields=id,pictogram`,this.init));t.push(wt(l.api,l.language,this.outdoorCourseId,this.init));try{Promise.all([...t]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,e,i,r,s,o,n,a,c,p,d])=>{l.networkError=false;if(t){l.cities=t.results}if(e){l.districts=e.results}if(i){l.themes=i.results}if(r){l.outdoorCourseTypes=r.results}if(s){l.trekTouristicContents=s.results}if(o){l.touristicContentCategories=o.results}if(n){l.trekTouristicEvents=n.results}if(a){l.touristicEventTypes=a.results}if(c){l.currentPois=c.results}if(p){l.poiTypes=p.results}l.currentOutdoorCourse=d}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return e(i,{key:"06ce371568bf30472e5bfa9030176a10d2666c80"})}};const Ye=`<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 Se=`<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 Ne=`<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 Ie=`<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 $e=`<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 De(t,e,i,r,s,o,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}`);s&&(c+=`&districts=${s}`);o&&(c+=`&structures=${o}`);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 He(t,e,i,r){let s=`${t}outdoor_site/${i}/?language=${e}&published=true`;s+=`&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(s,r)}function Ge(t,e,i){let r=`${t}outdoor_sitetype/?language=${e}&published=true`;return fetch(r,i)}function Ze(t,e,i){let r=`${t}outdoor_practice/?language=${e}&published=true`;return fetch(r,i)}function Re(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 qe(t){const e=await Y("outdoorSites",t);return e&&e.offline}const Qe='@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 Ve=Qe;const Ue=1;const Xe=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.offline=false;this.displayFullscreen=false;this.currentOutdoorSite=undefined;this.sources=undefined}onDownloadPress(){this.downloadRootOutdoorSite()}onDeletePress(){this.deleteOutdoorSite()}componentDidLoad(){this.swiperImages=new at(this.swiperImagesRef,{modules:[lt,ct,pt,ve,ge],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()};this.swiperRelatedOutdoorSites=new at(this.swiperRelatedOutdoorSitesRef,{modules:[ve,ge,be],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}},loop:false});this.swiperInformationDesks=new at(this.swiperInformationDesksRef,{modules:[ve,ge,be],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}},loop:false});this.swiperRelatedOutdoorCourses=new at(this.swiperRelatedOutdoorCoursesRef,{modules:[ve,ge,be],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}},loop:false});this.swiperTouristicContents=new at(this.swiperTouristicContentsRef,{modules:[ve,ge,be],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}},loop:false});this.swiperTouristicEvents=new at(this.swiperTouristicEventsRef,{modules:[ve,ge,be],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}},loop:false});this.swiperPois=new at(this.swiperPoisRef,{modules:[ve,ge,be],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}},loop:false});if(this.informationPlacesRef){this.informationPlacesObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.informationPlacesIsInViewport.emit(e)}),{threshold:Ue});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef){this.poiObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.poiIsInViewport.emit(e)}),{threshold:Ue});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef){this.touristicContentObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(e)}),{threshold:Ue});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef){this.touristicEventObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(e)}),{threshold:Ue});this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef){this.siteObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.sitesIsInViewport.emit(e)}),{threshold:Ue});this.siteObserver.observe(this.sitesRef)}if(this.coursesRef){this.courseObserver=new IntersectionObserver((t=>{const e=t[0].isIntersecting;this.coursesIsInViewport.emit(e)}),{threshold:Ue});this.courseObserver.observe(this.coursesRef)}}async connectedCallback(){if(l.currentOutdoorSite){this.sources=l.sources.filter((t=>l.currentOutdoorSite.source.includes(t.id)));this.currentOutdoorSite=l.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}w("currentOutdoorSite",(async()=>{if(l.currentOutdoorSite){this.sources=l.sources.filter((t=>l.currentOutdoorSite.source.includes(t.id)));this.currentOutdoorSite=l.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(!l.outdoorSites){const t=await De(l.api,l.language,l.inBboxFromProviders,l.citiesFromProviders,l.districtsFromProviders,l.structuresFromProviders,l.themesFromProviders,l.portalsFromProviders,i);l.outdoorSites=(await t.json()).results;l.currentOutdoorSites=l.outdoorSites}const r=(await N("outdoorSites")).filter((t=>t.offline===true));let s;s=l.outdoorSites;s=s.filter((t=>r.findIndex((e=>e.id===t.id))===-1));await I("outdoorSites",s);await this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry);await $(l.themes,M);await $(l.outdoorSiteTypes,M);await $(l.outdoorPractices,M);await $(l.sources,M);await $(this.currentOutdoorSite,M,true,["url"]);await I("cities",l.cities);await I("districts",l.districts);await I("themes",l.themes);await I("outdoorSiteTypes",l.outdoorSiteTypes);await I("outdoorPractices",l.outdoorPractices);await I("outdoorRatings",l.outdoorRatings);await I("outdoorRatingsScale",l.outdoorRatingsScale);await I("pois",l.currentPois);await I("poiTypes",l.poiTypes);await I("informationDesks",l.currentInformationDesks);await I("outdoorCourseTypes",l.outdoorCourseTypes);await I("touristicEventTypes",l.touristicEventTypes);await I("touristicContentCategories",l.touristicContentCategories);await I("sources",l.sources);await $(l.currentPois,M,true,["url"]);await $(l.currentInformationDesks,M,true);await $(l.outdoorCourseTypes,M,true);await $(l.touristicContentCategories,M,true);await $(l.trekTouristicContents,M,true,["url"]);l.trekTouristicContents.forEach((t=>{t.offline=true}));await I("touristicContents",l.trekTouristicContents);await $(l.trekTouristicEvents,M,true,["url"]);l.trekTouristicEvents.forEach((t=>{t.offline=true}));await I("touristicEvents",l.trekTouristicEvents);if(l.currentOutdoorSite.courses&&l.currentOutdoorSite.courses.length>0){for(let t=0;t<l.currentOutdoorSite.courses.length;t++){const e=l.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 I("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:l.currentPois.map((t=>t.id)),touristicContents:l.trekTouristicContents.map((t=>t.id)),touristicEvents:l.trekTouristicEvents.map((t=>t.id))})]);l.outdoorSites.find((t=>t.id===this.currentOutdoorSite.id)).offline=true;l.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 s=await He(l.api,l.language,t,r).then((t=>t.json()));await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,s.geometry);await $(s,M,true,["url"]);const o=(await Re(l.api,l.language,t,r).then((t=>t.json()))).results;await I("pois",o);await $(o,M,true,["url"]);const n=(await _e(l.api,l.language,t,r).then((t=>t.json()))).results;await $(n,M,true,["url"]);n.forEach((t=>{t.offline=true}));await I("touristicContents",n);const a=(await Oe(l.api,l.language,t,r).then((t=>t.json()))).results;await $(a,M,true,["url"]);a.forEach((t=>{t.offline=true}));await I("touristicEvents",a);await I("outdoorSites",[Object.assign(Object.assign({},s),{offline:true,pois:o.map((t=>t.id)),touristicContents:n.map((t=>t.id)),touristicEvents:a.map((t=>t.id))})]);if(s.courses&&s.courses.length>0){for(let t=0;t<s.courses.length;t++){const e=s.courses[t];await this.downloadOutdoorCourse(e)}}if(s.children&&s.children.length>0){for(let t=0;t<s.children.length;t++){const e=s.children[t];await this.downloadOutdoorSite(e)}}}async downloadOutdoorCourse(t){const e=new AbortController;const i=e.signal;const r={cache:"default",signal:i};const s=await wt(l.api,l.language,t,r).then((t=>t.json()));await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,s.geometry);await $(s,M,true,["url"]);const o=(await mt(l.api,l.language,t,r).then((t=>t.json()))).results;await I("pois",o);await $(o,M,true,["url"]);const n=(await Te(l.api,l.language,t,r).then((t=>t.json()))).results;await $(n,M,true,["url"]);n.forEach((t=>{t.offline=true}));await I("touristicContents",n);const a=(await Ee(l.api,l.language,t,r).then((t=>t.json()))).results;await $(a,M,true,["url"]);a.forEach((t=>{t.offline=true}));await I("touristicEvents",a);await I("outdoorCourses",[Object.assign(Object.assign({},s),{offline:true,pois:o.map((t=>t.id)),touristicContents:n.map((t=>t.id)),touristicEvents:a.map((t=>t.id))})])}async deleteOutdoorSite(){const t=[];const e=await Y("outdoorSites",this.currentOutdoorSite.id);this.deleteOfflineOutdoorSiteProperties(e);t.push(e);await I("outdoorSites",t);if(l.outdoorSites){delete l.outdoorSites.find((t=>t.id===this.currentOutdoorSite.id)).offline;if(!l.currentOutdoorSites){l.currentOutdoorSites=l.outdoorSites}delete l.currentOutdoorSites.find((t=>t.id===this.currentOutdoorSite.id)).offline}this.offline=false;this.deleteSuccessConfirm.emit()}async downloadGlobalTiles(t,e){const i=j.exports.tileLayerOffline(t,{attribution:e});const r=[];if(l.outdoorSites){for(const t of l.outdoorSites){r.push(de(t.geometry).geometry.coordinates)}}const s=E.latLngBounds(r.map((t=>[t[1],t[0]])));await D(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)}async downloadOutdoorSiteTiles(t,e,i){const r=j.exports.tileLayerOffline(t,{attribution:e});const s=Xt(i);const o=E.latLngBounds([s[1],s[0]],[s[3],s[2]]);await D(r,o,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)}deleteOfflineOutdoorSiteProperties(t){delete t.offline;delete t.pois;delete t.touristicContents;delete t.touristicEvents}render(){const t=s(`${""}assets/default-image.svg`);const r=l.outdoorPractices&&this.currentOutdoorSite&&l.outdoorPractices.find((t=>t.id===this.currentOutdoorSite.practice));const o=l.cities&&this.currentOutdoorSite&&l.cities.find((t=>t.id===this.currentOutdoorSite.cities[0]));const a=l.outdoorRatings&&this.currentOutdoorSite&&l.outdoorRatings.filter((t=>this.currentOutdoorSite.ratings.includes(t.id)));const c=a&&[...new Set(a.map((t=>t.scale)))];const p=c&&l.outdoorRatingsScale.filter((t=>c.includes(t.id)));return e(i,{key:"7b8c60c1799700365a05f092953660c653320f94",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?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"244px":"204px"}},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:ke})),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.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),l.themes&&l.themes.filter((t=>this.currentOutdoorSite.themes.includes(t.id))).length>0&&e("div",{part:"themes-container",class:"themes-container"},l.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:Ne}),e("span",{part:"label",class:"label"},this.currentOutdoorSite.orientation.map((t=>n[l.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:Se}),e("span",{part:"label",class:"label"},this.currentOutdoorSite.wind.map((t=>n[l.language].cardinalPoints[t.toLowerCase()])).join(", "))),this.currentOutdoorSite.period&&e("div",{part:"row",class:"row"},e("span",{part:"icon",class:"icon",innerHTML:Ye}),e("span",{part:"label",class:"label"},this.currentOutdoorSite.period)),a&&p.map((t=>e("div",{part:"row",class:"row"},`${t.name} : ${a.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"},n[l.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:Ie}),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:$e}),e("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),e("div",{part:"links-container",class:"links-container"},e("a",{href:`${this.currentOutdoorSite.pdf}${l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:xe}),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},n[l.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"},n[l.language].departure," : "),e("div",{part:"departure",innerHTML:o.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"},n[l.language].crossedCities," : "),e("div",{part:"cities",innerHTML:this.currentOutdoorSite.cities.map((t=>{var e;return(e=l.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name})).join(", ")})),l.currentPois&&l.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},n[l.language].pois(l.currentPois.length)),e("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.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},n[l.language].recommendations),this.currentOutdoorSite.advice&&e("div",{part:"current-advice-container",class:"current-advice-container"},e("span",{part:"icon",class:"icon",innerHTML:ye}),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"},n[l.language].accessibility),e("div",{part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),l.currentRelatedOutdoorSites&&l.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},n[l.language].relatedOutdoorSites(l.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"},l.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})))),l.currentRelatedOutdoorCourses&&l.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},n[l.language].relatedOutdoorCourses(l.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"},l.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})))),l.currentInformationDesks&&l.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},n[l.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"},l.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})))),l.trekTouristicContents&&l.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},n[l.language].touristicContents(l.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"},l.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})))),l.trekTouristicEvents&&l.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},n[l.language].touristicEvents(l.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"},l.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})))),this.weather&&o&&!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/${o.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"},n[l.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"},n[l.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}))))))),e("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))}};Xe.style=Ve;const We=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(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;this.handleOutdoorSite()}async handleOutdoorSite(){const t=await Y("outdoorSites",this.outdoorSiteId);if(t&&t.offline){this.handleOfflineOutdoorSite(t)}else{this.handleOnlineOutdoorSite()}}async handleOfflineOutdoorSite(t){l.cities=await S("cities");l.sources=await S("sources");l.districts=await S("districts");l.themes=await S("themes");l.outdoorSiteTypes=await S("outdoorSiteTypes");l.outdoorPractices=await S("outdoorPractices");l.outdoorRatings=await S("outdoorRatings");l.outdoorRatingsScale=await S("outdoorRatingsScale");l.touristicContentCategories=await S("touristicContentCategories");l.touristicEventTypes=await S("touristicEventTypes");l.poiTypes=await S("poiTypes");l.outdoorCourseTypes=await S("outdoorCourseTypes");const e=await S("informationDesks");const i=e.filter((e=>t.information_desks.some((t=>t===e.id))));l.currentInformationDesks=i;const r=await S("pois",["url"]);const s=r.filter((e=>t.pois.some((t=>t===e.id))));l.currentPois=s;const o=await S("touristicContents",["url"]);const n=o.filter((e=>t.touristicContents.some((t=>t===e.id))));l.trekTouristicContents=n;const a=await S("touristicEvents",["url"]);const c=a.filter((e=>t.touristicEvents.some((t=>t===e.id))));l.trekTouristicEvents=c;const p=await S("outdoorSites",["url"]);const d=p.filter((e=>t.children.some((t=>t===e.id))));l.currentRelatedOutdoorSites=d;const h=await S("outdoorCourses",["url"]);const u=h.filter((e=>t.courses.some((t=>t===e.id))));l.currentRelatedOutdoorCourses=u;await C(t,M,["url"]);l.currentOutdoorSite=t}handleOnlineOutdoorSite(){const t=[];t.push(!l.cities?G(l.api,l.language,this.init):new Response("null"));t.push(!l.sources?q(l.api,l.language,this.init):new Response("null"));t.push(!l.districts?Z(l.api,l.language,this.init):new Response("null"));t.push(!l.themes?R(l.api,l.language,this.portals,this.init):new Response("null"));t.push(!l.outdoorSiteTypes?Ge(l.api,l.language,this.init):new Response("null"));t.push(!l.outdoorPractices?Ze(l.api,l.language,this.init):new Response("null"));t.push(!l.outdoorRatings?fetch(`${l.api}outdoor_rating/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));t.push(!l.outdoorRatingsScale?fetch(`${l.api}outdoor_ratingscale/?language=${l.language}&fields=id,name`,this.init):new Response("null"));t.push(Q(l.api,l.language,this.init));t.push(_e(l.api,l.language,this.outdoorSiteId,this.init));t.push(fetch(`${l.api}touristiccontent_category/?language=${l.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init));t.push(Oe(l.api,l.language,this.outdoorSiteId,this.init));t.push(fetch(`${l.api}touristicevent_type/?language=${l.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init));t.push(Re(l.api,l.language,this.outdoorSiteId,this.init));t.push(fetch(`${l.api}poi_type/?language=${l.language}&fields=id,pictogram`,this.init));t.push(!l.outdoorCourseTypes?ft(l.api,l.language,this.init):new Response("null"));t.push(He(l.api,l.language,this.outdoorSiteId,this.init));try{Promise.all([...t]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,e,i,r,s,o,n,a,c,p,d,h,u,f,m,w,g])=>{l.networkError=false;if(g&&g.children.length>0){const t=[];t.push(...g.children);const e=[];t.forEach((t=>{e.push(He(l.api,l.language,t,this.init))}));l.currentRelatedOutdoorSites=await Promise.all([...e]).then((t=>Promise.all(t.map((t=>t.json())))))}if(g&&g.courses.length>0){const t=[];t.push(...g.courses);const e=[];t.forEach((t=>{e.push(wt(l.api,l.language,t,this.init))}));l.currentRelatedOutdoorCourses=await Promise.all([...e]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){l.cities=t.results}if(e){l.sources=e.results}if(i){l.districts=i.results}if(r){l.themes=r.results}if(s){l.outdoorSiteTypes=s.results}if(o){l.outdoorPractices=o.results}if(n){l.outdoorRatings=n.results}if(a){l.outdoorRatingsScale=a.results}if(c){l.currentInformationDesks=c.results}if(p){l.trekTouristicContents=p.results}if(d){l.touristicContentCategories=d.results}if(h){l.trekTouristicEvents=h.results}if(u){l.touristicEventTypes=u.results}if(f){l.currentPois=f.results}if(m){l.poiTypes=m.results}if(w){l.outdoorCourseTypes=w.results}l.currentOutdoorSite=g}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return e(i,{key:"945352e638982879808e7e9d829471b2e8d9fa14"})}};const Ke=":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 Je=Ke;const ti=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(l.currentOutdoorSites){this.outdoorSitesToDisplay=[...l.currentOutdoorSites.slice(0,this.step)]}w("currentOutdoorSites",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentOutdoorSites){this.outdoorSitesToDisplay=[...l.currentOutdoorSites.slice(0,this.step)]}}));w("outdoorSitesWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.outdoorSitesWithinBounds){this.outdoorSitesToDisplay=[...l.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<l.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=l.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=l.outdoorSitesWithinBounds.length?l.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:"1fd0f6d1ee41a67dc9cad7f2e910074807b666f8",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.outdoorSitesWithinBounds&&e("div",{part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},`${l.outdoorSitesWithinBounds.length} ${l.outdoorSitesWithinBounds.length>1?n[l.language].outdoorSites:n[l.language].outdoorSite}`),e("div",{key:"8706f9dac786babb951b459759c7362011539610",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:"d87a9870dce11511aaaa2d8a51ae11e0c96aa431",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return o(this)}};ti.style=Je;const ei=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(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;this.handleOutdoorSites()}async handleOutdoorSites(){this.handleOnlineOutdoorSites()}async handleOfflineOutdoorSites(t){l.cities=await S("cities");l.districts=await S("districts");l.themes=await S("themes");l.outdoorSiteTypes=await S("outdoorSiteTypes");l.outdoorPractices=await S("outdoorPractices");t=await S("outdoorSites");l.outdoorSites=t;l.currentOutdoorSites=t}handleOnlineOutdoorSites(){const t=[];t.push(!l.cities?G(l.api,l.language,this.init):new Response("null"));t.push(!l.districts?Z(l.api,l.language,this.init):new Response("null"));t.push(!l.themes?R(l.api,l.language,this.portals,this.init):new Response("null"));t.push(!l.outdoorSiteTypes?Ge(l.api,l.language,this.init):new Response("null"));t.push(!l.outdoorPractices?Ze(l.api,l.language,this.init):new Response("null"));t.push(De(l.api,l.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,s,o])=>{l.networkError=false;if(t){l.cities=t.results}if(e){l.districts=e.results}if(i){l.themes=i.results}if(r){l.outdoorSiteTypes=r.results}if(s){l.outdoorPractices=s.results}const n=[];for(let t=0;t<o.results.length;t++){const e=await qe(o.results[t].id);n.push(Object.assign(Object.assign({},o.results[t]),{offline:e}))}l.outdoorSites=n;l.currentOutdoorSites=n})).catch((async()=>{const t=await N("outdoorSites");t.filter((t=>t.parents&&t.parents.length===0));if(t&&t.length>0){this.handleOfflineOutdoorSites(t)}else{l.networkError=true}}))}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return e(i,{key:"816811f6aba3a9fb760fef3500a7f703c9270428"})}};const ii=`<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 ri=":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 si=ri;const oi=class{constructor(e){t(this,e);this.fontFamily="Roboto"}onSearchChange(t){l.searchValue=t.target.value;if(l.mode==="treks"){l.currentTreks=c()}else if(l.mode==="touristicContents"){l.currentTouristicContents=u()}else if(l.mode==="touristicEvents"){l.currentTouristicEvents=f()}else if(l.mode==="outdoor"){l.currentOutdoorSites=m()}}render(){return e(i,{key:"cc7959ad562b62d0c90127cb33086d75cb3393e2",style:{"--font-family":this.fontFamily}},e("span",{key:"c4d42c475bb35ebc69b02a54a5cfc0b44c06d9ab",part:"icon",class:"icon",innerHTML:ii}),e("input",{key:"f4a16de4d4e12401d9ff59f6ec73d33a2bf4a57b",part:"search-input",class:"search-input",onInput:t=>this.onSearchChange(t),type:"search",placeholder:"Rechercher",value:l.searchValue}))}};oi.style=si;const ni=".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 ai=ni;const li=class{constructor(e){t(this,e);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}changeMode(t){l.searchValue="";if(t==="treks"){a.forEach((t=>{l[t.property]&&l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.treks){l.currentTreks=[...c()]}}else if(t==="touristicContents"){p.forEach((t=>{l[t.property]&&l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.touristicContents){l.currentTouristicContents=[...u()]}}else if(t==="touristicEvents"){d.forEach((t=>{l[t.property]&&l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.touristicEvents){l.currentTouristicEvents=[...f()]}}else if(t==="outdoor"){h.forEach((t=>{l[t.property]&&l[t.property].forEach((t=>t.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.outdoorSites){l.currentOutdoorSites=[...m()]}}l.mode=t}render(){return e(i,{key:"3aa2fd044ea41804b31d0865a4faf052d73f801f",style:{"--font-family":this.fontFamily}},e("div",{key:"396573cc6c4825bee4bae0587088c237137face9",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&e("label",{part:"segment",class:`segment${l.mode==="treks"?" selected-segment":""}`,onClick:()=>this.changeMode("treks")},n[l.language].home.segment.treks),this.outdoor&&e("label",{part:"segment",class:`segment${l.mode==="outdoor"?" selected-segment":""}`,onClick:()=>this.changeMode("outdoor")},n[l.language].home.segment.outdoorSites),this.touristicContents&&e("label",{part:"segment",class:`segment${l.mode==="touristicContents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicContents")},n[l.language].home.segment.touristicContents),this.touristicEvents&&e("label",{part:"segment",class:`segment${l.mode==="touristicEvents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicEvents")},n[l.language].home.segment.touristicEvents)))}};li.style=ai;const ci=`<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 pi=":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 di=pi;const hi=class{constructor(e){t(this,e)}handleSelect(t){l.treks=null;l.currentTreks=null;l.currentTrek=null;l.language=t.target.value}render(){return e(i,{key:"14684efc58b9fd41402518092e184bdb74e88563"},e("span",{key:"0eb1921e34c6eb0d9812c1cc3057fe8b88f5005b",part:"select-language-icon",class:"icon",innerHTML:ci}),e("select",{key:"d02d80c7a0c848537fe18aa3bbf7c50b3872f4d5",part:"select-language-select",onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},l.languages.map((t=>e("option",{part:"select-language-option",selected:t===l.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())))))}};hi.style=di;const ui=`<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 fi='.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 mi=fi;const wi=class{constructor(e){t(this,e);this.action=undefined;this.fontFamily="Roboto";this.checked=undefined}render(){return e(i,{key:"26bc8e910caad9dec84bfbdb4cd63eb20ce8a0a6",style:{"--font-family":this.fontFamily}},e("label",{key:"e381116a54a4f407074bed50cb0d4f4adc88e54f",class:"md3 switch"},e("input",{key:"ff3fb25aae5dc36a6753af531b1183b7be14628f",checked:this.checked,onChange:()=>this.action(),type:"checkbox",id:"darkmode",name:"darkmode"}),e("span",{key:"f22a575d3db92816b4f5b8b6fa5351d4bc00db0c",class:"slider"},e("span",{key:"1d55821c4dabf1b7b6692b79b69a19be94616469",part:"icon",class:"icon",innerHTML:ui}))))}};wi.style=mi;const gi='@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}.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-touristic-content-detail{overflow:hidden}.touristic-content-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}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.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}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.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}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.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}.touristic-content-category-img{border-radius:100%;padding:2px;max-height:20px;max-width:20px}';const bi=gi;const vi=class{constructor(e){t(this,e);this.displayFullscreen=false;this.offline=false;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}componentDidLoad(){this.swiperImages=new at(this.swiperImagesRef,{modules:[lt,ct,pt,ve,ge],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.offline?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.offline=l.currentTouristicContent.offline}handleFullscreen(t=false){if(!t){if(l.currentTouristicContent.attachments&&l.currentTouristicContent.attachments[0]&&l.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}render(){const t=s(`${""}assets/default-image.svg`);const r=l.touristicContentCategories&&l.currentTouristicContent&&l.touristicContentCategories.find((t=>t.id===l.currentTouristicContent.category));const o=l.currentTouristicContent&&l.currentTouristicContent.cities.map((t=>{var e;return(e=l.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name}));return e(i,{key:"7750c701df76bba15232f1f4b0315d1f8ebb9055",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?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"204px":"164px"}},l.currentTouristicContent&&e("div",{part:"touristic-content-detail-container",class:"touristic-content-detail-container",ref:t=>this.touristicContentDetailContainerRef=t},e("div",{part:"images-container",class:"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"},l.currentTouristicContent.attachments.filter((t=>t.type==="image")).length>0?l.currentTouristicContent.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:"close-fullscreen-button",class:"close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},e("span",{part:"icon",class:"icon",innerHTML:ke})),e("div",{part:"legend-container",class:"legend-container"},i),e("img",{part:"image",class:"image",src:this.offline?t.thumbnail:t.url,loading:"lazy",onClick:()=>this.handleFullscreen(),alt:t.legend}))})):e("div",{part:"swiper-slide",class:"swiper-slide"},e("img",{part:"default-poi-img",class:"default-poi-img",src:t,alt:"",loading:"lazy"}))),e("div",{style:{display:this.offline?"none":"block"},part:"swiper-pagination",class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),e("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),e("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),e("div",{part:"touristic-content-category-container",class:"touristic-content-category-container"},e("img",{part:"touristic-content-category-img",class:"touristic-content-category-img",src:r.pictogram,alt:""}),e("div",{part:"touristic-content-category-name",class:"touristic-content-category-name"},r.label)),e("div",{part:"name",class:"name"},l.currentTouristicContent.name),e("div",{part:"divider",class:"divider"}),e("div",{part:"downloads-container",class:"downloads-container"},e("div",{part:"download-title",class:"download-title"},n[l.language].download),e("div",{part:"links-container",class:"links-container"},e("a",{part:"link-container",class:"link-container",href:`${l.currentTouristicContent.pdf}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:xe}),e("span",{part:"label",class:""},"PDF")))),l.currentTouristicContent.description_teaser&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"description-teaser",class:"description-teaser",innerHTML:l.currentTouristicContent.description_teaser})),e("div",{part:"divider",class:"divider"}),l.currentTouristicContent.practical_info&&e("div",{part:"description-container",class:"description-container",ref:t=>this.descriptionRef=t},e("div",{part:"description-title",class:"description-title"},n[l.language].description),e("div",{part:"description",class:"description",innerHTML:l.currentTouristicContent.description})),o&&o.length>0&&e("div",{part:"cities-container",class:"cities-container"},e("div",{part:"cities-title",class:"cities-title"},n[l.language].city," : "),e("div",{part:"cities",class:"cities",innerHTML:o.join(", ")})),l.currentTouristicContent.practical_info&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"useful-information-container",class:"useful-information-container"},e("div",{part:"useful-information-title",class:"useful-information-title"},n[l.language].usefulInformation," : "),e("div",{part:"useful-information",innerHTML:l.currentTouristicContent.practical_info}))),(l.currentTouristicContent.contact||l.currentTouristicContent.email||l.currentTouristicContent.website)&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"contact-container",class:"contact-container"},e("div",{part:"contact-title",class:"contact-title"},n[l.language].contact," : "),l.currentTouristicContent.contact&&e("div",{part:"contact",class:"contact",innerHTML:l.currentTouristicContent.contact}),l.currentTouristicContent.email&&e("div",{part:"email-container",class:"email-container"},e("div",{part:"email-title",class:"email-title"},n[l.language].email," : "),e("a",{href:"mailto:"+l.currentTouristicContent.email,part:"email",class:"email",innerHTML:l.currentTouristicContent.email})),l.currentTouristicContent.website&&e("div",{part:"website-container",class:"website-container"},e("div",{part:"website-title",class:"website-title"},n[l.language].website," : "),e("a",{href:l.currentTouristicContent.website,part:"website",class:"website",innerHTML:l.currentTouristicContent.website})))),e("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))}};vi.style=bi;const ki=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.touristicContentId=undefined;this.portals=undefined}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicContent()}async handleTouristicContent(){const t=await Y("touristicContents",this.touristicContentId);if(t&&t.offline){this.handleOfflineTouristicContent(t)}else{this.handleOnlineTouristicContent()}}async handleOfflineTouristicContent(t){if(!l.cities){l.cities=await N("cities")}if(!l.touristicContentCategories){l.touristicContentCategories=await N("touristicContentCategories")}l.currentTouristicContent=t}handleOnlineTouristicContent(){const t=[];t.push(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!l.touristicContentCategories?fetch(`${l.api}touristiccontent_category/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));try{Promise.all([...t,Me(l.api,l.language,this.touristicContentId,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,e,i])=>{l.networkError=false;if(t){l.cities=t.results}if(e){l.touristicContentCategories=e.results}l.currentTouristicContent=i}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return e(i,{key:"b53b958ea4b1bce8196a084a5147ab07cddf9a42"})}};const xi=":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 yi=xi;const Ai=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(l.currentTouristicContents){this.touristicContentsToDisplay=[...l.currentTouristicContents.slice(0,this.step)]}w("currentTouristicContents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTouristicContents){this.touristicContentsToDisplay=[...l.currentTouristicContents.slice(0,this.step)]}}));w("touristicContentsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.touristicContentsWithinBounds){this.touristicContentsToDisplay=[...l.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<l.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=l.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=l.touristicContentsWithinBounds.length?l.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:"2dd604797c181e971d9fd9e8d9dddb45f67046f6",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.touristicContentsWithinBounds&&e("div",{part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},`${l.touristicContentsWithinBounds.length} ${l.touristicContentsWithinBounds.length>1?n[l.language].home.touristicContents:n[l.language].home.touristicContent}`),e("div",{key:"ed0d850dda19b44ec98888fc1d3f9479135ce59b",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:"e3d45b8d52f834c9800359c626db8867e29656b7",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return o(this)}};Ai.style=yi;const zi=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(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicContents()}handleTouristicContents(){let t=`${l.api}touristiccontent/?language=${l.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(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));e.push(!l.districts?fetch(`${l.api}district/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));e.push(!l.touristicContentCategories?fetch(`${l.api}touristiccontent_category/?language=${l.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])=>{l.networkError=false;if(t){l.cities=t.results}if(e){l.districts=e.results}if(i){l.touristicContentCategories=i.results}l.touristicContents=r.results;l.currentTouristicContents=r.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return e(i,{key:"f9f5f8cc4600c9827e17d56b25ed5fe39eac9256"})}};const Li='@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}.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-touristic-event-detail{overflow:hidden}.touristic-event-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}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.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}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.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}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.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}';const Ci=Li;const Mi=class{constructor(e){t(this,e);this.displayFullscreen=false;this.offline=false;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}componentDidLoad(){this.swiperImages=new at(this.swiperImagesRef,{modules:[lt,ct,pt,ve,ge],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.offline?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.offline=l.currentTouristicEvent.offline}handleFullscreen(t=false){if(!t){if(l.currentTouristicEvent.attachments&&l.currentTouristicEvent.attachments[0]&&l.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}else{document.exitFullscreen()}}}render(){const t=s(`${""}assets/default-image.svg`);const r=l.touristicEventTypes&&l.currentTouristicEvent&&l.touristicEventTypes.find((t=>t.id===l.currentTouristicEvent.type));const o=l.currentTouristicEvent&&l.currentTouristicEvent.cities.map((t=>{var e;return(e=l.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name}));return e(i,{key:"3cf070c005eee9c2eda49378c33ef0fe6b00fe85",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?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"204px":"164px"}},l.currentTouristicEvent&&e("div",{part:"touristic-event-detail-container",class:"touristic-event-detail-container",ref:t=>this.touristicEventDetailContainerRef=t},e("div",{part:"images-container",class:"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"},l.currentTouristicEvent.attachments.filter((t=>t.type==="image")).length>0?l.currentTouristicEvent.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:"close-fullscreen-button",class:"close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},e("span",{part:"icon",class:"icon",innerHTML:ke})),e("div",{part:"legend-container",class:"legend-container"},i),e("img",{part:"image",class:"image",src:this.offline?t.thumbnail:t.url,loading:"lazy",onClick:()=>this.handleFullscreen(),alt:t.legend}))})):e("div",{part:"swiper-slide",class:"swiper-slide"},e("img",{part:"default-poi-img",class:"default-poi-img",src:t,loading:"lazy"}))),e("div",{style:{display:this.offline?"none":"block"},part:"swiper-pagination",class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),e("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),e("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),e("div",{part:"touristic-event-category-container",class:"touristic-event-category-container"},r&&r.pictogram&&e("img",{part:"touristic-event-category-img",class:"touristic-event-category-img",src:r.pictogram}),r&&r.type&&e("div",{part:"touristic-event-category-name",class:"touristic-event-category-name"},r.type)),e("div",{part:"name",class:"name"},l.currentTouristicEvent.name),(l.currentTouristicEvent.begin_date||l.currentTouristicEvent.end_date)&&e("div",{part:"touristic-event-date-container",class:"touristic-event-date-container"},l.currentTouristicEvent.begin_date===l.currentTouristicEvent.end_date&&e("div",{part:"touristic-event-date",class:"touristic-event-date"},n[l.language].date," : ",l.currentTouristicEvent.begin_date),l.currentTouristicEvent.begin_date&&l.currentTouristicEvent.begin_date!==l.currentTouristicEvent.end_date&&e("div",{part:"touristic-event-date",class:"touristic-event-date"},n[l.language].startDate," : ",l.currentTouristicEvent.begin_date),l.currentTouristicEvent.end_date&&l.currentTouristicEvent.begin_date!==l.currentTouristicEvent.end_date&&e("div",{part:"touristic-event-date",class:"touristic-event-date"},n[l.language].endDate," : ",l.currentTouristicEvent.end_date)),e("div",{part:"divider",class:"divider"}),e("div",{part:"downloads-container",class:"downloads-container"},e("div",{part:"download-title",class:"download-title"},n[l.language].download),e("div",{part:"links-container",class:"links-container"},e("a",{part:"link",class:"link",href:`${l.currentTouristicEvent.pdf}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:xe}),e("span",{part:"label",class:"label"},"PDF")))),l.currentTouristicEvent.description_teaser&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"description-teaser",class:"description-teaser",innerHTML:l.currentTouristicEvent.description_teaser})),e("div",{part:"divider",class:"divider"}),l.currentTouristicEvent.practical_info&&e("div",{part:"description-container",class:"description-container",ref:t=>this.descriptionRef=t},e("div",{part:"description-title",class:"description-title"},n[l.language].description),e("div",{part:"description",class:"description",innerHTML:l.currentTouristicEvent.description})),o&&o.length>0&&e("div",{part:"cities-container",class:"cities-container"},e("div",{part:"cities-title",class:"cities-title"},n[l.language].city," : "),e("div",{part:"cities",class:"cities",innerHTML:o.join(", ")})),l.currentTouristicEvent.practical_info&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"useful-information-container",class:"useful-information-container"},e("div",{part:"useful-information-title",class:"useful-information-title"},n[l.language].usefulInformation," : "),e("div",{part:"useful-information",class:"useful-information",innerHTML:l.currentTouristicEvent.practical_info}))),(l.currentTouristicEvent.contact||l.currentTouristicEvent.email||l.currentTouristicEvent.website)&&e("div",null,e("div",{part:"divider",class:"divider"}),e("div",{part:"contact-container",class:"contact-container"},e("div",{part:"contact-title",class:"contact-title"},n[l.language].contact," : "),l.currentTouristicEvent.contact&&e("div",{part:"contact",class:"contact",innerHTML:l.currentTouristicEvent.contact}),l.currentTouristicEvent.email&&e("div",{part:"email-container",class:"email-container"},e("div",{part:"email-title",class:"email-title"},n[l.language].email," : "),e("a",{href:"mailto:"+l.currentTouristicEvent.email,part:"email",class:"email",innerHTML:l.currentTouristicEvent.email})),l.currentTouristicEvent.website&&e("div",{part:"website-container",class:"website-container"},e("div",{part:"website-title",class:"website-title"},n[l.language].website," : "),e("a",{href:l.currentTouristicEvent.website,part:"website",class:"website",innerHTML:l.currentTouristicEvent.website})))),e("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))}};Mi.style=Ci;const Bi=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.touristicEventId=undefined;this.portals=undefined}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicEvent()}async handleTouristicEvent(){const t=await Y("touristicEvents",this.touristicEventId);if(t&&t.offline){this.handleOfflineTouristicEvent(t)}else{this.handleOnlineTouristicEvent()}}async handleOfflineTouristicEvent(t){if(!l.cities){l.cities=await N("cities")}if(!l.touristicEventTypes){l.touristicEventTypes=await N("touristicEventTypes")}l.currentTouristicEvent=t}handleOnlineTouristicEvent(){const t=[];t.push(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!l.touristicEventTypes?fetch(`${l.api}touristicevent_type/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));try{Promise.all([...t,Pe(l.api,l.language,this.touristicEventId,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,e,i])=>{l.networkError=false;if(t){l.cities=t.results}if(e){l.touristicEventTypes=e.results}l.currentTouristicEvent=i}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return e(i,{key:"3e5e5d3f401801048b1934baa60beee372fc0d7f"})}};const _i=":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 Ti=_i;const Pi=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(l.currentTouristicEvents){this.touristicEventsToDisplay=[...l.currentTouristicEvents.slice(0,this.step)]}w("currentTouristicEvents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTouristicContents){this.touristicEventsToDisplay=[...l.currentTouristicEvents.slice(0,this.step)]}}));w("touristicEventsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.touristicEventsWithinBounds){this.touristicEventsToDisplay=[...l.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<l.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=l.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=l.touristicEventsWithinBounds.length?l.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:"f418c00dfc2a81c157ad55bc492d30448c2a6b59",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.touristicEventsWithinBounds&&e("div",{part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},`${l.touristicEventsWithinBounds.length} ${l.touristicEventsWithinBounds.length>1?n[l.language].home.touristicEvents:n[l.language].home.touristicEvent}`),e("div",{key:"011626bd6469f4fa9640ac173a7b43c506921803",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:"f87eecb793bf4b292bbe8781c7950f4d0856e7f0",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return o(this)}};Pi.style=Ti;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(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicEvents()}handleTouristicEvents(){let t=`${l.api}touristicevent/?language=${l.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(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));e.push(!l.districts?fetch(`${l.api}district/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));e.push(!l.touristicEventTypes?fetch(`${l.api}touristicevent_type/?language=${l.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])=>{l.networkError=false;if(t){l.cities=t.results}if(e){l.districts=e.results}if(i){l.touristicEventTypes=i.results}l.touristicEvents=r.results;l.currentTouristicEvents=r.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return e(i,{key:"d3b510f028efe9fe1522ae1a300c2a4cdfeeb066"})}};const Oi=`<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 Ei='@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{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}.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 ji=Ei;const Yi=1;const Si={visible:true,indicator:false,ref:"presentationOptionRef"};const Ni={visible:false,indicator:false,ref:"stepsOptionRef"};const Ii={visible:false,indicator:false,ref:"descriptionOptionRef"};const $i={visible:false,indicator:false,ref:"poisOptionRef"};const Di={visible:false,indicator:false,ref:"recommendationsOptionRef"};const Hi={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};const Gi={visible:false,indicator:false,ref:"informationPlacesOptionRef"};const Zi={visible:false,indicator:false,ref:"accessibilityOptionRef"};const Ri={visible:false,indicator:false,ref:"touristicContentsOptionRef"};const qi={visible:false,indicator:false,ref:"touristicEventsOptionRef"};const Qi={presentation:Si,steps:Ni,description:Ii,pois:$i,recommendations:Di,sensitiveArea:Hi,informationPlaces:Gi,accessibility:Zi,touristicContents:Ri,touristicEvents:qi};const Vi=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.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}componentDidUpdate(){this.handleObservers()}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.swiperImages=new at(this.swiperImagesRef,{modules:[lt,ct,pt,ve,ge],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()}}this.swiperStep=new at(this.swiperStepRef,{modules:[ve,ge,be],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}},loop:false});this.swiperPois=new at(this.swiperPoisRef,{modules:[ve,ge,be],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}},loop:false});this.swiperInformationDesks=new at(this.swiperInformationDesksRef,{modules:[ve,ge,be],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}},loop:false});this.swiperTouristicContents=new at(this.swiperTouristicContentsRef,{modules:[ve,ge,be],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}},loop:false});this.swiperTouristicEvents=new at(this.swiperTouristicEventsRef,{modules:[ve,ge,be],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}},loop:false});this.handleObservers()}async connectedCallback(){if(l.currentTrek){this.offline=l.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=l.difficulties.find((t=>t.id===l.currentTrek.difficulty));this.route=l.routes.find((t=>t.id===l.currentTrek.route));this.practice=l.practices.find((t=>t.id===l.currentTrek.practice));this.themes=l.themes.filter((t=>l.currentTrek.themes.includes(t.id)));this.labels=l.labels.filter((t=>l.currentTrek.labels.includes(t.id)));this.sources=l.sources.filter((t=>l.currentTrek.source.includes(t.id)));this.accessibilities=l.accessibilities.filter((t=>l.currentTrek.accessibilities.includes(t.id)));if(l.accessibilitiesLevel){this.accessibilityLevel=l.accessibilitiesLevel.find((t=>l.currentTrek.accessibility_level===t.id))}this.cities=l.currentTrek.cities.map((t=>{var e;return(e=l.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name}));this.hasStep=l.currentTrek.children.length>0;this.currentTrek=l.currentTrek}w("currentTrek",(async()=>{if(l.currentTrek){this.offline=l.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=l.difficulties.find((t=>t.id===l.currentTrek.difficulty));this.route=l.routes.find((t=>t.id===l.currentTrek.route));this.practice=l.practices.find((t=>t.id===l.currentTrek.practice));this.themes=l.themes.filter((t=>l.currentTrek.themes.includes(t.id)));this.labels=l.labels.filter((t=>l.currentTrek.labels.includes(t.id)));this.sources=l.sources.filter((t=>l.currentTrek.source.includes(t.id)));this.accessibilities=l.accessibilities.filter((t=>l.currentTrek.accessibilities.includes(t.id)));if(l.accessibilitiesLevel){this.accessibilityLevel=l.accessibilitiesLevel.find((t=>l.currentTrek.accessibility_level===t.id))}this.cities=l.currentTrek.cities.map((t=>{var e;return(e=l.cities.find((e=>e.id===t)))===null||e===void 0?void 0:e.name}));this.hasStep=l.currentTrek.children.length>0;this.currentTrek=l.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({},Qi),{presentation:Object.assign({},Si),steps:Object.assign(Object.assign({},Ni),{visible:Boolean(l.parentTrek)}),description:Object.assign(Object.assign({},Ii),{visible:Boolean(l.currentTrek.description)}),pois:Object.assign(Object.assign({},$i),{visible:Boolean(l.currentPois&&l.currentPois.length>0)}),recommendations:Object.assign(Object.assign({},Di),{visible:Boolean(l.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Hi),{visible:Boolean(l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Gi),{visible:Boolean(l.currentInformationDesks&&l.currentInformationDesks.filter((t=>l.currentTrek.information_desks.includes(t.id))).length>0)}),accessibility:Object.assign(Object.assign({},Zi),{visible:Boolean(l.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||l.currentTrek.accessibility_level||l.currentTrek.accessibility_slope||l.currentTrek.accessibility_width||l.currentTrek.accessibility_signage||l.currentTrek.accessibility_covering||l.currentTrek.accessibility_exposure||l.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},Ri),{visible:Boolean(l.trekTouristicContents&&l.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},qi),{visible:Boolean(l.trekTouristicEvents&&l.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 s=Object.values(this.options);let o=0;while(!t&&o<s.length){if(s[o].indicator){t=s[o]}else{if(s[o].visible){e+=1;i+=this[s[o].ref].clientWidth}}o++}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){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}getCurrentStepIndex(){return l.currentTrekSteps?l.currentTrekSteps.findIndex((t=>t.id===this.currentTrek.id)):0}async downloadGlobalTiles(t,e){const i=j.exports.tileLayerOffline(t,{attribution:e});const r=[];if(l.treks){for(const t of l.treks){r.push(t.departure_geom)}}const s=E.latLngBounds(r.map((t=>[t[1],t[0]])));await D(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)}async downloadTrekTiles(t,e){const i=j.exports.tileLayerOffline(t,{attribution:e});const r=E.latLngBounds(this.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));await D(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 N("treks")).filter((t=>t.offline===true));let s;if(!l.treks){const t=await V(l.api,l.language,l.inBboxFromProviders,l.citiesFromProviders,l.districts,l.structuresFromProviders,l.themesFromProviders,l.portalsFromProviders,l.routesFromProviders,l.practicesFromProviders,l.labelsFromProviders,i);l.treks=(await t.json()).results}s=l.treks;s=s.filter((t=>r.findIndex((e=>e.id===t.id))===-1));if(!l.districts){const t=await Z(l.api,l.language,i);l.districts=(await t.json()).results}await I("treks",s);await I("districts",l.districts);await this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await $(l.difficulties,M);await $(l.routes,M);await $(l.practices,M);await $(l.themes,M);await $(l.labels,M);await $(l.districts,M);await $(l.sources,M);await $(l.accessibilities,M);await $(l.poiTypes,M);await $(l.currentInformationDesks,M);await $(l.touristicContentCategories,M);await $(l.touristicEventTypes,M);await $(l.networks,M);await $(this.currentTrek,M,true,["url"]);await I("difficulties",l.difficulties);await I("routes",l.routes);await I("practices",l.practices.map((t=>Object.assign(Object.assign({},t),{selected:false}))));await I("themes",l.themes);await I("cities",l.cities);await I("accessibilities",l.accessibilities);await I("ratings",l.ratings);await I("ratingsScale",l.ratingsScale);await I("sensitiveAreas",l.currentSensitiveAreas);await I("labels",l.labels);await I("sources",l.sources);await I("accessibilitiesLevel",l.accessibilitiesLevel);await I("touristicContentCategories",l.touristicContentCategories);await I("touristicEventTypes",l.touristicEventTypes);await I("networks",l.networks);await I("pois",l.currentPois);await I("poiTypes",l.poiTypes);await I("informationDesks",l.currentInformationDesks);await I("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:l.currentPois.map((t=>t.id)),touristicContents:l.trekTouristicContents.map((t=>t.id)),touristicEvents:l.trekTouristicEvents.map((t=>t.id)),sensitiveAreas:l.currentSensitiveAreas?l.currentSensitiveAreas.map((t=>t.id)):[]})]);await $(l.currentPois,M,true,["url"]);await $(l.currentInformationDesks,M,true);await $(l.trekTouristicContents,M,true,["url"]);l.trekTouristicContents.forEach((t=>{t.offline=true}));await I("touristicContents",l.trekTouristicContents);await $(l.trekTouristicEvents,M,true,["url"]);l.trekTouristicEvents.forEach((t=>{t.offline=true}));await I("touristicEvents",l.trekTouristicEvents);if(this.currentTrek.children&&this.currentTrek.children.length>0){const t=[];t.push(...this.currentTrek.children);const e=[];const r=[];const s=[];const o=[];const n=[];t.forEach((t=>{e.push(U(l.api,l.language,t,i));r.push(Be(l.api,l.language,t,i));s.push(Fe(l.api,l.language,t,i));o.push(X(l.api,l.language,t,i));n.push(W(l.api,l.language,t,i))}));const a=await Promise.all([...e]).then((t=>Promise.all(t.map((t=>t.json())))));const c=await Promise.all([...r]).then((t=>Promise.all(t.map((t=>t.json())))));const p=await Promise.all([...s]).then((t=>Promise.all(t.map((t=>t.json())))));const d=await Promise.all([...o]).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=c[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 I("treks",[a[t]]);await $(a[t],M,true,["url"])}}l.treks.find((t=>t.id===this.currentTrek.id)).offline=true;if(!l.currentTreks){l.currentTreks=l.treks}l.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 Y("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 Y("treks",this.currentTrek.children[e]);this.deleteOfflineTrekProperties(i);t.push(i)}}await I("treks",t);if(l.treks){delete l.treks.find((t=>t.id===this.currentTrek.id)).offline;if(!l.currentTreks){l.currentTreks=l.treks}delete l.currentTreks.find((t=>t.id===this.currentTrek.id)).offline}if(l.parentTrek){delete l.parentTrek.offline}if(l.currentTrekSteps){l.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,o,a,c;const p=s(`${""}assets/default-image.svg`);return e(i,{key:"d697ece2420dfd2317a8b56f97918475cced290d",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?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"244px":"204px"}},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)},n[l.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)},n[l.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)},n[l.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)},n[l.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)},n[l.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)},n[l.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)},n[l.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)},n[l.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)},n[l.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)},n[l.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:ke})),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.url,loading:"lazy",onClick:()=>this.handleFullscreen(),onerror:t=>{t.target.onerror=null;t.target.className="trek-img default-trek-img";t.target.src=p},alt:t.legend}))})):e("img",{part:"trek-img",class:"trek-img default-trek-img",src:p,loading:"lazy",alt:""})),e("div",{style:{display:this.offline?"none":"flex"}},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:"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:dt}),e("span",{part:"label",class:"label"},y((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"},(o=this.route)===null||o===void 0?void 0:o.route)),e("div",{part:"icon-label",class:"icon-label length"},e("span",{part:"icon",class:"icon",innerHTML:ht}),e("span",{part:"label",class:"label"},A(this.currentTrek.length_2d))),this.currentTrek.ascent&&e("div",{part:"icon-label",class:"icon-label ascent"},e("span",{part:"icon",class:"icon",innerHTML:ut}),e("span",{part:"label",class:"label"},z(this.currentTrek.ascent))),this.currentTrek.descent&&e("div",{part:"icon-label",class:"icon-label descent"},e("span",{part:"icon",class:"icon",innerHTML:ut}),e("span",{part:"label",class:"label"},B(this.currentTrek.descent))),e("div",{part:"icon-label",class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&e("img",{part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),e("span",{part:"label",class:"label"},(c=this.practice)===null||c===void 0?void 0:c.name)),e("div",{part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((t=>{const i=l.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"},`${l.ratingsScale.find((e=>e.id===l.ratings.find((e=>e.id===t)).scale)).name} : ${l.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"},n[l.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:Ie}),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:$e}),e("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),e("div",{part:"links-container",class:"links-container"},e("a",{href:`${this.currentTrek.gpx}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:" icon",innerHTML:xe}),e("span",{part:"label",class:"label"},"GPX")),e("a",{href:`${this.currentTrek.kml}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:xe}),e("span",{part:"label",class:"label"},"KML")),e("a",{href:`${this.currentTrek.pdf}${l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},e("span",{part:"icon",class:"icon",innerHTML:xe}),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}),l.parentTrekId&&l.parentTrek&&this.currentTrek.id!==l.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(l.parentTrekId)},e("div",null,"<"),l.parentTrek.name))),l.currentTrekSteps&&e("div",{part:"step-container",class:"step-container"},e("div",{part:"step-title",class:"step-title",ref:t=>this.stepsRef=t},`${l.currentTrekSteps.length} ${n[l.language].steps}`),e("div",{part:"swiper-step",class:"swiper swiper-step",ref:t=>this.swiperStepRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentTrekSteps&&l.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}))))),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},n[l.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"},n[l.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"},n[l.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"},n[l.language].crossedCities," : "),e("div",{part:"cities",innerHTML:this.cities.join(", ")})),l.currentPois&&l.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},n[l.language].pois(l.currentPois.length)),e("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},e("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.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&&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"},n[l.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},n[l.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"},n[l.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},n[l.language].recommendations),this.currentTrek.advice&&e("div",{part:"current-advice-container",class:"current-advice-container"},e("span",{part:"icon",class:"icon",innerHTML:ye}),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:Oi}),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})))))),l.currentSensitiveAreas&&l.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},n[l.language].environmentalSensitiveAreas),e("div",{part:"sensitive-areas-description",class:"sensitive-areas-description"},n[l.language].sensitiveAreasDescription),l.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}))))),l.currentInformationDesks&&l.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},n[l.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"},l.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}))))),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},n[l.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"},n[l.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:gt}),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"},n[l.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"},n[l.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"},n[l.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"},n[l.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"},n[l.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"},n[l.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"},n[l.language].accessibilityAdvices),e("div",{part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),l.trekTouristicContents&&l.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},n[l.language].touristicContents(l.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"},l.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})))),l.trekTouristicEvents&&l.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},n[l.language].touristicEvents(l.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"},l.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})))),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"},n[l.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"},n[l.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"})))}};Vi.style=ji;const Ui=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}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;l.routesFromProviders=this.routes;l.practicesFromProviders=this.practices;l.labelsFromProviders=this.labels;this.handleTrek()}disconnectedCallback(){this.controller.abort();l.networkError=false}async handleTrek(){const t=await Y("treks",this.trekId);if(t&&t.offline){this.handleOfflineTrek(t)}else{this.handleOnlineTrek()}}async handleOfflineTrek(t){if(t&&t.children.length>0||l.parentTrekId){const e=[];if(t.children.length>0){l.parentTrekId=t.id;l.parentTrek=t;e.push(...t.children)}else{const t=await Y("treks",l.parentTrekId);l.parentTrek=t;e.push(...t.children)}const i=[];e.forEach((t=>{i.push(Y("treks",t))}));l.currentTrekSteps=await Promise.all([...i]).then((t=>t))}l.difficulties=await S("difficulties");l.routes=await S("routes");l.practices=await S("practices");l.themes=await S("themes");l.cities=await S("cities");l.accessibilities=await S("accessibilities");l.ratings=await S("ratings");l.ratingsScale=await S("ratingsScale");l.labels=await S("labels");l.sources=await S("sources");l.accessibilitiesLevel=await S("accessibilitiesLevel");l.touristicContentCategories=await S("touristicContentCategories");l.touristicEventTypes=await S("touristicEventTypes");l.networks=await S("networks");l.poiTypes=await S("poiTypes");const e=await S("informationDesks");const i=e.filter((e=>t.information_desks.some((t=>t===e.id))));l.currentInformationDesks=i;const r=await S("pois",["url"]);const s=r.filter((e=>t.pois.some((t=>t===e.id))));l.currentPois=s;const o=await S("touristicContents",["url"]);const n=o.filter((e=>t.touristicContents.some((t=>t===e.id))));l.trekTouristicContents=n;const a=await S("touristicEvents",["url"]);const c=a.filter((e=>t.touristicEvents.some((t=>t===e.id))));l.trekTouristicEvents=c;const p=await S("sensitiveAreas");const d=p.filter((e=>t.sensitiveAreas.some((t=>t===e.id))));l.currentSensitiveAreas=d;await C(t,M,["url"]);l.currentTrek=t}handleOnlineTrek(){const t=[];t.push(!l.difficulties?fetch(`${l.api}trek_difficulty/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!l.routes?fetch(`${l.api}trek_route/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!l.practices?fetch(`${l.api}trek_practice/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!l.themes?fetch(`${l.api}theme/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!l.cities?fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!l.accessibilities?fetch(`${l.api}trek_accessibility/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!l.ratings?fetch(`${l.api}trek_rating/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));t.push(!l.ratingsScale?fetch(`${l.api}trek_ratingscale/?language=${l.language}&fields=id,name`,this.init):new Response("null"));try{Promise.all([...t,W(l.api,l.language,this.trekId,this.init).then((t=>{if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((()=>new Response("null"))),fetch(`${l.api}label/?language=${l.language}&fields=id,name,advice,pictogram,filter`,this.init),q(l.api,l.language,this.init),fetch(`${l.api}trek_accessibility_level/?language=${l.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),X(l.api,l.language,this.trekId,this.init),fetch(`${l.api}poi_type/?language=${l.language}&fields=id,pictogram`,this.init),Q(l.api,l.language,this.init),Be(l.api,l.language,this.trekId,this.init),fetch(`${l.api}touristiccontent_category/?language=${l.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),Fe(l.api,l.language,this.trekId,this.init),fetch(`${l.api}touristicevent_type/?language=${l.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init),fetch(`${l.api}trek_network/?language=${l.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),U(l.api,l.language,this.trekId,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,e,i,r,s,o,n,a,c,p,d,h,u,f,m,w,g,b,v,k,x])=>{l.networkError=false;if(x&&x.children.length>0||l.parentTrekId){const t=[];if(x.children.length>0){l.parentTrekId=x.id;l.parentTrek=x;t.push(...x.children)}else{const e=await fetch(`${l.api}trek/${l.parentTrekId}/?language=${l.language}&published=true&fields=name,children`).then((t=>t.json()));l.parentTrek=e;t.push(...e.children)}const e=[];t.forEach((t=>{e.push(U(l.api,l.language,t,this.init))}));l.currentTrekSteps=await Promise.all([...e]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){l.difficulties=t.results}if(e){l.routes=e.results}if(i){l.practices=i.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(r){l.themes=r.results}if(s){l.cities=s.results}if(o){l.accessibilities=o.results}if(n){l.ratings=n.results}if(a){l.ratingsScale=a.results}if(c){l.currentSensitiveAreas=c.results}if(p){l.labels=p.results}if(d){l.sources=d.results}if(h){l.accessibilitiesLevel=h.results}if(w){l.trekTouristicContents=w.results}if(g){l.touristicContentCategories=g.results}if(b){l.trekTouristicEvents=b.results}if(v){l.touristicEventTypes=v.results}if(k){l.networks=k.results}if(u){l.currentPois=u.results}if(f){l.poiTypes=f.results}if(m){l.currentInformationDesks=m.results}if(x){l.currentTrek=x}}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}}render(){return e(i,{key:"f91ee60e87d532eb77977fad01b0b8de644561f7"})}};const Xi=":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 Wi=Xi;const Ki=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}connectedCallback(){this.handleInfiniteScrollEvent(true);if(l.currentTreks){this.treksToDisplay=[...l.currentTreks.slice(0,this.step)]}w("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTreks){this.treksToDisplay=[...l.currentTreks.slice(0,this.step)]}}));w("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.treksWithinBounds){this.treksToDisplay=[...l.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<l.treksWithinBounds.length){this.treksToDisplay=l.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=l.treksWithinBounds.length?l.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:"1062a53e0ca6fb2895eeb053e67b552e5db8ad6f",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.treksWithinBounds&&e("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${l.treksWithinBounds.length} ${l.treksWithinBounds.length>1?n[l.language].treks:n[l.language].trek}`),e("div",{key:"fd6be559acc6085a45937ae12ccd281b29352ab4",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})))),e("div",{key:"ce16df757c304feed1de020a79bdef68c1f013e0",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return o(this)}};Ki.style=Wi;const Ji=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}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;l.routesFromProviders=this.routes;l.practicesFromProviders=this.practices;l.labelsFromProviders=this.labels;this.handleTreks()}disconnectedCallback(){this.controller.abort();l.networkError=false}async handleTreks(){this.handleOnlineTreks()}async handleOfflineTreks(t){l.difficulties=await this.handleOfflineProperty("difficulties");l.routes=await this.handleOfflineProperty("routes");l.practices=await this.handleOfflineProperty("practices");l.themes=await this.handleOfflineProperty("themes");l.cities=await this.handleOfflineProperty("cities");l.accessibilities=await this.handleOfflineProperty("accessibilities");l.labels=await this.handleOfflineProperty("labels");l.districts=await this.handleOfflineProperty("districts");l.durations=_;l.lengths=T;l.elevations=P;t=await this.handleOfflineProperty("treks");this.sortTreks(t);l.treks=t;l.currentTreks=t}sortTreks(t){t.sort(((t,e)=>t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})))}async handleOfflineProperty(t,e=[]){const i=await N(t);await C(i,M,e);return i}handleOnlineTreks(){Promise.all([fetch(`${l.api}trek_difficulty/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${l.api}trek_route/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init),fetch(`${l.api}trek_practice/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init),fetch(`${l.api}theme/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${l.api}city/?language=${l.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(`${l.api}trek_accessibility/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram&published=true&page_size=999`,this.init),fetch(`${l.api}label/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,advice,pictogram,filter&published=true&page_size=999`,this.init),Z(l.api,l.language,this.init),V(this.api,l.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,s,o,n,a,c])=>{l.networkError=false;l.difficulties=t.results;l.routes=e.results;l.practices=i.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));l.themes=r.results;l.cities=s.results;l.accessibilities=o.results;l.labels=n.results;l.districts=a.results;l.durations=_;l.lengths=T;l.elevations=P;const p=[];for(let t=0;t<c.results.length;t++){const e=await K(c.results[t].id);p.push(Object.assign(Object.assign({},c.results[t]),{offline:e}))}this.sortTreks(p);l.treks=p;l.currentTreks=p})).catch((async()=>{const t=await N("treks");if(t&&t.length>0){this.handleOfflineTreks(t)}else{l.networkError=true}}))}render(){return e(i,{key:"6e38f184770da305b7060f907c943cb0f0c42c1d"})}};export{yt as grw_common_button,Bt as grw_extended_fab,Pt as grw_filters,Et as grw_loader,we as grw_map,Ce as grw_outdoor_course_detail,je as grw_outdoor_course_provider,Xe as grw_outdoor_site_detail,We as grw_outdoor_site_provider,ti as grw_outdoor_sites_list,ei as grw_outdoor_sites_provider,oi as grw_search,li as grw_segmented_segment,hi as grw_select_language,wi as grw_switch,vi as grw_touristic_content_detail,ki as grw_touristic_content_provider,Ai as grw_touristic_contents_list,zi as grw_touristic_contents_provider,Mi as grw_touristic_event_detail,Bi as grw_touristic_event_provider,Pi as grw_touristic_events_list,Fi as grw_touristic_events_provider,Vi as grw_trek_detail,Ui as grw_trek_provider,Ki as grw_treks_list,Ji as grw_treks_provider};
|
|
10
|
-
//# sourceMappingURL=p-a2af6c11.entry.js.map
|