@geotrekce/geotrek-rando-widget 0.5.1 → 0.5.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.
Files changed (33) hide show
  1. package/dist/cjs/grw-app_28.cjs.entry.js +1 -1
  2. package/dist/cjs/grw-app_28.cjs.entry.js.br +0 -0
  3. package/dist/cjs/grw-app_28.cjs.entry.js.gz +0 -0
  4. package/dist/cjs/grw-app_28.cjs.entry.js.map +1 -1
  5. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
  6. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  7. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  8. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  9. package/dist/esm/grw-app_28.entry.js +1 -1
  10. package/dist/esm/grw-app_28.entry.js.br +0 -0
  11. package/dist/esm/grw-app_28.entry.js.gz +0 -0
  12. package/dist/esm/grw-app_28.entry.js.map +1 -1
  13. package/dist/esm-es5/grw-app_28.entry.js +1 -1
  14. package/dist/esm-es5/grw-app_28.entry.js.br +0 -0
  15. package/dist/esm-es5/grw-app_28.entry.js.gz +0 -0
  16. package/dist/esm-es5/grw-app_28.entry.js.map +1 -1
  17. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  18. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  19. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  20. package/dist/geotrek-rando-widget/{p-daef0593.entry.js → p-37932796.entry.js} +2 -2
  21. package/dist/geotrek-rando-widget/p-37932796.entry.js.br +0 -0
  22. package/dist/geotrek-rando-widget/{p-daef0593.entry.js.gz → p-37932796.entry.js.gz} +0 -0
  23. package/dist/geotrek-rando-widget/{p-daef0593.entry.js.map → p-37932796.entry.js.map} +1 -1
  24. package/dist/geotrek-rando-widget/{p-f50bd078.system.entry.js → p-46c11f88.system.entry.js} +2 -2
  25. package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js.br +0 -0
  26. package/dist/geotrek-rando-widget/{p-f50bd078.system.entry.js.gz → p-46c11f88.system.entry.js.gz} +0 -0
  27. package/dist/geotrek-rando-widget/{p-f50bd078.system.entry.js.map → p-46c11f88.system.entry.js.map} +1 -1
  28. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js +1 -1
  29. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.br +0 -0
  30. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.gz +0 -0
  31. package/package.json +1 -1
  32. package/dist/geotrek-rando-widget/p-daef0593.entry.js.br +0 -0
  33. package/dist/geotrek-rando-widget/p-f50bd078.system.entry.js.br +0 -0
@@ -11,5 +11,5 @@ Copyright (c) 2016 Dominik Moritz
11
11
  This file is part of the leaflet locate control. It is licensed under the MIT license.
12
12
  You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
13
13
  */
14
- (function(i,e){{if(typeof e!=="undefined"&&e.L){t.exports=i(L)}else{t.exports=i(W)}}if(typeof e!=="undefined"&&e.L){e.L.Control.Locate=i(L)}})((function(t){const i=(i,e,r)=>{r=r.split(" ");r.forEach((function(r){t.DomUtil[i].call(this,e,r)}))};const e=(t,e)=>i("addClass",t,e);const r=(t,e)=>i("removeClass",t,e);const n=t.Marker.extend({initialize(i,e){t.Util.setOptions(this,e);this._latlng=i;this.createIcon()},createIcon(){const i=this.options;let e="";if(i.color!==undefined){e+=`stroke:${i.color};`}if(i.weight!==undefined){e+=`stroke-width:${i.weight};`}if(i.fillColor!==undefined){e+=`fill:${i.fillColor};`}if(i.fillOpacity!==undefined){e+=`fill-opacity:${i.fillOpacity};`}if(i.opacity!==undefined){e+=`opacity:${i.opacity};`}const r=this._getIconSVG(i,e);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG(t,i){const e=t.radius;const r=t.weight;const n=e+r;const s=n*2;const o=`<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${s}" version="1.1" viewBox="-${n} -${n} ${s} ${s}">`+'<circle r="'+e+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:o,w:s,h:s}},setStyle(i){t.Util.setOptions(this,i);this.createIcon()}});const s=n.extend({initialize(i,e,r){t.Util.setOptions(this,r);this._latlng=i;this._heading=e;this.createIcon()},setHeading(t){this._heading=t},_getIconSVG(t,i){const e=t.radius;const r=t.width+t.weight;const n=(e+t.depth+t.weight)*2;const s=`M0,0 l${t.width/2},${t.depth} l-${r},0 z`;const o=`transform: rotate(${this._heading}deg)`;const a=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${n}" version="1.1" viewBox="-${r/2} 0 ${r} ${n}" style="${o}">`+'<path d="'+s+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});const o=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:n,compassClass:s,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(i,e){const r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);r.title=e.strings.title;r.href="#";r.setAttribute("role","button");const n=t.DomUtil.create(e.iconElementTag,e.icon,r);if(e.strings.text!==undefined){const i=t.DomUtil.create(e.textElementTag,"leaflet-locate-text",r);i.textContent=e.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(e.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError(t,i){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(i){for(const e in i){if(typeof this.options[e]==="object"){t.extend(this.options[e],i[e])}else{this.options[e]=i[e]}}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(i){const e=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=e;this._map=i;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(i);this._event=undefined;this._compassHeading=null;this._prevBounds=null;const r=this.options.createButtonCallback(e,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(i){t.DomEvent.stopPropagation(i);t.DomEvent.preventDefault(i);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return e},_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 i=this.options.clickBehavior;let e=i.outOfView;if(this._map.getBounds().contains(this._event.latlng)){e=t?i.inView:i.inViewNotFollowing}if(i[e]){e=i[e]}switch(e){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 i="ondeviceorientationabsolute"in window;if(i||"ondeviceorientation"in window){const e=this;const r=function(){t.DomEvent.on(window,i?"deviceorientationabsolute":"deviceorientation",e._onDeviceOrientation,e)};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 i=this.options.flyTo?this._map.flyTo:this._map.setView;i.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var i=this.options.flyTo?this._map.flyTo:this._map.panTo;i.bind(this._map)([this._event.latitude,this._event.longitude])}else{var i=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;i.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 i=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,i).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(i)}}}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 i=this._event.accuracy;const e=this._event.latlng;if(this.options.drawCircle){const r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(e,i,r).addTo(this._layer)}else{this._circle.setLatLng(e).setRadius(i).setStyle(r)}}let r;let n;if(this.options.metric){r=i.toFixed(0);n=this.options.strings.metersUnit}else{r=(i*3.2808399).toFixed(0);n=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(e,t).addTo(this._layer)}else{this._marker.setLatLng(e);if(this._marker.setStyle){this._marker.setStyle(t)}}}this._drawCompass();const s=this.options.strings.popup;function o(){if(typeof s==="string"){return t.Util.template(s,{distance:r,unit:n})}else if(typeof s==="function"){return s({distance:r,unit:n})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(o())._popup.setLatLng(e)}if(this.options.showPopup&&s&&this._compass){this._compass.bindPopup(o())._popup.setLatLng(e)}},_removeMarker(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading(i){if(!isNaN(parseFloat(i))&&isFinite(i)){i=Math.round(i);this._compassHeading=i;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");e(this._container,"requesting");r(this._icon,this.options.icon);e(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");e(this._container,"active");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");e(this._container,"active following");r(this._icon,this.options.iconLoading);e(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);e(this._icon,this.options.icon)},_resetVariables(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=i=>new t.Control.Locate(i);return o}),window)}));var K=U((function(t,i){(function(e){var r=i&&!i.nodeType&&i;var n=t&&!t.nodeType&&t;var s=typeof H=="object"&&H;if(s.global===s||s.window===s||s.self===s){e=s}var o,a=2147483647,l=36,c=1,h=26,u=38,f=700,p=72,d=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=l-c,x=Math.floor,k=String.fromCharCode,A;function _(t){throw new RangeError(b[t])}function M(t,i){var e=t.length;var r=[];while(e--){r[e]=i(t[e])}return r}function z(t,i){var e=t.split("@");var r="";if(e.length>1){r=e[0]+"@";t=e[1]}t=t.replace(w,".");var n=t.split(".");var s=M(n,i).join(".");return r+s}function L(t){var i=[],e=0,r=t.length,n,s;while(e<r){n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){s=t.charCodeAt(e++);if((s&64512)==56320){i.push(((n&1023)<<10)+(s&1023)+65536)}else{i.push(n);e--}}else{i.push(n)}}return i}function C(t){return M(t,(function(t){var i="";if(t>65535){t-=65536;i+=k(t>>>10&1023|55296);t=56320|t&1023}i+=k(t);return i})).join("")}function E(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return l}function P(t,i){return t+22+75*(t<26)-((i!=0)<<5)}function O(t,i,e){var r=0;t=e?x(t/f):t>>1;t+=x(t/i);for(;t>y*h>>1;r+=l){t=x(t/y)}return x(r+(y+1)*t/(t+u))}function j(t){var i=[],e=t.length,r,n=0,s=d,o=p,u,f,g,v,w,b,y,k,A;u=t.lastIndexOf(m);if(u<0){u=0}for(f=0;f<u;++f){if(t.charCodeAt(f)>=128){_("not-basic")}i.push(t.charCodeAt(f))}for(g=u>0?u+1:0;g<e;){for(v=n,w=1,b=l;;b+=l){if(g>=e){_("invalid-input")}y=E(t.charCodeAt(g++));if(y>=l||y>x((a-n)/w)){_("overflow")}n+=y*w;k=b<=o?c:b>=o+h?h:b-o;if(y<k){break}A=l-k;if(w>x(a/A)){_("overflow")}w*=A}r=i.length+1;o=O(n-v,r,v==0);if(x(n/r)>a-s){_("overflow")}s+=x(n/r);n%=r;i.splice(n++,0,s)}return C(i)}function S(t){var i,e,r,n,s,o,u,f,g,v,w,b=[],y,A,M,z;t=L(t);y=t.length;i=d;e=0;s=p;for(o=0;o<y;++o){w=t[o];if(w<128){b.push(k(w))}}r=n=b.length;if(n){b.push(m)}while(r<y){for(u=a,o=0;o<y;++o){w=t[o];if(w>=i&&w<u){u=w}}A=r+1;if(u-i>x((a-e)/A)){_("overflow")}e+=(u-i)*A;i=u;for(o=0;o<y;++o){w=t[o];if(w<i&&++e>a){_("overflow")}if(w==i){for(f=e,g=l;;g+=l){v=g<=s?c:g>=s+h?h:g-s;if(f<v){break}z=f-v;M=l-v;b.push(k(P(v+z%M,0)));f=x(z/M)}b.push(k(P(f,0)));s=O(e,A,r==n);e=0;++r}}++e;++i}return b.join("")}function T(t){return z(t,(function(t){return g.test(t)?j(t.slice(4).toLowerCase()):t}))}function I(t){return z(t,(function(t){return v.test(t)?"xn--"+S(t):t}))}o={version:"1.4.1",ucs2:{decode:L,encode:C},decode:j,encode:S,toASCII:I,toUnicode:T};if(r&&n){if(t.exports==r){n.exports=o}else{for(A in o){o.hasOwnProperty(A)&&(r[A]=o[A])}}}else{e.punycode=o}})(H)}));var q=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var i={};var e=Symbol("test");var r=Object(e);if(typeof e==="string"){return false}if(Object.prototype.toString.call(e)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;i[e]=n;for(e in i){return false}if(typeof Object.keys==="function"&&Object.keys(i).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(i).length!==0){return false}var s=Object.getOwnPropertySymbols(i);if(s.length!==1||s[0]!==e){return false}if(!Object.prototype.propertyIsEnumerable.call(i,e)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(i,e);if(o.value!==n||o.enumerable!==true){return false}}return true};var J=typeof Symbol!=="undefined"&&Symbol;var X=function t(){if(typeof J!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof J("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return q()};var tt={foo:{}};var it=Object;var et=function t(){return{__proto__:tt}.foo===tt.foo&&!({__proto__:null}instanceof it)};var rt="Function.prototype.bind called on incompatible ";var nt=Array.prototype.slice;var st=Object.prototype.toString;var ot="[object Function]";var at=function t(i){var e=this;if(typeof e!=="function"||st.call(e)!==ot){throw new TypeError(rt+e)}var r=nt.call(arguments,1);var n;var s=function(){if(this instanceof n){var t=e.apply(this,r.concat(nt.call(arguments)));if(Object(t)===t){return t}return this}else{return e.apply(i,r.concat(nt.call(arguments)))}};var o=Math.max(0,e.length-r.length);var a=[];for(var l=0;l<o;l++){a.push("$"+l)}n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s);if(e.prototype){var c=function t(){};c.prototype=e.prototype;n.prototype=new c;c.prototype=null}return n};var lt=Function.prototype.bind||at;var ct=lt.call(Function.call,Object.prototype.hasOwnProperty);var ht;var ut=SyntaxError;var ft=Function;var pt=TypeError;var dt=function(t){try{return ft('"use strict"; return ('+t+").constructor;")()}catch(i){}};var mt=Object.getOwnPropertyDescriptor;var gt=function(){throw new pt};var vt=mt?function(){try{return gt}catch(t){try{return mt(arguments,"callee").get}catch(i){return gt}}}():gt;var wt=X();var bt=et();var yt=Object.getPrototypeOf||(bt?function(t){return t.__proto__}:null);var xt={};var kt=typeof Uint8Array==="undefined"||!yt?ht:yt(Uint8Array);var At={"%AggregateError%":typeof AggregateError==="undefined"?ht:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?ht:ArrayBuffer,"%ArrayIteratorPrototype%":wt&&yt?yt([][Symbol.iterator]()):ht,"%AsyncFromSyncIteratorPrototype%":ht,"%AsyncFunction%":xt,"%AsyncGenerator%":xt,"%AsyncGeneratorFunction%":xt,"%AsyncIteratorPrototype%":xt,"%Atomics%":typeof Atomics==="undefined"?ht:Atomics,"%BigInt%":typeof BigInt==="undefined"?ht:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?ht:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?ht:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?ht:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?ht:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?ht:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?ht:FinalizationRegistry,"%Function%":ft,"%GeneratorFunction%":xt,"%Int8Array%":typeof Int8Array==="undefined"?ht:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?ht:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?ht:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":wt&&yt?yt(yt([][Symbol.iterator]())):ht,"%JSON%":typeof JSON==="object"?JSON:ht,"%Map%":typeof Map==="undefined"?ht:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!wt||!yt?ht:yt((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?ht:Promise,"%Proxy%":typeof Proxy==="undefined"?ht:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?ht:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?ht:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!wt||!yt?ht:yt((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?ht:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":wt&&yt?yt(""[Symbol.iterator]()):ht,"%Symbol%":wt?Symbol:ht,"%SyntaxError%":ut,"%ThrowTypeError%":vt,"%TypedArray%":kt,"%TypeError%":pt,"%Uint8Array%":typeof Uint8Array==="undefined"?ht:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?ht:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?ht:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?ht:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?ht:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?ht:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?ht:WeakSet};var _t=function t(i){var e;if(i==="%AsyncFunction%"){e=dt("async function () {}")}else if(i==="%GeneratorFunction%"){e=dt("function* () {}")}else if(i==="%AsyncGeneratorFunction%"){e=dt("async function* () {}")}else if(i==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");if(r){e=r.prototype}}else if(i==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");if(n&&yt){e=yt(n.prototype)}}At[i]=e;return e};var Mt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var zt=lt.call(Function.call,Array.prototype.concat);var Lt=lt.call(Function.apply,Array.prototype.splice);var Ct=lt.call(Function.call,String.prototype.replace);var Et=lt.call(Function.call,String.prototype.slice);var Pt=lt.call(Function.call,RegExp.prototype.exec);var Ot=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var jt=/\\(\\)?/g;var St=function t(i){var e=Et(i,0,1);var r=Et(i,-1);if(e==="%"&&r!=="%"){throw new ut("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&e!=="%"){throw new ut("invalid intrinsic syntax, expected opening `%`")}var n=[];Ct(i,Ot,(function(t,i,e,r){n[n.length]=e?Ct(r,jt,"$1"):i||t}));return n};var Tt=function t(i,e){var r=i;var n;if(ct(Mt,r)){n=Mt[r];r="%"+n[0]+"%"}if(ct(At,r)){var s=At[r];if(s===xt){s=_t(r)}if(typeof s==="undefined"&&!e){throw new pt("intrinsic "+i+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:s}}throw new ut("intrinsic "+i+" does not exist!")};var It=function t(i,e){if(typeof i!=="string"||i.length===0){throw new pt("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof e!=="boolean"){throw new pt('"allowMissing" argument must be a boolean')}if(Pt(/^%?[^%]*%?$/,i)===null){throw new ut("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=St(i);var n=r.length>0?r[0]:"";var s=Tt("%"+n+"%",e);var o=s.name;var a=s.value;var l=false;var c=s.alias;if(c){n=c[0];Lt(r,zt([0,1],c))}for(var h=1,u=true;h<r.length;h+=1){var f=r[h];var p=Et(f,0,1);var d=Et(f,-1);if((p==='"'||p==="'"||p==="`"||(d==='"'||d==="'"||d==="`"))&&p!==d){throw new ut("property names with quotes must have matching quotes")}if(f==="constructor"||!u){l=true}n+="."+f;o="%"+n+"%";if(ct(At,o)){a=At[o]}else if(a!=null){if(!(f in a)){if(!e){throw new pt("base intrinsic for "+i+" exists, but the property is not available.")}return void ht}if(mt&&h+1>=r.length){var m=mt(a,f);u=!!m;if(u&&"get"in m&&!("originalValue"in m.get)){a=m.get}else{a=a[f]}}else{u=ct(a,f);a=a[f]}if(u&&!l){At[o]=a}}}return a};var Bt=U((function(t){var i=It("%Function.prototype.apply%");var e=It("%Function.prototype.call%");var r=It("%Reflect.apply%",true)||lt.call(e,i);var n=It("%Object.getOwnPropertyDescriptor%",true);var s=It("%Object.defineProperty%",true);var o=It("%Math.max%");if(s){try{s({},"a",{value:1})}catch(l){s=null}}t.exports=function t(i){var a=r(lt,e,arguments);if(n&&s){var l=n(a,"length");if(l.configurable){s(a,"length",{value:1+o(0,i.length-(arguments.length-1))})}}return a};var a=function t(){return r(lt,i,arguments)};if(s){s(t.exports,"apply",{value:a})}else{t.exports.apply=a}}));var Ft=Bt(It("String.prototype.indexOf"));var Rt=function t(i,e){var r=It(i,!!e);if(typeof r==="function"&&Ft(i,".prototype.")>-1){return Bt(r)}return r};const Nt={};const Dt=Object.freeze({__proto__:null,default:Nt});const Yt=Q(Dt);var Gt=typeof Map==="function"&&Map.prototype;var $t=Object.getOwnPropertyDescriptor&&Gt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var Zt=Gt&&$t&&typeof $t.get==="function"?$t.get:null;var Ht=Gt&&Map.prototype.forEach;var Ut=typeof Set==="function"&&Set.prototype;var Qt=Object.getOwnPropertyDescriptor&&Ut?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Vt=Ut&&Qt&&typeof Qt.get==="function"?Qt.get:null;var Wt=Ut&&Set.prototype.forEach;var Kt=typeof WeakMap==="function"&&WeakMap.prototype;var qt=Kt?WeakMap.prototype.has:null;var Jt=typeof WeakSet==="function"&&WeakSet.prototype;var Xt=Jt?WeakSet.prototype.has:null;var ti=typeof WeakRef==="function"&&WeakRef.prototype;var ii=ti?WeakRef.prototype.deref:null;var ei=Boolean.prototype.valueOf;var ri=Object.prototype.toString;var ni=Function.prototype.toString;var si=String.prototype.match;var oi=String.prototype.slice;var ai=String.prototype.replace;var li=String.prototype.toUpperCase;var ci=String.prototype.toLowerCase;var hi=RegExp.prototype.test;var ui=Array.prototype.concat;var fi=Array.prototype.join;var pi=Array.prototype.slice;var di=Math.floor;var mi=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var gi=Object.getOwnPropertySymbols;var vi=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var wi=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var bi=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wi?"object":"symbol")?Symbol.toStringTag:null;var yi=Object.prototype.propertyIsEnumerable;var xi=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ki(t,i){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||hi.call(/e/,i)){return i}var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var r=t<0?-di(-t):di(t);if(r!==t){var n=String(r);var s=oi.call(i,n.length+1);return ai.call(n,e,"$&_")+"."+ai.call(ai.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ai.call(i,e,"$&_")}var Ai=Yt.custom;var _i=Ii(Ai)?Ai:null;var Mi=function t(i,e,r,n){var s=e||{};if(Ri(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(Ri(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var o=Ri(s,"customInspect")?s.customInspect:true;if(typeof o!=="boolean"&&o!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(Ri(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(Ri(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=s.numericSeparator;if(typeof i==="undefined"){return"undefined"}if(i===null){return"null"}if(typeof i==="boolean"){return i?"true":"false"}if(typeof i==="string"){return Vi(i,s)}if(typeof i==="number"){if(i===0){return Infinity/i>0?"0":"-0"}var l=String(i);return a?ki(i,l):l}if(typeof i==="bigint"){var c=String(i)+"n";return a?ki(i,c):c}var h=typeof s.depth==="undefined"?5:s.depth;if(typeof r==="undefined"){r=0}if(r>=h&&h>0&&typeof i==="object"){return Ci(i)?"[Array]":"[Object]"}var u=te(s,r);if(typeof n==="undefined"){n=[]}else if(Yi(n,i)>=0){return"[Circular]"}function f(i,e,o){if(e){n=pi.call(n);n.push(e)}if(o){var a={depth:s.depth};if(Ri(s,"quoteStyle")){a.quoteStyle=s.quoteStyle}return t(i,a,r+1,n)}return t(i,s,r+1,n)}if(typeof i==="function"&&!Pi(i)){var p=Di(i);var d=ee(i,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(d.length>0?" { "+fi.call(d,", ")+" }":"")}if(Ii(i)){var m=wi?ai.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):vi.call(i);return typeof i==="object"&&!wi?Ki(m):m}if(Qi(i)){var g="<"+ci.call(String(i.nodeName));var v=i.attributes||[];for(var w=0;w<v.length;w++){g+=" "+v[w].name+"="+zi(Li(v[w].value),"double",s)}g+=">";if(i.childNodes&&i.childNodes.length){g+="..."}g+="</"+ci.call(String(i.nodeName))+">";return g}if(Ci(i)){if(i.length===0){return"[]"}var b=ee(i,f);if(u&&!Xi(b)){return"["+ie(b,u)+"]"}return"[ "+fi.call(b,", ")+" ]"}if(Oi(i)){var y=ee(i,f);if(!("cause"in Error.prototype)&&"cause"in i&&!yi.call(i,"cause")){return"{ ["+String(i)+"] "+fi.call(ui.call("[cause]: "+f(i.cause),y),", ")+" }"}if(y.length===0){return"["+String(i)+"]"}return"{ ["+String(i)+"] "+fi.call(y,", ")+" }"}if(typeof i==="object"&&o){if(_i&&typeof i[_i]==="function"&&Yt){return Yt(i,{depth:h-r})}else if(o!=="symbol"&&typeof i.inspect==="function"){return i.inspect()}}if(Gi(i)){var x=[];if(Ht){Ht.call(i,(function(t,e){x.push(f(e,i,true)+" => "+f(t,i))}))}return Ji("Map",Zt.call(i),x,u)}if(Hi(i)){var k=[];if(Wt){Wt.call(i,(function(t){k.push(f(t,i))}))}return Ji("Set",Vt.call(i),k,u)}if($i(i)){return qi("WeakMap")}if(Ui(i)){return qi("WeakSet")}if(Zi(i)){return qi("WeakRef")}if(Si(i)){return Ki(f(Number(i)))}if(Bi(i)){return Ki(f(mi.call(i)))}if(Ti(i)){return Ki(ei.call(i))}if(ji(i)){return Ki(f(String(i)))}if(!Ei(i)&&!Pi(i)){var A=ee(i,f);var _=xi?xi(i)===Object.prototype:i instanceof Object||i.constructor===Object;var M=i instanceof Object?"":"null prototype";var z=!_&&bi&&Object(i)===i&&bi in i?oi.call(Ni(i),8,-1):M?"Object":"";var L=_||typeof i.constructor!=="function"?"":i.constructor.name?i.constructor.name+" ":"";var C=L+(z||M?"["+fi.call(ui.call([],z||[],M||[]),": ")+"] ":"");if(A.length===0){return C+"{}"}if(u){return C+"{"+ie(A,u)+"}"}return C+"{ "+fi.call(A,", ")+" }"}return String(i)};function zi(t,i,e){var r=(e.quoteStyle||i)==="double"?'"':"'";return r+t+r}function Li(t){return ai.call(String(t),/"/g,"&quot;")}function Ci(t){return Ni(t)==="[object Array]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ei(t){return Ni(t)==="[object Date]"&&(!bi||!(typeof t==="object"&&bi in t))}function Pi(t){return Ni(t)==="[object RegExp]"&&(!bi||!(typeof t==="object"&&bi in t))}function Oi(t){return Ni(t)==="[object Error]"&&(!bi||!(typeof t==="object"&&bi in t))}function ji(t){return Ni(t)==="[object String]"&&(!bi||!(typeof t==="object"&&bi in t))}function Si(t){return Ni(t)==="[object Number]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ti(t){return Ni(t)==="[object Boolean]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ii(t){if(wi){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!vi){return false}try{vi.call(t);return true}catch(i){}return false}function Bi(t){if(!t||typeof t!=="object"||!mi){return false}try{mi.call(t);return true}catch(i){}return false}var Fi=Object.prototype.hasOwnProperty||function(t){return t in this};function Ri(t,i){return Fi.call(t,i)}function Ni(t){return ri.call(t)}function Di(t){if(t.name){return t.name}var i=si.call(ni.call(t),/^function\s*([\w$]+)/);if(i){return i[1]}return null}function Yi(t,i){if(t.indexOf){return t.indexOf(i)}for(var e=0,r=t.length;e<r;e++){if(t[e]===i){return e}}return-1}function Gi(t){if(!Zt||!t||typeof t!=="object"){return false}try{Zt.call(t);try{Vt.call(t)}catch(i){return true}return t instanceof Map}catch(e){}return false}function $i(t){if(!qt||!t||typeof t!=="object"){return false}try{qt.call(t,qt);try{Xt.call(t,Xt)}catch(i){return true}return t instanceof WeakMap}catch(e){}return false}function Zi(t){if(!ii||!t||typeof t!=="object"){return false}try{ii.call(t);return true}catch(i){}return false}function Hi(t){if(!Vt||!t||typeof t!=="object"){return false}try{Vt.call(t);try{Zt.call(t)}catch(i){return true}return t instanceof Set}catch(e){}return false}function Ui(t){if(!Xt||!t||typeof t!=="object"){return false}try{Xt.call(t,Xt);try{qt.call(t,qt)}catch(i){return true}return t instanceof WeakSet}catch(e){}return false}function Qi(t){if(!t||typeof t!=="object"){return false}if(typeof HTMLElement!=="undefined"&&t instanceof HTMLElement){return true}return typeof t.nodeName==="string"&&typeof t.getAttribute==="function"}function Vi(t,i){if(t.length>i.maxStringLength){var e=t.length-i.maxStringLength;var r="... "+e+" more character"+(e>1?"s":"");return Vi(oi.call(t,0,i.maxStringLength),i)+r}var n=ai.call(ai.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wi);return zi(n,"single",i)}function Wi(t){var i=t.charCodeAt(0);var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];if(e){return"\\"+e}return"\\x"+(i<16?"0":"")+li.call(i.toString(16))}function Ki(t){return"Object("+t+")"}function qi(t){return t+" { ? }"}function Ji(t,i,e,r){var n=r?ie(e,r):fi.call(e,", ");return t+" ("+i+") {"+n+"}"}function Xi(t){for(var i=0;i<t.length;i++){if(Yi(t[i],"\n")>=0){return false}}return true}function te(t,i){var e;if(t.indent==="\t"){e="\t"}else if(typeof t.indent==="number"&&t.indent>0){e=fi.call(Array(t.indent+1)," ")}else{return null}return{base:e,prev:fi.call(Array(i+1),e)}}function ie(t,i){if(t.length===0){return""}var e="\n"+i.prev+i.base;return e+fi.call(t,","+e)+"\n"+i.prev}function ee(t,i){var e=Ci(t);var r=[];if(e){r.length=t.length;for(var n=0;n<t.length;n++){r[n]=Ri(t,n)?i(t[n],t):""}}var s=typeof gi==="function"?gi(t):[];var o;if(wi){o={};for(var a=0;a<s.length;a++){o["$"+s[a]]=s[a]}}for(var l in t){if(!Ri(t,l)){continue}if(e&&String(Number(l))===l&&l<t.length){continue}if(wi&&o["$"+l]instanceof Symbol){continue}else if(hi.call(/[^\w$]/,l)){r.push(i(l,t)+": "+i(t[l],t))}else{r.push(l+": "+i(t[l],t))}}if(typeof gi==="function"){for(var c=0;c<s.length;c++){if(yi.call(t,s[c])){r.push("["+i(s[c])+"]: "+i(t[s[c]],t))}}}return r}var re=It("%TypeError%");var ne=It("%WeakMap%",true);var se=It("%Map%",true);var oe=Rt("WeakMap.prototype.get",true);var ae=Rt("WeakMap.prototype.set",true);var le=Rt("WeakMap.prototype.has",true);var ce=Rt("Map.prototype.get",true);var he=Rt("Map.prototype.set",true);var ue=Rt("Map.prototype.has",true);var fe=function(t,i){for(var e=t,r;(r=e.next)!==null;e=r){if(r.key===i){e.next=r.next;r.next=t.next;t.next=r;return r}}};var pe=function(t,i){var e=fe(t,i);return e&&e.value};var de=function(t,i,e){var r=fe(t,i);if(r){r.value=e}else{t.next={key:i,next:t.next,value:e}}};var me=function(t,i){return!!fe(t,i)};var ge=function t(){var i;var e;var r;var n={assert:function(t){if(!n.has(t)){throw new re("Side channel does not contain "+Mi(t))}},get:function(t){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(i){return oe(i,t)}}else if(se){if(e){return ce(e,t)}}else{if(r){return pe(r,t)}}},has:function(t){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(i){return le(i,t)}}else if(se){if(e){return ue(e,t)}}else{if(r){return me(r,t)}}return false},set:function(t,n){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(!i){i=new ne}ae(i,t,n)}else if(se){if(!e){e=new se}he(e,t,n)}else{if(!r){r={key:{},next:null}}de(r,t,n)}}};return n};var ve=String.prototype.replace;var we=/%20/g;var be={RFC1738:"RFC1738",RFC3986:"RFC3986"};var ye={default:be.RFC3986,formatters:{RFC1738:function(t){return ve.call(t,we,"+")},RFC3986:function(t){return String(t)}},RFC1738:be.RFC1738,RFC3986:be.RFC3986};var xe=Object.prototype.hasOwnProperty;var ke=Array.isArray;var Ae=function(){var t=[];for(var i=0;i<256;++i){t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase())}return t}();var _e=function t(i){while(i.length>1){var e=i.pop();var r=e.obj[e.prop];if(ke(r)){var n=[];for(var s=0;s<r.length;++s){if(typeof r[s]!=="undefined"){n.push(r[s])}}e.obj[e.prop]=n}}};var Me=function t(i,e){var r=e&&e.plainObjects?Object.create(null):{};for(var n=0;n<i.length;++n){if(typeof i[n]!=="undefined"){r[n]=i[n]}}return r};var ze=function t(i,e,r){if(!e){return i}if(typeof e!=="object"){if(ke(i)){i.push(e)}else if(i&&typeof i==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!xe.call(Object.prototype,e)){i[e]=true}}else{return[i,e]}return i}if(!i||typeof i!=="object"){return[i].concat(e)}var n=i;if(ke(i)&&!ke(e)){n=Me(i,r)}if(ke(i)&&ke(e)){e.forEach((function(e,n){if(xe.call(i,n)){var s=i[n];if(s&&typeof s==="object"&&e&&typeof e==="object"){i[n]=t(s,e,r)}else{i.push(e)}}else{i[n]=e}}));return i}return Object.keys(e).reduce((function(i,n){var s=e[n];if(xe.call(i,n)){i[n]=t(i[n],s,r)}else{i[n]=s}return i}),n)};var Le=function t(i,e){return Object.keys(e).reduce((function(t,i){t[i]=e[i];return t}),i)};var Ce=function(t,i,e){var r=t.replace(/\+/g," ");if(e==="iso-8859-1"){return r.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(r)}catch(n){return r}};var Ee=function t(i,e,r,n,s){if(i.length===0){return i}var o=i;if(typeof i==="symbol"){o=Symbol.prototype.toString.call(i)}else if(typeof i!=="string"){o=String(i)}if(r==="iso-8859-1"){return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<o.length;++l){var c=o.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===ye.RFC1738&&(c===40||c===41)){a+=o.charAt(l);continue}if(c<128){a=a+Ae[c];continue}if(c<2048){a=a+(Ae[192|c>>6]+Ae[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Ae[224|c>>12]+Ae[128|c>>6&63]+Ae[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|o.charCodeAt(l)&1023);a+=Ae[240|c>>18]+Ae[128|c>>12&63]+Ae[128|c>>6&63]+Ae[128|c&63]}return a};var Pe=function t(i){var e=[{obj:{o:i},prop:"o"}];var r=[];for(var n=0;n<e.length;++n){var s=e[n];var o=s.obj[s.prop];var a=Object.keys(o);for(var l=0;l<a.length;++l){var c=a[l];var h=o[c];if(typeof h==="object"&&h!==null&&r.indexOf(h)===-1){e.push({obj:o,prop:c});r.push(h)}}}_e(e);return i};var Oe=function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"};var je=function t(i){if(!i||typeof i!=="object"){return false}return!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))};var Se=function t(i,e){return[].concat(i,e)};var Te=function t(i,e){if(ke(i)){var r=[];for(var n=0;n<i.length;n+=1){r.push(e(i[n]))}return r}return e(i)};var Ie={arrayToObject:Me,assign:Le,combine:Se,compact:Pe,decode:Ce,encode:Ee,isBuffer:je,isRegExp:Oe,maybeMap:Te,merge:ze};var Be=Object.prototype.hasOwnProperty;var Fe={brackets:function t(i){return i+"[]"},comma:"comma",indices:function t(i,e){return i+"["+e+"]"},repeat:function t(i){return i}};var Re=Array.isArray;var Ne=Array.prototype.push;var De=function(t,i){Ne.apply(t,Re(i)?i:[i])};var Ye=Date.prototype.toISOString;var Ge=ye["default"];var $e={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:Ie.encode,encodeValuesOnly:false,format:Ge,formatter:ye.formatters[Ge],indices:false,serializeDate:function t(i){return Ye.call(i)},skipNulls:false,strictNullHandling:false};var Ze=function t(i){return typeof i==="string"||typeof i==="number"||typeof i==="boolean"||typeof i==="symbol"||typeof i==="bigint"};var He={};var Ue=function t(i,e,r,n,s,o,a,l,c,h,u,f,p,d,m,g){var v=i;var w=g;var b=0;var y=false;while((w=w.get(He))!==void undefined&&!y){var x=w.get(i);b+=1;if(typeof x!=="undefined"){if(x===b){throw new RangeError("Cyclic object value")}else{y=true}}if(typeof w.get(He)==="undefined"){b=0}}if(typeof l==="function"){v=l(e,v)}else if(v instanceof Date){v=u(v)}else if(r==="comma"&&Re(v)){v=Ie.maybeMap(v,(function(t){if(t instanceof Date){return u(t)}return t}))}if(v===null){if(s){return a&&!d?a(e,$e.encoder,m,"key",f):e}v=""}if(Ze(v)||Ie.isBuffer(v)){if(a){var k=d?e:a(e,$e.encoder,m,"key",f);return[p(k)+"="+p(a(v,$e.encoder,m,"value",f))]}return[p(e)+"="+p(String(v))]}var A=[];if(typeof v==="undefined"){return A}var _;if(r==="comma"&&Re(v)){if(d&&a){v=Ie.maybeMap(v,a)}_=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(Re(l)){_=l}else{var M=Object.keys(v);_=c?M.sort(c):M}var z=n&&Re(v)&&v.length===1?e+"[]":e;for(var L=0;L<_.length;++L){var C=_[L];var E=typeof C==="object"&&typeof C.value!=="undefined"?C.value:v[C];if(o&&E===null){continue}var P=Re(v)?typeof r==="function"?r(z,C):z:z+(h?"."+C:"["+C+"]");g.set(i,b);var O=ge();O.set(He,g);De(A,t(E,P,r,n,s,o,r==="comma"&&d&&Re(v)?null:a,l,c,h,u,f,p,d,m,O))}return A};var Qe=function t(i){if(!i){return $e}if(i.encoder!==null&&typeof i.encoder!=="undefined"&&typeof i.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var e=i.charset||$e.charset;if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=ye["default"];if(typeof i.format!=="undefined"){if(!Be.call(ye.formatters,i.format)){throw new TypeError("Unknown format option provided.")}r=i.format}var n=ye.formatters[r];var s=$e.filter;if(typeof i.filter==="function"||Re(i.filter)){s=i.filter}return{addQueryPrefix:typeof i.addQueryPrefix==="boolean"?i.addQueryPrefix:$e.addQueryPrefix,allowDots:typeof i.allowDots==="undefined"?$e.allowDots:!!i.allowDots,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:$e.charsetSentinel,delimiter:typeof i.delimiter==="undefined"?$e.delimiter:i.delimiter,encode:typeof i.encode==="boolean"?i.encode:$e.encode,encoder:typeof i.encoder==="function"?i.encoder:$e.encoder,encodeValuesOnly:typeof i.encodeValuesOnly==="boolean"?i.encodeValuesOnly:$e.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof i.serializeDate==="function"?i.serializeDate:$e.serializeDate,skipNulls:typeof i.skipNulls==="boolean"?i.skipNulls:$e.skipNulls,sort:typeof i.sort==="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:$e.strictNullHandling}};var Ve=function(t,i){var e=t;var r=Qe(i);var n;var s;if(typeof r.filter==="function"){s=r.filter;e=s("",e)}else if(Re(r.filter)){s=r.filter;n=s}var o=[];if(typeof e!=="object"||e===null){return""}var a;if(i&&i.arrayFormat in Fe){a=i.arrayFormat}else if(i&&"indices"in i){a=i.indices?"indices":"repeat"}else{a="indices"}var l=Fe[a];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&i&&i.commaRoundTrip;if(!n){n=Object.keys(e)}if(r.sort){n.sort(r.sort)}var h=ge();for(var u=0;u<n.length;++u){var f=n[u];if(r.skipNulls&&e[f]===null){continue}De(o,Ue(e[f],f,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,h))}var p=o.join(r.delimiter);var d=r.addQueryPrefix===true?"?":"";if(r.charsetSentinel){if(r.charset==="iso-8859-1"){d+="utf8=%26%2310003%3B&"}else{d+="utf8=%E2%9C%93&"}}return p.length>0?d+p:""};var We=Object.prototype.hasOwnProperty;var Ke=Array.isArray;var qe={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:Ie.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var Je=function(t){return t.replace(/&#(\d+);/g,(function(t,i){return String.fromCharCode(parseInt(i,10))}))};var Xe=function(t,i){if(t&&typeof t==="string"&&i.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var tr="utf8=%26%2310003%3B";var ir="utf8=%E2%9C%93";var er=function t(i,e){var r={__proto__:null};var n=e.ignoreQueryPrefix?i.replace(/^\?/,""):i;var s=e.parameterLimit===Infinity?undefined:e.parameterLimit;var o=n.split(e.delimiter,s);var a=-1;var l;var c=e.charset;if(e.charsetSentinel){for(l=0;l<o.length;++l){if(o[l].indexOf("utf8=")===0){if(o[l]===ir){c="utf-8"}else if(o[l]===tr){c="iso-8859-1"}a=l;l=o.length}}}for(l=0;l<o.length;++l){if(l===a){continue}var h=o[l];var u=h.indexOf("]=");var f=u===-1?h.indexOf("="):u+1;var p,d;if(f===-1){p=e.decoder(h,qe.decoder,c,"key");d=e.strictNullHandling?null:""}else{p=e.decoder(h.slice(0,f),qe.decoder,c,"key");d=Ie.maybeMap(Xe(h.slice(f+1),e),(function(t){return e.decoder(t,qe.decoder,c,"value")}))}if(d&&e.interpretNumericEntities&&c==="iso-8859-1"){d=Je(d)}if(h.indexOf("[]=")>-1){d=Ke(d)?[d]:d}if(We.call(r,p)){r[p]=Ie.combine(r[p],d)}else{r[p]=d}}return r};var rr=function(t,i,e,r){var n=r?i:Xe(i,e);for(var s=t.length-1;s>=0;--s){var o;var a=t[s];if(a==="[]"&&e.parseArrays){o=[].concat(n)}else{o=e.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var c=parseInt(l,10);if(!e.parseArrays&&l===""){o={0:n}}else if(!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&(e.parseArrays&&c<=e.arrayLimit)){o=[];o[c]=n}else if(l!=="__proto__"){o[l]=n}}n=o}return n};var nr=function t(i,e,r,n){if(!i){return}var s=r.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i;var o=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=r.depth>0&&o.exec(s);var c=l?s.slice(0,l.index):s;var h=[];if(c){if(!r.plainObjects&&We.call(Object.prototype,c)){if(!r.allowPrototypes){return}}h.push(c)}var u=0;while(r.depth>0&&(l=a.exec(s))!==null&&u<r.depth){u+=1;if(!r.plainObjects&&We.call(Object.prototype,l[1].slice(1,-1))){if(!r.allowPrototypes){return}}h.push(l[1])}if(l){h.push("["+s.slice(l.index)+"]")}return rr(h,e,r,n)};var sr=function t(i){if(!i){return qe}if(i.decoder!==null&&i.decoder!==undefined&&typeof i.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var e=typeof i.charset==="undefined"?qe.charset:i.charset;return{allowDots:typeof i.allowDots==="undefined"?qe.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes==="boolean"?i.allowPrototypes:qe.allowPrototypes,allowSparse:typeof i.allowSparse==="boolean"?i.allowSparse:qe.allowSparse,arrayLimit:typeof i.arrayLimit==="number"?i.arrayLimit:qe.arrayLimit,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:qe.charsetSentinel,comma:typeof i.comma==="boolean"?i.comma:qe.comma,decoder:typeof i.decoder==="function"?i.decoder:qe.decoder,delimiter:typeof i.delimiter==="string"||Ie.isRegExp(i.delimiter)?i.delimiter:qe.delimiter,depth:typeof i.depth==="number"||i.depth===false?+i.depth:qe.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===true,interpretNumericEntities:typeof i.interpretNumericEntities==="boolean"?i.interpretNumericEntities:qe.interpretNumericEntities,parameterLimit:typeof i.parameterLimit==="number"?i.parameterLimit:qe.parameterLimit,parseArrays:i.parseArrays!==false,plainObjects:typeof i.plainObjects==="boolean"?i.plainObjects:qe.plainObjects,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:qe.strictNullHandling}};var or=function(t,i){var e=sr(i);if(t===""||t===null||typeof t==="undefined"){return e.plainObjects?Object.create(null):{}}var r=typeof t==="string"?er(t,e):t;var n=e.plainObjects?Object.create(null):{};var s=Object.keys(r);for(var o=0;o<s.length;++o){var a=s[o];var l=nr(a,r[a],e,typeof t==="string");n=Ie.merge(n,l,e)}if(e.allowSparse===true){return n}return Ie.compact(n)};var ar={formats:ye,parse:or,stringify:Ve};function lr(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var cr=/^([a-z0-9.+-]+:)/i,hr=/:[0-9]*$/,ur=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,fr=["<",">",'"',"`"," ","\r","\n","\t"],pr=["{","}","|","\\","^","`"].concat(fr),dr=["'"].concat(pr),mr=["%","/","?",";","#"].concat(dr),gr=["/","?","#"],vr=255,wr=/^[+a-z0-9A-Z_-]{0,63}$/,br=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,yr={javascript:true,"javascript:":true},xr={javascript:true,"javascript:":true},kr={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function Ar(t,i,e){if(t&&typeof t==="object"&&t instanceof lr){return t}var r=new lr;r.parse(t,i,e);return r}lr.prototype.parse=function(t,i,e){if(typeof t!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof t)}var r=t.indexOf("?"),n=r!==-1&&r<t.indexOf("#")?"?":"#",s=t.split(n),o=/\\/g;s[0]=s[0].replace(o,"/");t=s.join(n);var a=t;a=a.trim();if(!e&&t.split("#").length===1){var l=ur.exec(a);if(l){this.path=a;this.href=a;this.pathname=l[1];if(l[2]){this.search=l[2];if(i){this.query=ar.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(i){this.search="";this.query={}}return this}}var c=cr.exec(a);if(c){c=c[0];var h=c.toLowerCase();this.protocol=h;a=a.substr(c.length)}if(e||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var u=a.substr(0,2)==="//";if(u&&!(c&&xr[c])){a=a.substr(2);this.slashes=true}}if(!xr[c]&&(u||c&&!kr[c])){var f=-1;for(var p=0;p<gr.length;p++){var d=a.indexOf(gr[p]);if(d!==-1&&(f===-1||d<f)){f=d}}var m,g;if(f===-1){g=a.lastIndexOf("@")}else{g=a.lastIndexOf("@",f)}if(g!==-1){m=a.slice(0,g);a=a.slice(g+1);this.auth=decodeURIComponent(m)}f=-1;for(var p=0;p<mr.length;p++){var d=a.indexOf(mr[p]);if(d!==-1&&(f===-1||d<f)){f=d}}if(f===-1){f=a.length}this.host=a.slice(0,f);a=a.slice(f);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var w=this.hostname.split(/\./);for(var p=0,b=w.length;p<b;p++){var y=w[p];if(!y){continue}if(!y.match(wr)){var x="";for(var k=0,A=y.length;k<A;k++){if(y.charCodeAt(k)>127){x+="x"}else{x+=y[k]}}if(!x.match(wr)){var _=w.slice(0,p);var M=w.slice(p+1);var z=y.match(br);if(z){_.push(z[1]);M.unshift(z[2])}if(M.length){a="/"+M.join(".")+a}this.hostname=_.join(".");break}}}}if(this.hostname.length>vr){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=K.toASCII(this.hostname)}var L=this.port?":"+this.port:"";var C=this.hostname||"";this.host=C+L;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!yr[h]){for(var p=0,b=dr.length;p<b;p++){var E=dr[p];if(a.indexOf(E)===-1){continue}var P=encodeURIComponent(E);if(P===E){P=escape(E)}a=a.split(E).join(P)}}var O=a.indexOf("#");if(O!==-1){this.hash=a.substr(O);a=a.slice(0,O)}var j=a.indexOf("?");if(j!==-1){this.search=a.substr(j);this.query=a.substr(j+1);if(i){this.query=ar.parse(this.query)}a=a.slice(0,j)}else if(i){this.search="";this.query={}}if(a){this.pathname=a}if(kr[h]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var L=this.pathname||"";var S=this.search||"";this.path=L+S}this.href=this.format();return this};function _r(t){if(typeof t==="string"){t=Ar(t)}if(!(t instanceof lr)){return lr.prototype.format.call(t)}return t.format()}lr.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var i=this.protocol||"",e=this.pathname||"",r=this.hash||"",n=false,s="";if(this.host){n=t+this.host}else if(this.hostname){n=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]");if(this.port){n+=":"+this.port}}if(this.query&&typeof this.query==="object"&&Object.keys(this.query).length){s=ar.stringify(this.query)}var o=this.search||s&&"?"+s||"";if(i&&i.substr(-1)!==":"){i+=":"}if(this.slashes||(!i||kr[i])&&n!==false){n="//"+(n||"");if(e&&e.charAt(0)!=="/"){e="/"+e}}else if(!n){n=""}if(r&&r.charAt(0)!=="#"){r="#"+r}if(o&&o.charAt(0)!=="?"){o="?"+o}e=e.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));o=o.replace("#","%23");return i+n+e+o+r};function Mr(t,i){return Ar(t,false,true).resolve(i)}lr.prototype.resolve=function(t){return this.resolveObject(Ar(t,false,true)).format()};function zr(t,i){if(!t){return i}return Ar(t,false,true).resolveObject(i)}lr.prototype.resolveObject=function(t){if(typeof t==="string"){var i=new lr;i.parse(t,false,true);t=i}var e=new lr;var r=Object.keys(this);for(var n=0;n<r.length;n++){var s=r[n];e[s]=this[s]}e.hash=t.hash;if(t.href===""){e.href=e.format();return e}if(t.slashes&&!t.protocol){var o=Object.keys(t);for(var a=0;a<o.length;a++){var l=o[a];if(l!=="protocol"){e[l]=t[l]}}if(kr[e.protocol]&&e.hostname&&!e.pathname){e.pathname="/";e.path=e.pathname}e.href=e.format();return e}if(t.protocol&&t.protocol!==e.protocol){if(!kr[t.protocol]){var c=Object.keys(t);for(var h=0;h<c.length;h++){var u=c[h];e[u]=t[u]}e.href=e.format();return e}e.protocol=t.protocol;if(!t.host&&!xr[t.protocol]){var f=(t.pathname||"").split("/");while(f.length&&!(t.host=f.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(f[0]!==""){f.unshift("")}if(f.length<2){f.unshift("")}e.pathname=f.join("/")}else{e.pathname=t.pathname}e.search=t.search;e.query=t.query;e.host=t.host||"";e.auth=t.auth;e.hostname=t.hostname||t.host;e.port=t.port;if(e.pathname||e.search){var p=e.pathname||"";var d=e.search||"";e.path=p+d}e.slashes=e.slashes||t.slashes;e.href=e.format();return e}var m=e.pathname&&e.pathname.charAt(0)==="/",g=t.host||t.pathname&&t.pathname.charAt(0)==="/",v=g||m||e.host&&t.pathname,w=v,b=e.pathname&&e.pathname.split("/")||[],f=t.pathname&&t.pathname.split("/")||[],y=e.protocol&&!kr[e.protocol];if(y){e.hostname="";e.port=null;if(e.host){if(b[0]===""){b[0]=e.host}else{b.unshift(e.host)}}e.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(f[0]===""){f[0]=t.host}else{f.unshift(t.host)}}t.host=null}v=v&&(f[0]===""||b[0]==="")}if(g){e.host=t.host||t.host===""?t.host:e.host;e.hostname=t.hostname||t.hostname===""?t.hostname:e.hostname;e.search=t.search;e.query=t.query;b=f}else if(f.length){if(!b){b=[]}b.pop();b=b.concat(f);e.search=t.search;e.query=t.query}else if(t.search!=null){if(y){e.host=b.shift();e.hostname=e.host;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}e.search=t.search;e.query=t.query;if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.href=e.format();return e}if(!b.length){e.pathname=null;if(e.search){e.path="/"+e.search}else{e.path=null}e.href=e.format();return e}var k=b.slice(-1)[0];var A=(e.host||t.host||b.length>1)&&(k==="."||k==="..")||k==="";var _=0;for(var M=b.length;M>=0;M--){k=b[M];if(k==="."){b.splice(M,1)}else if(k===".."){b.splice(M,1);_++}else if(_){b.splice(M,1);_--}}if(!v&&!w){for(;_--;_){b.unshift("..")}}if(v&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")){b.unshift("")}if(A&&b.join("/").substr(-1)!=="/"){b.push("")}var z=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(y){e.hostname=z?"":b.length?b.shift():"";e.host=e.hostname;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}v=v||e.host&&b.length;if(v&&!z){b.unshift("")}if(b.length>0){e.pathname=b.join("/")}else{e.pathname=null;e.path=null}if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.auth=t.auth||e.auth;e.slashes=e.slashes||t.slashes;e.href=e.format();return e};lr.prototype.parseHost=function(){var t=this.host;var i=hr.exec(t);if(i){i=i[0];if(i!==":"){this.port=i.substr(1)}t=t.substr(0,t.length-i.length)}if(t){this.hostname=t}};var Lr=Ar;var Cr=Mr;var Er=zr;var Pr=_r;var Or=lr;var jr={parse:Lr,resolve:Cr,resolveObject:Er,format:Pr,Url:Or};!function(t){t()}((function(){const t={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"}},i=6e4,e=60*i,r=24*e;function n(t,i){return new URL(t,t.startsWith("../")||t.startsWith("./")?i:void 0).toString()}function s(t,i){let e=m("a","",{href:t,target:"_new",download:i||"",style:"display:none;"}),r=document.body;r.appendChild(e),e.click(),r.removeChild(e)}function o(t,i,e){return t&&(({props:r,point:n,id:s,isMulti:o})=>{if(r)for(const l of t)if(l in r){n.meta[i]=(e||a).call(this,o?r[l][o]:r[l],s);break}})}const a=(t,i)=>parseInt("object"==typeof t?t[i]:t),l=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.addClass(t,i))),c=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.removeClass(t,i))),h=(t,i,e)=>(e?l:c)(t,i),u=(t,i,e)=>i&&c(t,i)||e&&l(t,e),f=(t,i,e)=>void 0===e&&L.DomUtil.getStyle(t,i)||t.style.setProperty(i,e),p=(t,i)=>{for(let e in i)t.setAttribute(e,i[e])},d=(t,i,e,r)=>t[r?"on":"off"](i,e),m=(t,i,e,r)=>{let n=L.DomUtil.create(t,i||"");return e&&p(n,e),r&&g(r,n),n},g=(t,i)=>t.appendChild(i),v=(t,i,e)=>t.insertAdjacentElement(e,i),w=(t,i)=>(i||document).querySelector(t),b=(t,i)=>{for(let e in t)i(t[e],e)},y=()=>Math.random().toString(36).substr(2,9),{on:x,off:k}=L.DomEvent,{throttle:A,wrapNum:_}=L.Util,{hasClass:M}=L.DomUtil,z=L.Util.formatNum,C=(t,i)=>i?t<i[0]?i[0]:t>i[1]?i[1]:t:t,E=(t,i,e)=>Math.abs(t-i)>e?i+e*Math.sign(t-i):t;function P(t,i=[],e=[]){switch(!t||typeof t){case"object":const r=e.filter((i=>t===i.original))[0];if(r)return r.copy;const n=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return e.push({original:t,copy:n}),Object.getOwnPropertyNames(t).forEach((function(r){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get||s.set?s:{writable:s.writable,configurable:s.configurable,enumerable:s.enumerable,value:i.includes(r)?s.value:P(s.value,i,e)})})),n;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var O=Object.freeze({__proto__:null,Colors:t,addClass:l,append:g,clamp:C,cloneDeep:P,coordPropsToMeta:o,create:m,drawCanvas:function(t,i){i.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let e=new Path2D(i.attr("d"));t.strokeStyle=i.attr("stroke"),t.fillStyle=i.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=i.attr("stroke-opacity")||.3,t.stroke(e),t.globalAlpha=i.attr("fill-opacity")||.45,t.fill(e),t.globalAlpha=1,t.closePath()},each:b,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():i=>t(i):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let n=Math.floor(t/r),s=Math.floor((t-n*r)/e),o=Math.floor((t-n*r-s*e)/i),a=Math.round((t-n*r-s*e-o*i)/1e3);return 60===a&&(o++,a=0),60===o&&(s++,o=0),24===s&&(n++,s=0),(n?n+"d ":"")+s.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:M,iAvg:(t,i=0,e=1)=>(t+i*(e-1))/e,iMax:(t,i=-1/0)=>t>i?t:i,iMin:(t,i=1/0)=>t<i?t:i,iSum:(t,i=0)=>t+i,insert:v,off:k,on:x,parseDate:(t,i)=>new Date(Date.parse("object"==typeof t?t[i]:t)),parseNumeric:a,randomId:y,removeClass:c,replaceClass:u,resolveURL:n,round:z,saveFile:s,select:w,setAttributes:p,style:f,throttle:A,toggleClass:h,toggleEvent:d,toggleStyle:(t,i,e,r)=>f(t,i,r?e:""),wrapDelta:E,wrapNum:_}),j={autofitBounds:!0,autohide:!1,autohideMarker:!0,almostover:!0,altitude:!0,closeBtn:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",edgeScale:{bar:!0,icon:!1,coords:!1},followMarker:!0,imperial:!1,legend:!0,handlers:["Distance","Time","Altitude","Slope","Speed","Acceleration"],hotline:"elevation",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,theme:"lightblue-theme",summary:"inline",slope:!1,speed:!1,time:!0,timeFactor:3600,timestamps:!1,trkStart:{className:"start-marker",radius:6,weight:2,color:"#fff",fillColor:"#00d800",fillOpacity:1,interactive:!1},trkEnd:{className:"end-marker",radius:6,weight:2,color:"#fff",fillColor:"#ff0606",fillOpacity:1,interactive:!1},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",yAttr:"z",yLabel:"m",zFollow:!1,zooming:!L.Browser.Mobile,margins:{top:30,right:30,bottom:30,left:40},height:.3*screen.height||200,width:.6*screen.width||600,xTicks:void 0,yTicks:void 0,decimalsX:2,decimalsY:0,forceAxisBounds:!1,interpolation:"curveLinear",yAxisMax:void 0,yAxisMin:void 0,srcFolder:(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document&&"undefined"==typeof location?jr.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?jr.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/"};L._&&L.i18n||(L._=L.i18n=(t,i)=>t);const S=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:j,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@7.8.4/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@5.6.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.10.1/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LHOTLINE:"../libs/leaflet-hotline.min.js",__LDISTANCEM:"../libs/leaflet-distance-marker.min.js",__LEDGESCALE:"../libs/leaflet-edgescale.min.js",__LCHART:"../src/components/chart.js",__LMARKER:"../src/components/marker.js",__LSUMMARY:"../src/components/summary.js",__modulesFolder:"../src/handlers/",__btnIcon:"../images/elevation.svg",addData(t,i){this.import(this.__D3).then((()=>{this._modulesLoaded?(i=i??(t.on&&t),this._addData(t),this._addLayer(i),this._fireEvt("eledata_added",{data:t,layer:i,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,i)))}))},addTo(t){if(this.options.detached){let i=w(this.options.elevationDiv),e=this.onAdd(t);i?g(i,e):v(t.getContainer(),e,"afterend")}else L.Control.prototype.addTo.call(this,t);return this},clear(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(this._layers),this._markers&&this._clearLayers(this._markers),this._circleMarkers&&this._circleMarkers.remove(),this._hotline&&this._hotline.eachLayer((t=>t.options.renderer.remove())),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart(){this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((({fn:t,ctx:i})=>this.off("elechart_updated",t,i))),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((t=>t.remove())),t.clearLayers())},disableBrush(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush(){this._chart._brushEnabled=!0},disableZoom(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom(){this._chart._zoomEnabled=!0},fitBounds(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds(t){return L.latLngBounds((t||this._data).map((t=>t.latlng)))},getZFollow(){return this.options.zFollow},hide(){f(this._container,"display","none")},initialize(i){i=L.setOptions(this,L.extend({},P(j),i)),this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._hotline=L.featureGroup(),this._circleMarkers=L.featureGroup(),this._markedSegments=L.polyline([]),this._start=L.circleMarker([0,0],i.trkStart||j.trkStart),this._end=L.circleMarker([0,0],i.trkEnd||j.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},i.followMarker&&(this._setMapView=A(this._setMapView,300,this)),i.legend&&(i.margins.bottom+=30),i.theme&&(i.polylineSegments.className+=" "+i.theme),!0===i.wptIcons&&(i.wptIcons=j.wptIcons),!0===i.distanceMarkers&&(i.distanceMarkers=j.distanceMarkers),i.trkStart&&this._start.addTo(this._circleMarkers),i.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(i.polylineSegments),L.extend(t,i.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import(t,i){switch(t){case this.__D3:i="object"!=typeof d3;break;case this.__TOGEOJSON:i="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:i="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:i="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:i="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:i="function"!=typeof L.Hotline}return!1!==i?__sc_import_geotrek_rando_widget(n(t,this.options.srcFolder)):Promise.resolve()},load(t){this._parseFromString(t).then((i=>i?this._loadLayer(i):this._loadFile(t)))},onAdd(t){this._map=t;let i=this._container=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+y()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((()=>{this._initChart(i),this._initButton(i),this._initSummary(i),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded")})),this.fire("add"),i},onRemove(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),k(t.getContainer(),"mousewheel",this._resetDrag,this),k(t.getContainer(),"touchstart",this._resetDrag,this),k(document,"keydown",this._onKeyDown,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this),this.fire("remove")},redraw(){this._resizeChart()},setZFollow(t){this.options.zFollow=t},show(){f(this._container,"display","block")},_addData(t){if(t){if("FeatureCollection"===t.type)return b(t.features,(t=>this._addData(t)));if("Feature"===t.type){let i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return b(i.coordinates,((i,e)=>this._addGeoJSONData(i,t.properties,e)));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData(t,i,e){let r=i&&i.coordinateProperties||i;t.forEach(((t,i)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[i>0?i-1:0][t]:this._data[i>0?i-1:0],this.fire("elepoint_init",{point:t,props:r,id:i,isMulti:e}),this._addPoint(t.lat??t[1],t.lng??t[0],t.alt??t.meta.ele??t[2]),this.fire("elepoint_added",{point:t,index:this._data.length-1}),this._yCoordMax<this._data[this._data.length-1][this.options.yAttr]&&(this._yCoordMax=this._data[this._data.length-1][this.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint(t,i,e){this.options.reverseCoords&&([t,i]=[i,t]),this._data.push({x:t,y:i,z:e,latlng:L.latLng(t,i,e)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:i})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,i){return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((()=>{t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(i),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(i),t.off("almost:move",this._onMouseMoveLayer,this).off("almost:out",this._onMouseOut,this)})))})):Promise.resolve()},_initDistanceMarkers(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale(t){return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((()=>{t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof this.options.edgeScale?this.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine(t){let i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((()=>{t.eachLayer((t=>{if("Point"!=t.feature.geometry.type){let e=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),r=L.hotline(e.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[i+"_min"])?this.track_info[i+"_min"]:0,max:isFinite(this.track_info[i+"_max"])?this.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),n=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:i})=>{t.setStyle({opacity:"add"==i?0:n}),r["add"==i?"addTo":"removeFrom"](t._map),r._renderer&&r._renderer._container.parentElement.insertBefore(r._renderer._container,r._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations(t){let i=this._map;i?(this._data.length&&(this._start.setLatLng(this._data[0].latlng),this._end.setLatLng(this._data[this._data.length-1].latlng)),Promise.all([this._initHotLine(t),this._initAlmostOverHandler(i,t),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(i)),this._circleMarkers.addTo(i)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(()=>this._initMapIntegrations(t)))},_collapse(){u(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand(){u(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths(){let i=L.Canvas.prototype._fillStroke,e=this,r=this.options.theme.split(" ")[0].replace("-theme",""),n=t[r]||{};L.Canvas.include({_fillStroke(t,s){if(e._layers.hasLayer(s)){let e=s.options;if(e.color=n.line||n.area||r,e.stroke=!!e.color,i.call(this,t,s),e.stroke&&0!==e.weight){let i=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=n.outline||"#FFF",t.lineWidth=1.75*e.weight,t.stroke(),t.globalCompositeOperation=i}}else i.call(this,t,s)}})},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:i})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,i),this._chart._showDiagramIndicator(t,i)),this._updateMarker(t)}))))},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,i,e){this.fire&&this.fire(t,i,e),this._map&&this._map.fire(t,i,e)},_hideMarker(){this.options.autohideMarker&&this._marker.remove()},_initChart(t){let i=this.options,e=this._map;if(i.detached){let{offsetWidth:t,offsetHeight:e}=this.eleDiv;t>0&&(i.width=t),e>20&&(i.height=e-20)}else{let{clientWidth:t}=e.getContainer();i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>t&&(i.width=t-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((r=>{let n=this._chart=new(r[1]||S).Chart(i,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._onMouseEnter,this).on("dragged",this._onDragEnd,this).on("mouse_move",this._onMouseMove,this).on("mouse_out",this._onMouseOut,this).on("ruler_filter",this._onRulerFilter,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._onToggleChart,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_init"),e.on("zoom viewreset zoomanim",this._hideMarker,this).on("resize",this._resetView,this).on("resize",this._resizeChart,this).on("rotate",this._rotateMarker,this).on("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.on("eledata_added eledata_loaded",this._updateChart,this).on("eledata_added eledata_loaded",this._updateSummary,this),this._updateChart(),this._updateSummary()}))},_initLayer(){this._layers.on("layeradd layerremove",(({layer:t,type:i})=>{let e=t.getElement&&t.getElement();h(e,this.options.polyline.className+" "+this.options.theme,"layeradd"==i),d(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==i),d(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==i)}))},_initMarker(t){let i=t.getPane("elevationPane");i||(i=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane")),i.style.zIndex=625,i.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),Promise.all([this.import(this.__D3),this.import(this.__LMARKER)]).then((t=>{this._marker=new(t[1]||S).Marker(this.options,this),this.fire("elechart_marker")}))},_initButton(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let i=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);x(i,"click",L.DomEvent.stop),x(i,"click",this._toggle,this),x(i,"focus",this._toggle,this),fetch(n(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>i.innerHTML=t))))}},_initSummary(t){this.import(this.__LSUMMARY).then((i=>{this._summary=new(i||S).Summary({summary:this.options.summary},this),this.on("elechart_init",(()=>{d3.select(t).call(this._summary.render())}))}))},_loadFile(t){fetch(t).then((t=>t.text())).then((i=>{this._downloadURL=t,this._parseFromString(i).then((t=>t&&this._loadLayer(t)))})).catch((t=>console.warn(t)))},_loadModules(t){let i=(t=t.map((t=>"string"==typeof t&&void 0!==S[t]?S[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(i).then((i=>{b(i,((i,e)=>{let r=i&&Object.keys(i)[0];r&&(t[e]=S[r]=S[r]??i[r])})),b(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)))}))},_loadLayer(t){let{polyline:i,theme:e,waypoints:r,wptIcons:n,wptLabels:s,distanceMarkers:o}=this.options,a=L.extend({},i);e&&(a.className+=" "+e),t.name&&(this.track_info.name=t.name);let l=L.geoJson(t,{distanceMarkers:o,style:a,pointToLayer:(t,i)=>{if(r){let{desc:e,name:o,sym:a}=t.properties;if(e=e||"",o=o||"",[!0,"dots"].includes(r)&&this._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?o:""}),[!0,"markers"].includes(r)&&0!=n)return this._registerMarker({latlng:i,sym:(a??o).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(o||e)&&decodeURI("<b>"+o+"</b>"+(e.length>0?"<br>"+e:""))})}},onEachFeature:(t,i)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,i)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(l);const i={data:t,layer:l,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",i):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",i)))})),l},_onDragEnd({dragstart:t,dragend:i}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown({key:t}){this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter(){this.fire("elechart_enter")},_onMouseMove({xCoord:t}){if(this._chartEnabled&&this._data.length){let i=this._findItemForX(t);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this._setMapView(i),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:t}),this.fire("elechart_hover",{data:i,xCoord:t}))}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let i=this._findItemForLatLng(t);if(i){let t=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:t})}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter({coords:t}){this._updateMapSegments(t)},_onToggleChart({name:t,enabled:i}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>h(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=i||"disabled"!=this.options[t]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString(t){try{return JSON.parse(t)}catch(t){}},_parseFromString(t){return new Promise((i=>this.import(this.__TOGEOJSON).then((()=>{let e;try{e=this._parseFromXMLString(t.trim())}catch(i){e=this._parseFromGeoJSONString(t.toString())}e&&(e.name=e.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(e)}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw"Invalid XML";let i=(new DOMParser).parseFromString(t,"text/xml"),e=i.documentElement.tagName.toLowerCase(),r=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";e in toGeoJSON||(e="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");let n=toGeoJSON[e](i);return n.name=r.length>0?(Array.from(r).find((t=>"trk"==t.parentElement.tagName))??r[0]).textContent:"",n},_registerAreaPath(t){this.on("elechart_init",(()=>this._chart._registerAreaPath(t)))},_registerAxisGrid(t){this.on("elechart_axis",(()=>this._chart._registerAxisGrid(t)))},_registerAxisScale(t){this.on("elechart_axis",(()=>this._chart._registerAxisScale(t)))},_registerCheckPoint(t){const i=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",i).once("eledata_clear",(()=>this.off("elechart_updated",i)))},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(i=>t.coordPropsToMeta.call(this,i)));let i,e,r,n=t.attr||t.name,s={};this.on("elepoint_added",(({index:o,point:a})=>{if(i=o,r=e??this._data[i],e=this._data[i],e[n]=t.pointToAttr.call(this,a,i),i>0&&isNaN(r[n])&&(isNaN(s[n])||isNaN(e[n])?isNaN(s[n])?isNaN(e[n])||(r[n]=e[n]):r[n]=s[n]:r[n]=(s[n]+e[n])/2,t.meta&&(r[t.meta]=r[n])),!isNaN(e[n])){if(s[n]=e[n],t.deltaMax&&(e[n]=E(e[n],r[n],t.deltaMax)),t.clampRange&&(e[n]=C(e[n],t.clampRange)),isNaN(t.decimals)||(e[n]=z(e[n],t.decimals)),t.stats)for(const i in t.stats){let r=(t.statsName||n)+(""!=i?"_":"");this.track_info[r+i]=t.stats[i].call(this,e[n],this.track_info[r+i],this._data.length)}t.onPointAdded&&t.onPointAdded.call(this,e[n],i,a)}}))},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:i,attr:e,required:r,deltaMax:n,clampRange:s,decimals:a,meta:l,unit:c,coordinateProperties:h,coordPropsToMeta:u,pointToAttr:f,onPointAdded:p,stats:d,statsName:m,grid:g,scale:v,path:w,tooltip:y,summary:x}=t;(this.options[i]||r)&&(this._registerDataAttribute({name:i,attr:e,meta:l,deltaMax:n,clampRange:s,decimals:a,coordPropsToMeta:o(h,l||i,u),pointToAttr:f,onPointAdded:p,stats:d,statsName:m}),g&&this._registerAxisGrid(L.extend({name:i},g)),"summary"!==this.options[i]&&(v&&this._registerAxisScale(L.extend({name:i,label:c},v)),w&&this._registerAreaPath(L.extend({name:i},w))),(y||t.tooltips)&&b([y,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:i},t)))),x&&(b(x,((t,i)=>x[i]=L.extend({unit:c},t))),this._registerSummary(x)))},_registerMarker({latlng:t,sym:i,content:e}){let{wptIcons:r}=this.options;r.hasOwnProperty(i)||(r[i]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));let n=L.marker(t,{icon:r[i]});return e&&(n.bindPopup(e,{className:"elevation-popup",keepInView:!0}).openPopup(),n.bindTooltip(e,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(n)},_registerTooltip(t){t.chart&&this.on("elechart_init",(()=>this._chart._registerTooltip(L.extend({},t,{value:t.chart})))),t.marker&&this.on("elechart_marker",(()=>this._marker._registerTooltip(L.extend({},t,{value:t.marker}))))},_registerSummary(t){this.on("elechart_summary",(()=>this._summary._registerSummary(t)))},_resetDrag(){this._chart._resetDrag(),this._hideMarker()},_resetView(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart(){if(this._container&&"none"!=f(this._container,"display")){let t=this.options,i=t.detached?(this.eleDiv||this._container).offsetWidth:C(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);i&&(t.width=i,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle(){M(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView(t){if(this._map&&this.options.followMarker){let i=this._map.getZoom(),e=this.options.zFollow;"number"==typeof e?this._map.setView(t.latlng,i<e?e:i,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,i,{animate:!0,duration:.25})}},_updateChart(){this._chart&&this._container&&(this.fire("elechart_axis"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker(){this._marker&&this._marker.update()},_updateMapSegments(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary(){this._summary&&(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>",w(".download a",this._summary._container).onclick=t=>{t.preventDefault();let i={downloadLink:this.options.downloadLink,confirm:s.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||i.confirm(),this.fire("eletrack_download",i)}))},_width(){if(this._chart)return this._chart._width();const{width:t,margins:i}=this.options;return t-i.left-i.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:i}=this.options;return t-i.top-i.bottom}});S.Utils=O,L.control.elevation=t=>new S(t)}));U((function(t,i){!function(t,e){e(i)}(H,(function(t){var i=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 i=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,i?this._withAnimation:this._noAnimation),this._markerCluster=i?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 i=t,e=this._zoom;if(t.__parent)for(;i.__parent._zoom>=e;)i=i.__parent;return this._currentShownBounds.contains(i.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,i):this._animationAddLayerNonAnimated(t,i)),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,i){if(!L.Util.isArray(t))return this.addLayer(t);var e,r=this._featureGroup,n=this._nonPointGroup,s=this.options.chunkedLoading,o=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,c=0,h=!0;if(this._map){var u=(new Date).getTime(),f=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(s&&c%200==0){var d=(new Date).getTime()-p;if(o<d)break}if((e=t[c])instanceof L.LayerGroup)h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(e,t),l=t.length;else if(e.getLatLng){if(!this.hasLayer(e)&&(this._addLayer(e,this._maxZoom),i||this.fire("layeradd",{layer:e}),e.__parent&&2===e.__parent.getChildCount())){var m=e.__parent.getAllChildMarkers(),g=m[0]===e?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(e),i||this.fire("layeradd",{layer:e})}a&&a(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(f,this.options.chunkDelay)}),this);f()}else for(var p=this._needsClustering;c<l;c++)(e=t[c])instanceof L.LayerGroup?(h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(e,t),l=t.length):e.getLatLng?this.hasLayer(e)||p.push(e):n.addLayer(e);return this},removeLayers:function(t){var i,e,r=t.length,n=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):(this._arraySplice(this._needsClustering,e),s.removeLayer(e),this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),l=r;for(i=0;i<l;i++)(e=a[i])instanceof L.LayerGroup?(this._extractNonGroupLayers(e,a),l=a.length):this._unspiderfyLayer(e)}for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):e.__parent?(this._removeLayer(e,!0,!0),this.fire("layerremove",{layer:e}),n.hasLayer(e)&&(n.removeLayer(e),e.clusterShow&&e.clusterShow())):(s.removeLayer(e),this.fire("layerremove",{layer:e}));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 i=this._needsClustering.length-1;0<=i;i--)t.extend(this._needsClustering[i].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,i){var e,r,n,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(e=!0,n=o.length-1;0<=n;n--)if(o[n].layer===s[r]){e=!1;break}e&&t.call(i,s[r])}this._nonPointGroup.eachLayer(t,i)},getLayers:function(){var t=[];return this.eachLayer((function(i){t.push(i)})),t},getLayer:function(t){var i=null;return t=parseInt(t,10),this.eachLayer((function(e){L.stamp(e)===t&&(i=e)})),i},hasLayer:function(t){if(!t)return!1;var i,e=this._needsClustering;for(i=e.length-1;0<=i;i--)if(e[i]===t)return!0;for(i=(e=this._needsRemoving).length-1;0<=i;i--)if(e[i].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,i){var e=this._map;"function"!=typeof i&&(i=function(){});var r=function(){!e.hasLayer(t)&&!e.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),e.hasLayer(t)?i():t.__parent._icon&&(this.once("spiderfied",i,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?i():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 i,e,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,i=0,e=this._needsRemoving.length;i<e;i++)(r=this._needsRemoving[i]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(i=0,e=this._needsRemoving.length;i<e;i++)r=this._needsRemoving[i],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(),e=this._needsClustering,this._needsClustering=[],this.addLayers(e,!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 i=t;i&&!i._icon;)i=i.__parent;return i||null},_arraySplice:function(t,i){for(var e=t.length-1;0<=e;e--)if(t[e]===i)return t.splice(e,1),!0},_removeFromGridUnclustered:function(t,i){for(var e=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=i&&r[i].removeObject(t,e.project(t.getLatLng(),i));i--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var i=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),i&&t.target.openPopup()}},_moveChild:function(t,i,e){t._latlng=i,this.removeLayer(t),t._latlng=e,this.addLayer(t)},_childMarkerDragEnd:function(t){var i=t.target.__dragStart;delete t.target.__dragStart,i&&this._moveChild(t.target,i,t.target._latlng)},_removeLayer:function(t,i,e){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());i&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,h=c._markers;for(this._arraySplice(h,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)i&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,o.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,o.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(s.removeLayer(c),e||s.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,i){for(;i;){if(t===i)return!0;i=i.parentNode}return!1},fire:function(t,i,e){if(i&&i.layer instanceof L.MarkerCluster){if(i.originalEvent&&this._isOrIsParent(i.layer._icon,i.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,i,e)},listens:function(t,i){return L.FeatureGroup.prototype.listens.call(this,t,i)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,i)},_defaultIconCreateFunction:function(t){var i=t.getChildCount(),e=" marker-cluster-";return e+=i<10?"small":i<100?"medium":"large",new L.DivIcon({html:"<div><span>"+i+"</span></div>",className:"marker-cluster"+e,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,i=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(i||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var i=t.layer,e=i;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===e._childClusters.length;)e=e._childClusters[0];e._zoom===this._maxZoom&&e._childCount===i._childCount&&this.options.spiderfyOnMaxZoom?i.spiderfy():this.options.zoomToBoundsOnClick&&i.zoomToBounds(),this.options.spiderfyOnEveryZoom&&i.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var i=this._map;this._inZoomAnimation||(this._shownPolygon&&i.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),i.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,e=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||e||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.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()),i=Math.floor(this._map.getMinZoom()),e=this.options.maxClusterRadius,r=e;"function"!=typeof e&&(r=function(){return e}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;i<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,i-1)},_addLayer:function(t,i){var e,r,n=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);o<=i;i--){e=this._map.project(t.getLatLng(),i);var a=n[i].getNearObject(e);if(a)return a._addChild(t),void(t.__parent=a);if(a=s[i].getNearObject(e)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,i,a,t);n[i].addObject(c,this._map.project(c._cLatLng,i)),a.__parent=c;var h=t.__parent=c;for(r=i-1;r>l._zoom;r--)h=new this._markerCluster(this,r,h),n[r].addObject(h,this._map.project(a.getLatLng(),r));return l._addChild(h),void this._removeFromGridUnclustered(a,i)}s[i].addObject(t,e)}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 i=this._maxLat;return void 0!==i&&(t.getNorth()>=i&&(t._northEast.lat=1/0),t.getSouth()<=-i&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,i){if(i===t)this._featureGroup.addLayer(t);else if(2===i._childCount){i._addToMap();var e=i.getAllChildMarkers();this._featureGroup.removeLayer(e[0]),this._featureGroup.removeLayer(e[1])}else i._updateIcon()},_extractNonGroupLayers:function(t,i){var e,r=t.getLayers(),n=0;for(i=i||[];n<r.length;n++)(e=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(e,i):i.push(e);return i},_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,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,i){this._animationAddLayerNonAnimated(t,i)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,i){var e,r=this._getExpandedVisibleBounds(),n=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,s,(function(s){var o,a=s._latlng,l=s._markers;for(r.contains(a)||(a=null),s._isSingleParent()&&t+1===i?(n.removeLayer(s),s._recursivelyAddChildrenToMap(null,i,r)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,i,r)),e=l.length-1;0<=e;e--)o=l[e],r.contains(o._latlng)||n.removeLayer(o)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,i),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,i,(function(t){t._recursivelyRestoreChildPositions(i)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,s,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,i){this._animationZoomOutSingle(this._topClusterLevel,t-1,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,i){var e=this,r=this._featureGroup;r.addLayer(t),i!==t&&(2<i._childCount?(i._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(i.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),e._animationEnd()}))):(this._forceLayout(),e._animationStart(),e._animationZoomOutSingle(i,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,i,e){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,i+1,e);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(r,e),this._enqueue((function(){if(1===t._childCount){var o=t._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else t._recursively(r,e,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,i+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var e=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,i,e,r){L.Marker.prototype.initialize.call(this,e?e._cLatLng||e.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=i,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,e&&this._addChild(e),r&&this._addChild(r)},getAllChildMarkers:function(t,i){t=t||[];for(var e=this._childClusters.length-1;0<=e;e--)this._childClusters[e].getAllChildMarkers(t,i);for(var r=this._markers.length-1;0<=r;r--)i&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var i,e=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,o=r.getZoom();0<e.length&&s<n;){s++;var a=[];for(i=0;i<e.length;i++)a=a.concat(e[i]._childClusters);e=a}s<n?this._group._map.setView(this._latlng,s):n<=o?this._group._map.setView(this._latlng,o+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,i){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(i||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(i||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,i,e,r,n=this._markers,s=this._childClusters,o=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<n.length;t++)e=n[t]._latlng,this._bounds.extend(e),o+=e.lat,a+=e.lng;for(t=0;t<s.length;t++)(i=s[t])._boundsNeedUpdate&&i._recalculateBounds(),this._bounds.extend(i._bounds),e=i._wLatLng,r=i._childCount,o+=e.lat*r,a+=e.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/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,i,e){this._recursively(t,this._group._map.getMinZoom(),e-1,(function(t){var e,r,n=t._markers;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}),(function(t){var e,r,n=t._childClusters;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,i,e,r){this._recursively(t,r,i,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),e),n._isSingleParent()&&e-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,i,e)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,i){this._recursively(t,this._group._map.getMinZoom(),i,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,i,e){this._recursively(e,this._group._map.getMinZoom()-1,i,(function(r){if(i!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var s=r._markers[n];e.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),r._group._featureGroup.addLayer(s))}}),(function(i){i._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var i=this._markers.length-1;0<=i;i--){var e=this._markers[i];e._backupLatlng&&(e.setLatLng(e._backupLatlng),delete e._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,i,e,r){var n,s;this._recursively(t,i-1,e-1,(function(t){for(s=t._markers.length-1;0<=s;s--)n=t._markers[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)n=t._childClusters[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,i,e,r,n){var s,o,a=this._childClusters,l=this._zoom;if(i<=l&&(r&&r(this),n&&l===e&&n(this)),l<i||l<e)for(s=a.length-1;0<=s;s--)(o=a[s])._boundsNeedUpdate&&o._recalculateBounds(),t.intersects(o._bounds)&&o._recursively(t,i,e,r,n)},_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,i){var e=this._getCoord(i.x),r=this._getCoord(i.y),n=this._grid,s=n[r]=n[r]||{},o=s[e]=s[e]||[],a=L.Util.stamp(t);this._objectPoint[a]=i,o.push(t)},updateObject:function(t,i){this.removeObject(t),this.addObject(t,i)},removeObject:function(t,i){var e,r,n=this._getCoord(i.x),s=this._getCoord(i.y),o=this._grid,a=o[s]=o[s]||{},l=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],e=0,r=l.length;e<r;e++)if(l[e]===t)return l.splice(e,1),1===r&&delete a[n],!0},eachObject:function(t,i){var e,r,n,s,o,a,l=this._grid;for(e in l)for(r in o=l[e])for(n=0,s=(a=o[r]).length;n<s;n++)t.call(i,a[n])&&(n--,s--)},getNearObject:function(t){var i,e,r,n,s,o,a,l,c=this._getCoord(t.x),h=this._getCoord(t.y),u=this._objectPoint,f=this._sqCellSize,p=null;for(i=h-1;i<=h+1;i++)if(n=this._grid[i])for(e=c-1;e<=c+1;e++)if(s=n[e])for(r=0,o=s.length;r<o;r++)a=s[r],((l=this._sqDist(u[L.Util.stamp(a)],t))<f||l<=f&&null===p)&&(f=l,p=a);return p},_getCoord:function(t){var i=Math.floor(t/this._cellSize);return isFinite(i)?i:t},_sqDist:function(t,i){var e=i.x-t.x,r=i.y-t.y;return e*e+r*r}},L.QuickHull={getDistant:function(t,i){var e=i[1].lat-i[0].lat;return(i[0].lng-i[1].lng)*(t.lat-i[0].lat)+e*(t.lng-i[0].lng)},findMostDistantPointFromBaseLine:function(t,i){var e,r,n,s=0,o=null,a=[];for(e=i.length-1;0<=e;e--)r=i[e],0<(n=this.getDistant(r,t))&&(a.push(r),s<n&&(s=n,o=r));return{maxPoint:o,newPoints:a}},buildConvexHull:function(t,i){var e=[],r=this.findMostDistantPointFromBaseLine(t,i);return r.maxPoint?e=(e=e.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var i,e=!1,r=!1,n=!1,s=!1,o=null,a=null,l=null,c=null,h=null,u=null;for(i=t.length-1;0<=i;i--){var f=t[i];(!1===e||f.lat>e)&&(e=(o=f).lat),(!1===r||f.lat<r)&&(r=(a=f).lat),(!1===n||f.lng>n)&&(n=(l=f).lng),(!1===s||f.lng<s)&&(s=(c=f).lng)}return h=r!==e?(u=a,o):(u=c,l),[].concat(this.buildConvexHull([u,h],t),this.buildConvexHull([h,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,i,e=this.getAllChildMarkers(),r=[];for(i=e.length-1;0<=i;i--)t=e[i].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,i=this.getAllChildMarkers(null,!0),e=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(i.length,e):i.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(i.length,e):(e.y+=10,this._generatePointsCircle(i.length,e)),this._animationSpiderfy(i,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,i){var e,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,o=[];for(n=Math.max(n,35),o.length=t,e=0;e<t;e++)r=this._circleStartAngle+e*s,o[e]=new L.Point(i.x+n*Math.cos(r),i.y+n*Math.sin(r))._round();return o},_generatePointsSpiral:function(t,i){var e,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(e=l.length=t;0<=e;e--)e<t&&(l[e]=new L.Point(i.x+n*Math.cos(a),i.y+n*Math.sin(a))._round()),n+=o/(a+=s/n+5e-4*e);return l},_noanimationUnspiderfy:function(){var t,i,e=this._group,r=e._map,n=e._featureGroup,s=this.getAllChildMarkers(null,!0);for(e._ignoreMove=!0,this.setOpacity(1),i=s.length-1;0<=i;i--)t=s[i],n.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);e.fire("unspiderfied",{cluster:this,markers:s}),e._ignoreMove=!1,e._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,i){var e,r,n,s,o=this._group,a=o._map,l=o._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,e=0;e<t.length;e++)s=a.layerPointToLatLng(i[e]),r=t[e],n=new L.Polyline([this._latlng,s],c),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,i){var e,r,n,s,o,a,l=this,c=this._group,h=c._map,u=c._featureGroup,f=this._latlng,p=h.latLngToLayerPoint(f),d=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),d?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,e=0;e<t.length;e++)r=t[e],a=h.layerPointToLatLng(i[e]),n=new L.Polyline([f,a],m),h.addLayer(n),r._spiderLeg=n,d&&(o=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(p);for(c._forceLayout(),c._animationStart(),e=t.length-1;0<=e;e--)a=h.layerPointToLatLng(i[e]),(r=t[e])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),d&&((s=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var i,e,r,n,s,o,a=this,l=this._group,c=l._map,h=l._featureGroup,u=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),f=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),e=f.length-1;0<=e;e--)(i=f[e])._preSpiderfyLatlng&&(i.closePopup(),i.setLatLng(i._preSpiderfyLatlng),delete i._preSpiderfyLatlng,o=!0,i._setPos&&(i._setPos(u),o=!1),i.clusterHide&&(i.clusterHide(),o=!1),o&&h.removeLayer(i),p&&(s=(n=(r=i._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(e=f.length-1;0<=e;e--)(i=f[e])._spiderLeg&&t++;for(e=f.length-1;0<=e;e--)(i=f[e])._spiderLeg&&(i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),1<t&&h.removeLayer(i),c.removeLayer(i._spiderLeg),delete i._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:f})}),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 i,e;for(i in t)for(e=t[i].__parent;e;)e._iconNeedsUpdate=!0,e=e.__parent},_refreshSingleMarkerModeMarkers:function(t){var i,e;for(i in t)e=t[i],this.hasLayer(e)&&e.setIcon(this._overrideMarkerIcon(e))}}),L.Marker.include({refreshIconOptions:function(t,i){var e=this.options.icon;return L.setOptions(e,t),this.setIcon(e),i&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=i,t.MarkerCluster=e,Object.defineProperty(t,"__esModule",{value:!0})}))}));function Sr(t){return fetch(`${w.api}trek/${t}/?language=${w.language}&published=true&fields=geometry`,{cache:"default"}).then((t=>t.json()))}const Tr='@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-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, "")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:"✖";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:"";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-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-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:" — "}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 250px - var(--map-bottom-space-height))}#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}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);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}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-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-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,.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-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-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-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{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:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.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,.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,.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-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,.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-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-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-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{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,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-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-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-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{background-color:var(--color-surface-variant)}.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-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-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-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{width:64px;height:64px}.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-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-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-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{width:48px !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{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{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,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 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:none;background-color:var(--color-background);color:var(--color-on-surface);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.1000000015px;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;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-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,.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,.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-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{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-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:48px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size: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:64px !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:144px;margin:0}';const Ir=class{constructor(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.touristicContentCardPress=o(this,"touristicContentCardPress",7);this.touristicEventCardPress=o(this,"touristicEventCardPress",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.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.center="1, 1";this.zoom=10;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.resetStoreOnDisconnected=true;this.isLargeView=false}onCenterOnMap(t){this.map.setView(new W.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})}stepsIsInViewport(t){if(this.currentStepsLayer){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}}descriptionIsInViewport(t){if(this.currentReferencePointsLayer){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}}parkingIsInViewport(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}}onInformationDesksIsInViewport(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}}touristicContentsIsInViewport(t){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}}touristicEventsIsInViewport(t){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticEventsLayer)}}onCardTrekMouseOver(t){if(!w.parentTrek&&(!w.selectedTrekId||w.selectedTrekId!==t.detail)){w.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(w.parentTrek){this.stepPopupIsOpen=false;w.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}}onCardTrekMouseLeave(){if(!this.trekPopupIsOpen&&w.selectedTrekId){this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.currentStepsLayer){w.selectedStepId=null;this.removeSelectedCurrentStep()}}onTouristicContentMouseOver(t){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)}onTouristicContentMouseLeave(){w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}onTouristicEventMouseOver(t){this.touristicEventPopupIsOpen=false;w.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)}onTouristicEventMouseLeave(){w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}componentDidLoad(){this.map=W.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});W.control.scale({metric:true,imperial:false}).addTo(this.map);W.control.locate({showPopup:false}).addTo(this.map);const t=this.nameLayer?this.nameLayer.split(","):[];const i=this.urlLayer.split(",http").map(((t,i)=>i===0?t:"http"+t));const e=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach(((i,r)=>{this.tileLayer.push({key:`${t[r]}`,value:W.tileLayer(i,{maxZoom:this.maxZoom,attribution:`${e[r]&&e[r]!==""?e[r].concat(" | "):""}Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>`,crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=W.control.layers(this.tileLayer.reduce(((t,i)=>Object.assign(t,{[i.key]:i.value})),{}),{},{collapsed:true}).addTo(this.map);W.Control.Contract=W.Control.extend({onAdd:()=>{const t=W.DomUtil.create("div");t.className="leaflet-bar leaflet-control";const i=t.appendChild(W.DomUtil.create("a"));i.href="#";i.style.backgroundImage=`var(--contract-image-src)`;t.onclick=t=>{this.bounds&&this.map.fitBounds(this.bounds);t.preventDefault()};return t}});W.control.contract=t=>new W.Control.Contract(t);W.control.contract({position:"topleft"}).addTo(this.map)}if(w.currentTrek){this.addTrek()}else if(w.currentTreks){this.addTreks()}else if(w.currentTouristicContent){this.addTouristicContent()}else if(w.currentTouristicEvent){this.addTouristicEvent()}else if(w.touristicContents){this.addTouristicContents()}else if(w.touristicEvents){this.addTouristicEvents()}b("currentTreks",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTrek){this.removeTreks();this.addTrek()}else if(w.currentTreks){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks(true)}}));b("currentTrek",(()=>{if(w.currentTrek){this.removeTreks();this.addTrek()}else if(w.currentTreks){this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks()}}));b("currentTouristicContent",(()=>{if(w.currentTouristicContent){this.removeTrek();this.removeTouristicContents();this.addTouristicContent()}else if(w.touristicContents){this.removeTouristicContent();this.addTouristicContents()}else if(w.currentTrek){this.removeTouristicContent();this.addTrek()}else if(w.currentTreks){this.removeTouristicContent();this.addTreks()}}));b("currentTouristicEvent",(()=>{if(w.currentTouristicEvent){this.removeTrek();this.removeTouristicEvents();this.addTouristicEvent()}else if(w.currentTrek){this.removeTouristicEvent();this.addTrek()}else if(w.currentTreks){this.removeTouristicEvent();this.addTreks()}}));b("currentTouristicContents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTouristicContent){this.removeTouristicContents();this.addTouristicContent()}else if(w.currentTouristicContents){this.removeTreks();this.removeTouristicEvents();this.removeTouristicContent();this.addTouristicContents(true)}}));b("currentTouristicEvents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTouristicEvent){this.removeTouristicEvents();this.addTouristicEvent()}else if(w.currentTouristicEvents){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvent();this.addTouristicEvents(true)}}));b("mode",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.mode==="treks"){if(w.treks){this.removeTouristicContents();this.removeTouristicEvents();this.addTreks(true)}}else if(w.mode==="touristicContents"){if(w.touristicContents){this.removeTreks();this.removeTouristicEvents();this.addTouristicContents(true)}}else if(w.mode==="touristicEvents"){if(w.touristicEvents){this.removeTreks();this.removeTouristicContents();this.addTouristicEvents(true)}}}))}handleLayerVisibility(t,i){if(t&&!this.map.hasLayer(i)){i.addTo(this.map)}else if(this.map.hasLayer(i)&&!this.userLayersState[i._leaflet_id]){this.map.removeLayer(i)}this.handleLayersControlEvent()}addTreks(t=false){var i;w.treksWithinBounds=w.currentTreks;const e=[];const r={type:"FeatureCollection",features:[]};if(w.currentTreks){for(const t of w.currentTreks){e.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(i=w.practices.find((i=>i.id===t.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.treksLayer){if(e.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.treksLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.hideTrekLine();this.showTrekLine(t.properties.id);this.addSelectedCurrentTrek(t.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,48]})});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(e.length>0){this.bounds=W.latLngBounds(e.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.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)}removeTreks(){if(this.treksLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(w.currentTreks&&!w.currentMapBounds||w.currentTreks&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.treksWithinBounds=w.currentTreks.filter((t=>this.map.getBounds().contains(W.latLng(t.departure_geom[1],t.departure_geom[0]))))}}handleTouristicContentsWithinBounds(){if(w.currentTouristicContents&&!w.currentMapBounds||w.currentTouristicContents&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.touristicContentsWithinBounds=w.currentTouristicContents.filter((t=>this.map.getBounds().contains(W.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleTouristicEventsWithinBounds(){if(w.currentTouristicEvents&&!w.currentMapBounds||w.currentTouristicEvents&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.touristicEventsWithinBounds=w.currentTouristicEvents.filter((t=>this.map.getBounds().contains(W.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}addTrek(){var t,i,e,r;this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();const n={type:"Feature",geometry:w.currentTrek.geometry,properties:{}};this.currentTrekLayer=W.geoJSON(n,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);if(w.currentTrek.parking_location){const t={type:"Feature",properties:{},geometry:{type:"Point",coordinates:w.currentTrek.parking_location}};this.currentParkingLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false,interactive:false})})}if(w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.currentSensitiveAreas){t.features.push({type:"Feature",properties:{name:i.name},geometry:i.geometry})}this.currentSensitiveAreasLayer=W.geoJSON(t,{onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="sensitive-area-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="sensitive-area-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}if(w.currentPois&&w.currentPois.length>0){const i={type:"FeatureCollection",features:[]};for(const e of w.currentPois){i.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=w.poiTypes.find((t=>t.id===e.type)))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})}this.currentPoisLayer=W.geoJSON(i,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`<img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"poi-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="poi-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="poi-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.trekTouristicContents&&w.trekTouristicContents.length>0){const t={type:"FeatureCollection",features:[]};for(const e of w.trekTouristicContents){t.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(i=w.touristicContentCategories.find((t=>t.id===e.category)))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})}this.currentToutisticContentsLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.category_pictogram?`<img crossorigin="anonymous "src=${t.properties.category_pictogram} />`:`<img />`,className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.touristicEvents&&w.touristicEvents.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.touristicEvents){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(e=w.touristicEventTypes.find((t=>t.id===i.type)))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})}this.currentToutisticEventsLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`\n <img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentInformationDesks&&w.currentInformationDesks.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.currentInformationDesks.filter((t=>w.currentTrek.information_desks.includes(t.id)))){if(i.latitude&&i.longitude){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}this.currentInformationDesksLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`<img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="information-desks-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="information-desks-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:w.currentTrek.points_reference});let i=0;this.currentReferencePointsLayer=W.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return W.marker(e,{icon:W.divIcon({html:i,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&w.parentTrekId&&w.parentTrek&&w.currentTrek.id===w.parentTrekId){const t={type:"FeatureCollection",features:[]};if(w.currentTrekSteps){for(const i of w.currentTrekSteps){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:i.departure_geom},properties:{id:i.id,name:i.name,practice:(r=w.practices.find((t=>t.id===i.practice)))===null||r===void 0?void 0:r.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})}}let i=0;this.currentStepsLayer=W.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return W.marker(e,{zIndexOffset:4e6,icon:W.divIcon({html:`<div class="step-marker-container"><div class="step-number">${i}</div></div>`,className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedCurrentStep(t.properties.id,i.latlng)}))}})}const s={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:`#elevation`,theme:`custom-theme${!this.useGradient?" use-theme-color":""}`,detached:true,height:250,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:false,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=W.control.elevation(Object.assign({},s)).addTo(this.map);const o=JSON.stringify({name:`${w.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:w.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(o);const a={};if(this.currentStepsLayer){a[l[w.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){a[l[w.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){a[l[w.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){a[l[w.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){a[l[w.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){a[l[w.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){a[l[w.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){a[l[w.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(a).forEach((t=>{this.layersControl.addOverlay(a[t],t)}))}else{this.layersControl=W.control.layers({},a,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=W.latLngBounds(w.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}addSelectedCurrentTrek(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.currentTreks){const n=w.currentTreks.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(e=w.practices.find((t=>t.id===n.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();w.selectedTrekId=t;this.selectedCurrentTrekLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"selected-trek-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.trekPopupIsOpen){w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}));i.on("popupopen",(()=>{this.trekPopupIsOpen=Boolean(w.selectedTrekId)}));i.on("popupclose",(()=>{if(w.selectedTrekId){this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}))}}).addTo(this.map)}removeSelectedCurrentTrek(){w.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null}addSelectedCurrentStep(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.currentTrekSteps){const n=w.currentTrekSteps.findIndex((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:w.currentTrekSteps[n].departure_geom},properties:{id:w.currentTrekSteps[n].id,name:w.currentTrekSteps[n].name,practice:(e=w.practices.find((t=>t.id===w.currentTrekSteps[n].practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:w.currentTrekSteps[n].attachments&&w.currentTrekSteps[n].attachments.length>0&&w.currentTrekSteps[n].attachments[0].thumbnail,index:n+1}})}this.removeSelectedCurrentStep();w.selectedStepId=t;this.selectedCurrentStepLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:`<div class="step-marker-container"><div class="step-number">${t.properties.index}</div></div>`,className:"selected-step-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.stepPopupIsOpen){w.selectedTrekId=null;this.removeSelectedCurrentStep()}}));i.on("popupopen",(()=>{this.stepPopupIsOpen=Boolean(w.selectedStepId)}));i.on("popupclose",(()=>{if(w.selectedStepId){this.stepPopupIsOpen=false;w.selectedStepId=null;this.removeSelectedCurrentStep()}}))}}).addTo(this.map)}removeSelectedCurrentStep(){if(w.selectedStepId){w.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}}handleLayersControlEvent(){const t=this.layersControl._layerControlInputs;t.forEach((t=>{if(this.layersControl._layers.find((i=>i.layer._leaflet_id===t.layerId)).overlay){t.onchange=i=>{this.userLayersState[t.layerId]=i.target.checked}}}))}removeTrek(){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.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.currentToutisticEventsLayer){this.map.removeLayer(this.currentToutisticEventsLayer);this.currentToutisticEventsLayer=null}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}showTrekLine(t){Sr(t).then((t=>{const i={type:"Feature",geometry:t.geometry,properties:{}};this.currentTrekLayer=W.geoJSON(i,{style:()=>({color:this.colorTrekLine}),interactive:false}).addTo(this.map)}))}hideTrekLine(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}}addTouristicContent(){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.removeSelectedTouristicContent();const t={type:"FeatureCollection",features:[]};if(w.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:w.currentTouristicContent.geometry.coordinates},properties:{id:w.currentTouristicContent.id,name:w.currentTouristicContent.name,practice:w.touristicContentCategories.find((t=>t.id===w.currentTouristicContent.category)).pictogram}})}if(!this.currentToutisticContentLayer){this.currentToutisticContentLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img crossorigin="anonymous "src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([w.currentTouristicContent.geometry.coordinates[1],w.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicContent(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}}addTouristicContents(t=false){w.touristicContentsWithinBounds=w.currentTouristicContents;const i=[];const e={type:"FeatureCollection",features:[]};if(w.currentTouristicContents){for(const t of w.currentTouristicContents){i.push(t.geometry.coordinates);e.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:w.touristicContentCategories.find((i=>i.id===t.category)).pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticContentsLayer){if(i.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.toutisticContentsLayer=W.geoJSON(e,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicContent(t.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,64]})});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(i.length>0){this.bounds=W.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(e);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){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}}addTouristicEvent(){const t={type:"FeatureCollection",features:[]};if(w.currentTouristicEvent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:w.currentTouristicEvent.geometry.coordinates},properties:{id:w.currentTouristicEvent.id,name:w.currentTouristicEvent.name,type:w.touristicEventTypes.find((t=>t.id===w.currentTouristicEvent.type)).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([w.currentTouristicEvent.geometry.coordinates[1],w.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicEvent(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}}addSelectedTouristicContent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.touristicContents){const n=w.touristicContents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=w.touristicContentCategories.find((t=>t.id===n.category)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();w.selectedTouristicContentId=t;this.selectedTouristicContentLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.category?`<div class="touristic-content-marker-container"><img crossorigin="anonymous" src=${t.properties.category} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicContentPopupIsOpen){w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}));i.on("popupopen",(()=>{this.touristicContentPopupIsOpen=Boolean(w.selectedTouristicContentId)}));i.on("popupclose",(()=>{if(w.selectedTouristicContentId){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}))}}).addTo(this.map)}removeSelectedTouristicContent(){w.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null}addTouristicEvents(t=false){var i;w.touristicEventsWithinBounds=w.currentTouristicEvents;const e=[];const r={type:"FeatureCollection",features:[]};if(w.currentTouristicEvents){for(const t of w.currentTouristicEvents){e.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=w.touristicEventTypes.find((i=>i.id===t.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticEventsLayer){if(e.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.toutisticEventsLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicEvent(t.properties.id,i.latlng)}))}});this.touristicEventsMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-event-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,64]})});this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup)}else{if(e.length>0){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticEventsLayer.clearLayers();this.toutisticEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind)}removeTouristicEvents(){if(this.toutisticEventsLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.toutisticEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}}addSelectedTouristicEvent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.touristicEvents){const n=w.touristicEvents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=w.touristicEventTypes.find((t=>t.id===n.type)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();w.selectedTouristicEventId=t;this.selectedTouristicEventLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.category?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.category} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"selected-touristic-event-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicEventPopupIsOpen){w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}));i.on("popupopen",(()=>{this.touristicEventPopupIsOpen=Boolean(w.selectedTouristicEventId)}));i.on("popupclose",(()=>{if(w.selectedTouristicEventId){this.touristicEventPopupIsOpen=false;w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}))}}).addTo(this.map)}removeSelectedTouristicEvent(){w.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null}render(){const t=a(`${""}assets/layers.svg`);const i=a(`${""}assets/contract.svg`);return r(n,{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-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":`url(${t})`,"--contract-image-src":`url(${i})`,"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},r("div",{id:"map",style:{},class:w.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t}),w.currentTrek&&r("div",null,r("div",{id:"elevation",ref:t=>this.elevationRef=t}),r("div",{class:"map-bottom-space"})),!this.mapIsReady&&r("div",{class:"map-loader-container"},r("span",{class:"loader"})))}};Ir.style=Tr;function Br(t){return t!==null&&typeof t==="object"&&"constructor"in t&&t.constructor===Object}function Fr(t={},i={}){Object.keys(i).forEach((e=>{if(typeof t[e]==="undefined")t[e]=i[e];else if(Br(i[e])&&Br(t[e])&&Object.keys(i[e]).length>0){Fr(t[e],i[e])}}))}const Rr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Nr(){const t=typeof document!=="undefined"?document:{};Fr(t,Rr);return t}const Dr={document:Rr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function t(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){if(typeof setTimeout==="undefined"){t();return null}return setTimeout(t,0)},cancelAnimationFrame(t){if(typeof setTimeout==="undefined"){return}clearTimeout(t)}};function Yr(){const t=typeof window!=="undefined"?window:{};Fr(t,Dr);return t}function Gr(t){const i=t;Object.keys(i).forEach((t=>{try{i[t]=null}catch(e){}try{delete i[t]}catch(e){}}))}function $r(t,i=0){return setTimeout(t,i)}function Zr(){return Date.now()}function Hr(t){const i=Yr();let e;if(i.getComputedStyle){e=i.getComputedStyle(t,null)}if(!e&&t.currentStyle){e=t.currentStyle}if(!e){e=t.style}return e}function Ur(t,i="x"){const e=Yr();let r;let n;let s;const o=Hr(t);if(e.WebKitCSSMatrix){n=o.transform||o.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((t=>t.replace(",","."))).join(", ")}s=new e.WebKitCSSMatrix(n==="none"?"":n)}else{s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");r=s.toString().split(",")}if(i==="x"){if(e.WebKitCSSMatrix)n=s.m41;else if(r.length===16)n=parseFloat(r[12]);else n=parseFloat(r[4])}if(i==="y"){if(e.WebKitCSSMatrix)n=s.m42;else if(r.length===16)n=parseFloat(r[13]);else n=parseFloat(r[5])}return n||0}function Qr(t){return typeof t==="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Vr(t){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return t instanceof HTMLElement}return t&&(t.nodeType===1||t.nodeType===11)}function Wr(...t){const i=Object(t[0]);const e=["__proto__","constructor","prototype"];for(let r=1;r<t.length;r+=1){const n=t[r];if(n!==undefined&&n!==null&&!Vr(n)){const t=Object.keys(Object(n)).filter((t=>e.indexOf(t)<0));for(let e=0,r=t.length;e<r;e+=1){const r=t[e];const s=Object.getOwnPropertyDescriptor(n,r);if(s!==undefined&&s.enumerable){if(Qr(i[r])&&Qr(n[r])){if(n[r].__swiper__){i[r]=n[r]}else{Wr(i[r],n[r])}}else if(!Qr(i[r])&&Qr(n[r])){i[r]={};if(n[r].__swiper__){i[r]=n[r]}else{Wr(i[r],n[r])}}else{i[r]=n[r]}}}}}return i}function Kr(t,i,e){t.style.setProperty(i,e)}function qr({swiper:t,targetPosition:i,side:e}){const r=Yr();const n=-t.translate;let s=null;let o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none";r.cancelAnimationFrame(t.cssModeFrameID);const l=i>n?"next":"prev";const c=(t,i)=>l==="next"&&t>=i||l==="prev"&&t<=i;const h=()=>{o=(new Date).getTime();if(s===null){s=o}const l=Math.max(Math.min((o-s)/a,1),0);const u=.5-Math.cos(l*Math.PI)/2;let f=n+u*(i-n);if(c(f,i)){f=i}t.wrapperEl.scrollTo({[e]:f});if(c(f,i)){t.wrapperEl.style.overflow="hidden";t.wrapperEl.style.scrollSnapType="";setTimeout((()=>{t.wrapperEl.style.overflow="";t.wrapperEl.scrollTo({[e]:f})}));r.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=r.requestAnimationFrame(h)};h()}function Jr(t,i=""){return[...t.children].filter((t=>t.matches(i)))}function Xr(t,i=[]){const e=document.createElement(t);e.classList.add(...Array.isArray(i)?i:[i]);return e}function tn(t){const i=Yr();const e=Nr();const r=t.getBoundingClientRect();const n=e.body;const s=t.clientTop||n.clientTop||0;const o=t.clientLeft||n.clientLeft||0;const a=t===i?i.scrollY:t.scrollTop;const l=t===i?i.scrollX:t.scrollLeft;return{top:r.top+a-s,left:r.left+l-o}}function en(t,i){const e=[];while(t.previousElementSibling){const r=t.previousElementSibling;if(i){if(r.matches(i))e.push(r)}else e.push(r);t=r}return e}function rn(t,i){const e=[];while(t.nextElementSibling){const r=t.nextElementSibling;if(i){if(r.matches(i))e.push(r)}else e.push(r);t=r}return e}function nn(t,i){const e=Yr();return e.getComputedStyle(t,null).getPropertyValue(i)}function sn(t){let i=t;let e;if(i){e=0;while((i=i.previousSibling)!==null){if(i.nodeType===1)e+=1}return e}return undefined}function on(t,i){const e=[];let r=t.parentElement;while(r){if(i){if(r.matches(i))e.push(r)}else{e.push(r)}r=r.parentElement}return e}function an(t,i){function e(r){if(r.target!==t)return;i.call(t,r);t.removeEventListener("transitionend",e)}if(i){t.addEventListener("transitionend",e)}}function ln(t,i,e){const r=Yr();if(e){return t[i==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(i==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(i==="width"?"margin-left":"margin-bottom"))}return t.offsetWidth}let cn;function hn(){const t=Yr();const i=Nr();return{smoothScroll:i.documentElement&&i.documentElement.style&&"scrollBehavior"in i.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch)}}function un(){if(!cn){cn=hn()}return cn}let fn;function pn({userAgent:t}={}){const i=un();const e=Yr();const r=e.navigator.platform;const n=t||e.navigator.userAgent;const s={ios:false,android:false};const o=e.screen.width;const a=e.screen.height;const l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const h=n.match(/(iPod)(.*OS\s([\d_]+))?/);const u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const f=r==="Win32";let p=r==="MacIntel";const d=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!c&&p&&i.touch&&d.indexOf(`${o}x${a}`)>=0){c=n.match(/(Version)\/([\d.]+)/);if(!c)c=[0,1,"13_0_0"];p=false}if(l&&!f){s.os="android";s.android=true}if(c||u||h){s.os="ios";s.ios=true}return s}function dn(t={}){if(!fn){fn=pn(t)}return fn}let mn;function gn(){const t=Yr();let i=false;function e(){const i=t.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(e()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,r]=e.split("Version/")[1].split(" ")[0].split(".").map((t=>Number(t)));i=t<16||t===16&&r<2}}return{isSafari:i||e(),needPerspectiveFix:i,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function vn(){if(!mn){mn=gn()}return mn}function wn({swiper:t,on:i,emit:e}){const r=Yr();let n=null;let s=null;const o=()=>{if(!t||t.destroyed||!t.initialized)return;e("beforeResize");e("resize")};const a=()=>{if(!t||t.destroyed||!t.initialized)return;n=new ResizeObserver((i=>{s=r.requestAnimationFrame((()=>{const{width:e,height:r}=t;let n=e;let s=r;i.forEach((({contentBoxSize:i,contentRect:e,target:r})=>{if(r&&r!==t.el)return;n=e?e.width:(i[0]||i).inlineSize;s=e?e.height:(i[0]||i).blockSize}));if(n!==e||s!==r){o()}}))}));n.observe(t.el)};const l=()=>{if(s){r.cancelAnimationFrame(s)}if(n&&n.unobserve&&t.el){n.unobserve(t.el);n=null}};const c=()=>{if(!t||t.destroyed||!t.initialized)return;e("orientationchange")};i("init",(()=>{if(t.params.resizeObserver&&typeof r.ResizeObserver!=="undefined"){a();return}r.addEventListener("resize",o);r.addEventListener("orientationchange",c)}));i("destroy",(()=>{l();r.removeEventListener("resize",o);r.removeEventListener("orientationchange",c)}))}function bn({swiper:t,extendParams:i,on:e,emit:r}){const n=[];const s=Yr();const o=(i,e={})=>{const o=s.MutationObserver||s.WebkitMutationObserver;const a=new o((i=>{if(t.__preventObserver__)return;if(i.length===1){r("observerUpdate",i[0]);return}const e=function t(){r("observerUpdate",i[0])};if(s.requestAnimationFrame){s.requestAnimationFrame(e)}else{s.setTimeout(e,0)}}));a.observe(i,{attributes:typeof e.attributes==="undefined"?true:e.attributes,childList:typeof e.childList==="undefined"?true:e.childList,characterData:typeof e.characterData==="undefined"?true:e.characterData});n.push(a)};const a=()=>{if(!t.params.observer)return;if(t.params.observeParents){const i=on(t.el);for(let t=0;t<i.length;t+=1){o(i[t])}}o(t.el,{childList:t.params.observeSlideChildren});o(t.wrapperEl,{attributes:false})};const l=()=>{n.forEach((t=>{t.disconnect()}));n.splice(0,n.length)};i({observer:false,observeParents:false,observeSlideChildren:false});e("init",a);e("destroy",l)}const yn={on(t,i,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof i!=="function")return r;const n=e?"unshift":"push";t.split(" ").forEach((t=>{if(!r.eventsListeners[t])r.eventsListeners[t]=[];r.eventsListeners[t][n](i)}));return r},once(t,i,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof i!=="function")return r;function n(...e){r.off(t,n);if(n.__emitterProxy){delete n.__emitterProxy}i.apply(r,e)}n.__emitterProxy=i;return r.on(t,n,e)},onAny(t,i){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(typeof t!=="function")return e;const r=i?"unshift":"push";if(e.eventsAnyListeners.indexOf(t)<0){e.eventsAnyListeners[r](t)}return e},offAny(t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsAnyListeners)return i;const e=i.eventsAnyListeners.indexOf(t);if(e>=0){i.eventsAnyListeners.splice(e,1)}return i},off(t,i){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;t.split(" ").forEach((t=>{if(typeof i==="undefined"){e.eventsListeners[t]=[]}else if(e.eventsListeners[t]){e.eventsListeners[t].forEach(((r,n)=>{if(r===i||r.__emitterProxy&&r.__emitterProxy===i){e.eventsListeners[t].splice(n,1)}}))}}));return e},emit(...t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;let e;let r;let n;if(typeof t[0]==="string"||Array.isArray(t[0])){e=t[0];r=t.slice(1,t.length);n=i}else{e=t[0].events;r=t[0].data;n=t[0].context||i}r.unshift(n);const s=Array.isArray(e)?e:e.split(" ");s.forEach((t=>{if(i.eventsAnyListeners&&i.eventsAnyListeners.length){i.eventsAnyListeners.forEach((i=>{i.apply(n,[t,...r])}))}if(i.eventsListeners&&i.eventsListeners[t]){i.eventsListeners[t].forEach((t=>{t.apply(n,r)}))}}));return i}};function xn(){const t=this;let i;let e;const r=t.el;if(typeof t.params.width!=="undefined"&&t.params.width!==null){i=t.params.width}else{i=r.clientWidth}if(typeof t.params.height!=="undefined"&&t.params.height!==null){e=t.params.height}else{e=r.clientHeight}if(i===0&&t.isHorizontal()||e===0&&t.isVertical()){return}i=i-parseInt(nn(r,"padding-left")||0,10)-parseInt(nn(r,"padding-right")||0,10);e=e-parseInt(nn(r,"padding-top")||0,10)-parseInt(nn(r,"padding-bottom")||0,10);if(Number.isNaN(i))i=0;if(Number.isNaN(e))e=0;Object.assign(t,{width:i,height:e,size:t.isHorizontal()?i:e})}function kn(){const t=this;function i(i){if(t.isHorizontal()){return i}return{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[i]}function e(t,e){return parseFloat(t.getPropertyValue(i(e))||0)}const r=t.params;const{wrapperEl:n,slidesEl:s,size:o,rtlTranslate:a,wrongRTL:l}=t;const c=t.virtual&&r.virtual.enabled;const h=c?t.virtual.slides.length:t.slides.length;const u=Jr(s,`.${t.params.slideClass}, swiper-slide`);const f=c?t.virtual.slides.length:u.length;let p=[];const d=[];const m=[];let g=r.slidesOffsetBefore;if(typeof g==="function"){g=r.slidesOffsetBefore.call(t)}let v=r.slidesOffsetAfter;if(typeof v==="function"){v=r.slidesOffsetAfter.call(t)}const w=t.snapGrid.length;const b=t.slidesGrid.length;let y=r.spaceBetween;let x=-g;let k=0;let A=0;if(typeof o==="undefined"){return}if(typeof y==="string"&&y.indexOf("%")>=0){y=parseFloat(y.replace("%",""))/100*o}else if(typeof y==="string"){y=parseFloat(y)}t.virtualSize=-y;u.forEach((t=>{if(a){t.style.marginLeft=""}else{t.style.marginRight=""}t.style.marginBottom="";t.style.marginTop=""}));if(r.centeredSlides&&r.cssMode){Kr(n,"--swiper-centered-offset-before","");Kr(n,"--swiper-centered-offset-after","")}const _=r.grid&&r.grid.rows>1&&t.grid;if(_){t.grid.initSlides(f)}let M;const z=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter((t=>typeof r.breakpoints[t].slidesPerView!=="undefined")).length>0;for(let L=0;L<f;L+=1){M=0;let n;if(u[L])n=u[L];if(_){t.grid.updateSlide(L,n,f,i)}if(u[L]&&nn(n,"display")==="none")continue;if(r.slidesPerView==="auto"){if(z){u[L].style[i("width")]=``}const s=getComputedStyle(n);const o=n.style.transform;const a=n.style.webkitTransform;if(o){n.style.transform="none"}if(a){n.style.webkitTransform="none"}if(r.roundLengths){M=t.isHorizontal()?ln(n,"width",true):ln(n,"height",true)}else{const t=e(s,"width");const i=e(s,"padding-left");const r=e(s,"padding-right");const o=e(s,"margin-left");const a=e(s,"margin-right");const l=s.getPropertyValue("box-sizing");if(l&&l==="border-box"){M=t+o+a}else{const{clientWidth:e,offsetWidth:s}=n;M=t+i+r+o+a+(s-e)}}if(o){n.style.transform=o}if(a){n.style.webkitTransform=a}if(r.roundLengths)M=Math.floor(M)}else{M=(o-(r.slidesPerView-1)*y)/r.slidesPerView;if(r.roundLengths)M=Math.floor(M);if(u[L]){u[L].style[i("width")]=`${M}px`}}if(u[L]){u[L].swiperSlideSize=M}m.push(M);if(r.centeredSlides){x=x+M/2+k/2+y;if(k===0&&L!==0)x=x-o/2-y;if(L===0)x=x-o/2-y;if(Math.abs(x)<1/1e3)x=0;if(r.roundLengths)x=Math.floor(x);if(A%r.slidesPerGroup===0)p.push(x);d.push(x)}else{if(r.roundLengths)x=Math.floor(x);if((A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0)p.push(x);d.push(x);x=x+M+y}t.virtualSize+=M+y;k=M;A+=1}t.virtualSize=Math.max(t.virtualSize,o)+v;if(a&&l&&(r.effect==="slide"||r.effect==="coverflow")){n.style.width=`${t.virtualSize+y}px`}if(r.setWrapperSize){n.style[i("width")]=`${t.virtualSize+y}px`}if(_){t.grid.updateWrapperSize(M,p,i)}if(!r.centeredSlides){const i=[];for(let e=0;e<p.length;e+=1){let n=p[e];if(r.roundLengths)n=Math.floor(n);if(p[e]<=t.virtualSize-o){i.push(n)}}p=i;if(Math.floor(t.virtualSize-o)-Math.floor(p[p.length-1])>1){p.push(t.virtualSize-o)}}if(c&&r.loop){const i=m[0]+y;if(r.slidesPerGroup>1){const e=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup);const n=i*r.slidesPerGroup;for(let t=0;t<e;t+=1){p.push(p[p.length-1]+n)}}for(let e=0;e<t.virtual.slidesBefore+t.virtual.slidesAfter;e+=1){if(r.slidesPerGroup===1){p.push(p[p.length-1]+i)}d.push(d[d.length-1]+i);t.virtualSize+=i}}if(p.length===0)p=[0];if(y!==0){const e=t.isHorizontal()&&a?"marginLeft":i("marginRight");u.filter(((t,i)=>{if(!r.cssMode||r.loop)return true;if(i===u.length-1){return false}return true})).forEach((t=>{t.style[e]=`${y}px`}))}if(r.centeredSlides&&r.centeredSlidesBounds){let t=0;m.forEach((i=>{t+=i+(y||0)}));t-=y;const i=t-o;p=p.map((t=>{if(t<=0)return-g;if(t>i)return i+v;return t}))}if(r.centerInsufficientSlides){let t=0;m.forEach((i=>{t+=i+(y||0)}));t-=y;if(t<o){const i=(o-t)/2;p.forEach(((t,e)=>{p[e]=t-i}));d.forEach(((t,e)=>{d[e]=t+i}))}}Object.assign(t,{slides:u,snapGrid:p,slidesGrid:d,slidesSizesGrid:m});if(r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Kr(n,"--swiper-centered-offset-before",`${-p[0]}px`);Kr(n,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const i=-t.snapGrid[0];const e=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+i));t.slidesGrid=t.slidesGrid.map((t=>t+e))}if(f!==h){t.emit("slidesLengthChange")}if(p.length!==w){if(t.params.watchOverflow)t.checkOverflow();t.emit("snapGridLengthChange")}if(d.length!==b){t.emit("slidesGridLengthChange")}if(r.watchSlidesProgress){t.updateSlidesOffset()}if(!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const i=`${r.containerModifierClass}backface-hidden`;const e=t.el.classList.contains(i);if(f<=r.maxBackfaceHiddenSlides){if(!e)t.el.classList.add(i)}else if(e){t.el.classList.remove(i)}}}function An(t){const i=this;const e=[];const r=i.virtual&&i.params.virtual.enabled;let n=0;let s;if(typeof t==="number"){i.setTransition(t)}else if(t===true){i.setTransition(i.params.speed)}const o=t=>{if(r){return i.slides[i.getSlideIndexByData(t)]}return i.slides[t]};if(i.params.slidesPerView!=="auto"&&i.params.slidesPerView>1){if(i.params.centeredSlides){(i.visibleSlides||[]).forEach((t=>{e.push(t)}))}else{for(s=0;s<Math.ceil(i.params.slidesPerView);s+=1){const t=i.activeIndex+s;if(t>i.slides.length&&!r)break;e.push(o(t))}}}else{e.push(o(i.activeIndex))}for(s=0;s<e.length;s+=1){if(typeof e[s]!=="undefined"){const t=e[s].offsetHeight;n=t>n?t:n}}if(n||n===0)i.wrapperEl.style.height=`${n}px`}function _n(){const t=this;const i=t.slides;const e=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r<i.length;r+=1){i[r].swiperSlideOffset=(t.isHorizontal()?i[r].offsetLeft:i[r].offsetTop)-e-t.cssOverflowAdjustment()}}function Mn(t=this&&this.translate||0){const i=this;const e=i.params;const{slides:r,rtlTranslate:n,snapGrid:s}=i;if(r.length===0)return;if(typeof r[0].swiperSlideOffset==="undefined")i.updateSlidesOffset();let o=-t;if(n)o=t;r.forEach((t=>{t.classList.remove(e.slideVisibleClass)}));i.visibleSlidesIndexes=[];i.visibleSlides=[];let a=e.spaceBetween;if(typeof a==="string"&&a.indexOf("%")>=0){a=parseFloat(a.replace("%",""))/100*i.size}else if(typeof a==="string"){a=parseFloat(a)}for(let l=0;l<r.length;l+=1){const t=r[l];let c=t.swiperSlideOffset;if(e.cssMode&&e.centeredSlides){c-=r[0].swiperSlideOffset}const h=(o+(e.centeredSlides?i.minTranslate():0)-c)/(t.swiperSlideSize+a);const u=(o-s[0]+(e.centeredSlides?i.minTranslate():0)-c)/(t.swiperSlideSize+a);const f=-(o-c);const p=f+i.slidesSizesGrid[l];const d=f>=0&&f<i.size-1||p>1&&p<=i.size||f<=0&&p>=i.size;if(d){i.visibleSlides.push(t);i.visibleSlidesIndexes.push(l);r[l].classList.add(e.slideVisibleClass)}t.progress=n?-h:h;t.originalProgress=n?-u:u}}function zn(t){const i=this;if(typeof t==="undefined"){const e=i.rtlTranslate?-1:1;t=i&&i.translate&&i.translate*e||0}const e=i.params;const r=i.maxTranslate()-i.minTranslate();let{progress:n,isBeginning:s,isEnd:o,progressLoop:a}=i;const l=s;const c=o;if(r===0){n=0;s=true;o=true}else{n=(t-i.minTranslate())/r;const e=Math.abs(t-i.minTranslate())<1;const a=Math.abs(t-i.maxTranslate())<1;s=e||n<=0;o=a||n>=1;if(e)n=0;if(a)n=1}if(e.loop){const e=i.getSlideIndexByData(0);const r=i.getSlideIndexByData(i.slides.length-1);const n=i.slidesGrid[e];const s=i.slidesGrid[r];const o=i.slidesGrid[i.slidesGrid.length-1];const l=Math.abs(t);if(l>=n){a=(l-n)/o}else{a=(l+o-s)/o}if(a>1)a-=1}Object.assign(i,{progress:n,progressLoop:a,isBeginning:s,isEnd:o});if(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)i.updateSlidesProgress(t);if(s&&!l){i.emit("reachBeginning toEdge")}if(o&&!c){i.emit("reachEnd toEdge")}if(l&&!s||c&&!o){i.emit("fromEdge")}i.emit("progress",n)}function Ln(){const t=this;const{slides:i,params:e,slidesEl:r,activeIndex:n}=t;const s=t.virtual&&e.virtual.enabled;const o=t=>Jr(r,`.${e.slideClass}${t}, swiper-slide${t}`)[0];i.forEach((t=>{t.classList.remove(e.slideActiveClass,e.slideNextClass,e.slidePrevClass)}));let a;if(s){if(e.loop){let i=n-t.virtual.slidesBefore;if(i<0)i=t.virtual.slides.length+i;if(i>=t.virtual.slides.length)i-=t.virtual.slides.length;a=o(`[data-swiper-slide-index="${i}"]`)}else{a=o(`[data-swiper-slide-index="${n}"]`)}}else{a=i[n]}if(a){a.classList.add(e.slideActiveClass);let t=rn(a,`.${e.slideClass}, swiper-slide`)[0];if(e.loop&&!t){t=i[0]}if(t){t.classList.add(e.slideNextClass)}let r=en(a,`.${e.slideClass}, swiper-slide`)[0];if(e.loop&&!r===0){r=i[i.length-1]}if(r){r.classList.add(e.slidePrevClass)}}t.emitSlidesClasses()}const Cn=(t,i)=>{if(!t||t.destroyed||!t.params)return;const e=()=>t.isElement?`swiper-slide`:`.${t.params.slideClass}`;const r=i.closest(e());if(r){const i=r.querySelector(`.${t.params.lazyPreloaderClass}`);if(i)i.remove()}};const En=(t,i)=>{if(!t.slides[i])return;const e=t.slides[i].querySelector('[loading="lazy"]');if(e)e.removeAttribute("loading")};const Pn=t=>{if(!t||t.destroyed||!t.params)return;let i=t.params.lazyPreloadPrevNext;const e=t.slides.length;if(!e||!i||i<0)return;i=Math.min(i,e);const r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView);const n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const e=n;const s=[e-i];s.push(...Array.from({length:i}).map(((t,i)=>e+r+i)));t.slides.forEach(((i,e)=>{if(s.includes(i.column))En(t,e)}));return}const s=n+r-1;if(t.params.rewind||t.params.loop){for(let r=n-i;r<=s+i;r+=1){const i=(r%e+e)%e;if(i<n||i>s)En(t,i)}}else{for(let r=Math.max(n-i,0);r<=Math.min(s+i,e-1);r+=1){if(r!==n&&(r>s||r<n)){En(t,r)}}}};function On(t){const{slidesGrid:i,params:e}=t;const r=t.rtlTranslate?t.translate:-t.translate;let n;for(let s=0;s<i.length;s+=1){if(typeof i[s+1]!=="undefined"){if(r>=i[s]&&r<i[s+1]-(i[s+1]-i[s])/2){n=s}else if(r>=i[s]&&r<i[s+1]){n=s+1}}else if(r>=i[s]){n=s}}if(e.normalizeSlideIndex){if(n<0||typeof n==="undefined")n=0}return n}function jn(t){const i=this;const e=i.rtlTranslate?i.translate:-i.translate;const{snapGrid:r,params:n,activeIndex:s,realIndex:o,snapIndex:a}=i;let l=t;let c;const h=t=>{let e=t-i.virtual.slidesBefore;if(e<0){e=i.virtual.slides.length+e}if(e>=i.virtual.slides.length){e-=i.virtual.slides.length}return e};if(typeof l==="undefined"){l=On(i)}if(r.indexOf(e)>=0){c=r.indexOf(e)}else{const t=Math.min(n.slidesPerGroupSkip,l);c=t+Math.floor((l-t)/n.slidesPerGroup)}if(c>=r.length)c=r.length-1;if(l===s){if(c!==a){i.snapIndex=c;i.emit("snapIndexChange")}if(i.params.loop&&i.virtual&&i.params.virtual.enabled){i.realIndex=h(l)}return}let u;if(i.virtual&&n.virtual.enabled&&n.loop){u=h(l)}else if(i.slides[l]){u=parseInt(i.slides[l].getAttribute("data-swiper-slide-index")||l,10)}else{u=l}Object.assign(i,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:u,previousIndex:s,activeIndex:l});if(i.initialized){Pn(i)}i.emit("activeIndexChange");i.emit("snapIndexChange");if(o!==u){i.emit("realIndexChange")}if(i.initialized||i.params.runCallbacksOnInit){i.emit("slideChange")}}function Sn(t){const i=this;const e=i.params;const r=t.closest(`.${e.slideClass}, swiper-slide`);let n=false;let s;if(r){for(let t=0;t<i.slides.length;t+=1){if(i.slides[t]===r){n=true;s=t;break}}}if(r&&n){i.clickedSlide=r;if(i.virtual&&i.params.virtual.enabled){i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10)}else{i.clickedIndex=s}}else{i.clickedSlide=undefined;i.clickedIndex=undefined;return}if(e.slideToClickedSlide&&i.clickedIndex!==undefined&&i.clickedIndex!==i.activeIndex){i.slideToClickedSlide()}}const Tn={updateSize:xn,updateSlides:kn,updateAutoHeight:An,updateSlidesOffset:_n,updateSlidesProgress:Mn,updateProgress:zn,updateSlidesClasses:Ln,updateActiveIndex:jn,updateClickedSlide:Sn};function In(t=(this.isHorizontal()?"x":"y")){const i=this;const{params:e,rtlTranslate:r,translate:n,wrapperEl:s}=i;if(e.virtualTranslate){return r?-n:n}if(e.cssMode){return n}let o=Ur(s,t);o+=i.cssOverflowAdjustment();if(r)o=-o;return o||0}function Bn(t,i){const e=this;const{rtlTranslate:r,params:n,wrapperEl:s,progress:o}=e;let a=0;let l=0;const c=0;if(e.isHorizontal()){a=r?-t:t}else{l=t}if(n.roundLengths){a=Math.floor(a);l=Math.floor(l)}e.previousTranslate=e.translate;e.translate=e.isHorizontal()?a:l;if(n.cssMode){s[e.isHorizontal()?"scrollLeft":"scrollTop"]=e.isHorizontal()?-a:-l}else if(!n.virtualTranslate){if(e.isHorizontal()){a-=e.cssOverflowAdjustment()}else{l-=e.cssOverflowAdjustment()}s.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`}let h;const u=e.maxTranslate()-e.minTranslate();if(u===0){h=0}else{h=(t-e.minTranslate())/u}if(h!==o){e.updateProgress(t)}e.emit("setTranslate",e.translate,i)}function Fn(){return-this.snapGrid[0]}function Rn(){return-this.snapGrid[this.snapGrid.length-1]}function Nn(t=0,i=this.params.speed,e=true,r=true,n){const s=this;const{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition){return false}const l=s.minTranslate();const c=s.maxTranslate();let h;if(r&&t>l)h=l;else if(r&&t<c)h=c;else h=t;s.updateProgress(h);if(o.cssMode){const t=s.isHorizontal();if(i===0){a[t?"scrollLeft":"scrollTop"]=-h}else{if(!s.support.smoothScroll){qr({swiper:s,targetPosition:-h,side:t?"left":"top"});return true}a.scrollTo({[t?"left":"top"]:-h,behavior:"smooth"})}return true}if(i===0){s.setTransition(0);s.setTranslate(h);if(e){s.emit("beforeTransitionStart",i,n);s.emit("transitionEnd")}}else{s.setTransition(i);s.setTranslate(h);if(e){s.emit("beforeTransitionStart",i,n);s.emit("transitionStart")}if(!s.animating){s.animating=true;if(!s.onTranslateToWrapperTransitionEnd){s.onTranslateToWrapperTransitionEnd=function t(i){if(!s||s.destroyed)return;if(i.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd);s.onTranslateToWrapperTransitionEnd=null;delete s.onTranslateToWrapperTransitionEnd;if(e){s.emit("transitionEnd")}}}s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd)}}return true}const Dn={getTranslate:In,setTranslate:Bn,minTranslate:Fn,maxTranslate:Rn,translateTo:Nn};function Yn(t,i){const e=this;if(!e.params.cssMode){e.wrapperEl.style.transitionDuration=`${t}ms`}e.emit("setTransition",t,i)}function Gn({swiper:t,runCallbacks:i,direction:e,step:r}){const{activeIndex:n,previousIndex:s}=t;let o=e;if(!o){if(n>s)o="next";else if(n<s)o="prev";else o="reset"}t.emit(`transition${r}`);if(i&&n!==s){if(o==="reset"){t.emit(`slideResetTransition${r}`);return}t.emit(`slideChangeTransition${r}`);if(o==="next"){t.emit(`slideNextTransition${r}`)}else{t.emit(`slidePrevTransition${r}`)}}}function $n(t=true,i){const e=this;const{params:r}=e;if(r.cssMode)return;if(r.autoHeight){e.updateAutoHeight()}Gn({swiper:e,runCallbacks:t,direction:i,step:"Start"})}function Zn(t=true,i){const e=this;const{params:r}=e;e.animating=false;if(r.cssMode)return;e.setTransition(0);Gn({swiper:e,runCallbacks:t,direction:i,step:"End"})}const Hn={setTransition:Yn,transitionStart:$n,transitionEnd:Zn};function Un(t=0,i=this.params.speed,e=true,r,n){if(typeof t==="string"){t=parseInt(t,10)}const s=this;let o=t;if(o<0)o=0;const{params:a,snapGrid:l,slidesGrid:c,previousIndex:h,activeIndex:u,rtlTranslate:f,wrapperEl:p,enabled:d}=s;if(s.animating&&a.preventInteractionOnTransition||!d&&!r&&!n){return false}const m=Math.min(s.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/s.params.slidesPerGroup);if(g>=l.length)g=l.length-1;const v=-l[g];if(a.normalizeSlideIndex){for(let t=0;t<c.length;t+=1){const i=-Math.floor(v*100);const e=Math.floor(c[t]*100);const r=Math.floor(c[t+1]*100);if(typeof c[t+1]!=="undefined"){if(i>=e&&i<r-(r-e)/2){o=t}else if(i>=e&&i<r){o=t+1}}else if(i>=e){o=t}}}if(s.initialized&&o!==u){if(!s.allowSlideNext&&(f?v>s.translate&&v>s.minTranslate():v<s.translate&&v<s.minTranslate())){return false}if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()){if((u||0)!==o){return false}}}if(o!==(h||0)&&e){s.emit("beforeSlideChangeStart")}s.updateProgress(v);let w;if(o>u)w="next";else if(o<u)w="prev";else w="reset";if(f&&-v===s.translate||!f&&v===s.translate){s.updateActiveIndex(o);if(a.autoHeight){s.updateAutoHeight()}s.updateSlidesClasses();if(a.effect!=="slide"){s.setTranslate(v)}if(w!=="reset"){s.transitionStart(e,w);s.transitionEnd(e,w)}return false}if(a.cssMode){const t=s.isHorizontal();const e=f?v:-v;if(i===0){const i=s.virtual&&s.params.virtual.enabled;if(i){s.wrapperEl.style.scrollSnapType="none";s._immediateVirtual=true}if(i&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0){s._cssModeVirtualInitialSet=true;requestAnimationFrame((()=>{p[t?"scrollLeft":"scrollTop"]=e}))}else{p[t?"scrollLeft":"scrollTop"]=e}if(i){requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="";s._immediateVirtual=false}))}}else{if(!s.support.smoothScroll){qr({swiper:s,targetPosition:e,side:t?"left":"top"});return true}p.scrollTo({[t?"left":"top"]:e,behavior:"smooth"})}return true}s.setTransition(i);s.setTranslate(v);s.updateActiveIndex(o);s.updateSlidesClasses();s.emit("beforeTransitionStart",i,r);s.transitionStart(e,w);if(i===0){s.transitionEnd(e,w)}else if(!s.animating){s.animating=true;if(!s.onSlideToWrapperTransitionEnd){s.onSlideToWrapperTransitionEnd=function t(i){if(!s||s.destroyed)return;if(i.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd);s.onSlideToWrapperTransitionEnd=null;delete s.onSlideToWrapperTransitionEnd;s.transitionEnd(e,w)}}s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)}return true}function Qn(t=0,i=this.params.speed,e=true,r){if(typeof t==="string"){const i=parseInt(t,10);t=i}const n=this;let s=t;if(n.params.loop){if(n.virtual&&n.params.virtual.enabled){s=s+n.virtual.slidesBefore}else{s=n.getSlideIndexByData(s)}}return n.slideTo(s,i,e,r)}function Vn(t=this.params.speed,i=true,e){const r=this;const{enabled:n,params:s,animating:o}=r;if(!n)return r;let a=s.slidesPerGroup;if(s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto){a=Math.max(r.slidesPerViewDynamic("current",true),1)}const l=r.activeIndex<s.slidesPerGroupSkip?1:a;const c=r.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return false;r.loopFix({direction:"next"});r._clientLeft=r.wrapperEl.clientLeft}if(s.rewind&&r.isEnd){return r.slideTo(0,t,i,e)}return r.slideTo(r.activeIndex+l,t,i,e)}function Wn(t=this.params.speed,i=true,e){const r=this;const{params:n,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=r;if(!l)return r;const h=r.virtual&&n.virtual.enabled;if(n.loop){if(c&&!h&&n.loopPreventsSliding)return false;r.loopFix({direction:"prev"});r._clientLeft=r.wrapperEl.clientLeft}const u=a?r.translate:-r.translate;function f(t){if(t<0)return-Math.floor(Math.abs(t));return Math.floor(t)}const p=f(u);const d=s.map((t=>f(t)));let m=s[d.indexOf(p)-1];if(typeof m==="undefined"&&n.cssMode){let t;s.forEach(((i,e)=>{if(p>=i){t=e}}));if(typeof t!=="undefined"){m=s[t>0?t-1:t]}}let g=0;if(typeof m!=="undefined"){g=o.indexOf(m);if(g<0)g=r.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){g=g-r.slidesPerViewDynamic("previous",true)+1;g=Math.max(g,0)}}if(n.rewind&&r.isBeginning){const n=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(n,t,i,e)}return r.slideTo(g,t,i,e)}function Kn(t=this.params.speed,i=true,e){const r=this;return r.slideTo(r.activeIndex,t,i,e)}function qn(t=this.params.speed,i=true,e,r=.5){const n=this;let s=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,s);const a=o+Math.floor((s-o)/n.params.slidesPerGroup);const l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const t=n.snapGrid[a];const i=n.snapGrid[a+1];if(l-t>(i-t)*r){s+=n.params.slidesPerGroup}}else{const t=n.snapGrid[a-1];const i=n.snapGrid[a];if(l-t<=(i-t)*r){s-=n.params.slidesPerGroup}}s=Math.max(s,0);s=Math.min(s,n.slidesGrid.length-1);return n.slideTo(s,t,i,e)}function Jn(){const t=this;const{params:i,slidesEl:e}=t;const r=i.slidesPerView==="auto"?t.slidesPerViewDynamic():i.slidesPerView;let n=t.clickedIndex;let s;const o=t.isElement?`swiper-slide`:`.${i.slideClass}`;if(i.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(i.centeredSlides){if(n<t.loopedSlides-r/2||n>t.slides.length-t.loopedSlides+r/2){t.loopFix();n=t.getSlideIndex(Jr(e,`${o}[data-swiper-slide-index="${s}"]`)[0]);$r((()=>{t.slideTo(n)}))}else{t.slideTo(n)}}else if(n>t.slides.length-r){t.loopFix();n=t.getSlideIndex(Jr(e,`${o}[data-swiper-slide-index="${s}"]`)[0]);$r((()=>{t.slideTo(n)}))}else{t.slideTo(n)}}else{t.slideTo(n)}}const Xn={slideTo:Un,slideToLoop:Qn,slideNext:Vn,slidePrev:Wn,slideReset:Kn,slideToClosest:qn,slideToClickedSlide:Jn};function ts(t){const i=this;const{params:e,slidesEl:r}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;const n=Jr(r,`.${e.slideClass}, swiper-slide`);n.forEach(((t,i)=>{t.setAttribute("data-swiper-slide-index",i)}));i.loopFix({slideRealIndex:t,direction:e.centeredSlides?undefined:"next"})}function is({slideRealIndex:t,slideTo:i=true,direction:e,setTranslate:r,activeSlideIndex:n,byController:s,byMousewheel:o}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:h,slidesEl:u,params:f}=a;a.allowSlidePrev=true;a.allowSlideNext=true;if(a.virtual&&f.virtual.enabled){if(i){if(!f.centeredSlides&&a.snapIndex===0){a.slideTo(a.virtual.slides.length,0,false,true)}else if(f.centeredSlides&&a.snapIndex<f.slidesPerView){a.slideTo(a.virtual.slides.length+a.snapIndex,0,false,true)}else if(a.snapIndex===a.snapGrid.length-1){a.slideTo(a.virtual.slidesBefore,0,false,true)}}a.allowSlidePrev=c;a.allowSlideNext=h;a.emit("loopFix");return}const p=f.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let d=f.loopedSlides||p;if(d%f.slidesPerGroup!==0){d+=f.slidesPerGroup-d%f.slidesPerGroup}a.loopedSlides=d;const m=[];const g=[];let v=a.activeIndex;if(typeof n==="undefined"){n=a.getSlideIndex(a.slides.filter((t=>t.classList.contains(f.slideActiveClass)))[0])}else{v=n}const w=e==="next"||!e;const b=e==="prev"||!e;let y=0;let x=0;if(n<d){y=Math.max(d-n,f.slidesPerGroup);for(let t=0;t<d-n;t+=1){const i=t-Math.floor(t/l.length)*l.length;m.push(l.length-i-1)}}else if(n>a.slides.length-d*2){x=Math.max(n-(a.slides.length-d*2),f.slidesPerGroup);for(let t=0;t<x;t+=1){const i=t-Math.floor(t/l.length)*l.length;g.push(i)}}if(b){m.forEach((t=>{a.slides[t].swiperLoopMoveDOM=true;u.prepend(a.slides[t]);a.slides[t].swiperLoopMoveDOM=false}))}if(w){g.forEach((t=>{a.slides[t].swiperLoopMoveDOM=true;u.append(a.slides[t]);a.slides[t].swiperLoopMoveDOM=false}))}a.recalcSlides();if(f.slidesPerView==="auto"){a.updateSlides()}if(f.watchSlidesProgress){a.updateSlidesOffset()}if(i){if(m.length>0&&b){if(typeof t==="undefined"){const t=a.slidesGrid[v];const i=a.slidesGrid[v+y];const e=i-t;if(o){a.setTranslate(a.translate-e)}else{a.slideTo(v+y,0,false,true);if(r){a.touches[a.isHorizontal()?"startX":"startY"]+=e}}}else{if(r){a.slideToLoop(t,0,false,true)}}}else if(g.length>0&&w){if(typeof t==="undefined"){const t=a.slidesGrid[v];const i=a.slidesGrid[v-x];const e=i-t;if(o){a.setTranslate(a.translate-e)}else{a.slideTo(v-x,0,false,true);if(r){a.touches[a.isHorizontal()?"startX":"startY"]+=e}}}else{a.slideToLoop(t,0,false,true)}}}a.allowSlidePrev=c;a.allowSlideNext=h;if(a.controller&&a.controller.control&&!s){const i={slideRealIndex:t,slideTo:false,direction:e,setTranslate:r,activeSlideIndex:n,byController:true};if(Array.isArray(a.controller.control)){a.controller.control.forEach((t=>{if(!t.destroyed&&t.params.loop)t.loopFix(i)}))}else if(a.controller.control instanceof a.constructor&&a.controller.control.params.loop){a.controller.control.loopFix(i)}}a.emit("loopFix")}function es(){const t=this;const{params:i,slidesEl:e}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach((t=>{const i=typeof t.swiperSlideIndex==="undefined"?t.getAttribute("data-swiper-slide-index")*1:t.swiperSlideIndex;r[i]=t}));t.slides.forEach((t=>{t.removeAttribute("data-swiper-slide-index")}));r.forEach((t=>{e.append(t)}));t.recalcSlides();t.slideTo(t.realIndex,0)}const rs={loopCreate:ts,loopFix:is,loopDestroy:es};function ns(t){const i=this;if(!i.params.simulateTouch||i.params.watchOverflow&&i.isLocked||i.params.cssMode)return;const e=i.params.touchEventsTarget==="container"?i.el:i.wrapperEl;if(i.isElement){i.__preventObserver__=true}e.style.cursor="move";e.style.cursor=t?"grabbing":"grab";if(i.isElement){requestAnimationFrame((()=>{i.__preventObserver__=false}))}}function ss(){const t=this;if(t.params.watchOverflow&&t.isLocked||t.params.cssMode){return}if(t.isElement){t.__preventObserver__=true}t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(t.isElement){requestAnimationFrame((()=>{t.__preventObserver__=false}))}}const os={setGrabCursor:ns,unsetGrabCursor:ss};function as(t,i=this){function e(i){if(!i||i===Nr()||i===Yr())return null;if(i.assignedSlot)i=i.assignedSlot;const r=i.closest(t);if(!r&&!i.getRootNode){return null}return r||e(i.getRootNode().host)}return e(i)}function ls(t){const i=this;const e=Nr();const r=Yr();const n=i.touchEventsData;n.evCache.push(t);const{params:s,touches:o,enabled:a}=i;if(!a)return;if(!s.simulateTouch&&t.pointerType==="mouse")return;if(i.animating&&s.preventInteractionOnTransition){return}if(!i.animating&&s.cssMode&&s.loop){i.loopFix()}let l=t;if(l.originalEvent)l=l.originalEvent;let c=l.target;if(s.touchEventsTarget==="wrapper"){if(!i.wrapperEl.contains(c))return}if("which"in l&&l.which===3)return;if("button"in l&&l.button>0)return;if(n.isTouched&&n.isMoved)return;const h=!!s.noSwipingClass&&s.noSwipingClass!=="";const u=t.composedPath?t.composedPath():t.path;if(h&&l.target&&l.target.shadowRoot&&u){c=u[0]}const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`;const p=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(p?as(f,c):c.closest(f))){i.allowClick=true;return}if(s.swipeHandler){if(!c.closest(s.swipeHandler))return}o.currentX=l.pageX;o.currentY=l.pageY;const d=o.currentX;const m=o.currentY;const g=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection;const v=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(g&&(d<=v||d>=r.innerWidth-v)){if(g==="prevent"){t.preventDefault()}else{return}}Object.assign(n,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});o.startX=d;o.startY=m;n.touchStartTime=Zr();i.allowClick=true;i.updateSize();i.swipeDirection=undefined;if(s.threshold>0)n.allowThresholdMove=false;let w=true;if(c.matches(n.focusableElements)){w=false;if(c.nodeName==="SELECT"){n.isTouched=false}}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==c){e.activeElement.blur()}const b=w&&i.allowTouchMove&&s.touchStartPreventDefault;if((s.touchStartForcePreventDefault||b)&&!c.isContentEditable){l.preventDefault()}if(s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.animating&&!s.cssMode){i.freeMode.onTouchStart()}i.emit("touchStart",l)}function cs(t){const i=Nr();const e=this;const r=e.touchEventsData;const{params:n,touches:s,rtlTranslate:o,enabled:a}=e;if(!a)return;if(!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent)l=l.originalEvent;if(!r.isTouched){if(r.startMoving&&r.isScrolling){e.emit("touchMoveOpposite",l)}return}const c=r.evCache.findIndex((t=>t.pointerId===l.pointerId));if(c>=0)r.evCache[c]=l;const h=r.evCache.length>1?r.evCache[0]:l;const u=h.pageX;const f=h.pageY;if(l.preventedByNestedSwiper){s.startX=u;s.startY=f;return}if(!e.allowTouchMove){if(!l.target.matches(r.focusableElements)){e.allowClick=false}if(r.isTouched){Object.assign(s,{startX:u,startY:f,prevX:e.touches.currentX,prevY:e.touches.currentY,currentX:u,currentY:f});r.touchStartTime=Zr()}return}if(n.touchReleaseOnEdges&&!n.loop){if(e.isVertical()){if(f<s.startY&&e.translate<=e.maxTranslate()||f>s.startY&&e.translate>=e.minTranslate()){r.isTouched=false;r.isMoved=false;return}}else if(u<s.startX&&e.translate<=e.maxTranslate()||u>s.startX&&e.translate>=e.minTranslate()){return}}if(i.activeElement){if(l.target===i.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=true;e.allowClick=false;return}}if(r.allowTouchCallbacks){e.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;s.currentX=u;s.currentY=f;const p=s.currentX-s.startX;const d=s.currentY-s.startY;if(e.params.threshold&&Math.sqrt(p**2+d**2)<e.params.threshold)return;if(typeof r.isScrolling==="undefined"){let t;if(e.isHorizontal()&&s.currentY===s.startY||e.isVertical()&&s.currentX===s.startX){r.isScrolling=false}else{if(p*p+d*d>=25){t=Math.atan2(Math.abs(d),Math.abs(p))*180/Math.PI;r.isScrolling=e.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle}}}if(r.isScrolling){e.emit("touchMoveOpposite",l)}if(typeof r.startMoving==="undefined"){if(s.currentX!==s.startX||s.currentY!==s.startY){r.startMoving=true}}if(r.isScrolling||e.zoom&&e.params.zoom&&e.params.zoom.enabled&&r.evCache.length>1){r.isTouched=false;return}if(!r.startMoving){return}e.allowClick=false;if(!n.cssMode&&l.cancelable){l.preventDefault()}if(n.touchMoveStopPropagation&&!n.nested){l.stopPropagation()}let m=e.isHorizontal()?p:d;let g=e.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;if(n.oneWayMovement){m=Math.abs(m)*(o?1:-1);g=Math.abs(g)*(o?1:-1)}s.diff=m;m*=n.touchRatio;if(o){m=-m;g=-g}const v=e.touchesDirection;e.swipeDirection=m>0?"prev":"next";e.touchesDirection=g>0?"prev":"next";const w=e.params.loop&&!n.cssMode;if(!r.isMoved){if(w){e.loopFix({direction:e.swipeDirection})}r.startTranslate=e.getTranslate();e.setTransition(0);if(e.animating){const t=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true});e.wrapperEl.dispatchEvent(t)}r.allowMomentumBounce=false;if(n.grabCursor&&(e.allowSlideNext===true||e.allowSlidePrev===true)){e.setGrabCursor(true)}e.emit("sliderFirstMove",l)}let b;if(r.isMoved&&v!==e.touchesDirection&&w&&Math.abs(m)>=1){e.loopFix({direction:e.swipeDirection,setTranslate:true});b=true}e.emit("sliderMove",l);r.isMoved=true;r.currentTranslate=m+r.startTranslate;let y=true;let x=n.resistanceRatio;if(n.touchReleaseOnEdges){x=0}if(m>0){if(w&&!b&&r.currentTranslate>(n.centeredSlides?e.minTranslate()-e.size/2:e.minTranslate())){e.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(r.currentTranslate>e.minTranslate()){y=false;if(n.resistance){r.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+r.startTranslate+m)**x}}}else if(m<0){if(w&&!b&&r.currentTranslate<(n.centeredSlides?e.maxTranslate()+e.size/2:e.maxTranslate())){e.loopFix({direction:"next",setTranslate:true,activeSlideIndex:e.slides.length-(n.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))})}if(r.currentTranslate<e.maxTranslate()){y=false;if(n.resistance){r.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-r.startTranslate-m)**x}}}if(y){l.preventedByNestedSwiper=true}if(!e.allowSlideNext&&e.swipeDirection==="next"&&r.currentTranslate<r.startTranslate){r.currentTranslate=r.startTranslate}if(!e.allowSlidePrev&&e.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate){r.currentTranslate=r.startTranslate}if(!e.allowSlidePrev&&!e.allowSlideNext){r.currentTranslate=r.startTranslate}if(n.threshold>0){if(Math.abs(m)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=true;s.startX=s.currentX;s.startY=s.currentY;r.currentTranslate=r.startTranslate;s.diff=e.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}}if(!n.followFinger||n.cssMode)return;if(n.freeMode&&n.freeMode.enabled&&e.freeMode||n.watchSlidesProgress){e.updateActiveIndex();e.updateSlidesClasses()}if(n.freeMode&&n.freeMode.enabled&&e.freeMode){e.freeMode.onTouchMove()}e.updateProgress(r.currentTranslate);e.setTranslate(r.currentTranslate)}function hs(t){const i=this;const e=i.touchEventsData;const r=e.evCache.findIndex((i=>i.pointerId===t.pointerId));if(r>=0){e.evCache.splice(r,1)}if(["pointercancel","pointerout","pointerleave"].includes(t.type)){const e=t.type==="pointercancel"&&(i.browser.isSafari||i.browser.isWebView);if(!e){return}}const{params:n,touches:s,rtlTranslate:o,slidesGrid:a,enabled:l}=i;if(!l)return;if(!n.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent)c=c.originalEvent;if(e.allowTouchCallbacks){i.emit("touchEnd",c)}e.allowTouchCallbacks=false;if(!e.isTouched){if(e.isMoved&&n.grabCursor){i.setGrabCursor(false)}e.isMoved=false;e.startMoving=false;return}if(n.grabCursor&&e.isMoved&&e.isTouched&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(false)}const h=Zr();const u=h-e.touchStartTime;if(i.allowClick){const t=c.path||c.composedPath&&c.composedPath();i.updateClickedSlide(t&&t[0]||c.target);i.emit("tap click",c);if(u<300&&h-e.lastClickTime<300){i.emit("doubleTap doubleClick",c)}}e.lastClickTime=Zr();$r((()=>{if(!i.destroyed)i.allowClick=true}));if(!e.isTouched||!e.isMoved||!i.swipeDirection||s.diff===0||e.currentTranslate===e.startTranslate){e.isTouched=false;e.isMoved=false;e.startMoving=false;return}e.isTouched=false;e.isMoved=false;e.startMoving=false;let f;if(n.followFinger){f=o?i.translate:-i.translate}else{f=-e.currentTranslate}if(n.cssMode){return}if(n.freeMode&&n.freeMode.enabled){i.freeMode.onTouchEnd({currentPos:f});return}let p=0;let d=i.slidesSizesGrid[0];for(let b=0;b<a.length;b+=b<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=b<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(typeof a[b+t]!=="undefined"){if(f>=a[b]&&f<a[b+t]){p=b;d=a[b+t]-a[b]}}else if(f>=a[b]){p=b;d=a[a.length-1]-a[a.length-2]}}let m=null;let g=null;if(n.rewind){if(i.isBeginning){g=n.virtual&&n.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1}else if(i.isEnd){m=0}}const v=(f-a[p])/d;const w=p<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(u>n.longSwipesMs){if(!n.longSwipes){i.slideTo(i.activeIndex);return}if(i.swipeDirection==="next"){if(v>=n.longSwipesRatio)i.slideTo(n.rewind&&i.isEnd?m:p+w);else i.slideTo(p)}if(i.swipeDirection==="prev"){if(v>1-n.longSwipesRatio){i.slideTo(p+w)}else if(g!==null&&v<0&&Math.abs(v)>n.longSwipesRatio){i.slideTo(g)}else{i.slideTo(p)}}}else{if(!n.shortSwipes){i.slideTo(i.activeIndex);return}const t=i.navigation&&(c.target===i.navigation.nextEl||c.target===i.navigation.prevEl);if(!t){if(i.swipeDirection==="next"){i.slideTo(m!==null?m:p+w)}if(i.swipeDirection==="prev"){i.slideTo(g!==null?g:p)}}else if(c.target===i.navigation.nextEl){i.slideTo(p+w)}else{i.slideTo(p)}}}function us(){const t=this;const{params:i,el:e}=t;if(e&&e.offsetWidth===0)return;if(i.breakpoints){t.setBreakpoint()}const{allowSlideNext:r,allowSlidePrev:n,snapGrid:s}=t;const o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=true;t.allowSlidePrev=true;t.updateSize();t.updateSlides();t.updateSlidesClasses();const a=o&&i.loop;if((i.slidesPerView==="auto"||i.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a){t.slideTo(t.slides.length-1,0,false,true)}else{if(t.params.loop&&!o){t.slideToLoop(t.realIndex,0,false,true)}else{t.slideTo(t.activeIndex,0,false,true)}}if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){clearTimeout(t.autoplay.resizeTimeout);t.autoplay.resizeTimeout=setTimeout((()=>{if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){t.autoplay.resume()}}),500)}t.allowSlidePrev=n;t.allowSlideNext=r;if(t.params.watchOverflow&&s!==t.snapGrid){t.checkOverflow()}}function fs(t){const i=this;if(!i.enabled)return;if(!i.allowClick){if(i.params.preventClicks)t.preventDefault();if(i.params.preventClicksPropagation&&i.animating){t.stopPropagation();t.stopImmediatePropagation()}}}function ps(){const t=this;const{wrapperEl:i,rtlTranslate:e,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate;if(t.isHorizontal()){t.translate=-i.scrollLeft}else{t.translate=-i.scrollTop}if(t.translate===0)t.translate=0;t.updateActiveIndex();t.updateSlidesClasses();let n;const s=t.maxTranslate()-t.minTranslate();if(s===0){n=0}else{n=(t.translate-t.minTranslate())/s}if(n!==t.progress){t.updateProgress(e?-t.translate:t.translate)}t.emit("setTranslate",t.translate,false)}function ds(t){const i=this;Cn(i,t.target);if(i.params.cssMode||i.params.slidesPerView!=="auto"&&!i.params.autoHeight){return}i.update()}let ms=false;function gs(){}const vs=(t,i)=>{const e=Nr();const{params:r,el:n,wrapperEl:s,device:o}=t;const a=!!r.nested;const l=i==="on"?"addEventListener":"removeEventListener";const c=i;n[l]("pointerdown",t.onTouchStart,{passive:false});e[l]("pointermove",t.onTouchMove,{passive:false,capture:a});e[l]("pointerup",t.onTouchEnd,{passive:true});e[l]("pointercancel",t.onTouchEnd,{passive:true});e[l]("pointerout",t.onTouchEnd,{passive:true});e[l]("pointerleave",t.onTouchEnd,{passive:true});if(r.preventClicks||r.preventClicksPropagation){n[l]("click",t.onClick,true)}if(r.cssMode){s[l]("scroll",t.onScroll)}if(r.updateOnWindowResize){t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",us,true)}else{t[c]("observerUpdate",us,true)}n[l]("load",t.onLoad,{capture:true})};function ws(){const t=this;const i=Nr();const{params:e}=t;t.onTouchStart=ls.bind(t);t.onTouchMove=cs.bind(t);t.onTouchEnd=hs.bind(t);if(e.cssMode){t.onScroll=ps.bind(t)}t.onClick=fs.bind(t);t.onLoad=ds.bind(t);if(!ms){i.addEventListener("touchstart",gs);ms=true}vs(t,"on")}function bs(){const t=this;vs(t,"off")}const ys={attachEvents:ws,detachEvents:bs};const xs=(t,i)=>t.grid&&i.grid&&i.grid.rows>1;function ks(){const t=this;const{realIndex:i,initialized:e,params:r,el:n}=t;const s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const a=o in s?s[o]:undefined;const l=a||t.originalParams;const c=xs(t,r);const h=xs(t,l);const u=r.enabled;if(c&&!h){n.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`);t.emitContainerClasses()}else if(!c&&h){n.classList.add(`${r.containerModifierClass}grid`);if(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column"){n.classList.add(`${r.containerModifierClass}grid-column`)}t.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((i=>{if(typeof l[i]==="undefined")return;const e=r[i]&&r[i].enabled;const n=l[i]&&l[i].enabled;if(e&&!n){t[i].disable()}if(!e&&n){t[i].enable()}}));const f=l.direction&&l.direction!==r.direction;const p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);if(f&&e){t.changeDirection()}Wr(t.params,l);const d=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev});if(u&&!d){t.disable()}else if(!u&&d){t.enable()}t.currentBreakpoint=o;t.emit("_beforeBreakpoint",l);if(p&&e){t.loopDestroy();t.loopCreate(i);t.updateSlides()}t.emit("breakpoint",l)}function As(t,i="window",e){if(!t||i==="container"&&!e)return undefined;let r=false;const n=Yr();const s=i==="window"?n.innerHeight:e.clientHeight;const o=Object.keys(t).map((t=>{if(typeof t==="string"&&t.indexOf("@")===0){const i=parseFloat(t.substr(1));const e=s*i;return{value:e,point:t}}return{value:t,point:t}}));o.sort(((t,i)=>parseInt(t.value,10)-parseInt(i.value,10)));for(let a=0;a<o.length;a+=1){const{point:t,value:s}=o[a];if(i==="window"){if(n.matchMedia(`(min-width: ${s}px)`).matches){r=t}}else if(s<=e.clientWidth){r=t}}return r||"max"}const _s={setBreakpoint:ks,getBreakpoint:As};function Ms(t,i){const e=[];t.forEach((t=>{if(typeof t==="object"){Object.keys(t).forEach((r=>{if(t[r]){e.push(i+r)}}))}else if(typeof t==="string"){e.push(i+t)}}));return e}function zs(){const t=this;const{classNames:i,params:e,rtl:r,el:n,device:s}=t;const o=Ms(["initialized",e.direction,{"free-mode":t.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:r},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&e.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);i.push(...o);n.classList.add(...i);t.emitContainerClasses()}function Ls(){const t=this;const{el:i,classNames:e}=t;i.classList.remove(...e);t.emitContainerClasses()}const Cs={addClasses:zs,removeClasses:Ls};function Es(){const t=this;const{isLocked:i,params:e}=t;const{slidesOffsetBefore:r}=e;if(r){const i=t.slides.length-1;const e=t.slidesGrid[i]+t.slidesSizesGrid[i]+r*2;t.isLocked=t.size>e}else{t.isLocked=t.snapGrid.length===1}if(e.allowSlideNext===true){t.allowSlideNext=!t.isLocked}if(e.allowSlidePrev===true){t.allowSlidePrev=!t.isLocked}if(i&&i!==t.isLocked){t.isEnd=false}if(i!==t.isLocked){t.emit(t.isLocked?"lock":"unlock")}}const Ps={checkOverflow:Es};const Os={init:true,direction:"horizontal",oneWayMovement:false,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:false,updateOnWindowResize:true,resizeObserver:true,nested:false,createElements:false,enabled:true,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:false,userAgent:null,url:null,edgeSwipeDetection:false,edgeSwipeThreshold:20,autoHeight:false,setWrapperSize:false,virtualTranslate:false,effect:"slide",breakpoints:undefined,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:false,centeredSlides:false,centeredSlidesBounds:false,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:true,centerInsufficientSlides:false,watchOverflow:true,roundLengths:false,touchRatio:1,touchAngle:45,simulateTouch:true,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,allowTouchMove:true,threshold:5,touchMoveStopPropagation:false,touchStartPreventDefault:true,touchStartForcePreventDefault:false,touchReleaseOnEdges:false,uniqueNavElements:true,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,grabCursor:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loop:false,loopedSlides:null,loopPreventsSliding:true,rewind:false,allowSlidePrev:true,allowSlideNext:true,swipeHandler:null,noSwiping:true,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:true,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:true,_emitClasses:false};function js(t,i){return function e(r={}){const n=Object.keys(r)[0];const s=r[n];if(typeof s!=="object"||s===null){Wr(i,r);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&t[n]===true){t[n]={auto:true}}if(!(n in t&&"enabled"in s)){Wr(i,r);return}if(t[n]===true){t[n]={enabled:true}}if(typeof t[n]==="object"&&!("enabled"in t[n])){t[n].enabled=true}if(!t[n])t[n]={enabled:false};Wr(i,r)}}const Ss={eventsEmitter:yn,update:Tn,translate:Dn,transition:Hn,slide:Xn,loop:rs,grabCursor:os,events:ys,breakpoints:_s,checkOverflow:Ps,classes:Cs};const Ts={};class Is{constructor(...t){let i;let e;if(t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"){e=t[0]}else{[i,e]=t}if(!e)e={};e=Wr({},e);if(i&&!e.el)e.el=i;const r=Nr();if(e.el&&typeof e.el==="string"&&r.querySelectorAll(e.el).length>1){const t=[];r.querySelectorAll(e.el).forEach((i=>{const r=Wr({},e,{el:i});t.push(new Is(r))}));return t}const n=this;n.__swiper__=true;n.support=un();n.device=dn({userAgent:e.userAgent});n.browser=vn();n.eventsListeners={};n.eventsAnyListeners=[];n.modules=[...n.__modules__];if(e.modules&&Array.isArray(e.modules)){n.modules.push(...e.modules)}const s={};n.modules.forEach((t=>{t({params:e,swiper:n,extendParams:js(e,s),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const o=Wr({},Os,s);n.params=Wr({},o,Ts,e);n.originalParams=Wr({},n.params);n.passedParams=Wr({},e);if(n.params&&n.params.on){Object.keys(n.params.on).forEach((t=>{n.on(t,n.params.on[t])}))}if(n.params&&n.params.onAny){n.onAny(n.params.onAny)}Object.assign(n,{enabled:n.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,startMoving:undefined,evCache:[]},allowClick:true,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});n.emit("_swiper");if(n.params.init){n.init()}return n}getSlideIndex(t){const{slidesEl:i,params:e}=this;const r=Jr(i,`.${e.slideClass}, swiper-slide`);const n=sn(r[0]);return sn(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter((i=>i.getAttribute("data-swiper-slide-index")*1===t))[0])}recalcSlides(){const t=this;const{slidesEl:i,params:e}=t;t.slides=Jr(i,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;if(t.enabled)return;t.enabled=true;if(t.params.grabCursor){t.setGrabCursor()}t.emit("enable")}disable(){const t=this;if(!t.enabled)return;t.enabled=false;if(t.params.grabCursor){t.unsetGrabCursor()}t.emit("disable")}setProgress(t,i){const e=this;t=Math.min(Math.max(t,0),1);const r=e.minTranslate();const n=e.maxTranslate();const s=(n-r)*t+r;e.translateTo(s,typeof i==="undefined"?0:i);e.updateActiveIndex();e.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=t.el.className.split(" ").filter((i=>i.indexOf("swiper")===0||i.indexOf(t.params.containerModifierClass)===0));t.emit("_containerClasses",i.join(" "))}getSlideClasses(t){const i=this;if(i.destroyed)return"";return t.className.split(" ").filter((t=>t.indexOf("swiper-slide")===0||t.indexOf(i.params.slideClass)===0)).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=[];t.slides.forEach((e=>{const r=t.getSlideClasses(e);i.push({slideEl:e,classNames:r});t.emit("_slideClass",e,r)}));t.emit("_slideClasses",i)}slidesPerViewDynamic(t="current",i=false){const e=this;const{params:r,slides:n,slidesGrid:s,slidesSizesGrid:o,size:a,activeIndex:l}=e;let c=1;if(r.centeredSlides){let t=n[l]?n[l].swiperSlideSize:0;let i;for(let e=l+1;e<n.length;e+=1){if(n[e]&&!i){t+=n[e].swiperSlideSize;c+=1;if(t>a)i=true}}for(let e=l-1;e>=0;e-=1){if(n[e]&&!i){t+=n[e].swiperSlideSize;c+=1;if(t>a)i=true}}}else{if(t==="current"){for(let t=l+1;t<n.length;t+=1){const e=i?s[t]+o[t]-s[l]<a:s[t]-s[l]<a;if(e){c+=1}}}else{for(let t=l-1;t>=0;t-=1){const i=s[l]-s[t]<a;if(i){c+=1}}}}return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:i,params:e}=t;if(e.breakpoints){t.setBreakpoint()}[...t.el.querySelectorAll('[loading="lazy"]')].forEach((i=>{if(i.complete){Cn(t,i)}}));t.updateSize();t.updateSlides();t.updateProgress();t.updateSlidesClasses();function r(){const i=t.rtlTranslate?t.translate*-1:t.translate;const e=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(e);t.updateActiveIndex();t.updateSlidesClasses()}let n;if(e.freeMode&&e.freeMode.enabled&&!e.cssMode){r();if(e.autoHeight){t.updateAutoHeight()}}else{if((e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!e.centeredSlides){const i=t.virtual&&e.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(i.length-1,0,false,true)}else{n=t.slideTo(t.activeIndex,0,false,true)}if(!n){r()}}if(e.watchOverflow&&i!==t.snapGrid){t.checkOverflow()}t.emit("update")}changeDirection(t,i=true){const e=this;const r=e.params.direction;if(!t){t=r==="horizontal"?"vertical":"horizontal"}if(t===r||t!=="horizontal"&&t!=="vertical"){return e}e.el.classList.remove(`${e.params.containerModifierClass}${r}`);e.el.classList.add(`${e.params.containerModifierClass}${t}`);e.emitContainerClasses();e.params.direction=t;e.slides.forEach((i=>{if(t==="vertical"){i.style.width=""}else{i.style.height=""}}));e.emit("changeDirection");if(i)e.update();return e}changeLanguageDirection(t){const i=this;if(i.rtl&&t==="rtl"||!i.rtl&&t==="ltr")return;i.rtl=t==="rtl";i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl;if(i.rtl){i.el.classList.add(`${i.params.containerModifierClass}rtl`);i.el.dir="rtl"}else{i.el.classList.remove(`${i.params.containerModifierClass}rtl`);i.el.dir="ltr"}i.update()}mount(t){const i=this;if(i.mounted)return true;let e=t||i.params.el;if(typeof e==="string"){e=document.querySelector(e)}if(!e){return false}e.swiper=i;if(e.shadowEl){i.isElement=true}const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;const n=()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=e.shadowRoot.querySelector(r());return t}return Jr(e,r())[0]};let s=n();if(!s&&i.params.createElements){s=Xr("div",i.params.wrapperClass);e.append(s);Jr(e,`.${i.params.slideClass}`).forEach((t=>{s.append(t)}))}Object.assign(i,{el:e,wrapperEl:s,slidesEl:i.isElement?e:s,mounted:true,rtl:e.dir.toLowerCase()==="rtl"||nn(e,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||nn(e,"direction")==="rtl"),wrongRTL:nn(s,"display")==="-webkit-box"});return true}init(t){const i=this;if(i.initialized)return i;const e=i.mount(t);if(e===false)return i;i.emit("beforeInit");if(i.params.breakpoints){i.setBreakpoint()}i.addClasses();i.updateSize();i.updateSlides();if(i.params.watchOverflow){i.checkOverflow()}if(i.params.grabCursor&&i.enabled){i.setGrabCursor()}if(i.params.loop&&i.virtual&&i.params.virtual.enabled){i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,false,true)}else{i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,false,true)}if(i.params.loop){i.loopCreate()}i.attachEvents();[...i.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{if(t.complete){Cn(i,t)}else{t.addEventListener("load",(t=>{Cn(i,t.target)}))}}));Pn(i);i.initialized=true;Pn(i);i.emit("init");i.emit("afterInit");return i}destroy(t=true,i=true){const e=this;const{params:r,el:n,wrapperEl:s,slides:o}=e;if(typeof e.params==="undefined"||e.destroyed){return null}e.emit("beforeDestroy");e.initialized=false;e.detachEvents();if(r.loop){e.loopDestroy()}if(i){e.removeClasses();n.removeAttribute("style");s.removeAttribute("style");if(o&&o.length){o.forEach((t=>{t.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass);t.removeAttribute("style");t.removeAttribute("data-swiper-slide-index")}))}}e.emit("destroy");Object.keys(e.eventsListeners).forEach((t=>{e.off(t)}));if(t!==false){e.el.swiper=null;Gr(e)}e.destroyed=true;return null}static extendDefaults(t){Wr(Ts,t)}static get extendedDefaults(){return Ts}static get defaults(){return Os}static installModule(t){if(!Is.prototype.__modules__)Is.prototype.__modules__=[];const i=Is.prototype.__modules__;if(typeof t==="function"&&i.indexOf(t)<0){i.push(t)}}static use(t){if(Array.isArray(t)){t.forEach((t=>Is.installModule(t)));return Is}Is.installModule(t);return Is}}Object.keys(Ss).forEach((t=>{Object.keys(Ss[t]).forEach((i=>{Is.prototype[i]=Ss[t][i]}))}));Is.use([wn,bn]);function Bs({swiper:t,extendParams:i,on:e,emit:r}){const n=Nr();const s=Yr();t.keyboard={enabled:false};i({keyboard:{enabled:false,onlyInViewport:true,pageUpDown:true}});function o(i){if(!t.enabled)return;const{rtlTranslate:e}=t;let o=i;if(o.originalEvent)o=o.originalEvent;const a=o.keyCode||o.charCode;const l=t.params.keyboard.pageUpDown;const c=l&&a===33;const h=l&&a===34;const u=a===37;const f=a===39;const p=a===38;const d=a===40;if(!t.allowSlideNext&&(t.isHorizontal()&&f||t.isVertical()&&d||h)){return false}if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&p||c)){return false}if(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey){return undefined}if(n.activeElement&&n.activeElement.nodeName&&(n.activeElement.nodeName.toLowerCase()==="input"||n.activeElement.nodeName.toLowerCase()==="textarea")){return undefined}if(t.params.keyboard.onlyInViewport&&(c||h||u||f||p||d)){let i=false;if(on(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&on(t.el,`.${t.params.slideActiveClass}`).length===0){return undefined}const r=t.el;const n=r.clientWidth;const o=r.clientHeight;const a=s.innerWidth;const l=s.innerHeight;const c=tn(r);if(e)c.left-=r.scrollLeft;const h=[[c.left,c.top],[c.left+n,c.top],[c.left,c.top+o],[c.left+n,c.top+o]];for(let t=0;t<h.length;t+=1){const e=h[t];if(e[0]>=0&&e[0]<=a&&e[1]>=0&&e[1]<=l){if(e[0]===0&&e[1]===0)continue;i=true}}if(!i)return undefined}if(t.isHorizontal()){if(c||h||u||f){if(o.preventDefault)o.preventDefault();else o.returnValue=false}if((h||f)&&!e||(c||u)&&e)t.slideNext();if((c||u)&&!e||(h||f)&&e)t.slidePrev()}else{if(c||h||p||d){if(o.preventDefault)o.preventDefault();else o.returnValue=false}if(h||d)t.slideNext();if(c||p)t.slidePrev()}r("keyPress",a);return undefined}function a(){if(t.keyboard.enabled)return;n.addEventListener("keydown",o);t.keyboard.enabled=true}function l(){if(!t.keyboard.enabled)return;n.removeEventListener("keydown",o);t.keyboard.enabled=false}e("init",(()=>{if(t.params.keyboard.enabled){a()}}));e("destroy",(()=>{if(t.keyboard.enabled){l()}}));Object.assign(t.keyboard,{enable:a,disable:l})}function Fs({swiper:t,extendParams:i,on:e,emit:r}){const n=Yr();i({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 s;let o=Zr();let a;const l=[];function c(t){const i=10;const e=40;const r=800;let n=0;let s=0;let o=0;let a=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){n=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){n=s;s=0}o=n*i;a=s*i;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){o=t.deltaX}if(t.shiftKey&&!o){o=a;a=0}if((o||a)&&t.deltaMode){if(t.deltaMode===1){o*=e;a*=e}else{o*=r;a*=r}}if(o&&!n){n=o<1?-1:1}if(a&&!s){s=a<1?-1:1}return{spinX:n,spinY:s,pixelX:o,pixelY:a}}function h(){if(!t.enabled)return;t.mouseEntered=true}function u(){if(!t.enabled)return;t.mouseEntered=false}function f(i){if(t.params.mousewheel.thresholdDelta&&i.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&Zr()-o<t.params.mousewheel.thresholdTime){return false}if(i.delta>=6&&Zr()-o<60){return true}if(i.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();r("scroll",i.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();r("scroll",i.raw)}o=(new n.Date).getTime();return false}function p(i){const e=t.params.mousewheel;if(i.direction<0){if(t.isEnd&&!t.params.loop&&e.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&e.releaseOnEdges){return true}return false}function d(i){let e=i;let n=true;if(!t.enabled)return;if(i.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;if(t.params.cssMode){e.preventDefault()}let h=t.el;if(t.params.mousewheel.eventsTarget!=="container"){h=document.querySelector(t.params.mousewheel.eventsTarget)}const u=h&&h.contains(e.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(e.originalEvent)e=e.originalEvent;let d=0;const m=t.rtlTranslate?-1:1;const g=c(e);if(o.forceToAxis){if(t.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))d=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))d=-g.pixelY;else return true}else{d=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(d===0)return true;if(o.invert)d=-d;let v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();n=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(n&&t.params.nested)e.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){const t={time:Zr(),delta:Math.abs(d),direction:Math.sign(d),raw:i};if(l.length>=2){l.shift()}const e=l.length?l[l.length-1]:undefined;l.push(t);if(e){if(t.direction!==e.direction||t.delta>e.delta||t.time>e.time+150){f(t)}}else{f(t)}if(p(t)){return true}}else{const i={time:Zr(),delta:Math.abs(d),direction:Math.sign(d)};const n=a&&i.time<a.time+500&&i.delta<=a.delta&&i.direction===a.direction;if(!n){a=undefined;let c=t.getTranslate()+d*o.sensitivity;const h=t.isBeginning;const u=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(!h&&t.isBeginning||!u&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:i.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(l.length>=15){l.shift()}const e=l.length?l[l.length-1]:undefined;const r=l[0];l.push(i);if(e&&(i.delta>e.delta||i.direction!==e.direction)){l.splice(0)}else if(l.length>=15&&i.time-r.time<500&&r.delta-i.delta>=1&&i.delta<=6){const e=d>0?.8:.2;a=i;l.splice(0);s=$r((()=>{t.slideToClosest(t.params.speed,true,undefined,e)}),0)}if(!s){s=$r((()=>{const e=.5;a=i;l.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!n)r("scroll",e);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(c===t.minTranslate()||c===t.maxTranslate())return true}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;return false}function m(i){let e=t.el;if(t.params.mousewheel.eventsTarget!=="container"){e=document.querySelector(t.params.mousewheel.eventsTarget)}e[i]("mouseenter",h);e[i]("mouseleave",u);e[i]("wheel",d)}function g(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",d);return true}if(t.mousewheel.enabled)return false;m("addEventListener");t.mousewheel.enabled=true;return true}function v(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,d);return true}if(!t.mousewheel.enabled)return false;m("removeEventListener");t.mousewheel.enabled=false;return true}e("init",(()=>{if(!t.params.mousewheel.enabled&&t.params.cssMode){v()}if(t.params.mousewheel.enabled)g()}));e("destroy",(()=>{if(t.params.cssMode){g()}if(t.mousewheel.enabled)v()}));Object.assign(t.mousewheel,{enable:g,disable:v})}function Rs(t,i,e,r){if(t.params.createElements){Object.keys(r).forEach((n=>{if(!e[n]&&e.auto===true){let s=Jr(t.el,`.${r[n]}`)[0];if(!s){s=Xr("div",r[n]);s.className=r[n];t.el.append(s)}e[n]=s;i[n]=s}}))}return e}function Ns({swiper:t,extendParams:i,on:e,emit:r}){i({navigation:{nextEl:null,prevEl:null,hideOnClick:false,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}});t.navigation={nextEl:null,prevEl:null};const n=t=>{if(!Array.isArray(t))t=[t].filter((t=>!!t));return t};function s(i){let e;if(i&&typeof i==="string"&&t.isElement){e=t.el.shadowRoot.querySelector(i);if(e)return e}if(i){if(typeof i==="string")e=[...document.querySelectorAll(i)];if(t.params.uniqueNavElements&&typeof i==="string"&&e.length>1&&t.el.querySelectorAll(i).length===1){e=t.el.querySelector(i)}}if(i&&!e)return i;return e}function o(i,e){const r=t.params.navigation;i=n(i);i.forEach((i=>{if(i){i.classList[e?"add":"remove"](...r.disabledClass.split(" "));if(i.tagName==="BUTTON")i.disabled=e;if(t.params.watchOverflow&&t.enabled){i.classList[t.isLocked?"add":"remove"](r.lockClass)}}}))}function a(){const{nextEl:i,prevEl:e}=t.navigation;if(t.params.loop){o(e,false);o(i,false);return}o(e,t.isBeginning&&!t.params.rewind);o(i,t.isEnd&&!t.params.rewind)}function l(i){i.preventDefault();if(t.isBeginning&&!t.params.loop&&!t.params.rewind)return;t.slidePrev();r("navigationPrev")}function c(i){i.preventDefault();if(t.isEnd&&!t.params.loop&&!t.params.rewind)return;t.slideNext();r("navigationNext")}function h(){const i=t.params.navigation;t.params.navigation=Rs(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(i.nextEl||i.prevEl))return;let e=s(i.nextEl);let r=s(i.prevEl);Object.assign(t.navigation,{nextEl:e,prevEl:r});e=n(e);r=n(r);const o=(e,r)=>{if(e){e.addEventListener("click",r==="next"?c:l)}if(!t.enabled&&e){e.classList.add(...i.lockClass.split(" "))}};e.forEach((t=>o(t,"next")));r.forEach((t=>o(t,"prev")))}function u(){let{nextEl:i,prevEl:e}=t.navigation;i=n(i);e=n(e);const r=(i,e)=>{i.removeEventListener("click",e==="next"?c:l);i.classList.remove(...t.params.navigation.disabledClass.split(" "))};i.forEach((t=>r(t,"next")));e.forEach((t=>r(t,"prev")))}e("init",(()=>{if(t.params.navigation.enabled===false){p()}else{h();a()}}));e("toEdge fromEdge lock unlock",(()=>{a()}));e("destroy",(()=>{u()}));e("enable disable",(()=>{let{nextEl:i,prevEl:e}=t.navigation;i=n(i);e=n(e);[...i,...e].filter((t=>!!t)).forEach((i=>i.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass)))}));e("click",((i,e)=>{let{nextEl:s,prevEl:o}=t.navigation;s=n(s);o=n(o);const a=e.target;if(t.params.navigation.hideOnClick&&!o.includes(a)&&!s.includes(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let i;if(s.length){i=s[0].classList.contains(t.params.navigation.hiddenClass)}else if(o.length){i=o[0].classList.contains(t.params.navigation.hiddenClass)}if(i===true){r("navigationShow")}else{r("navigationHide")}[...s,...o].filter((t=>!!t)).forEach((i=>i.classList.toggle(t.params.navigation.hiddenClass)))}}));const f=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" "));h();a()};const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" "));u()};Object.assign(t.navigation,{enable:f,disable:p,update:a,init:h,destroy:u})}function Ds(t=""){return`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ys({swiper:t,extendParams:i,on:e,emit:r}){const n="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:false,hideOnClick:false,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:false,type:"bullets",dynamicBullets:false,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}});t.pagination={el:null,bullets:[]};let s;let o=0;const a=t=>{if(!Array.isArray(t))t=[t].filter((t=>!!t));return t};function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(i,e){const{bulletActiveClass:r}=t.params.pagination;if(!i)return;i=i[`${e==="prev"?"previous":"next"}ElementSibling`];if(i){i.classList.add(`${r}-${e}`);i=i[`${e==="prev"?"previous":"next"}ElementSibling`];if(i){i.classList.add(`${r}-${e}-${e}`)}}}function h(i){const e=i.target.closest(Ds(t.params.pagination.bulletClass));if(!e){return}i.preventDefault();const r=sn(e)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;const i=t.getSlideIndexByData(r);const e=t.getSlideIndexByData(t.realIndex);if(i>t.slides.length-t.loopedSlides){t.loopFix({direction:i>e?"next":"prev",activeSlideIndex:i,slideTo:false})}t.slideToLoop(r)}else{t.slideTo(r)}}function u(){const i=t.rtl;const e=t.params.pagination;if(l())return;let n=t.pagination.el;n=a(n);let h;let u;const f=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;const p=t.params.loop?Math.ceil(f/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop){u=t.previousRealIndex||0;h=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex}else if(typeof t.snapIndex!=="undefined"){h=t.snapIndex;u=t.previousSnapIndex}else{u=t.previousIndex||0;h=t.activeIndex||0}if(e.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let a;let l;let f;if(e.dynamicBullets){s=ln(r[0],t.isHorizontal()?"width":"height",true);n.forEach((i=>{i.style[t.isHorizontal()?"width":"height"]=`${s*(e.dynamicMainBullets+4)}px`}));if(e.dynamicMainBullets>1&&u!==undefined){o+=h-(u||0);if(o>e.dynamicMainBullets-1){o=e.dynamicMainBullets-1}else if(o<0){o=0}}a=Math.max(h-o,0);l=a+(Math.min(r.length,e.dynamicMainBullets)-1);f=(l+a)/2}r.forEach((t=>{const i=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${e.bulletActiveClass}${t}`))].map((t=>typeof t==="string"&&t.includes(" ")?t.split(" "):t)).flat();t.classList.remove(...i)}));if(n.length>1){r.forEach((i=>{const r=sn(i);if(r===h){i.classList.add(...e.bulletActiveClass.split(" "))}else if(t.isElement){i.setAttribute("part","bullet")}if(e.dynamicBullets){if(r>=a&&r<=l){i.classList.add(...`${e.bulletActiveClass}-main`.split(" "))}if(r===a){c(i,"prev")}if(r===l){c(i,"next")}}}))}else{const i=r[h];if(i){i.classList.add(...e.bulletActiveClass.split(" "))}if(t.isElement){r.forEach(((t,i)=>{t.setAttribute("part",i===h?"bullet-active":"bullet")}))}if(e.dynamicBullets){const t=r[a];const i=r[l];for(let n=a;n<=l;n+=1){if(r[n]){r[n].classList.add(...`${e.bulletActiveClass}-main`.split(" "))}}c(t,"prev");c(i,"next")}}if(e.dynamicBullets){const n=Math.min(r.length,e.dynamicMainBullets+4);const o=(s*n-s)/2-f*s;const a=i?"right":"left";r.forEach((i=>{i.style[t.isHorizontal()?a:"top"]=`${o}px`}))}}n.forEach(((i,n)=>{if(e.type==="fraction"){i.querySelectorAll(Ds(e.currentClass)).forEach((t=>{t.textContent=e.formatFractionCurrent(h+1)}));i.querySelectorAll(Ds(e.totalClass)).forEach((t=>{t.textContent=e.formatFractionTotal(p)}))}if(e.type==="progressbar"){let r;if(e.progressbarOpposite){r=t.isHorizontal()?"vertical":"horizontal"}else{r=t.isHorizontal()?"horizontal":"vertical"}const n=(h+1)/p;let s=1;let o=1;if(r==="horizontal"){s=n}else{o=n}i.querySelectorAll(Ds(e.progressbarFillClass)).forEach((i=>{i.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${o})`;i.style.transitionDuration=`${t.params.speed}ms`}))}if(e.type==="custom"&&e.renderCustom){i.innerHTML=e.renderCustom(t,h+1,p);if(n===0)r("paginationRender",i)}else{if(n===0)r("paginationRender",i);r("paginationUpdate",i)}if(t.params.watchOverflow&&t.enabled){i.classList[t.isLocked?"add":"remove"](e.lockClass)}}))}function f(){const i=t.params.pagination;if(l())return;const e=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let n=t.pagination.el;n=a(n);let s="";if(i.type==="bullets"){let r=t.params.loop?Math.ceil(e/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.freeMode&&t.params.freeMode.enabled&&r>e){r=e}for(let e=0;e<r;e+=1){if(i.renderBullet){s+=i.renderBullet.call(t,e,i.bulletClass)}else{s+=`<${i.bulletElement} ${t.isElement?'part="bullet"':""} class="${i.bulletClass}"></${i.bulletElement}>`}}}if(i.type==="fraction"){if(i.renderFraction){s=i.renderFraction.call(t,i.currentClass,i.totalClass)}else{s=`<span class="${i.currentClass}"></span>`+" / "+`<span class="${i.totalClass}"></span>`}}if(i.type==="progressbar"){if(i.renderProgressbar){s=i.renderProgressbar.call(t,i.progressbarFillClass)}else{s=`<span class="${i.progressbarFillClass}"></span>`}}t.pagination.bullets=[];n.forEach((e=>{if(i.type!=="custom"){e.innerHTML=s||""}if(i.type==="bullets"){t.pagination.bullets.push(...e.querySelectorAll(Ds(i.bulletClass)))}}));if(i.type!=="custom"){r("paginationRender",n[0])}}function p(){t.params.pagination=Rs(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const i=t.params.pagination;if(!i.el)return;let e;if(typeof i.el==="string"&&t.isElement){e=t.el.shadowRoot.querySelector(i.el)}if(!e&&typeof i.el==="string"){e=[...document.querySelectorAll(i.el)]}if(!e){e=i.el}if(!e||e.length===0)return;if(t.params.uniqueNavElements&&typeof i.el==="string"&&Array.isArray(e)&&e.length>1){e=[...t.el.querySelectorAll(i.el)];if(e.length>1){e=e.filter((i=>{if(on(i,".swiper")[0]!==t.el)return false;return true}))[0]}}if(Array.isArray(e)&&e.length===1)e=e[0];Object.assign(t.pagination,{el:e});e=a(e);e.forEach((e=>{if(i.type==="bullets"&&i.clickable){e.classList.add(i.clickableClass)}e.classList.add(i.modifierClass+i.type);e.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass);if(i.type==="bullets"&&i.dynamicBullets){e.classList.add(`${i.modifierClass}${i.type}-dynamic`);o=0;if(i.dynamicMainBullets<1){i.dynamicMainBullets=1}}if(i.type==="progressbar"&&i.progressbarOpposite){e.classList.add(i.progressbarOppositeClass)}if(i.clickable){e.addEventListener("click",h)}if(!t.enabled){e.classList.add(i.lockClass)}}))}function d(){const i=t.params.pagination;if(l())return;let e=t.pagination.el;if(e){e=a(e);e.forEach((e=>{e.classList.remove(i.hiddenClass);e.classList.remove(i.modifierClass+i.type);e.classList.remove(t.isHorizontal()?i.horizontalClass:i.verticalClass);if(i.clickable){e.removeEventListener("click",h)}}))}if(t.pagination.bullets)t.pagination.bullets.forEach((t=>t.classList.remove(...i.bulletActiveClass.split(" "))))}e("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const i=t.params.pagination;let{el:e}=t.pagination;e=a(e);e.forEach((e=>{e.classList.remove(i.horizontalClass,i.verticalClass);e.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass)}))}));e("init",(()=>{if(t.params.pagination.enabled===false){g()}else{p();f();u()}}));e("activeIndexChange",(()=>{if(typeof t.snapIndex==="undefined"){u()}}));e("snapIndexChange",(()=>{u()}));e("snapGridLengthChange",(()=>{f();u()}));e("destroy",(()=>{d()}));e("enable disable",(()=>{let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}}));e("lock unlock",(()=>{u()}));e("click",((i,e)=>{const n=e.target;let{el:s}=t.pagination;if(!Array.isArray(s))s=[s].filter((t=>!!t));if(t.params.pagination.el&&t.params.pagination.hideOnClick&&s&&s.length>0&&!n.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const i=s[0].classList.contains(t.params.pagination.hiddenClass);if(i===true){r("paginationShow")}else{r("paginationHide")}s.forEach((i=>i.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList.remove(t.params.pagination.paginationDisabledClass)))}p();f();u()};const g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList.add(t.params.pagination.paginationDisabledClass)))}d()};Object.assign(t.pagination,{enable:m,disable:g,render:f,update:u,init:p,destroy:d})}function Gs({swiper:t,extendParams:i,emit:e,once:r}){i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function n(){if(t.params.cssMode)return;const i=t.getTranslate();t.setTranslate(i);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;const{touchEventsData:i,touches:e}=t;if(i.velocities.length===0){i.velocities.push({position:e[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime})}i.velocities.push({position:e[t.isHorizontal()?"currentX":"currentY"],time:Zr()})}function o({currentPos:i}){if(t.params.cssMode)return;const{params:n,wrapperEl:s,rtlTranslate:o,snapGrid:a,touchEventsData:l}=t;const c=Zr();const h=c-l.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<a.length){t.slideTo(a.length-1)}else{t.slideTo(t.slides.length-1)}return}if(n.freeMode.momentum){if(l.velocities.length>1){const i=l.velocities.pop();const e=l.velocities.pop();const r=i.position-e.position;const s=i.time-e.time;t.velocity=r/s;t.velocity/=2;if(Math.abs(t.velocity)<n.freeMode.minimumVelocity){t.velocity=0}if(s>150||Zr()-i.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=n.freeMode.momentumVelocityRatio;l.velocities.length=0;let i=1e3*n.freeMode.momentumRatio;const c=t.velocity*i;let h=t.translate+c;if(o)h=-h;let u=false;let f;const p=Math.abs(t.velocity)*20*n.freeMode.momentumBounceRatio;let d;if(h<t.maxTranslate()){if(n.freeMode.momentumBounce){if(h+t.maxTranslate()<-p){h=t.maxTranslate()-p}f=t.maxTranslate();u=true;l.allowMomentumBounce=true}else{h=t.maxTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(h>t.minTranslate()){if(n.freeMode.momentumBounce){if(h-t.minTranslate()>p){h=t.minTranslate()+p}f=t.minTranslate();u=true;l.allowMomentumBounce=true}else{h=t.minTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(n.freeMode.sticky){let i;for(let t=0;t<a.length;t+=1){if(a[t]>-h){i=t;break}}if(Math.abs(a[i]-h)<Math.abs(a[i-1]-h)||t.swipeDirection==="next"){h=a[i]}else{h=a[i-1]}h=-h}if(d){r("transitionEnd",(()=>{t.loopFix()}))}if(t.velocity!==0){if(o){i=Math.abs((-h-t.translate)/t.velocity)}else{i=Math.abs((h-t.translate)/t.velocity)}if(n.freeMode.sticky){const e=Math.abs((o?-h:h)-t.translate);const r=t.slidesSizesGrid[t.activeIndex];if(e<r){i=n.speed}else if(e<2*r){i=n.speed*1.5}else{i=n.speed*2.5}}}else if(n.freeMode.sticky){t.slideToClosest();return}if(n.freeMode.momentumBounce&&u){t.updateProgress(f);t.setTransition(i);t.setTranslate(h);t.transitionStart(true,t.swipeDirection);t.animating=true;an(s,(()=>{if(!t||t.destroyed||!l.allowMomentumBounce)return;e("momentumBounce");t.setTransition(n.speed);setTimeout((()=>{t.setTranslate(f);an(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){e("_freeModeNoMomentumRelease");t.updateProgress(h);t.setTransition(i);t.setTranslate(h);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;an(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(h)}t.updateActiveIndex();t.updateSlidesClasses()}else if(n.freeMode.sticky){t.slideToClosest();return}else if(n.freeMode){e("_freeModeNoMomentumRelease")}if(!n.freeMode.momentum||h>=n.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:n,onTouchMove:s,onTouchEnd:o}})}const $s='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:var(--border-radius, 12px);background-color:var(--color-surface-container-low);color:var(--color-on-surface);--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 a{color:var(--color-primary-app)}: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)}.poi-type-img-container{position:relative}.poi-type-img-container .poi-img,.poi-type-img-container .default-poi-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.poi-type-img-container .poi-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.poi-type-img-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.poi-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.poi-type-img-container .poi-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.poi-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.poi-name{font-size:16px;line-height:24px}.poi-description{font-size:14px;line-height:20px}.poi-description-short{font-size:14px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.handle-poi-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}';const Zs=class{constructor(t){e(this,t);this.poi=undefined;this.displayShortDescription=true;this.showPoiDescriptionButton=false;this.displayFullscreen=false}componentDidLoad(){this.swiperPoi=new Is(this.swiperPoiRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElPoiRef,nextEl:this.nextElPoiRef},pagination:{el:this.paginationElPoiRef},allowTouchMove:false,keyboard:false});this.swiperPoiRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperPoi.keyboard.enable()}else{this.swiperPoi.keyboard.disable()}};this.showPoiDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight}handlePoiDescription(){this.displayShortDescription=!this.displayShortDescription}handleFullscreen(){if(this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].url){this.swiperPoiRef.requestFullscreen()}}render(){var t;const i=a(`${""}assets/default-image.svg`);return r(n,null,r("div",{class:"poi-type-img-container"},r("img",{crossorigin:"anonymous",class:"poi-type",src:`${(t=w.poiTypes.find((t=>t.id===this.poi.type)))===null||t===void 0?void 0:t.pictogram}`}),r("div",{class:"swiper",ref:t=>this.swiperPoiRef=t},r("div",{class:"swiper-wrapper"},this.poi.attachments.length>0?this.poi.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`poi-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:i,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElPoiRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElPoiRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElPoiRef=t}))),r("div",{class:"poi-sub-container"},r("div",{class:"poi-name"},this.poi.name),r("div",{class:this.displayShortDescription?"poi-description-short":"poi-description",innerHTML:this.poi.description,ref:t=>this.descriptionRef=t}),this.showPoiDescriptionButton&&r("div",{class:"handle-poi-description",onClick:()=>this.handlePoiDescription()},this.displayShortDescription?l[w.language].readMore:l[w.language].readLess)))}};Zs.style=$s;const Hs='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host span{color:var(--color-on-primary-container);font-size:24px;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 Us=class{constructor(t){e(this,t);this.fontFamily="Roboto"}onSearchChange(t){w.searchValue=t.target.value;if(w.mode==="treks"){w.currentTreks=T()}else if(w.mode==="touristicContents"){w.currentTouristicContents=I()}else if(w.mode==="touristicEvents"){w.currentTouristicEvents=B()}}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),r("input",{onInput:t=>this.onSearchChange(t),class:"search-input",type:"search",placeholder:"Rechercher",value:w.searchValue}))}};Us.style=Hs;const Qs=".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-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%}.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 Vs=class{constructor(t){e(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}changeMode(t){w.searchValue="";if(t==="treks"&&w.currentTreks){O.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedThemesFilters=0;w.selectedLocationFilters=0;w.currentTreks=T()}else if(t==="touristicContents"&&w.currentTouristicContents){j.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicContents=I()}else if(t==="touristicEvents"&&w.currentTouristicEvents){S.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicEvents=B()}w.mode=t}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("div",{class:"segmented-buttons-container"},this.treks&&r("label",{class:`segment${w.mode==="treks"?" selected-segment":""}`,onClick:()=>this.changeMode("treks")},l[w.language].home.segment.treks),this.touristicContents&&r("label",{class:`segment${w.mode==="touristicContents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicContents")},l[w.language].home.segment.touristicContents),this.touristicEvents&&r("label",{class:`segment${w.mode==="touristicEvents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicEvents")},l[w.language].home.segment.touristicEvents)))}};Vs.style=Qs;const Ws='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host span{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';const Ks=class{constructor(t){e(this,t)}handleSelect(t){w.treks=null;w.currentTreks=null;w.currentTrek=null;w.language=t.target.value}render(){return r(n,null,r("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),r("select",{onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},w.languages.map((t=>r("option",{selected:t===w.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())))))}};Ks.style=Ws;const qs=":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.sensitive-area-title{font-size:22px;line-height:28px;padding:12px 0px;font-weight:400}.sensitive-area-description{font-size:16px;line-height:24px}.sensitive-area-period-container .sensitive-area-period-title,.sensitive-area-period-container .sensitive-area-practice-title,.sensitive-area-period-container .sensitive-area-contact-title,.sensitive-area-practice-container .sensitive-area-period-title,.sensitive-area-practice-container .sensitive-area-practice-title,.sensitive-area-practice-container .sensitive-area-contact-title,.sensitive-area-contact-container .sensitive-area-period-title,.sensitive-area-contact-container .sensitive-area-practice-title,.sensitive-area-contact-container .sensitive-area-contact-title{font-size:16px;line-height:24px;padding:12px 0px}.sensitive-area-period-container .sensitive-area-period-values,.sensitive-area-period-container .sensitive-area-practice-values,.sensitive-area-practice-container .sensitive-area-period-values,.sensitive-area-practice-container .sensitive-area-practice-values,.sensitive-area-contact-container .sensitive-area-period-values,.sensitive-area-contact-container .sensitive-area-practice-values{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";const Js=class{constructor(t){e(this,t);this.sensitiveArea=undefined}render(){return r(n,null,r("div",{class:"sensitive-area-title"},this.sensitiveArea.name),r("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&r("div",{class:"sensitive-area-practice-container"},r("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés :"),r("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map(((t,i)=>{const e=w.practices.find((i=>i.id===t));if(e){return r("div",{innerHTML:`${e.name.toUpperCase()}${i+1!==this.sensitiveArea.practices.length?" -&nbsp;":""}`})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&r("div",{class:"sensitive-area-period-container"},r("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),r("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map(((t,i)=>{if(t){return r("div",{innerHTML:`${new Date(0,i+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()}${this.sensitiveArea.period.slice(i+1).find((t=>t))?" -&nbsp;":""}`})}})))),r("div",{class:"sensitive-area-contact-container"},r("div",{class:"sensitive-area-contact-title"},"Contact"),r("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))}};Js.style=qs;const Xs='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;--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 a{color:var(--color-primary-app)}: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)}.touristic-content-type-img-container{position:relative}.touristic-content-type-img-container .touristic-content-img,.touristic-content-type-img-container .default-touristic-content-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.touristic-content-type-img-container .touristic-content-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.touristic-content-type-img-container .default-touristic-content-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.touristic-content-type-img-container .touristic-content-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.touristic-content-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.touristic-content-sub-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:12px}.touristic-content-sub-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-sub-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-sub-container .touristic-content-name{font-size:16px;line-height:24px}.touristic-content-more-detail-container{padding:0px 12px 12px 12px}.touristic-content-more-detail-container .more-details-button{cursor:pointer;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);width:100%;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;border:none;font-size:14px;font-family:var(--font-family)}.touristic-content-more-detail-container .more-details-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-content-more-detail-container .more-details-button span{font-size:18px}.touristic-content-card-container,.touristic-content-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}.touristic-content-card-container .image,.touristic-content-card-large-view-container .image{height:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.touristic-content-card-container{width:100%;max-width:350px}.touristic-content-card-container .image{width:100%;max-height:200px}.touristic-content-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.touristic-content-card-large-view-container .image{width:250px}.is-inside-vertical-list{cursor:pointer;border:none}.selected-touristic-content-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}';const to=class{constructor(t){e(this,t);this.touristicContentCardPress=o(this,"touristicContentCardPress",7);this.cardTouristicContentMouseOver=o(this,"cardTouristicContentMouseOver",7);this.cardTouristicContentMouseLeave=o(this,"cardTouristicContentMouseLeave",7);this.fontFamily="Roboto";this.touristicContent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}componentDidLoad(){if(this.swiperTouristicContentRef){this.swiperTouristicContent=new Is(this.swiperTouristicContentRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElTouristicContentRef,nextEl:this.nextElTouristicContentRef},pagination:{el:this.paginationElTouristicContentRef},allowTouchMove:false,keyboard:false});this.swiperTouristicContentRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperTouristicContent.keyboard.enable()}else{this.swiperTouristicContent.keyboard.disable()}}}}handleFullscreen(){if(this.touristicContent.attachments&&this.touristicContent.attachments[0]&&this.touristicContent.attachments[0].url){this.swiperTouristicContentRef.requestFullscreen()}}handleMouseOver(){this.cardTouristicContentMouseOver.emit(this.touristicContent.id)}handleMouseLeave(){this.cardTouristicContentMouseLeave.emit()}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicContentCategories.find((t=>t.id===this.touristicContent.category));return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},r("div",{class:this.isLargeView?`touristic-content-card-large-view-container${w.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:`touristic-content-card-container${w.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.touristicContentCardPress.emit(this.touristicContent.id)}}},r("div",{class:"touristic-content-type-img-container"},this.isInsideHorizontalList?r("div",{class:"swiper",ref:t=>this.swiperTouristicContentRef=t},r("div",{class:"swiper-wrapper"},this.touristicContent.attachments.filter((t=>t.type==="image")).length>0?this.touristicContent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`touristic-content-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-touristic-content-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElTouristicContentRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElTouristicContentRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElTouristicContentRef=t})):this.touristicContent.attachments.filter((t=>t.type==="image")).length>0?r("img",{crossorigin:"anonymous",class:"image",src:`${this.touristicContent.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}):r("div",null)),r("div",{class:"touristic-content-sub-container"},r("div",{class:"touristic-content-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-content-category-name"},i.label)),r("div",{class:"touristic-content-name"},this.touristicContent.name)),this.isInsideHorizontalList&&r("div",{class:"touristic-content-more-detail-container"},r("button",{class:"more-details-button",onClick:()=>this.touristicContentCardPress.emit(this.touristicContent.id)},"Plus de détails"))))}};to.style=Xs;const io='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.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)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';const eo=class{constructor(t){e(this,t);this.displayFullscreen=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(){if(this.swiperImagesRef){this.swiperImages=new Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}handleFullscreen(){if(w.currentTouristicContent.attachments&&w.currentTouristicContent.attachments[0]&&w.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicContentCategories&&w.currentTouristicContent&&w.touristicContentCategories.find((t=>t.id===w.currentTouristicContent.category));const e=w.currentTouristicContent&&w.currentTouristicContent.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return r(n,{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?"8px":"104px"}},w.currentTouristicContent&&r("div",{class:"touristic-content-detail-container",ref:t=>this.touristicContentDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},w.currentTouristicContent.attachments.length>0?w.currentTouristicContent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"touristic-content-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-content-category-name"},i.label)),r("div",{class:"name"},w.currentTouristicContent.name),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].download),r("div",{class:"links-container"},r("a",{href:`${w.currentTouristicContent.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),w.currentTouristicContent.description_teaser&&r("div",null,r("div",{class:"divider"}),r("div",{class:"description-teaser",innerHTML:w.currentTouristicContent.description_teaser})),r("div",{class:"divider"}),w.currentTouristicContent.practical_info&&r("div",{class:"description-container",ref:t=>this.descriptionRef=t},r("div",{class:"description-title"},l[w.language].description),r("div",{class:"description",innerHTML:w.currentTouristicContent.description})),e&&e.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].city," : "),r("div",{innerHTML:e.join(", ")})),w.currentTouristicContent.practical_info&&r("div",null,r("div",{class:"divider"}),r("div",{class:"useful-information-container"},r("div",{class:"useful-information-title"},l[w.language].usefulInformation," : "),r("div",{innerHTML:w.currentTouristicContent.practical_info}))),(w.currentTouristicContent.contact||w.currentTouristicContent.email||w.currentTouristicContent.website)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"contact-container"},r("div",{class:"contact-title"},l[w.language].contact," : "),w.currentTouristicContent.contact&&r("div",{innerHTML:w.currentTouristicContent.contact}),w.currentTouristicContent.email&&r("div",{class:"email-container"},r("div",null,l[w.language].email," : "),r("div",{innerHTML:w.currentTouristicContent.email})),w.currentTouristicContent.website&&r("div",{class:"website-container"},r("div",null,l[w.language].website," : "),r("div",{innerHTML:w.currentTouristicContent.website})))),r("div",{class:"detail-bottom-space"})))}};eo.style=io;const ro=class{constructor(t){e(this,t);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(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContent()}handleTouristicContent(){const t=[];t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${w.api}touristiccontent/${this.touristicContentId}/?language=${w.language}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.touristicContentCategories=i.results}w.currentTouristicContent=e})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const no='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-content-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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}.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 so=class{constructor(t){e(this,t);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;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTouristicContents){this.touristicContentsToDisplay=[...w.currentTouristicContents.slice(0,this.step)]}b("currentTouristicContents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTouristicContents){this.touristicContentsToDisplay=[...w.currentTouristicContents.slice(0,this.step)]}}));b("touristicContentsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.touristicContentsWithinBounds){this.touristicContentsToDisplay=[...w.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<w.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=w.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=w.touristicContentsWithinBounds.length?w.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(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.touristicContentsWithinBounds&&r("div",{class:"current-touristic-contents-within-bounds-length"},`${w.touristicContentsWithinBounds.length} ${w.touristicContentsWithinBounds.length>1?l[w.language].home.touristicContents:l[w.language].home.touristicContent}`),r("div",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((t=>r("grw-touristic-content-card",{fontFamily:this.fontFamily,"reset-store-on-disconnected":"false",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})))),!this.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};so.style=no;const oo=class{constructor(t){e(this,t);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(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContents()}handleTouristicContents(){let t=`${w.api}touristiccontent/?language=${w.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 i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.districts?fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.districts=i.results}if(e){w.touristicContentCategories=e.results}w.touristicContents=r.results;w.currentTouristicContents=r.results})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const ao='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;--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 a{color:var(--color-primary-app)}: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)}.touristic-event-type-img-container{position:relative}.touristic-event-type-img-container .touristic-event-img,.touristic-event-type-img-container .default-touristic-event-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.touristic-event-type-img-container .touristic-event-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.touristic-event-type-img-container .default-touristic-event-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.touristic-event-type-img-container .touristic-event-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.touristic-event-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.touristic-event-sub-container .touristic-event-type-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:12px}.touristic-event-sub-container .touristic-event-type-container .touristic-event-type-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-sub-container .touristic-event-type-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-sub-container .touristic-event-name{font-size:16px;line-height:24px}.touristic-event-more-detail-container{padding:0px 12px 12px 12px}.touristic-event-more-detail-container .more-details-button{cursor:pointer;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);width:100%;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;border:none;font-size:14px;font-family:var(--font-family)}.touristic-event-more-detail-container .more-details-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-event-more-detail-container .more-details-button span{font-size:18px}.touristic-event-card-container,.touristic-event-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}.touristic-event-card-container .image,.touristic-event-card-large-view-container .image{height:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.touristic-event-container{width:100%;max-width:350px}.touristic-event-container .image{width:100%;max-height:200px}.touristic-event-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.touristic-event-card-large-view-container .image{width:250px}.is-inside-vertical-list{cursor:pointer;border:none}.selected-touristic-event-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-event-date-container{margin-top:12px}';const lo=class{constructor(t){e(this,t);this.touristicEventCardPress=o(this,"touristicEventCardPress",7);this.cardTouristicEventMouseOver=o(this,"cardTouristicEventMouseOver",7);this.cardTouristicEventMouseLeave=o(this,"cardTouristicEventMouseLeave",7);this.fontFamily="Roboto";this.touristicEvent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}componentDidLoad(){if(this.swiperTouristicEventRef){this.swiperTouristicEvent=new Is(this.swiperTouristicEventRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElTouristicEventRef,nextEl:this.nextElTouristicEventRef},pagination:{el:this.paginationElTouristicEventRef},allowTouchMove:false,keyboard:false});this.swiperTouristicEventRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperTouristicEvent.keyboard.enable()}else{this.swiperTouristicEvent.keyboard.disable()}}}}handleFullscreen(){if(this.touristicEvent.attachments&&this.touristicEvent.attachments[0]&&this.touristicEvent.attachments[0].url){this.swiperTouristicEventRef.requestFullscreen()}}handleMouseOver(){this.cardTouristicEventMouseOver.emit(this.touristicEvent.id)}handleMouseLeave(){this.cardTouristicEventMouseLeave.emit()}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicEventTypes.find((t=>t.id===this.touristicEvent.type));return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},r("div",{class:this.isLargeView?`touristic-event-card-large-view-container${w.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:`touristic-event-card-container${w.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.touristicEventCardPress.emit(this.touristicEvent.id)}}},r("div",{class:"touristic-event-type-img-container"},this.isInsideHorizontalList?r("div",{class:"swiper",ref:t=>this.swiperTouristicEventRef=t},r("div",{class:"swiper-wrapper"},this.touristicEvent.attachments.length>0?this.touristicEvent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`touristic-event-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-touristic-event-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElTouristicEventRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElTouristicEventRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElTouristicEventRef=t})):this.touristicEvent.attachments.filter((t=>t.type==="image")).length>0?r("img",{crossorigin:"anonymous",class:"image",src:`${this.touristicEvent.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}):r("div",null)),r("div",{class:"touristic-event-sub-container"},r("div",{class:"touristic-event-type-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-event-type-name"},i.type)),r("div",{class:"touristic-event-name"},this.touristicEvent.name),(this.touristicEvent.begin_date||this.touristicEvent.end_date)&&r("div",{class:"touristic-event-date-container"},this.touristicEvent.begin_date&&r("div",{class:"touristic-event-date"},"Date de début : ",this.touristicEvent.begin_date),this.touristicEvent.end_date&&r("div",{class:"touristic-event-date"},"Date de fin : ",this.touristicEvent.end_date))),this.isInsideHorizontalList&&r("div",{class:"touristic-event-more-detail-container"},r("button",{class:"more-details-button",onClick:()=>this.touristicEventCardPress.emit(this.touristicEvent.id)},"Plus de détails"))))}};lo.style=ao;const co='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';const ho=class{constructor(t){e(this,t);this.displayFullscreen=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 Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}handleFullscreen(){if(w.currentTouristicEvent.attachments&&w.currentTouristicEvent.attachments[0]&&w.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicEventTypes&&w.currentTouristicEvent&&w.touristicEventTypes.find((t=>t.id===w.currentTouristicEvent.type));const e=w.currentTouristicEvent&&w.currentTouristicEvent.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return r(n,{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?"8px":"104px"}},w.currentTouristicEvent&&r("div",{class:"touristic-event-detail-container",ref:t=>this.touristicEventDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},w.currentTouristicEvent.attachments.length>0?w.currentTouristicEvent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"touristic-event-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-event-category-name"},i.type)),r("div",{class:"name"},w.currentTouristicEvent.name),(w.currentTouristicEvent.begin_date||w.currentTouristicEvent.end_date)&&r("div",{class:"touristic-event-date-container"},w.currentTouristicEvent.begin_date&&r("div",{class:"touristic-event-date"},"Date de début : ",w.currentTouristicEvent.begin_date),w.currentTouristicEvent.end_date&&r("div",{class:"touristic-event-date"},"Date de fin : ",w.currentTouristicEvent.end_date)),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].download),r("div",{class:"links-container"},r("a",{href:`${w.currentTouristicEvent.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),w.currentTouristicEvent.description_teaser&&r("div",null,r("div",{class:"divider"}),r("div",{class:"description-teaser",innerHTML:w.currentTouristicEvent.description_teaser})),r("div",{class:"divider"}),w.currentTouristicEvent.practical_info&&r("div",{class:"description-container",ref:t=>this.descriptionRef=t},r("div",{class:"description-title"},l[w.language].description),r("div",{class:"description",innerHTML:w.currentTouristicEvent.description})),e&&e.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].city," : "),r("div",{innerHTML:e.join(", ")})),w.currentTouristicEvent.practical_info&&r("div",null,r("div",{class:"divider"}),r("div",{class:"useful-information-container"},r("div",{class:"useful-information-title"},l[w.language].usefulInformation," : "),r("div",{innerHTML:w.currentTouristicEvent.practical_info}))),(w.currentTouristicEvent.contact||w.currentTouristicEvent.email||w.currentTouristicEvent.website)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"contact-container"},r("div",{class:"contact-title"},l[w.language].contact," : "),w.currentTouristicEvent.contact&&r("div",{innerHTML:w.currentTouristicEvent.contact}),w.currentTouristicEvent.email&&r("div",{class:"email-container"},r("div",null,l[w.language].email," : "),r("div",{innerHTML:w.currentTouristicEvent.email})),w.currentTouristicEvent.website&&r("div",{class:"website-container"},r("div",null,l[w.language].website," : "),r("div",{innerHTML:w.currentTouristicEvent.website})))),r("div",{class:"detail-bottom-space"})))}};ho.style=co;const uo=class{constructor(t){e(this,t);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(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvent()}handleTouristicEvent(){const t=[];t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${w.api}touristicevent/${this.touristicEventId}/?language=${w.language}&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.touristicEventTypes=i.results}w.currentTouristicEvent=e})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const fo='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-event-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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}.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 po=class{constructor(t){e(this,t);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;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTouristicEvents){this.touristicEventsToDisplay=[...w.currentTouristicEvents.slice(0,this.step)]}b("currentTouristicEvents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTouristicContents){this.touristicEventsToDisplay=[...w.currentTouristicEvents.slice(0,this.step)]}}));b("touristicEventsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.touristicEventsWithinBounds){this.touristicEventsToDisplay=[...w.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<w.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=w.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=w.touristicEventsWithinBounds.length?w.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(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.touristicEventsWithinBounds&&r("div",{class:"current-touristic-events-within-bounds-length"},`${w.touristicEventsWithinBounds.length} ${w.touristicEventsWithinBounds.length>1?l[w.language].home.touristicEvents:l[w.language].home.touristicEvent}`),r("div",{class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((t=>r("grw-touristic-event-card",{"reset-store-on-disconnected":"false",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})))),!this.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};po.style=fo;const mo=class{constructor(t){e(this,t);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(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvents()}handleTouristicEvents(){let t=`${w.api}touristicevent/?language=${w.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 i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.districts?fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.districts=i.results}if(e){w.touristicEventTypes=e.results}w.touristicEvents=r.results;w.currentTouristicEvents=r.results})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const go='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.trek-card-container .sub-container,.trek-card-large-view-container .sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .sub-container .themes-container,.trek-card-large-view-container .sub-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}.trek-card-container .sub-container .themes-container .theme,.trek-card-large-view-container .sub-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);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-wrap:nowrap}.trek-card-container .sub-container .icons-labels-container,.trek-card-large-view-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;color:var(--color-on-surface);font-size:14px;line-height:20px;font-weight:500}.trek-card-container .sub-container .icons-labels-container .row,.trek-card-large-view-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-card-container .sub-container .icons-labels-container .row:not(:last-child),.trek-card-large-view-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:12px}.trek-card-container .sub-container .icons-labels-container .row .icon-label,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:50%}.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2),.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 4px}.trek-card-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-container .sub-container .icons-labels-container .row .icon-label span,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:24px;margin-right:8px}.trek-card-container .sub-container .icons-labels-container .row .practice img,.trek-card-large-view-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.selected-trek-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-card-container{width:100%;max-width:350px}.trek-card-container .image{width:100%;max-height:200px}.trek-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}.trek-step-card{width:auto}';const vo=class{constructor(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.cardTrekMouseOver=o(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=o(this,"cardTrekMouseLeave",7);this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.departureCity=undefined;this.trek=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true;this.isStep=undefined}connectedCallback(){this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.difficulty=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.departureCity=w.cities.find((t=>t.id===this.currentTrek.departure_city))}b("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.difficulty=this.currentTrek.difficulty&&w.difficulties?w.difficulties.find((t=>t.id===this.currentTrek.difficulty)):null;this.route=this.currentTrek.route&&w.routes?w.routes.find((t=>t.id===this.currentTrek.route)):null;this.practice=this.currentTrek.practice&&w.practices?w.practices.find((t=>t.id===this.currentTrek.practice)):null;this.themes=this.currentTrek.themes&&w.themes?w.themes.filter((t=>this.currentTrek.themes.includes(t.id))):null;this.departureCity=this.currentTrek.departure_city&&w.cities?w.cities.find((t=>t.id===this.currentTrek.departure_city)):null}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}handleMouseOver(){this.cardTrekMouseOver.emit(this.currentTrek.id)}handleMouseLeave(){this.cardTrekMouseLeave.emit()}render(){var t,i,e,s,o,a,l;return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto","--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}},this.currentTrek&&r("div",{class:this.isStep?`trek-card-container trek-step-card${w.selectedStepId===this.currentTrek.id?" selected-trek-card":""}`:this.isLargeView?`trek-card-large-view-container${w.selectedTrekId===this.currentTrek.id?" selected-trek-card":""}`:`trek-card-container${w.selectedTrekId===this.currentTrek.id?" selected-trek-card":""}`,onClick:()=>this.trekCardPress.emit(this.currentTrek.id)},this.currentTrek.attachments.filter((t=>t.type==="image")).length>0&&r("img",{crossorigin:"anonymous",class:"image",src:`${this.currentTrek.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}),r("div",{class:"sub-container"},this.departureCity&&r("div",{class:"departure"},this.departureCity.name),r("div",{class:"name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&r("div",{class:"themes-container"},this.themes.map((t=>r("div",{class:"theme"},t.label)))),r("div",{class:"icons-labels-container"},r("div",{class:"row"},r("div",{class:"icon-label difficulty"},((i=this.difficulty)===null||i===void 0?void 0:i.pictogram)&&r("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(e=this.difficulty)===null||e===void 0?void 0:e.label),r("div",{class:"icon-label duration"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),C(this.currentTrek.duration))),r("div",{class:"row"},r("div",{class:"icon-label length"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),E(this.currentTrek.length_2d)),r("div",{class:"icon-label ascent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),P(this.currentTrek.ascent))),!this.isStep&&r("div",{class:"row"},r("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&r("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route),r("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&r("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(l=this.practice)===null||l===void 0?void 0:l.name))))))}};vo.style=go;const wo='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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{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)}.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 .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 .name{color:var(--color-on-surface);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.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}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.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 .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, 8px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);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 .gear-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{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 .gear-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{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 .gear-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{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 .gear-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{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .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{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}.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:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px)}.current-advice-container span{font-size:24px;width:26px;margin-right:8px}.label-container{margin-top:12px;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 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}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.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 .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container #weather-widget{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px}.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)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}';const bo=1;const yo={visible:true,indicator:false,ref:"presentationOptionRef"};const xo={visible:false,indicator:false,ref:"stepsOptionRef"};const ko={visible:false,indicator:false,ref:"descriptionOptionRef"};const Ao={visible:false,indicator:false,ref:"recommendationsOptionRef"};const _o={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};const Mo={visible:false,indicator:false,ref:"informationPlacesOptionRef"};const zo={visible:false,indicator:false,ref:"poisOptionRef"};const Lo={visible:false,indicator:false,ref:"touristicContentsOptionRef"};const Co={visible:false,indicator:false,ref:"touristicEventsOptionRef"};const Eo={presentation:yo,steps:xo,description:ko,recommendations:Ao,sensitiveArea:_o,informationPlaces:Mo,pois:zo,touristicContents:Lo,touristicEvents:Co};const Po=class{constructor(t){e(this,t);this.descriptionIsInViewport=o(this,"descriptionIsInViewport",7);this.parkingIsInViewport=o(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=o(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=o(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=o(this,"poiIsInViewport",7);this.stepsIsInViewport=o(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=o(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=o(this,"touristicEventsIsInViewport",7);this.parentTrekPress=o(this,"parentTrekPress",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.trek=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.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}componentDidLoad(){this.swiperImages=new Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.swiperStep=new Is(this.swiperStepRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new Is(this.swiperPoisRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new Is(this.swiperInformationDesksRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new Is(this.swiperTouristicContentsRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new Is(this.swiperTouristicEventsRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.presentationRef)}if(this.stepsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.stepsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{steps:Object.assign(Object.assign({},this.defaultOptions.steps),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.stepsRef)}if(this.descriptionRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.descriptionIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.descriptionRef)}if(this.recommendationRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.recommendationRef)}if(this.parkingRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.parkingIsInViewport.emit(i)}),{threshold:bo});t.observe(this.parkingRef)}if(this.sensitiveAreaRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.sensitiveAreaIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.informationPlacesIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.informationPlacesRef)}if(this.poiRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.poiIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.poiRef)}if(this.touristicContentsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{touristicContents:Object.assign(Object.assign({},this.defaultOptions.touristicContents),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.touristicContentsRef)}if(this.touristicEventsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{touristicEvents:Object.assign(Object.assign({},this.defaultOptions.touristicEvents),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.touristicContentsRef)}}connectedCallback(){this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=w.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=w.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=w.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(w.accessibilitiesLevel){this.accessibilityLevel=w.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}b("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=w.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=w.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=w.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(w.accessibilitiesLevel){this.accessibilityLevel=w.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}handleOptions(){return Object.assign(Object.assign({},Eo),{presentation:Object.assign({},yo),steps:Object.assign(Object.assign({},xo),{visible:Boolean(w.parentTrek)}),description:Object.assign(Object.assign({},ko),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},Ao),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},_o),{visible:Boolean(w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Mo),{visible:Boolean(w.currentInformationDesks&&w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0)}),pois:Object.assign(Object.assign({},zo),{visible:Boolean(w.currentPois&&w.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},Lo),{visible:Boolean(w.trekTouristicContents&&w.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Co),{visible:Boolean(w.touristicEvents&&w.touristicEvents.length>0)})})}handleFullscreen(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}handleIndicatorSelectedTrekOption(){let t;let i=0;let e=0;let r=0;const n=Object.values(this.options);let s=0;while(!t&&s<n.length){if(n[s].indicator){t=n[s]}else{if(n[s].visible){i+=1;e+=this[n[s].ref].clientWidth}}s++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:`${e+16*i-r/2}px`,width:`${r*2}px`,backgroundSize:`${r}px 100%`,ref:t.ref}}}handleScrollTo(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}render(){var t,i,e,s,o,a,c;return r(n,{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?"8px":"104px"}},this.currentTrek&&r("div",{class:"trek-options"},r("a",{ref:t=>this.presentationOptionRef=t,onClick:()=>this.handleScrollTo(this.presentationRef),class:`presentation trek-option${this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""}`},l[w.language].options.presentation),this.options.steps.visible&&r("a",{ref:t=>this.stepsOptionRef=t,onClick:()=>this.handleScrollTo(this.stepsRef),class:`steps trek-option${this.options.steps.indicator?" selected-trek-option":""}`},l[w.language].options.steps),this.options.description.visible&&r("a",{ref:t=>this.descriptionOptionRef=t,onClick:()=>this.handleScrollTo(this.descriptionRef),class:`description trek-option${this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""}`},l[w.language].options.description),this.options.recommendations.visible&&r("a",{ref:t=>this.recommendationsOptionRef=t,onClick:()=>this.handleScrollTo(this.recommendationRef),class:`recommendations trek-option${this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""}`},l[w.language].options.recommendations),this.options.sensitiveArea.visible&&r("a",{ref:t=>this.sensitiveAreaOptionRef=t,onClick:()=>this.handleScrollTo(this.sensitiveAreaRef),class:`sensitive-areas trek-option${this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""}`},l[w.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&r("a",{ref:t=>this.informationPlacesOptionRef=t,onClick:()=>this.handleScrollTo(this.informationPlacesRef),class:`information-places trek-option${this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""}`},l[w.language].options.informationPlaces),this.options.pois.visible&&r("a",{ref:t=>this.poisOptionRef=t,onClick:()=>this.handleScrollTo(this.poiRef),class:`pois trek-option${this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""}`},l[w.language].options.pois),this.options.touristicContents.visible&&r("a",{ref:t=>this.touristicContentsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicContentsRef),class:`touristic-content trek-option${this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""}`},l[w.language].options.touristicContents),this.options.touristicEvents.visible&&r("a",{ref:t=>this.touristicEventsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicEventsRef),class:`touristic-event trek-option${this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""}`},l[w.language].options.touristicEvents),this.presentationOptionRef&&r("span",{class:"indicator-selected-trek-option",style:{transform:`translateX(${this.indicatorSelectedTrekOption.translateX})`,width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&r("div",{class:"trek-detail-container",ref:t=>this.trekDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()}))))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&r("div",{class:"themes-container"},this.themes.map((t=>r("div",{class:"theme"},t.label)))),r("div",{class:"sub-container"},r("div",{class:"icons-labels-container"},r("div",{class:"row"},r("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&r("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),r("div",{class:"icon-label duration"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),C((e=this.currentTrek)===null||e===void 0?void 0:e.duration)),r("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&r("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route)),r("div",{class:"row"},r("div",{class:"icon-label length"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),E(this.currentTrek.length_2d)),r("div",{class:"icon-label ascent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),P(this.currentTrek.ascent)),r("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&r("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(c=this.practice)===null||c===void 0?void 0:c.name)),this.currentTrek.ratings.map((t=>r("div",{class:"row"},`${w.ratingsScale.find((i=>i.id===w.ratings.find((i=>i.id===t)).scale)).name} : ${w.ratings.find((i=>i.id===t)).name}`))),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&r("div",{class:"row"},this.currentTrek.ratings_description))),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].downloads),r("div",{class:"links-container"},r("a",{href:`${this.currentTrek.gpx}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),r("a",{href:`${this.currentTrek.kml}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),r("a",{href:`${this.currentTrek.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),r("div",{class:"divider"}),this.currentTrek.description_teaser&&r("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&r("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),w.parentTrekId&&w.parentTrek&&this.currentTrek.id!==w.parentTrekId&&r("div",null,r("div",{class:"divider"}),r("div",{class:"parent-trek-container"},r("button",{class:"parent-trek-title",onClick:()=>this.parentTrekPress.emit(w.parentTrekId)},r("div",null,"<"),w.parentTrek.name))),w.currentTrekSteps&&r("div",{class:"step-container"},r("div",{class:"step-title",ref:t=>this.stepsRef=t},`${w.currentTrekSteps.length} ${l[w.language].steps}`),r("div",{class:"swiper swiper-step",ref:t=>this.swiperStepRef=t},r("div",{class:"swiper-wrapper"},w.currentTrekSteps&&w.currentTrekSteps.map((t=>r("div",{class:"swiper-slide"},r("grw-trek-card",{"reset-store-on-disconnected":"false",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}))))))),r("div",{class:"divider"}),this.currentTrek.description&&r("div",{class:"description-container"},r("div",{class:"description-title",ref:t=>this.descriptionRef=t},l[w.language].description),r("div",{class:"description",innerHTML:this.currentTrek.description}),r("div",{class:"description",innerHTML:this.currentTrek.description}),r("div",{class:"description",innerHTML:this.currentTrek.description}),r("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&r("div",{class:"departure-container"},r("div",{class:"departure-title"},l[w.language].departure," : "),r("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&r("div",{class:"arrival-container"},r("div",{class:"arrival-title"},l[w.language].arrival," : "),r("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].crossedCities," : "),r("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&r("div",{class:"weather-container"},r("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}`})),this.currentTrek.access&&r("div",null,r("div",{class:"divider"}),r("div",{class:"access-container"},r("div",{class:"access-title"},l[w.language].roadAccess),r("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&r("div",null,r("div",{class:"divider"}),r("div",{class:"public-transport-container"},r("div",{class:"public-transport-title"},l[w.language].transport),r("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"advice-container"},r("div",{class:"advice-title",ref:t=>this.recommendationRef=t},l[w.language].recommendations),this.currentTrek.advice&&r("div",{class:"current-advice-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),r("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((t=>r("div",{class:"label-container"},r("div",{class:"label-sub-container"},t.pictogram&&r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",{class:"label-name",innerHTML:t.name})),r("div",{class:"label-advice",innerHTML:t.advice})))))),this.currentTrek.advised_parking&&r("div",null,r("div",{class:"divider"}),r("div",{class:"advised-parking-container"},r("div",{class:"advised-parking-title",ref:t=>this.parkingRef=t},l[w.language].recommendedParking),r("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&r("div",null,r("div",{class:"divider"}),r("div",{class:"gear-container"},r("div",{class:"gear-title"},l[w.language].equipments),r("div",{class:"gear",innerHTML:this.currentTrek.gear}))),w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"sensitive-areas-container"},r("div",{class:"sensitive-areas-title",ref:t=>this.sensitiveAreaRef=t},l[w.language].environmentalSensitiveAreas),w.currentSensitiveAreas.map((t=>r("grw-sensitive-area-detail",{sensitiveArea:t}))))),w.currentInformationDesks&&w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"information-desks-container"},r("div",{class:"information-desks-title",ref:t=>this.informationPlacesRef=t},l[w.language].informationPlaces),r("div",{class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},r("div",{class:"swiper-wrapper"},w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).map((t=>r("div",{class:"swiper-slide"},r("grw-information-desk",{informationDesk:t})))))))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"accessibilities-container"},r("div",{class:"accessibilities-title"},l[w.language].accessibility),this.currentTrek.disabled_infrastructure&&r("div",{innerHTML:this.currentTrek.disabled_infrastructure}),r("div",{class:"accessibilities-content-container"},this.accessibilities.map((t=>r("div",{class:"accessibility-content-container"},r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",{innerHTML:t.name}))))),this.currentTrek.accessibility_level&&r("div",{class:"accessibility-level-container"},r("div",{class:"accessibility-level-title"},l[w.language].accessibilityLevel),r("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&r("div",{class:"accessibility-slope-container"},r("div",{class:"accessibility-slope-title"},l[w.language].accessibilitySlope),r("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&r("div",{class:"accessibility-width-container"},r("div",{class:"accessibility-width-title"},l[w.language].accessibilityWidth),r("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&r("div",{class:"accessibility-signage-container"},r("div",{class:"accessibility-signage-title"},l[w.language].accessibilitySignage),r("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&r("div",{class:"accessibility-covering-container"},r("div",{class:"accessibility-covering-title"},l[w.language].accessibilityCovering),r("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&r("div",{class:"accessibility-exposure-container"},r("div",{class:"accessibility-exposure-title"},l[w.language].accessibilityExposure),r("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&r("div",{class:"accessibility-advice-container"},r("div",{class:"accessibility-advice-title"},l[w.language].accessibilityAdvices),r("div",{innerHTML:this.currentTrek.accessibility_advice})))),w.currentPois&&w.currentPois.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"pois-container"},r("div",{class:"pois-title",ref:t=>this.poiRef=t},l[w.language].pois(w.currentPois.length)),r("div",{class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},r("div",{class:"swiper-wrapper"},w.currentPois.map((t=>r("div",{class:"swiper-slide"},r("grw-poi",{poi:t})))))))),w.trekTouristicContents&&w.trekTouristicContents.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"touristic-content-container"},r("div",{class:"touristic-content-title",ref:t=>this.touristicContentsRef=t},l[w.language].touristicContents(w.trekTouristicContents.length)),r("div",{class:"swiper swiper-touristic-content",ref:t=>this.swiperTouristicContentsRef=t},r("div",{class:"swiper-wrapper"},w.trekTouristicContents.map((t=>r("div",{class:"swiper-slide"},r("grw-touristic-content-card",{fontFamily:this.fontFamily,touristicContent:t,isInsideHorizontalList:true})))))))),w.touristicEvents&&w.touristicEvents.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"touristic-event-container"},r("div",{class:"touristic-event-title",ref:t=>this.touristicEventsRef=t},l[w.language].touristicEvents(w.touristicEvents.length)),r("div",{class:"swiper swiper-touristic-event",ref:t=>this.swiperTouristicEventsRef=t},r("div",{class:"swiper-wrapper"},w.touristicEvents.map((t=>r("div",{class:"swiper-slide"},r("grw-touristic-event-card",{fontFamily:this.fontFamily,touristicEvent:t})))))))),this.currentTrek.source&&this.currentTrek.source.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"source-container"},r("div",{class:"source-title"},l[w.language].sources),this.sources.map((t=>r("div",{class:"source-sub-container"},t.pictogram&&r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",null,r("div",{class:"source-name",innerHTML:t.name}),r("a",{class:"source-advice",href:t.website,innerHTML:t.website}))))))),r("div",{class:"detail-bottom-space"})))}};Po.style=wo;const Oo=class{constructor(t){e(this,t);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}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTrek()}handleTrek(){const t=[];t.push(!w.difficulties?fetch(`${w.api}trek_difficulty/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!w.routes?fetch(`${w.api}trek_route/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!w.practices?fetch(`${w.api}trek_practice/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!w.themes?fetch(`${w.api}theme/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.accessibilities?fetch(`${w.api}trek_accessibility/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!w.ratings?fetch(`${w.api}trek_rating/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));t.push(!w.ratings?fetch(`${w.api}trek_ratingscale/?language=${w.language}&fields=id,name`,this.init):new Response("null"));Promise.all([...t,fetch(`${this.api}sensitivearea/?language=${w.language}&published=true&trek=${this.trekId}&fields=id,geometry,name,description,contact,info_url,period,practices`,this.init).then((t=>{if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((()=>new Response("null"))),fetch(`${w.api}label/?language=${w.language}&fields=id,name,advice,pictogram`,this.init),fetch(`${w.api}source/?language=${w.language}&fields=id,name,website,pictogram`,this.init),fetch(`${w.api}trek_accessibility_level/?language=${w.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),fetch(`${w.api}poi/?language=${w.language}&trek=${this.trekId}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`,this.init),fetch(`${w.api}poi_type/?language=${w.language}&fields=id,pictogram`,this.init),fetch(`${w.api}informationdesk/?language=${w.language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999`,this.init),fetch(`${w.api}touristiccontent/?language=${w.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,category,geometry&page_size=999`,this.init),fetch(`${w.api}touristiccontent_category/?language=${w.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),fetch(`${w.api}touristicevent/?language=${w.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,type,geometry&page_size=999`,this.init),fetch(`${w.api}touristicevent_type/?language=${w.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init),fetch(`${w.api}trek/${this.trekId}/?language=${w.language}&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,ratings,ratings_description,information_desks,children`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,i,e,r,n,s,o,a,l,c,h,u,f,p,d,m,g,v,b,y])=>{w.trekNetworkError=false;if(y.children.length>0||w.parentTrekId){const t=[];if(y.children.length>0){w.parentTrekId=y.id;w.parentTrek=y;t.push(...y.children)}else{const i=await fetch(`${w.api}trek/${w.parentTrekId}/?language=${w.language}&published=true&fields=name,children`).then((t=>t.json()));w.parentTrek=i;t.push(...i.children)}const i=[];t.forEach((t=>{i.push(fetch(`${w.api}trek/${t}/?language=${w.language}&published=true&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts`))}));w.currentTrekSteps=await Promise.all([...i]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){w.difficulties=t.results}if(i){w.routes=i.results}if(e){w.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(r){w.themes=r.results}if(n){w.cities=n.results}if(s){w.accessibilities=s.results}if(o){w.ratings=o.results}if(a){w.ratingsScale=a.results}if(l){w.currentSensitiveAreas=l.results}w.labels=c.results;w.sources=h.results;if(u){w.accessibilitiesLevel=u.results}if(m){w.trekTouristicContents=m.results}if(g){w.touristicContentCategories=g.results}if(v){w.touristicEvents=v.results}if(b){w.touristicEventTypes=b.results}w.currentPois=f.results;w.poiTypes=p.results;w.currentInformationDesks=d.results;w.currentTrek=y})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const jo='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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 So=class{constructor(t){e(this,t);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.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTreks){this.treksToDisplay=[...w.currentTreks.slice(0,this.step)]}b("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTreks){this.treksToDisplay=[...w.currentTreks.slice(0,this.step)]}}));b("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.treksWithinBounds){this.treksToDisplay=[...w.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<w.treksWithinBounds.length){this.treksToDisplay=w.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=w.treksWithinBounds.length?w.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(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.treksWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.treksWithinBounds.length} ${w.treksWithinBounds.length>1?l[w.language].treks:l[w.language].trek}`),r("div",{class:"treks-list-container"},this.treksToDisplay.map((t=>r("grw-trek-card",{"reset-store-on-disconnected":"false",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})))),!this.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};So.style=jo;const To=class{constructor(t){e(this,t);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}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTreks()}disconnectedCallback(){this.controller.abort();w.treksNetworkError=false}handleTreks(){let t=`${this.api}trek/?language=${w.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}`);this.routes&&(t+=`&routes=${this.routes}`);this.practices&&(t+=`&practices=${this.practices}`);t+=`&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts&page_size=999`;Promise.all([fetch(`${w.api}trek_difficulty/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${w.api}trek_route/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init),fetch(`${w.api}trek_practice/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init),fetch(`${w.api}theme/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(`${w.api}trek_accessibility/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram&published=true&page_size=999`,this.init),fetch(`${w.api}label/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,advice,pictogram&published=true&page_size=999`,this.init),fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r,n,s,o,a,l])=>{w.treksNetworkError=false;w.difficulties=t.results;w.routes=i.results;w.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));w.themes=r.results;w.cities=n.results;w.accessibilities=s.results;w.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];w.lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];w.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];w.labels=o.results;w.districts=a.results;w.treks=l.results;w.currentTreks=l.results})).catch((()=>w.treksNetworkError=true))}render(){return r(n,null)}};export{k as grw_app,_ as grw_common_button,z as grw_extended_fab,R as grw_filter,D as grw_filters,G as grw_information_desk,Z as grw_loader,Ir as grw_map,Zs as grw_poi,Us as grw_search,Vs as grw_segmented_segment,Ks as grw_select_language,Js as grw_sensitive_area_detail,to as grw_touristic_content_card,eo as grw_touristic_content_detail,ro as grw_touristic_content_provider,so as grw_touristic_contents_list,oo as grw_touristic_contents_provider,lo as grw_touristic_event_card,ho as grw_touristic_event_detail,uo as grw_touristic_event_provider,po as grw_touristic_events_list,mo as grw_touristic_events_provider,vo as grw_trek_card,Po as grw_trek_detail,Oo as grw_trek_provider,So as grw_treks_list,To as grw_treks_provider};
15
- //# sourceMappingURL=p-daef0593.entry.js.map
14
+ (function(i,e){{if(typeof e!=="undefined"&&e.L){t.exports=i(L)}else{t.exports=i(W)}}if(typeof e!=="undefined"&&e.L){e.L.Control.Locate=i(L)}})((function(t){const i=(i,e,r)=>{r=r.split(" ");r.forEach((function(r){t.DomUtil[i].call(this,e,r)}))};const e=(t,e)=>i("addClass",t,e);const r=(t,e)=>i("removeClass",t,e);const n=t.Marker.extend({initialize(i,e){t.Util.setOptions(this,e);this._latlng=i;this.createIcon()},createIcon(){const i=this.options;let e="";if(i.color!==undefined){e+=`stroke:${i.color};`}if(i.weight!==undefined){e+=`stroke-width:${i.weight};`}if(i.fillColor!==undefined){e+=`fill:${i.fillColor};`}if(i.fillOpacity!==undefined){e+=`fill-opacity:${i.fillOpacity};`}if(i.opacity!==undefined){e+=`opacity:${i.opacity};`}const r=this._getIconSVG(i,e);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG(t,i){const e=t.radius;const r=t.weight;const n=e+r;const s=n*2;const o=`<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${s}" version="1.1" viewBox="-${n} -${n} ${s} ${s}">`+'<circle r="'+e+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:o,w:s,h:s}},setStyle(i){t.Util.setOptions(this,i);this.createIcon()}});const s=n.extend({initialize(i,e,r){t.Util.setOptions(this,r);this._latlng=i;this._heading=e;this.createIcon()},setHeading(t){this._heading=t},_getIconSVG(t,i){const e=t.radius;const r=t.width+t.weight;const n=(e+t.depth+t.weight)*2;const s=`M0,0 l${t.width/2},${t.depth} l-${r},0 z`;const o=`transform: rotate(${this._heading}deg)`;const a=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${n}" version="1.1" viewBox="-${r/2} 0 ${r} ${n}" style="${o}">`+'<path d="'+s+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});const o=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:n,compassClass:s,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(i,e){const r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);r.title=e.strings.title;r.href="#";r.setAttribute("role","button");const n=t.DomUtil.create(e.iconElementTag,e.icon,r);if(e.strings.text!==undefined){const i=t.DomUtil.create(e.textElementTag,"leaflet-locate-text",r);i.textContent=e.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(e.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError(t,i){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(i){for(const e in i){if(typeof this.options[e]==="object"){t.extend(this.options[e],i[e])}else{this.options[e]=i[e]}}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(i){const e=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=e;this._map=i;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(i);this._event=undefined;this._compassHeading=null;this._prevBounds=null;const r=this.options.createButtonCallback(e,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(i){t.DomEvent.stopPropagation(i);t.DomEvent.preventDefault(i);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return e},_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 i=this.options.clickBehavior;let e=i.outOfView;if(this._map.getBounds().contains(this._event.latlng)){e=t?i.inView:i.inViewNotFollowing}if(i[e]){e=i[e]}switch(e){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 i="ondeviceorientationabsolute"in window;if(i||"ondeviceorientation"in window){const e=this;const r=function(){t.DomEvent.on(window,i?"deviceorientationabsolute":"deviceorientation",e._onDeviceOrientation,e)};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 i=this.options.flyTo?this._map.flyTo:this._map.setView;i.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var i=this.options.flyTo?this._map.flyTo:this._map.panTo;i.bind(this._map)([this._event.latitude,this._event.longitude])}else{var i=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;i.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 i=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,i).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(i)}}}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 i=this._event.accuracy;const e=this._event.latlng;if(this.options.drawCircle){const r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(e,i,r).addTo(this._layer)}else{this._circle.setLatLng(e).setRadius(i).setStyle(r)}}let r;let n;if(this.options.metric){r=i.toFixed(0);n=this.options.strings.metersUnit}else{r=(i*3.2808399).toFixed(0);n=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(e,t).addTo(this._layer)}else{this._marker.setLatLng(e);if(this._marker.setStyle){this._marker.setStyle(t)}}}this._drawCompass();const s=this.options.strings.popup;function o(){if(typeof s==="string"){return t.Util.template(s,{distance:r,unit:n})}else if(typeof s==="function"){return s({distance:r,unit:n})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(o())._popup.setLatLng(e)}if(this.options.showPopup&&s&&this._compass){this._compass.bindPopup(o())._popup.setLatLng(e)}},_removeMarker(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading(i){if(!isNaN(parseFloat(i))&&isFinite(i)){i=Math.round(i);this._compassHeading=i;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");e(this._container,"requesting");r(this._icon,this.options.icon);e(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");e(this._container,"active");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");e(this._container,"active following");r(this._icon,this.options.iconLoading);e(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);e(this._icon,this.options.icon)},_resetVariables(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=i=>new t.Control.Locate(i);return o}),window)}));var K=U((function(t,i){(function(e){var r=i&&!i.nodeType&&i;var n=t&&!t.nodeType&&t;var s=typeof H=="object"&&H;if(s.global===s||s.window===s||s.self===s){e=s}var o,a=2147483647,l=36,c=1,h=26,u=38,f=700,p=72,d=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=l-c,x=Math.floor,k=String.fromCharCode,A;function _(t){throw new RangeError(b[t])}function M(t,i){var e=t.length;var r=[];while(e--){r[e]=i(t[e])}return r}function z(t,i){var e=t.split("@");var r="";if(e.length>1){r=e[0]+"@";t=e[1]}t=t.replace(w,".");var n=t.split(".");var s=M(n,i).join(".");return r+s}function L(t){var i=[],e=0,r=t.length,n,s;while(e<r){n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){s=t.charCodeAt(e++);if((s&64512)==56320){i.push(((n&1023)<<10)+(s&1023)+65536)}else{i.push(n);e--}}else{i.push(n)}}return i}function C(t){return M(t,(function(t){var i="";if(t>65535){t-=65536;i+=k(t>>>10&1023|55296);t=56320|t&1023}i+=k(t);return i})).join("")}function E(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return l}function P(t,i){return t+22+75*(t<26)-((i!=0)<<5)}function O(t,i,e){var r=0;t=e?x(t/f):t>>1;t+=x(t/i);for(;t>y*h>>1;r+=l){t=x(t/y)}return x(r+(y+1)*t/(t+u))}function j(t){var i=[],e=t.length,r,n=0,s=d,o=p,u,f,g,v,w,b,y,k,A;u=t.lastIndexOf(m);if(u<0){u=0}for(f=0;f<u;++f){if(t.charCodeAt(f)>=128){_("not-basic")}i.push(t.charCodeAt(f))}for(g=u>0?u+1:0;g<e;){for(v=n,w=1,b=l;;b+=l){if(g>=e){_("invalid-input")}y=E(t.charCodeAt(g++));if(y>=l||y>x((a-n)/w)){_("overflow")}n+=y*w;k=b<=o?c:b>=o+h?h:b-o;if(y<k){break}A=l-k;if(w>x(a/A)){_("overflow")}w*=A}r=i.length+1;o=O(n-v,r,v==0);if(x(n/r)>a-s){_("overflow")}s+=x(n/r);n%=r;i.splice(n++,0,s)}return C(i)}function S(t){var i,e,r,n,s,o,u,f,g,v,w,b=[],y,A,M,z;t=L(t);y=t.length;i=d;e=0;s=p;for(o=0;o<y;++o){w=t[o];if(w<128){b.push(k(w))}}r=n=b.length;if(n){b.push(m)}while(r<y){for(u=a,o=0;o<y;++o){w=t[o];if(w>=i&&w<u){u=w}}A=r+1;if(u-i>x((a-e)/A)){_("overflow")}e+=(u-i)*A;i=u;for(o=0;o<y;++o){w=t[o];if(w<i&&++e>a){_("overflow")}if(w==i){for(f=e,g=l;;g+=l){v=g<=s?c:g>=s+h?h:g-s;if(f<v){break}z=f-v;M=l-v;b.push(k(P(v+z%M,0)));f=x(z/M)}b.push(k(P(f,0)));s=O(e,A,r==n);e=0;++r}}++e;++i}return b.join("")}function T(t){return z(t,(function(t){return g.test(t)?j(t.slice(4).toLowerCase()):t}))}function I(t){return z(t,(function(t){return v.test(t)?"xn--"+S(t):t}))}o={version:"1.4.1",ucs2:{decode:L,encode:C},decode:j,encode:S,toASCII:I,toUnicode:T};if(r&&n){if(t.exports==r){n.exports=o}else{for(A in o){o.hasOwnProperty(A)&&(r[A]=o[A])}}}else{e.punycode=o}})(H)}));var q=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var i={};var e=Symbol("test");var r=Object(e);if(typeof e==="string"){return false}if(Object.prototype.toString.call(e)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;i[e]=n;for(e in i){return false}if(typeof Object.keys==="function"&&Object.keys(i).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(i).length!==0){return false}var s=Object.getOwnPropertySymbols(i);if(s.length!==1||s[0]!==e){return false}if(!Object.prototype.propertyIsEnumerable.call(i,e)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(i,e);if(o.value!==n||o.enumerable!==true){return false}}return true};var J=typeof Symbol!=="undefined"&&Symbol;var X=function t(){if(typeof J!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof J("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return q()};var tt={foo:{}};var it=Object;var et=function t(){return{__proto__:tt}.foo===tt.foo&&!({__proto__:null}instanceof it)};var rt="Function.prototype.bind called on incompatible ";var nt=Array.prototype.slice;var st=Object.prototype.toString;var ot="[object Function]";var at=function t(i){var e=this;if(typeof e!=="function"||st.call(e)!==ot){throw new TypeError(rt+e)}var r=nt.call(arguments,1);var n;var s=function(){if(this instanceof n){var t=e.apply(this,r.concat(nt.call(arguments)));if(Object(t)===t){return t}return this}else{return e.apply(i,r.concat(nt.call(arguments)))}};var o=Math.max(0,e.length-r.length);var a=[];for(var l=0;l<o;l++){a.push("$"+l)}n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s);if(e.prototype){var c=function t(){};c.prototype=e.prototype;n.prototype=new c;c.prototype=null}return n};var lt=Function.prototype.bind||at;var ct=lt.call(Function.call,Object.prototype.hasOwnProperty);var ht;var ut=SyntaxError;var ft=Function;var pt=TypeError;var dt=function(t){try{return ft('"use strict"; return ('+t+").constructor;")()}catch(i){}};var mt=Object.getOwnPropertyDescriptor;var gt=function(){throw new pt};var vt=mt?function(){try{return gt}catch(t){try{return mt(arguments,"callee").get}catch(i){return gt}}}():gt;var wt=X();var bt=et();var yt=Object.getPrototypeOf||(bt?function(t){return t.__proto__}:null);var xt={};var kt=typeof Uint8Array==="undefined"||!yt?ht:yt(Uint8Array);var At={"%AggregateError%":typeof AggregateError==="undefined"?ht:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?ht:ArrayBuffer,"%ArrayIteratorPrototype%":wt&&yt?yt([][Symbol.iterator]()):ht,"%AsyncFromSyncIteratorPrototype%":ht,"%AsyncFunction%":xt,"%AsyncGenerator%":xt,"%AsyncGeneratorFunction%":xt,"%AsyncIteratorPrototype%":xt,"%Atomics%":typeof Atomics==="undefined"?ht:Atomics,"%BigInt%":typeof BigInt==="undefined"?ht:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?ht:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?ht:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?ht:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?ht:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?ht:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?ht:FinalizationRegistry,"%Function%":ft,"%GeneratorFunction%":xt,"%Int8Array%":typeof Int8Array==="undefined"?ht:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?ht:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?ht:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":wt&&yt?yt(yt([][Symbol.iterator]())):ht,"%JSON%":typeof JSON==="object"?JSON:ht,"%Map%":typeof Map==="undefined"?ht:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!wt||!yt?ht:yt((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?ht:Promise,"%Proxy%":typeof Proxy==="undefined"?ht:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?ht:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?ht:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!wt||!yt?ht:yt((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?ht:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":wt&&yt?yt(""[Symbol.iterator]()):ht,"%Symbol%":wt?Symbol:ht,"%SyntaxError%":ut,"%ThrowTypeError%":vt,"%TypedArray%":kt,"%TypeError%":pt,"%Uint8Array%":typeof Uint8Array==="undefined"?ht:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?ht:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?ht:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?ht:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?ht:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?ht:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?ht:WeakSet};var _t=function t(i){var e;if(i==="%AsyncFunction%"){e=dt("async function () {}")}else if(i==="%GeneratorFunction%"){e=dt("function* () {}")}else if(i==="%AsyncGeneratorFunction%"){e=dt("async function* () {}")}else if(i==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");if(r){e=r.prototype}}else if(i==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");if(n&&yt){e=yt(n.prototype)}}At[i]=e;return e};var Mt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var zt=lt.call(Function.call,Array.prototype.concat);var Lt=lt.call(Function.apply,Array.prototype.splice);var Ct=lt.call(Function.call,String.prototype.replace);var Et=lt.call(Function.call,String.prototype.slice);var Pt=lt.call(Function.call,RegExp.prototype.exec);var Ot=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var jt=/\\(\\)?/g;var St=function t(i){var e=Et(i,0,1);var r=Et(i,-1);if(e==="%"&&r!=="%"){throw new ut("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&e!=="%"){throw new ut("invalid intrinsic syntax, expected opening `%`")}var n=[];Ct(i,Ot,(function(t,i,e,r){n[n.length]=e?Ct(r,jt,"$1"):i||t}));return n};var Tt=function t(i,e){var r=i;var n;if(ct(Mt,r)){n=Mt[r];r="%"+n[0]+"%"}if(ct(At,r)){var s=At[r];if(s===xt){s=_t(r)}if(typeof s==="undefined"&&!e){throw new pt("intrinsic "+i+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:s}}throw new ut("intrinsic "+i+" does not exist!")};var It=function t(i,e){if(typeof i!=="string"||i.length===0){throw new pt("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof e!=="boolean"){throw new pt('"allowMissing" argument must be a boolean')}if(Pt(/^%?[^%]*%?$/,i)===null){throw new ut("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=St(i);var n=r.length>0?r[0]:"";var s=Tt("%"+n+"%",e);var o=s.name;var a=s.value;var l=false;var c=s.alias;if(c){n=c[0];Lt(r,zt([0,1],c))}for(var h=1,u=true;h<r.length;h+=1){var f=r[h];var p=Et(f,0,1);var d=Et(f,-1);if((p==='"'||p==="'"||p==="`"||(d==='"'||d==="'"||d==="`"))&&p!==d){throw new ut("property names with quotes must have matching quotes")}if(f==="constructor"||!u){l=true}n+="."+f;o="%"+n+"%";if(ct(At,o)){a=At[o]}else if(a!=null){if(!(f in a)){if(!e){throw new pt("base intrinsic for "+i+" exists, but the property is not available.")}return void ht}if(mt&&h+1>=r.length){var m=mt(a,f);u=!!m;if(u&&"get"in m&&!("originalValue"in m.get)){a=m.get}else{a=a[f]}}else{u=ct(a,f);a=a[f]}if(u&&!l){At[o]=a}}}return a};var Bt=U((function(t){var i=It("%Function.prototype.apply%");var e=It("%Function.prototype.call%");var r=It("%Reflect.apply%",true)||lt.call(e,i);var n=It("%Object.getOwnPropertyDescriptor%",true);var s=It("%Object.defineProperty%",true);var o=It("%Math.max%");if(s){try{s({},"a",{value:1})}catch(l){s=null}}t.exports=function t(i){var a=r(lt,e,arguments);if(n&&s){var l=n(a,"length");if(l.configurable){s(a,"length",{value:1+o(0,i.length-(arguments.length-1))})}}return a};var a=function t(){return r(lt,i,arguments)};if(s){s(t.exports,"apply",{value:a})}else{t.exports.apply=a}}));var Ft=Bt(It("String.prototype.indexOf"));var Rt=function t(i,e){var r=It(i,!!e);if(typeof r==="function"&&Ft(i,".prototype.")>-1){return Bt(r)}return r};const Nt={};const Dt=Object.freeze({__proto__:null,default:Nt});const Yt=Q(Dt);var Gt=typeof Map==="function"&&Map.prototype;var $t=Object.getOwnPropertyDescriptor&&Gt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var Zt=Gt&&$t&&typeof $t.get==="function"?$t.get:null;var Ht=Gt&&Map.prototype.forEach;var Ut=typeof Set==="function"&&Set.prototype;var Qt=Object.getOwnPropertyDescriptor&&Ut?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Vt=Ut&&Qt&&typeof Qt.get==="function"?Qt.get:null;var Wt=Ut&&Set.prototype.forEach;var Kt=typeof WeakMap==="function"&&WeakMap.prototype;var qt=Kt?WeakMap.prototype.has:null;var Jt=typeof WeakSet==="function"&&WeakSet.prototype;var Xt=Jt?WeakSet.prototype.has:null;var ti=typeof WeakRef==="function"&&WeakRef.prototype;var ii=ti?WeakRef.prototype.deref:null;var ei=Boolean.prototype.valueOf;var ri=Object.prototype.toString;var ni=Function.prototype.toString;var si=String.prototype.match;var oi=String.prototype.slice;var ai=String.prototype.replace;var li=String.prototype.toUpperCase;var ci=String.prototype.toLowerCase;var hi=RegExp.prototype.test;var ui=Array.prototype.concat;var fi=Array.prototype.join;var pi=Array.prototype.slice;var di=Math.floor;var mi=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var gi=Object.getOwnPropertySymbols;var vi=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var wi=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var bi=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wi?"object":"symbol")?Symbol.toStringTag:null;var yi=Object.prototype.propertyIsEnumerable;var xi=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ki(t,i){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||hi.call(/e/,i)){return i}var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var r=t<0?-di(-t):di(t);if(r!==t){var n=String(r);var s=oi.call(i,n.length+1);return ai.call(n,e,"$&_")+"."+ai.call(ai.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ai.call(i,e,"$&_")}var Ai=Yt.custom;var _i=Ii(Ai)?Ai:null;var Mi=function t(i,e,r,n){var s=e||{};if(Ri(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(Ri(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var o=Ri(s,"customInspect")?s.customInspect:true;if(typeof o!=="boolean"&&o!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(Ri(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(Ri(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=s.numericSeparator;if(typeof i==="undefined"){return"undefined"}if(i===null){return"null"}if(typeof i==="boolean"){return i?"true":"false"}if(typeof i==="string"){return Vi(i,s)}if(typeof i==="number"){if(i===0){return Infinity/i>0?"0":"-0"}var l=String(i);return a?ki(i,l):l}if(typeof i==="bigint"){var c=String(i)+"n";return a?ki(i,c):c}var h=typeof s.depth==="undefined"?5:s.depth;if(typeof r==="undefined"){r=0}if(r>=h&&h>0&&typeof i==="object"){return Ci(i)?"[Array]":"[Object]"}var u=te(s,r);if(typeof n==="undefined"){n=[]}else if(Yi(n,i)>=0){return"[Circular]"}function f(i,e,o){if(e){n=pi.call(n);n.push(e)}if(o){var a={depth:s.depth};if(Ri(s,"quoteStyle")){a.quoteStyle=s.quoteStyle}return t(i,a,r+1,n)}return t(i,s,r+1,n)}if(typeof i==="function"&&!Pi(i)){var p=Di(i);var d=ee(i,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(d.length>0?" { "+fi.call(d,", ")+" }":"")}if(Ii(i)){var m=wi?ai.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):vi.call(i);return typeof i==="object"&&!wi?Ki(m):m}if(Qi(i)){var g="<"+ci.call(String(i.nodeName));var v=i.attributes||[];for(var w=0;w<v.length;w++){g+=" "+v[w].name+"="+zi(Li(v[w].value),"double",s)}g+=">";if(i.childNodes&&i.childNodes.length){g+="..."}g+="</"+ci.call(String(i.nodeName))+">";return g}if(Ci(i)){if(i.length===0){return"[]"}var b=ee(i,f);if(u&&!Xi(b)){return"["+ie(b,u)+"]"}return"[ "+fi.call(b,", ")+" ]"}if(Oi(i)){var y=ee(i,f);if(!("cause"in Error.prototype)&&"cause"in i&&!yi.call(i,"cause")){return"{ ["+String(i)+"] "+fi.call(ui.call("[cause]: "+f(i.cause),y),", ")+" }"}if(y.length===0){return"["+String(i)+"]"}return"{ ["+String(i)+"] "+fi.call(y,", ")+" }"}if(typeof i==="object"&&o){if(_i&&typeof i[_i]==="function"&&Yt){return Yt(i,{depth:h-r})}else if(o!=="symbol"&&typeof i.inspect==="function"){return i.inspect()}}if(Gi(i)){var x=[];if(Ht){Ht.call(i,(function(t,e){x.push(f(e,i,true)+" => "+f(t,i))}))}return Ji("Map",Zt.call(i),x,u)}if(Hi(i)){var k=[];if(Wt){Wt.call(i,(function(t){k.push(f(t,i))}))}return Ji("Set",Vt.call(i),k,u)}if($i(i)){return qi("WeakMap")}if(Ui(i)){return qi("WeakSet")}if(Zi(i)){return qi("WeakRef")}if(Si(i)){return Ki(f(Number(i)))}if(Bi(i)){return Ki(f(mi.call(i)))}if(Ti(i)){return Ki(ei.call(i))}if(ji(i)){return Ki(f(String(i)))}if(!Ei(i)&&!Pi(i)){var A=ee(i,f);var _=xi?xi(i)===Object.prototype:i instanceof Object||i.constructor===Object;var M=i instanceof Object?"":"null prototype";var z=!_&&bi&&Object(i)===i&&bi in i?oi.call(Ni(i),8,-1):M?"Object":"";var L=_||typeof i.constructor!=="function"?"":i.constructor.name?i.constructor.name+" ":"";var C=L+(z||M?"["+fi.call(ui.call([],z||[],M||[]),": ")+"] ":"");if(A.length===0){return C+"{}"}if(u){return C+"{"+ie(A,u)+"}"}return C+"{ "+fi.call(A,", ")+" }"}return String(i)};function zi(t,i,e){var r=(e.quoteStyle||i)==="double"?'"':"'";return r+t+r}function Li(t){return ai.call(String(t),/"/g,"&quot;")}function Ci(t){return Ni(t)==="[object Array]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ei(t){return Ni(t)==="[object Date]"&&(!bi||!(typeof t==="object"&&bi in t))}function Pi(t){return Ni(t)==="[object RegExp]"&&(!bi||!(typeof t==="object"&&bi in t))}function Oi(t){return Ni(t)==="[object Error]"&&(!bi||!(typeof t==="object"&&bi in t))}function ji(t){return Ni(t)==="[object String]"&&(!bi||!(typeof t==="object"&&bi in t))}function Si(t){return Ni(t)==="[object Number]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ti(t){return Ni(t)==="[object Boolean]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ii(t){if(wi){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!vi){return false}try{vi.call(t);return true}catch(i){}return false}function Bi(t){if(!t||typeof t!=="object"||!mi){return false}try{mi.call(t);return true}catch(i){}return false}var Fi=Object.prototype.hasOwnProperty||function(t){return t in this};function Ri(t,i){return Fi.call(t,i)}function Ni(t){return ri.call(t)}function Di(t){if(t.name){return t.name}var i=si.call(ni.call(t),/^function\s*([\w$]+)/);if(i){return i[1]}return null}function Yi(t,i){if(t.indexOf){return t.indexOf(i)}for(var e=0,r=t.length;e<r;e++){if(t[e]===i){return e}}return-1}function Gi(t){if(!Zt||!t||typeof t!=="object"){return false}try{Zt.call(t);try{Vt.call(t)}catch(i){return true}return t instanceof Map}catch(e){}return false}function $i(t){if(!qt||!t||typeof t!=="object"){return false}try{qt.call(t,qt);try{Xt.call(t,Xt)}catch(i){return true}return t instanceof WeakMap}catch(e){}return false}function Zi(t){if(!ii||!t||typeof t!=="object"){return false}try{ii.call(t);return true}catch(i){}return false}function Hi(t){if(!Vt||!t||typeof t!=="object"){return false}try{Vt.call(t);try{Zt.call(t)}catch(i){return true}return t instanceof Set}catch(e){}return false}function Ui(t){if(!Xt||!t||typeof t!=="object"){return false}try{Xt.call(t,Xt);try{qt.call(t,qt)}catch(i){return true}return t instanceof WeakSet}catch(e){}return false}function Qi(t){if(!t||typeof t!=="object"){return false}if(typeof HTMLElement!=="undefined"&&t instanceof HTMLElement){return true}return typeof t.nodeName==="string"&&typeof t.getAttribute==="function"}function Vi(t,i){if(t.length>i.maxStringLength){var e=t.length-i.maxStringLength;var r="... "+e+" more character"+(e>1?"s":"");return Vi(oi.call(t,0,i.maxStringLength),i)+r}var n=ai.call(ai.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wi);return zi(n,"single",i)}function Wi(t){var i=t.charCodeAt(0);var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];if(e){return"\\"+e}return"\\x"+(i<16?"0":"")+li.call(i.toString(16))}function Ki(t){return"Object("+t+")"}function qi(t){return t+" { ? }"}function Ji(t,i,e,r){var n=r?ie(e,r):fi.call(e,", ");return t+" ("+i+") {"+n+"}"}function Xi(t){for(var i=0;i<t.length;i++){if(Yi(t[i],"\n")>=0){return false}}return true}function te(t,i){var e;if(t.indent==="\t"){e="\t"}else if(typeof t.indent==="number"&&t.indent>0){e=fi.call(Array(t.indent+1)," ")}else{return null}return{base:e,prev:fi.call(Array(i+1),e)}}function ie(t,i){if(t.length===0){return""}var e="\n"+i.prev+i.base;return e+fi.call(t,","+e)+"\n"+i.prev}function ee(t,i){var e=Ci(t);var r=[];if(e){r.length=t.length;for(var n=0;n<t.length;n++){r[n]=Ri(t,n)?i(t[n],t):""}}var s=typeof gi==="function"?gi(t):[];var o;if(wi){o={};for(var a=0;a<s.length;a++){o["$"+s[a]]=s[a]}}for(var l in t){if(!Ri(t,l)){continue}if(e&&String(Number(l))===l&&l<t.length){continue}if(wi&&o["$"+l]instanceof Symbol){continue}else if(hi.call(/[^\w$]/,l)){r.push(i(l,t)+": "+i(t[l],t))}else{r.push(l+": "+i(t[l],t))}}if(typeof gi==="function"){for(var c=0;c<s.length;c++){if(yi.call(t,s[c])){r.push("["+i(s[c])+"]: "+i(t[s[c]],t))}}}return r}var re=It("%TypeError%");var ne=It("%WeakMap%",true);var se=It("%Map%",true);var oe=Rt("WeakMap.prototype.get",true);var ae=Rt("WeakMap.prototype.set",true);var le=Rt("WeakMap.prototype.has",true);var ce=Rt("Map.prototype.get",true);var he=Rt("Map.prototype.set",true);var ue=Rt("Map.prototype.has",true);var fe=function(t,i){for(var e=t,r;(r=e.next)!==null;e=r){if(r.key===i){e.next=r.next;r.next=t.next;t.next=r;return r}}};var pe=function(t,i){var e=fe(t,i);return e&&e.value};var de=function(t,i,e){var r=fe(t,i);if(r){r.value=e}else{t.next={key:i,next:t.next,value:e}}};var me=function(t,i){return!!fe(t,i)};var ge=function t(){var i;var e;var r;var n={assert:function(t){if(!n.has(t)){throw new re("Side channel does not contain "+Mi(t))}},get:function(t){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(i){return oe(i,t)}}else if(se){if(e){return ce(e,t)}}else{if(r){return pe(r,t)}}},has:function(t){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(i){return le(i,t)}}else if(se){if(e){return ue(e,t)}}else{if(r){return me(r,t)}}return false},set:function(t,n){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(!i){i=new ne}ae(i,t,n)}else if(se){if(!e){e=new se}he(e,t,n)}else{if(!r){r={key:{},next:null}}de(r,t,n)}}};return n};var ve=String.prototype.replace;var we=/%20/g;var be={RFC1738:"RFC1738",RFC3986:"RFC3986"};var ye={default:be.RFC3986,formatters:{RFC1738:function(t){return ve.call(t,we,"+")},RFC3986:function(t){return String(t)}},RFC1738:be.RFC1738,RFC3986:be.RFC3986};var xe=Object.prototype.hasOwnProperty;var ke=Array.isArray;var Ae=function(){var t=[];for(var i=0;i<256;++i){t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase())}return t}();var _e=function t(i){while(i.length>1){var e=i.pop();var r=e.obj[e.prop];if(ke(r)){var n=[];for(var s=0;s<r.length;++s){if(typeof r[s]!=="undefined"){n.push(r[s])}}e.obj[e.prop]=n}}};var Me=function t(i,e){var r=e&&e.plainObjects?Object.create(null):{};for(var n=0;n<i.length;++n){if(typeof i[n]!=="undefined"){r[n]=i[n]}}return r};var ze=function t(i,e,r){if(!e){return i}if(typeof e!=="object"){if(ke(i)){i.push(e)}else if(i&&typeof i==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!xe.call(Object.prototype,e)){i[e]=true}}else{return[i,e]}return i}if(!i||typeof i!=="object"){return[i].concat(e)}var n=i;if(ke(i)&&!ke(e)){n=Me(i,r)}if(ke(i)&&ke(e)){e.forEach((function(e,n){if(xe.call(i,n)){var s=i[n];if(s&&typeof s==="object"&&e&&typeof e==="object"){i[n]=t(s,e,r)}else{i.push(e)}}else{i[n]=e}}));return i}return Object.keys(e).reduce((function(i,n){var s=e[n];if(xe.call(i,n)){i[n]=t(i[n],s,r)}else{i[n]=s}return i}),n)};var Le=function t(i,e){return Object.keys(e).reduce((function(t,i){t[i]=e[i];return t}),i)};var Ce=function(t,i,e){var r=t.replace(/\+/g," ");if(e==="iso-8859-1"){return r.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(r)}catch(n){return r}};var Ee=function t(i,e,r,n,s){if(i.length===0){return i}var o=i;if(typeof i==="symbol"){o=Symbol.prototype.toString.call(i)}else if(typeof i!=="string"){o=String(i)}if(r==="iso-8859-1"){return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<o.length;++l){var c=o.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===ye.RFC1738&&(c===40||c===41)){a+=o.charAt(l);continue}if(c<128){a=a+Ae[c];continue}if(c<2048){a=a+(Ae[192|c>>6]+Ae[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Ae[224|c>>12]+Ae[128|c>>6&63]+Ae[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|o.charCodeAt(l)&1023);a+=Ae[240|c>>18]+Ae[128|c>>12&63]+Ae[128|c>>6&63]+Ae[128|c&63]}return a};var Pe=function t(i){var e=[{obj:{o:i},prop:"o"}];var r=[];for(var n=0;n<e.length;++n){var s=e[n];var o=s.obj[s.prop];var a=Object.keys(o);for(var l=0;l<a.length;++l){var c=a[l];var h=o[c];if(typeof h==="object"&&h!==null&&r.indexOf(h)===-1){e.push({obj:o,prop:c});r.push(h)}}}_e(e);return i};var Oe=function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"};var je=function t(i){if(!i||typeof i!=="object"){return false}return!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))};var Se=function t(i,e){return[].concat(i,e)};var Te=function t(i,e){if(ke(i)){var r=[];for(var n=0;n<i.length;n+=1){r.push(e(i[n]))}return r}return e(i)};var Ie={arrayToObject:Me,assign:Le,combine:Se,compact:Pe,decode:Ce,encode:Ee,isBuffer:je,isRegExp:Oe,maybeMap:Te,merge:ze};var Be=Object.prototype.hasOwnProperty;var Fe={brackets:function t(i){return i+"[]"},comma:"comma",indices:function t(i,e){return i+"["+e+"]"},repeat:function t(i){return i}};var Re=Array.isArray;var Ne=Array.prototype.push;var De=function(t,i){Ne.apply(t,Re(i)?i:[i])};var Ye=Date.prototype.toISOString;var Ge=ye["default"];var $e={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:Ie.encode,encodeValuesOnly:false,format:Ge,formatter:ye.formatters[Ge],indices:false,serializeDate:function t(i){return Ye.call(i)},skipNulls:false,strictNullHandling:false};var Ze=function t(i){return typeof i==="string"||typeof i==="number"||typeof i==="boolean"||typeof i==="symbol"||typeof i==="bigint"};var He={};var Ue=function t(i,e,r,n,s,o,a,l,c,h,u,f,p,d,m,g){var v=i;var w=g;var b=0;var y=false;while((w=w.get(He))!==void undefined&&!y){var x=w.get(i);b+=1;if(typeof x!=="undefined"){if(x===b){throw new RangeError("Cyclic object value")}else{y=true}}if(typeof w.get(He)==="undefined"){b=0}}if(typeof l==="function"){v=l(e,v)}else if(v instanceof Date){v=u(v)}else if(r==="comma"&&Re(v)){v=Ie.maybeMap(v,(function(t){if(t instanceof Date){return u(t)}return t}))}if(v===null){if(s){return a&&!d?a(e,$e.encoder,m,"key",f):e}v=""}if(Ze(v)||Ie.isBuffer(v)){if(a){var k=d?e:a(e,$e.encoder,m,"key",f);return[p(k)+"="+p(a(v,$e.encoder,m,"value",f))]}return[p(e)+"="+p(String(v))]}var A=[];if(typeof v==="undefined"){return A}var _;if(r==="comma"&&Re(v)){if(d&&a){v=Ie.maybeMap(v,a)}_=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(Re(l)){_=l}else{var M=Object.keys(v);_=c?M.sort(c):M}var z=n&&Re(v)&&v.length===1?e+"[]":e;for(var L=0;L<_.length;++L){var C=_[L];var E=typeof C==="object"&&typeof C.value!=="undefined"?C.value:v[C];if(o&&E===null){continue}var P=Re(v)?typeof r==="function"?r(z,C):z:z+(h?"."+C:"["+C+"]");g.set(i,b);var O=ge();O.set(He,g);De(A,t(E,P,r,n,s,o,r==="comma"&&d&&Re(v)?null:a,l,c,h,u,f,p,d,m,O))}return A};var Qe=function t(i){if(!i){return $e}if(i.encoder!==null&&typeof i.encoder!=="undefined"&&typeof i.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var e=i.charset||$e.charset;if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=ye["default"];if(typeof i.format!=="undefined"){if(!Be.call(ye.formatters,i.format)){throw new TypeError("Unknown format option provided.")}r=i.format}var n=ye.formatters[r];var s=$e.filter;if(typeof i.filter==="function"||Re(i.filter)){s=i.filter}return{addQueryPrefix:typeof i.addQueryPrefix==="boolean"?i.addQueryPrefix:$e.addQueryPrefix,allowDots:typeof i.allowDots==="undefined"?$e.allowDots:!!i.allowDots,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:$e.charsetSentinel,delimiter:typeof i.delimiter==="undefined"?$e.delimiter:i.delimiter,encode:typeof i.encode==="boolean"?i.encode:$e.encode,encoder:typeof i.encoder==="function"?i.encoder:$e.encoder,encodeValuesOnly:typeof i.encodeValuesOnly==="boolean"?i.encodeValuesOnly:$e.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof i.serializeDate==="function"?i.serializeDate:$e.serializeDate,skipNulls:typeof i.skipNulls==="boolean"?i.skipNulls:$e.skipNulls,sort:typeof i.sort==="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:$e.strictNullHandling}};var Ve=function(t,i){var e=t;var r=Qe(i);var n;var s;if(typeof r.filter==="function"){s=r.filter;e=s("",e)}else if(Re(r.filter)){s=r.filter;n=s}var o=[];if(typeof e!=="object"||e===null){return""}var a;if(i&&i.arrayFormat in Fe){a=i.arrayFormat}else if(i&&"indices"in i){a=i.indices?"indices":"repeat"}else{a="indices"}var l=Fe[a];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&i&&i.commaRoundTrip;if(!n){n=Object.keys(e)}if(r.sort){n.sort(r.sort)}var h=ge();for(var u=0;u<n.length;++u){var f=n[u];if(r.skipNulls&&e[f]===null){continue}De(o,Ue(e[f],f,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,h))}var p=o.join(r.delimiter);var d=r.addQueryPrefix===true?"?":"";if(r.charsetSentinel){if(r.charset==="iso-8859-1"){d+="utf8=%26%2310003%3B&"}else{d+="utf8=%E2%9C%93&"}}return p.length>0?d+p:""};var We=Object.prototype.hasOwnProperty;var Ke=Array.isArray;var qe={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:Ie.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var Je=function(t){return t.replace(/&#(\d+);/g,(function(t,i){return String.fromCharCode(parseInt(i,10))}))};var Xe=function(t,i){if(t&&typeof t==="string"&&i.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var tr="utf8=%26%2310003%3B";var ir="utf8=%E2%9C%93";var er=function t(i,e){var r={__proto__:null};var n=e.ignoreQueryPrefix?i.replace(/^\?/,""):i;var s=e.parameterLimit===Infinity?undefined:e.parameterLimit;var o=n.split(e.delimiter,s);var a=-1;var l;var c=e.charset;if(e.charsetSentinel){for(l=0;l<o.length;++l){if(o[l].indexOf("utf8=")===0){if(o[l]===ir){c="utf-8"}else if(o[l]===tr){c="iso-8859-1"}a=l;l=o.length}}}for(l=0;l<o.length;++l){if(l===a){continue}var h=o[l];var u=h.indexOf("]=");var f=u===-1?h.indexOf("="):u+1;var p,d;if(f===-1){p=e.decoder(h,qe.decoder,c,"key");d=e.strictNullHandling?null:""}else{p=e.decoder(h.slice(0,f),qe.decoder,c,"key");d=Ie.maybeMap(Xe(h.slice(f+1),e),(function(t){return e.decoder(t,qe.decoder,c,"value")}))}if(d&&e.interpretNumericEntities&&c==="iso-8859-1"){d=Je(d)}if(h.indexOf("[]=")>-1){d=Ke(d)?[d]:d}if(We.call(r,p)){r[p]=Ie.combine(r[p],d)}else{r[p]=d}}return r};var rr=function(t,i,e,r){var n=r?i:Xe(i,e);for(var s=t.length-1;s>=0;--s){var o;var a=t[s];if(a==="[]"&&e.parseArrays){o=[].concat(n)}else{o=e.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var c=parseInt(l,10);if(!e.parseArrays&&l===""){o={0:n}}else if(!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&(e.parseArrays&&c<=e.arrayLimit)){o=[];o[c]=n}else if(l!=="__proto__"){o[l]=n}}n=o}return n};var nr=function t(i,e,r,n){if(!i){return}var s=r.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i;var o=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=r.depth>0&&o.exec(s);var c=l?s.slice(0,l.index):s;var h=[];if(c){if(!r.plainObjects&&We.call(Object.prototype,c)){if(!r.allowPrototypes){return}}h.push(c)}var u=0;while(r.depth>0&&(l=a.exec(s))!==null&&u<r.depth){u+=1;if(!r.plainObjects&&We.call(Object.prototype,l[1].slice(1,-1))){if(!r.allowPrototypes){return}}h.push(l[1])}if(l){h.push("["+s.slice(l.index)+"]")}return rr(h,e,r,n)};var sr=function t(i){if(!i){return qe}if(i.decoder!==null&&i.decoder!==undefined&&typeof i.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var e=typeof i.charset==="undefined"?qe.charset:i.charset;return{allowDots:typeof i.allowDots==="undefined"?qe.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes==="boolean"?i.allowPrototypes:qe.allowPrototypes,allowSparse:typeof i.allowSparse==="boolean"?i.allowSparse:qe.allowSparse,arrayLimit:typeof i.arrayLimit==="number"?i.arrayLimit:qe.arrayLimit,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:qe.charsetSentinel,comma:typeof i.comma==="boolean"?i.comma:qe.comma,decoder:typeof i.decoder==="function"?i.decoder:qe.decoder,delimiter:typeof i.delimiter==="string"||Ie.isRegExp(i.delimiter)?i.delimiter:qe.delimiter,depth:typeof i.depth==="number"||i.depth===false?+i.depth:qe.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===true,interpretNumericEntities:typeof i.interpretNumericEntities==="boolean"?i.interpretNumericEntities:qe.interpretNumericEntities,parameterLimit:typeof i.parameterLimit==="number"?i.parameterLimit:qe.parameterLimit,parseArrays:i.parseArrays!==false,plainObjects:typeof i.plainObjects==="boolean"?i.plainObjects:qe.plainObjects,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:qe.strictNullHandling}};var or=function(t,i){var e=sr(i);if(t===""||t===null||typeof t==="undefined"){return e.plainObjects?Object.create(null):{}}var r=typeof t==="string"?er(t,e):t;var n=e.plainObjects?Object.create(null):{};var s=Object.keys(r);for(var o=0;o<s.length;++o){var a=s[o];var l=nr(a,r[a],e,typeof t==="string");n=Ie.merge(n,l,e)}if(e.allowSparse===true){return n}return Ie.compact(n)};var ar={formats:ye,parse:or,stringify:Ve};function lr(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var cr=/^([a-z0-9.+-]+:)/i,hr=/:[0-9]*$/,ur=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,fr=["<",">",'"',"`"," ","\r","\n","\t"],pr=["{","}","|","\\","^","`"].concat(fr),dr=["'"].concat(pr),mr=["%","/","?",";","#"].concat(dr),gr=["/","?","#"],vr=255,wr=/^[+a-z0-9A-Z_-]{0,63}$/,br=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,yr={javascript:true,"javascript:":true},xr={javascript:true,"javascript:":true},kr={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function Ar(t,i,e){if(t&&typeof t==="object"&&t instanceof lr){return t}var r=new lr;r.parse(t,i,e);return r}lr.prototype.parse=function(t,i,e){if(typeof t!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof t)}var r=t.indexOf("?"),n=r!==-1&&r<t.indexOf("#")?"?":"#",s=t.split(n),o=/\\/g;s[0]=s[0].replace(o,"/");t=s.join(n);var a=t;a=a.trim();if(!e&&t.split("#").length===1){var l=ur.exec(a);if(l){this.path=a;this.href=a;this.pathname=l[1];if(l[2]){this.search=l[2];if(i){this.query=ar.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(i){this.search="";this.query={}}return this}}var c=cr.exec(a);if(c){c=c[0];var h=c.toLowerCase();this.protocol=h;a=a.substr(c.length)}if(e||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var u=a.substr(0,2)==="//";if(u&&!(c&&xr[c])){a=a.substr(2);this.slashes=true}}if(!xr[c]&&(u||c&&!kr[c])){var f=-1;for(var p=0;p<gr.length;p++){var d=a.indexOf(gr[p]);if(d!==-1&&(f===-1||d<f)){f=d}}var m,g;if(f===-1){g=a.lastIndexOf("@")}else{g=a.lastIndexOf("@",f)}if(g!==-1){m=a.slice(0,g);a=a.slice(g+1);this.auth=decodeURIComponent(m)}f=-1;for(var p=0;p<mr.length;p++){var d=a.indexOf(mr[p]);if(d!==-1&&(f===-1||d<f)){f=d}}if(f===-1){f=a.length}this.host=a.slice(0,f);a=a.slice(f);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var w=this.hostname.split(/\./);for(var p=0,b=w.length;p<b;p++){var y=w[p];if(!y){continue}if(!y.match(wr)){var x="";for(var k=0,A=y.length;k<A;k++){if(y.charCodeAt(k)>127){x+="x"}else{x+=y[k]}}if(!x.match(wr)){var _=w.slice(0,p);var M=w.slice(p+1);var z=y.match(br);if(z){_.push(z[1]);M.unshift(z[2])}if(M.length){a="/"+M.join(".")+a}this.hostname=_.join(".");break}}}}if(this.hostname.length>vr){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=K.toASCII(this.hostname)}var L=this.port?":"+this.port:"";var C=this.hostname||"";this.host=C+L;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!yr[h]){for(var p=0,b=dr.length;p<b;p++){var E=dr[p];if(a.indexOf(E)===-1){continue}var P=encodeURIComponent(E);if(P===E){P=escape(E)}a=a.split(E).join(P)}}var O=a.indexOf("#");if(O!==-1){this.hash=a.substr(O);a=a.slice(0,O)}var j=a.indexOf("?");if(j!==-1){this.search=a.substr(j);this.query=a.substr(j+1);if(i){this.query=ar.parse(this.query)}a=a.slice(0,j)}else if(i){this.search="";this.query={}}if(a){this.pathname=a}if(kr[h]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var L=this.pathname||"";var S=this.search||"";this.path=L+S}this.href=this.format();return this};function _r(t){if(typeof t==="string"){t=Ar(t)}if(!(t instanceof lr)){return lr.prototype.format.call(t)}return t.format()}lr.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var i=this.protocol||"",e=this.pathname||"",r=this.hash||"",n=false,s="";if(this.host){n=t+this.host}else if(this.hostname){n=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]");if(this.port){n+=":"+this.port}}if(this.query&&typeof this.query==="object"&&Object.keys(this.query).length){s=ar.stringify(this.query)}var o=this.search||s&&"?"+s||"";if(i&&i.substr(-1)!==":"){i+=":"}if(this.slashes||(!i||kr[i])&&n!==false){n="//"+(n||"");if(e&&e.charAt(0)!=="/"){e="/"+e}}else if(!n){n=""}if(r&&r.charAt(0)!=="#"){r="#"+r}if(o&&o.charAt(0)!=="?"){o="?"+o}e=e.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));o=o.replace("#","%23");return i+n+e+o+r};function Mr(t,i){return Ar(t,false,true).resolve(i)}lr.prototype.resolve=function(t){return this.resolveObject(Ar(t,false,true)).format()};function zr(t,i){if(!t){return i}return Ar(t,false,true).resolveObject(i)}lr.prototype.resolveObject=function(t){if(typeof t==="string"){var i=new lr;i.parse(t,false,true);t=i}var e=new lr;var r=Object.keys(this);for(var n=0;n<r.length;n++){var s=r[n];e[s]=this[s]}e.hash=t.hash;if(t.href===""){e.href=e.format();return e}if(t.slashes&&!t.protocol){var o=Object.keys(t);for(var a=0;a<o.length;a++){var l=o[a];if(l!=="protocol"){e[l]=t[l]}}if(kr[e.protocol]&&e.hostname&&!e.pathname){e.pathname="/";e.path=e.pathname}e.href=e.format();return e}if(t.protocol&&t.protocol!==e.protocol){if(!kr[t.protocol]){var c=Object.keys(t);for(var h=0;h<c.length;h++){var u=c[h];e[u]=t[u]}e.href=e.format();return e}e.protocol=t.protocol;if(!t.host&&!xr[t.protocol]){var f=(t.pathname||"").split("/");while(f.length&&!(t.host=f.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(f[0]!==""){f.unshift("")}if(f.length<2){f.unshift("")}e.pathname=f.join("/")}else{e.pathname=t.pathname}e.search=t.search;e.query=t.query;e.host=t.host||"";e.auth=t.auth;e.hostname=t.hostname||t.host;e.port=t.port;if(e.pathname||e.search){var p=e.pathname||"";var d=e.search||"";e.path=p+d}e.slashes=e.slashes||t.slashes;e.href=e.format();return e}var m=e.pathname&&e.pathname.charAt(0)==="/",g=t.host||t.pathname&&t.pathname.charAt(0)==="/",v=g||m||e.host&&t.pathname,w=v,b=e.pathname&&e.pathname.split("/")||[],f=t.pathname&&t.pathname.split("/")||[],y=e.protocol&&!kr[e.protocol];if(y){e.hostname="";e.port=null;if(e.host){if(b[0]===""){b[0]=e.host}else{b.unshift(e.host)}}e.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(f[0]===""){f[0]=t.host}else{f.unshift(t.host)}}t.host=null}v=v&&(f[0]===""||b[0]==="")}if(g){e.host=t.host||t.host===""?t.host:e.host;e.hostname=t.hostname||t.hostname===""?t.hostname:e.hostname;e.search=t.search;e.query=t.query;b=f}else if(f.length){if(!b){b=[]}b.pop();b=b.concat(f);e.search=t.search;e.query=t.query}else if(t.search!=null){if(y){e.host=b.shift();e.hostname=e.host;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}e.search=t.search;e.query=t.query;if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.href=e.format();return e}if(!b.length){e.pathname=null;if(e.search){e.path="/"+e.search}else{e.path=null}e.href=e.format();return e}var k=b.slice(-1)[0];var A=(e.host||t.host||b.length>1)&&(k==="."||k==="..")||k==="";var _=0;for(var M=b.length;M>=0;M--){k=b[M];if(k==="."){b.splice(M,1)}else if(k===".."){b.splice(M,1);_++}else if(_){b.splice(M,1);_--}}if(!v&&!w){for(;_--;_){b.unshift("..")}}if(v&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")){b.unshift("")}if(A&&b.join("/").substr(-1)!=="/"){b.push("")}var z=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(y){e.hostname=z?"":b.length?b.shift():"";e.host=e.hostname;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}v=v||e.host&&b.length;if(v&&!z){b.unshift("")}if(b.length>0){e.pathname=b.join("/")}else{e.pathname=null;e.path=null}if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.auth=t.auth||e.auth;e.slashes=e.slashes||t.slashes;e.href=e.format();return e};lr.prototype.parseHost=function(){var t=this.host;var i=hr.exec(t);if(i){i=i[0];if(i!==":"){this.port=i.substr(1)}t=t.substr(0,t.length-i.length)}if(t){this.hostname=t}};var Lr=Ar;var Cr=Mr;var Er=zr;var Pr=_r;var Or=lr;var jr={parse:Lr,resolve:Cr,resolveObject:Er,format:Pr,Url:Or};!function(t){t()}((function(){const t={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"}},i=6e4,e=60*i,r=24*e;function n(t,i){return new URL(t,t.startsWith("../")||t.startsWith("./")?i:void 0).toString()}function s(t,i){let e=m("a","",{href:t,target:"_new",download:i||"",style:"display:none;"}),r=document.body;r.appendChild(e),e.click(),r.removeChild(e)}function o(t,i,e){return t&&(({props:r,point:n,id:s,isMulti:o})=>{if(r)for(const l of t)if(l in r){n.meta[i]=(e||a).call(this,o?r[l][o]:r[l],s);break}})}const a=(t,i)=>parseInt("object"==typeof t?t[i]:t),l=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.addClass(t,i))),c=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.removeClass(t,i))),h=(t,i,e)=>(e?l:c)(t,i),u=(t,i,e)=>i&&c(t,i)||e&&l(t,e),f=(t,i,e)=>void 0===e&&L.DomUtil.getStyle(t,i)||t.style.setProperty(i,e),p=(t,i)=>{for(let e in i)t.setAttribute(e,i[e])},d=(t,i,e,r)=>t[r?"on":"off"](i,e),m=(t,i,e,r)=>{let n=L.DomUtil.create(t,i||"");return e&&p(n,e),r&&g(r,n),n},g=(t,i)=>t.appendChild(i),v=(t,i,e)=>t.insertAdjacentElement(e,i),w=(t,i)=>(i||document).querySelector(t),b=(t,i)=>{for(let e in t)i(t[e],e)},y=()=>Math.random().toString(36).substr(2,9),{on:x,off:k}=L.DomEvent,{throttle:A,wrapNum:_}=L.Util,{hasClass:M}=L.DomUtil,z=L.Util.formatNum,C=(t,i)=>i?t<i[0]?i[0]:t>i[1]?i[1]:t:t,E=(t,i,e)=>Math.abs(t-i)>e?i+e*Math.sign(t-i):t;function P(t,i=[],e=[]){switch(!t||typeof t){case"object":const r=e.filter((i=>t===i.original))[0];if(r)return r.copy;const n=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return e.push({original:t,copy:n}),Object.getOwnPropertyNames(t).forEach((function(r){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get||s.set?s:{writable:s.writable,configurable:s.configurable,enumerable:s.enumerable,value:i.includes(r)?s.value:P(s.value,i,e)})})),n;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var O=Object.freeze({__proto__:null,Colors:t,addClass:l,append:g,clamp:C,cloneDeep:P,coordPropsToMeta:o,create:m,drawCanvas:function(t,i){i.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let e=new Path2D(i.attr("d"));t.strokeStyle=i.attr("stroke"),t.fillStyle=i.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=i.attr("stroke-opacity")||.3,t.stroke(e),t.globalAlpha=i.attr("fill-opacity")||.45,t.fill(e),t.globalAlpha=1,t.closePath()},each:b,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():i=>t(i):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let n=Math.floor(t/r),s=Math.floor((t-n*r)/e),o=Math.floor((t-n*r-s*e)/i),a=Math.round((t-n*r-s*e-o*i)/1e3);return 60===a&&(o++,a=0),60===o&&(s++,o=0),24===s&&(n++,s=0),(n?n+"d ":"")+s.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:M,iAvg:(t,i=0,e=1)=>(t+i*(e-1))/e,iMax:(t,i=-1/0)=>t>i?t:i,iMin:(t,i=1/0)=>t<i?t:i,iSum:(t,i=0)=>t+i,insert:v,off:k,on:x,parseDate:(t,i)=>new Date(Date.parse("object"==typeof t?t[i]:t)),parseNumeric:a,randomId:y,removeClass:c,replaceClass:u,resolveURL:n,round:z,saveFile:s,select:w,setAttributes:p,style:f,throttle:A,toggleClass:h,toggleEvent:d,toggleStyle:(t,i,e,r)=>f(t,i,r?e:""),wrapDelta:E,wrapNum:_}),j={autofitBounds:!0,autohide:!1,autohideMarker:!0,almostover:!0,altitude:!0,closeBtn:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",edgeScale:{bar:!0,icon:!1,coords:!1},followMarker:!0,imperial:!1,legend:!0,handlers:["Distance","Time","Altitude","Slope","Speed","Acceleration"],hotline:"elevation",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,theme:"lightblue-theme",summary:"inline",slope:!1,speed:!1,time:!0,timeFactor:3600,timestamps:!1,trkStart:{className:"start-marker",radius:6,weight:2,color:"#fff",fillColor:"#00d800",fillOpacity:1,interactive:!1},trkEnd:{className:"end-marker",radius:6,weight:2,color:"#fff",fillColor:"#ff0606",fillOpacity:1,interactive:!1},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",yAttr:"z",yLabel:"m",zFollow:!1,zooming:!L.Browser.Mobile,margins:{top:30,right:30,bottom:30,left:40},height:.3*screen.height||200,width:.6*screen.width||600,xTicks:void 0,yTicks:void 0,decimalsX:2,decimalsY:0,forceAxisBounds:!1,interpolation:"curveLinear",yAxisMax:void 0,yAxisMin:void 0,srcFolder:(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document&&"undefined"==typeof location?jr.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?jr.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/"};L._&&L.i18n||(L._=L.i18n=(t,i)=>t);const S=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:j,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@7.8.4/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@5.6.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.10.1/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LHOTLINE:"../libs/leaflet-hotline.min.js",__LDISTANCEM:"../libs/leaflet-distance-marker.min.js",__LEDGESCALE:"../libs/leaflet-edgescale.min.js",__LCHART:"../src/components/chart.js",__LMARKER:"../src/components/marker.js",__LSUMMARY:"../src/components/summary.js",__modulesFolder:"../src/handlers/",__btnIcon:"../images/elevation.svg",addData(t,i){this.import(this.__D3).then((()=>{this._modulesLoaded?(i=i??(t.on&&t),this._addData(t),this._addLayer(i),this._fireEvt("eledata_added",{data:t,layer:i,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,i)))}))},addTo(t){if(this.options.detached){let i=w(this.options.elevationDiv),e=this.onAdd(t);i?g(i,e):v(t.getContainer(),e,"afterend")}else L.Control.prototype.addTo.call(this,t);return this},clear(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(this._layers),this._markers&&this._clearLayers(this._markers),this._circleMarkers&&this._circleMarkers.remove(),this._hotline&&this._hotline.eachLayer((t=>t.options.renderer.remove())),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart(){this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((({fn:t,ctx:i})=>this.off("elechart_updated",t,i))),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((t=>t.remove())),t.clearLayers())},disableBrush(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush(){this._chart._brushEnabled=!0},disableZoom(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom(){this._chart._zoomEnabled=!0},fitBounds(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds(t){return L.latLngBounds((t||this._data).map((t=>t.latlng)))},getZFollow(){return this.options.zFollow},hide(){f(this._container,"display","none")},initialize(i){i=L.setOptions(this,L.extend({},P(j),i)),this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._hotline=L.featureGroup(),this._circleMarkers=L.featureGroup(),this._markedSegments=L.polyline([]),this._start=L.circleMarker([0,0],i.trkStart||j.trkStart),this._end=L.circleMarker([0,0],i.trkEnd||j.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},i.followMarker&&(this._setMapView=A(this._setMapView,300,this)),i.legend&&(i.margins.bottom+=30),i.theme&&(i.polylineSegments.className+=" "+i.theme),!0===i.wptIcons&&(i.wptIcons=j.wptIcons),!0===i.distanceMarkers&&(i.distanceMarkers=j.distanceMarkers),i.trkStart&&this._start.addTo(this._circleMarkers),i.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(i.polylineSegments),L.extend(t,i.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import(t,i){switch(t){case this.__D3:i="object"!=typeof d3;break;case this.__TOGEOJSON:i="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:i="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:i="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:i="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:i="function"!=typeof L.Hotline}return!1!==i?__sc_import_geotrek_rando_widget(n(t,this.options.srcFolder)):Promise.resolve()},load(t){this._parseFromString(t).then((i=>i?this._loadLayer(i):this._loadFile(t)))},onAdd(t){this._map=t;let i=this._container=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+y()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((()=>{this._initChart(i),this._initButton(i),this._initSummary(i),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded")})),this.fire("add"),i},onRemove(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),k(t.getContainer(),"mousewheel",this._resetDrag,this),k(t.getContainer(),"touchstart",this._resetDrag,this),k(document,"keydown",this._onKeyDown,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this),this.fire("remove")},redraw(){this._resizeChart()},setZFollow(t){this.options.zFollow=t},show(){f(this._container,"display","block")},_addData(t){if(t){if("FeatureCollection"===t.type)return b(t.features,(t=>this._addData(t)));if("Feature"===t.type){let i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return b(i.coordinates,((i,e)=>this._addGeoJSONData(i,t.properties,e)));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData(t,i,e){let r=i&&i.coordinateProperties||i;t.forEach(((t,i)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[i>0?i-1:0][t]:this._data[i>0?i-1:0],this.fire("elepoint_init",{point:t,props:r,id:i,isMulti:e}),this._addPoint(t.lat??t[1],t.lng??t[0],t.alt??t.meta.ele??t[2]),this.fire("elepoint_added",{point:t,index:this._data.length-1}),this._yCoordMax<this._data[this._data.length-1][this.options.yAttr]&&(this._yCoordMax=this._data[this._data.length-1][this.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint(t,i,e){this.options.reverseCoords&&([t,i]=[i,t]),this._data.push({x:t,y:i,z:e,latlng:L.latLng(t,i,e)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:i})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,i){return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((()=>{t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(i),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(i),t.off("almost:move",this._onMouseMoveLayer,this).off("almost:out",this._onMouseOut,this)})))})):Promise.resolve()},_initDistanceMarkers(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale(t){return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((()=>{t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof this.options.edgeScale?this.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine(t){let i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((()=>{t.eachLayer((t=>{if("Point"!=t.feature.geometry.type){let e=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),r=L.hotline(e.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[i+"_min"])?this.track_info[i+"_min"]:0,max:isFinite(this.track_info[i+"_max"])?this.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),n=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:i})=>{t.setStyle({opacity:"add"==i?0:n}),r["add"==i?"addTo":"removeFrom"](t._map),r._renderer&&r._renderer._container.parentElement.insertBefore(r._renderer._container,r._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations(t){let i=this._map;i?(this._data.length&&(this._start.setLatLng(this._data[0].latlng),this._end.setLatLng(this._data[this._data.length-1].latlng)),Promise.all([this._initHotLine(t),this._initAlmostOverHandler(i,t),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(i)),this._circleMarkers.addTo(i)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(()=>this._initMapIntegrations(t)))},_collapse(){u(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand(){u(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths(){let i=L.Canvas.prototype._fillStroke,e=this,r=this.options.theme.split(" ")[0].replace("-theme",""),n=t[r]||{};L.Canvas.include({_fillStroke(t,s){if(e._layers.hasLayer(s)){let e=s.options;if(e.color=n.line||n.area||r,e.stroke=!!e.color,i.call(this,t,s),e.stroke&&0!==e.weight){let i=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=n.outline||"#FFF",t.lineWidth=1.75*e.weight,t.stroke(),t.globalCompositeOperation=i}}else i.call(this,t,s)}})},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:i})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,i),this._chart._showDiagramIndicator(t,i)),this._updateMarker(t)}))))},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,i,e){this.fire&&this.fire(t,i,e),this._map&&this._map.fire(t,i,e)},_hideMarker(){this.options.autohideMarker&&this._marker.remove()},_initChart(t){let i=this.options,e=this._map;if(i.detached){let{offsetWidth:t,offsetHeight:e}=this.eleDiv;t>0&&(i.width=t),e>20&&(i.height=e-20)}else{let{clientWidth:t}=e.getContainer();i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>t&&(i.width=t-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((r=>{let n=this._chart=new(r[1]||S).Chart(i,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._onMouseEnter,this).on("dragged",this._onDragEnd,this).on("mouse_move",this._onMouseMove,this).on("mouse_out",this._onMouseOut,this).on("ruler_filter",this._onRulerFilter,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._onToggleChart,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_init"),e.on("zoom viewreset zoomanim",this._hideMarker,this).on("resize",this._resetView,this).on("resize",this._resizeChart,this).on("rotate",this._rotateMarker,this).on("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.on("eledata_added eledata_loaded",this._updateChart,this).on("eledata_added eledata_loaded",this._updateSummary,this),this._updateChart(),this._updateSummary()}))},_initLayer(){this._layers.on("layeradd layerremove",(({layer:t,type:i})=>{let e=t.getElement&&t.getElement();h(e,this.options.polyline.className+" "+this.options.theme,"layeradd"==i),d(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==i),d(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==i)}))},_initMarker(t){let i=t.getPane("elevationPane");i||(i=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane")),i.style.zIndex=625,i.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),Promise.all([this.import(this.__D3),this.import(this.__LMARKER)]).then((t=>{this._marker=new(t[1]||S).Marker(this.options,this),this.fire("elechart_marker")}))},_initButton(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let i=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);x(i,"click",L.DomEvent.stop),x(i,"click",this._toggle,this),x(i,"focus",this._toggle,this),fetch(n(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>i.innerHTML=t))))}},_initSummary(t){this.import(this.__LSUMMARY).then((i=>{this._summary=new(i||S).Summary({summary:this.options.summary},this),this.on("elechart_init",(()=>{d3.select(t).call(this._summary.render())}))}))},_loadFile(t){fetch(t).then((t=>t.text())).then((i=>{this._downloadURL=t,this._parseFromString(i).then((t=>t&&this._loadLayer(t)))})).catch((t=>console.warn(t)))},_loadModules(t){let i=(t=t.map((t=>"string"==typeof t&&void 0!==S[t]?S[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(i).then((i=>{b(i,((i,e)=>{let r=i&&Object.keys(i)[0];r&&(t[e]=S[r]=S[r]??i[r])})),b(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)))}))},_loadLayer(t){let{polyline:i,theme:e,waypoints:r,wptIcons:n,wptLabels:s,distanceMarkers:o}=this.options,a=L.extend({},i);e&&(a.className+=" "+e),t.name&&(this.track_info.name=t.name);let l=L.geoJson(t,{distanceMarkers:o,style:a,pointToLayer:(t,i)=>{if(r){let{desc:e,name:o,sym:a}=t.properties;if(e=e||"",o=o||"",[!0,"dots"].includes(r)&&this._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?o:""}),[!0,"markers"].includes(r)&&0!=n)return this._registerMarker({latlng:i,sym:(a??o).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(o||e)&&decodeURI("<b>"+o+"</b>"+(e.length>0?"<br>"+e:""))})}},onEachFeature:(t,i)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,i)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(l);const i={data:t,layer:l,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",i):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",i)))})),l},_onDragEnd({dragstart:t,dragend:i}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown({key:t}){this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter(){this.fire("elechart_enter")},_onMouseMove({xCoord:t}){if(this._chartEnabled&&this._data.length){let i=this._findItemForX(t);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this._setMapView(i),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:t}),this.fire("elechart_hover",{data:i,xCoord:t}))}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let i=this._findItemForLatLng(t);if(i){let t=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:t})}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter({coords:t}){this._updateMapSegments(t)},_onToggleChart({name:t,enabled:i}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>h(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=i||"disabled"!=this.options[t]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString(t){try{return JSON.parse(t)}catch(t){}},_parseFromString(t){return new Promise((i=>this.import(this.__TOGEOJSON).then((()=>{let e;try{e=this._parseFromXMLString(t.trim())}catch(i){e=this._parseFromGeoJSONString(t.toString())}e&&(e.name=e.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(e)}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw"Invalid XML";let i=(new DOMParser).parseFromString(t,"text/xml"),e=i.documentElement.tagName.toLowerCase(),r=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";e in toGeoJSON||(e="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");let n=toGeoJSON[e](i);return n.name=r.length>0?(Array.from(r).find((t=>"trk"==t.parentElement.tagName))??r[0]).textContent:"",n},_registerAreaPath(t){this.on("elechart_init",(()=>this._chart._registerAreaPath(t)))},_registerAxisGrid(t){this.on("elechart_axis",(()=>this._chart._registerAxisGrid(t)))},_registerAxisScale(t){this.on("elechart_axis",(()=>this._chart._registerAxisScale(t)))},_registerCheckPoint(t){const i=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",i).once("eledata_clear",(()=>this.off("elechart_updated",i)))},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(i=>t.coordPropsToMeta.call(this,i)));let i,e,r,n=t.attr||t.name,s={};this.on("elepoint_added",(({index:o,point:a})=>{if(i=o,r=e??this._data[i],e=this._data[i],e[n]=t.pointToAttr.call(this,a,i),i>0&&isNaN(r[n])&&(isNaN(s[n])||isNaN(e[n])?isNaN(s[n])?isNaN(e[n])||(r[n]=e[n]):r[n]=s[n]:r[n]=(s[n]+e[n])/2,t.meta&&(r[t.meta]=r[n])),!isNaN(e[n])){if(s[n]=e[n],t.deltaMax&&(e[n]=E(e[n],r[n],t.deltaMax)),t.clampRange&&(e[n]=C(e[n],t.clampRange)),isNaN(t.decimals)||(e[n]=z(e[n],t.decimals)),t.stats)for(const i in t.stats){let r=(t.statsName||n)+(""!=i?"_":"");this.track_info[r+i]=t.stats[i].call(this,e[n],this.track_info[r+i],this._data.length)}t.onPointAdded&&t.onPointAdded.call(this,e[n],i,a)}}))},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:i,attr:e,required:r,deltaMax:n,clampRange:s,decimals:a,meta:l,unit:c,coordinateProperties:h,coordPropsToMeta:u,pointToAttr:f,onPointAdded:p,stats:d,statsName:m,grid:g,scale:v,path:w,tooltip:y,summary:x}=t;(this.options[i]||r)&&(this._registerDataAttribute({name:i,attr:e,meta:l,deltaMax:n,clampRange:s,decimals:a,coordPropsToMeta:o(h,l||i,u),pointToAttr:f,onPointAdded:p,stats:d,statsName:m}),g&&this._registerAxisGrid(L.extend({name:i},g)),"summary"!==this.options[i]&&(v&&this._registerAxisScale(L.extend({name:i,label:c},v)),w&&this._registerAreaPath(L.extend({name:i},w))),(y||t.tooltips)&&b([y,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:i},t)))),x&&(b(x,((t,i)=>x[i]=L.extend({unit:c},t))),this._registerSummary(x)))},_registerMarker({latlng:t,sym:i,content:e}){let{wptIcons:r}=this.options;r.hasOwnProperty(i)||(r[i]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));let n=L.marker(t,{icon:r[i]});return e&&(n.bindPopup(e,{className:"elevation-popup",keepInView:!0}).openPopup(),n.bindTooltip(e,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(n)},_registerTooltip(t){t.chart&&this.on("elechart_init",(()=>this._chart._registerTooltip(L.extend({},t,{value:t.chart})))),t.marker&&this.on("elechart_marker",(()=>this._marker._registerTooltip(L.extend({},t,{value:t.marker}))))},_registerSummary(t){this.on("elechart_summary",(()=>this._summary._registerSummary(t)))},_resetDrag(){this._chart._resetDrag(),this._hideMarker()},_resetView(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart(){if(this._container&&"none"!=f(this._container,"display")){let t=this.options,i=t.detached?(this.eleDiv||this._container).offsetWidth:C(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);i&&(t.width=i,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle(){M(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView(t){if(this._map&&this.options.followMarker){let i=this._map.getZoom(),e=this.options.zFollow;"number"==typeof e?this._map.setView(t.latlng,i<e?e:i,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,i,{animate:!0,duration:.25})}},_updateChart(){this._chart&&this._container&&(this.fire("elechart_axis"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker(){this._marker&&this._marker.update()},_updateMapSegments(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary(){this._summary&&(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>",w(".download a",this._summary._container).onclick=t=>{t.preventDefault();let i={downloadLink:this.options.downloadLink,confirm:s.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||i.confirm(),this.fire("eletrack_download",i)}))},_width(){if(this._chart)return this._chart._width();const{width:t,margins:i}=this.options;return t-i.left-i.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:i}=this.options;return t-i.top-i.bottom}});S.Utils=O,L.control.elevation=t=>new S(t)}));U((function(t,i){!function(t,e){e(i)}(H,(function(t){var i=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 i=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,i?this._withAnimation:this._noAnimation),this._markerCluster=i?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 i=t,e=this._zoom;if(t.__parent)for(;i.__parent._zoom>=e;)i=i.__parent;return this._currentShownBounds.contains(i.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,i):this._animationAddLayerNonAnimated(t,i)),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,i){if(!L.Util.isArray(t))return this.addLayer(t);var e,r=this._featureGroup,n=this._nonPointGroup,s=this.options.chunkedLoading,o=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,c=0,h=!0;if(this._map){var u=(new Date).getTime(),f=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(s&&c%200==0){var d=(new Date).getTime()-p;if(o<d)break}if((e=t[c])instanceof L.LayerGroup)h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(e,t),l=t.length;else if(e.getLatLng){if(!this.hasLayer(e)&&(this._addLayer(e,this._maxZoom),i||this.fire("layeradd",{layer:e}),e.__parent&&2===e.__parent.getChildCount())){var m=e.__parent.getAllChildMarkers(),g=m[0]===e?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(e),i||this.fire("layeradd",{layer:e})}a&&a(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(f,this.options.chunkDelay)}),this);f()}else for(var p=this._needsClustering;c<l;c++)(e=t[c])instanceof L.LayerGroup?(h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(e,t),l=t.length):e.getLatLng?this.hasLayer(e)||p.push(e):n.addLayer(e);return this},removeLayers:function(t){var i,e,r=t.length,n=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):(this._arraySplice(this._needsClustering,e),s.removeLayer(e),this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),l=r;for(i=0;i<l;i++)(e=a[i])instanceof L.LayerGroup?(this._extractNonGroupLayers(e,a),l=a.length):this._unspiderfyLayer(e)}for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):e.__parent?(this._removeLayer(e,!0,!0),this.fire("layerremove",{layer:e}),n.hasLayer(e)&&(n.removeLayer(e),e.clusterShow&&e.clusterShow())):(s.removeLayer(e),this.fire("layerremove",{layer:e}));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 i=this._needsClustering.length-1;0<=i;i--)t.extend(this._needsClustering[i].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,i){var e,r,n,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(e=!0,n=o.length-1;0<=n;n--)if(o[n].layer===s[r]){e=!1;break}e&&t.call(i,s[r])}this._nonPointGroup.eachLayer(t,i)},getLayers:function(){var t=[];return this.eachLayer((function(i){t.push(i)})),t},getLayer:function(t){var i=null;return t=parseInt(t,10),this.eachLayer((function(e){L.stamp(e)===t&&(i=e)})),i},hasLayer:function(t){if(!t)return!1;var i,e=this._needsClustering;for(i=e.length-1;0<=i;i--)if(e[i]===t)return!0;for(i=(e=this._needsRemoving).length-1;0<=i;i--)if(e[i].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,i){var e=this._map;"function"!=typeof i&&(i=function(){});var r=function(){!e.hasLayer(t)&&!e.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),e.hasLayer(t)?i():t.__parent._icon&&(this.once("spiderfied",i,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?i():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 i,e,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,i=0,e=this._needsRemoving.length;i<e;i++)(r=this._needsRemoving[i]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(i=0,e=this._needsRemoving.length;i<e;i++)r=this._needsRemoving[i],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(),e=this._needsClustering,this._needsClustering=[],this.addLayers(e,!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 i=t;i&&!i._icon;)i=i.__parent;return i||null},_arraySplice:function(t,i){for(var e=t.length-1;0<=e;e--)if(t[e]===i)return t.splice(e,1),!0},_removeFromGridUnclustered:function(t,i){for(var e=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=i&&r[i].removeObject(t,e.project(t.getLatLng(),i));i--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var i=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),i&&t.target.openPopup()}},_moveChild:function(t,i,e){t._latlng=i,this.removeLayer(t),t._latlng=e,this.addLayer(t)},_childMarkerDragEnd:function(t){var i=t.target.__dragStart;delete t.target.__dragStart,i&&this._moveChild(t.target,i,t.target._latlng)},_removeLayer:function(t,i,e){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());i&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,h=c._markers;for(this._arraySplice(h,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)i&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,o.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,o.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(s.removeLayer(c),e||s.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,i){for(;i;){if(t===i)return!0;i=i.parentNode}return!1},fire:function(t,i,e){if(i&&i.layer instanceof L.MarkerCluster){if(i.originalEvent&&this._isOrIsParent(i.layer._icon,i.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,i,e)},listens:function(t,i){return L.FeatureGroup.prototype.listens.call(this,t,i)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,i)},_defaultIconCreateFunction:function(t){var i=t.getChildCount(),e=" marker-cluster-";return e+=i<10?"small":i<100?"medium":"large",new L.DivIcon({html:"<div><span>"+i+"</span></div>",className:"marker-cluster"+e,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,i=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(i||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var i=t.layer,e=i;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===e._childClusters.length;)e=e._childClusters[0];e._zoom===this._maxZoom&&e._childCount===i._childCount&&this.options.spiderfyOnMaxZoom?i.spiderfy():this.options.zoomToBoundsOnClick&&i.zoomToBounds(),this.options.spiderfyOnEveryZoom&&i.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var i=this._map;this._inZoomAnimation||(this._shownPolygon&&i.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),i.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,e=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||e||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.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()),i=Math.floor(this._map.getMinZoom()),e=this.options.maxClusterRadius,r=e;"function"!=typeof e&&(r=function(){return e}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;i<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,i-1)},_addLayer:function(t,i){var e,r,n=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);o<=i;i--){e=this._map.project(t.getLatLng(),i);var a=n[i].getNearObject(e);if(a)return a._addChild(t),void(t.__parent=a);if(a=s[i].getNearObject(e)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,i,a,t);n[i].addObject(c,this._map.project(c._cLatLng,i)),a.__parent=c;var h=t.__parent=c;for(r=i-1;r>l._zoom;r--)h=new this._markerCluster(this,r,h),n[r].addObject(h,this._map.project(a.getLatLng(),r));return l._addChild(h),void this._removeFromGridUnclustered(a,i)}s[i].addObject(t,e)}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 i=this._maxLat;return void 0!==i&&(t.getNorth()>=i&&(t._northEast.lat=1/0),t.getSouth()<=-i&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,i){if(i===t)this._featureGroup.addLayer(t);else if(2===i._childCount){i._addToMap();var e=i.getAllChildMarkers();this._featureGroup.removeLayer(e[0]),this._featureGroup.removeLayer(e[1])}else i._updateIcon()},_extractNonGroupLayers:function(t,i){var e,r=t.getLayers(),n=0;for(i=i||[];n<r.length;n++)(e=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(e,i):i.push(e);return i},_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,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,i){this._animationAddLayerNonAnimated(t,i)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,i){var e,r=this._getExpandedVisibleBounds(),n=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,s,(function(s){var o,a=s._latlng,l=s._markers;for(r.contains(a)||(a=null),s._isSingleParent()&&t+1===i?(n.removeLayer(s),s._recursivelyAddChildrenToMap(null,i,r)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,i,r)),e=l.length-1;0<=e;e--)o=l[e],r.contains(o._latlng)||n.removeLayer(o)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,i),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,i,(function(t){t._recursivelyRestoreChildPositions(i)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,s,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,i){this._animationZoomOutSingle(this._topClusterLevel,t-1,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,i){var e=this,r=this._featureGroup;r.addLayer(t),i!==t&&(2<i._childCount?(i._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(i.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),e._animationEnd()}))):(this._forceLayout(),e._animationStart(),e._animationZoomOutSingle(i,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,i,e){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,i+1,e);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(r,e),this._enqueue((function(){if(1===t._childCount){var o=t._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else t._recursively(r,e,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,i+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var e=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,i,e,r){L.Marker.prototype.initialize.call(this,e?e._cLatLng||e.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=i,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,e&&this._addChild(e),r&&this._addChild(r)},getAllChildMarkers:function(t,i){t=t||[];for(var e=this._childClusters.length-1;0<=e;e--)this._childClusters[e].getAllChildMarkers(t,i);for(var r=this._markers.length-1;0<=r;r--)i&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var i,e=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,o=r.getZoom();0<e.length&&s<n;){s++;var a=[];for(i=0;i<e.length;i++)a=a.concat(e[i]._childClusters);e=a}s<n?this._group._map.setView(this._latlng,s):n<=o?this._group._map.setView(this._latlng,o+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,i){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(i||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(i||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,i,e,r,n=this._markers,s=this._childClusters,o=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<n.length;t++)e=n[t]._latlng,this._bounds.extend(e),o+=e.lat,a+=e.lng;for(t=0;t<s.length;t++)(i=s[t])._boundsNeedUpdate&&i._recalculateBounds(),this._bounds.extend(i._bounds),e=i._wLatLng,r=i._childCount,o+=e.lat*r,a+=e.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/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,i,e){this._recursively(t,this._group._map.getMinZoom(),e-1,(function(t){var e,r,n=t._markers;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}),(function(t){var e,r,n=t._childClusters;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,i,e,r){this._recursively(t,r,i,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),e),n._isSingleParent()&&e-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,i,e)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,i){this._recursively(t,this._group._map.getMinZoom(),i,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,i,e){this._recursively(e,this._group._map.getMinZoom()-1,i,(function(r){if(i!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var s=r._markers[n];e.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),r._group._featureGroup.addLayer(s))}}),(function(i){i._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var i=this._markers.length-1;0<=i;i--){var e=this._markers[i];e._backupLatlng&&(e.setLatLng(e._backupLatlng),delete e._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,i,e,r){var n,s;this._recursively(t,i-1,e-1,(function(t){for(s=t._markers.length-1;0<=s;s--)n=t._markers[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)n=t._childClusters[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,i,e,r,n){var s,o,a=this._childClusters,l=this._zoom;if(i<=l&&(r&&r(this),n&&l===e&&n(this)),l<i||l<e)for(s=a.length-1;0<=s;s--)(o=a[s])._boundsNeedUpdate&&o._recalculateBounds(),t.intersects(o._bounds)&&o._recursively(t,i,e,r,n)},_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,i){var e=this._getCoord(i.x),r=this._getCoord(i.y),n=this._grid,s=n[r]=n[r]||{},o=s[e]=s[e]||[],a=L.Util.stamp(t);this._objectPoint[a]=i,o.push(t)},updateObject:function(t,i){this.removeObject(t),this.addObject(t,i)},removeObject:function(t,i){var e,r,n=this._getCoord(i.x),s=this._getCoord(i.y),o=this._grid,a=o[s]=o[s]||{},l=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],e=0,r=l.length;e<r;e++)if(l[e]===t)return l.splice(e,1),1===r&&delete a[n],!0},eachObject:function(t,i){var e,r,n,s,o,a,l=this._grid;for(e in l)for(r in o=l[e])for(n=0,s=(a=o[r]).length;n<s;n++)t.call(i,a[n])&&(n--,s--)},getNearObject:function(t){var i,e,r,n,s,o,a,l,c=this._getCoord(t.x),h=this._getCoord(t.y),u=this._objectPoint,f=this._sqCellSize,p=null;for(i=h-1;i<=h+1;i++)if(n=this._grid[i])for(e=c-1;e<=c+1;e++)if(s=n[e])for(r=0,o=s.length;r<o;r++)a=s[r],((l=this._sqDist(u[L.Util.stamp(a)],t))<f||l<=f&&null===p)&&(f=l,p=a);return p},_getCoord:function(t){var i=Math.floor(t/this._cellSize);return isFinite(i)?i:t},_sqDist:function(t,i){var e=i.x-t.x,r=i.y-t.y;return e*e+r*r}},L.QuickHull={getDistant:function(t,i){var e=i[1].lat-i[0].lat;return(i[0].lng-i[1].lng)*(t.lat-i[0].lat)+e*(t.lng-i[0].lng)},findMostDistantPointFromBaseLine:function(t,i){var e,r,n,s=0,o=null,a=[];for(e=i.length-1;0<=e;e--)r=i[e],0<(n=this.getDistant(r,t))&&(a.push(r),s<n&&(s=n,o=r));return{maxPoint:o,newPoints:a}},buildConvexHull:function(t,i){var e=[],r=this.findMostDistantPointFromBaseLine(t,i);return r.maxPoint?e=(e=e.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var i,e=!1,r=!1,n=!1,s=!1,o=null,a=null,l=null,c=null,h=null,u=null;for(i=t.length-1;0<=i;i--){var f=t[i];(!1===e||f.lat>e)&&(e=(o=f).lat),(!1===r||f.lat<r)&&(r=(a=f).lat),(!1===n||f.lng>n)&&(n=(l=f).lng),(!1===s||f.lng<s)&&(s=(c=f).lng)}return h=r!==e?(u=a,o):(u=c,l),[].concat(this.buildConvexHull([u,h],t),this.buildConvexHull([h,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,i,e=this.getAllChildMarkers(),r=[];for(i=e.length-1;0<=i;i--)t=e[i].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,i=this.getAllChildMarkers(null,!0),e=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(i.length,e):i.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(i.length,e):(e.y+=10,this._generatePointsCircle(i.length,e)),this._animationSpiderfy(i,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,i){var e,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,o=[];for(n=Math.max(n,35),o.length=t,e=0;e<t;e++)r=this._circleStartAngle+e*s,o[e]=new L.Point(i.x+n*Math.cos(r),i.y+n*Math.sin(r))._round();return o},_generatePointsSpiral:function(t,i){var e,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(e=l.length=t;0<=e;e--)e<t&&(l[e]=new L.Point(i.x+n*Math.cos(a),i.y+n*Math.sin(a))._round()),n+=o/(a+=s/n+5e-4*e);return l},_noanimationUnspiderfy:function(){var t,i,e=this._group,r=e._map,n=e._featureGroup,s=this.getAllChildMarkers(null,!0);for(e._ignoreMove=!0,this.setOpacity(1),i=s.length-1;0<=i;i--)t=s[i],n.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);e.fire("unspiderfied",{cluster:this,markers:s}),e._ignoreMove=!1,e._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,i){var e,r,n,s,o=this._group,a=o._map,l=o._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,e=0;e<t.length;e++)s=a.layerPointToLatLng(i[e]),r=t[e],n=new L.Polyline([this._latlng,s],c),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,i){var e,r,n,s,o,a,l=this,c=this._group,h=c._map,u=c._featureGroup,f=this._latlng,p=h.latLngToLayerPoint(f),d=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),d?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,e=0;e<t.length;e++)r=t[e],a=h.layerPointToLatLng(i[e]),n=new L.Polyline([f,a],m),h.addLayer(n),r._spiderLeg=n,d&&(o=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(p);for(c._forceLayout(),c._animationStart(),e=t.length-1;0<=e;e--)a=h.layerPointToLatLng(i[e]),(r=t[e])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),d&&((s=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var i,e,r,n,s,o,a=this,l=this._group,c=l._map,h=l._featureGroup,u=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),f=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),e=f.length-1;0<=e;e--)(i=f[e])._preSpiderfyLatlng&&(i.closePopup(),i.setLatLng(i._preSpiderfyLatlng),delete i._preSpiderfyLatlng,o=!0,i._setPos&&(i._setPos(u),o=!1),i.clusterHide&&(i.clusterHide(),o=!1),o&&h.removeLayer(i),p&&(s=(n=(r=i._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(e=f.length-1;0<=e;e--)(i=f[e])._spiderLeg&&t++;for(e=f.length-1;0<=e;e--)(i=f[e])._spiderLeg&&(i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),1<t&&h.removeLayer(i),c.removeLayer(i._spiderLeg),delete i._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:f})}),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 i,e;for(i in t)for(e=t[i].__parent;e;)e._iconNeedsUpdate=!0,e=e.__parent},_refreshSingleMarkerModeMarkers:function(t){var i,e;for(i in t)e=t[i],this.hasLayer(e)&&e.setIcon(this._overrideMarkerIcon(e))}}),L.Marker.include({refreshIconOptions:function(t,i){var e=this.options.icon;return L.setOptions(e,t),this.setIcon(e),i&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=i,t.MarkerCluster=e,Object.defineProperty(t,"__esModule",{value:!0})}))}));function Sr(t){return fetch(`${w.api}trek/${t}/?language=${w.language}&published=true&fields=geometry`,{cache:"default"}).then((t=>t.json()))}const Tr='@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-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, "")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:"✖";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:"";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-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-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:" — "}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 250px - var(--map-bottom-space-height))}#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}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);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}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-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-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,.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-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-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-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{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:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.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,.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,.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-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,.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-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-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-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{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,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-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-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-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{background-color:var(--color-surface-variant)}.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-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-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-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{width:64px;height:64px}.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-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-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-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{width:48px !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{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{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,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 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:none;background-color:var(--color-background);color:var(--color-on-surface);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.1000000015px;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;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-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,.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,.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-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{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-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:48px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size: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:64px !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:144px;margin:0}';const Ir=class{constructor(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.touristicContentCardPress=o(this,"touristicContentCardPress",7);this.touristicEventCardPress=o(this,"touristicEventCardPress",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.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.center="1, 1";this.zoom=10;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.resetStoreOnDisconnected=true;this.isLargeView=false}onCenterOnMap(t){this.map.setView(new W.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})}stepsIsInViewport(t){if(this.currentStepsLayer){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}}descriptionIsInViewport(t){if(this.currentReferencePointsLayer){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}}parkingIsInViewport(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}}onInformationDesksIsInViewport(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}}touristicContentsIsInViewport(t){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}}touristicEventsIsInViewport(t){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticEventsLayer)}}onCardTrekMouseOver(t){if(!w.parentTrek&&(!w.selectedTrekId||w.selectedTrekId!==t.detail)){w.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(w.parentTrek){this.stepPopupIsOpen=false;w.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}}onCardTrekMouseLeave(){if(!this.trekPopupIsOpen&&w.selectedTrekId){this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.currentStepsLayer){w.selectedStepId=null;this.removeSelectedCurrentStep()}}onTouristicContentMouseOver(t){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)}onTouristicContentMouseLeave(){w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}onTouristicEventMouseOver(t){this.touristicEventPopupIsOpen=false;w.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)}onTouristicEventMouseLeave(){w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}componentDidLoad(){this.map=W.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});W.control.scale({metric:true,imperial:false}).addTo(this.map);W.control.locate({showPopup:false}).addTo(this.map);const t=this.nameLayer?this.nameLayer.split(","):[];const i=this.urlLayer.split(",http").map(((t,i)=>i===0?t:"http"+t));const e=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach(((i,r)=>{this.tileLayer.push({key:`${t[r]}`,value:W.tileLayer(i,{maxZoom:this.maxZoom,attribution:`${e[r]&&e[r]!==""?e[r].concat(" | "):""}Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>`,crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=W.control.layers(this.tileLayer.reduce(((t,i)=>Object.assign(t,{[i.key]:i.value})),{}),{},{collapsed:true}).addTo(this.map);W.Control.Contract=W.Control.extend({onAdd:()=>{const t=W.DomUtil.create("div");t.className="leaflet-bar leaflet-control";const i=t.appendChild(W.DomUtil.create("a"));i.href="#";i.style.backgroundImage=`var(--contract-image-src)`;t.onclick=t=>{this.bounds&&this.map.fitBounds(this.bounds);t.preventDefault()};return t}});W.control.contract=t=>new W.Control.Contract(t);W.control.contract({position:"topleft"}).addTo(this.map)}if(w.currentTrek){this.addTrek()}else if(w.currentTreks){this.addTreks()}else if(w.currentTouristicContent){this.addTouristicContent()}else if(w.currentTouristicEvent){this.addTouristicEvent()}else if(w.touristicContents){this.addTouristicContents()}else if(w.touristicEvents){this.addTouristicEvents()}b("currentTreks",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTrek){this.removeTreks();this.addTrek()}else if(w.currentTreks){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks(true)}}));b("currentTrek",(()=>{if(w.currentTrek){this.removeTreks();this.addTrek()}else if(w.currentTreks){this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks()}}));b("currentTouristicContent",(()=>{if(w.currentTouristicContent){this.removeTrek();this.removeTouristicContents();this.addTouristicContent()}else if(w.touristicContents){this.removeTouristicContent();this.addTouristicContents()}else if(w.currentTrek){this.removeTouristicContent();this.addTrek()}else if(w.currentTreks){this.removeTouristicContent();this.addTreks()}}));b("currentTouristicEvent",(()=>{if(w.currentTouristicEvent){this.removeTrek();this.removeTouristicEvents();this.addTouristicEvent()}else if(w.currentTrek){this.removeTouristicEvent();this.addTrek()}else if(w.currentTreks){this.removeTouristicEvent();this.addTreks()}}));b("currentTouristicContents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTouristicContent){this.removeTouristicContents();this.addTouristicContent()}else if(w.currentTouristicContents){this.removeTreks();this.removeTouristicEvents();this.removeTouristicContent();this.addTouristicContents(true)}}));b("currentTouristicEvents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTouristicEvent){this.removeTouristicEvents();this.addTouristicEvent()}else if(w.currentTouristicEvents){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvent();this.addTouristicEvents(true)}}));b("mode",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.mode==="treks"){if(w.treks){this.removeTouristicContents();this.removeTouristicEvents();this.addTreks(true)}}else if(w.mode==="touristicContents"){if(w.touristicContents){this.removeTreks();this.removeTouristicEvents();this.addTouristicContents(true)}}else if(w.mode==="touristicEvents"){if(w.touristicEvents){this.removeTreks();this.removeTouristicContents();this.addTouristicEvents(true)}}}))}handleLayerVisibility(t,i){if(t&&!this.map.hasLayer(i)){i.addTo(this.map)}else if(this.map.hasLayer(i)&&!this.userLayersState[i._leaflet_id]){this.map.removeLayer(i)}this.handleLayersControlEvent()}addTreks(t=false){var i;w.treksWithinBounds=w.currentTreks;const e=[];const r={type:"FeatureCollection",features:[]};if(w.currentTreks){for(const t of w.currentTreks){e.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(i=w.practices.find((i=>i.id===t.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.treksLayer){if(e.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.treksLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.hideTrekLine();this.showTrekLine(t.properties.id);this.addSelectedCurrentTrek(t.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,48]})});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(e.length>0){this.bounds=W.latLngBounds(e.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.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)}removeTreks(){if(this.treksLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(w.currentTreks&&!w.currentMapBounds||w.currentTreks&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.treksWithinBounds=w.currentTreks.filter((t=>this.map.getBounds().contains(W.latLng(t.departure_geom[1],t.departure_geom[0]))))}}handleTouristicContentsWithinBounds(){if(w.currentTouristicContents&&!w.currentMapBounds||w.currentTouristicContents&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.touristicContentsWithinBounds=w.currentTouristicContents.filter((t=>this.map.getBounds().contains(W.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleTouristicEventsWithinBounds(){if(w.currentTouristicEvents&&!w.currentMapBounds||w.currentTouristicEvents&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.touristicEventsWithinBounds=w.currentTouristicEvents.filter((t=>this.map.getBounds().contains(W.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}addTrek(){var t,i,e,r;this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();const n={type:"Feature",geometry:w.currentTrek.geometry,properties:{}};this.currentTrekLayer=W.geoJSON(n,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);if(w.currentTrek.parking_location){const t={type:"Feature",properties:{},geometry:{type:"Point",coordinates:w.currentTrek.parking_location}};this.currentParkingLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false,interactive:false})})}if(w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.currentSensitiveAreas){t.features.push({type:"Feature",properties:{name:i.name},geometry:i.geometry})}this.currentSensitiveAreasLayer=W.geoJSON(t,{onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="sensitive-area-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="sensitive-area-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}if(w.currentPois&&w.currentPois.length>0){const i={type:"FeatureCollection",features:[]};for(const e of w.currentPois){i.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=w.poiTypes.find((t=>t.id===e.type)))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})}this.currentPoisLayer=W.geoJSON(i,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`<img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"poi-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="poi-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="poi-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.trekTouristicContents&&w.trekTouristicContents.length>0){const t={type:"FeatureCollection",features:[]};for(const e of w.trekTouristicContents){t.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(i=w.touristicContentCategories.find((t=>t.id===e.category)))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})}this.currentToutisticContentsLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.category_pictogram?`<img crossorigin="anonymous "src=${t.properties.category_pictogram} />`:`<img />`,className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.touristicEvents&&w.touristicEvents.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.touristicEvents){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(e=w.touristicEventTypes.find((t=>t.id===i.type)))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})}this.currentToutisticEventsLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`\n <img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentInformationDesks&&w.currentInformationDesks.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.currentInformationDesks.filter((t=>w.currentTrek.information_desks.includes(t.id)))){if(i.latitude&&i.longitude){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}this.currentInformationDesksLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`<img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="information-desks-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="information-desks-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:w.currentTrek.points_reference});let i=0;this.currentReferencePointsLayer=W.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return W.marker(e,{icon:W.divIcon({html:i,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&w.parentTrekId&&w.parentTrek&&w.currentTrek.id===w.parentTrekId){const t={type:"FeatureCollection",features:[]};if(w.currentTrekSteps){for(const i of w.currentTrekSteps){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:i.departure_geom},properties:{id:i.id,name:i.name,practice:(r=w.practices.find((t=>t.id===i.practice)))===null||r===void 0?void 0:r.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})}}let i=0;this.currentStepsLayer=W.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return W.marker(e,{zIndexOffset:4e6,icon:W.divIcon({html:`<div class="step-marker-container"><div class="step-number">${i}</div></div>`,className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedCurrentStep(t.properties.id,i.latlng)}))}})}const s={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:`#elevation`,theme:`custom-theme${!this.useGradient?" use-theme-color":""}`,detached:true,height:250,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:false,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=W.control.elevation(Object.assign({},s)).addTo(this.map);const o=JSON.stringify({name:`${w.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:w.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(o);const a={};if(this.currentStepsLayer){a[l[w.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){a[l[w.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){a[l[w.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){a[l[w.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){a[l[w.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){a[l[w.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){a[l[w.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){a[l[w.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(a).forEach((t=>{this.layersControl.addOverlay(a[t],t)}))}else{this.layersControl=W.control.layers({},a,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=W.latLngBounds(w.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}addSelectedCurrentTrek(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.currentTreks){const n=w.currentTreks.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(e=w.practices.find((t=>t.id===n.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();w.selectedTrekId=t;this.selectedCurrentTrekLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"selected-trek-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.trekPopupIsOpen){w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}));i.on("popupopen",(()=>{this.trekPopupIsOpen=Boolean(w.selectedTrekId)}));i.on("popupclose",(()=>{if(w.selectedTrekId){this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}))}}).addTo(this.map)}removeSelectedCurrentTrek(){w.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null}addSelectedCurrentStep(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.currentTrekSteps){const n=w.currentTrekSteps.findIndex((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:w.currentTrekSteps[n].departure_geom},properties:{id:w.currentTrekSteps[n].id,name:w.currentTrekSteps[n].name,practice:(e=w.practices.find((t=>t.id===w.currentTrekSteps[n].practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:w.currentTrekSteps[n].attachments&&w.currentTrekSteps[n].attachments.length>0&&w.currentTrekSteps[n].attachments[0].thumbnail,index:n+1}})}this.removeSelectedCurrentStep();w.selectedStepId=t;this.selectedCurrentStepLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:`<div class="step-marker-container"><div class="step-number">${t.properties.index}</div></div>`,className:"selected-step-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.stepPopupIsOpen){w.selectedTrekId=null;this.removeSelectedCurrentStep()}}));i.on("popupopen",(()=>{this.stepPopupIsOpen=Boolean(w.selectedStepId)}));i.on("popupclose",(()=>{if(w.selectedStepId){this.stepPopupIsOpen=false;w.selectedStepId=null;this.removeSelectedCurrentStep()}}))}}).addTo(this.map)}removeSelectedCurrentStep(){if(w.selectedStepId){w.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}}handleLayersControlEvent(){const t=this.layersControl._layerControlInputs;t.forEach((t=>{if(this.layersControl._layers.find((i=>i.layer._leaflet_id===t.layerId)).overlay){t.onchange=i=>{this.userLayersState[t.layerId]=i.target.checked}}}))}removeTrek(){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.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.currentToutisticEventsLayer){this.map.removeLayer(this.currentToutisticEventsLayer);this.currentToutisticEventsLayer=null}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}showTrekLine(t){Sr(t).then((t=>{const i={type:"Feature",geometry:t.geometry,properties:{}};this.currentTrekLayer=W.geoJSON(i,{style:()=>({color:this.colorTrekLine}),interactive:false}).addTo(this.map)}))}hideTrekLine(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}}addTouristicContent(){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.removeSelectedTouristicContent();const t={type:"FeatureCollection",features:[]};if(w.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:w.currentTouristicContent.geometry.coordinates},properties:{id:w.currentTouristicContent.id,name:w.currentTouristicContent.name,practice:w.touristicContentCategories.find((t=>t.id===w.currentTouristicContent.category)).pictogram}})}if(!this.currentToutisticContentLayer){this.currentToutisticContentLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img crossorigin="anonymous "src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([w.currentTouristicContent.geometry.coordinates[1],w.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicContent(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}}addTouristicContents(t=false){w.touristicContentsWithinBounds=w.currentTouristicContents;const i=[];const e={type:"FeatureCollection",features:[]};if(w.currentTouristicContents){for(const t of w.currentTouristicContents){i.push(t.geometry.coordinates);e.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:w.touristicContentCategories.find((i=>i.id===t.category)).pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticContentsLayer){if(i.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.toutisticContentsLayer=W.geoJSON(e,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicContent(t.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,64]})});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(i.length>0){this.bounds=W.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(e);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){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}}addTouristicEvent(){const t={type:"FeatureCollection",features:[]};if(w.currentTouristicEvent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:w.currentTouristicEvent.geometry.coordinates},properties:{id:w.currentTouristicEvent.id,name:w.currentTouristicEvent.name,type:w.touristicEventTypes.find((t=>t.id===w.currentTouristicEvent.type)).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([w.currentTouristicEvent.geometry.coordinates[1],w.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicEvent(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}}addSelectedTouristicContent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.touristicContents){const n=w.touristicContents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=w.touristicContentCategories.find((t=>t.id===n.category)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();w.selectedTouristicContentId=t;this.selectedTouristicContentLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.category?`<div class="touristic-content-marker-container"><img crossorigin="anonymous" src=${t.properties.category} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicContentPopupIsOpen){w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}));i.on("popupopen",(()=>{this.touristicContentPopupIsOpen=Boolean(w.selectedTouristicContentId)}));i.on("popupclose",(()=>{if(w.selectedTouristicContentId){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}))}}).addTo(this.map)}removeSelectedTouristicContent(){w.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null}addTouristicEvents(t=false){var i;w.touristicEventsWithinBounds=w.currentTouristicEvents;const e=[];const r={type:"FeatureCollection",features:[]};if(w.currentTouristicEvents){for(const t of w.currentTouristicEvents){e.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=w.touristicEventTypes.find((i=>i.id===t.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticEventsLayer){if(e.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.toutisticEventsLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicEvent(t.properties.id,i.latlng)}))}});this.touristicEventsMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-event-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,64]})});this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup)}else{if(e.length>0){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticEventsLayer.clearLayers();this.toutisticEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind)}removeTouristicEvents(){if(this.toutisticEventsLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.toutisticEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}}addSelectedTouristicEvent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.touristicEvents){const n=w.touristicEvents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=w.touristicEventTypes.find((t=>t.id===n.type)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();w.selectedTouristicEventId=t;this.selectedTouristicEventLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.category?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.category} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"selected-touristic-event-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicEventPopupIsOpen){w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}));i.on("popupopen",(()=>{this.touristicEventPopupIsOpen=Boolean(w.selectedTouristicEventId)}));i.on("popupclose",(()=>{if(w.selectedTouristicEventId){this.touristicEventPopupIsOpen=false;w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}))}}).addTo(this.map)}removeSelectedTouristicEvent(){w.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null}render(){const t=a(`${""}assets/layers.svg`);const i=a(`${""}assets/contract.svg`);return r(n,{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-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":`url(${t})`,"--contract-image-src":`url(${i})`,"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},r("div",{id:"map",style:{},class:w.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t}),w.currentTrek&&r("div",null,r("div",{id:"elevation",ref:t=>this.elevationRef=t}),r("div",{class:"map-bottom-space"})),!this.mapIsReady&&r("div",{class:"map-loader-container"},r("span",{class:"loader"})))}};Ir.style=Tr;function Br(t){return t!==null&&typeof t==="object"&&"constructor"in t&&t.constructor===Object}function Fr(t={},i={}){Object.keys(i).forEach((e=>{if(typeof t[e]==="undefined")t[e]=i[e];else if(Br(i[e])&&Br(t[e])&&Object.keys(i[e]).length>0){Fr(t[e],i[e])}}))}const Rr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Nr(){const t=typeof document!=="undefined"?document:{};Fr(t,Rr);return t}const Dr={document:Rr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function t(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){if(typeof setTimeout==="undefined"){t();return null}return setTimeout(t,0)},cancelAnimationFrame(t){if(typeof setTimeout==="undefined"){return}clearTimeout(t)}};function Yr(){const t=typeof window!=="undefined"?window:{};Fr(t,Dr);return t}function Gr(t){const i=t;Object.keys(i).forEach((t=>{try{i[t]=null}catch(e){}try{delete i[t]}catch(e){}}))}function $r(t,i=0){return setTimeout(t,i)}function Zr(){return Date.now()}function Hr(t){const i=Yr();let e;if(i.getComputedStyle){e=i.getComputedStyle(t,null)}if(!e&&t.currentStyle){e=t.currentStyle}if(!e){e=t.style}return e}function Ur(t,i="x"){const e=Yr();let r;let n;let s;const o=Hr(t);if(e.WebKitCSSMatrix){n=o.transform||o.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((t=>t.replace(",","."))).join(", ")}s=new e.WebKitCSSMatrix(n==="none"?"":n)}else{s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");r=s.toString().split(",")}if(i==="x"){if(e.WebKitCSSMatrix)n=s.m41;else if(r.length===16)n=parseFloat(r[12]);else n=parseFloat(r[4])}if(i==="y"){if(e.WebKitCSSMatrix)n=s.m42;else if(r.length===16)n=parseFloat(r[13]);else n=parseFloat(r[5])}return n||0}function Qr(t){return typeof t==="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Vr(t){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return t instanceof HTMLElement}return t&&(t.nodeType===1||t.nodeType===11)}function Wr(...t){const i=Object(t[0]);const e=["__proto__","constructor","prototype"];for(let r=1;r<t.length;r+=1){const n=t[r];if(n!==undefined&&n!==null&&!Vr(n)){const t=Object.keys(Object(n)).filter((t=>e.indexOf(t)<0));for(let e=0,r=t.length;e<r;e+=1){const r=t[e];const s=Object.getOwnPropertyDescriptor(n,r);if(s!==undefined&&s.enumerable){if(Qr(i[r])&&Qr(n[r])){if(n[r].__swiper__){i[r]=n[r]}else{Wr(i[r],n[r])}}else if(!Qr(i[r])&&Qr(n[r])){i[r]={};if(n[r].__swiper__){i[r]=n[r]}else{Wr(i[r],n[r])}}else{i[r]=n[r]}}}}}return i}function Kr(t,i,e){t.style.setProperty(i,e)}function qr({swiper:t,targetPosition:i,side:e}){const r=Yr();const n=-t.translate;let s=null;let o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none";r.cancelAnimationFrame(t.cssModeFrameID);const l=i>n?"next":"prev";const c=(t,i)=>l==="next"&&t>=i||l==="prev"&&t<=i;const h=()=>{o=(new Date).getTime();if(s===null){s=o}const l=Math.max(Math.min((o-s)/a,1),0);const u=.5-Math.cos(l*Math.PI)/2;let f=n+u*(i-n);if(c(f,i)){f=i}t.wrapperEl.scrollTo({[e]:f});if(c(f,i)){t.wrapperEl.style.overflow="hidden";t.wrapperEl.style.scrollSnapType="";setTimeout((()=>{t.wrapperEl.style.overflow="";t.wrapperEl.scrollTo({[e]:f})}));r.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=r.requestAnimationFrame(h)};h()}function Jr(t,i=""){return[...t.children].filter((t=>t.matches(i)))}function Xr(t,i=[]){const e=document.createElement(t);e.classList.add(...Array.isArray(i)?i:[i]);return e}function tn(t){const i=Yr();const e=Nr();const r=t.getBoundingClientRect();const n=e.body;const s=t.clientTop||n.clientTop||0;const o=t.clientLeft||n.clientLeft||0;const a=t===i?i.scrollY:t.scrollTop;const l=t===i?i.scrollX:t.scrollLeft;return{top:r.top+a-s,left:r.left+l-o}}function en(t,i){const e=[];while(t.previousElementSibling){const r=t.previousElementSibling;if(i){if(r.matches(i))e.push(r)}else e.push(r);t=r}return e}function rn(t,i){const e=[];while(t.nextElementSibling){const r=t.nextElementSibling;if(i){if(r.matches(i))e.push(r)}else e.push(r);t=r}return e}function nn(t,i){const e=Yr();return e.getComputedStyle(t,null).getPropertyValue(i)}function sn(t){let i=t;let e;if(i){e=0;while((i=i.previousSibling)!==null){if(i.nodeType===1)e+=1}return e}return undefined}function on(t,i){const e=[];let r=t.parentElement;while(r){if(i){if(r.matches(i))e.push(r)}else{e.push(r)}r=r.parentElement}return e}function an(t,i){function e(r){if(r.target!==t)return;i.call(t,r);t.removeEventListener("transitionend",e)}if(i){t.addEventListener("transitionend",e)}}function ln(t,i,e){const r=Yr();if(e){return t[i==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(i==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(i==="width"?"margin-left":"margin-bottom"))}return t.offsetWidth}let cn;function hn(){const t=Yr();const i=Nr();return{smoothScroll:i.documentElement&&i.documentElement.style&&"scrollBehavior"in i.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch)}}function un(){if(!cn){cn=hn()}return cn}let fn;function pn({userAgent:t}={}){const i=un();const e=Yr();const r=e.navigator.platform;const n=t||e.navigator.userAgent;const s={ios:false,android:false};const o=e.screen.width;const a=e.screen.height;const l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const h=n.match(/(iPod)(.*OS\s([\d_]+))?/);const u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const f=r==="Win32";let p=r==="MacIntel";const d=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!c&&p&&i.touch&&d.indexOf(`${o}x${a}`)>=0){c=n.match(/(Version)\/([\d.]+)/);if(!c)c=[0,1,"13_0_0"];p=false}if(l&&!f){s.os="android";s.android=true}if(c||u||h){s.os="ios";s.ios=true}return s}function dn(t={}){if(!fn){fn=pn(t)}return fn}let mn;function gn(){const t=Yr();let i=false;function e(){const i=t.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(e()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,r]=e.split("Version/")[1].split(" ")[0].split(".").map((t=>Number(t)));i=t<16||t===16&&r<2}}return{isSafari:i||e(),needPerspectiveFix:i,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function vn(){if(!mn){mn=gn()}return mn}function wn({swiper:t,on:i,emit:e}){const r=Yr();let n=null;let s=null;const o=()=>{if(!t||t.destroyed||!t.initialized)return;e("beforeResize");e("resize")};const a=()=>{if(!t||t.destroyed||!t.initialized)return;n=new ResizeObserver((i=>{s=r.requestAnimationFrame((()=>{const{width:e,height:r}=t;let n=e;let s=r;i.forEach((({contentBoxSize:i,contentRect:e,target:r})=>{if(r&&r!==t.el)return;n=e?e.width:(i[0]||i).inlineSize;s=e?e.height:(i[0]||i).blockSize}));if(n!==e||s!==r){o()}}))}));n.observe(t.el)};const l=()=>{if(s){r.cancelAnimationFrame(s)}if(n&&n.unobserve&&t.el){n.unobserve(t.el);n=null}};const c=()=>{if(!t||t.destroyed||!t.initialized)return;e("orientationchange")};i("init",(()=>{if(t.params.resizeObserver&&typeof r.ResizeObserver!=="undefined"){a();return}r.addEventListener("resize",o);r.addEventListener("orientationchange",c)}));i("destroy",(()=>{l();r.removeEventListener("resize",o);r.removeEventListener("orientationchange",c)}))}function bn({swiper:t,extendParams:i,on:e,emit:r}){const n=[];const s=Yr();const o=(i,e={})=>{const o=s.MutationObserver||s.WebkitMutationObserver;const a=new o((i=>{if(t.__preventObserver__)return;if(i.length===1){r("observerUpdate",i[0]);return}const e=function t(){r("observerUpdate",i[0])};if(s.requestAnimationFrame){s.requestAnimationFrame(e)}else{s.setTimeout(e,0)}}));a.observe(i,{attributes:typeof e.attributes==="undefined"?true:e.attributes,childList:typeof e.childList==="undefined"?true:e.childList,characterData:typeof e.characterData==="undefined"?true:e.characterData});n.push(a)};const a=()=>{if(!t.params.observer)return;if(t.params.observeParents){const i=on(t.el);for(let t=0;t<i.length;t+=1){o(i[t])}}o(t.el,{childList:t.params.observeSlideChildren});o(t.wrapperEl,{attributes:false})};const l=()=>{n.forEach((t=>{t.disconnect()}));n.splice(0,n.length)};i({observer:false,observeParents:false,observeSlideChildren:false});e("init",a);e("destroy",l)}const yn={on(t,i,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof i!=="function")return r;const n=e?"unshift":"push";t.split(" ").forEach((t=>{if(!r.eventsListeners[t])r.eventsListeners[t]=[];r.eventsListeners[t][n](i)}));return r},once(t,i,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof i!=="function")return r;function n(...e){r.off(t,n);if(n.__emitterProxy){delete n.__emitterProxy}i.apply(r,e)}n.__emitterProxy=i;return r.on(t,n,e)},onAny(t,i){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(typeof t!=="function")return e;const r=i?"unshift":"push";if(e.eventsAnyListeners.indexOf(t)<0){e.eventsAnyListeners[r](t)}return e},offAny(t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsAnyListeners)return i;const e=i.eventsAnyListeners.indexOf(t);if(e>=0){i.eventsAnyListeners.splice(e,1)}return i},off(t,i){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;t.split(" ").forEach((t=>{if(typeof i==="undefined"){e.eventsListeners[t]=[]}else if(e.eventsListeners[t]){e.eventsListeners[t].forEach(((r,n)=>{if(r===i||r.__emitterProxy&&r.__emitterProxy===i){e.eventsListeners[t].splice(n,1)}}))}}));return e},emit(...t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;let e;let r;let n;if(typeof t[0]==="string"||Array.isArray(t[0])){e=t[0];r=t.slice(1,t.length);n=i}else{e=t[0].events;r=t[0].data;n=t[0].context||i}r.unshift(n);const s=Array.isArray(e)?e:e.split(" ");s.forEach((t=>{if(i.eventsAnyListeners&&i.eventsAnyListeners.length){i.eventsAnyListeners.forEach((i=>{i.apply(n,[t,...r])}))}if(i.eventsListeners&&i.eventsListeners[t]){i.eventsListeners[t].forEach((t=>{t.apply(n,r)}))}}));return i}};function xn(){const t=this;let i;let e;const r=t.el;if(typeof t.params.width!=="undefined"&&t.params.width!==null){i=t.params.width}else{i=r.clientWidth}if(typeof t.params.height!=="undefined"&&t.params.height!==null){e=t.params.height}else{e=r.clientHeight}if(i===0&&t.isHorizontal()||e===0&&t.isVertical()){return}i=i-parseInt(nn(r,"padding-left")||0,10)-parseInt(nn(r,"padding-right")||0,10);e=e-parseInt(nn(r,"padding-top")||0,10)-parseInt(nn(r,"padding-bottom")||0,10);if(Number.isNaN(i))i=0;if(Number.isNaN(e))e=0;Object.assign(t,{width:i,height:e,size:t.isHorizontal()?i:e})}function kn(){const t=this;function i(i){if(t.isHorizontal()){return i}return{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[i]}function e(t,e){return parseFloat(t.getPropertyValue(i(e))||0)}const r=t.params;const{wrapperEl:n,slidesEl:s,size:o,rtlTranslate:a,wrongRTL:l}=t;const c=t.virtual&&r.virtual.enabled;const h=c?t.virtual.slides.length:t.slides.length;const u=Jr(s,`.${t.params.slideClass}, swiper-slide`);const f=c?t.virtual.slides.length:u.length;let p=[];const d=[];const m=[];let g=r.slidesOffsetBefore;if(typeof g==="function"){g=r.slidesOffsetBefore.call(t)}let v=r.slidesOffsetAfter;if(typeof v==="function"){v=r.slidesOffsetAfter.call(t)}const w=t.snapGrid.length;const b=t.slidesGrid.length;let y=r.spaceBetween;let x=-g;let k=0;let A=0;if(typeof o==="undefined"){return}if(typeof y==="string"&&y.indexOf("%")>=0){y=parseFloat(y.replace("%",""))/100*o}else if(typeof y==="string"){y=parseFloat(y)}t.virtualSize=-y;u.forEach((t=>{if(a){t.style.marginLeft=""}else{t.style.marginRight=""}t.style.marginBottom="";t.style.marginTop=""}));if(r.centeredSlides&&r.cssMode){Kr(n,"--swiper-centered-offset-before","");Kr(n,"--swiper-centered-offset-after","")}const _=r.grid&&r.grid.rows>1&&t.grid;if(_){t.grid.initSlides(f)}let M;const z=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter((t=>typeof r.breakpoints[t].slidesPerView!=="undefined")).length>0;for(let L=0;L<f;L+=1){M=0;let n;if(u[L])n=u[L];if(_){t.grid.updateSlide(L,n,f,i)}if(u[L]&&nn(n,"display")==="none")continue;if(r.slidesPerView==="auto"){if(z){u[L].style[i("width")]=``}const s=getComputedStyle(n);const o=n.style.transform;const a=n.style.webkitTransform;if(o){n.style.transform="none"}if(a){n.style.webkitTransform="none"}if(r.roundLengths){M=t.isHorizontal()?ln(n,"width",true):ln(n,"height",true)}else{const t=e(s,"width");const i=e(s,"padding-left");const r=e(s,"padding-right");const o=e(s,"margin-left");const a=e(s,"margin-right");const l=s.getPropertyValue("box-sizing");if(l&&l==="border-box"){M=t+o+a}else{const{clientWidth:e,offsetWidth:s}=n;M=t+i+r+o+a+(s-e)}}if(o){n.style.transform=o}if(a){n.style.webkitTransform=a}if(r.roundLengths)M=Math.floor(M)}else{M=(o-(r.slidesPerView-1)*y)/r.slidesPerView;if(r.roundLengths)M=Math.floor(M);if(u[L]){u[L].style[i("width")]=`${M}px`}}if(u[L]){u[L].swiperSlideSize=M}m.push(M);if(r.centeredSlides){x=x+M/2+k/2+y;if(k===0&&L!==0)x=x-o/2-y;if(L===0)x=x-o/2-y;if(Math.abs(x)<1/1e3)x=0;if(r.roundLengths)x=Math.floor(x);if(A%r.slidesPerGroup===0)p.push(x);d.push(x)}else{if(r.roundLengths)x=Math.floor(x);if((A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0)p.push(x);d.push(x);x=x+M+y}t.virtualSize+=M+y;k=M;A+=1}t.virtualSize=Math.max(t.virtualSize,o)+v;if(a&&l&&(r.effect==="slide"||r.effect==="coverflow")){n.style.width=`${t.virtualSize+y}px`}if(r.setWrapperSize){n.style[i("width")]=`${t.virtualSize+y}px`}if(_){t.grid.updateWrapperSize(M,p,i)}if(!r.centeredSlides){const i=[];for(let e=0;e<p.length;e+=1){let n=p[e];if(r.roundLengths)n=Math.floor(n);if(p[e]<=t.virtualSize-o){i.push(n)}}p=i;if(Math.floor(t.virtualSize-o)-Math.floor(p[p.length-1])>1){p.push(t.virtualSize-o)}}if(c&&r.loop){const i=m[0]+y;if(r.slidesPerGroup>1){const e=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup);const n=i*r.slidesPerGroup;for(let t=0;t<e;t+=1){p.push(p[p.length-1]+n)}}for(let e=0;e<t.virtual.slidesBefore+t.virtual.slidesAfter;e+=1){if(r.slidesPerGroup===1){p.push(p[p.length-1]+i)}d.push(d[d.length-1]+i);t.virtualSize+=i}}if(p.length===0)p=[0];if(y!==0){const e=t.isHorizontal()&&a?"marginLeft":i("marginRight");u.filter(((t,i)=>{if(!r.cssMode||r.loop)return true;if(i===u.length-1){return false}return true})).forEach((t=>{t.style[e]=`${y}px`}))}if(r.centeredSlides&&r.centeredSlidesBounds){let t=0;m.forEach((i=>{t+=i+(y||0)}));t-=y;const i=t-o;p=p.map((t=>{if(t<=0)return-g;if(t>i)return i+v;return t}))}if(r.centerInsufficientSlides){let t=0;m.forEach((i=>{t+=i+(y||0)}));t-=y;if(t<o){const i=(o-t)/2;p.forEach(((t,e)=>{p[e]=t-i}));d.forEach(((t,e)=>{d[e]=t+i}))}}Object.assign(t,{slides:u,snapGrid:p,slidesGrid:d,slidesSizesGrid:m});if(r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Kr(n,"--swiper-centered-offset-before",`${-p[0]}px`);Kr(n,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const i=-t.snapGrid[0];const e=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+i));t.slidesGrid=t.slidesGrid.map((t=>t+e))}if(f!==h){t.emit("slidesLengthChange")}if(p.length!==w){if(t.params.watchOverflow)t.checkOverflow();t.emit("snapGridLengthChange")}if(d.length!==b){t.emit("slidesGridLengthChange")}if(r.watchSlidesProgress){t.updateSlidesOffset()}if(!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const i=`${r.containerModifierClass}backface-hidden`;const e=t.el.classList.contains(i);if(f<=r.maxBackfaceHiddenSlides){if(!e)t.el.classList.add(i)}else if(e){t.el.classList.remove(i)}}}function An(t){const i=this;const e=[];const r=i.virtual&&i.params.virtual.enabled;let n=0;let s;if(typeof t==="number"){i.setTransition(t)}else if(t===true){i.setTransition(i.params.speed)}const o=t=>{if(r){return i.slides[i.getSlideIndexByData(t)]}return i.slides[t]};if(i.params.slidesPerView!=="auto"&&i.params.slidesPerView>1){if(i.params.centeredSlides){(i.visibleSlides||[]).forEach((t=>{e.push(t)}))}else{for(s=0;s<Math.ceil(i.params.slidesPerView);s+=1){const t=i.activeIndex+s;if(t>i.slides.length&&!r)break;e.push(o(t))}}}else{e.push(o(i.activeIndex))}for(s=0;s<e.length;s+=1){if(typeof e[s]!=="undefined"){const t=e[s].offsetHeight;n=t>n?t:n}}if(n||n===0)i.wrapperEl.style.height=`${n}px`}function _n(){const t=this;const i=t.slides;const e=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r<i.length;r+=1){i[r].swiperSlideOffset=(t.isHorizontal()?i[r].offsetLeft:i[r].offsetTop)-e-t.cssOverflowAdjustment()}}function Mn(t=this&&this.translate||0){const i=this;const e=i.params;const{slides:r,rtlTranslate:n,snapGrid:s}=i;if(r.length===0)return;if(typeof r[0].swiperSlideOffset==="undefined")i.updateSlidesOffset();let o=-t;if(n)o=t;r.forEach((t=>{t.classList.remove(e.slideVisibleClass)}));i.visibleSlidesIndexes=[];i.visibleSlides=[];let a=e.spaceBetween;if(typeof a==="string"&&a.indexOf("%")>=0){a=parseFloat(a.replace("%",""))/100*i.size}else if(typeof a==="string"){a=parseFloat(a)}for(let l=0;l<r.length;l+=1){const t=r[l];let c=t.swiperSlideOffset;if(e.cssMode&&e.centeredSlides){c-=r[0].swiperSlideOffset}const h=(o+(e.centeredSlides?i.minTranslate():0)-c)/(t.swiperSlideSize+a);const u=(o-s[0]+(e.centeredSlides?i.minTranslate():0)-c)/(t.swiperSlideSize+a);const f=-(o-c);const p=f+i.slidesSizesGrid[l];const d=f>=0&&f<i.size-1||p>1&&p<=i.size||f<=0&&p>=i.size;if(d){i.visibleSlides.push(t);i.visibleSlidesIndexes.push(l);r[l].classList.add(e.slideVisibleClass)}t.progress=n?-h:h;t.originalProgress=n?-u:u}}function zn(t){const i=this;if(typeof t==="undefined"){const e=i.rtlTranslate?-1:1;t=i&&i.translate&&i.translate*e||0}const e=i.params;const r=i.maxTranslate()-i.minTranslate();let{progress:n,isBeginning:s,isEnd:o,progressLoop:a}=i;const l=s;const c=o;if(r===0){n=0;s=true;o=true}else{n=(t-i.minTranslate())/r;const e=Math.abs(t-i.minTranslate())<1;const a=Math.abs(t-i.maxTranslate())<1;s=e||n<=0;o=a||n>=1;if(e)n=0;if(a)n=1}if(e.loop){const e=i.getSlideIndexByData(0);const r=i.getSlideIndexByData(i.slides.length-1);const n=i.slidesGrid[e];const s=i.slidesGrid[r];const o=i.slidesGrid[i.slidesGrid.length-1];const l=Math.abs(t);if(l>=n){a=(l-n)/o}else{a=(l+o-s)/o}if(a>1)a-=1}Object.assign(i,{progress:n,progressLoop:a,isBeginning:s,isEnd:o});if(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)i.updateSlidesProgress(t);if(s&&!l){i.emit("reachBeginning toEdge")}if(o&&!c){i.emit("reachEnd toEdge")}if(l&&!s||c&&!o){i.emit("fromEdge")}i.emit("progress",n)}function Ln(){const t=this;const{slides:i,params:e,slidesEl:r,activeIndex:n}=t;const s=t.virtual&&e.virtual.enabled;const o=t=>Jr(r,`.${e.slideClass}${t}, swiper-slide${t}`)[0];i.forEach((t=>{t.classList.remove(e.slideActiveClass,e.slideNextClass,e.slidePrevClass)}));let a;if(s){if(e.loop){let i=n-t.virtual.slidesBefore;if(i<0)i=t.virtual.slides.length+i;if(i>=t.virtual.slides.length)i-=t.virtual.slides.length;a=o(`[data-swiper-slide-index="${i}"]`)}else{a=o(`[data-swiper-slide-index="${n}"]`)}}else{a=i[n]}if(a){a.classList.add(e.slideActiveClass);let t=rn(a,`.${e.slideClass}, swiper-slide`)[0];if(e.loop&&!t){t=i[0]}if(t){t.classList.add(e.slideNextClass)}let r=en(a,`.${e.slideClass}, swiper-slide`)[0];if(e.loop&&!r===0){r=i[i.length-1]}if(r){r.classList.add(e.slidePrevClass)}}t.emitSlidesClasses()}const Cn=(t,i)=>{if(!t||t.destroyed||!t.params)return;const e=()=>t.isElement?`swiper-slide`:`.${t.params.slideClass}`;const r=i.closest(e());if(r){const i=r.querySelector(`.${t.params.lazyPreloaderClass}`);if(i)i.remove()}};const En=(t,i)=>{if(!t.slides[i])return;const e=t.slides[i].querySelector('[loading="lazy"]');if(e)e.removeAttribute("loading")};const Pn=t=>{if(!t||t.destroyed||!t.params)return;let i=t.params.lazyPreloadPrevNext;const e=t.slides.length;if(!e||!i||i<0)return;i=Math.min(i,e);const r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView);const n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const e=n;const s=[e-i];s.push(...Array.from({length:i}).map(((t,i)=>e+r+i)));t.slides.forEach(((i,e)=>{if(s.includes(i.column))En(t,e)}));return}const s=n+r-1;if(t.params.rewind||t.params.loop){for(let r=n-i;r<=s+i;r+=1){const i=(r%e+e)%e;if(i<n||i>s)En(t,i)}}else{for(let r=Math.max(n-i,0);r<=Math.min(s+i,e-1);r+=1){if(r!==n&&(r>s||r<n)){En(t,r)}}}};function On(t){const{slidesGrid:i,params:e}=t;const r=t.rtlTranslate?t.translate:-t.translate;let n;for(let s=0;s<i.length;s+=1){if(typeof i[s+1]!=="undefined"){if(r>=i[s]&&r<i[s+1]-(i[s+1]-i[s])/2){n=s}else if(r>=i[s]&&r<i[s+1]){n=s+1}}else if(r>=i[s]){n=s}}if(e.normalizeSlideIndex){if(n<0||typeof n==="undefined")n=0}return n}function jn(t){const i=this;const e=i.rtlTranslate?i.translate:-i.translate;const{snapGrid:r,params:n,activeIndex:s,realIndex:o,snapIndex:a}=i;let l=t;let c;const h=t=>{let e=t-i.virtual.slidesBefore;if(e<0){e=i.virtual.slides.length+e}if(e>=i.virtual.slides.length){e-=i.virtual.slides.length}return e};if(typeof l==="undefined"){l=On(i)}if(r.indexOf(e)>=0){c=r.indexOf(e)}else{const t=Math.min(n.slidesPerGroupSkip,l);c=t+Math.floor((l-t)/n.slidesPerGroup)}if(c>=r.length)c=r.length-1;if(l===s){if(c!==a){i.snapIndex=c;i.emit("snapIndexChange")}if(i.params.loop&&i.virtual&&i.params.virtual.enabled){i.realIndex=h(l)}return}let u;if(i.virtual&&n.virtual.enabled&&n.loop){u=h(l)}else if(i.slides[l]){u=parseInt(i.slides[l].getAttribute("data-swiper-slide-index")||l,10)}else{u=l}Object.assign(i,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:u,previousIndex:s,activeIndex:l});if(i.initialized){Pn(i)}i.emit("activeIndexChange");i.emit("snapIndexChange");if(o!==u){i.emit("realIndexChange")}if(i.initialized||i.params.runCallbacksOnInit){i.emit("slideChange")}}function Sn(t){const i=this;const e=i.params;const r=t.closest(`.${e.slideClass}, swiper-slide`);let n=false;let s;if(r){for(let t=0;t<i.slides.length;t+=1){if(i.slides[t]===r){n=true;s=t;break}}}if(r&&n){i.clickedSlide=r;if(i.virtual&&i.params.virtual.enabled){i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10)}else{i.clickedIndex=s}}else{i.clickedSlide=undefined;i.clickedIndex=undefined;return}if(e.slideToClickedSlide&&i.clickedIndex!==undefined&&i.clickedIndex!==i.activeIndex){i.slideToClickedSlide()}}const Tn={updateSize:xn,updateSlides:kn,updateAutoHeight:An,updateSlidesOffset:_n,updateSlidesProgress:Mn,updateProgress:zn,updateSlidesClasses:Ln,updateActiveIndex:jn,updateClickedSlide:Sn};function In(t=(this.isHorizontal()?"x":"y")){const i=this;const{params:e,rtlTranslate:r,translate:n,wrapperEl:s}=i;if(e.virtualTranslate){return r?-n:n}if(e.cssMode){return n}let o=Ur(s,t);o+=i.cssOverflowAdjustment();if(r)o=-o;return o||0}function Bn(t,i){const e=this;const{rtlTranslate:r,params:n,wrapperEl:s,progress:o}=e;let a=0;let l=0;const c=0;if(e.isHorizontal()){a=r?-t:t}else{l=t}if(n.roundLengths){a=Math.floor(a);l=Math.floor(l)}e.previousTranslate=e.translate;e.translate=e.isHorizontal()?a:l;if(n.cssMode){s[e.isHorizontal()?"scrollLeft":"scrollTop"]=e.isHorizontal()?-a:-l}else if(!n.virtualTranslate){if(e.isHorizontal()){a-=e.cssOverflowAdjustment()}else{l-=e.cssOverflowAdjustment()}s.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`}let h;const u=e.maxTranslate()-e.minTranslate();if(u===0){h=0}else{h=(t-e.minTranslate())/u}if(h!==o){e.updateProgress(t)}e.emit("setTranslate",e.translate,i)}function Fn(){return-this.snapGrid[0]}function Rn(){return-this.snapGrid[this.snapGrid.length-1]}function Nn(t=0,i=this.params.speed,e=true,r=true,n){const s=this;const{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition){return false}const l=s.minTranslate();const c=s.maxTranslate();let h;if(r&&t>l)h=l;else if(r&&t<c)h=c;else h=t;s.updateProgress(h);if(o.cssMode){const t=s.isHorizontal();if(i===0){a[t?"scrollLeft":"scrollTop"]=-h}else{if(!s.support.smoothScroll){qr({swiper:s,targetPosition:-h,side:t?"left":"top"});return true}a.scrollTo({[t?"left":"top"]:-h,behavior:"smooth"})}return true}if(i===0){s.setTransition(0);s.setTranslate(h);if(e){s.emit("beforeTransitionStart",i,n);s.emit("transitionEnd")}}else{s.setTransition(i);s.setTranslate(h);if(e){s.emit("beforeTransitionStart",i,n);s.emit("transitionStart")}if(!s.animating){s.animating=true;if(!s.onTranslateToWrapperTransitionEnd){s.onTranslateToWrapperTransitionEnd=function t(i){if(!s||s.destroyed)return;if(i.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd);s.onTranslateToWrapperTransitionEnd=null;delete s.onTranslateToWrapperTransitionEnd;if(e){s.emit("transitionEnd")}}}s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd)}}return true}const Dn={getTranslate:In,setTranslate:Bn,minTranslate:Fn,maxTranslate:Rn,translateTo:Nn};function Yn(t,i){const e=this;if(!e.params.cssMode){e.wrapperEl.style.transitionDuration=`${t}ms`}e.emit("setTransition",t,i)}function Gn({swiper:t,runCallbacks:i,direction:e,step:r}){const{activeIndex:n,previousIndex:s}=t;let o=e;if(!o){if(n>s)o="next";else if(n<s)o="prev";else o="reset"}t.emit(`transition${r}`);if(i&&n!==s){if(o==="reset"){t.emit(`slideResetTransition${r}`);return}t.emit(`slideChangeTransition${r}`);if(o==="next"){t.emit(`slideNextTransition${r}`)}else{t.emit(`slidePrevTransition${r}`)}}}function $n(t=true,i){const e=this;const{params:r}=e;if(r.cssMode)return;if(r.autoHeight){e.updateAutoHeight()}Gn({swiper:e,runCallbacks:t,direction:i,step:"Start"})}function Zn(t=true,i){const e=this;const{params:r}=e;e.animating=false;if(r.cssMode)return;e.setTransition(0);Gn({swiper:e,runCallbacks:t,direction:i,step:"End"})}const Hn={setTransition:Yn,transitionStart:$n,transitionEnd:Zn};function Un(t=0,i=this.params.speed,e=true,r,n){if(typeof t==="string"){t=parseInt(t,10)}const s=this;let o=t;if(o<0)o=0;const{params:a,snapGrid:l,slidesGrid:c,previousIndex:h,activeIndex:u,rtlTranslate:f,wrapperEl:p,enabled:d}=s;if(s.animating&&a.preventInteractionOnTransition||!d&&!r&&!n){return false}const m=Math.min(s.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/s.params.slidesPerGroup);if(g>=l.length)g=l.length-1;const v=-l[g];if(a.normalizeSlideIndex){for(let t=0;t<c.length;t+=1){const i=-Math.floor(v*100);const e=Math.floor(c[t]*100);const r=Math.floor(c[t+1]*100);if(typeof c[t+1]!=="undefined"){if(i>=e&&i<r-(r-e)/2){o=t}else if(i>=e&&i<r){o=t+1}}else if(i>=e){o=t}}}if(s.initialized&&o!==u){if(!s.allowSlideNext&&(f?v>s.translate&&v>s.minTranslate():v<s.translate&&v<s.minTranslate())){return false}if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()){if((u||0)!==o){return false}}}if(o!==(h||0)&&e){s.emit("beforeSlideChangeStart")}s.updateProgress(v);let w;if(o>u)w="next";else if(o<u)w="prev";else w="reset";if(f&&-v===s.translate||!f&&v===s.translate){s.updateActiveIndex(o);if(a.autoHeight){s.updateAutoHeight()}s.updateSlidesClasses();if(a.effect!=="slide"){s.setTranslate(v)}if(w!=="reset"){s.transitionStart(e,w);s.transitionEnd(e,w)}return false}if(a.cssMode){const t=s.isHorizontal();const e=f?v:-v;if(i===0){const i=s.virtual&&s.params.virtual.enabled;if(i){s.wrapperEl.style.scrollSnapType="none";s._immediateVirtual=true}if(i&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0){s._cssModeVirtualInitialSet=true;requestAnimationFrame((()=>{p[t?"scrollLeft":"scrollTop"]=e}))}else{p[t?"scrollLeft":"scrollTop"]=e}if(i){requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="";s._immediateVirtual=false}))}}else{if(!s.support.smoothScroll){qr({swiper:s,targetPosition:e,side:t?"left":"top"});return true}p.scrollTo({[t?"left":"top"]:e,behavior:"smooth"})}return true}s.setTransition(i);s.setTranslate(v);s.updateActiveIndex(o);s.updateSlidesClasses();s.emit("beforeTransitionStart",i,r);s.transitionStart(e,w);if(i===0){s.transitionEnd(e,w)}else if(!s.animating){s.animating=true;if(!s.onSlideToWrapperTransitionEnd){s.onSlideToWrapperTransitionEnd=function t(i){if(!s||s.destroyed)return;if(i.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd);s.onSlideToWrapperTransitionEnd=null;delete s.onSlideToWrapperTransitionEnd;s.transitionEnd(e,w)}}s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)}return true}function Qn(t=0,i=this.params.speed,e=true,r){if(typeof t==="string"){const i=parseInt(t,10);t=i}const n=this;let s=t;if(n.params.loop){if(n.virtual&&n.params.virtual.enabled){s=s+n.virtual.slidesBefore}else{s=n.getSlideIndexByData(s)}}return n.slideTo(s,i,e,r)}function Vn(t=this.params.speed,i=true,e){const r=this;const{enabled:n,params:s,animating:o}=r;if(!n)return r;let a=s.slidesPerGroup;if(s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto){a=Math.max(r.slidesPerViewDynamic("current",true),1)}const l=r.activeIndex<s.slidesPerGroupSkip?1:a;const c=r.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return false;r.loopFix({direction:"next"});r._clientLeft=r.wrapperEl.clientLeft}if(s.rewind&&r.isEnd){return r.slideTo(0,t,i,e)}return r.slideTo(r.activeIndex+l,t,i,e)}function Wn(t=this.params.speed,i=true,e){const r=this;const{params:n,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=r;if(!l)return r;const h=r.virtual&&n.virtual.enabled;if(n.loop){if(c&&!h&&n.loopPreventsSliding)return false;r.loopFix({direction:"prev"});r._clientLeft=r.wrapperEl.clientLeft}const u=a?r.translate:-r.translate;function f(t){if(t<0)return-Math.floor(Math.abs(t));return Math.floor(t)}const p=f(u);const d=s.map((t=>f(t)));let m=s[d.indexOf(p)-1];if(typeof m==="undefined"&&n.cssMode){let t;s.forEach(((i,e)=>{if(p>=i){t=e}}));if(typeof t!=="undefined"){m=s[t>0?t-1:t]}}let g=0;if(typeof m!=="undefined"){g=o.indexOf(m);if(g<0)g=r.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){g=g-r.slidesPerViewDynamic("previous",true)+1;g=Math.max(g,0)}}if(n.rewind&&r.isBeginning){const n=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(n,t,i,e)}return r.slideTo(g,t,i,e)}function Kn(t=this.params.speed,i=true,e){const r=this;return r.slideTo(r.activeIndex,t,i,e)}function qn(t=this.params.speed,i=true,e,r=.5){const n=this;let s=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,s);const a=o+Math.floor((s-o)/n.params.slidesPerGroup);const l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const t=n.snapGrid[a];const i=n.snapGrid[a+1];if(l-t>(i-t)*r){s+=n.params.slidesPerGroup}}else{const t=n.snapGrid[a-1];const i=n.snapGrid[a];if(l-t<=(i-t)*r){s-=n.params.slidesPerGroup}}s=Math.max(s,0);s=Math.min(s,n.slidesGrid.length-1);return n.slideTo(s,t,i,e)}function Jn(){const t=this;const{params:i,slidesEl:e}=t;const r=i.slidesPerView==="auto"?t.slidesPerViewDynamic():i.slidesPerView;let n=t.clickedIndex;let s;const o=t.isElement?`swiper-slide`:`.${i.slideClass}`;if(i.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(i.centeredSlides){if(n<t.loopedSlides-r/2||n>t.slides.length-t.loopedSlides+r/2){t.loopFix();n=t.getSlideIndex(Jr(e,`${o}[data-swiper-slide-index="${s}"]`)[0]);$r((()=>{t.slideTo(n)}))}else{t.slideTo(n)}}else if(n>t.slides.length-r){t.loopFix();n=t.getSlideIndex(Jr(e,`${o}[data-swiper-slide-index="${s}"]`)[0]);$r((()=>{t.slideTo(n)}))}else{t.slideTo(n)}}else{t.slideTo(n)}}const Xn={slideTo:Un,slideToLoop:Qn,slideNext:Vn,slidePrev:Wn,slideReset:Kn,slideToClosest:qn,slideToClickedSlide:Jn};function ts(t){const i=this;const{params:e,slidesEl:r}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;const n=Jr(r,`.${e.slideClass}, swiper-slide`);n.forEach(((t,i)=>{t.setAttribute("data-swiper-slide-index",i)}));i.loopFix({slideRealIndex:t,direction:e.centeredSlides?undefined:"next"})}function is({slideRealIndex:t,slideTo:i=true,direction:e,setTranslate:r,activeSlideIndex:n,byController:s,byMousewheel:o}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:h,slidesEl:u,params:f}=a;a.allowSlidePrev=true;a.allowSlideNext=true;if(a.virtual&&f.virtual.enabled){if(i){if(!f.centeredSlides&&a.snapIndex===0){a.slideTo(a.virtual.slides.length,0,false,true)}else if(f.centeredSlides&&a.snapIndex<f.slidesPerView){a.slideTo(a.virtual.slides.length+a.snapIndex,0,false,true)}else if(a.snapIndex===a.snapGrid.length-1){a.slideTo(a.virtual.slidesBefore,0,false,true)}}a.allowSlidePrev=c;a.allowSlideNext=h;a.emit("loopFix");return}const p=f.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let d=f.loopedSlides||p;if(d%f.slidesPerGroup!==0){d+=f.slidesPerGroup-d%f.slidesPerGroup}a.loopedSlides=d;const m=[];const g=[];let v=a.activeIndex;if(typeof n==="undefined"){n=a.getSlideIndex(a.slides.filter((t=>t.classList.contains(f.slideActiveClass)))[0])}else{v=n}const w=e==="next"||!e;const b=e==="prev"||!e;let y=0;let x=0;if(n<d){y=Math.max(d-n,f.slidesPerGroup);for(let t=0;t<d-n;t+=1){const i=t-Math.floor(t/l.length)*l.length;m.push(l.length-i-1)}}else if(n>a.slides.length-d*2){x=Math.max(n-(a.slides.length-d*2),f.slidesPerGroup);for(let t=0;t<x;t+=1){const i=t-Math.floor(t/l.length)*l.length;g.push(i)}}if(b){m.forEach((t=>{a.slides[t].swiperLoopMoveDOM=true;u.prepend(a.slides[t]);a.slides[t].swiperLoopMoveDOM=false}))}if(w){g.forEach((t=>{a.slides[t].swiperLoopMoveDOM=true;u.append(a.slides[t]);a.slides[t].swiperLoopMoveDOM=false}))}a.recalcSlides();if(f.slidesPerView==="auto"){a.updateSlides()}if(f.watchSlidesProgress){a.updateSlidesOffset()}if(i){if(m.length>0&&b){if(typeof t==="undefined"){const t=a.slidesGrid[v];const i=a.slidesGrid[v+y];const e=i-t;if(o){a.setTranslate(a.translate-e)}else{a.slideTo(v+y,0,false,true);if(r){a.touches[a.isHorizontal()?"startX":"startY"]+=e}}}else{if(r){a.slideToLoop(t,0,false,true)}}}else if(g.length>0&&w){if(typeof t==="undefined"){const t=a.slidesGrid[v];const i=a.slidesGrid[v-x];const e=i-t;if(o){a.setTranslate(a.translate-e)}else{a.slideTo(v-x,0,false,true);if(r){a.touches[a.isHorizontal()?"startX":"startY"]+=e}}}else{a.slideToLoop(t,0,false,true)}}}a.allowSlidePrev=c;a.allowSlideNext=h;if(a.controller&&a.controller.control&&!s){const i={slideRealIndex:t,slideTo:false,direction:e,setTranslate:r,activeSlideIndex:n,byController:true};if(Array.isArray(a.controller.control)){a.controller.control.forEach((t=>{if(!t.destroyed&&t.params.loop)t.loopFix(i)}))}else if(a.controller.control instanceof a.constructor&&a.controller.control.params.loop){a.controller.control.loopFix(i)}}a.emit("loopFix")}function es(){const t=this;const{params:i,slidesEl:e}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach((t=>{const i=typeof t.swiperSlideIndex==="undefined"?t.getAttribute("data-swiper-slide-index")*1:t.swiperSlideIndex;r[i]=t}));t.slides.forEach((t=>{t.removeAttribute("data-swiper-slide-index")}));r.forEach((t=>{e.append(t)}));t.recalcSlides();t.slideTo(t.realIndex,0)}const rs={loopCreate:ts,loopFix:is,loopDestroy:es};function ns(t){const i=this;if(!i.params.simulateTouch||i.params.watchOverflow&&i.isLocked||i.params.cssMode)return;const e=i.params.touchEventsTarget==="container"?i.el:i.wrapperEl;if(i.isElement){i.__preventObserver__=true}e.style.cursor="move";e.style.cursor=t?"grabbing":"grab";if(i.isElement){requestAnimationFrame((()=>{i.__preventObserver__=false}))}}function ss(){const t=this;if(t.params.watchOverflow&&t.isLocked||t.params.cssMode){return}if(t.isElement){t.__preventObserver__=true}t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(t.isElement){requestAnimationFrame((()=>{t.__preventObserver__=false}))}}const os={setGrabCursor:ns,unsetGrabCursor:ss};function as(t,i=this){function e(i){if(!i||i===Nr()||i===Yr())return null;if(i.assignedSlot)i=i.assignedSlot;const r=i.closest(t);if(!r&&!i.getRootNode){return null}return r||e(i.getRootNode().host)}return e(i)}function ls(t){const i=this;const e=Nr();const r=Yr();const n=i.touchEventsData;n.evCache.push(t);const{params:s,touches:o,enabled:a}=i;if(!a)return;if(!s.simulateTouch&&t.pointerType==="mouse")return;if(i.animating&&s.preventInteractionOnTransition){return}if(!i.animating&&s.cssMode&&s.loop){i.loopFix()}let l=t;if(l.originalEvent)l=l.originalEvent;let c=l.target;if(s.touchEventsTarget==="wrapper"){if(!i.wrapperEl.contains(c))return}if("which"in l&&l.which===3)return;if("button"in l&&l.button>0)return;if(n.isTouched&&n.isMoved)return;const h=!!s.noSwipingClass&&s.noSwipingClass!=="";const u=t.composedPath?t.composedPath():t.path;if(h&&l.target&&l.target.shadowRoot&&u){c=u[0]}const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`;const p=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(p?as(f,c):c.closest(f))){i.allowClick=true;return}if(s.swipeHandler){if(!c.closest(s.swipeHandler))return}o.currentX=l.pageX;o.currentY=l.pageY;const d=o.currentX;const m=o.currentY;const g=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection;const v=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(g&&(d<=v||d>=r.innerWidth-v)){if(g==="prevent"){t.preventDefault()}else{return}}Object.assign(n,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});o.startX=d;o.startY=m;n.touchStartTime=Zr();i.allowClick=true;i.updateSize();i.swipeDirection=undefined;if(s.threshold>0)n.allowThresholdMove=false;let w=true;if(c.matches(n.focusableElements)){w=false;if(c.nodeName==="SELECT"){n.isTouched=false}}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==c){e.activeElement.blur()}const b=w&&i.allowTouchMove&&s.touchStartPreventDefault;if((s.touchStartForcePreventDefault||b)&&!c.isContentEditable){l.preventDefault()}if(s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.animating&&!s.cssMode){i.freeMode.onTouchStart()}i.emit("touchStart",l)}function cs(t){const i=Nr();const e=this;const r=e.touchEventsData;const{params:n,touches:s,rtlTranslate:o,enabled:a}=e;if(!a)return;if(!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent)l=l.originalEvent;if(!r.isTouched){if(r.startMoving&&r.isScrolling){e.emit("touchMoveOpposite",l)}return}const c=r.evCache.findIndex((t=>t.pointerId===l.pointerId));if(c>=0)r.evCache[c]=l;const h=r.evCache.length>1?r.evCache[0]:l;const u=h.pageX;const f=h.pageY;if(l.preventedByNestedSwiper){s.startX=u;s.startY=f;return}if(!e.allowTouchMove){if(!l.target.matches(r.focusableElements)){e.allowClick=false}if(r.isTouched){Object.assign(s,{startX:u,startY:f,prevX:e.touches.currentX,prevY:e.touches.currentY,currentX:u,currentY:f});r.touchStartTime=Zr()}return}if(n.touchReleaseOnEdges&&!n.loop){if(e.isVertical()){if(f<s.startY&&e.translate<=e.maxTranslate()||f>s.startY&&e.translate>=e.minTranslate()){r.isTouched=false;r.isMoved=false;return}}else if(u<s.startX&&e.translate<=e.maxTranslate()||u>s.startX&&e.translate>=e.minTranslate()){return}}if(i.activeElement){if(l.target===i.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=true;e.allowClick=false;return}}if(r.allowTouchCallbacks){e.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;s.currentX=u;s.currentY=f;const p=s.currentX-s.startX;const d=s.currentY-s.startY;if(e.params.threshold&&Math.sqrt(p**2+d**2)<e.params.threshold)return;if(typeof r.isScrolling==="undefined"){let t;if(e.isHorizontal()&&s.currentY===s.startY||e.isVertical()&&s.currentX===s.startX){r.isScrolling=false}else{if(p*p+d*d>=25){t=Math.atan2(Math.abs(d),Math.abs(p))*180/Math.PI;r.isScrolling=e.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle}}}if(r.isScrolling){e.emit("touchMoveOpposite",l)}if(typeof r.startMoving==="undefined"){if(s.currentX!==s.startX||s.currentY!==s.startY){r.startMoving=true}}if(r.isScrolling||e.zoom&&e.params.zoom&&e.params.zoom.enabled&&r.evCache.length>1){r.isTouched=false;return}if(!r.startMoving){return}e.allowClick=false;if(!n.cssMode&&l.cancelable){l.preventDefault()}if(n.touchMoveStopPropagation&&!n.nested){l.stopPropagation()}let m=e.isHorizontal()?p:d;let g=e.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;if(n.oneWayMovement){m=Math.abs(m)*(o?1:-1);g=Math.abs(g)*(o?1:-1)}s.diff=m;m*=n.touchRatio;if(o){m=-m;g=-g}const v=e.touchesDirection;e.swipeDirection=m>0?"prev":"next";e.touchesDirection=g>0?"prev":"next";const w=e.params.loop&&!n.cssMode;if(!r.isMoved){if(w){e.loopFix({direction:e.swipeDirection})}r.startTranslate=e.getTranslate();e.setTransition(0);if(e.animating){const t=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true});e.wrapperEl.dispatchEvent(t)}r.allowMomentumBounce=false;if(n.grabCursor&&(e.allowSlideNext===true||e.allowSlidePrev===true)){e.setGrabCursor(true)}e.emit("sliderFirstMove",l)}let b;if(r.isMoved&&v!==e.touchesDirection&&w&&Math.abs(m)>=1){e.loopFix({direction:e.swipeDirection,setTranslate:true});b=true}e.emit("sliderMove",l);r.isMoved=true;r.currentTranslate=m+r.startTranslate;let y=true;let x=n.resistanceRatio;if(n.touchReleaseOnEdges){x=0}if(m>0){if(w&&!b&&r.currentTranslate>(n.centeredSlides?e.minTranslate()-e.size/2:e.minTranslate())){e.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(r.currentTranslate>e.minTranslate()){y=false;if(n.resistance){r.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+r.startTranslate+m)**x}}}else if(m<0){if(w&&!b&&r.currentTranslate<(n.centeredSlides?e.maxTranslate()+e.size/2:e.maxTranslate())){e.loopFix({direction:"next",setTranslate:true,activeSlideIndex:e.slides.length-(n.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))})}if(r.currentTranslate<e.maxTranslate()){y=false;if(n.resistance){r.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-r.startTranslate-m)**x}}}if(y){l.preventedByNestedSwiper=true}if(!e.allowSlideNext&&e.swipeDirection==="next"&&r.currentTranslate<r.startTranslate){r.currentTranslate=r.startTranslate}if(!e.allowSlidePrev&&e.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate){r.currentTranslate=r.startTranslate}if(!e.allowSlidePrev&&!e.allowSlideNext){r.currentTranslate=r.startTranslate}if(n.threshold>0){if(Math.abs(m)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=true;s.startX=s.currentX;s.startY=s.currentY;r.currentTranslate=r.startTranslate;s.diff=e.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}}if(!n.followFinger||n.cssMode)return;if(n.freeMode&&n.freeMode.enabled&&e.freeMode||n.watchSlidesProgress){e.updateActiveIndex();e.updateSlidesClasses()}if(n.freeMode&&n.freeMode.enabled&&e.freeMode){e.freeMode.onTouchMove()}e.updateProgress(r.currentTranslate);e.setTranslate(r.currentTranslate)}function hs(t){const i=this;const e=i.touchEventsData;const r=e.evCache.findIndex((i=>i.pointerId===t.pointerId));if(r>=0){e.evCache.splice(r,1)}if(["pointercancel","pointerout","pointerleave"].includes(t.type)){const e=t.type==="pointercancel"&&(i.browser.isSafari||i.browser.isWebView);if(!e){return}}const{params:n,touches:s,rtlTranslate:o,slidesGrid:a,enabled:l}=i;if(!l)return;if(!n.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent)c=c.originalEvent;if(e.allowTouchCallbacks){i.emit("touchEnd",c)}e.allowTouchCallbacks=false;if(!e.isTouched){if(e.isMoved&&n.grabCursor){i.setGrabCursor(false)}e.isMoved=false;e.startMoving=false;return}if(n.grabCursor&&e.isMoved&&e.isTouched&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(false)}const h=Zr();const u=h-e.touchStartTime;if(i.allowClick){const t=c.path||c.composedPath&&c.composedPath();i.updateClickedSlide(t&&t[0]||c.target);i.emit("tap click",c);if(u<300&&h-e.lastClickTime<300){i.emit("doubleTap doubleClick",c)}}e.lastClickTime=Zr();$r((()=>{if(!i.destroyed)i.allowClick=true}));if(!e.isTouched||!e.isMoved||!i.swipeDirection||s.diff===0||e.currentTranslate===e.startTranslate){e.isTouched=false;e.isMoved=false;e.startMoving=false;return}e.isTouched=false;e.isMoved=false;e.startMoving=false;let f;if(n.followFinger){f=o?i.translate:-i.translate}else{f=-e.currentTranslate}if(n.cssMode){return}if(n.freeMode&&n.freeMode.enabled){i.freeMode.onTouchEnd({currentPos:f});return}let p=0;let d=i.slidesSizesGrid[0];for(let b=0;b<a.length;b+=b<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=b<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(typeof a[b+t]!=="undefined"){if(f>=a[b]&&f<a[b+t]){p=b;d=a[b+t]-a[b]}}else if(f>=a[b]){p=b;d=a[a.length-1]-a[a.length-2]}}let m=null;let g=null;if(n.rewind){if(i.isBeginning){g=n.virtual&&n.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1}else if(i.isEnd){m=0}}const v=(f-a[p])/d;const w=p<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(u>n.longSwipesMs){if(!n.longSwipes){i.slideTo(i.activeIndex);return}if(i.swipeDirection==="next"){if(v>=n.longSwipesRatio)i.slideTo(n.rewind&&i.isEnd?m:p+w);else i.slideTo(p)}if(i.swipeDirection==="prev"){if(v>1-n.longSwipesRatio){i.slideTo(p+w)}else if(g!==null&&v<0&&Math.abs(v)>n.longSwipesRatio){i.slideTo(g)}else{i.slideTo(p)}}}else{if(!n.shortSwipes){i.slideTo(i.activeIndex);return}const t=i.navigation&&(c.target===i.navigation.nextEl||c.target===i.navigation.prevEl);if(!t){if(i.swipeDirection==="next"){i.slideTo(m!==null?m:p+w)}if(i.swipeDirection==="prev"){i.slideTo(g!==null?g:p)}}else if(c.target===i.navigation.nextEl){i.slideTo(p+w)}else{i.slideTo(p)}}}function us(){const t=this;const{params:i,el:e}=t;if(e&&e.offsetWidth===0)return;if(i.breakpoints){t.setBreakpoint()}const{allowSlideNext:r,allowSlidePrev:n,snapGrid:s}=t;const o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=true;t.allowSlidePrev=true;t.updateSize();t.updateSlides();t.updateSlidesClasses();const a=o&&i.loop;if((i.slidesPerView==="auto"||i.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a){t.slideTo(t.slides.length-1,0,false,true)}else{if(t.params.loop&&!o){t.slideToLoop(t.realIndex,0,false,true)}else{t.slideTo(t.activeIndex,0,false,true)}}if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){clearTimeout(t.autoplay.resizeTimeout);t.autoplay.resizeTimeout=setTimeout((()=>{if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){t.autoplay.resume()}}),500)}t.allowSlidePrev=n;t.allowSlideNext=r;if(t.params.watchOverflow&&s!==t.snapGrid){t.checkOverflow()}}function fs(t){const i=this;if(!i.enabled)return;if(!i.allowClick){if(i.params.preventClicks)t.preventDefault();if(i.params.preventClicksPropagation&&i.animating){t.stopPropagation();t.stopImmediatePropagation()}}}function ps(){const t=this;const{wrapperEl:i,rtlTranslate:e,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate;if(t.isHorizontal()){t.translate=-i.scrollLeft}else{t.translate=-i.scrollTop}if(t.translate===0)t.translate=0;t.updateActiveIndex();t.updateSlidesClasses();let n;const s=t.maxTranslate()-t.minTranslate();if(s===0){n=0}else{n=(t.translate-t.minTranslate())/s}if(n!==t.progress){t.updateProgress(e?-t.translate:t.translate)}t.emit("setTranslate",t.translate,false)}function ds(t){const i=this;Cn(i,t.target);if(i.params.cssMode||i.params.slidesPerView!=="auto"&&!i.params.autoHeight){return}i.update()}let ms=false;function gs(){}const vs=(t,i)=>{const e=Nr();const{params:r,el:n,wrapperEl:s,device:o}=t;const a=!!r.nested;const l=i==="on"?"addEventListener":"removeEventListener";const c=i;n[l]("pointerdown",t.onTouchStart,{passive:false});e[l]("pointermove",t.onTouchMove,{passive:false,capture:a});e[l]("pointerup",t.onTouchEnd,{passive:true});e[l]("pointercancel",t.onTouchEnd,{passive:true});e[l]("pointerout",t.onTouchEnd,{passive:true});e[l]("pointerleave",t.onTouchEnd,{passive:true});if(r.preventClicks||r.preventClicksPropagation){n[l]("click",t.onClick,true)}if(r.cssMode){s[l]("scroll",t.onScroll)}if(r.updateOnWindowResize){t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",us,true)}else{t[c]("observerUpdate",us,true)}n[l]("load",t.onLoad,{capture:true})};function ws(){const t=this;const i=Nr();const{params:e}=t;t.onTouchStart=ls.bind(t);t.onTouchMove=cs.bind(t);t.onTouchEnd=hs.bind(t);if(e.cssMode){t.onScroll=ps.bind(t)}t.onClick=fs.bind(t);t.onLoad=ds.bind(t);if(!ms){i.addEventListener("touchstart",gs);ms=true}vs(t,"on")}function bs(){const t=this;vs(t,"off")}const ys={attachEvents:ws,detachEvents:bs};const xs=(t,i)=>t.grid&&i.grid&&i.grid.rows>1;function ks(){const t=this;const{realIndex:i,initialized:e,params:r,el:n}=t;const s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const a=o in s?s[o]:undefined;const l=a||t.originalParams;const c=xs(t,r);const h=xs(t,l);const u=r.enabled;if(c&&!h){n.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`);t.emitContainerClasses()}else if(!c&&h){n.classList.add(`${r.containerModifierClass}grid`);if(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column"){n.classList.add(`${r.containerModifierClass}grid-column`)}t.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((i=>{if(typeof l[i]==="undefined")return;const e=r[i]&&r[i].enabled;const n=l[i]&&l[i].enabled;if(e&&!n){t[i].disable()}if(!e&&n){t[i].enable()}}));const f=l.direction&&l.direction!==r.direction;const p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);if(f&&e){t.changeDirection()}Wr(t.params,l);const d=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev});if(u&&!d){t.disable()}else if(!u&&d){t.enable()}t.currentBreakpoint=o;t.emit("_beforeBreakpoint",l);if(p&&e){t.loopDestroy();t.loopCreate(i);t.updateSlides()}t.emit("breakpoint",l)}function As(t,i="window",e){if(!t||i==="container"&&!e)return undefined;let r=false;const n=Yr();const s=i==="window"?n.innerHeight:e.clientHeight;const o=Object.keys(t).map((t=>{if(typeof t==="string"&&t.indexOf("@")===0){const i=parseFloat(t.substr(1));const e=s*i;return{value:e,point:t}}return{value:t,point:t}}));o.sort(((t,i)=>parseInt(t.value,10)-parseInt(i.value,10)));for(let a=0;a<o.length;a+=1){const{point:t,value:s}=o[a];if(i==="window"){if(n.matchMedia(`(min-width: ${s}px)`).matches){r=t}}else if(s<=e.clientWidth){r=t}}return r||"max"}const _s={setBreakpoint:ks,getBreakpoint:As};function Ms(t,i){const e=[];t.forEach((t=>{if(typeof t==="object"){Object.keys(t).forEach((r=>{if(t[r]){e.push(i+r)}}))}else if(typeof t==="string"){e.push(i+t)}}));return e}function zs(){const t=this;const{classNames:i,params:e,rtl:r,el:n,device:s}=t;const o=Ms(["initialized",e.direction,{"free-mode":t.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:r},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&e.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);i.push(...o);n.classList.add(...i);t.emitContainerClasses()}function Ls(){const t=this;const{el:i,classNames:e}=t;i.classList.remove(...e);t.emitContainerClasses()}const Cs={addClasses:zs,removeClasses:Ls};function Es(){const t=this;const{isLocked:i,params:e}=t;const{slidesOffsetBefore:r}=e;if(r){const i=t.slides.length-1;const e=t.slidesGrid[i]+t.slidesSizesGrid[i]+r*2;t.isLocked=t.size>e}else{t.isLocked=t.snapGrid.length===1}if(e.allowSlideNext===true){t.allowSlideNext=!t.isLocked}if(e.allowSlidePrev===true){t.allowSlidePrev=!t.isLocked}if(i&&i!==t.isLocked){t.isEnd=false}if(i!==t.isLocked){t.emit(t.isLocked?"lock":"unlock")}}const Ps={checkOverflow:Es};const Os={init:true,direction:"horizontal",oneWayMovement:false,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:false,updateOnWindowResize:true,resizeObserver:true,nested:false,createElements:false,enabled:true,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:false,userAgent:null,url:null,edgeSwipeDetection:false,edgeSwipeThreshold:20,autoHeight:false,setWrapperSize:false,virtualTranslate:false,effect:"slide",breakpoints:undefined,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:false,centeredSlides:false,centeredSlidesBounds:false,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:true,centerInsufficientSlides:false,watchOverflow:true,roundLengths:false,touchRatio:1,touchAngle:45,simulateTouch:true,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,allowTouchMove:true,threshold:5,touchMoveStopPropagation:false,touchStartPreventDefault:true,touchStartForcePreventDefault:false,touchReleaseOnEdges:false,uniqueNavElements:true,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,grabCursor:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loop:false,loopedSlides:null,loopPreventsSliding:true,rewind:false,allowSlidePrev:true,allowSlideNext:true,swipeHandler:null,noSwiping:true,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:true,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:true,_emitClasses:false};function js(t,i){return function e(r={}){const n=Object.keys(r)[0];const s=r[n];if(typeof s!=="object"||s===null){Wr(i,r);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&t[n]===true){t[n]={auto:true}}if(!(n in t&&"enabled"in s)){Wr(i,r);return}if(t[n]===true){t[n]={enabled:true}}if(typeof t[n]==="object"&&!("enabled"in t[n])){t[n].enabled=true}if(!t[n])t[n]={enabled:false};Wr(i,r)}}const Ss={eventsEmitter:yn,update:Tn,translate:Dn,transition:Hn,slide:Xn,loop:rs,grabCursor:os,events:ys,breakpoints:_s,checkOverflow:Ps,classes:Cs};const Ts={};class Is{constructor(...t){let i;let e;if(t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"){e=t[0]}else{[i,e]=t}if(!e)e={};e=Wr({},e);if(i&&!e.el)e.el=i;const r=Nr();if(e.el&&typeof e.el==="string"&&r.querySelectorAll(e.el).length>1){const t=[];r.querySelectorAll(e.el).forEach((i=>{const r=Wr({},e,{el:i});t.push(new Is(r))}));return t}const n=this;n.__swiper__=true;n.support=un();n.device=dn({userAgent:e.userAgent});n.browser=vn();n.eventsListeners={};n.eventsAnyListeners=[];n.modules=[...n.__modules__];if(e.modules&&Array.isArray(e.modules)){n.modules.push(...e.modules)}const s={};n.modules.forEach((t=>{t({params:e,swiper:n,extendParams:js(e,s),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const o=Wr({},Os,s);n.params=Wr({},o,Ts,e);n.originalParams=Wr({},n.params);n.passedParams=Wr({},e);if(n.params&&n.params.on){Object.keys(n.params.on).forEach((t=>{n.on(t,n.params.on[t])}))}if(n.params&&n.params.onAny){n.onAny(n.params.onAny)}Object.assign(n,{enabled:n.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,startMoving:undefined,evCache:[]},allowClick:true,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});n.emit("_swiper");if(n.params.init){n.init()}return n}getSlideIndex(t){const{slidesEl:i,params:e}=this;const r=Jr(i,`.${e.slideClass}, swiper-slide`);const n=sn(r[0]);return sn(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter((i=>i.getAttribute("data-swiper-slide-index")*1===t))[0])}recalcSlides(){const t=this;const{slidesEl:i,params:e}=t;t.slides=Jr(i,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;if(t.enabled)return;t.enabled=true;if(t.params.grabCursor){t.setGrabCursor()}t.emit("enable")}disable(){const t=this;if(!t.enabled)return;t.enabled=false;if(t.params.grabCursor){t.unsetGrabCursor()}t.emit("disable")}setProgress(t,i){const e=this;t=Math.min(Math.max(t,0),1);const r=e.minTranslate();const n=e.maxTranslate();const s=(n-r)*t+r;e.translateTo(s,typeof i==="undefined"?0:i);e.updateActiveIndex();e.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=t.el.className.split(" ").filter((i=>i.indexOf("swiper")===0||i.indexOf(t.params.containerModifierClass)===0));t.emit("_containerClasses",i.join(" "))}getSlideClasses(t){const i=this;if(i.destroyed)return"";return t.className.split(" ").filter((t=>t.indexOf("swiper-slide")===0||t.indexOf(i.params.slideClass)===0)).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=[];t.slides.forEach((e=>{const r=t.getSlideClasses(e);i.push({slideEl:e,classNames:r});t.emit("_slideClass",e,r)}));t.emit("_slideClasses",i)}slidesPerViewDynamic(t="current",i=false){const e=this;const{params:r,slides:n,slidesGrid:s,slidesSizesGrid:o,size:a,activeIndex:l}=e;let c=1;if(r.centeredSlides){let t=n[l]?n[l].swiperSlideSize:0;let i;for(let e=l+1;e<n.length;e+=1){if(n[e]&&!i){t+=n[e].swiperSlideSize;c+=1;if(t>a)i=true}}for(let e=l-1;e>=0;e-=1){if(n[e]&&!i){t+=n[e].swiperSlideSize;c+=1;if(t>a)i=true}}}else{if(t==="current"){for(let t=l+1;t<n.length;t+=1){const e=i?s[t]+o[t]-s[l]<a:s[t]-s[l]<a;if(e){c+=1}}}else{for(let t=l-1;t>=0;t-=1){const i=s[l]-s[t]<a;if(i){c+=1}}}}return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:i,params:e}=t;if(e.breakpoints){t.setBreakpoint()}[...t.el.querySelectorAll('[loading="lazy"]')].forEach((i=>{if(i.complete){Cn(t,i)}}));t.updateSize();t.updateSlides();t.updateProgress();t.updateSlidesClasses();function r(){const i=t.rtlTranslate?t.translate*-1:t.translate;const e=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(e);t.updateActiveIndex();t.updateSlidesClasses()}let n;if(e.freeMode&&e.freeMode.enabled&&!e.cssMode){r();if(e.autoHeight){t.updateAutoHeight()}}else{if((e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!e.centeredSlides){const i=t.virtual&&e.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(i.length-1,0,false,true)}else{n=t.slideTo(t.activeIndex,0,false,true)}if(!n){r()}}if(e.watchOverflow&&i!==t.snapGrid){t.checkOverflow()}t.emit("update")}changeDirection(t,i=true){const e=this;const r=e.params.direction;if(!t){t=r==="horizontal"?"vertical":"horizontal"}if(t===r||t!=="horizontal"&&t!=="vertical"){return e}e.el.classList.remove(`${e.params.containerModifierClass}${r}`);e.el.classList.add(`${e.params.containerModifierClass}${t}`);e.emitContainerClasses();e.params.direction=t;e.slides.forEach((i=>{if(t==="vertical"){i.style.width=""}else{i.style.height=""}}));e.emit("changeDirection");if(i)e.update();return e}changeLanguageDirection(t){const i=this;if(i.rtl&&t==="rtl"||!i.rtl&&t==="ltr")return;i.rtl=t==="rtl";i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl;if(i.rtl){i.el.classList.add(`${i.params.containerModifierClass}rtl`);i.el.dir="rtl"}else{i.el.classList.remove(`${i.params.containerModifierClass}rtl`);i.el.dir="ltr"}i.update()}mount(t){const i=this;if(i.mounted)return true;let e=t||i.params.el;if(typeof e==="string"){e=document.querySelector(e)}if(!e){return false}e.swiper=i;if(e.shadowEl){i.isElement=true}const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;const n=()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=e.shadowRoot.querySelector(r());return t}return Jr(e,r())[0]};let s=n();if(!s&&i.params.createElements){s=Xr("div",i.params.wrapperClass);e.append(s);Jr(e,`.${i.params.slideClass}`).forEach((t=>{s.append(t)}))}Object.assign(i,{el:e,wrapperEl:s,slidesEl:i.isElement?e:s,mounted:true,rtl:e.dir.toLowerCase()==="rtl"||nn(e,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||nn(e,"direction")==="rtl"),wrongRTL:nn(s,"display")==="-webkit-box"});return true}init(t){const i=this;if(i.initialized)return i;const e=i.mount(t);if(e===false)return i;i.emit("beforeInit");if(i.params.breakpoints){i.setBreakpoint()}i.addClasses();i.updateSize();i.updateSlides();if(i.params.watchOverflow){i.checkOverflow()}if(i.params.grabCursor&&i.enabled){i.setGrabCursor()}if(i.params.loop&&i.virtual&&i.params.virtual.enabled){i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,false,true)}else{i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,false,true)}if(i.params.loop){i.loopCreate()}i.attachEvents();[...i.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{if(t.complete){Cn(i,t)}else{t.addEventListener("load",(t=>{Cn(i,t.target)}))}}));Pn(i);i.initialized=true;Pn(i);i.emit("init");i.emit("afterInit");return i}destroy(t=true,i=true){const e=this;const{params:r,el:n,wrapperEl:s,slides:o}=e;if(typeof e.params==="undefined"||e.destroyed){return null}e.emit("beforeDestroy");e.initialized=false;e.detachEvents();if(r.loop){e.loopDestroy()}if(i){e.removeClasses();n.removeAttribute("style");s.removeAttribute("style");if(o&&o.length){o.forEach((t=>{t.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass);t.removeAttribute("style");t.removeAttribute("data-swiper-slide-index")}))}}e.emit("destroy");Object.keys(e.eventsListeners).forEach((t=>{e.off(t)}));if(t!==false){e.el.swiper=null;Gr(e)}e.destroyed=true;return null}static extendDefaults(t){Wr(Ts,t)}static get extendedDefaults(){return Ts}static get defaults(){return Os}static installModule(t){if(!Is.prototype.__modules__)Is.prototype.__modules__=[];const i=Is.prototype.__modules__;if(typeof t==="function"&&i.indexOf(t)<0){i.push(t)}}static use(t){if(Array.isArray(t)){t.forEach((t=>Is.installModule(t)));return Is}Is.installModule(t);return Is}}Object.keys(Ss).forEach((t=>{Object.keys(Ss[t]).forEach((i=>{Is.prototype[i]=Ss[t][i]}))}));Is.use([wn,bn]);function Bs({swiper:t,extendParams:i,on:e,emit:r}){const n=Nr();const s=Yr();t.keyboard={enabled:false};i({keyboard:{enabled:false,onlyInViewport:true,pageUpDown:true}});function o(i){if(!t.enabled)return;const{rtlTranslate:e}=t;let o=i;if(o.originalEvent)o=o.originalEvent;const a=o.keyCode||o.charCode;const l=t.params.keyboard.pageUpDown;const c=l&&a===33;const h=l&&a===34;const u=a===37;const f=a===39;const p=a===38;const d=a===40;if(!t.allowSlideNext&&(t.isHorizontal()&&f||t.isVertical()&&d||h)){return false}if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&p||c)){return false}if(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey){return undefined}if(n.activeElement&&n.activeElement.nodeName&&(n.activeElement.nodeName.toLowerCase()==="input"||n.activeElement.nodeName.toLowerCase()==="textarea")){return undefined}if(t.params.keyboard.onlyInViewport&&(c||h||u||f||p||d)){let i=false;if(on(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&on(t.el,`.${t.params.slideActiveClass}`).length===0){return undefined}const r=t.el;const n=r.clientWidth;const o=r.clientHeight;const a=s.innerWidth;const l=s.innerHeight;const c=tn(r);if(e)c.left-=r.scrollLeft;const h=[[c.left,c.top],[c.left+n,c.top],[c.left,c.top+o],[c.left+n,c.top+o]];for(let t=0;t<h.length;t+=1){const e=h[t];if(e[0]>=0&&e[0]<=a&&e[1]>=0&&e[1]<=l){if(e[0]===0&&e[1]===0)continue;i=true}}if(!i)return undefined}if(t.isHorizontal()){if(c||h||u||f){if(o.preventDefault)o.preventDefault();else o.returnValue=false}if((h||f)&&!e||(c||u)&&e)t.slideNext();if((c||u)&&!e||(h||f)&&e)t.slidePrev()}else{if(c||h||p||d){if(o.preventDefault)o.preventDefault();else o.returnValue=false}if(h||d)t.slideNext();if(c||p)t.slidePrev()}r("keyPress",a);return undefined}function a(){if(t.keyboard.enabled)return;n.addEventListener("keydown",o);t.keyboard.enabled=true}function l(){if(!t.keyboard.enabled)return;n.removeEventListener("keydown",o);t.keyboard.enabled=false}e("init",(()=>{if(t.params.keyboard.enabled){a()}}));e("destroy",(()=>{if(t.keyboard.enabled){l()}}));Object.assign(t.keyboard,{enable:a,disable:l})}function Fs({swiper:t,extendParams:i,on:e,emit:r}){const n=Yr();i({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 s;let o=Zr();let a;const l=[];function c(t){const i=10;const e=40;const r=800;let n=0;let s=0;let o=0;let a=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){n=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){n=s;s=0}o=n*i;a=s*i;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){o=t.deltaX}if(t.shiftKey&&!o){o=a;a=0}if((o||a)&&t.deltaMode){if(t.deltaMode===1){o*=e;a*=e}else{o*=r;a*=r}}if(o&&!n){n=o<1?-1:1}if(a&&!s){s=a<1?-1:1}return{spinX:n,spinY:s,pixelX:o,pixelY:a}}function h(){if(!t.enabled)return;t.mouseEntered=true}function u(){if(!t.enabled)return;t.mouseEntered=false}function f(i){if(t.params.mousewheel.thresholdDelta&&i.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&Zr()-o<t.params.mousewheel.thresholdTime){return false}if(i.delta>=6&&Zr()-o<60){return true}if(i.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();r("scroll",i.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();r("scroll",i.raw)}o=(new n.Date).getTime();return false}function p(i){const e=t.params.mousewheel;if(i.direction<0){if(t.isEnd&&!t.params.loop&&e.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&e.releaseOnEdges){return true}return false}function d(i){let e=i;let n=true;if(!t.enabled)return;if(i.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;if(t.params.cssMode){e.preventDefault()}let h=t.el;if(t.params.mousewheel.eventsTarget!=="container"){h=document.querySelector(t.params.mousewheel.eventsTarget)}const u=h&&h.contains(e.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(e.originalEvent)e=e.originalEvent;let d=0;const m=t.rtlTranslate?-1:1;const g=c(e);if(o.forceToAxis){if(t.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))d=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))d=-g.pixelY;else return true}else{d=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(d===0)return true;if(o.invert)d=-d;let v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();n=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(n&&t.params.nested)e.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){const t={time:Zr(),delta:Math.abs(d),direction:Math.sign(d),raw:i};if(l.length>=2){l.shift()}const e=l.length?l[l.length-1]:undefined;l.push(t);if(e){if(t.direction!==e.direction||t.delta>e.delta||t.time>e.time+150){f(t)}}else{f(t)}if(p(t)){return true}}else{const i={time:Zr(),delta:Math.abs(d),direction:Math.sign(d)};const n=a&&i.time<a.time+500&&i.delta<=a.delta&&i.direction===a.direction;if(!n){a=undefined;let c=t.getTranslate()+d*o.sensitivity;const h=t.isBeginning;const u=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(!h&&t.isBeginning||!u&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:i.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(l.length>=15){l.shift()}const e=l.length?l[l.length-1]:undefined;const r=l[0];l.push(i);if(e&&(i.delta>e.delta||i.direction!==e.direction)){l.splice(0)}else if(l.length>=15&&i.time-r.time<500&&r.delta-i.delta>=1&&i.delta<=6){const e=d>0?.8:.2;a=i;l.splice(0);s=$r((()=>{t.slideToClosest(t.params.speed,true,undefined,e)}),0)}if(!s){s=$r((()=>{const e=.5;a=i;l.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!n)r("scroll",e);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(c===t.minTranslate()||c===t.maxTranslate())return true}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;return false}function m(i){let e=t.el;if(t.params.mousewheel.eventsTarget!=="container"){e=document.querySelector(t.params.mousewheel.eventsTarget)}e[i]("mouseenter",h);e[i]("mouseleave",u);e[i]("wheel",d)}function g(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",d);return true}if(t.mousewheel.enabled)return false;m("addEventListener");t.mousewheel.enabled=true;return true}function v(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,d);return true}if(!t.mousewheel.enabled)return false;m("removeEventListener");t.mousewheel.enabled=false;return true}e("init",(()=>{if(!t.params.mousewheel.enabled&&t.params.cssMode){v()}if(t.params.mousewheel.enabled)g()}));e("destroy",(()=>{if(t.params.cssMode){g()}if(t.mousewheel.enabled)v()}));Object.assign(t.mousewheel,{enable:g,disable:v})}function Rs(t,i,e,r){if(t.params.createElements){Object.keys(r).forEach((n=>{if(!e[n]&&e.auto===true){let s=Jr(t.el,`.${r[n]}`)[0];if(!s){s=Xr("div",r[n]);s.className=r[n];t.el.append(s)}e[n]=s;i[n]=s}}))}return e}function Ns({swiper:t,extendParams:i,on:e,emit:r}){i({navigation:{nextEl:null,prevEl:null,hideOnClick:false,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}});t.navigation={nextEl:null,prevEl:null};const n=t=>{if(!Array.isArray(t))t=[t].filter((t=>!!t));return t};function s(i){let e;if(i&&typeof i==="string"&&t.isElement){e=t.el.shadowRoot.querySelector(i);if(e)return e}if(i){if(typeof i==="string")e=[...document.querySelectorAll(i)];if(t.params.uniqueNavElements&&typeof i==="string"&&e.length>1&&t.el.querySelectorAll(i).length===1){e=t.el.querySelector(i)}}if(i&&!e)return i;return e}function o(i,e){const r=t.params.navigation;i=n(i);i.forEach((i=>{if(i){i.classList[e?"add":"remove"](...r.disabledClass.split(" "));if(i.tagName==="BUTTON")i.disabled=e;if(t.params.watchOverflow&&t.enabled){i.classList[t.isLocked?"add":"remove"](r.lockClass)}}}))}function a(){const{nextEl:i,prevEl:e}=t.navigation;if(t.params.loop){o(e,false);o(i,false);return}o(e,t.isBeginning&&!t.params.rewind);o(i,t.isEnd&&!t.params.rewind)}function l(i){i.preventDefault();if(t.isBeginning&&!t.params.loop&&!t.params.rewind)return;t.slidePrev();r("navigationPrev")}function c(i){i.preventDefault();if(t.isEnd&&!t.params.loop&&!t.params.rewind)return;t.slideNext();r("navigationNext")}function h(){const i=t.params.navigation;t.params.navigation=Rs(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(i.nextEl||i.prevEl))return;let e=s(i.nextEl);let r=s(i.prevEl);Object.assign(t.navigation,{nextEl:e,prevEl:r});e=n(e);r=n(r);const o=(e,r)=>{if(e){e.addEventListener("click",r==="next"?c:l)}if(!t.enabled&&e){e.classList.add(...i.lockClass.split(" "))}};e.forEach((t=>o(t,"next")));r.forEach((t=>o(t,"prev")))}function u(){let{nextEl:i,prevEl:e}=t.navigation;i=n(i);e=n(e);const r=(i,e)=>{i.removeEventListener("click",e==="next"?c:l);i.classList.remove(...t.params.navigation.disabledClass.split(" "))};i.forEach((t=>r(t,"next")));e.forEach((t=>r(t,"prev")))}e("init",(()=>{if(t.params.navigation.enabled===false){p()}else{h();a()}}));e("toEdge fromEdge lock unlock",(()=>{a()}));e("destroy",(()=>{u()}));e("enable disable",(()=>{let{nextEl:i,prevEl:e}=t.navigation;i=n(i);e=n(e);[...i,...e].filter((t=>!!t)).forEach((i=>i.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass)))}));e("click",((i,e)=>{let{nextEl:s,prevEl:o}=t.navigation;s=n(s);o=n(o);const a=e.target;if(t.params.navigation.hideOnClick&&!o.includes(a)&&!s.includes(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let i;if(s.length){i=s[0].classList.contains(t.params.navigation.hiddenClass)}else if(o.length){i=o[0].classList.contains(t.params.navigation.hiddenClass)}if(i===true){r("navigationShow")}else{r("navigationHide")}[...s,...o].filter((t=>!!t)).forEach((i=>i.classList.toggle(t.params.navigation.hiddenClass)))}}));const f=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" "));h();a()};const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" "));u()};Object.assign(t.navigation,{enable:f,disable:p,update:a,init:h,destroy:u})}function Ds(t=""){return`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ys({swiper:t,extendParams:i,on:e,emit:r}){const n="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:false,hideOnClick:false,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:false,type:"bullets",dynamicBullets:false,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}});t.pagination={el:null,bullets:[]};let s;let o=0;const a=t=>{if(!Array.isArray(t))t=[t].filter((t=>!!t));return t};function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(i,e){const{bulletActiveClass:r}=t.params.pagination;if(!i)return;i=i[`${e==="prev"?"previous":"next"}ElementSibling`];if(i){i.classList.add(`${r}-${e}`);i=i[`${e==="prev"?"previous":"next"}ElementSibling`];if(i){i.classList.add(`${r}-${e}-${e}`)}}}function h(i){const e=i.target.closest(Ds(t.params.pagination.bulletClass));if(!e){return}i.preventDefault();const r=sn(e)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;const i=t.getSlideIndexByData(r);const e=t.getSlideIndexByData(t.realIndex);if(i>t.slides.length-t.loopedSlides){t.loopFix({direction:i>e?"next":"prev",activeSlideIndex:i,slideTo:false})}t.slideToLoop(r)}else{t.slideTo(r)}}function u(){const i=t.rtl;const e=t.params.pagination;if(l())return;let n=t.pagination.el;n=a(n);let h;let u;const f=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;const p=t.params.loop?Math.ceil(f/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop){u=t.previousRealIndex||0;h=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex}else if(typeof t.snapIndex!=="undefined"){h=t.snapIndex;u=t.previousSnapIndex}else{u=t.previousIndex||0;h=t.activeIndex||0}if(e.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let a;let l;let f;if(e.dynamicBullets){s=ln(r[0],t.isHorizontal()?"width":"height",true);n.forEach((i=>{i.style[t.isHorizontal()?"width":"height"]=`${s*(e.dynamicMainBullets+4)}px`}));if(e.dynamicMainBullets>1&&u!==undefined){o+=h-(u||0);if(o>e.dynamicMainBullets-1){o=e.dynamicMainBullets-1}else if(o<0){o=0}}a=Math.max(h-o,0);l=a+(Math.min(r.length,e.dynamicMainBullets)-1);f=(l+a)/2}r.forEach((t=>{const i=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${e.bulletActiveClass}${t}`))].map((t=>typeof t==="string"&&t.includes(" ")?t.split(" "):t)).flat();t.classList.remove(...i)}));if(n.length>1){r.forEach((i=>{const r=sn(i);if(r===h){i.classList.add(...e.bulletActiveClass.split(" "))}else if(t.isElement){i.setAttribute("part","bullet")}if(e.dynamicBullets){if(r>=a&&r<=l){i.classList.add(...`${e.bulletActiveClass}-main`.split(" "))}if(r===a){c(i,"prev")}if(r===l){c(i,"next")}}}))}else{const i=r[h];if(i){i.classList.add(...e.bulletActiveClass.split(" "))}if(t.isElement){r.forEach(((t,i)=>{t.setAttribute("part",i===h?"bullet-active":"bullet")}))}if(e.dynamicBullets){const t=r[a];const i=r[l];for(let n=a;n<=l;n+=1){if(r[n]){r[n].classList.add(...`${e.bulletActiveClass}-main`.split(" "))}}c(t,"prev");c(i,"next")}}if(e.dynamicBullets){const n=Math.min(r.length,e.dynamicMainBullets+4);const o=(s*n-s)/2-f*s;const a=i?"right":"left";r.forEach((i=>{i.style[t.isHorizontal()?a:"top"]=`${o}px`}))}}n.forEach(((i,n)=>{if(e.type==="fraction"){i.querySelectorAll(Ds(e.currentClass)).forEach((t=>{t.textContent=e.formatFractionCurrent(h+1)}));i.querySelectorAll(Ds(e.totalClass)).forEach((t=>{t.textContent=e.formatFractionTotal(p)}))}if(e.type==="progressbar"){let r;if(e.progressbarOpposite){r=t.isHorizontal()?"vertical":"horizontal"}else{r=t.isHorizontal()?"horizontal":"vertical"}const n=(h+1)/p;let s=1;let o=1;if(r==="horizontal"){s=n}else{o=n}i.querySelectorAll(Ds(e.progressbarFillClass)).forEach((i=>{i.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${o})`;i.style.transitionDuration=`${t.params.speed}ms`}))}if(e.type==="custom"&&e.renderCustom){i.innerHTML=e.renderCustom(t,h+1,p);if(n===0)r("paginationRender",i)}else{if(n===0)r("paginationRender",i);r("paginationUpdate",i)}if(t.params.watchOverflow&&t.enabled){i.classList[t.isLocked?"add":"remove"](e.lockClass)}}))}function f(){const i=t.params.pagination;if(l())return;const e=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let n=t.pagination.el;n=a(n);let s="";if(i.type==="bullets"){let r=t.params.loop?Math.ceil(e/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.freeMode&&t.params.freeMode.enabled&&r>e){r=e}for(let e=0;e<r;e+=1){if(i.renderBullet){s+=i.renderBullet.call(t,e,i.bulletClass)}else{s+=`<${i.bulletElement} ${t.isElement?'part="bullet"':""} class="${i.bulletClass}"></${i.bulletElement}>`}}}if(i.type==="fraction"){if(i.renderFraction){s=i.renderFraction.call(t,i.currentClass,i.totalClass)}else{s=`<span class="${i.currentClass}"></span>`+" / "+`<span class="${i.totalClass}"></span>`}}if(i.type==="progressbar"){if(i.renderProgressbar){s=i.renderProgressbar.call(t,i.progressbarFillClass)}else{s=`<span class="${i.progressbarFillClass}"></span>`}}t.pagination.bullets=[];n.forEach((e=>{if(i.type!=="custom"){e.innerHTML=s||""}if(i.type==="bullets"){t.pagination.bullets.push(...e.querySelectorAll(Ds(i.bulletClass)))}}));if(i.type!=="custom"){r("paginationRender",n[0])}}function p(){t.params.pagination=Rs(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const i=t.params.pagination;if(!i.el)return;let e;if(typeof i.el==="string"&&t.isElement){e=t.el.shadowRoot.querySelector(i.el)}if(!e&&typeof i.el==="string"){e=[...document.querySelectorAll(i.el)]}if(!e){e=i.el}if(!e||e.length===0)return;if(t.params.uniqueNavElements&&typeof i.el==="string"&&Array.isArray(e)&&e.length>1){e=[...t.el.querySelectorAll(i.el)];if(e.length>1){e=e.filter((i=>{if(on(i,".swiper")[0]!==t.el)return false;return true}))[0]}}if(Array.isArray(e)&&e.length===1)e=e[0];Object.assign(t.pagination,{el:e});e=a(e);e.forEach((e=>{if(i.type==="bullets"&&i.clickable){e.classList.add(i.clickableClass)}e.classList.add(i.modifierClass+i.type);e.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass);if(i.type==="bullets"&&i.dynamicBullets){e.classList.add(`${i.modifierClass}${i.type}-dynamic`);o=0;if(i.dynamicMainBullets<1){i.dynamicMainBullets=1}}if(i.type==="progressbar"&&i.progressbarOpposite){e.classList.add(i.progressbarOppositeClass)}if(i.clickable){e.addEventListener("click",h)}if(!t.enabled){e.classList.add(i.lockClass)}}))}function d(){const i=t.params.pagination;if(l())return;let e=t.pagination.el;if(e){e=a(e);e.forEach((e=>{e.classList.remove(i.hiddenClass);e.classList.remove(i.modifierClass+i.type);e.classList.remove(t.isHorizontal()?i.horizontalClass:i.verticalClass);if(i.clickable){e.removeEventListener("click",h)}}))}if(t.pagination.bullets)t.pagination.bullets.forEach((t=>t.classList.remove(...i.bulletActiveClass.split(" "))))}e("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const i=t.params.pagination;let{el:e}=t.pagination;e=a(e);e.forEach((e=>{e.classList.remove(i.horizontalClass,i.verticalClass);e.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass)}))}));e("init",(()=>{if(t.params.pagination.enabled===false){g()}else{p();f();u()}}));e("activeIndexChange",(()=>{if(typeof t.snapIndex==="undefined"){u()}}));e("snapIndexChange",(()=>{u()}));e("snapGridLengthChange",(()=>{f();u()}));e("destroy",(()=>{d()}));e("enable disable",(()=>{let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}}));e("lock unlock",(()=>{u()}));e("click",((i,e)=>{const n=e.target;let{el:s}=t.pagination;if(!Array.isArray(s))s=[s].filter((t=>!!t));if(t.params.pagination.el&&t.params.pagination.hideOnClick&&s&&s.length>0&&!n.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const i=s[0].classList.contains(t.params.pagination.hiddenClass);if(i===true){r("paginationShow")}else{r("paginationHide")}s.forEach((i=>i.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList.remove(t.params.pagination.paginationDisabledClass)))}p();f();u()};const g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList.add(t.params.pagination.paginationDisabledClass)))}d()};Object.assign(t.pagination,{enable:m,disable:g,render:f,update:u,init:p,destroy:d})}function Gs({swiper:t,extendParams:i,emit:e,once:r}){i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function n(){if(t.params.cssMode)return;const i=t.getTranslate();t.setTranslate(i);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;const{touchEventsData:i,touches:e}=t;if(i.velocities.length===0){i.velocities.push({position:e[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime})}i.velocities.push({position:e[t.isHorizontal()?"currentX":"currentY"],time:Zr()})}function o({currentPos:i}){if(t.params.cssMode)return;const{params:n,wrapperEl:s,rtlTranslate:o,snapGrid:a,touchEventsData:l}=t;const c=Zr();const h=c-l.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<a.length){t.slideTo(a.length-1)}else{t.slideTo(t.slides.length-1)}return}if(n.freeMode.momentum){if(l.velocities.length>1){const i=l.velocities.pop();const e=l.velocities.pop();const r=i.position-e.position;const s=i.time-e.time;t.velocity=r/s;t.velocity/=2;if(Math.abs(t.velocity)<n.freeMode.minimumVelocity){t.velocity=0}if(s>150||Zr()-i.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=n.freeMode.momentumVelocityRatio;l.velocities.length=0;let i=1e3*n.freeMode.momentumRatio;const c=t.velocity*i;let h=t.translate+c;if(o)h=-h;let u=false;let f;const p=Math.abs(t.velocity)*20*n.freeMode.momentumBounceRatio;let d;if(h<t.maxTranslate()){if(n.freeMode.momentumBounce){if(h+t.maxTranslate()<-p){h=t.maxTranslate()-p}f=t.maxTranslate();u=true;l.allowMomentumBounce=true}else{h=t.maxTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(h>t.minTranslate()){if(n.freeMode.momentumBounce){if(h-t.minTranslate()>p){h=t.minTranslate()+p}f=t.minTranslate();u=true;l.allowMomentumBounce=true}else{h=t.minTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(n.freeMode.sticky){let i;for(let t=0;t<a.length;t+=1){if(a[t]>-h){i=t;break}}if(Math.abs(a[i]-h)<Math.abs(a[i-1]-h)||t.swipeDirection==="next"){h=a[i]}else{h=a[i-1]}h=-h}if(d){r("transitionEnd",(()=>{t.loopFix()}))}if(t.velocity!==0){if(o){i=Math.abs((-h-t.translate)/t.velocity)}else{i=Math.abs((h-t.translate)/t.velocity)}if(n.freeMode.sticky){const e=Math.abs((o?-h:h)-t.translate);const r=t.slidesSizesGrid[t.activeIndex];if(e<r){i=n.speed}else if(e<2*r){i=n.speed*1.5}else{i=n.speed*2.5}}}else if(n.freeMode.sticky){t.slideToClosest();return}if(n.freeMode.momentumBounce&&u){t.updateProgress(f);t.setTransition(i);t.setTranslate(h);t.transitionStart(true,t.swipeDirection);t.animating=true;an(s,(()=>{if(!t||t.destroyed||!l.allowMomentumBounce)return;e("momentumBounce");t.setTransition(n.speed);setTimeout((()=>{t.setTranslate(f);an(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){e("_freeModeNoMomentumRelease");t.updateProgress(h);t.setTransition(i);t.setTranslate(h);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;an(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(h)}t.updateActiveIndex();t.updateSlidesClasses()}else if(n.freeMode.sticky){t.slideToClosest();return}else if(n.freeMode){e("_freeModeNoMomentumRelease")}if(!n.freeMode.momentum||h>=n.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:n,onTouchMove:s,onTouchEnd:o}})}const $s='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:var(--border-radius, 12px);background-color:var(--color-surface-container-low);color:var(--color-on-surface);--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 a{color:var(--color-primary-app)}: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)}.poi-type-img-container{position:relative}.poi-type-img-container .poi-img,.poi-type-img-container .default-poi-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.poi-type-img-container .poi-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.poi-type-img-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.poi-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.poi-type-img-container .poi-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.poi-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.poi-name{font-size:16px;line-height:24px}.poi-description{font-size:14px;line-height:20px}.poi-description-short{font-size:14px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.handle-poi-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}';const Zs=class{constructor(t){e(this,t);this.poi=undefined;this.displayShortDescription=true;this.showPoiDescriptionButton=false;this.displayFullscreen=false}componentDidLoad(){this.swiperPoi=new Is(this.swiperPoiRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElPoiRef,nextEl:this.nextElPoiRef},pagination:{el:this.paginationElPoiRef},allowTouchMove:false,keyboard:false});this.swiperPoiRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperPoi.keyboard.enable()}else{this.swiperPoi.keyboard.disable()}};this.showPoiDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight}handlePoiDescription(){this.displayShortDescription=!this.displayShortDescription}handleFullscreen(){if(this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].url){this.swiperPoiRef.requestFullscreen()}}render(){var t;const i=a(`${""}assets/default-image.svg`);return r(n,null,r("div",{class:"poi-type-img-container"},r("img",{crossorigin:"anonymous",class:"poi-type",src:`${(t=w.poiTypes.find((t=>t.id===this.poi.type)))===null||t===void 0?void 0:t.pictogram}`}),r("div",{class:"swiper",ref:t=>this.swiperPoiRef=t},r("div",{class:"swiper-wrapper"},this.poi.attachments.length>0?this.poi.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`poi-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:i,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElPoiRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElPoiRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElPoiRef=t}))),r("div",{class:"poi-sub-container"},r("div",{class:"poi-name"},this.poi.name),r("div",{class:this.displayShortDescription?"poi-description-short":"poi-description",innerHTML:this.poi.description,ref:t=>this.descriptionRef=t}),this.showPoiDescriptionButton&&r("div",{class:"handle-poi-description",onClick:()=>this.handlePoiDescription()},this.displayShortDescription?l[w.language].readMore:l[w.language].readLess)))}};Zs.style=$s;const Hs='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host span{color:var(--color-on-primary-container);font-size:24px;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 Us=class{constructor(t){e(this,t);this.fontFamily="Roboto"}onSearchChange(t){w.searchValue=t.target.value;if(w.mode==="treks"){w.currentTreks=T()}else if(w.mode==="touristicContents"){w.currentTouristicContents=I()}else if(w.mode==="touristicEvents"){w.currentTouristicEvents=B()}}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),r("input",{onInput:t=>this.onSearchChange(t),class:"search-input",type:"search",placeholder:"Rechercher",value:w.searchValue}))}};Us.style=Hs;const Qs=".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-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%}.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 Vs=class{constructor(t){e(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}changeMode(t){w.searchValue="";if(t==="treks"&&w.currentTreks){O.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedThemesFilters=0;w.selectedLocationFilters=0;w.currentTreks=T()}else if(t==="touristicContents"&&w.currentTouristicContents){j.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicContents=I()}else if(t==="touristicEvents"&&w.currentTouristicEvents){S.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicEvents=B()}w.mode=t}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("div",{class:"segmented-buttons-container"},this.treks&&r("label",{class:`segment${w.mode==="treks"?" selected-segment":""}`,onClick:()=>this.changeMode("treks")},l[w.language].home.segment.treks),this.touristicContents&&r("label",{class:`segment${w.mode==="touristicContents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicContents")},l[w.language].home.segment.touristicContents),this.touristicEvents&&r("label",{class:`segment${w.mode==="touristicEvents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicEvents")},l[w.language].home.segment.touristicEvents)))}};Vs.style=Qs;const Ws='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host span{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';const Ks=class{constructor(t){e(this,t)}handleSelect(t){w.treks=null;w.currentTreks=null;w.currentTrek=null;w.language=t.target.value}render(){return r(n,null,r("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),r("select",{onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},w.languages.map((t=>r("option",{selected:t===w.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())))))}};Ks.style=Ws;const qs=":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.sensitive-area-title{font-size:22px;line-height:28px;padding:12px 0px;font-weight:400}.sensitive-area-description{font-size:16px;line-height:24px}.sensitive-area-period-container .sensitive-area-period-title,.sensitive-area-period-container .sensitive-area-practice-title,.sensitive-area-period-container .sensitive-area-contact-title,.sensitive-area-practice-container .sensitive-area-period-title,.sensitive-area-practice-container .sensitive-area-practice-title,.sensitive-area-practice-container .sensitive-area-contact-title,.sensitive-area-contact-container .sensitive-area-period-title,.sensitive-area-contact-container .sensitive-area-practice-title,.sensitive-area-contact-container .sensitive-area-contact-title{font-size:16px;line-height:24px;padding:12px 0px}.sensitive-area-period-container .sensitive-area-period-values,.sensitive-area-period-container .sensitive-area-practice-values,.sensitive-area-practice-container .sensitive-area-period-values,.sensitive-area-practice-container .sensitive-area-practice-values,.sensitive-area-contact-container .sensitive-area-period-values,.sensitive-area-contact-container .sensitive-area-practice-values{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";const Js=class{constructor(t){e(this,t);this.sensitiveArea=undefined}render(){return r(n,null,r("div",{class:"sensitive-area-title"},this.sensitiveArea.name),r("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&r("div",{class:"sensitive-area-practice-container"},r("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés :"),r("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map(((t,i)=>{const e=w.practices.find((i=>i.id===t));if(e){return r("div",{innerHTML:`${e.name.toUpperCase()}${i+1!==this.sensitiveArea.practices.length?" -&nbsp;":""}`})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&r("div",{class:"sensitive-area-period-container"},r("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),r("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map(((t,i)=>{if(t){return r("div",{innerHTML:`${new Date(0,i+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()}${this.sensitiveArea.period.slice(i+1).find((t=>t))?" -&nbsp;":""}`})}})))),r("div",{class:"sensitive-area-contact-container"},r("div",{class:"sensitive-area-contact-title"},"Contact"),r("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))}};Js.style=qs;const Xs='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;--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 a{color:var(--color-primary-app)}: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)}.touristic-content-type-img-container{position:relative}.touristic-content-type-img-container .touristic-content-img,.touristic-content-type-img-container .default-touristic-content-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.touristic-content-type-img-container .touristic-content-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.touristic-content-type-img-container .default-touristic-content-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.touristic-content-type-img-container .touristic-content-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.touristic-content-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.touristic-content-sub-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:12px}.touristic-content-sub-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-sub-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-sub-container .touristic-content-name{font-size:16px;line-height:24px}.touristic-content-more-detail-container{padding:0px 12px 12px 12px}.touristic-content-more-detail-container .more-details-button{cursor:pointer;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);width:100%;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;border:none;font-size:14px;font-family:var(--font-family)}.touristic-content-more-detail-container .more-details-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-content-more-detail-container .more-details-button span{font-size:18px}.touristic-content-card-container,.touristic-content-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}.touristic-content-card-container .image,.touristic-content-card-large-view-container .image{height:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.touristic-content-card-container{width:100%;max-width:350px}.touristic-content-card-container .image{width:100%;max-height:200px}.touristic-content-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.touristic-content-card-large-view-container .image{width:250px}.is-inside-vertical-list{cursor:pointer;border:none}.selected-touristic-content-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}';const to=class{constructor(t){e(this,t);this.touristicContentCardPress=o(this,"touristicContentCardPress",7);this.cardTouristicContentMouseOver=o(this,"cardTouristicContentMouseOver",7);this.cardTouristicContentMouseLeave=o(this,"cardTouristicContentMouseLeave",7);this.fontFamily="Roboto";this.touristicContent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}componentDidLoad(){if(this.swiperTouristicContentRef){this.swiperTouristicContent=new Is(this.swiperTouristicContentRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElTouristicContentRef,nextEl:this.nextElTouristicContentRef},pagination:{el:this.paginationElTouristicContentRef},allowTouchMove:false,keyboard:false});this.swiperTouristicContentRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperTouristicContent.keyboard.enable()}else{this.swiperTouristicContent.keyboard.disable()}}}}handleFullscreen(){if(this.touristicContent.attachments&&this.touristicContent.attachments[0]&&this.touristicContent.attachments[0].url){this.swiperTouristicContentRef.requestFullscreen()}}handleMouseOver(){this.cardTouristicContentMouseOver.emit(this.touristicContent.id)}handleMouseLeave(){this.cardTouristicContentMouseLeave.emit()}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicContentCategories.find((t=>t.id===this.touristicContent.category));return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},r("div",{class:this.isLargeView?`touristic-content-card-large-view-container${w.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:`touristic-content-card-container${w.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.touristicContentCardPress.emit(this.touristicContent.id)}}},r("div",{class:"touristic-content-type-img-container"},this.isInsideHorizontalList?r("div",{class:"swiper",ref:t=>this.swiperTouristicContentRef=t},r("div",{class:"swiper-wrapper"},this.touristicContent.attachments.filter((t=>t.type==="image")).length>0?this.touristicContent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`touristic-content-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-touristic-content-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElTouristicContentRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElTouristicContentRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElTouristicContentRef=t})):this.touristicContent.attachments.filter((t=>t.type==="image")).length>0?r("img",{crossorigin:"anonymous",class:"image",src:`${this.touristicContent.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}):r("div",null)),r("div",{class:"touristic-content-sub-container"},r("div",{class:"touristic-content-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-content-category-name"},i.label)),r("div",{class:"touristic-content-name"},this.touristicContent.name)),this.isInsideHorizontalList&&r("div",{class:"touristic-content-more-detail-container"},r("button",{class:"more-details-button",onClick:()=>this.touristicContentCardPress.emit(this.touristicContent.id)},"Plus de détails"))))}};to.style=Xs;const io='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.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)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';const eo=class{constructor(t){e(this,t);this.displayFullscreen=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(){if(this.swiperImagesRef){this.swiperImages=new Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}handleFullscreen(){if(w.currentTouristicContent.attachments&&w.currentTouristicContent.attachments[0]&&w.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicContentCategories&&w.currentTouristicContent&&w.touristicContentCategories.find((t=>t.id===w.currentTouristicContent.category));const e=w.currentTouristicContent&&w.currentTouristicContent.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return r(n,{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?"8px":"104px"}},w.currentTouristicContent&&r("div",{class:"touristic-content-detail-container",ref:t=>this.touristicContentDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},w.currentTouristicContent.attachments.length>0?w.currentTouristicContent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"touristic-content-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-content-category-name"},i.label)),r("div",{class:"name"},w.currentTouristicContent.name),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].download),r("div",{class:"links-container"},r("a",{href:`${w.currentTouristicContent.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),w.currentTouristicContent.description_teaser&&r("div",null,r("div",{class:"divider"}),r("div",{class:"description-teaser",innerHTML:w.currentTouristicContent.description_teaser})),r("div",{class:"divider"}),w.currentTouristicContent.practical_info&&r("div",{class:"description-container",ref:t=>this.descriptionRef=t},r("div",{class:"description-title"},l[w.language].description),r("div",{class:"description",innerHTML:w.currentTouristicContent.description})),e&&e.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].city," : "),r("div",{innerHTML:e.join(", ")})),w.currentTouristicContent.practical_info&&r("div",null,r("div",{class:"divider"}),r("div",{class:"useful-information-container"},r("div",{class:"useful-information-title"},l[w.language].usefulInformation," : "),r("div",{innerHTML:w.currentTouristicContent.practical_info}))),(w.currentTouristicContent.contact||w.currentTouristicContent.email||w.currentTouristicContent.website)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"contact-container"},r("div",{class:"contact-title"},l[w.language].contact," : "),w.currentTouristicContent.contact&&r("div",{innerHTML:w.currentTouristicContent.contact}),w.currentTouristicContent.email&&r("div",{class:"email-container"},r("div",null,l[w.language].email," : "),r("div",{innerHTML:w.currentTouristicContent.email})),w.currentTouristicContent.website&&r("div",{class:"website-container"},r("div",null,l[w.language].website," : "),r("div",{innerHTML:w.currentTouristicContent.website})))),r("div",{class:"detail-bottom-space"})))}};eo.style=io;const ro=class{constructor(t){e(this,t);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(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContent()}handleTouristicContent(){const t=[];t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${w.api}touristiccontent/${this.touristicContentId}/?language=${w.language}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.touristicContentCategories=i.results}w.currentTouristicContent=e})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const no='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-content-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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}.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 so=class{constructor(t){e(this,t);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;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTouristicContents){this.touristicContentsToDisplay=[...w.currentTouristicContents.slice(0,this.step)]}b("currentTouristicContents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTouristicContents){this.touristicContentsToDisplay=[...w.currentTouristicContents.slice(0,this.step)]}}));b("touristicContentsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.touristicContentsWithinBounds){this.touristicContentsToDisplay=[...w.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<w.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=w.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=w.touristicContentsWithinBounds.length?w.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(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.touristicContentsWithinBounds&&r("div",{class:"current-touristic-contents-within-bounds-length"},`${w.touristicContentsWithinBounds.length} ${w.touristicContentsWithinBounds.length>1?l[w.language].home.touristicContents:l[w.language].home.touristicContent}`),r("div",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((t=>r("grw-touristic-content-card",{fontFamily:this.fontFamily,"reset-store-on-disconnected":"false",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})))),!this.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};so.style=no;const oo=class{constructor(t){e(this,t);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(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContents()}handleTouristicContents(){let t=`${w.api}touristiccontent/?language=${w.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 i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.districts?fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.districts=i.results}if(e){w.touristicContentCategories=e.results}w.touristicContents=r.results;w.currentTouristicContents=r.results})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const ao='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;--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 a{color:var(--color-primary-app)}: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)}.touristic-event-type-img-container{position:relative}.touristic-event-type-img-container .touristic-event-img,.touristic-event-type-img-container .default-touristic-event-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.touristic-event-type-img-container .touristic-event-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.touristic-event-type-img-container .default-touristic-event-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.touristic-event-type-img-container .touristic-event-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.touristic-event-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.touristic-event-sub-container .touristic-event-type-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:12px}.touristic-event-sub-container .touristic-event-type-container .touristic-event-type-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-sub-container .touristic-event-type-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-sub-container .touristic-event-name{font-size:16px;line-height:24px}.touristic-event-more-detail-container{padding:0px 12px 12px 12px}.touristic-event-more-detail-container .more-details-button{cursor:pointer;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);width:100%;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;border:none;font-size:14px;font-family:var(--font-family)}.touristic-event-more-detail-container .more-details-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-event-more-detail-container .more-details-button span{font-size:18px}.touristic-event-card-container,.touristic-event-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}.touristic-event-card-container .image,.touristic-event-card-large-view-container .image{height:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.touristic-event-container{width:100%;max-width:350px}.touristic-event-container .image{width:100%;max-height:200px}.touristic-event-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.touristic-event-card-large-view-container .image{width:250px}.is-inside-vertical-list{cursor:pointer;border:none}.selected-touristic-event-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-event-date-container{margin-top:12px}';const lo=class{constructor(t){e(this,t);this.touristicEventCardPress=o(this,"touristicEventCardPress",7);this.cardTouristicEventMouseOver=o(this,"cardTouristicEventMouseOver",7);this.cardTouristicEventMouseLeave=o(this,"cardTouristicEventMouseLeave",7);this.fontFamily="Roboto";this.touristicEvent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}componentDidLoad(){if(this.swiperTouristicEventRef){this.swiperTouristicEvent=new Is(this.swiperTouristicEventRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElTouristicEventRef,nextEl:this.nextElTouristicEventRef},pagination:{el:this.paginationElTouristicEventRef},allowTouchMove:false,keyboard:false});this.swiperTouristicEventRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperTouristicEvent.keyboard.enable()}else{this.swiperTouristicEvent.keyboard.disable()}}}}handleFullscreen(){if(this.touristicEvent.attachments&&this.touristicEvent.attachments[0]&&this.touristicEvent.attachments[0].url){this.swiperTouristicEventRef.requestFullscreen()}}handleMouseOver(){this.cardTouristicEventMouseOver.emit(this.touristicEvent.id)}handleMouseLeave(){this.cardTouristicEventMouseLeave.emit()}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicEventTypes.find((t=>t.id===this.touristicEvent.type));return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},r("div",{class:this.isLargeView?`touristic-event-card-large-view-container${w.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:`touristic-event-card-container${w.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.touristicEventCardPress.emit(this.touristicEvent.id)}}},r("div",{class:"touristic-event-type-img-container"},this.isInsideHorizontalList?r("div",{class:"swiper",ref:t=>this.swiperTouristicEventRef=t},r("div",{class:"swiper-wrapper"},this.touristicEvent.attachments.length>0?this.touristicEvent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`touristic-event-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-touristic-event-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElTouristicEventRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElTouristicEventRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElTouristicEventRef=t})):this.touristicEvent.attachments.filter((t=>t.type==="image")).length>0?r("img",{crossorigin:"anonymous",class:"image",src:`${this.touristicEvent.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}):r("div",null)),r("div",{class:"touristic-event-sub-container"},r("div",{class:"touristic-event-type-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-event-type-name"},i.type)),r("div",{class:"touristic-event-name"},this.touristicEvent.name),(this.touristicEvent.begin_date||this.touristicEvent.end_date)&&r("div",{class:"touristic-event-date-container"},this.touristicEvent.begin_date&&r("div",{class:"touristic-event-date"},"Date de début : ",this.touristicEvent.begin_date),this.touristicEvent.end_date&&r("div",{class:"touristic-event-date"},"Date de fin : ",this.touristicEvent.end_date))),this.isInsideHorizontalList&&r("div",{class:"touristic-event-more-detail-container"},r("button",{class:"more-details-button",onClick:()=>this.touristicEventCardPress.emit(this.touristicEvent.id)},"Plus de détails"))))}};lo.style=ao;const co='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';const ho=class{constructor(t){e(this,t);this.displayFullscreen=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 Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}handleFullscreen(){if(w.currentTouristicEvent.attachments&&w.currentTouristicEvent.attachments[0]&&w.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicEventTypes&&w.currentTouristicEvent&&w.touristicEventTypes.find((t=>t.id===w.currentTouristicEvent.type));const e=w.currentTouristicEvent&&w.currentTouristicEvent.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return r(n,{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?"8px":"104px"}},w.currentTouristicEvent&&r("div",{class:"touristic-event-detail-container",ref:t=>this.touristicEventDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},w.currentTouristicEvent.attachments.length>0?w.currentTouristicEvent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"touristic-event-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-event-category-name"},i.type)),r("div",{class:"name"},w.currentTouristicEvent.name),(w.currentTouristicEvent.begin_date||w.currentTouristicEvent.end_date)&&r("div",{class:"touristic-event-date-container"},w.currentTouristicEvent.begin_date&&r("div",{class:"touristic-event-date"},"Date de début : ",w.currentTouristicEvent.begin_date),w.currentTouristicEvent.end_date&&r("div",{class:"touristic-event-date"},"Date de fin : ",w.currentTouristicEvent.end_date)),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].download),r("div",{class:"links-container"},r("a",{href:`${w.currentTouristicEvent.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),w.currentTouristicEvent.description_teaser&&r("div",null,r("div",{class:"divider"}),r("div",{class:"description-teaser",innerHTML:w.currentTouristicEvent.description_teaser})),r("div",{class:"divider"}),w.currentTouristicEvent.practical_info&&r("div",{class:"description-container",ref:t=>this.descriptionRef=t},r("div",{class:"description-title"},l[w.language].description),r("div",{class:"description",innerHTML:w.currentTouristicEvent.description})),e&&e.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].city," : "),r("div",{innerHTML:e.join(", ")})),w.currentTouristicEvent.practical_info&&r("div",null,r("div",{class:"divider"}),r("div",{class:"useful-information-container"},r("div",{class:"useful-information-title"},l[w.language].usefulInformation," : "),r("div",{innerHTML:w.currentTouristicEvent.practical_info}))),(w.currentTouristicEvent.contact||w.currentTouristicEvent.email||w.currentTouristicEvent.website)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"contact-container"},r("div",{class:"contact-title"},l[w.language].contact," : "),w.currentTouristicEvent.contact&&r("div",{innerHTML:w.currentTouristicEvent.contact}),w.currentTouristicEvent.email&&r("div",{class:"email-container"},r("div",null,l[w.language].email," : "),r("div",{innerHTML:w.currentTouristicEvent.email})),w.currentTouristicEvent.website&&r("div",{class:"website-container"},r("div",null,l[w.language].website," : "),r("div",{innerHTML:w.currentTouristicEvent.website})))),r("div",{class:"detail-bottom-space"})))}};ho.style=co;const uo=class{constructor(t){e(this,t);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(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvent()}handleTouristicEvent(){const t=[];t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${w.api}touristicevent/${this.touristicEventId}/?language=${w.language}&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.touristicEventTypes=i.results}w.currentTouristicEvent=e})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const fo='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-event-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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}.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 po=class{constructor(t){e(this,t);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;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTouristicEvents){this.touristicEventsToDisplay=[...w.currentTouristicEvents.slice(0,this.step)]}b("currentTouristicEvents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTouristicContents){this.touristicEventsToDisplay=[...w.currentTouristicEvents.slice(0,this.step)]}}));b("touristicEventsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.touristicEventsWithinBounds){this.touristicEventsToDisplay=[...w.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<w.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=w.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=w.touristicEventsWithinBounds.length?w.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(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.touristicEventsWithinBounds&&r("div",{class:"current-touristic-events-within-bounds-length"},`${w.touristicEventsWithinBounds.length} ${w.touristicEventsWithinBounds.length>1?l[w.language].home.touristicEvents:l[w.language].home.touristicEvent}`),r("div",{class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((t=>r("grw-touristic-event-card",{"reset-store-on-disconnected":"false",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})))),!this.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};po.style=fo;const mo=class{constructor(t){e(this,t);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(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvents()}handleTouristicEvents(){let t=`${w.api}touristicevent/?language=${w.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 i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.districts?fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.districts=i.results}if(e){w.touristicEventTypes=e.results}w.touristicEvents=r.results;w.currentTouristicEvents=r.results})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const go='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.trek-card-container .sub-container,.trek-card-large-view-container .sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .sub-container .themes-container,.trek-card-large-view-container .sub-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}.trek-card-container .sub-container .themes-container .theme,.trek-card-large-view-container .sub-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);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-wrap:nowrap}.trek-card-container .sub-container .icons-labels-container,.trek-card-large-view-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;color:var(--color-on-surface);font-size:14px;line-height:20px;font-weight:500}.trek-card-container .sub-container .icons-labels-container .row,.trek-card-large-view-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-card-container .sub-container .icons-labels-container .row:not(:last-child),.trek-card-large-view-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:12px}.trek-card-container .sub-container .icons-labels-container .row .icon-label,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:50%}.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2),.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 4px}.trek-card-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-container .sub-container .icons-labels-container .row .icon-label span,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:24px;margin-right:8px}.trek-card-container .sub-container .icons-labels-container .row .practice img,.trek-card-large-view-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.selected-trek-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-card-container{width:100%;max-width:350px}.trek-card-container .image{width:100%;max-height:200px}.trek-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}.trek-step-card{width:auto}';const vo=class{constructor(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.cardTrekMouseOver=o(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=o(this,"cardTrekMouseLeave",7);this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.departureCity=undefined;this.trek=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true;this.isStep=undefined}connectedCallback(){this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.difficulty=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.departureCity=w.cities.find((t=>t.id===this.currentTrek.departure_city))}b("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.difficulty=this.currentTrek.difficulty&&w.difficulties?w.difficulties.find((t=>t.id===this.currentTrek.difficulty)):null;this.route=this.currentTrek.route&&w.routes?w.routes.find((t=>t.id===this.currentTrek.route)):null;this.practice=this.currentTrek.practice&&w.practices?w.practices.find((t=>t.id===this.currentTrek.practice)):null;this.themes=this.currentTrek.themes&&w.themes?w.themes.filter((t=>this.currentTrek.themes.includes(t.id))):null;this.departureCity=this.currentTrek.departure_city&&w.cities?w.cities.find((t=>t.id===this.currentTrek.departure_city)):null}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}handleMouseOver(){this.cardTrekMouseOver.emit(this.currentTrek.id)}handleMouseLeave(){this.cardTrekMouseLeave.emit()}render(){var t,i,e,s,o,a,l;return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto","--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}},this.currentTrek&&r("div",{class:this.isStep?`trek-card-container trek-step-card${w.selectedStepId===this.currentTrek.id?" selected-trek-card":""}`:this.isLargeView?`trek-card-large-view-container${w.selectedTrekId===this.currentTrek.id?" selected-trek-card":""}`:`trek-card-container${w.selectedTrekId===this.currentTrek.id?" selected-trek-card":""}`,onClick:()=>this.trekCardPress.emit(this.currentTrek.id)},this.currentTrek.attachments.filter((t=>t.type==="image")).length>0&&r("img",{crossorigin:"anonymous",class:"image",src:`${this.currentTrek.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}),r("div",{class:"sub-container"},this.departureCity&&r("div",{class:"departure"},this.departureCity.name),r("div",{class:"name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&r("div",{class:"themes-container"},this.themes.map((t=>r("div",{class:"theme"},t.label)))),r("div",{class:"icons-labels-container"},r("div",{class:"row"},r("div",{class:"icon-label difficulty"},((i=this.difficulty)===null||i===void 0?void 0:i.pictogram)&&r("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(e=this.difficulty)===null||e===void 0?void 0:e.label),r("div",{class:"icon-label duration"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),C(this.currentTrek.duration))),r("div",{class:"row"},r("div",{class:"icon-label length"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),E(this.currentTrek.length_2d)),r("div",{class:"icon-label ascent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),P(this.currentTrek.ascent))),!this.isStep&&r("div",{class:"row"},r("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&r("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route),r("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&r("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(l=this.practice)===null||l===void 0?void 0:l.name))))))}};vo.style=go;const wo='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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{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)}.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 .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 .name{color:var(--color-on-surface);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.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}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.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 .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, 8px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);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 .gear-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{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 .gear-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{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 .gear-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{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 .gear-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{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .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{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}.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:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px)}.current-advice-container span{font-size:24px;width:26px;margin-right:8px}.label-container{margin-top:12px;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 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}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.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 .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container #weather-widget{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px}.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)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}';const bo=1;const yo={visible:true,indicator:false,ref:"presentationOptionRef"};const xo={visible:false,indicator:false,ref:"stepsOptionRef"};const ko={visible:false,indicator:false,ref:"descriptionOptionRef"};const Ao={visible:false,indicator:false,ref:"recommendationsOptionRef"};const _o={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};const Mo={visible:false,indicator:false,ref:"informationPlacesOptionRef"};const zo={visible:false,indicator:false,ref:"poisOptionRef"};const Lo={visible:false,indicator:false,ref:"touristicContentsOptionRef"};const Co={visible:false,indicator:false,ref:"touristicEventsOptionRef"};const Eo={presentation:yo,steps:xo,description:ko,recommendations:Ao,sensitiveArea:_o,informationPlaces:Mo,pois:zo,touristicContents:Lo,touristicEvents:Co};const Po=class{constructor(t){e(this,t);this.descriptionIsInViewport=o(this,"descriptionIsInViewport",7);this.parkingIsInViewport=o(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=o(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=o(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=o(this,"poiIsInViewport",7);this.stepsIsInViewport=o(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=o(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=o(this,"touristicEventsIsInViewport",7);this.parentTrekPress=o(this,"parentTrekPress",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.trek=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.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}componentDidLoad(){this.swiperImages=new Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.swiperStep=new Is(this.swiperStepRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new Is(this.swiperPoisRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new Is(this.swiperInformationDesksRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new Is(this.swiperTouristicContentsRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new Is(this.swiperTouristicEventsRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.presentationRef)}if(this.stepsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.stepsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{steps:Object.assign(Object.assign({},this.defaultOptions.steps),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.stepsRef)}if(this.descriptionRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.descriptionIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.descriptionRef)}if(this.recommendationRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.recommendationRef)}if(this.parkingRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.parkingIsInViewport.emit(i)}),{threshold:bo});t.observe(this.parkingRef)}if(this.sensitiveAreaRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.sensitiveAreaIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.informationPlacesIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.informationPlacesRef)}if(this.poiRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.poiIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.poiRef)}if(this.touristicContentsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{touristicContents:Object.assign(Object.assign({},this.defaultOptions.touristicContents),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.touristicContentsRef)}if(this.touristicEventsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{touristicEvents:Object.assign(Object.assign({},this.defaultOptions.touristicEvents),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.touristicContentsRef)}}connectedCallback(){this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=w.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=w.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=w.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(w.accessibilitiesLevel){this.accessibilityLevel=w.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}b("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=w.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=w.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=w.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(w.accessibilitiesLevel){this.accessibilityLevel=w.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}handleOptions(){return Object.assign(Object.assign({},Eo),{presentation:Object.assign({},yo),steps:Object.assign(Object.assign({},xo),{visible:Boolean(w.parentTrek)}),description:Object.assign(Object.assign({},ko),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},Ao),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},_o),{visible:Boolean(w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Mo),{visible:Boolean(w.currentInformationDesks&&w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0)}),pois:Object.assign(Object.assign({},zo),{visible:Boolean(w.currentPois&&w.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},Lo),{visible:Boolean(w.trekTouristicContents&&w.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Co),{visible:Boolean(w.touristicEvents&&w.touristicEvents.length>0)})})}handleFullscreen(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}handleIndicatorSelectedTrekOption(){let t;let i=0;let e=0;let r=0;const n=Object.values(this.options);let s=0;while(!t&&s<n.length){if(n[s].indicator){t=n[s]}else{if(n[s].visible){i+=1;e+=this[n[s].ref].clientWidth}}s++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:`${e+16*i-r/2}px`,width:`${r*2}px`,backgroundSize:`${r}px 100%`,ref:t.ref}}}handleScrollTo(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}render(){var t,i,e,s,o,a,c;return r(n,{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?"8px":"104px"}},this.currentTrek&&r("div",{class:"trek-options"},r("a",{ref:t=>this.presentationOptionRef=t,onClick:()=>this.handleScrollTo(this.presentationRef),class:`presentation trek-option${this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""}`},l[w.language].options.presentation),this.options.steps.visible&&r("a",{ref:t=>this.stepsOptionRef=t,onClick:()=>this.handleScrollTo(this.stepsRef),class:`steps trek-option${this.options.steps.indicator?" selected-trek-option":""}`},l[w.language].options.steps),this.options.description.visible&&r("a",{ref:t=>this.descriptionOptionRef=t,onClick:()=>this.handleScrollTo(this.descriptionRef),class:`description trek-option${this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""}`},l[w.language].options.description),this.options.recommendations.visible&&r("a",{ref:t=>this.recommendationsOptionRef=t,onClick:()=>this.handleScrollTo(this.recommendationRef),class:`recommendations trek-option${this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""}`},l[w.language].options.recommendations),this.options.sensitiveArea.visible&&r("a",{ref:t=>this.sensitiveAreaOptionRef=t,onClick:()=>this.handleScrollTo(this.sensitiveAreaRef),class:`sensitive-areas trek-option${this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""}`},l[w.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&r("a",{ref:t=>this.informationPlacesOptionRef=t,onClick:()=>this.handleScrollTo(this.informationPlacesRef),class:`information-places trek-option${this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""}`},l[w.language].options.informationPlaces),this.options.pois.visible&&r("a",{ref:t=>this.poisOptionRef=t,onClick:()=>this.handleScrollTo(this.poiRef),class:`pois trek-option${this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""}`},l[w.language].options.pois),this.options.touristicContents.visible&&r("a",{ref:t=>this.touristicContentsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicContentsRef),class:`touristic-content trek-option${this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""}`},l[w.language].options.touristicContents),this.options.touristicEvents.visible&&r("a",{ref:t=>this.touristicEventsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicEventsRef),class:`touristic-event trek-option${this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""}`},l[w.language].options.touristicEvents),this.presentationOptionRef&&r("span",{class:"indicator-selected-trek-option",style:{transform:`translateX(${this.indicatorSelectedTrekOption.translateX})`,width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&r("div",{class:"trek-detail-container",ref:t=>this.trekDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()}))))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&r("div",{class:"themes-container"},this.themes.map((t=>r("div",{class:"theme"},t.label)))),r("div",{class:"sub-container"},r("div",{class:"icons-labels-container"},r("div",{class:"row"},r("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&r("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),r("div",{class:"icon-label duration"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),C((e=this.currentTrek)===null||e===void 0?void 0:e.duration)),r("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&r("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route)),r("div",{class:"row"},r("div",{class:"icon-label length"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),E(this.currentTrek.length_2d)),r("div",{class:"icon-label ascent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),P(this.currentTrek.ascent)),r("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&r("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(c=this.practice)===null||c===void 0?void 0:c.name)),this.currentTrek.ratings.map((t=>r("div",{class:"row"},`${w.ratingsScale.find((i=>i.id===w.ratings.find((i=>i.id===t)).scale)).name} : ${w.ratings.find((i=>i.id===t)).name}`))),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&r("div",{class:"row"},this.currentTrek.ratings_description))),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].downloads),r("div",{class:"links-container"},r("a",{href:`${this.currentTrek.gpx}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),r("a",{href:`${this.currentTrek.kml}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),r("a",{href:`${this.currentTrek.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),r("div",{class:"divider"}),this.currentTrek.description_teaser&&r("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&r("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),w.parentTrekId&&w.parentTrek&&this.currentTrek.id!==w.parentTrekId&&r("div",null,r("div",{class:"divider"}),r("div",{class:"parent-trek-container"},r("button",{class:"parent-trek-title",onClick:()=>this.parentTrekPress.emit(w.parentTrekId)},r("div",null,"<"),w.parentTrek.name))),w.currentTrekSteps&&r("div",{class:"step-container"},r("div",{class:"step-title",ref:t=>this.stepsRef=t},`${w.currentTrekSteps.length} ${l[w.language].steps}`),r("div",{class:"swiper swiper-step",ref:t=>this.swiperStepRef=t},r("div",{class:"swiper-wrapper"},w.currentTrekSteps&&w.currentTrekSteps.map((t=>r("div",{class:"swiper-slide"},r("grw-trek-card",{"reset-store-on-disconnected":"false",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}))))))),r("div",{class:"divider"}),this.currentTrek.description&&r("div",{class:"description-container"},r("div",{class:"description-title",ref:t=>this.descriptionRef=t},l[w.language].description),r("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&r("div",{class:"departure-container"},r("div",{class:"departure-title"},l[w.language].departure," : "),r("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&r("div",{class:"arrival-container"},r("div",{class:"arrival-title"},l[w.language].arrival," : "),r("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].crossedCities," : "),r("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&r("div",{class:"weather-container"},r("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}`})),this.currentTrek.access&&r("div",null,r("div",{class:"divider"}),r("div",{class:"access-container"},r("div",{class:"access-title"},l[w.language].roadAccess),r("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&r("div",null,r("div",{class:"divider"}),r("div",{class:"public-transport-container"},r("div",{class:"public-transport-title"},l[w.language].transport),r("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"advice-container"},r("div",{class:"advice-title",ref:t=>this.recommendationRef=t},l[w.language].recommendations),this.currentTrek.advice&&r("div",{class:"current-advice-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),r("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((t=>r("div",{class:"label-container"},r("div",{class:"label-sub-container"},t.pictogram&&r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",{class:"label-name",innerHTML:t.name})),r("div",{class:"label-advice",innerHTML:t.advice})))))),this.currentTrek.advised_parking&&r("div",null,r("div",{class:"divider"}),r("div",{class:"advised-parking-container"},r("div",{class:"advised-parking-title",ref:t=>this.parkingRef=t},l[w.language].recommendedParking),r("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&r("div",null,r("div",{class:"divider"}),r("div",{class:"gear-container"},r("div",{class:"gear-title"},l[w.language].equipments),r("div",{class:"gear",innerHTML:this.currentTrek.gear}))),w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"sensitive-areas-container"},r("div",{class:"sensitive-areas-title",ref:t=>this.sensitiveAreaRef=t},l[w.language].environmentalSensitiveAreas),w.currentSensitiveAreas.map((t=>r("grw-sensitive-area-detail",{sensitiveArea:t}))))),w.currentInformationDesks&&w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"information-desks-container"},r("div",{class:"information-desks-title",ref:t=>this.informationPlacesRef=t},l[w.language].informationPlaces),r("div",{class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},r("div",{class:"swiper-wrapper"},w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).map((t=>r("div",{class:"swiper-slide"},r("grw-information-desk",{informationDesk:t})))))))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"accessibilities-container"},r("div",{class:"accessibilities-title"},l[w.language].accessibility),this.currentTrek.disabled_infrastructure&&r("div",{innerHTML:this.currentTrek.disabled_infrastructure}),r("div",{class:"accessibilities-content-container"},this.accessibilities.map((t=>r("div",{class:"accessibility-content-container"},r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",{innerHTML:t.name}))))),this.currentTrek.accessibility_level&&r("div",{class:"accessibility-level-container"},r("div",{class:"accessibility-level-title"},l[w.language].accessibilityLevel),r("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&r("div",{class:"accessibility-slope-container"},r("div",{class:"accessibility-slope-title"},l[w.language].accessibilitySlope),r("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&r("div",{class:"accessibility-width-container"},r("div",{class:"accessibility-width-title"},l[w.language].accessibilityWidth),r("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&r("div",{class:"accessibility-signage-container"},r("div",{class:"accessibility-signage-title"},l[w.language].accessibilitySignage),r("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&r("div",{class:"accessibility-covering-container"},r("div",{class:"accessibility-covering-title"},l[w.language].accessibilityCovering),r("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&r("div",{class:"accessibility-exposure-container"},r("div",{class:"accessibility-exposure-title"},l[w.language].accessibilityExposure),r("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&r("div",{class:"accessibility-advice-container"},r("div",{class:"accessibility-advice-title"},l[w.language].accessibilityAdvices),r("div",{innerHTML:this.currentTrek.accessibility_advice})))),w.currentPois&&w.currentPois.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"pois-container"},r("div",{class:"pois-title",ref:t=>this.poiRef=t},l[w.language].pois(w.currentPois.length)),r("div",{class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},r("div",{class:"swiper-wrapper"},w.currentPois.map((t=>r("div",{class:"swiper-slide"},r("grw-poi",{poi:t})))))))),w.trekTouristicContents&&w.trekTouristicContents.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"touristic-content-container"},r("div",{class:"touristic-content-title",ref:t=>this.touristicContentsRef=t},l[w.language].touristicContents(w.trekTouristicContents.length)),r("div",{class:"swiper swiper-touristic-content",ref:t=>this.swiperTouristicContentsRef=t},r("div",{class:"swiper-wrapper"},w.trekTouristicContents.map((t=>r("div",{class:"swiper-slide"},r("grw-touristic-content-card",{fontFamily:this.fontFamily,touristicContent:t,isInsideHorizontalList:true})))))))),w.touristicEvents&&w.touristicEvents.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"touristic-event-container"},r("div",{class:"touristic-event-title",ref:t=>this.touristicEventsRef=t},l[w.language].touristicEvents(w.touristicEvents.length)),r("div",{class:"swiper swiper-touristic-event",ref:t=>this.swiperTouristicEventsRef=t},r("div",{class:"swiper-wrapper"},w.touristicEvents.map((t=>r("div",{class:"swiper-slide"},r("grw-touristic-event-card",{fontFamily:this.fontFamily,touristicEvent:t})))))))),this.currentTrek.source&&this.currentTrek.source.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"source-container"},r("div",{class:"source-title"},l[w.language].sources),this.sources.map((t=>r("div",{class:"source-sub-container"},t.pictogram&&r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",null,r("div",{class:"source-name",innerHTML:t.name}),r("a",{class:"source-advice",href:t.website,innerHTML:t.website}))))))),r("div",{class:"detail-bottom-space"})))}};Po.style=wo;const Oo=class{constructor(t){e(this,t);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}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTrek()}handleTrek(){const t=[];t.push(!w.difficulties?fetch(`${w.api}trek_difficulty/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!w.routes?fetch(`${w.api}trek_route/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!w.practices?fetch(`${w.api}trek_practice/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!w.themes?fetch(`${w.api}theme/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.accessibilities?fetch(`${w.api}trek_accessibility/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!w.ratings?fetch(`${w.api}trek_rating/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));t.push(!w.ratings?fetch(`${w.api}trek_ratingscale/?language=${w.language}&fields=id,name`,this.init):new Response("null"));Promise.all([...t,fetch(`${this.api}sensitivearea/?language=${w.language}&published=true&trek=${this.trekId}&fields=id,geometry,name,description,contact,info_url,period,practices`,this.init).then((t=>{if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((()=>new Response("null"))),fetch(`${w.api}label/?language=${w.language}&fields=id,name,advice,pictogram`,this.init),fetch(`${w.api}source/?language=${w.language}&fields=id,name,website,pictogram`,this.init),fetch(`${w.api}trek_accessibility_level/?language=${w.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),fetch(`${w.api}poi/?language=${w.language}&trek=${this.trekId}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`,this.init),fetch(`${w.api}poi_type/?language=${w.language}&fields=id,pictogram`,this.init),fetch(`${w.api}informationdesk/?language=${w.language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999`,this.init),fetch(`${w.api}touristiccontent/?language=${w.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,category,geometry&page_size=999`,this.init),fetch(`${w.api}touristiccontent_category/?language=${w.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),fetch(`${w.api}touristicevent/?language=${w.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,type,geometry&page_size=999`,this.init),fetch(`${w.api}touristicevent_type/?language=${w.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init),fetch(`${w.api}trek/${this.trekId}/?language=${w.language}&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,ratings,ratings_description,information_desks,children`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,i,e,r,n,s,o,a,l,c,h,u,f,p,d,m,g,v,b,y])=>{w.trekNetworkError=false;if(y.children.length>0||w.parentTrekId){const t=[];if(y.children.length>0){w.parentTrekId=y.id;w.parentTrek=y;t.push(...y.children)}else{const i=await fetch(`${w.api}trek/${w.parentTrekId}/?language=${w.language}&published=true&fields=name,children`).then((t=>t.json()));w.parentTrek=i;t.push(...i.children)}const i=[];t.forEach((t=>{i.push(fetch(`${w.api}trek/${t}/?language=${w.language}&published=true&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts`))}));w.currentTrekSteps=await Promise.all([...i]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){w.difficulties=t.results}if(i){w.routes=i.results}if(e){w.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(r){w.themes=r.results}if(n){w.cities=n.results}if(s){w.accessibilities=s.results}if(o){w.ratings=o.results}if(a){w.ratingsScale=a.results}if(l){w.currentSensitiveAreas=l.results}w.labels=c.results;w.sources=h.results;if(u){w.accessibilitiesLevel=u.results}if(m){w.trekTouristicContents=m.results}if(g){w.touristicContentCategories=g.results}if(v){w.touristicEvents=v.results}if(b){w.touristicEventTypes=b.results}w.currentPois=f.results;w.poiTypes=p.results;w.currentInformationDesks=d.results;w.currentTrek=y})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const jo='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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 So=class{constructor(t){e(this,t);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.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTreks){this.treksToDisplay=[...w.currentTreks.slice(0,this.step)]}b("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTreks){this.treksToDisplay=[...w.currentTreks.slice(0,this.step)]}}));b("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.treksWithinBounds){this.treksToDisplay=[...w.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<w.treksWithinBounds.length){this.treksToDisplay=w.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=w.treksWithinBounds.length?w.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(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.treksWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.treksWithinBounds.length} ${w.treksWithinBounds.length>1?l[w.language].treks:l[w.language].trek}`),r("div",{class:"treks-list-container"},this.treksToDisplay.map((t=>r("grw-trek-card",{"reset-store-on-disconnected":"false",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})))),!this.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};So.style=jo;const To=class{constructor(t){e(this,t);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}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTreks()}disconnectedCallback(){this.controller.abort();w.treksNetworkError=false}handleTreks(){let t=`${this.api}trek/?language=${w.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}`);this.routes&&(t+=`&routes=${this.routes}`);this.practices&&(t+=`&practices=${this.practices}`);t+=`&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts&page_size=999`;Promise.all([fetch(`${w.api}trek_difficulty/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${w.api}trek_route/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init),fetch(`${w.api}trek_practice/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init),fetch(`${w.api}theme/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(`${w.api}trek_accessibility/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram&published=true&page_size=999`,this.init),fetch(`${w.api}label/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,advice,pictogram&published=true&page_size=999`,this.init),fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r,n,s,o,a,l])=>{w.treksNetworkError=false;w.difficulties=t.results;w.routes=i.results;w.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));w.themes=r.results;w.cities=n.results;w.accessibilities=s.results;w.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];w.lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];w.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];w.labels=o.results;w.districts=a.results;w.treks=l.results;w.currentTreks=l.results})).catch((()=>w.treksNetworkError=true))}render(){return r(n,null)}};export{k as grw_app,_ as grw_common_button,z as grw_extended_fab,R as grw_filter,D as grw_filters,G as grw_information_desk,Z as grw_loader,Ir as grw_map,Zs as grw_poi,Us as grw_search,Vs as grw_segmented_segment,Ks as grw_select_language,Js as grw_sensitive_area_detail,to as grw_touristic_content_card,eo as grw_touristic_content_detail,ro as grw_touristic_content_provider,so as grw_touristic_contents_list,oo as grw_touristic_contents_provider,lo as grw_touristic_event_card,ho as grw_touristic_event_detail,uo as grw_touristic_event_provider,po as grw_touristic_events_list,mo as grw_touristic_events_provider,vo as grw_trek_card,Po as grw_trek_detail,Oo as grw_trek_provider,So as grw_treks_list,To as grw_treks_provider};
15
+ //# sourceMappingURL=p-37932796.entry.js.map