@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.
- package/dist/cjs/grw-app_28.cjs.entry.js +1 -1
- package/dist/cjs/grw-app_28.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app_28.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app_28.cjs.entry.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/esm/grw-app_28.entry.js +1 -1
- package/dist/esm/grw-app_28.entry.js.br +0 -0
- package/dist/esm/grw-app_28.entry.js.gz +0 -0
- package/dist/esm/grw-app_28.entry.js.map +1 -1
- package/dist/esm-es5/grw-app_28.entry.js +1 -1
- package/dist/esm-es5/grw-app_28.entry.js.br +0 -0
- package/dist/esm-es5/grw-app_28.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app_28.entry.js.map +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-daef0593.entry.js → p-37932796.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-37932796.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-daef0593.entry.js.gz → p-37932796.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-daef0593.entry.js.map → p-37932796.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-f50bd078.system.entry.js → p-46c11f88.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-f50bd078.system.entry.js.gz → p-46c11f88.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-f50bd078.system.entry.js.map → p-46c11f88.system.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-cea4d6a2.system.js +1 -1
- package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.gz +0 -0
- package/package.json +1 -1
- package/dist/geotrek-rando-widget/p-daef0593.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f50bd078.system.entry.js.br +0 -0
|
@@ -11,5 +11,5 @@ var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setP
|
|
|
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(t,i){{if(typeof i!=="undefined"&&i.L){e.exports=t(L)}else{e.exports=t(leafletSrc)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=t(L)}})((function(e){var t=function(t,i,r){r=r.split(" ");r.forEach((function(r){e.DomUtil[t].call(this,i,r)}))};var i=function(e,i){return t("addClass",e,i)};var r=function(e,i){return t("removeClass",e,i)};var n=e.Marker.extend({initialize:function(t,i){e.Util.setOptions(this,i);this._latlng=t;this.createIcon()},createIcon:function(){var t=this.options;var i="";if(t.color!==undefined){i+="stroke:".concat(t.color,";")}if(t.weight!==undefined){i+="stroke-width:".concat(t.weight,";")}if(t.fillColor!==undefined){i+="fill:".concat(t.fillColor,";")}if(t.fillOpacity!==undefined){i+="fill-opacity:".concat(t.fillOpacity,";")}if(t.opacity!==undefined){i+="opacity:".concat(t.opacity,";")}var r=this._getIconSVG(t,i);this._locationIcon=e.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(e,t){var i=e.radius;var r=e.weight;var n=i+r;var o=n*2;var s='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(o,'" height="').concat(o,'" version="1.1" viewBox="-').concat(n," -").concat(n," ").concat(o," ").concat(o,'">')+'<circle r="'+i+'" style="'+t+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:s,w:o,h:o}},setStyle:function(t){e.Util.setOptions(this,t);this.createIcon()}});var o=n.extend({initialize:function(t,i,r){e.Util.setOptions(this,r);this._latlng=t;this._heading=i;this.createIcon()},setHeading:function(e){this._heading=e},_getIconSVG:function(e,t){var i=e.radius;var r=e.width+e.weight;var n=(i+e.depth+e.weight)*2;var o="M0,0 l".concat(e.width/2,",").concat(e.depth," l-").concat(r,",0 z");var s="transform: rotate(".concat(this._heading,"deg)");var a='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r,'" height="').concat(n,'" version="1.1" viewBox="-').concat(r/2," 0 ").concat(r," ").concat(n,'" style="').concat(s,'">')+'<path d="'+o+'" style="'+t+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});var s=e.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds:function(e){return e.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:o,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback:function(t,i){var r=e.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",t);r.title=i.strings.title;r.href="#";r.setAttribute("role","button");var n=e.DomUtil.create(i.iconElementTag,i.icon,r);if(i.strings.text!==undefined){var o=e.DomUtil.create(i.textElementTag,"leaflet-locate-text",r);o.textContent=i.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(i.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError:function(e,t){alert(e.message)},onLocationOutsideMapBounds:function(e){e.stop();alert(e.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:function(t){for(var i in t){if(typeof this.options[i]==="object"){e.extend(this.options[i],t[i])}else{this.options[i]=t[i]}}this.options.followMarkerStyle=e.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=e.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=e.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(t){var i=e.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=i;this._map=t;this._layer=this.options.layer||new e.LayerGroup;this._layer.addTo(t);this._event=undefined;this._compassHeading=null;this._prevBounds=null;var r=this.options.createButtonCallback(i,this.options);this._link=r.link;this._icon=r.icon;e.DomEvent.on(this._link,"click",(function(t){e.DomEvent.stopPropagation(t);e.DomEvent.preventDefault(t);this._onClick()}),this).on(this._link,"dblclick",e.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return i},_onClick:function(){this._justClicked=true;var e=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){var t=this.options.clickBehavior;var i=t.outOfView;if(this._map.getBounds().contains(this._event.latlng)){i=e?t.inView:t.inViewNotFollowing}if(t[i]){i=t[i]}switch(i){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){var r=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;r.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start:function(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop:function(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing:function(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate:function(){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){var t="ondeviceorientationabsolute"in window;if(t||"ondeviceorientation"in window){var i=this;var r=function(){e.DomEvent.on(window,t?"deviceorientationabsolute":"deviceorientation",i._onDeviceOrientation,i)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(e){if(e==="granted"){r()}}))}else{r()}}}},_deactivate:function(){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){e.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){e.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView:function(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var t=this.options.flyTo?this._map.flyTo:this._map.setView;t.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var t=this.options.flyTo?this._map.flyTo:this._map.panTo;t.bind(this._map)([this._event.latitude,this._event.longitude])}else{var t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;t.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});e.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass:function(){if(!this._event){return}var e=this._event.latlng;if(this.options.showCompass&&e&&this._compassHeading!==null){var t=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(e,this._compassHeading,t).addTo(this._layer)}else{this._compass.setLatLng(e);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(t)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker:function(){if(this._event.accuracy===undefined){this._event.accuracy=0}var t=this._event.accuracy;var i=this._event.latlng;if(this.options.drawCircle){var r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=e.circle(i,t,r).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(t).setStyle(r)}}var n;var o;if(this.options.metric){n=t.toFixed(0);o=this.options.strings.metersUnit}else{n=(t*3.2808399).toFixed(0);o=this.options.strings.feetUnit}if(this.options.drawMarker){var s=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(i,s).addTo(this._layer)}else{this._marker.setLatLng(i);if(this._marker.setStyle){this._marker.setStyle(s)}}}this._drawCompass();var a=this.options.strings.popup;function l(){if(typeof a==="string"){return e.Util.template(a,{distance:n,unit:o})}else if(typeof a==="function"){return a({distance:n,unit:o})}else{return a}}if(this.options.showPopup&&a&&this._marker){this._marker.bindPopup(l())._popup.setLatLng(i)}if(this.options.showPopup&&a&&this._compass){this._compass.bindPopup(l())._popup.setLatLng(i)}},_removeMarker:function(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload:function(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading:function(t){if(!isNaN(parseFloat(t))&&isFinite(t)){t=Math.round(t);this._compassHeading=t;e.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(e){if(!this._active){return}if(e.webkitCompassHeading){this._setCompassHeading(e.webkitCompassHeading)}else if(e.absolute&&e.alpha){this._setCompassHeading(360-e.alpha)}},_onLocationError:function(e){if(e.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(e,this)},_onLocationFound:function(e){if(this._event&&this._event.latlng.lat===e.latlng.lat&&this._event.latlng.lng===e.latlng.lng&&this._event.accuracy===e.accuracy){return}if(!this._active){return}this._event=e;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:function(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom:function(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd:function(){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:function(){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:function(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){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:function(e){if(e=="requesting"){r(this._container,"active following");i(this._container,"requesting");r(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(e=="active"){r(this._container,"requesting following");i(this._container,"active");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(e=="following"){r(this._container,"requesting");i(this._container,"active following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}},_cleanClasses:function(){e.DomUtil.removeClass(this._container,"requesting");e.DomUtil.removeClass(this._container,"active");e.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)},_resetVariables:function(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});e.control.locate=function(t){return new e.Control.Locate(t)};return s}),window)}));var punycode=createCommonjsModule((function(e,t){(function(i){var r=t&&!t.nodeType&&t;var n=e&&!e.nodeType&&e;var o=typeof commonjsGlobal=="object"&&commonjsGlobal;if(o.global===o||o.window===o||o.self===o){i=o}var s,a=2147483647,l=36,c=1,p=26,u=38,d=700,h=72,f=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-c,_=Math.floor,x=String.fromCharCode,k;function A(e){throw new RangeError(w[e])}function T(e,t){var i=e.length;var r=[];while(i--){r[i]=t(e[i])}return r}function C(e,t){var i=e.split("@");var r="";if(i.length>1){r=i[0]+"@";e=i[1]}e=e.replace(y,".");var n=e.split(".");var o=T(n,t).join(".");return r+o}function L(e){var t=[],i=0,r=e.length,n,o;while(i<r){n=e.charCodeAt(i++);if(n>=55296&&n<=56319&&i<r){o=e.charCodeAt(i++);if((o&64512)==56320){t.push(((n&1023)<<10)+(o&1023)+65536)}else{t.push(n);i--}}else{t.push(n)}}return t}function S(e){return T(e,(function(e){var t="";if(e>65535){e-=65536;t+=x(e>>>10&1023|55296);e=56320|e&1023}t+=x(e);return t})).join("")}function E(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return l}function P(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function M(e,t,i){var r=0;e=i?_(e/d):e>>1;e+=_(e/t);for(;e>b*p>>1;r+=l){e=_(e/b)}return _(r+(b+1)*e/(e+u))}function O(e){var t=[],i=e.length,r,n=0,o=f,s=h,u,d,g,v,y,w,b,x,k;u=e.lastIndexOf(m);if(u<0){u=0}for(d=0;d<u;++d){if(e.charCodeAt(d)>=128){A("not-basic")}t.push(e.charCodeAt(d))}for(g=u>0?u+1:0;g<i;){for(v=n,y=1,w=l;;w+=l){if(g>=i){A("invalid-input")}b=E(e.charCodeAt(g++));if(b>=l||b>_((a-n)/y)){A("overflow")}n+=b*y;x=w<=s?c:w>=s+p?p:w-s;if(b<x){break}k=l-x;if(y>_(a/k)){A("overflow")}y*=k}r=t.length+1;s=M(n-v,r,v==0);if(_(n/r)>a-o){A("overflow")}o+=_(n/r);n%=r;t.splice(n++,0,o)}return S(t)}function I(e){var t,i,r,n,o,s,u,d,g,v,y,w=[],b,k,T,C;e=L(e);b=e.length;t=f;i=0;o=h;for(s=0;s<b;++s){y=e[s];if(y<128){w.push(x(y))}}r=n=w.length;if(n){w.push(m)}while(r<b){for(u=a,s=0;s<b;++s){y=e[s];if(y>=t&&y<u){u=y}}k=r+1;if(u-t>_((a-i)/k)){A("overflow")}i+=(u-t)*k;t=u;for(s=0;s<b;++s){y=e[s];if(y<t&&++i>a){A("overflow")}if(y==t){for(d=i,g=l;;g+=l){v=g<=o?c:g>=o+p?p:g-o;if(d<v){break}C=d-v;T=l-v;w.push(x(P(v+C%T,0)));d=_(C/T)}w.push(x(P(d,0)));o=M(i,k,r==n);i=0;++r}}++i;++t}return w.join("")}function z(e){return C(e,(function(e){return g.test(e)?O(e.slice(4).toLowerCase()):e}))}function B(e){return C(e,(function(e){return v.test(e)?"xn--"+I(e):e}))}s={version:"1.4.1",ucs2:{decode:L,encode:S},decode:O,encode:I,toASCII:B,toUnicode:z};if(r&&n){if(e.exports==r){n.exports=s}else{for(k in s){s.hasOwnProperty(k)&&(r[k]=s[k])}}}else{i.punycode=s}})(commonjsGlobal)}));var shams=function e(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var t={};var i=Symbol("test");var r=Object(i);if(typeof i==="string"){return false}if(Object.prototype.toString.call(i)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;t[i]=n;for(i in t){return false}if(typeof Object.keys==="function"&&Object.keys(t).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(t).length!==0){return false}var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==i){return false}if(!Object.prototype.propertyIsEnumerable.call(t,i)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var s=Object.getOwnPropertyDescriptor(t,i);if(s.value!==n||s.enumerable!==true){return false}}return true};var origSymbol=typeof Symbol!=="undefined"&&Symbol;var hasSymbols$1=function e(){if(typeof origSymbol!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof origSymbol("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return shams()};var test={foo:{}};var $Object=Object;var hasProto$1=function e(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)};var ERROR_MESSAGE="Function.prototype.bind called on incompatible ";var slice=Array.prototype.slice;var toStr$1=Object.prototype.toString;var funcType="[object Function]";var implementation=function e(t){var i=this;if(typeof i!=="function"||toStr$1.call(i)!==funcType){throw new TypeError(ERROR_MESSAGE+i)}var r=slice.call(arguments,1);var n;var o=function(){if(this instanceof n){var e=i.apply(this,r.concat(slice.call(arguments)));if(Object(e)===e){return e}return this}else{return i.apply(t,r.concat(slice.call(arguments)))}};var s=Math.max(0,i.length-r.length);var a=[];for(var l=0;l<s;l++){a.push("$"+l)}n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o);if(i.prototype){var c=function e(){};c.prototype=i.prototype;n.prototype=new c;c.prototype=null}return n};var functionBind=Function.prototype.bind||implementation;var src=functionBind.call(Function.call,Object.prototype.hasOwnProperty);var undefined$1;var $SyntaxError=SyntaxError;var $Function=Function;var $TypeError$1=TypeError;var getEvalledConstructor=function(e){try{return $Function('"use strict"; return ('+e+").constructor;")()}catch(t){}};var $gOPD=Object.getOwnPropertyDescriptor;var throwTypeError=function(){throw new $TypeError$1};var ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(e){try{return $gOPD(arguments,"callee").get}catch(t){return throwTypeError}}}():throwTypeError;var hasSymbols=hasSymbols$1();var hasProto=hasProto$1();var getProto=Object.getPrototypeOf||(hasProto?function(e){return e.__proto__}:null);var needsEval={};var TypedArray=typeof Uint8Array==="undefined"||!getProto?undefined$1:getProto(Uint8Array);var INTRINSICS={"%AggregateError%":typeof AggregateError==="undefined"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics==="undefined"?undefined$1:Atomics,"%BigInt%":typeof BigInt==="undefined"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array==="undefined"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON==="object"?JSON:undefined$1,"%Map%":typeof Map==="undefined"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!hasSymbols||!getProto?undefined$1:getProto((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?undefined$1:Promise,"%Proxy%":typeof Proxy==="undefined"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!hasSymbols||!getProto?undefined$1:getProto((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array==="undefined"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?undefined$1:WeakSet};var doEval=function e(t){var i;if(t==="%AsyncFunction%"){i=getEvalledConstructor("async function () {}")}else if(t==="%GeneratorFunction%"){i=getEvalledConstructor("function* () {}")}else if(t==="%AsyncGeneratorFunction%"){i=getEvalledConstructor("async function* () {}")}else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");if(r){i=r.prototype}}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");if(n&&getProto){i=getProto(n.prototype)}}INTRINSICS[t]=i;return i};var LEGACY_ALIASES={"%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 $concat$1=functionBind.call(Function.call,Array.prototype.concat);var $spliceApply=functionBind.call(Function.apply,Array.prototype.splice);var $replace$1=functionBind.call(Function.call,String.prototype.replace);var $strSlice=functionBind.call(Function.call,String.prototype.slice);var $exec=functionBind.call(Function.call,RegExp.prototype.exec);var rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=function e(t){var i=$strSlice(t,0,1);var r=$strSlice(t,-1);if(i==="%"&&r!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&i!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`")}var n=[];$replace$1(t,rePropName,(function(e,t,i,r){n[n.length]=i?$replace$1(r,reEscapeChar,"$1"):t||e}));return n};var getBaseIntrinsic=function e(t,i){var r=t;var n;if(src(LEGACY_ALIASES,r)){n=LEGACY_ALIASES[r];r="%"+n[0]+"%"}if(src(INTRINSICS,r)){var o=INTRINSICS[r];if(o===needsEval){o=doEval(r)}if(typeof o==="undefined"&&!i){throw new $TypeError$1("intrinsic "+t+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:o}}throw new $SyntaxError("intrinsic "+t+" does not exist!")};var getIntrinsic=function e(t,i){if(typeof t!=="string"||t.length===0){throw new $TypeError$1("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof i!=="boolean"){throw new $TypeError$1('"allowMissing" argument must be a boolean')}if($exec(/^%?[^%]*%?$/,t)===null){throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=stringToPath(t);var n=r.length>0?r[0]:"";var o=getBaseIntrinsic("%"+n+"%",i);var s=o.name;var a=o.value;var l=false;var c=o.alias;if(c){n=c[0];$spliceApply(r,$concat$1([0,1],c))}for(var p=1,u=true;p<r.length;p+=1){var d=r[p];var h=$strSlice(d,0,1);var f=$strSlice(d,-1);if((h==='"'||h==="'"||h==="`"||(f==='"'||f==="'"||f==="`"))&&h!==f){throw new $SyntaxError("property names with quotes must have matching quotes")}if(d==="constructor"||!u){l=true}n+="."+d;s="%"+n+"%";if(src(INTRINSICS,s)){a=INTRINSICS[s]}else if(a!=null){if(!(d in a)){if(!i){throw new $TypeError$1("base intrinsic for "+t+" exists, but the property is not available.")}return void undefined$1}if($gOPD&&p+1>=r.length){var m=$gOPD(a,d);u=!!m;if(u&&"get"in m&&!("originalValue"in m.get)){a=m.get}else{a=a[d]}}else{u=src(a,d);a=a[d]}if(u&&!l){INTRINSICS[s]=a}}}return a};var callBind=createCommonjsModule((function(e){var t=getIntrinsic("%Function.prototype.apply%");var i=getIntrinsic("%Function.prototype.call%");var r=getIntrinsic("%Reflect.apply%",true)||functionBind.call(i,t);var n=getIntrinsic("%Object.getOwnPropertyDescriptor%",true);var o=getIntrinsic("%Object.defineProperty%",true);var s=getIntrinsic("%Math.max%");if(o){try{o({},"a",{value:1})}catch(l){o=null}}e.exports=function e(t){var a=r(functionBind,i,arguments);if(n&&o){var l=n(a,"length");if(l.configurable){o(a,"length",{value:1+s(0,t.length-(arguments.length-1))})}}return a};var a=function e(){return r(functionBind,t,arguments)};if(o){o(e.exports,"apply",{value:a})}else{e.exports.apply=a}}));var $indexOf=callBind(getIntrinsic("String.prototype.indexOf"));var callBound=function e(t,i){var r=getIntrinsic(t,!!i);if(typeof r==="function"&&$indexOf(t,".prototype.")>-1){return callBind(r)}return r};var _nodeResolve_empty={};var _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});var utilInspect=getAugmentedNamespace(_nodeResolve_empty$1);var hasMap=typeof Map==="function"&&Map.prototype;var mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get==="function"?mapSizeDescriptor.get:null;var mapForEach=hasMap&&Map.prototype.forEach;var hasSet=typeof Set==="function"&&Set.prototype;var setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get==="function"?setSizeDescriptor.get:null;var setForEach=hasSet&&Set.prototype.forEach;var hasWeakMap=typeof WeakMap==="function"&&WeakMap.prototype;var weakMapHas=hasWeakMap?WeakMap.prototype.has:null;var hasWeakSet=typeof WeakSet==="function"&&WeakSet.prototype;var weakSetHas=hasWeakSet?WeakSet.prototype.has:null;var hasWeakRef=typeof WeakRef==="function"&&WeakRef.prototype;var weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null;var booleanValueOf=Boolean.prototype.valueOf;var objectToString=Object.prototype.toString;var functionToString=Function.prototype.toString;var $match=String.prototype.match;var $slice=String.prototype.slice;var $replace=String.prototype.replace;var $toUpperCase=String.prototype.toUpperCase;var $toLowerCase=String.prototype.toLowerCase;var $test=RegExp.prototype.test;var $concat=Array.prototype.concat;var $join=Array.prototype.join;var $arrSlice=Array.prototype.slice;var $floor=Math.floor;var bigIntValueOf=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var gOPS=Object.getOwnPropertySymbols;var symToString=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var hasShammedSymbols=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var toStringTag=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols?"object":"symbol")?Symbol.toStringTag:null;var isEnumerable=Object.prototype.propertyIsEnumerable;var gPO=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||$test.call(/e/,t)){return t}var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var r=e<0?-$floor(-e):$floor(e);if(r!==e){var n=String(r);var o=$slice.call(t,n.length+1);return $replace.call(n,i,"$&_")+"."+$replace.call($replace.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(t,i,"$&_")}var inspectCustom=utilInspect.custom;var inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null;var objectInspect=function e(t,i,r,n){var o=i||{};if(has$3(o,"quoteStyle")&&(o.quoteStyle!=="single"&&o.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has$3(o,"maxStringLength")&&(typeof o.maxStringLength==="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var s=has$3(o,"customInspect")?o.customInspect:true;if(typeof s!=="boolean"&&s!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has$3(o,"indent")&&o.indent!==null&&o.indent!=="\t"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has$3(o,"numericSeparator")&&typeof o.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=o.numericSeparator;if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(typeof t==="boolean"){return t?"true":"false"}if(typeof t==="string"){return inspectString(t,o)}if(typeof t==="number"){if(t===0){return Infinity/t>0?"0":"-0"}var l=String(t);return a?addNumericSeparator(t,l):l}if(typeof t==="bigint"){var c=String(t)+"n";return a?addNumericSeparator(t,c):c}var p=typeof o.depth==="undefined"?5:o.depth;if(typeof r==="undefined"){r=0}if(r>=p&&p>0&&typeof t==="object"){return isArray$3(t)?"[Array]":"[Object]"}var u=getIndent(o,r);if(typeof n==="undefined"){n=[]}else if(indexOf(n,t)>=0){return"[Circular]"}function d(t,i,s){if(i){n=$arrSlice.call(n);n.push(i)}if(s){var a={depth:o.depth};if(has$3(o,"quoteStyle")){a.quoteStyle=o.quoteStyle}return e(t,a,r+1,n)}return e(t,o,r+1,n)}if(typeof t==="function"&&!isRegExp$1(t)){var h=nameOf(t);var f=arrObjKeys(t,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+$join.call(f,", ")+" }":"")}if(isSymbol(t)){var m=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return typeof t==="object"&&!hasShammedSymbols?markBoxed(m):m}if(isElement(t)){var g="<"+$toLowerCase.call(String(t.nodeName));var v=t.attributes||[];for(var y=0;y<v.length;y++){g+=" "+v[y].name+"="+wrapQuotes(quote(v[y].value),"double",o)}g+=">";if(t.childNodes&&t.childNodes.length){g+="..."}g+="</"+$toLowerCase.call(String(t.nodeName))+">";return g}if(isArray$3(t)){if(t.length===0){return"[]"}var w=arrObjKeys(t,d);if(u&&!singleLineValues(w)){return"["+indentedJoin(w,u)+"]"}return"[ "+$join.call(w,", ")+" ]"}if(isError(t)){var b=arrObjKeys(t,d);if(!("cause"in Error.prototype)&&"cause"in t&&!isEnumerable.call(t,"cause")){return"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+d(t.cause),b),", ")+" }"}if(b.length===0){return"["+String(t)+"]"}return"{ ["+String(t)+"] "+$join.call(b,", ")+" }"}if(typeof t==="object"&&s){if(inspectSymbol&&typeof t[inspectSymbol]==="function"&&utilInspect){return utilInspect(t,{depth:p-r})}else if(s!=="symbol"&&typeof t.inspect==="function"){return t.inspect()}}if(isMap(t)){var _=[];if(mapForEach){mapForEach.call(t,(function(e,i){_.push(d(i,t,true)+" => "+d(e,t))}))}return collectionOf("Map",mapSize.call(t),_,u)}if(isSet(t)){var x=[];if(setForEach){setForEach.call(t,(function(e){x.push(d(e,t))}))}return collectionOf("Set",setSize.call(t),x,u)}if(isWeakMap(t)){return weakCollectionOf("WeakMap")}if(isWeakSet(t)){return weakCollectionOf("WeakSet")}if(isWeakRef(t)){return weakCollectionOf("WeakRef")}if(isNumber(t)){return markBoxed(d(Number(t)))}if(isBigInt(t)){return markBoxed(d(bigIntValueOf.call(t)))}if(isBoolean(t)){return markBoxed(booleanValueOf.call(t))}if(isString(t)){return markBoxed(d(String(t)))}if(!isDate(t)&&!isRegExp$1(t)){var k=arrObjKeys(t,d);var A=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object;var T=t instanceof Object?"":"null prototype";var C=!A&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):T?"Object":"";var L=A||typeof t.constructor!=="function"?"":t.constructor.name?t.constructor.name+" ":"";var S=L+(C||T?"["+$join.call($concat.call([],C||[],T||[]),": ")+"] ":"");if(k.length===0){return S+"{}"}if(u){return S+"{"+indentedJoin(k,u)+"}"}return S+"{ "+$join.call(k,", ")+" }"}return String(t)};function wrapQuotes(e,t,i){var r=(i.quoteStyle||t)==="double"?'"':"'";return r+e+r}function quote(e){return $replace.call(String(e),/"/g,""")}function isArray$3(e){return toStr(e)==="[object Array]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isRegExp$1(e){return toStr(e)==="[object RegExp]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isError(e){return toStr(e)==="[object Error]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isString(e){return toStr(e)==="[object String]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isSymbol(e){if(hasShammedSymbols){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!symToString){return false}try{symToString.call(e);return true}catch(t){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!bigIntValueOf){return false}try{bigIntValueOf.call(e);return true}catch(t){}return false}var hasOwn=Object.prototype.hasOwnProperty||function(e){return e in this};function has$3(e,t){return hasOwn.call(e,t)}function toStr(e){return objectToString.call(e)}function nameOf(e){if(e.name){return e.name}var t=$match.call(functionToString.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var i=0,r=e.length;i<r;i++){if(e[i]===t){return i}}return-1}function isMap(e){if(!mapSize||!e||typeof e!=="object"){return false}try{mapSize.call(e);try{setSize.call(e)}catch(t){return true}return e instanceof Map}catch(i){}return false}function isWeakMap(e){if(!weakMapHas||!e||typeof e!=="object"){return false}try{weakMapHas.call(e,weakMapHas);try{weakSetHas.call(e,weakSetHas)}catch(t){return true}return e instanceof WeakMap}catch(i){}return false}function isWeakRef(e){if(!weakRefDeref||!e||typeof e!=="object"){return false}try{weakRefDeref.call(e);return true}catch(t){}return false}function isSet(e){if(!setSize||!e||typeof e!=="object"){return false}try{setSize.call(e);try{mapSize.call(e)}catch(t){return true}return e instanceof Set}catch(i){}return false}function isWeakSet(e){if(!weakSetHas||!e||typeof e!=="object"){return false}try{weakSetHas.call(e,weakSetHas);try{weakMapHas.call(e,weakMapHas)}catch(t){return true}return e instanceof WeakSet}catch(i){}return false}function isElement(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function inspectString(e,t){if(e.length>t.maxStringLength){var i=e.length-t.maxStringLength;var r="... "+i+" more character"+(i>1?"s":"");return inspectString($slice.call(e,0,t.maxStringLength),t)+r}var n=$replace.call($replace.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(n,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var i={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(i){return"\\"+i}return"\\x"+(t<16?"0":"")+$toUpperCase.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,i,r){var n=r?indentedJoin(i,r):$join.call(i,", ");return e+" ("+t+") {"+n+"}"}function singleLineValues(e){for(var t=0;t<e.length;t++){if(indexOf(e[t],"\n")>=0){return false}}return true}function getIndent(e,t){var i;if(e.indent==="\t"){i="\t"}else if(typeof e.indent==="number"&&e.indent>0){i=$join.call(Array(e.indent+1)," ")}else{return null}return{base:i,prev:$join.call(Array(t+1),i)}}function indentedJoin(e,t){if(e.length===0){return""}var i="\n"+t.prev+t.base;return i+$join.call(e,","+i)+"\n"+t.prev}function arrObjKeys(e,t){var i=isArray$3(e);var r=[];if(i){r.length=e.length;for(var n=0;n<e.length;n++){r[n]=has$3(e,n)?t(e[n],e):""}}var o=typeof gOPS==="function"?gOPS(e):[];var s;if(hasShammedSymbols){s={};for(var a=0;a<o.length;a++){s["$"+o[a]]=o[a]}}for(var l in e){if(!has$3(e,l)){continue}if(i&&String(Number(l))===l&&l<e.length){continue}if(hasShammedSymbols&&s["$"+l]instanceof Symbol){continue}else if($test.call(/[^\w$]/,l)){r.push(t(l,e)+": "+t(e[l],e))}else{r.push(l+": "+t(e[l],e))}}if(typeof gOPS==="function"){for(var c=0;c<o.length;c++){if(isEnumerable.call(e,o[c])){r.push("["+t(o[c])+"]: "+t(e[o[c]],e))}}}return r}var $TypeError=getIntrinsic("%TypeError%");var $WeakMap=getIntrinsic("%WeakMap%",true);var $Map=getIntrinsic("%Map%",true);var $weakMapGet=callBound("WeakMap.prototype.get",true);var $weakMapSet=callBound("WeakMap.prototype.set",true);var $weakMapHas=callBound("WeakMap.prototype.has",true);var $mapGet=callBound("Map.prototype.get",true);var $mapSet=callBound("Map.prototype.set",true);var $mapHas=callBound("Map.prototype.has",true);var listGetNode=function(e,t){for(var i=e,r;(r=i.next)!==null;i=r){if(r.key===t){i.next=r.next;r.next=e.next;e.next=r;return r}}};var listGet=function(e,t){var i=listGetNode(e,t);return i&&i.value};var listSet=function(e,t,i){var r=listGetNode(e,t);if(r){r.value=i}else{e.next={key:t,next:e.next,value:i}}};var listHas=function(e,t){return!!listGetNode(e,t)};var sideChannel=function e(){var t;var i;var r;var n={assert:function(e){if(!n.has(e)){throw new $TypeError("Side channel does not contain "+objectInspect(e))}},get:function(e){if($WeakMap&&e&&(typeof e==="object"||typeof e==="function")){if(t){return $weakMapGet(t,e)}}else if($Map){if(i){return $mapGet(i,e)}}else{if(r){return listGet(r,e)}}},has:function(e){if($WeakMap&&e&&(typeof e==="object"||typeof e==="function")){if(t){return $weakMapHas(t,e)}}else if($Map){if(i){return $mapHas(i,e)}}else{if(r){return listHas(r,e)}}return false},set:function(e,n){if($WeakMap&&e&&(typeof e==="object"||typeof e==="function")){if(!t){t=new $WeakMap}$weakMapSet(t,e,n)}else if($Map){if(!i){i=new $Map}$mapSet(i,e,n)}else{if(!r){r={key:{},next:null}}listSet(r,e,n)}}};return n};var replace=String.prototype.replace;var percentTwenties=/%20/g;var Format={RFC1738:"RFC1738",RFC3986:"RFC3986"};var formats={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986};var has$2=Object.prototype.hasOwnProperty;var isArray$2=Array.isArray;var hexTable=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var compactQueue=function e(t){while(t.length>1){var i=t.pop();var r=i.obj[i.prop];if(isArray$2(r)){var n=[];for(var o=0;o<r.length;++o){if(typeof r[o]!=="undefined"){n.push(r[o])}}i.obj[i.prop]=n}}};var arrayToObject=function e(t,i){var r=i&&i.plainObjects?Object.create(null):{};for(var n=0;n<t.length;++n){if(typeof t[n]!=="undefined"){r[n]=t[n]}}return r};var merge=function e(t,i,r){if(!i){return t}if(typeof i!=="object"){if(isArray$2(t)){t.push(i)}else if(t&&typeof t==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!has$2.call(Object.prototype,i)){t[i]=true}}else{return[t,i]}return t}if(!t||typeof t!=="object"){return[t].concat(i)}var n=t;if(isArray$2(t)&&!isArray$2(i)){n=arrayToObject(t,r)}if(isArray$2(t)&&isArray$2(i)){i.forEach((function(i,n){if(has$2.call(t,n)){var o=t[n];if(o&&typeof o==="object"&&i&&typeof i==="object"){t[n]=e(o,i,r)}else{t.push(i)}}else{t[n]=i}}));return t}return Object.keys(i).reduce((function(t,n){var o=i[n];if(has$2.call(t,n)){t[n]=e(t[n],o,r)}else{t[n]=o}return t}),n)};var assign=function e(t,i){return Object.keys(i).reduce((function(e,t){e[t]=i[t];return e}),t)};var decode=function(e,t,i){var r=e.replace(/\+/g," ");if(i==="iso-8859-1"){return r.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(r)}catch(n){return r}};var encode=function e(t,i,r,n,o){if(t.length===0){return t}var s=t;if(typeof t==="symbol"){s=Symbol.prototype.toString.call(t)}else if(typeof t!=="string"){s=String(t)}if(r==="iso-8859-1"){return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<s.length;++l){var c=s.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===formats.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+hexTable[c];continue}if(c<2048){a=a+(hexTable[192|c>>6]+hexTable[128|c&63]);continue}if(c<55296||c>=57344){a=a+(hexTable[224|c>>12]+hexTable[128|c>>6&63]+hexTable[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|s.charCodeAt(l)&1023);a+=hexTable[240|c>>18]+hexTable[128|c>>12&63]+hexTable[128|c>>6&63]+hexTable[128|c&63]}return a};var compact=function e(t){var i=[{obj:{o:t},prop:"o"}];var r=[];for(var n=0;n<i.length;++n){var o=i[n];var s=o.obj[o.prop];var a=Object.keys(s);for(var l=0;l<a.length;++l){var c=a[l];var p=s[c];if(typeof p==="object"&&p!==null&&r.indexOf(p)===-1){i.push({obj:s,prop:c});r.push(p)}}}compactQueue(i);return t};var isRegExp=function e(t){return Object.prototype.toString.call(t)==="[object RegExp]"};var isBuffer=function e(t){if(!t||typeof t!=="object"){return false}return!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};var combine=function e(t,i){return[].concat(t,i)};var maybeMap=function e(t,i){if(isArray$2(t)){var r=[];for(var n=0;n<t.length;n+=1){r.push(i(t[n]))}return r}return i(t)};var utils={arrayToObject:arrayToObject,assign:assign,combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isRegExp:isRegExp,maybeMap:maybeMap,merge:merge};var has$1=Object.prototype.hasOwnProperty;var arrayPrefixGenerators={brackets:function e(t){return t+"[]"},comma:"comma",indices:function e(t,i){return t+"["+i+"]"},repeat:function e(t){return t}};var isArray$1=Array.isArray;var push=Array.prototype.push;var pushToArray=function(e,t){push.apply(e,isArray$1(t)?t:[t])};var toISO=Date.prototype.toISOString;var defaultFormat=formats["default"];var defaults$2={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:utils.encode,encodeValuesOnly:false,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:false,serializeDate:function e(t){return toISO.call(t)},skipNulls:false,strictNullHandling:false};var isNonNullishPrimitive=function e(t){return typeof t==="string"||typeof t==="number"||typeof t==="boolean"||typeof t==="symbol"||typeof t==="bigint"};var sentinel={};var stringify=function e(t,i,r,n,o,s,a,l,c,p,u,d,h,f,m,g){var v=t;var y=g;var w=0;var b=false;while((y=y.get(sentinel))!==void undefined&&!b){var _=y.get(t);w+=1;if(typeof _!=="undefined"){if(_===w){throw new RangeError("Cyclic object value")}else{b=true}}if(typeof y.get(sentinel)==="undefined"){w=0}}if(typeof l==="function"){v=l(i,v)}else if(v instanceof Date){v=u(v)}else if(r==="comma"&&isArray$1(v)){v=utils.maybeMap(v,(function(e){if(e instanceof Date){return u(e)}return e}))}if(v===null){if(o){return a&&!f?a(i,defaults$2.encoder,m,"key",d):i}v=""}if(isNonNullishPrimitive(v)||utils.isBuffer(v)){if(a){var x=f?i:a(i,defaults$2.encoder,m,"key",d);return[h(x)+"="+h(a(v,defaults$2.encoder,m,"value",d))]}return[h(i)+"="+h(String(v))]}var k=[];if(typeof v==="undefined"){return k}var A;if(r==="comma"&&isArray$1(v)){if(f&&a){v=utils.maybeMap(v,a)}A=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(isArray$1(l)){A=l}else{var T=Object.keys(v);A=c?T.sort(c):T}var C=n&&isArray$1(v)&&v.length===1?i+"[]":i;for(var L=0;L<A.length;++L){var S=A[L];var E=typeof S==="object"&&typeof S.value!=="undefined"?S.value:v[S];if(s&&E===null){continue}var P=isArray$1(v)?typeof r==="function"?r(C,S):C:C+(p?"."+S:"["+S+"]");g.set(t,w);var M=sideChannel();M.set(sentinel,g);pushToArray(k,e(E,P,r,n,o,s,r==="comma"&&f&&isArray$1(v)?null:a,l,c,p,u,d,h,f,m,M))}return k};var normalizeStringifyOptions=function e(t){if(!t){return defaults$2}if(t.encoder!==null&&typeof t.encoder!=="undefined"&&typeof t.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var i=t.charset||defaults$2.charset;if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=formats["default"];if(typeof t.format!=="undefined"){if(!has$1.call(formats.formatters,t.format)){throw new TypeError("Unknown format option provided.")}r=t.format}var n=formats.formatters[r];var o=defaults$2.filter;if(typeof t.filter==="function"||isArray$1(t.filter)){o=t.filter}return{addQueryPrefix:typeof t.addQueryPrefix==="boolean"?t.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof t.allowDots==="undefined"?defaults$2.allowDots:!!t.allowDots,charset:i,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof t.delimiter==="undefined"?defaults$2.delimiter:t.delimiter,encode:typeof t.encode==="boolean"?t.encode:defaults$2.encode,encoder:typeof t.encoder==="function"?t.encoder:defaults$2.encoder,encodeValuesOnly:typeof t.encodeValuesOnly==="boolean"?t.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate==="function"?t.serializeDate:defaults$2.serializeDate,skipNulls:typeof t.skipNulls==="boolean"?t.skipNulls:defaults$2.skipNulls,sort:typeof t.sort==="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:defaults$2.strictNullHandling}};var stringify_1=function(e,t){var i=e;var r=normalizeStringifyOptions(t);var n;var o;if(typeof r.filter==="function"){o=r.filter;i=o("",i)}else if(isArray$1(r.filter)){o=r.filter;n=o}var s=[];if(typeof i!=="object"||i===null){return""}var a;if(t&&t.arrayFormat in arrayPrefixGenerators){a=t.arrayFormat}else if(t&&"indices"in t){a=t.indices?"indices":"repeat"}else{a="indices"}var l=arrayPrefixGenerators[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&t&&t.commaRoundTrip;if(!n){n=Object.keys(i)}if(r.sort){n.sort(r.sort)}var p=sideChannel();for(var u=0;u<n.length;++u){var d=n[u];if(r.skipNulls&&i[d]===null){continue}pushToArray(s,stringify(i[d],d,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,p))}var h=s.join(r.delimiter);var f=r.addQueryPrefix===true?"?":"";if(r.charsetSentinel){if(r.charset==="iso-8859-1"){f+="utf8=%26%2310003%3B&"}else{f+="utf8=%E2%9C%93&"}}return h.length>0?f+h:""};var has=Object.prototype.hasOwnProperty;var isArray=Array.isArray;var defaults$1={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var parseArrayValue=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var isoSentinel="utf8=%26%2310003%3B";var charsetSentinel="utf8=%E2%9C%93";var parseValues=function e(t,i){var r={__proto__:null};var n=i.ignoreQueryPrefix?t.replace(/^\?/,""):t;var o=i.parameterLimit===Infinity?undefined:i.parameterLimit;var s=n.split(i.delimiter,o);var a=-1;var l;var c=i.charset;if(i.charsetSentinel){for(l=0;l<s.length;++l){if(s[l].indexOf("utf8=")===0){if(s[l]===charsetSentinel){c="utf-8"}else if(s[l]===isoSentinel){c="iso-8859-1"}a=l;l=s.length}}}for(l=0;l<s.length;++l){if(l===a){continue}var p=s[l];var u=p.indexOf("]=");var d=u===-1?p.indexOf("="):u+1;var h,f;if(d===-1){h=i.decoder(p,defaults$1.decoder,c,"key");f=i.strictNullHandling?null:""}else{h=i.decoder(p.slice(0,d),defaults$1.decoder,c,"key");f=utils.maybeMap(parseArrayValue(p.slice(d+1),i),(function(e){return i.decoder(e,defaults$1.decoder,c,"value")}))}if(f&&i.interpretNumericEntities&&c==="iso-8859-1"){f=interpretNumericEntities(f)}if(p.indexOf("[]=")>-1){f=isArray(f)?[f]:f}if(has.call(r,h)){r[h]=utils.combine(r[h],f)}else{r[h]=f}}return r};var parseObject=function(e,t,i,r){var n=r?t:parseArrayValue(t,i);for(var o=e.length-1;o>=0;--o){var s;var a=e[o];if(a==="[]"&&i.parseArrays){s=[].concat(n)}else{s=i.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(!i.parseArrays&&l===""){s={0:n}}else if(!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&(i.parseArrays&&c<=i.arrayLimit)){s=[];s[c]=n}else if(l!=="__proto__"){s[l]=n}}n=s}return n};var parseKeys=function e(t,i,r,n){if(!t){return}var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;var s=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=r.depth>0&&s.exec(o);var c=l?o.slice(0,l.index):o;var p=[];if(c){if(!r.plainObjects&&has.call(Object.prototype,c)){if(!r.allowPrototypes){return}}p.push(c)}var u=0;while(r.depth>0&&(l=a.exec(o))!==null&&u<r.depth){u+=1;if(!r.plainObjects&&has.call(Object.prototype,l[1].slice(1,-1))){if(!r.allowPrototypes){return}}p.push(l[1])}if(l){p.push("["+o.slice(l.index)+"]")}return parseObject(p,i,r,n)};var normalizeParseOptions=function e(t){if(!t){return defaults$1}if(t.decoder!==null&&t.decoder!==undefined&&typeof t.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var i=typeof t.charset==="undefined"?defaults$1.charset:t.charset;return{allowDots:typeof t.allowDots==="undefined"?defaults$1.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes==="boolean"?t.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof t.allowSparse==="boolean"?t.allowSparse:defaults$1.allowSparse,arrayLimit:typeof t.arrayLimit==="number"?t.arrayLimit:defaults$1.arrayLimit,charset:i,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:defaults$1.charsetSentinel,comma:typeof t.comma==="boolean"?t.comma:defaults$1.comma,decoder:typeof t.decoder==="function"?t.decoder:defaults$1.decoder,delimiter:typeof t.delimiter==="string"||utils.isRegExp(t.delimiter)?t.delimiter:defaults$1.delimiter,depth:typeof t.depth==="number"||t.depth===false?+t.depth:defaults$1.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===true,interpretNumericEntities:typeof t.interpretNumericEntities==="boolean"?t.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof t.parameterLimit==="number"?t.parameterLimit:defaults$1.parameterLimit,parseArrays:t.parseArrays!==false,plainObjects:typeof t.plainObjects==="boolean"?t.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:defaults$1.strictNullHandling}};var parse$1=function(e,t){var i=normalizeParseOptions(t);if(e===""||e===null||typeof e==="undefined"){return i.plainObjects?Object.create(null):{}}var r=typeof e==="string"?parseValues(e,i):e;var n=i.plainObjects?Object.create(null):{};var o=Object.keys(r);for(var s=0;s<o.length;++s){var a=o[s];var l=parseKeys(a,r[a],i,typeof e==="string");n=utils.merge(n,l,i)}if(i.allowSparse===true){return n}return utils.compact(n)};var lib={formats:formats,parse:parse$1,stringify:stringify_1};function Url(){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 protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:true,"javascript:":true},hostlessProtocol={javascript:true,"javascript:":true},slashedProtocol={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function urlParse(e,t,i){if(e&&typeof e==="object"&&e instanceof Url){return e}var r=new Url;r.parse(e,t,i);return r}Url.prototype.parse=function(e,t,i){if(typeof e!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof e)}var r=e.indexOf("?"),n=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(n),s=/\\/g;o[0]=o[0].replace(s,"/");e=o.join(n);var a=e;a=a.trim();if(!i&&e.split("#").length===1){var l=simplePathPattern.exec(a);if(l){this.path=a;this.href=a;this.pathname=l[1];if(l[2]){this.search=l[2];if(t){this.query=lib.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(t){this.search="";this.query={}}return this}}var c=protocolPattern.exec(a);if(c){c=c[0];var p=c.toLowerCase();this.protocol=p;a=a.substr(c.length)}if(i||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var u=a.substr(0,2)==="//";if(u&&!(c&&hostlessProtocol[c])){a=a.substr(2);this.slashes=true}}if(!hostlessProtocol[c]&&(u||c&&!slashedProtocol[c])){var d=-1;for(var h=0;h<hostEndingChars.length;h++){var f=a.indexOf(hostEndingChars[h]);if(f!==-1&&(d===-1||f<d)){d=f}}var m,g;if(d===-1){g=a.lastIndexOf("@")}else{g=a.lastIndexOf("@",d)}if(g!==-1){m=a.slice(0,g);a=a.slice(g+1);this.auth=decodeURIComponent(m)}d=-1;for(var h=0;h<nonHostChars.length;h++){var f=a.indexOf(nonHostChars[h]);if(f!==-1&&(d===-1||f<d)){d=f}}if(d===-1){d=a.length}this.host=a.slice(0,d);a=a.slice(d);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var y=this.hostname.split(/\./);for(var h=0,w=y.length;h<w;h++){var b=y[h];if(!b){continue}if(!b.match(hostnamePartPattern)){var _="";for(var x=0,k=b.length;x<k;x++){if(b.charCodeAt(x)>127){_+="x"}else{_+=b[x]}}if(!_.match(hostnamePartPattern)){var A=y.slice(0,h);var T=y.slice(h+1);var C=b.match(hostnamePartStart);if(C){A.push(C[1]);T.unshift(C[2])}if(T.length){a="/"+T.join(".")+a}this.hostname=A.join(".");break}}}}if(this.hostname.length>hostnameMaxLen){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=punycode.toASCII(this.hostname)}var L=this.port?":"+this.port:"";var S=this.hostname||"";this.host=S+L;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!unsafeProtocol[p]){for(var h=0,w=autoEscape.length;h<w;h++){var E=autoEscape[h];if(a.indexOf(E)===-1){continue}var P=encodeURIComponent(E);if(P===E){P=escape(E)}a=a.split(E).join(P)}}var M=a.indexOf("#");if(M!==-1){this.hash=a.substr(M);a=a.slice(0,M)}var O=a.indexOf("?");if(O!==-1){this.search=a.substr(O);this.query=a.substr(O+1);if(t){this.query=lib.parse(this.query)}a=a.slice(0,O)}else if(t){this.search="";this.query={}}if(a){this.pathname=a}if(slashedProtocol[p]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var L=this.pathname||"";var I=this.search||"";this.path=L+I}this.href=this.format();return this};function urlFormat(e){if(typeof e==="string"){e=urlParse(e)}if(!(e instanceof Url)){return Url.prototype.format.call(e)}return e.format()}Url.prototype.format=function(){var e=this.auth||"";if(e){e=encodeURIComponent(e);e=e.replace(/%3A/i,":");e+="@"}var t=this.protocol||"",i=this.pathname||"",r=this.hash||"",n=false,o="";if(this.host){n=e+this.host}else if(this.hostname){n=e+(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){o=lib.stringify(this.query)}var s=this.search||o&&"?"+o||"";if(t&&t.substr(-1)!==":"){t+=":"}if(this.slashes||(!t||slashedProtocol[t])&&n!==false){n="//"+(n||"");if(i&&i.charAt(0)!=="/"){i="/"+i}}else if(!n){n=""}if(r&&r.charAt(0)!=="#"){r="#"+r}if(s&&s.charAt(0)!=="?"){s="?"+s}i=i.replace(/[?#]/g,(function(e){return encodeURIComponent(e)}));s=s.replace("#","%23");return t+n+i+s+r};function urlResolve(e,t){return urlParse(e,false,true).resolve(t)}Url.prototype.resolve=function(e){return this.resolveObject(urlParse(e,false,true)).format()};function urlResolveObject(e,t){if(!e){return t}return urlParse(e,false,true).resolveObject(t)}Url.prototype.resolveObject=function(e){if(typeof e==="string"){var t=new Url;t.parse(e,false,true);e=t}var i=new Url;var r=Object.keys(this);for(var n=0;n<r.length;n++){var o=r[n];i[o]=this[o]}i.hash=e.hash;if(e.href===""){i.href=i.format();return i}if(e.slashes&&!e.protocol){var s=Object.keys(e);for(var a=0;a<s.length;a++){var l=s[a];if(l!=="protocol"){i[l]=e[l]}}if(slashedProtocol[i.protocol]&&i.hostname&&!i.pathname){i.pathname="/";i.path=i.pathname}i.href=i.format();return i}if(e.protocol&&e.protocol!==i.protocol){if(!slashedProtocol[e.protocol]){var c=Object.keys(e);for(var p=0;p<c.length;p++){var u=c[p];i[u]=e[u]}i.href=i.format();return i}i.protocol=e.protocol;if(!e.host&&!hostlessProtocol[e.protocol]){var d=(e.pathname||"").split("/");while(d.length&&!(e.host=d.shift())){}if(!e.host){e.host=""}if(!e.hostname){e.hostname=""}if(d[0]!==""){d.unshift("")}if(d.length<2){d.unshift("")}i.pathname=d.join("/")}else{i.pathname=e.pathname}i.search=e.search;i.query=e.query;i.host=e.host||"";i.auth=e.auth;i.hostname=e.hostname||e.host;i.port=e.port;if(i.pathname||i.search){var h=i.pathname||"";var f=i.search||"";i.path=h+f}i.slashes=i.slashes||e.slashes;i.href=i.format();return i}var m=i.pathname&&i.pathname.charAt(0)==="/",g=e.host||e.pathname&&e.pathname.charAt(0)==="/",v=g||m||i.host&&e.pathname,y=v,w=i.pathname&&i.pathname.split("/")||[],d=e.pathname&&e.pathname.split("/")||[],b=i.protocol&&!slashedProtocol[i.protocol];if(b){i.hostname="";i.port=null;if(i.host){if(w[0]===""){w[0]=i.host}else{w.unshift(i.host)}}i.host="";if(e.protocol){e.hostname=null;e.port=null;if(e.host){if(d[0]===""){d[0]=e.host}else{d.unshift(e.host)}}e.host=null}v=v&&(d[0]===""||w[0]==="")}if(g){i.host=e.host||e.host===""?e.host:i.host;i.hostname=e.hostname||e.hostname===""?e.hostname:i.hostname;i.search=e.search;i.query=e.query;w=d}else if(d.length){if(!w){w=[]}w.pop();w=w.concat(d);i.search=e.search;i.query=e.query}else if(e.search!=null){if(b){i.host=w.shift();i.hostname=i.host;var _=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(_){i.auth=_.shift();i.hostname=_.shift();i.host=i.hostname}}i.search=e.search;i.query=e.query;if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.href=i.format();return i}if(!w.length){i.pathname=null;if(i.search){i.path="/"+i.search}else{i.path=null}i.href=i.format();return i}var x=w.slice(-1)[0];var k=(i.host||e.host||w.length>1)&&(x==="."||x==="..")||x==="";var A=0;for(var T=w.length;T>=0;T--){x=w[T];if(x==="."){w.splice(T,1)}else if(x===".."){w.splice(T,1);A++}else if(A){w.splice(T,1);A--}}if(!v&&!y){for(;A--;A){w.unshift("..")}}if(v&&w[0]!==""&&(!w[0]||w[0].charAt(0)!=="/")){w.unshift("")}if(k&&w.join("/").substr(-1)!=="/"){w.push("")}var C=w[0]===""||w[0]&&w[0].charAt(0)==="/";if(b){i.hostname=C?"":w.length?w.shift():"";i.host=i.hostname;var _=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(_){i.auth=_.shift();i.hostname=_.shift();i.host=i.hostname}}v=v||i.host&&w.length;if(v&&!C){w.unshift("")}if(w.length>0){i.pathname=w.join("/")}else{i.pathname=null;i.path=null}if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.auth=e.auth||i.auth;i.slashes=i.slashes||e.slashes;i.href=i.format();return i};Url.prototype.parseHost=function(){var e=this.host;var t=portPattern.exec(e);if(t){t=t[0];if(t!==":"){this.port=t.substr(1)}e=e.substr(0,e.length-t.length)}if(e){this.hostname=e}};var parse=urlParse;var resolve=urlResolve;var resolveObject=urlResolveObject;var format=urlFormat;var Url_1=Url;var url={parse:parse,resolve:resolve,resolveObject:resolveObject,format:format,Url:Url_1};!function(e){e()}((function(){var e={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"}},t=6e4,i=60*t,r=24*i;function n(e,t){return new URL(e,e.startsWith("../")||e.startsWith("./")?t:void 0).toString()}function o(e,t){var i=m("a","",{href:e,target:"_new",download:t||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function s(e,t,i){var r=this;return e&&function(n){var o=n.props,s=n.point,l=n.id,c=n.isMulti;if(o)for(var p=0,u=e;p<u.length;p++){var d=u[p];if(d in o){s.meta[t]=(i||a).call(r,c?o[d][c]:o[d],l);break}}}}var a=function(e,t){return parseInt("object"==typeof e?e[t]:e)},l=function(e,t){return e&&t.split(" ").every((function(t){return t&&L.DomUtil.addClass(e,t)}))},c=function(e,t){return e&&t.split(" ").every((function(t){return t&&L.DomUtil.removeClass(e,t)}))},p=function(e,t,i){return(i?l:c)(e,t)},u=function(e,t,i){return t&&c(e,t)||i&&l(e,i)},d=function(e,t,i){return void 0===i&&L.DomUtil.getStyle(e,t)||e.style.setProperty(t,i)},h=function(e,t){for(var i in t)e.setAttribute(i,t[i])},f=function(e,t,i,r){return e[r?"on":"off"](t,i)},m=function(e,t,i,r){var n=L.DomUtil.create(e,t||"");return i&&h(n,i),r&&g(r,n),n},g=function(e,t){return e.appendChild(t)},v=function(e,t,i){return e.insertAdjacentElement(i,t)},y=function(e,t){return(t||document).querySelector(e)},w=function(e,t){for(var i in e)t(e[i],i)},b=function(){return Math.random().toString(36).substr(2,9)},_=L.DomEvent,x=_.on,k=_.off,A=L.Util,T=A.throttle,C=A.wrapNum,S=L.DomUtil.hasClass,E=L.Util.formatNum,P=function(e,t){return t?e<t[0]?t[0]:e>t[1]?t[1]:e:e},M=function(e,t,i){return Math.abs(e-t)>i?t+i*Math.sign(e-t):e};function O(e,t,i){if(t===void 0){t=[]}if(i===void 0){i=[]}switch(!e||typeof e){case"object":var r=i.filter((function(t){return e===t.original}))[0];if(r)return r.copy;var n=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return i.push({original:e,copy:n}),Object.getOwnPropertyNames(e).forEach((function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get||o.set?o:{writable:o.writable,configurable:o.configurable,enumerable:o.enumerable,value:t.includes(r)?o.value:O(o.value,t,i)})})),n;case"function":case"symbol":console.warn("cloneDeep: "+typeof e+"s not fully supported:",e);default:return e}}var I=Object.freeze({__proto__:null,Colors:e,addClass:l,append:g,clamp:P,cloneDeep:O,coordPropsToMeta:s,create:m,drawCanvas:function(e,t){t.classed("canvas-path",!0),e.beginPath(),e.moveTo(0,0);var i=new Path2D(t.attr("d"));e.strokeStyle=t.attr("stroke"),e.fillStyle=t.attr("fill"),e.lineWidth=1.25,e.globalCompositeOperation="source-over",e.globalAlpha=t.attr("stroke-opacity")||.3,e.stroke(i),e.globalAlpha=t.attr("fill-opacity")||.45,e.fill(i),e.globalAlpha=1,e.closePath()},each:w,formatDate:function(e){return e?"time"==e?function(e){return new Date(e).toLocaleTimeString()}:"date"==e?function(e){return new Date(e).toLocaleDateString()}:function(t){return e(t)}:function(e){return new Date(e).toLocaleString().replaceAll("/","-").replaceAll(","," ")}},formatTime:function(e){var n=Math.floor(e/r),o=Math.floor((e-n*r)/i),s=Math.floor((e-n*r-o*i)/t),a=Math.round((e-n*r-o*i-s*t)/1e3);return 60===a&&(s++,a=0),60===s&&(o++,s=0),24===o&&(n++,o=0),(n?n+"d ":"")+o.toString().padStart(2,0)+":"+s.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:S,iAvg:function(e,t,i){if(t===void 0){t=0}if(i===void 0){i=1}return(e+t*(i-1))/i},iMax:function(e,t){if(t===void 0){t=-1/0}return e>t?e:t},iMin:function(e,t){if(t===void 0){t=1/0}return e<t?e:t},iSum:function(e,t){if(t===void 0){t=0}return e+t},insert:v,off:k,on:x,parseDate:function(e,t){return new Date(Date.parse("object"==typeof e?e[t]:e))},parseNumeric:a,randomId:b,removeClass:c,replaceClass:u,resolveURL:n,round:E,saveFile:o,select:y,setAttributes:h,style:d,throttle:T,toggleClass:p,toggleEvent:f,toggleStyle:function(e,t,i,r){return d(e,t,r?i:"")},wrapDelta:M,wrapNum:C}),z={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?url.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?url.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=function(e,t){return e});var B=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:z,__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:function(e,t){var i=this;this.import(this.__D3).then((function(){i._modulesLoaded?(t=t!==null&&t!==void 0?t:e.on&&e,i._addData(e),i._addLayer(t),i._fireEvt("eledata_added",{data:e,layer:t,track_info:i.track_info})):i.once("modules_loaded",(function(){return i.addData(e,t)}))}))},addTo:function(e){if(this.options.detached){var t=y(this.options.elevationDiv),i=this.onAdd(e);t?g(t,i):v(e.getContainer(),i,"afterend")}else L.Control.prototype.addTo.call(this,e);return this},clear:function(){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((function(e){return e.options.renderer.remove()})),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var e=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(t){var i=t.fn,r=t.ctx;return e.off("elechart_updated",i,r)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(e){(e=e||this._layers)&&e.eachLayer&&(e.eachLayer((function(e){return e.remove()})),e.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(e){e=e||this.getBounds(),this._map&&e.isValid()&&this._map.fitBounds(e)},getBounds:function(e){return L.latLngBounds((e||this._data).map((function(e){return e.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){d(this._container,"display","none")},initialize:function(t){t=L.setOptions(this,L.extend({},O(z),t)),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],t.trkStart||z.trkStart),this._end=L.circleMarker([0,0],t.trkEnd||z.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},t.followMarker&&(this._setMapView=T(this._setMapView,300,this)),t.legend&&(t.margins.bottom+=30),t.theme&&(t.polylineSegments.className+=" "+t.theme),!0===t.wptIcons&&(t.wptIcons=z.wptIcons),!0===t.distanceMarkers&&(t.distanceMarkers=z.distanceMarkers),t.trkStart&&this._start.addTo(this._circleMarkers),t.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(t.polylineSegments),L.extend(e,t.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import:function(e,t){switch(e){case this.__D3:t="object"!=typeof d3;break;case this.__TOGEOJSON:t="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:t="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:t="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:t="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:t="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:t="function"!=typeof L.Hotline}return!1!==t?import(n(e,this.options.srcFolder)):Promise.resolve()},load:function(e){var t=this;this._parseFromString(e).then((function(i){return i?t._loadLayer(i):t._loadFile(e)}))},onAdd:function(e){var t=this;this._map=e;var i=this._container=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+b()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((function(){t._initChart(i),t._initButton(i),t._initSummary(i),t._initMarker(e),t._initLayer(e),t._modulesLoaded=!0,t.fire("modules_loaded")})),this.fire("add"),i},onRemove:function(e){this._container=null,e.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),k(e.getContainer(),"mousewheel",this._resetDrag,this),k(e.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:function(){this._resizeChart()},setZFollow:function(e){this.options.zFollow=e},show:function(){d(this._container,"display","block")},_addData:function(e){var t=this;if(e){if("FeatureCollection"===e.type)return w(e.features,(function(e){return t._addData(e)}));if("Feature"===e.type){var i=e.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,e.properties);case"MultiLineString":return w(i.coordinates,(function(i,r){return t._addGeoJSONData(i,e.properties,r)}));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return e._latlngs?this._addGeoJSONData(e._latlngs,e.feature&&e.feature.properties):void 0}},_addGeoJSONData:function(e,t,i){var r=this;var n=t&&t.coordinateProperties||t;e.forEach((function(e,t){var o,s,a,l,c;e.meta=(o=e.meta)!==null&&o!==void 0?o:{time:null,ele:null},e.prev=function(e){return e?r._data[t>0?t-1:0][e]:r._data[t>0?t-1:0]},r.fire("elepoint_init",{point:e,props:n,id:t,isMulti:i}),r._addPoint((s=e.lat)!==null&&s!==void 0?s:e[1],(a=e.lng)!==null&&a!==void 0?a:e[0],(c=(l=e.alt)!==null&&l!==void 0?l:e.meta.ele)!==null&&c!==void 0?c:e[2]),r.fire("elepoint_added",{point:e,index:r._data.length-1}),r._yCoordMax<r._data[r._data.length-1][r.options.yAttr]&&(r._yCoordMax=r._data[r._data.length-1][r.options.yAttr])})),this.fire("eletrack_added",{coords:e,index:this._data.length-1})},_addPoint:function(e,t,i){var r;this.options.reverseCoords&&(r=[t,e],e=r[0],t=r[1],r),this._data.push({x:e,y:t,z:i,latlng:L.latLng(e,t,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(e){return e&&this._layers.addLayer(e),e&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&e.on("add remove",(function(e){var t=e.target,i=e.type;return L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]()})),e},_addMarker:function(e){return e&&this._markers.addLayer(e),e},_initAlmostOverHandler:function(e,t){var i=this;return e&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((function(){e.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&e.almostOver&&e.almostOver.enabled()&&(e.almostOver.addLayer(t),e.on("almost:move",i._onMouseMoveLayer,i).on("almost:out",i._onMouseOut,i),i.once("eledata_clear",(function(){e.almostOver.removeLayer(t),e.off("almost:move",i._onMouseMoveLayer,i).off("almost:out",i._onMouseOut,i)})))})):Promise.resolve()},_initDistanceMarkers:function(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale:function(e){var t=this;return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((function(){e.edgeScaleControl=e.edgeScaleControl||L.control.edgeScale("boolean"!=typeof t.options.edgeScale?t.options.edgeScale:{}).addTo(e)})):Promise.resolve()},_initHotLine:function(e){var t=this;var i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((function(){e.eachLayer((function(e){if("Point"!=e.feature.geometry.type){var r=L.geoJson(e.toGeoJSON(),{coordsToLatLng:function(e){return L.latLng(e[0],e[1],e[2]*(t.options.altitudeFactor||1))}}),n=L.hotline(r.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(t.track_info[i+"_min"])?t.track_info[i+"_min"]:0,max:isFinite(t.track_info[i+"_max"])?t.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(t._hotline),o=e.options.style&&e.options.style.opacity||1;e.on("add remove",(function(t){var i=t.type;e.setStyle({opacity:"add"==i?0:o}),n["add"==i?"addTo":"removeFrom"](e._map),n._renderer&&n._renderer._container.parentElement.insertBefore(n._renderer._container,n._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations:function(e){var t=this;var 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(e),this._initAlmostOverHandler(i,e),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((function(){t.options.polyline&&(t._layers.addLayer(e.addTo(i)),t._circleMarkers.addTo(i)),t.options.autofitBounds&&t.fitBounds(e.getBounds()),i.invalidateSize()}))):this.once("add",(function(){return t._initMapIntegrations(e)}))},_collapse:function(){u(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand:function(){u(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,i=this,r=this.options.theme.split(" ")[0].replace("-theme",""),n=e[r]||{};L.Canvas.include({_fillStroke:function(e,o){if(i._layers.hasLayer(o)){var s=o.options;if(s.color=n.line||n.area||r,s.stroke=!!s.color,t.call(this,e,o),s.stroke&&0!==s.weight){var a=e.globalCompositeOperation||"source-over";e.globalCompositeOperation="destination-over",e.strokeStyle=n.outline||"#FFF",e.lineWidth=1.75*s.weight,e.stroke(),e.globalCompositeOperation=a}}else t.call(this,e,o)}})},_fixTooltipSize:function(){var e=this;this.on("elechart_init",(function(){return e.once("elechart_change elechart_hover",(function(t){var i=t.data,r=t.xCoord;e._chartEnabled&&(e._chart._showDiagramIndicator(i,r),e._chart._showDiagramIndicator(i,r)),e._updateMarker(i)}))}))},_findItemForLatLng:function(e){return this._data[this._chart._findIndexForLatLng(e)]},_findItemForX:function(e){return this._data[this._chart._findIndexForXCoord(e)]},_fireEvt:function(e,t,i){this.fire&&this.fire(e,t,i),this._map&&this._map.fire(e,t,i)},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(e){var t=this;var i=this.options,r=this._map;if(i.detached){var n=this.eleDiv,o=n.offsetWidth,s=n.offsetHeight;o>0&&(i.width=o),s>20&&(i.height=s-20)}else{var a=r.getContainer().clientWidth;i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>a&&(i.width=a-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((function(n){var o=t._chart=new(n[1]||B).Chart(i,t);t._x=t._chart._x,t._y=t._chart._y,d3.select(e).call(o.render()),o.on("reset_drag",t._hideMarker,t).on("mouse_enter",t._onMouseEnter,t).on("dragged",t._onDragEnd,t).on("mouse_move",t._onMouseMove,t).on("mouse_out",t._onMouseOut,t).on("ruler_filter",t._onRulerFilter,t).on("zoom",t._updateChart,t).on("elepath_toggle",t._onToggleChart,t).on("margins_updated",t._resizeChart,t),t.fire("elechart_init"),r.on("zoom viewreset zoomanim",t._hideMarker,t).on("resize",t._resetView,t).on("resize",t._resizeChart,t).on("rotate",t._rotateMarker,t).on("mousedown",t._resetDrag,t),x(r.getContainer(),"mousewheel",t._resetDrag,t),x(r.getContainer(),"touchstart",t._resetDrag,t),x(document,"keydown",t._onKeyDown,t),t.on("eledata_added eledata_loaded",t._updateChart,t).on("eledata_added eledata_loaded",t._updateSummary,t),t._updateChart(),t._updateSummary()}))},_initLayer:function(){var e=this;this._layers.on("layeradd layerremove",(function(t){var i=t.layer,r=t.type;var n=i.getElement&&i.getElement();p(n,e.options.polyline.className+" "+e.options.theme,"layeradd"==r),f(i,"mousemove",e._onMouseMoveLayer.bind(e),"layeradd"==r),f(i,"mouseout",e._onMouseOut.bind(e),"layeradd"==r)}))},_initMarker:function(e){var t=this;var i=e.getPane("elevationPane");i||(i=this._pane=e.createPane("elevationPane",e.getPane("norotatePane")||e.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((function(e){t._marker=new(e[1]||B).Marker(t.options,t),t.fire("elechart_marker")}))},_initButton:function(e){if(L.DomEvent.disableClickPropagation(e).disableScrollPropagation(e),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(x(e,"mouseover",this._expand,this),x(e,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){var t=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},e);x(t,"click",L.DomEvent.stop),x(t,"click",this._toggle,this),x(t,"focus",this._toggle,this),fetch(n(this.__btnIcon,this.options.srcFolder)).then((function(e){return e.ok&&e.text().then((function(e){return t.innerHTML=e}))}))}},_initSummary:function(e){var t=this;this.import(this.__LSUMMARY).then((function(i){t._summary=new(i||B).Summary({summary:t.options.summary},t),t.on("elechart_init",(function(){d3.select(e).call(t._summary.render())}))}))},_loadFile:function(e){var t=this;fetch(e).then((function(e){return e.text()})).then((function(i){t._downloadURL=e,t._parseFromString(i).then((function(e){return e&&t._loadLayer(e)}))})).catch((function(e){return console.warn(e)}))},_loadModules:function(e){var t=this;var i=(e=e.map((function(e){return"string"==typeof e&&void 0!==B[e]?B[e]:e}))).map((function(e){return"string"==typeof e&&t.import(t.__modulesFolder+e.toLowerCase()+".js")||e instanceof Promise&&e||Promise.resolve()}));return Promise.all(i).then((function(i){w(i,(function(t,i){var r;var n=t&&Object.keys(t)[0];n&&(e[i]=B[n]=(r=B[n])!==null&&r!==void 0?r:t[n])})),w(e,(function(e){return["function","object"].includes(typeof e)&&t._registerHandler(e)}))}))},_loadLayer:function(e){var t=this;var i=this.options,r=i.polyline,n=i.theme,o=i.waypoints,s=i.wptIcons,a=i.wptLabels,l=i.distanceMarkers,c=L.extend({},r);n&&(c.className+=" "+n),e.name&&(this.track_info.name=e.name);var p=L.geoJson(e,{distanceMarkers:l,style:c,pointToLayer:function(e,i){if(o){var r=e.properties,n=r.desc,l=r.name,c=r.sym;if(n=n||"",l=l||"",[!0,"dots"].includes(o)&&t._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(a)?l:""}),[!0,"markers"].includes(o)&&0!=s)return t._registerMarker({latlng:i,sym:(c!==null&&c!==void 0?c:l).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(a)&&(l||n)&&decodeURI("<b>"+l+"</b>"+(n.length>0?"<br>"+n:""))})}},onEachFeature:function(e,i){return e.geometry&&"Point"!=e.geometry.type&&t.addData(e,i)}});return this.import(this.__D3).then((function(){t._initMapIntegrations(p);var i={data:e,layer:p,name:t.track_info.name,track_info:t.track_info};t._modulesLoaded?t._fireEvt("eledata_loaded",i):t.once("modules_loaded",(function(){return t._fireEvt("eledata_loaded",i)}))})),p},_onDragEnd:function(e){var t=e.dragstart,i=e.dragend;this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown:function(e){var t=e.key;this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter:function(){this.fire("elechart_enter")},_onMouseMove:function(e){var t=e.xCoord;if(this._chartEnabled&&this._data.length){var 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:function(e){var t=e.latlng;if(this._data.length){var i=this._findItemForLatLng(t);if(i){var r=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,r),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:r})}}},_onMouseOut:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter:function(e){var t=e.coords;this._updateMapSegments(t)},_onToggleChart:function(e){var t=this;var i=e.name,r=e.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(e){return p(e.getElement&&e.getElement(),t.options.polyline.className+" "+t.options.theme,t._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString:function(e){try{return JSON.parse(e)}catch(e){}},_parseFromString:function(e){var t=this;return new Promise((function(i){return t.import(t.__TOGEOJSON).then((function(){var r;try{r=t._parseFromXMLString(e.trim())}catch(i){r=t._parseFromGeoJSONString(e.toString())}r&&(r.name=r.name||(t._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(r)}))}))},_parseFromXMLString:function(e){var t;if(0!=e.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(e,"text/xml"),r=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[r](i);return o.name=n.length>0?((t=Array.from(n).find((function(e){return"trk"==e.parentElement.tagName})))!==null&&t!==void 0?t:n[0]).textContent:"",o},_registerAreaPath:function(e){var t=this;this.on("elechart_init",(function(){return t._chart._registerAreaPath(e)}))},_registerAxisGrid:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisGrid(e)}))},_registerAxisScale:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisScale(e)}))},_registerCheckPoint:function(e){var t=this;var i=function(){return t._chart._registerCheckPoint(e)};this.on("elechart_updated",i).once("eledata_clear",(function(){return t.off("elechart_updated",i)}))},_registerDataAttribute:function(e){var t=this;e.coordPropsToMeta&&this.on("elepoint_init",(function(i){return e.coordPropsToMeta.call(t,i)}));var i,r,n,o=e.attr||e.name,s={};this.on("elepoint_added",(function(a){var l=a.index,c=a.point;if(i=l,n=r!==null&&r!==void 0?r:t._data[i],r=t._data[i],r[o]=e.pointToAttr.call(t,c,i),i>0&&isNaN(n[o])&&(isNaN(s[o])||isNaN(r[o])?isNaN(s[o])?isNaN(r[o])||(n[o]=r[o]):n[o]=s[o]:n[o]=(s[o]+r[o])/2,e.meta&&(n[e.meta]=n[o])),!isNaN(r[o])){if(s[o]=r[o],e.deltaMax&&(r[o]=M(r[o],n[o],e.deltaMax)),e.clampRange&&(r[o]=P(r[o],e.clampRange)),isNaN(e.decimals)||(r[o]=E(r[o],e.decimals)),e.stats)for(var p in e.stats){var u=(e.statsName||o)+(""!=p?"_":"");t.track_info[u+p]=e.stats[p].call(t,r[o],t.track_info[u+p],t._data.length)}e.onPointAdded&&e.onPointAdded.call(t,r[o],i,c)}}))},_registerHandler:function(e){var t=this;if("function"==typeof e)return this._registerHandler(e.call(this));var i=e.name,r=e.attr,n=e.required,o=e.deltaMax,a=e.clampRange,l=e.decimals,c=e.meta,p=e.unit,u=e.coordinateProperties,d=e.coordPropsToMeta,h=e.pointToAttr,f=e.onPointAdded,m=e.stats,g=e.statsName,v=e.grid,y=e.scale,b=e.path,_=e.tooltip,x=e.summary;(this.options[i]||n)&&(this._registerDataAttribute({name:i,attr:r,meta:c,deltaMax:o,clampRange:a,decimals:l,coordPropsToMeta:s(u,c||i,d),pointToAttr:h,onPointAdded:f,stats:m,statsName:g}),v&&this._registerAxisGrid(L.extend({name:i},v)),"summary"!==this.options[i]&&(y&&this._registerAxisScale(L.extend({name:i,label:p},y)),b&&this._registerAreaPath(L.extend({name:i},b))),(_||e.tooltips)&&w(__spreadArray([_],e.tooltips||[],true),(function(e){return e&&t._registerTooltip(L.extend({name:i},e))})),x&&(w(x,(function(e,t){return x[t]=L.extend({unit:p},e)})),this._registerSummary(x)))},_registerMarker:function(e){var t=e.latlng,i=e.sym,r=e.content;var n=this.options.wptIcons;n.hasOwnProperty(i)||(n[i]=L.divIcon(L.extend({},n[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));var o=L.marker(t,{icon:n[i]});return r&&(o.bindPopup(r,{className:"elevation-popup",keepInView:!0}).openPopup(),o.bindTooltip(r,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(o)},_registerTooltip:function(e){var t=this;e.chart&&this.on("elechart_init",(function(){return t._chart._registerTooltip(L.extend({},e,{value:e.chart}))})),e.marker&&this.on("elechart_marker",(function(){return t._marker._registerTooltip(L.extend({},e,{value:e.marker}))}))},_registerSummary:function(e){var t=this;this.on("elechart_summary",(function(){return t._summary._registerSummary(e)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=d(this._container,"display")){var e=this.options,t=e.detached?(this.eleDiv||this._container).offsetWidth:P(e._maxWidth,[0,this._map.getContainer().clientWidth-30]);t&&(e.width=t,this._chart&&this._chart._chart&&(this._chart._chart._resize(e),this._updateChart())),this._updateMapSegments()}},_toggle:function(){S(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(e){if(this._map&&this.options.followMarker){var t=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(e.latlng,t<i?i:t,{animate:!0,duration:.25}):this._map.getBounds().contains(e.latlng)||this._map.setView(e.latlng,t,{animate:!0,duration:.25})}},_updateChart:function(){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:function(e){this._marker&&this._marker.update({map:this._map,item:e,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(e){this._markedSegments.setLatLngs(e||[]),e&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var e=this;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>",y(".download a",this._summary._container).onclick=function(t){t.preventDefault();var i={downloadLink:e.options.downloadLink,confirm:o.bind(e,e._downloadURL)};"modal"==e.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=e.options.downloadLink&&!0!==e.options.downloadLink||i.confirm(),e.fire("eletrack_download",i)}))},_width:function(){if(this._chart)return this._chart._width();var e=this.options,t=e.width,i=e.margins;return t-i.left-i.right},_height:function(){if(this._chart)return this._chart._height();var e=this.options,t=e.height,i=e.margins;return t-i.top-i.bottom}});B.Utils=I,L.control.elevation=function(e){return new B(e)}}));createCommonjsModule((function(e,t){!function(e,i){i(t)}(commonjsGlobal,(function(e){var t=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(e){L.Util.setOptions(this,e),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 t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,r=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,s=this.options.chunkInterval,a=this.options.chunkProgress,l=e.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),d=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var f=(new Date).getTime()-h;if(s<f)break}if((i=e[c])instanceof L.LayerGroup)p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),g=m[0]===i?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(i),t||this.fire("layeradd",{layer:i})}a&&a(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var h=this._needsClustering;c<l;c++)(i=e[c])instanceof L.LayerGroup?(p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length):i.getLatLng?this.hasLayer(i)||h.push(i):n.addLayer(i);return this},removeLayers:function(e){var t,i,r=e.length,n=this._featureGroup,o=this._nonPointGroup,s=!0;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=e.slice(),l=r;for(t=0;t<l;t++)(i=a[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),l=a.length):this._unspiderfyLayer(i)}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,r,n,o=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),r=o.length-1;0<=r;r--){for(i=!0,n=s.length-1;0<=n;n--)if(s[n].layer===o[r]){i=!1;break}i&&e.call(t,o[r])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer((function(t){e.push(t)})),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer((function(i){L.stamp(i)===e&&(t=i)})),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return!0;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return!1;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var r=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),e.__parent.zoomToBounds())},onAdd:function(e){var t,i,r;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(r=this._needsRemoving[t]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.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(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=t&&r[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var r=this._gridClusters,n=this._gridUnclustered,o=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var l,c=e.__parent,p=c._markers;for(this._arraySplice(p,e);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)t&&c._childCount<=1?(l=c._markers[0]===e?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,s.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,s.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(o.removeLayer(c),i||o.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(t||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(e||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(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 e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var n=e;t<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,r,n=this._gridClusters,o=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);s<=t;t--){i=this._map.project(e.getLatLng(),t);var a=n[t].getNearObject(i);if(a)return a._addChild(e),void(e.__parent=a);if(a=o[t].getNearObject(i)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,t,a,e);n[t].addObject(c,this._map.project(c._cLatLng,t)),a.__parent=c;var p=e.__parent=c;for(r=t-1;r>l._zoom;r--)p=new this._markerCluster(this,r,p),n[r].addObject(p,this._map.project(a.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(a,t)}o[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()}))},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&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,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):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(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,r=e.getLayers(),n=0;for(t=t||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});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(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,e,o,(function(o){var s,a=o._latlng,l=o._markers;for(r.contains(a)||(a=null),o._isSingleParent()&&e+1===t?(n.removeLayer(o),o._recursivelyAddChildrenToMap(null,t,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,t,r)),i=l.length-1;0<=i;i--)s=l[i],r.contains(s._latlng)||n.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,t),n.eachLayer((function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()})),this._topClusterLevel._recursively(r,e,t,(function(e){e._recursivelyRestoreChildPositions(t)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,e,o,(function(e){n.removeLayer(e),e.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,r=this._featureGroup;r.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue((function(){r.removeLayer(e),e.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,t+1,i);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===e._childCount){var s=e._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else e._recursively(r,i,n,(function(e){e._recursivelyRemoveChildrenFromMap(r,n,t+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var r=this._markers.length-1;0<=r;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),o=this._zoom+1,s=r.getZoom();0<i.length&&o<n;){o++;var a=[];for(t=0;t<i.length;t++)a=a.concat(i[t]._childClusters);i=a}o<n?this._group._map.setView(this._latlng,o):n<=s?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_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(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,r,n=this._markers,o=this._childClusters,s=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),e=0;e<n.length;e++)i=n[e]._latlng,this._bounds.extend(i),s+=i.lat,a+=i.lng;for(e=0;e<o.length;e++)(t=o[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,s+=i.lat*r,a+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(s/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,(function(e){var i,r,n=e._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}),(function(e){var i,r,n=e._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,r){this._recursively(e,r,t,(function(n){n._recursivelyAnimateChildrenIn(e,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(e,t,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,(function(e){e.clusterShow()}))},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,(function(r){if(t!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var o=r._markers[n];i.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(function(t){t._addToMap(e)}))},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-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(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var n,o;this._recursively(e,t-1,i-1,(function(e){for(o=e._markers.length-1;0<=o;o--)n=e._markers[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(e){for(o=e._childClusters.length-1;0<=o;o--)n=e._childClusters[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(e,t,i,r,n){var o,s,a=this._childClusters,l=this._zoom;if(t<=l&&(r&&r(this),n&&l===i&&n(this)),l<t||l<i)for(o=a.length-1;0<=o;o--)(s=a[o])._boundsNeedUpdate&&s._recalculateBounds(),e.intersects(s._bounds)&&s._recursively(e,t,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),r=this._getCoord(t.y),n=this._grid,o=n[r]=n[r]||{},s=o[i]=o[i]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,s.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,r,n=this._getCoord(t.x),o=this._getCoord(t.y),s=this._grid,a=s[o]=s[o]||{},l=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=l.length;i<r;i++)if(l[i]===e)return l.splice(i,1),1===r&&delete a[n],!0},eachObject:function(e,t){var i,r,n,o,s,a,l=this._grid;for(i in l)for(r in s=l[i])for(n=0,o=(a=s[r]).length;n<o;n++)e.call(t,a[n])&&(n--,o--)},getNearObject:function(e){var t,i,r,n,o,s,a,l,c=this._getCoord(e.x),p=this._getCoord(e.y),u=this._objectPoint,d=this._sqCellSize,h=null;for(t=p-1;t<=p+1;t++)if(n=this._grid[t])for(i=c-1;i<=c+1;i++)if(o=n[i])for(r=0,s=o.length;r<s;r++)a=o[r],((l=this._sqDist(u[L.Util.stamp(a)],e))<d||l<=d&&null===h)&&(d=l,h=a);return h},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,r,n,o=0,s=null,a=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(n=this.getDistant(r,e))&&(a.push(r),o<n&&(o=n,s=r));return{maxPoint:s,newPoints:a}},buildConvexHull:function(e,t){var i=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)):[e[0]]},getConvexHull:function(e){var t,i=!1,r=!1,n=!1,o=!1,s=null,a=null,l=null,c=null,p=null,u=null;for(t=e.length-1;0<=t;t--){var d=e[t];(!1===i||d.lat>i)&&(i=(s=d).lat),(!1===r||d.lat<r)&&(r=(a=d).lat),(!1===n||d.lng>n)&&(n=(l=d).lng),(!1===o||d.lng<o)&&(o=(c=d).lng)}return p=r!==i?(u=a,s):(u=c,l),[].concat(this.buildConvexHull([u,p],e),this.buildConvexHull([p,u],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),r=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),r.push(e);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 e,t=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,o=this._2PI/e,s=[];for(n=Math.max(n,35),s.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*o,s[i]=new L.Point(t.x+n*Math.cos(r),t.y+n*Math.sin(r))._round();return s},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,o=r*this._spiralFootSeparation,s=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(i=l.length=e;0<=i;i--)i<e&&(l[i]=new L.Point(t.x+n*Math.cos(a),t.y+n*Math.sin(a))._round()),n+=s/(a+=o/n+5e-4*i);return l},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,n=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=o.length-1;0<=t;t--)e=o[t],n.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(r.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,n,o,s=this._group,a=s._map,l=s._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=!0,i=0;i<e.length;i++)o=a.layerPointToLatLng(t[i]),r=e[i],n=new L.Polyline([this._latlng,o],c),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),s._ignoreMove=!1,s.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,n,o,s,a,l=this,c=this._group,p=c._map,u=c._featureGroup,d=this._latlng,h=p.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,i=0;i<e.length;i++)r=e[i],a=p.layerPointToLatLng(t[i]),n=new L.Polyline([d,a],m),p.addLayer(n),r._spiderLeg=n,f&&(s=(o=n._path).getTotalLength()+.1,o.style.strokeDasharray=s,o.style.strokeDashoffset=s),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(h);for(c._forceLayout(),c._animationStart(),i=e.length-1;0<=i;i--)a=p.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),f&&((o=(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:e})}),200)},_animationUnspiderfy:function(e){var t,i,r,n,o,s,a=this,l=this._group,c=l._map,p=l._featureGroup,u=e?c._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(t=d[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,s=!0,t._setPos&&(t._setPos(u),s=!1),t.clusterHide&&(t.clusterHide(),s=!1),s&&p.removeLayer(t),h&&(o=(n=(r=t._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=o,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var e=0;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&e++;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&p.removeLayer(t),c.removeLayer(t._spiderLeg),delete t._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:d})}),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(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:!0})}))}));function getTrekGeometry(e){return fetch("".concat(state.api,"trek/").concat(e,"/?language=").concat(state.language,"&published=true&fields=geometry"),{cache:"default"}).then((function(e){return e.json()}))}var grwMapCss='@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}';var GrwMap=function(){function e(e){registerInstance(this,e);this.trekCardPress=createEvent(this,"trekCardPress",7);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.touristicEventCardPress=createEvent(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}e.prototype.onCenterOnMap=function(e){this.map.setView(new leafletSrc.LatLng(e.detail.latitude,e.detail.longitude),17,{animate:false})};e.prototype.stepsIsInViewport=function(e){if(this.currentStepsLayer){this.handleLayerVisibility(e.detail,this.currentStepsLayer)}};e.prototype.descriptionIsInViewport=function(e){if(this.currentReferencePointsLayer){this.handleLayerVisibility(e.detail,this.currentReferencePointsLayer)}};e.prototype.parkingIsInViewport=function(e){if(this.currentParkingLayer){this.handleLayerVisibility(e.detail,this.currentParkingLayer)}};e.prototype.onInformationDesksIsInViewport=function(e){if(this.currentInformationDesksLayer){this.handleLayerVisibility(e.detail,this.currentInformationDesksLayer)}};e.prototype.sensitiveAreaIsInViewport=function(e){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(e.detail,this.currentSensitiveAreasLayer)}};e.prototype.poiIsInViewport=function(e){if(this.currentPoisLayer){this.handleLayerVisibility(e.detail,this.currentPoisLayer)}};e.prototype.touristicContentsIsInViewport=function(e){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(e.detail,this.currentToutisticContentsLayer)}};e.prototype.touristicEventsIsInViewport=function(e){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(e.detail,this.currentToutisticEventsLayer)}};e.prototype.onCardTrekMouseOver=function(e){if(!state.parentTrek&&(!state.selectedTrekId||state.selectedTrekId!==e.detail)){state.selectedTrekId=e.detail;this.hideTrekLine();this.showTrekLine(e.detail);this.addSelectedCurrentTrek(e.detail)}else if(state.parentTrek){this.stepPopupIsOpen=false;state.selectedStepId=null;this.addSelectedCurrentStep(e.detail)}};e.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&state.selectedTrekId){this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.currentStepsLayer){state.selectedStepId=null;this.removeSelectedCurrentStep()}};e.prototype.onTouristicContentMouseOver=function(e){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.addSelectedTouristicContent(e.detail)};e.prototype.onTouristicContentMouseLeave=function(){state.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};e.prototype.onTouristicEventMouseOver=function(e){this.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;this.addSelectedTouristicEvent(e.detail)};e.prototype.onTouristicEventMouseLeave=function(){state.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};e.prototype.componentDidLoad=function(){var e=this;this.map=leafletSrc.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});leafletSrc.control.scale({metric:true,imperial:false}).addTo(this.map);leafletSrc.control.locate({showPopup:false}).addTo(this.map);var t=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(e,t){return t===0?e:"http"+e}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){e.tileLayer.push({key:"".concat(t[n]),value:leafletSrc.tileLayer(i,{maxZoom:e.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].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=leafletSrc.control.layers(this.tileLayer.reduce((function(e,t){var i;return Object.assign(e,(i={},i[t.key]=t.value,i))}),{}),{},{collapsed:true}).addTo(this.map);leafletSrc.Control.Contract=leafletSrc.Control.extend({onAdd:function(){var t=leafletSrc.DomUtil.create("div");t.className="leaflet-bar leaflet-control";var i=t.appendChild(leafletSrc.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";t.onclick=function(t){e.bounds&&e.map.fitBounds(e.bounds);t.preventDefault()};return t}});leafletSrc.control.contract=function(e){return new leafletSrc.Control.Contract(e)};leafletSrc.control.contract({position:"topleft"}).addTo(this.map)}if(state.currentTrek){this.addTrek()}else if(state.currentTreks){this.addTreks()}else if(state.currentTouristicContent){this.addTouristicContent()}else if(state.currentTouristicEvent){this.addTouristicEvent()}else if(state.touristicContents){this.addTouristicContents()}else if(state.touristicEvents){this.addTouristicEvents()}onChange("currentTreks",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(state.currentTrek){e.removeTreks();e.addTrek()}else if(state.currentTreks){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvents();e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks(true)}}));onChange("currentTrek",(function(){if(state.currentTrek){e.removeTreks();e.addTrek()}else if(state.currentTreks){e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks()}}));onChange("currentTouristicContent",(function(){if(state.currentTouristicContent){e.removeTrek();e.removeTouristicContents();e.addTouristicContent()}else if(state.touristicContents){e.removeTouristicContent();e.addTouristicContents()}else if(state.currentTrek){e.removeTouristicContent();e.addTrek()}else if(state.currentTreks){e.removeTouristicContent();e.addTreks()}}));onChange("currentTouristicEvent",(function(){if(state.currentTouristicEvent){e.removeTrek();e.removeTouristicEvents();e.addTouristicEvent()}else if(state.currentTrek){e.removeTouristicEvent();e.addTrek()}else if(state.currentTreks){e.removeTouristicEvent();e.addTreks()}}));onChange("currentTouristicContents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(state.currentTouristicContent){e.removeTouristicContents();e.addTouristicContent()}else if(state.currentTouristicContents){e.removeTreks();e.removeTouristicEvents();e.removeTouristicContent();e.addTouristicContents(true)}}));onChange("currentTouristicEvents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(state.currentTouristicEvent){e.removeTouristicEvents();e.addTouristicEvent()}else if(state.currentTouristicEvents){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvent();e.addTouristicEvents(true)}}));onChange("mode",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(state.mode==="treks"){if(state.treks){e.removeTouristicContents();e.removeTouristicEvents();e.addTreks(true)}}else if(state.mode==="touristicContents"){if(state.touristicContents){e.removeTreks();e.removeTouristicEvents();e.addTouristicContents(true)}}else if(state.mode==="touristicEvents"){if(state.touristicEvents){e.removeTreks();e.removeTouristicContents();e.addTouristicEvents(true)}}}))};e.prototype.handleLayerVisibility=function(e,t){if(e&&!this.map.hasLayer(t)){t.addTo(this.map)}else if(this.map.hasLayer(t)&&!this.userLayersState[t._leaflet_id]){this.map.removeLayer(t)}this.handleLayersControlEvent()};e.prototype.addTreks=function(e){var t=this;if(e===void 0){e=false}var i;state.treksWithinBounds=state.currentTreks;var r=[];var n={type:"FeatureCollection",features:[]};if(state.currentTreks){var o=function(e){r.push(e.departure_geom);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(i=state.practices.find((function(t){return t.id===e.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var s=0,a=state.currentTreks;s<a.length;s++){var l=a[s];o(l)}}if(!this.treksLayer){if(r.length>0&&!state.currentMapBounds||e){this.bounds=leafletSrc.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.treksLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.practice?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return t.trekCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.hideTrekLine();t.showTrekLine(e.properties.id);t.addSelectedCurrentTrek(e.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return leafletSrc.divIcon({html:"<div>"+e.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(r.length>0){this.bounds=leafletSrc.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n);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)};e.prototype.removeTreks=function(){if(this.treksLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};e.prototype.handleTreksWithinBounds=function(){var e=this;if(state.currentTreks&&!state.currentMapBounds||state.currentTreks&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.treksWithinBounds=state.currentTreks.filter((function(t){return e.map.getBounds().contains(leafletSrc.latLng(t.departure_geom[1],t.departure_geom[0]))}))}};e.prototype.handleTouristicContentsWithinBounds=function(){var e=this;if(state.currentTouristicContents&&!state.currentMapBounds||state.currentTouristicContents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicContentsWithinBounds=state.currentTouristicContents.filter((function(t){return e.map.getBounds().contains(leafletSrc.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.handleTouristicEventsWithinBounds=function(){var e=this;if(state.currentTouristicEvents&&!state.currentMapBounds||state.currentTouristicEvents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicEventsWithinBounds=state.currentTouristicEvents.filter((function(t){return e.map.getBounds().contains(leafletSrc.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.addTrek=function(){var e=this;var t,i,r,n;this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();var o={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=leafletSrc.geoJSON(o,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){var s={type:"Feature",properties:{},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=leafletSrc.geoJSON(s,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false,interactive:false})}})}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){var a={type:"FeatureCollection",features:[]};for(var l=0,c=state.currentSensitiveAreas;l<c.length;l++){var p=c[l];a.features.push({type:"Feature",properties:{name:p.name},geometry:p.geometry})}this.currentSensitiveAreasLayer=leafletSrc.geoJSON(a,{onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="sensitive-area-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="sensitive-area-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))},style:function(){return{color:e.colorSensitiveArea}}})}if(state.currentPois&&state.currentPois.length>0){var u={type:"FeatureCollection",features:[]};var d=function(e){u.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=state.poiTypes.find((function(t){return t.id===e.type})))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})};for(var h=0,f=state.currentPois;h<f.length;h++){var m=f[h];d(m)}this.currentPoisLayer=leafletSrc.geoJSON(u,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type_pictogram?'<img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="poi-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="poi-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(state.trekTouristicContents&&state.trekTouristicContents.length>0){var g={type:"FeatureCollection",features:[]};var v=function(e){g.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(i=state.touristicContentCategories.find((function(t){return t.id===e.category})))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})};for(var y=0,w=state.trekTouristicContents;y<w.length;y++){var b=w[y];v(b)}this.currentToutisticContentsLayer=leafletSrc.geoJSON(g,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.category_pictogram?'<img crossorigin="anonymous "src='.concat(e.properties.category_pictogram," />"):"<img />",className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="touristic-content-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-content-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(state.touristicEvents&&state.touristicEvents.length>0){var _={type:"FeatureCollection",features:[]};var x=function(e){_.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(r=state.touristicEventTypes.find((function(t){return t.id===e.type})))===null||r===void 0?void 0:r.pictogram},geometry:e.geometry})};for(var k=0,A=state.touristicEvents;k<A.length;k++){var T=A[k];x(T)}this.currentToutisticEventsLayer=leafletSrc.geoJSON(_,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type_pictogram?'\n <img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="touristic-event-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-event-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(state.currentInformationDesks&&state.currentInformationDesks.length>0){var C={type:"FeatureCollection",features:[]};for(var L=0,S=state.currentInformationDesks.filter((function(e){return state.currentTrek.information_desks.includes(e.id)}));L<S.length;L++){var E=S[L];if(E.latitude&&E.longitude){C.features.push({type:"Feature",properties:{name:E.name,type_pictogram:E.type.pictogram},geometry:{type:"Point",coordinates:[Number(E.longitude),Number(E.latitude)]}})}}this.currentInformationDesksLayer=leafletSrc.geoJSON(C,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type_pictogram?'<img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="information-desks-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="information-desks-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(state.currentTrek.points_reference){var P={type:"FeatureCollection",features:[]};P.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});var M=0;this.currentReferencePointsLayer=leafletSrc.geoJSON(P,{pointToLayer:function(e,t){M+=1;return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:M,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){var O={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var I=function(e){O.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(n=state.practices.find((function(t){return t.id===e.practice})))===null||n===void 0?void 0:n.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var z=0,B=state.currentTrekSteps;z<B.length;z++){var D=B[z];I(D)}}var F=0;this.currentStepsLayer=leafletSrc.geoJSON(O,{pointToLayer:function(e,t){F+=1;return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(F,"</div></div>"),className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="trek-departure-popup";if(t.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=t.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="trek-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return e.trekCardPress.emit(t.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){e.addSelectedCurrentStep(t.properties.id,i.latlng)}))}})}var j={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!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=leafletSrc.control.elevation(Object.assign({},j)).addTo(this.map);var N=JSON.stringify({name:"".concat(state.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:state.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(N);var R={};if(this.currentStepsLayer){R[translate$1[state.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){R[translate$1[state.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){R[translate$1[state.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){R[translate$1[state.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){R[translate$1[state.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){R[translate$1[state.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){R[translate$1[state.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){R[translate$1[state.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(R).forEach((function(t){e.layersControl.addOverlay(R[t],t)}))}else{this.layersControl=leafletSrc.control.layers({},R,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=leafletSrc.latLngBounds(state.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.addSelectedCurrentTrek=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(state.currentTreks){var o=state.currentTreks.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.departure_geom},properties:{id:o.id,name:o.name,practice:(r=state.practices.find((function(e){return e.id===o.practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();state.selectedTrekId=e;this.selectedCurrentTrekLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:e.properties.practice?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"selected-trek-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return i.trekCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.trekPopupIsOpen){state.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}));t.on("popupopen",(function(){i.trekPopupIsOpen=Boolean(state.selectedTrekId)}));t.on("popupclose",(function(){if(state.selectedTrekId){i.trekPopupIsOpen=false;state.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentTrek=function(){state.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};e.prototype.addSelectedCurrentStep=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var o=state.currentTrekSteps.findIndex((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:state.currentTrekSteps[o].departure_geom},properties:{id:state.currentTrekSteps[o].id,name:state.currentTrekSteps[o].name,practice:(r=state.practices.find((function(e){return e.id===state.currentTrekSteps[o].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:state.currentTrekSteps[o].attachments&&state.currentTrekSteps[o].attachments.length>0&&state.currentTrekSteps[o].attachments[0].thumbnail,index:o+1}})}this.removeSelectedCurrentStep();state.selectedStepId=e;this.selectedCurrentStepLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(e.properties.index,"</div></div>"),className:"selected-step-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return i.trekCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.stepPopupIsOpen){state.selectedTrekId=null;i.removeSelectedCurrentStep()}}));t.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(state.selectedStepId)}));t.on("popupclose",(function(){if(state.selectedStepId){i.stepPopupIsOpen=false;state.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentStep=function(){if(state.selectedStepId){state.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};e.prototype.handleLayersControlEvent=function(){var e=this;var t=this.layersControl._layerControlInputs;t.forEach((function(t){if(e.layersControl._layers.find((function(e){return e.layer._leaflet_id===t.layerId})).overlay){t.onchange=function(i){e.userLayersState[t.layerId]=i.target.checked}}}))};e.prototype.removeTrek=function(){var e=this;if(this.layersControl){if(!this.layersControl._layers.some((function(e){return!e.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(e){return e.overlay})).forEach((function(t){e.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}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};e.prototype.showTrekLine=function(e){var t=this;getTrekGeometry(e).then((function(e){var i={type:"Feature",geometry:e.geometry,properties:{}};t.currentTrekLayer=leafletSrc.geoJSON(i,{style:function(){return{color:t.colorTrekLine}},interactive:false}).addTo(t.map)}))};e.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};e.prototype.addTouristicContent=function(){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.removeSelectedTouristicContent();var e={type:"FeatureCollection",features:[]};if(state.currentTouristicContent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicContent.geometry.coordinates},properties:{id:state.currentTouristicContent.id,name:state.currentTouristicContent.name,practice:state.touristicContentCategories.find((function(e){return e.id===state.currentTouristicContent.category})).pictogram}})}if(!this.currentToutisticContentLayer){this.currentToutisticContentLayer=leafletSrc.geoJSON(e,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.practice?'<div class="touristic-content-marker-container"><img crossorigin="anonymous "src='.concat(e.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([state.currentTouristicContent.geometry.coordinates[1],state.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};e.prototype.addTouristicContents=function(e){var t=this;if(e===void 0){e=false}state.touristicContentsWithinBounds=state.currentTouristicContents;var i=[];var r={type:"FeatureCollection",features:[]};if(state.currentTouristicContents){var n=function(e){i.push(e.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,practice:state.touristicContentCategories.find((function(t){return t.id===e.category})).pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var o=0,s=state.currentTouristicContents;o<s.length;o++){var a=s[o];n(a)}}if(!this.toutisticContentsLayer){if(i.length>0&&!state.currentMapBounds||e){this.bounds=leafletSrc.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.toutisticContentsLayer=leafletSrc.geoJSON(r,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.practice?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-content-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-content-button";s.onclick=function(){return t.touristicContentCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedTouristicContent(e.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return leafletSrc.divIcon({html:"<div>"+e.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=leafletSrc.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(r);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)};e.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};e.prototype.addTouristicEvent=function(){var e={type:"FeatureCollection",features:[]};if(state.currentTouristicEvent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicEvent.geometry.coordinates},properties:{id:state.currentTouristicEvent.id,name:state.currentTouristicEvent.name,type:state.touristicEventTypes.find((function(e){return e.id===state.currentTouristicEvent.type})).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=leafletSrc.geoJSON(e,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.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([state.currentTouristicEvent.geometry.coordinates[1],state.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};e.prototype.addSelectedTouristicContent=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(state.touristicContents){var o=state.touristicContents.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(r=state.touristicContentCategories.find((function(e){return e.id===o.category})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=e;this.selectedTouristicContentLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:e.properties.category?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.category," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-content-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-content-button";s.onclick=function(){return i.touristicContentCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}));t.on("popupopen",(function(){i.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));t.on("popupclose",(function(){if(state.selectedTouristicContentId){i.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}))}}).addTo(this.map)};e.prototype.removeSelectedTouristicContent=function(){state.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};e.prototype.addTouristicEvents=function(e){var t=this;if(e===void 0){e=false}var i;state.touristicEventsWithinBounds=state.currentTouristicEvents;var r=[];var n={type:"FeatureCollection",features:[]};if(state.currentTouristicEvents){var o=function(e){r.push(e.geometry.coordinates);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,type:(i=state.touristicEventTypes.find((function(t){return t.id===e.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var s=0,a=state.currentTouristicEvents;s<a.length;s++){var l=a[s];o(l)}}if(!this.toutisticEventsLayer){if(r.length>0&&!state.currentMapBounds||e){this.bounds=leafletSrc.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.toutisticEventsLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.type," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-event-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-event-button";s.onclick=function(){return t.touristicEventCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedTouristicEvent(e.properties.id,i.latlng)}))}});this.touristicEventsMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return leafletSrc.divIcon({html:"<div>"+e.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(r.length>0){this.bounds=leafletSrc.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticEventsLayer.clearLayers();this.toutisticEventsLayer.addData(n);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)};e.prototype.removeTouristicEvents=function(){if(this.toutisticEventsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.toutisticEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};e.prototype.addSelectedTouristicEvent=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(state.touristicEvents){var o=state.touristicEvents.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(r=state.touristicEventTypes.find((function(e){return e.id===o.type})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();state.selectedTouristicEventId=e;this.selectedTouristicEventLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:e.properties.category?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.category," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"selected-touristic-event-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-event-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-event-button";s.onclick=function(){return i.touristicEventCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.touristicEventPopupIsOpen){state.selectedTouristicEventId=null;i.removeSelectedTouristicEvent()}}));t.on("popupopen",(function(){i.touristicEventPopupIsOpen=Boolean(state.selectedTouristicEventId)}));t.on("popupclose",(function(){if(state.selectedTouristicEventId){i.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;i.removeSelectedTouristicEvent()}}))}}).addTo(this.map)};e.prototype.removeSelectedTouristicEvent=function(){state.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/layers.svg"));var i=getAssetPath("".concat("","assets/contract.svg"));return h(Host,{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(".concat(t,")"),"--contract-image-src":"url(".concat(i,")"),"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},h("div",{id:"map",style:{},class:state.currentTrek?"trek-map":"treks-map",ref:function(t){return e.mapRef=t}}),state.currentTrek&&h("div",null,h("div",{id:"elevation",ref:function(t){return e.elevationRef=t}}),h("div",{class:"map-bottom-space"})),!this.mapIsReady&&h("div",{class:"map-loader-container"},h("span",{class:"loader"})))};return e}();GrwMap.style=grwMapCss;function isObject$1(e){return e!==null&&typeof e==="object"&&"constructor"in e&&e.constructor===Object}function extend$1(e,t){if(e===void 0){e={}}if(t===void 0){t={}}Object.keys(t).forEach((function(i){if(typeof e[i]==="undefined")e[i]=t[i];else if(isObject$1(t[i])&&isObject$1(e[i])&&Object.keys(t[i]).length>0){extend$1(e[i],t[i])}}))}var ssrDocument={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){var e=typeof document!=="undefined"?document:{};extend$1(e,ssrDocument);return e}var ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function e(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){if(typeof setTimeout==="undefined"){e();return null}return setTimeout(e,0)},cancelAnimationFrame:function(e){if(typeof setTimeout==="undefined"){return}clearTimeout(e)}};function getWindow(){var e=typeof window!=="undefined"?window:{};extend$1(e,ssrWindow);return e}function deleteProps(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(i){}try{delete t[e]}catch(i){}}))}function nextTick(e,t){if(t===void 0){t=0}return setTimeout(e,t)}function now(){return Date.now()}function getComputedStyle$1(e){var t=getWindow();var i;if(t.getComputedStyle){i=t.getComputedStyle(e,null)}if(!i&&e.currentStyle){i=e.currentStyle}if(!i){i=e.style}return i}function getTranslate(e,t){if(t===void 0){t="x"}var i=getWindow();var r;var n;var o;var s=getComputedStyle$1(e);if(i.WebKitCSSMatrix){n=s.transform||s.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")}o=new i.WebKitCSSMatrix(n==="none"?"":n)}else{o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");r=o.toString().split(",")}if(t==="x"){if(i.WebKitCSSMatrix)n=o.m41;else if(r.length===16)n=parseFloat(r[12]);else n=parseFloat(r[4])}if(t==="y"){if(i.WebKitCSSMatrix)n=o.m42;else if(r.length===16)n=parseFloat(r[13]);else n=parseFloat(r[5])}return n||0}function isObject(e){return typeof e==="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function isNode(e){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return e instanceof HTMLElement}return e&&(e.nodeType===1||e.nodeType===11)}function extend(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var i=Object(e[0]);var r=["__proto__","constructor","prototype"];for(var n=1;n<e.length;n+=1){var o=e[n];if(o!==undefined&&o!==null&&!isNode(o)){var s=Object.keys(Object(o)).filter((function(e){return r.indexOf(e)<0}));for(var a=0,l=s.length;a<l;a+=1){var c=s[a];var p=Object.getOwnPropertyDescriptor(o,c);if(p!==undefined&&p.enumerable){if(isObject(i[c])&&isObject(o[c])){if(o[c].__swiper__){i[c]=o[c]}else{extend(i[c],o[c])}}else if(!isObject(i[c])&&isObject(o[c])){i[c]={};if(o[c].__swiper__){i[c]=o[c]}else{extend(i[c],o[c])}}else{i[c]=o[c]}}}}}return i}function setCSSProperty(e,t,i){e.style.setProperty(t,i)}function animateCSSModeScroll(e){var t=e.swiper,i=e.targetPosition,r=e.side;var n=getWindow();var o=-t.translate;var s=null;var a;var l=t.params.speed;t.wrapperEl.style.scrollSnapType="none";n.cancelAnimationFrame(t.cssModeFrameID);var c=i>o?"next":"prev";var p=function(e,t){return c==="next"&&e>=t||c==="prev"&&e<=t};var u=function(){var e;a=(new Date).getTime();if(s===null){s=a}var c=Math.max(Math.min((a-s)/l,1),0);var d=.5-Math.cos(c*Math.PI)/2;var h=o+d*(i-o);if(p(h,i)){h=i}t.wrapperEl.scrollTo((e={},e[r]=h,e));if(p(h,i)){t.wrapperEl.style.overflow="hidden";t.wrapperEl.style.scrollSnapType="";setTimeout((function(){var e;t.wrapperEl.style.overflow="";t.wrapperEl.scrollTo((e={},e[r]=h,e))}));n.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=n.requestAnimationFrame(u)};u()}function elementChildren(e,t){if(t===void 0){t=""}return __spreadArray([],e.children,true).filter((function(e){return e.matches(t)}))}function createElement(e,t){var i;if(t===void 0){t=[]}var r=document.createElement(e);(i=r.classList).add.apply(i,Array.isArray(t)?t:[t]);return r}function elementOffset(e){var t=getWindow();var i=getDocument();var r=e.getBoundingClientRect();var n=i.body;var o=e.clientTop||n.clientTop||0;var s=e.clientLeft||n.clientLeft||0;var a=e===t?t.scrollY:e.scrollTop;var l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+a-o,left:r.left+l-s}}function elementPrevAll(e,t){var i=[];while(e.previousElementSibling){var r=e.previousElementSibling;if(t){if(r.matches(t))i.push(r)}else i.push(r);e=r}return i}function elementNextAll(e,t){var i=[];while(e.nextElementSibling){var r=e.nextElementSibling;if(t){if(r.matches(t))i.push(r)}else i.push(r);e=r}return i}function elementStyle(e,t){var i=getWindow();return i.getComputedStyle(e,null).getPropertyValue(t)}function elementIndex(e){var t=e;var i;if(t){i=0;while((t=t.previousSibling)!==null){if(t.nodeType===1)i+=1}return i}return undefined}function elementParents(e,t){var i=[];var r=e.parentElement;while(r){if(t){if(r.matches(t))i.push(r)}else{i.push(r)}r=r.parentElement}return i}function elementTransitionEnd(e,t){function i(r){if(r.target!==e)return;t.call(e,r);e.removeEventListener("transitionend",i)}if(t){e.addEventListener("transitionend",i)}}function elementOuterSize(e,t,i){var r=getWindow();if(i){return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}return e.offsetWidth}var support;function calcSupport(){var e=getWindow();var t=getDocument();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function getSupport(){if(!support){support=calcSupport()}return support}var deviceCached;function calcDevice(e){var t=e===void 0?{}:e,i=t.userAgent;var r=getSupport();var n=getWindow();var o=n.navigator.platform;var s=i||n.navigator.userAgent;var a={ios:false,android:false};var l=n.screen.width;var c=n.screen.height;var p=s.match(/(Android);?[\s\/]+([\d.]+)?/);var u=s.match(/(iPad).*OS\s([\d_]+)/);var d=s.match(/(iPod)(.*OS\s([\d_]+))?/);var h=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/);var f=o==="Win32";var m=o==="MacIntel";var g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!u&&m&&r.touch&&g.indexOf("".concat(l,"x").concat(c))>=0){u=s.match(/(Version)\/([\d.]+)/);if(!u)u=[0,1,"13_0_0"];m=false}if(p&&!f){a.os="android";a.android=true}if(u||h||d){a.os="ios";a.ios=true}return a}function getDevice(e){if(e===void 0){e={}}if(!deviceCached){deviceCached=calcDevice(e)}return deviceCached}var browser;function calcBrowser(){var e=getWindow();var t=false;function i(){var t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){var r=String(e.navigator.userAgent);if(r.includes("Version/")){var n=r.split("Version/")[1].split(" ")[0].split(".").map((function(e){return Number(e)})),o=n[0],s=n[1];t=o<16||o===16&&s<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function getBrowser(){if(!browser){browser=calcBrowser()}return browser}function Resize(e){var t=e.swiper,i=e.on,r=e.emit;var n=getWindow();var o=null;var s=null;var a=function(){if(!t||t.destroyed||!t.initialized)return;r("beforeResize");r("resize")};var l=function(){if(!t||t.destroyed||!t.initialized)return;o=new ResizeObserver((function(e){s=n.requestAnimationFrame((function(){var i=t.width,r=t.height;var n=i;var o=r;e.forEach((function(e){var i=e.contentBoxSize,r=e.contentRect,s=e.target;if(s&&s!==t.el)return;n=r?r.width:(i[0]||i).inlineSize;o=r?r.height:(i[0]||i).blockSize}));if(n!==i||o!==r){a()}}))}));o.observe(t.el)};var c=function(){if(s){n.cancelAnimationFrame(s)}if(o&&o.unobserve&&t.el){o.unobserve(t.el);o=null}};var p=function(){if(!t||t.destroyed||!t.initialized)return;r("orientationchange")};i("init",(function(){if(t.params.resizeObserver&&typeof n.ResizeObserver!=="undefined"){l();return}n.addEventListener("resize",a);n.addEventListener("orientationchange",p)}));i("destroy",(function(){c();n.removeEventListener("resize",a);n.removeEventListener("orientationchange",p)}))}function Observer(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=[];var s=getWindow();var a=function(e,i){if(i===void 0){i={}}var r=s.MutationObserver||s.WebkitMutationObserver;var a=new r((function(e){if(t.__preventObserver__)return;if(e.length===1){n("observerUpdate",e[0]);return}var i=function t(){n("observerUpdate",e[0])};if(s.requestAnimationFrame){s.requestAnimationFrame(i)}else{s.setTimeout(i,0)}}));a.observe(e,{attributes:typeof i.attributes==="undefined"?true:i.attributes,childList:typeof i.childList==="undefined"?true:i.childList,characterData:typeof i.characterData==="undefined"?true:i.characterData});o.push(a)};var l=function(){if(!t.params.observer)return;if(t.params.observeParents){var e=elementParents(t.el);for(var i=0;i<e.length;i+=1){a(e[i])}}a(t.el,{childList:t.params.observeSlideChildren});a(t.wrapperEl,{attributes:false})};var c=function(){o.forEach((function(e){e.disconnect()}));o.splice(0,o.length)};i({observer:false,observeParents:false,observeSlideChildren:false});r("init",l);r("destroy",c)}var eventsEmitter={on:function(e,t,i){var r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof t!=="function")return r;var n=i?"unshift":"push";e.split(" ").forEach((function(e){if(!r.eventsListeners[e])r.eventsListeners[e]=[];r.eventsListeners[e][n](t)}));return r},once:function(e,t,i){var r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof t!=="function")return r;function n(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}r.off(e,n);if(n.__emitterProxy){delete n.__emitterProxy}t.apply(r,i)}n.__emitterProxy=t;return r.on(e,n,i)},onAny:function(e,t){var i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof e!=="function")return i;var r=t?"unshift":"push";if(i.eventsAnyListeners.indexOf(e)<0){i.eventsAnyListeners[r](e)}return i},offAny:function(e){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;var i=t.eventsAnyListeners.indexOf(e);if(i>=0){t.eventsAnyListeners.splice(i,1)}return t},off:function(e,t){var i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;e.split(" ").forEach((function(e){if(typeof t==="undefined"){i.eventsListeners[e]=[]}else if(i.eventsListeners[e]){i.eventsListeners[e].forEach((function(r,n){if(r===t||r.__emitterProxy&&r.__emitterProxy===t){i.eventsListeners[e].splice(n,1)}}))}}));return i},emit:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;var r;var n;var o;if(typeof e[0]==="string"||Array.isArray(e[0])){r=e[0];n=e.slice(1,e.length);o=i}else{r=e[0].events;n=e[0].data;o=e[0].context||i}n.unshift(o);var s=Array.isArray(r)?r:r.split(" ");s.forEach((function(e){if(i.eventsAnyListeners&&i.eventsAnyListeners.length){i.eventsAnyListeners.forEach((function(t){t.apply(o,__spreadArray([e],n,true))}))}if(i.eventsListeners&&i.eventsListeners[e]){i.eventsListeners[e].forEach((function(e){e.apply(o,n)}))}}));return i}};function updateSize(){var e=this;var t;var i;var r=e.el;if(typeof e.params.width!=="undefined"&&e.params.width!==null){t=e.params.width}else{t=r.clientWidth}if(typeof e.params.height!=="undefined"&&e.params.height!==null){i=e.params.height}else{i=r.clientHeight}if(t===0&&e.isHorizontal()||i===0&&e.isVertical()){return}t=t-parseInt(elementStyle(r,"padding-left")||0,10)-parseInt(elementStyle(r,"padding-right")||0,10);i=i-parseInt(elementStyle(r,"padding-top")||0,10)-parseInt(elementStyle(r,"padding-bottom")||0,10);if(Number.isNaN(t))t=0;if(Number.isNaN(i))i=0;Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i})}function updateSlides(){var e=this;function t(t){if(e.isHorizontal()){return t}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"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}var r=e.params;var n=e.wrapperEl,o=e.slidesEl,s=e.size,a=e.rtlTranslate,l=e.wrongRTL;var c=e.virtual&&r.virtual.enabled;var p=c?e.virtual.slides.length:e.slides.length;var u=elementChildren(o,".".concat(e.params.slideClass,", swiper-slide"));var d=c?e.virtual.slides.length:u.length;var h=[];var f=[];var m=[];var g=r.slidesOffsetBefore;if(typeof g==="function"){g=r.slidesOffsetBefore.call(e)}var v=r.slidesOffsetAfter;if(typeof v==="function"){v=r.slidesOffsetAfter.call(e)}var y=e.snapGrid.length;var w=e.slidesGrid.length;var b=r.spaceBetween;var _=-g;var x=0;var k=0;if(typeof s==="undefined"){return}if(typeof b==="string"&&b.indexOf("%")>=0){b=parseFloat(b.replace("%",""))/100*s}else if(typeof b==="string"){b=parseFloat(b)}e.virtualSize=-b;u.forEach((function(e){if(a){e.style.marginLeft=""}else{e.style.marginRight=""}e.style.marginBottom="";e.style.marginTop=""}));if(r.centeredSlides&&r.cssMode){setCSSProperty(n,"--swiper-centered-offset-before","");setCSSProperty(n,"--swiper-centered-offset-after","")}var A=r.grid&&r.grid.rows>1&&e.grid;if(A){e.grid.initSlides(d)}var T;var C=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter((function(e){return typeof r.breakpoints[e].slidesPerView!=="undefined"})).length>0;for(var L=0;L<d;L+=1){T=0;var S=void 0;if(u[L])S=u[L];if(A){e.grid.updateSlide(L,S,d,t)}if(u[L]&&elementStyle(S,"display")==="none")continue;if(r.slidesPerView==="auto"){if(C){u[L].style[t("width")]=""}var E=getComputedStyle(S);var P=S.style.transform;var M=S.style.webkitTransform;if(P){S.style.transform="none"}if(M){S.style.webkitTransform="none"}if(r.roundLengths){T=e.isHorizontal()?elementOuterSize(S,"width",true):elementOuterSize(S,"height",true)}else{var O=i(E,"width");var I=i(E,"padding-left");var z=i(E,"padding-right");var B=i(E,"margin-left");var D=i(E,"margin-right");var F=E.getPropertyValue("box-sizing");if(F&&F==="border-box"){T=O+B+D}else{var j=S.clientWidth,N=S.offsetWidth;T=O+I+z+B+D+(N-j)}}if(P){S.style.transform=P}if(M){S.style.webkitTransform=M}if(r.roundLengths)T=Math.floor(T)}else{T=(s-(r.slidesPerView-1)*b)/r.slidesPerView;if(r.roundLengths)T=Math.floor(T);if(u[L]){u[L].style[t("width")]="".concat(T,"px")}}if(u[L]){u[L].swiperSlideSize=T}m.push(T);if(r.centeredSlides){_=_+T/2+x/2+b;if(x===0&&L!==0)_=_-s/2-b;if(L===0)_=_-s/2-b;if(Math.abs(_)<1/1e3)_=0;if(r.roundLengths)_=Math.floor(_);if(k%r.slidesPerGroup===0)h.push(_);f.push(_)}else{if(r.roundLengths)_=Math.floor(_);if((k-Math.min(e.params.slidesPerGroupSkip,k))%e.params.slidesPerGroup===0)h.push(_);f.push(_);_=_+T+b}e.virtualSize+=T+b;x=T;k+=1}e.virtualSize=Math.max(e.virtualSize,s)+v;if(a&&l&&(r.effect==="slide"||r.effect==="coverflow")){n.style.width="".concat(e.virtualSize+b,"px")}if(r.setWrapperSize){n.style[t("width")]="".concat(e.virtualSize+b,"px")}if(A){e.grid.updateWrapperSize(T,h,t)}if(!r.centeredSlides){var R=[];for(var L=0;L<h.length;L+=1){var G=h[L];if(r.roundLengths)G=Math.floor(G);if(h[L]<=e.virtualSize-s){R.push(G)}}h=R;if(Math.floor(e.virtualSize-s)-Math.floor(h[h.length-1])>1){h.push(e.virtualSize-s)}}if(c&&r.loop){var Z=m[0]+b;if(r.slidesPerGroup>1){var H=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup);var V=Z*r.slidesPerGroup;for(var L=0;L<H;L+=1){h.push(h[h.length-1]+V)}}for(var L=0;L<e.virtual.slidesBefore+e.virtual.slidesAfter;L+=1){if(r.slidesPerGroup===1){h.push(h[h.length-1]+Z)}f.push(f[f.length-1]+Z);e.virtualSize+=Z}}if(h.length===0)h=[0];if(b!==0){var Y=e.isHorizontal()&&a?"marginLeft":t("marginRight");u.filter((function(e,t){if(!r.cssMode||r.loop)return true;if(t===u.length-1){return false}return true})).forEach((function(e){e.style[Y]="".concat(b,"px")}))}if(r.centeredSlides&&r.centeredSlidesBounds){var U=0;m.forEach((function(e){U+=e+(b||0)}));U-=b;var W=U-s;h=h.map((function(e){if(e<=0)return-g;if(e>W)return W+v;return e}))}if(r.centerInsufficientSlides){var $=0;m.forEach((function(e){$+=e+(b||0)}));$-=b;if($<s){var q=(s-$)/2;h.forEach((function(e,t){h[t]=e-q}));f.forEach((function(e,t){f[t]=e+q}))}}Object.assign(e,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:m});if(r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){setCSSProperty(n,"--swiper-centered-offset-before","".concat(-h[0],"px"));setCSSProperty(n,"--swiper-centered-offset-after","".concat(e.size/2-m[m.length-1]/2,"px"));var K=-e.snapGrid[0];var Q=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((function(e){return e+K}));e.slidesGrid=e.slidesGrid.map((function(e){return e+Q}))}if(d!==p){e.emit("slidesLengthChange")}if(h.length!==y){if(e.params.watchOverflow)e.checkOverflow();e.emit("snapGridLengthChange")}if(f.length!==w){e.emit("slidesGridLengthChange")}if(r.watchSlidesProgress){e.updateSlidesOffset()}if(!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){var X="".concat(r.containerModifierClass,"backface-hidden");var J=e.el.classList.contains(X);if(d<=r.maxBackfaceHiddenSlides){if(!J)e.el.classList.add(X)}else if(J){e.el.classList.remove(X)}}}function updateAutoHeight(e){var t=this;var i=[];var r=t.virtual&&t.params.virtual.enabled;var n=0;var o;if(typeof e==="number"){t.setTransition(e)}else if(e===true){t.setTransition(t.params.speed)}var s=function(e){if(r){return t.slides[t.getSlideIndexByData(e)]}return t.slides[e]};if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1){if(t.params.centeredSlides){(t.visibleSlides||[]).forEach((function(e){i.push(e)}))}else{for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){var a=t.activeIndex+o;if(a>t.slides.length&&!r)break;i.push(s(a))}}}else{i.push(s(t.activeIndex))}for(o=0;o<i.length;o+=1){if(typeof i[o]!=="undefined"){var l=i[o].offsetHeight;n=l>n?l:n}}if(n||n===0)t.wrapperEl.style.height="".concat(n,"px")}function updateSlidesOffset(){var e=this;var t=e.slides;var i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(var r=0;r<t.length;r+=1){t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-i-e.cssOverflowAdjustment()}}function updateSlidesProgress(e){if(e===void 0){e=this&&this.translate||0}var t=this;var i=t.params;var r=t.slides,n=t.rtlTranslate,o=t.snapGrid;if(r.length===0)return;if(typeof r[0].swiperSlideOffset==="undefined")t.updateSlidesOffset();var s=-e;if(n)s=e;r.forEach((function(e){e.classList.remove(i.slideVisibleClass)}));t.visibleSlidesIndexes=[];t.visibleSlides=[];var a=i.spaceBetween;if(typeof a==="string"&&a.indexOf("%")>=0){a=parseFloat(a.replace("%",""))/100*t.size}else if(typeof a==="string"){a=parseFloat(a)}for(var l=0;l<r.length;l+=1){var c=r[l];var p=c.swiperSlideOffset;if(i.cssMode&&i.centeredSlides){p-=r[0].swiperSlideOffset}var u=(s+(i.centeredSlides?t.minTranslate():0)-p)/(c.swiperSlideSize+a);var d=(s-o[0]+(i.centeredSlides?t.minTranslate():0)-p)/(c.swiperSlideSize+a);var h=-(s-p);var f=h+t.slidesSizesGrid[l];var m=h>=0&&h<t.size-1||f>1&&f<=t.size||h<=0&&f>=t.size;if(m){t.visibleSlides.push(c);t.visibleSlidesIndexes.push(l);r[l].classList.add(i.slideVisibleClass)}c.progress=n?-u:u;c.originalProgress=n?-d:d}}function updateProgress(e){var t=this;if(typeof e==="undefined"){var i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}var r=t.params;var n=t.maxTranslate()-t.minTranslate();var o=t.progress,s=t.isBeginning,a=t.isEnd,l=t.progressLoop;var c=s;var p=a;if(n===0){o=0;s=true;a=true}else{o=(e-t.minTranslate())/n;var u=Math.abs(e-t.minTranslate())<1;var d=Math.abs(e-t.maxTranslate())<1;s=u||o<=0;a=d||o>=1;if(u)o=0;if(d)o=1}if(r.loop){var h=t.getSlideIndexByData(0);var f=t.getSlideIndexByData(t.slides.length-1);var m=t.slidesGrid[h];var g=t.slidesGrid[f];var v=t.slidesGrid[t.slidesGrid.length-1];var y=Math.abs(e);if(y>=m){l=(y-m)/v}else{l=(y+v-g)/v}if(l>1)l-=1}Object.assign(t,{progress:o,progressLoop:l,isBeginning:s,isEnd:a});if(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)t.updateSlidesProgress(e);if(s&&!c){t.emit("reachBeginning toEdge")}if(a&&!p){t.emit("reachEnd toEdge")}if(c&&!s||p&&!a){t.emit("fromEdge")}t.emit("progress",o)}function updateSlidesClasses(){var e=this;var t=e.slides,i=e.params,r=e.slidesEl,n=e.activeIndex;var o=e.virtual&&i.virtual.enabled;var s=function(e){return elementChildren(r,".".concat(i.slideClass).concat(e,", swiper-slide").concat(e))[0]};t.forEach((function(e){e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)}));var a;if(o){if(i.loop){var l=n-e.virtual.slidesBefore;if(l<0)l=e.virtual.slides.length+l;if(l>=e.virtual.slides.length)l-=e.virtual.slides.length;a=s('[data-swiper-slide-index="'.concat(l,'"]'))}else{a=s('[data-swiper-slide-index="'.concat(n,'"]'))}}else{a=t[n]}if(a){a.classList.add(i.slideActiveClass);var c=elementNextAll(a,".".concat(i.slideClass,", swiper-slide"))[0];if(i.loop&&!c){c=t[0]}if(c){c.classList.add(i.slideNextClass)}var p=elementPrevAll(a,".".concat(i.slideClass,", swiper-slide"))[0];if(i.loop&&!p===0){p=t[t.length-1]}if(p){p.classList.add(i.slidePrevClass)}}e.emitSlidesClasses()}var processLazyPreloader=function(e,t){if(!e||e.destroyed||!e.params)return;var i=function(){return e.isElement?"swiper-slide":".".concat(e.params.slideClass)};var r=t.closest(i());if(r){var n=r.querySelector(".".concat(e.params.lazyPreloaderClass));if(n)n.remove()}};var unlazy=function(e,t){if(!e.slides[t])return;var i=e.slides[t].querySelector('[loading="lazy"]');if(i)i.removeAttribute("loading")};var preload=function(e){if(!e||e.destroyed||!e.params)return;var t=e.params.lazyPreloadPrevNext;var i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);var r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView);var n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){var o=n;var s=[o-t];s.push.apply(s,Array.from({length:t}).map((function(e,t){return o+r+t})));e.slides.forEach((function(t,i){if(s.includes(t.column))unlazy(e,i)}));return}var a=n+r-1;if(e.params.rewind||e.params.loop){for(var l=n-t;l<=a+t;l+=1){var c=(l%i+i)%i;if(c<n||c>a)unlazy(e,c)}}else{for(var l=Math.max(n-t,0);l<=Math.min(a+t,i-1);l+=1){if(l!==n&&(l>a||l<n)){unlazy(e,l)}}}};function getActiveIndexByTranslate(e){var t=e.slidesGrid,i=e.params;var r=e.rtlTranslate?e.translate:-e.translate;var n;for(var o=0;o<t.length;o+=1){if(typeof t[o+1]!=="undefined"){if(r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2){n=o}else if(r>=t[o]&&r<t[o+1]){n=o+1}}else if(r>=t[o]){n=o}}if(i.normalizeSlideIndex){if(n<0||typeof n==="undefined")n=0}return n}function updateActiveIndex(e){var t=this;var i=t.rtlTranslate?t.translate:-t.translate;var r=t.snapGrid,n=t.params,o=t.activeIndex,s=t.realIndex,a=t.snapIndex;var l=e;var c;var p=function(e){var i=e-t.virtual.slidesBefore;if(i<0){i=t.virtual.slides.length+i}if(i>=t.virtual.slides.length){i-=t.virtual.slides.length}return i};if(typeof l==="undefined"){l=getActiveIndexByTranslate(t)}if(r.indexOf(i)>=0){c=r.indexOf(i)}else{var u=Math.min(n.slidesPerGroupSkip,l);c=u+Math.floor((l-u)/n.slidesPerGroup)}if(c>=r.length)c=r.length-1;if(l===o){if(c!==a){t.snapIndex=c;t.emit("snapIndexChange")}if(t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=p(l)}return}var d;if(t.virtual&&n.virtual.enabled&&n.loop){d=p(l)}else if(t.slides[l]){d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10)}else{d=l}Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:s,realIndex:d,previousIndex:o,activeIndex:l});if(t.initialized){preload(t)}t.emit("activeIndexChange");t.emit("snapIndexChange");if(s!==d){t.emit("realIndexChange")}if(t.initialized||t.params.runCallbacksOnInit){t.emit("slideChange")}}function updateClickedSlide(e){var t=this;var i=t.params;var r=e.closest(".".concat(i.slideClass,", swiper-slide"));var n=false;var o;if(r){for(var s=0;s<t.slides.length;s+=1){if(t.slides[s]===r){n=true;o=s;break}}}if(r&&n){t.clickedSlide=r;if(t.virtual&&t.params.virtual.enabled){t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10)}else{t.clickedIndex=o}}else{t.clickedSlide=undefined;t.clickedIndex=undefined;return}if(i.slideToClickedSlide&&t.clickedIndex!==undefined&&t.clickedIndex!==t.activeIndex){t.slideToClickedSlide()}}var update={updateSize:updateSize,updateSlides:updateSlides,updateAutoHeight:updateAutoHeight,updateSlidesOffset:updateSlidesOffset,updateSlidesProgress:updateSlidesProgress,updateProgress:updateProgress,updateSlidesClasses:updateSlidesClasses,updateActiveIndex:updateActiveIndex,updateClickedSlide:updateClickedSlide};function getSwiperTranslate(e){if(e===void 0){e=this.isHorizontal()?"x":"y"}var t=this;var i=t.params,r=t.rtlTranslate,n=t.translate,o=t.wrapperEl;if(i.virtualTranslate){return r?-n:n}if(i.cssMode){return n}var s=getTranslate(o,e);s+=t.cssOverflowAdjustment();if(r)s=-s;return s||0}function setTranslate(e,t){var i=this;var r=i.rtlTranslate,n=i.params,o=i.wrapperEl,s=i.progress;var a=0;var l=0;var c=0;if(i.isHorizontal()){a=r?-e:e}else{l=e}if(n.roundLengths){a=Math.floor(a);l=Math.floor(l)}i.previousTranslate=i.translate;i.translate=i.isHorizontal()?a:l;if(n.cssMode){o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-a:-l}else if(!n.virtualTranslate){if(i.isHorizontal()){a-=i.cssOverflowAdjustment()}else{l-=i.cssOverflowAdjustment()}o.style.transform="translate3d(".concat(a,"px, ").concat(l,"px, ").concat(c,"px)")}var p;var u=i.maxTranslate()-i.minTranslate();if(u===0){p=0}else{p=(e-i.minTranslate())/u}if(p!==s){i.updateProgress(e)}i.emit("setTranslate",i.translate,t)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(e,t,i,r,n){var o;if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(r===void 0){r=true}var s=this;var a=s.params,l=s.wrapperEl;if(s.animating&&a.preventInteractionOnTransition){return false}var c=s.minTranslate();var p=s.maxTranslate();var u;if(r&&e>c)u=c;else if(r&&e<p)u=p;else u=e;s.updateProgress(u);if(a.cssMode){var d=s.isHorizontal();if(t===0){l[d?"scrollLeft":"scrollTop"]=-u}else{if(!s.support.smoothScroll){animateCSSModeScroll({swiper:s,targetPosition:-u,side:d?"left":"top"});return true}l.scrollTo((o={},o[d?"left":"top"]=-u,o.behavior="smooth",o))}return true}if(t===0){s.setTransition(0);s.setTranslate(u);if(i){s.emit("beforeTransitionStart",t,n);s.emit("transitionEnd")}}else{s.setTransition(t);s.setTranslate(u);if(i){s.emit("beforeTransitionStart",t,n);s.emit("transitionStart")}if(!s.animating){s.animating=true;if(!s.onTranslateToWrapperTransitionEnd){s.onTranslateToWrapperTransitionEnd=function e(t){if(!s||s.destroyed)return;if(t.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd);s.onTranslateToWrapperTransitionEnd=null;delete s.onTranslateToWrapperTransitionEnd;if(i){s.emit("transitionEnd")}}}s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd)}}return true}var translate={getTranslate:getSwiperTranslate,setTranslate:setTranslate,minTranslate:minTranslate,maxTranslate:maxTranslate,translateTo:translateTo};function setTransition(e,t){var i=this;if(!i.params.cssMode){i.wrapperEl.style.transitionDuration="".concat(e,"ms")}i.emit("setTransition",e,t)}function transitionEmit(e){var t=e.swiper,i=e.runCallbacks,r=e.direction,n=e.step;var o=t.activeIndex,s=t.previousIndex;var a=r;if(!a){if(o>s)a="next";else if(o<s)a="prev";else a="reset"}t.emit("transition".concat(n));if(i&&o!==s){if(a==="reset"){t.emit("slideResetTransition".concat(n));return}t.emit("slideChangeTransition".concat(n));if(a==="next"){t.emit("slideNextTransition".concat(n))}else{t.emit("slidePrevTransition".concat(n))}}}function transitionStart(e,t){if(e===void 0){e=true}var i=this;var r=i.params;if(r.cssMode)return;if(r.autoHeight){i.updateAutoHeight()}transitionEmit({swiper:i,runCallbacks:e,direction:t,step:"Start"})}function transitionEnd(e,t){if(e===void 0){e=true}var i=this;var r=i.params;i.animating=false;if(r.cssMode)return;i.setTransition(0);transitionEmit({swiper:i,runCallbacks:e,direction:t,step:"End"})}var transition={setTransition:setTransition,transitionStart:transitionStart,transitionEnd:transitionEnd};function slideTo(e,t,i,r,n){var o;if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(typeof e==="string"){e=parseInt(e,10)}var s=this;var a=e;if(a<0)a=0;var l=s.params,c=s.snapGrid,p=s.slidesGrid,u=s.previousIndex,d=s.activeIndex,h=s.rtlTranslate,f=s.wrapperEl,m=s.enabled;if(s.animating&&l.preventInteractionOnTransition||!m&&!r&&!n){return false}var g=Math.min(s.params.slidesPerGroupSkip,a);var v=g+Math.floor((a-g)/s.params.slidesPerGroup);if(v>=c.length)v=c.length-1;var y=-c[v];if(l.normalizeSlideIndex){for(var w=0;w<p.length;w+=1){var b=-Math.floor(y*100);var _=Math.floor(p[w]*100);var x=Math.floor(p[w+1]*100);if(typeof p[w+1]!=="undefined"){if(b>=_&&b<x-(x-_)/2){a=w}else if(b>=_&&b<x){a=w+1}}else if(b>=_){a=w}}}if(s.initialized&&a!==d){if(!s.allowSlideNext&&(h?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())){return false}if(!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()){if((d||0)!==a){return false}}}if(a!==(u||0)&&i){s.emit("beforeSlideChangeStart")}s.updateProgress(y);var k;if(a>d)k="next";else if(a<d)k="prev";else k="reset";if(h&&-y===s.translate||!h&&y===s.translate){s.updateActiveIndex(a);if(l.autoHeight){s.updateAutoHeight()}s.updateSlidesClasses();if(l.effect!=="slide"){s.setTranslate(y)}if(k!=="reset"){s.transitionStart(i,k);s.transitionEnd(i,k)}return false}if(l.cssMode){var A=s.isHorizontal();var T=h?y:-y;if(t===0){var C=s.virtual&&s.params.virtual.enabled;if(C){s.wrapperEl.style.scrollSnapType="none";s._immediateVirtual=true}if(C&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0){s._cssModeVirtualInitialSet=true;requestAnimationFrame((function(){f[A?"scrollLeft":"scrollTop"]=T}))}else{f[A?"scrollLeft":"scrollTop"]=T}if(C){requestAnimationFrame((function(){s.wrapperEl.style.scrollSnapType="";s._immediateVirtual=false}))}}else{if(!s.support.smoothScroll){animateCSSModeScroll({swiper:s,targetPosition:T,side:A?"left":"top"});return true}f.scrollTo((o={},o[A?"left":"top"]=T,o.behavior="smooth",o))}return true}s.setTransition(t);s.setTranslate(y);s.updateActiveIndex(a);s.updateSlidesClasses();s.emit("beforeTransitionStart",t,r);s.transitionStart(i,k);if(t===0){s.transitionEnd(i,k)}else if(!s.animating){s.animating=true;if(!s.onSlideToWrapperTransitionEnd){s.onSlideToWrapperTransitionEnd=function e(t){if(!s||s.destroyed)return;if(t.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd);s.onSlideToWrapperTransitionEnd=null;delete s.onSlideToWrapperTransitionEnd;s.transitionEnd(i,k)}}s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)}return true}function slideToLoop(e,t,i,r){if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(typeof e==="string"){var n=parseInt(e,10);e=n}var o=this;var s=e;if(o.params.loop){if(o.virtual&&o.params.virtual.enabled){s=s+o.virtual.slidesBefore}else{s=o.getSlideIndexByData(s)}}return o.slideTo(s,t,i,r)}function slideNext(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;var n=r.enabled,o=r.params,s=r.animating;if(!n)return r;var a=o.slidesPerGroup;if(o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto){a=Math.max(r.slidesPerViewDynamic("current",true),1)}var l=r.activeIndex<o.slidesPerGroupSkip?1:a;var c=r.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return false;r.loopFix({direction:"next"});r._clientLeft=r.wrapperEl.clientLeft}if(o.rewind&&r.isEnd){return r.slideTo(0,e,t,i)}return r.slideTo(r.activeIndex+l,e,t,i)}function slidePrev(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;var n=r.params,o=r.snapGrid,s=r.slidesGrid,a=r.rtlTranslate,l=r.enabled,c=r.animating;if(!l)return r;var p=r.virtual&&n.virtual.enabled;if(n.loop){if(c&&!p&&n.loopPreventsSliding)return false;r.loopFix({direction:"prev"});r._clientLeft=r.wrapperEl.clientLeft}var u=a?r.translate:-r.translate;function d(e){if(e<0)return-Math.floor(Math.abs(e));return Math.floor(e)}var h=d(u);var f=o.map((function(e){return d(e)}));var m=o[f.indexOf(h)-1];if(typeof m==="undefined"&&n.cssMode){var g;o.forEach((function(e,t){if(h>=e){g=t}}));if(typeof g!=="undefined"){m=o[g>0?g-1:g]}}var v=0;if(typeof m!=="undefined"){v=s.indexOf(m);if(v<0)v=r.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){v=v-r.slidesPerViewDynamic("previous",true)+1;v=Math.max(v,0)}}if(n.rewind&&r.isBeginning){var y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,i)}return r.slideTo(v,e,t,i)}function slideReset(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;return r.slideTo(r.activeIndex,e,t,i)}function slideToClosest(e,t,i,r){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}if(r===void 0){r=.5}var n=this;var o=n.activeIndex;var s=Math.min(n.params.slidesPerGroupSkip,o);var a=s+Math.floor((o-s)/n.params.slidesPerGroup);var l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){var c=n.snapGrid[a];var p=n.snapGrid[a+1];if(l-c>(p-c)*r){o+=n.params.slidesPerGroup}}else{var u=n.snapGrid[a-1];var c=n.snapGrid[a];if(l-u<=(c-u)*r){o-=n.params.slidesPerGroup}}o=Math.max(o,0);o=Math.min(o,n.slidesGrid.length-1);return n.slideTo(o,e,t,i)}function slideToClickedSlide(){var e=this;var t=e.params,i=e.slidesEl;var r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;var n=e.clickedIndex;var o;var s=e.isElement?"swiper-slide":".".concat(t.slideClass);if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(t.centeredSlides){if(n<e.loopedSlides-r/2||n>e.slides.length-e.loopedSlides+r/2){e.loopFix();n=e.getSlideIndex(elementChildren(i,"".concat(s,'[data-swiper-slide-index="').concat(o,'"]'))[0]);nextTick((function(){e.slideTo(n)}))}else{e.slideTo(n)}}else if(n>e.slides.length-r){e.loopFix();n=e.getSlideIndex(elementChildren(i,"".concat(s,'[data-swiper-slide-index="').concat(o,'"]'))[0]);nextTick((function(){e.slideTo(n)}))}else{e.slideTo(n)}}else{e.slideTo(n)}}var slide={slideTo:slideTo,slideToLoop:slideToLoop,slideNext:slideNext,slidePrev:slidePrev,slideReset:slideReset,slideToClosest:slideToClosest,slideToClickedSlide:slideToClickedSlide};function loopCreate(e){var t=this;var i=t.params,r=t.slidesEl;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;var n=elementChildren(r,".".concat(i.slideClass,", swiper-slide"));n.forEach((function(e,t){e.setAttribute("data-swiper-slide-index",t)}));t.loopFix({slideRealIndex:e,direction:i.centeredSlides?undefined:"next"})}function loopFix(e){var t=e===void 0?{}:e,i=t.slideRealIndex,r=t.slideTo,n=r===void 0?true:r,o=t.direction,s=t.setTranslate,a=t.activeSlideIndex,l=t.byController,c=t.byMousewheel;var p=this;if(!p.params.loop)return;p.emit("beforeLoopFix");var u=p.slides,d=p.allowSlidePrev,h=p.allowSlideNext,f=p.slidesEl,m=p.params;p.allowSlidePrev=true;p.allowSlideNext=true;if(p.virtual&&m.virtual.enabled){if(n){if(!m.centeredSlides&&p.snapIndex===0){p.slideTo(p.virtual.slides.length,0,false,true)}else if(m.centeredSlides&&p.snapIndex<m.slidesPerView){p.slideTo(p.virtual.slides.length+p.snapIndex,0,false,true)}else if(p.snapIndex===p.snapGrid.length-1){p.slideTo(p.virtual.slidesBefore,0,false,true)}}p.allowSlidePrev=d;p.allowSlideNext=h;p.emit("loopFix");return}var g=m.slidesPerView==="auto"?p.slidesPerViewDynamic():Math.ceil(parseFloat(m.slidesPerView,10));var v=m.loopedSlides||g;if(v%m.slidesPerGroup!==0){v+=m.slidesPerGroup-v%m.slidesPerGroup}p.loopedSlides=v;var y=[];var w=[];var b=p.activeIndex;if(typeof a==="undefined"){a=p.getSlideIndex(p.slides.filter((function(e){return e.classList.contains(m.slideActiveClass)}))[0])}else{b=a}var _=o==="next"||!o;var x=o==="prev"||!o;var k=0;var A=0;if(a<v){k=Math.max(v-a,m.slidesPerGroup);for(var T=0;T<v-a;T+=1){var C=T-Math.floor(T/u.length)*u.length;y.push(u.length-C-1)}}else if(a>p.slides.length-v*2){A=Math.max(a-(p.slides.length-v*2),m.slidesPerGroup);for(var T=0;T<A;T+=1){var C=T-Math.floor(T/u.length)*u.length;w.push(C)}}if(x){y.forEach((function(e){p.slides[e].swiperLoopMoveDOM=true;f.prepend(p.slides[e]);p.slides[e].swiperLoopMoveDOM=false}))}if(_){w.forEach((function(e){p.slides[e].swiperLoopMoveDOM=true;f.append(p.slides[e]);p.slides[e].swiperLoopMoveDOM=false}))}p.recalcSlides();if(m.slidesPerView==="auto"){p.updateSlides()}if(m.watchSlidesProgress){p.updateSlidesOffset()}if(n){if(y.length>0&&x){if(typeof i==="undefined"){var L=p.slidesGrid[b];var S=p.slidesGrid[b+k];var E=S-L;if(c){p.setTranslate(p.translate-E)}else{p.slideTo(b+k,0,false,true);if(s){p.touches[p.isHorizontal()?"startX":"startY"]+=E}}}else{if(s){p.slideToLoop(i,0,false,true)}}}else if(w.length>0&&_){if(typeof i==="undefined"){var L=p.slidesGrid[b];var S=p.slidesGrid[b-A];var E=S-L;if(c){p.setTranslate(p.translate-E)}else{p.slideTo(b-A,0,false,true);if(s){p.touches[p.isHorizontal()?"startX":"startY"]+=E}}}else{p.slideToLoop(i,0,false,true)}}}p.allowSlidePrev=d;p.allowSlideNext=h;if(p.controller&&p.controller.control&&!l){var P={slideRealIndex:i,slideTo:false,direction:o,setTranslate:s,activeSlideIndex:a,byController:true};if(Array.isArray(p.controller.control)){p.controller.control.forEach((function(e){if(!e.destroyed&&e.params.loop)e.loopFix(P)}))}else if(p.controller.control instanceof p.constructor&&p.controller.control.params.loop){p.controller.control.loopFix(P)}}p.emit("loopFix")}function loopDestroy(){var e=this;var t=e.params,i=e.slidesEl;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();var r=[];e.slides.forEach((function(e){var t=typeof e.swiperSlideIndex==="undefined"?e.getAttribute("data-swiper-slide-index")*1:e.swiperSlideIndex;r[t]=e}));e.slides.forEach((function(e){e.removeAttribute("data-swiper-slide-index")}));r.forEach((function(e){i.append(e)}));e.recalcSlides();e.slideTo(e.realIndex,0)}var loop={loopCreate:loopCreate,loopFix:loopFix,loopDestroy:loopDestroy};function setGrabCursor(e){var t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;var i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;if(t.isElement){t.__preventObserver__=true}i.style.cursor="move";i.style.cursor=e?"grabbing":"grab";if(t.isElement){requestAnimationFrame((function(){t.__preventObserver__=false}))}}function unsetGrabCursor(){var e=this;if(e.params.watchOverflow&&e.isLocked||e.params.cssMode){return}if(e.isElement){e.__preventObserver__=true}e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(e.isElement){requestAnimationFrame((function(){e.__preventObserver__=false}))}}var grabCursor={setGrabCursor:setGrabCursor,unsetGrabCursor:unsetGrabCursor};function closestElement(e,t){if(t===void 0){t=this}function i(t){if(!t||t===getDocument()||t===getWindow())return null;if(t.assignedSlot)t=t.assignedSlot;var r=t.closest(e);if(!r&&!t.getRootNode){return null}return r||i(t.getRootNode().host)}return i(t)}function onTouchStart(e){var t=this;var i=getDocument();var r=getWindow();var n=t.touchEventsData;n.evCache.push(e);var o=t.params,s=t.touches,a=t.enabled;if(!a)return;if(!o.simulateTouch&&e.pointerType==="mouse")return;if(t.animating&&o.preventInteractionOnTransition){return}if(!t.animating&&o.cssMode&&o.loop){t.loopFix()}var l=e;if(l.originalEvent)l=l.originalEvent;var c=l.target;if(o.touchEventsTarget==="wrapper"){if(!t.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;var p=!!o.noSwipingClass&&o.noSwipingClass!=="";var u=e.composedPath?e.composedPath():e.path;if(p&&l.target&&l.target.shadowRoot&&u){c=u[0]}var d=o.noSwipingSelector?o.noSwipingSelector:".".concat(o.noSwipingClass);var h=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(h?closestElement(d,c):c.closest(d))){t.allowClick=true;return}if(o.swipeHandler){if(!c.closest(o.swipeHandler))return}s.currentX=l.pageX;s.currentY=l.pageY;var f=s.currentX;var m=s.currentY;var g=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection;var v=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(g&&(f<=v||f>=r.innerWidth-v)){if(g==="prevent"){e.preventDefault()}else{return}}Object.assign(n,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});s.startX=f;s.startY=m;n.touchStartTime=now();t.allowClick=true;t.updateSize();t.swipeDirection=undefined;if(o.threshold>0)n.allowThresholdMove=false;var y=true;if(c.matches(n.focusableElements)){y=false;if(c.nodeName==="SELECT"){n.isTouched=false}}if(i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==c){i.activeElement.blur()}var w=y&&t.allowTouchMove&&o.touchStartPreventDefault;if((o.touchStartForcePreventDefault||w)&&!c.isContentEditable){l.preventDefault()}if(o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode){t.freeMode.onTouchStart()}t.emit("touchStart",l)}function onTouchMove(e){var t=getDocument();var i=this;var r=i.touchEventsData;var n=i.params,o=i.touches,s=i.rtlTranslate,a=i.enabled;if(!a)return;if(!n.simulateTouch&&e.pointerType==="mouse")return;var l=e;if(l.originalEvent)l=l.originalEvent;if(!r.isTouched){if(r.startMoving&&r.isScrolling){i.emit("touchMoveOpposite",l)}return}var c=r.evCache.findIndex((function(e){return e.pointerId===l.pointerId}));if(c>=0)r.evCache[c]=l;var p=r.evCache.length>1?r.evCache[0]:l;var u=p.pageX;var d=p.pageY;if(l.preventedByNestedSwiper){o.startX=u;o.startY=d;return}if(!i.allowTouchMove){if(!l.target.matches(r.focusableElements)){i.allowClick=false}if(r.isTouched){Object.assign(o,{startX:u,startY:d,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:u,currentY:d});r.touchStartTime=now()}return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(d<o.startY&&i.translate<=i.maxTranslate()||d>o.startY&&i.translate>=i.minTranslate()){r.isTouched=false;r.isMoved=false;return}}else if(u<o.startX&&i.translate<=i.maxTranslate()||u>o.startX&&i.translate>=i.minTranslate()){return}}if(t.activeElement){if(l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=true;i.allowClick=false;return}}if(r.allowTouchCallbacks){i.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;o.currentX=u;o.currentY=d;var h=o.currentX-o.startX;var f=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(f,2))<i.params.threshold)return;if(typeof r.isScrolling==="undefined"){var m=void 0;if(i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX){r.isScrolling=false}else{if(h*h+f*f>=25){m=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI;r.isScrolling=i.isHorizontal()?m>n.touchAngle:90-m>n.touchAngle}}}if(r.isScrolling){i.emit("touchMoveOpposite",l)}if(typeof r.startMoving==="undefined"){if(o.currentX!==o.startX||o.currentY!==o.startY){r.startMoving=true}}if(r.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&r.evCache.length>1){r.isTouched=false;return}if(!r.startMoving){return}i.allowClick=false;if(!n.cssMode&&l.cancelable){l.preventDefault()}if(n.touchMoveStopPropagation&&!n.nested){l.stopPropagation()}var g=i.isHorizontal()?h:f;var v=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;if(n.oneWayMovement){g=Math.abs(g)*(s?1:-1);v=Math.abs(v)*(s?1:-1)}o.diff=g;g*=n.touchRatio;if(s){g=-g;v=-v}var y=i.touchesDirection;i.swipeDirection=g>0?"prev":"next";i.touchesDirection=v>0?"prev":"next";var w=i.params.loop&&!n.cssMode;if(!r.isMoved){if(w){i.loopFix({direction:i.swipeDirection})}r.startTranslate=i.getTranslate();i.setTransition(0);if(i.animating){var b=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true});i.wrapperEl.dispatchEvent(b)}r.allowMomentumBounce=false;if(n.grabCursor&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(true)}i.emit("sliderFirstMove",l)}var _;if(r.isMoved&&y!==i.touchesDirection&&w&&Math.abs(g)>=1){i.loopFix({direction:i.swipeDirection,setTranslate:true});_=true}i.emit("sliderMove",l);r.isMoved=true;r.currentTranslate=g+r.startTranslate;var x=true;var k=n.resistanceRatio;if(n.touchReleaseOnEdges){k=0}if(g>0){if(w&&!_&&r.currentTranslate>(n.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())){i.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(r.currentTranslate>i.minTranslate()){x=false;if(n.resistance){r.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+r.startTranslate+g,k)}}}else if(g<0){if(w&&!_&&r.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())){i.loopFix({direction:"next",setTranslate:true,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))})}if(r.currentTranslate<i.maxTranslate()){x=false;if(n.resistance){r.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-r.startTranslate-g,k)}}}if(x){l.preventedByNestedSwiper=true}if(!i.allowSlideNext&&i.swipeDirection==="next"&&r.currentTranslate<r.startTranslate){r.currentTranslate=r.startTranslate}if(!i.allowSlidePrev&&i.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate){r.currentTranslate=r.startTranslate}if(!i.allowSlidePrev&&!i.allowSlideNext){r.currentTranslate=r.startTranslate}if(n.threshold>0){if(Math.abs(g)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=true;o.startX=o.currentX;o.startY=o.currentY;r.currentTranslate=r.startTranslate;o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}}if(!n.followFinger||n.cssMode)return;if(n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress){i.updateActiveIndex();i.updateSlidesClasses()}if(n.freeMode&&n.freeMode.enabled&&i.freeMode){i.freeMode.onTouchMove()}i.updateProgress(r.currentTranslate);i.setTranslate(r.currentTranslate)}function onTouchEnd(e){var t=this;var i=t.touchEventsData;var r=i.evCache.findIndex((function(t){return t.pointerId===e.pointerId}));if(r>=0){i.evCache.splice(r,1)}if(["pointercancel","pointerout","pointerleave"].includes(e.type)){var n=e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView);if(!n){return}}var o=t.params,s=t.touches,a=t.rtlTranslate,l=t.slidesGrid,c=t.enabled;if(!c)return;if(!o.simulateTouch&&e.pointerType==="mouse")return;var p=e;if(p.originalEvent)p=p.originalEvent;if(i.allowTouchCallbacks){t.emit("touchEnd",p)}i.allowTouchCallbacks=false;if(!i.isTouched){if(i.isMoved&&o.grabCursor){t.setGrabCursor(false)}i.isMoved=false;i.startMoving=false;return}if(o.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===true||t.allowSlidePrev===true)){t.setGrabCursor(false)}var u=now();var d=u-i.touchStartTime;if(t.allowClick){var h=p.path||p.composedPath&&p.composedPath();t.updateClickedSlide(h&&h[0]||p.target);t.emit("tap click",p);if(d<300&&u-i.lastClickTime<300){t.emit("doubleTap doubleClick",p)}}i.lastClickTime=now();nextTick((function(){if(!t.destroyed)t.allowClick=true}));if(!i.isTouched||!i.isMoved||!t.swipeDirection||s.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=false;i.isMoved=false;i.startMoving=false;return}i.isTouched=false;i.isMoved=false;i.startMoving=false;var f;if(o.followFinger){f=a?t.translate:-t.translate}else{f=-i.currentTranslate}if(o.cssMode){return}if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}var m=0;var g=t.slidesSizesGrid[0];for(var v=0;v<l.length;v+=v<o.slidesPerGroupSkip?1:o.slidesPerGroup){var y=v<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(typeof l[v+y]!=="undefined"){if(f>=l[v]&&f<l[v+y]){m=v;g=l[v+y]-l[v]}}else if(f>=l[v]){m=v;g=l[l.length-1]-l[l.length-2]}}var w=null;var b=null;if(o.rewind){if(t.isBeginning){b=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1}else if(t.isEnd){w=0}}var _=(f-l[m])/g;var x=m<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}if(t.swipeDirection==="next"){if(_>=o.longSwipesRatio)t.slideTo(o.rewind&&t.isEnd?w:m+x);else t.slideTo(m)}if(t.swipeDirection==="prev"){if(_>1-o.longSwipesRatio){t.slideTo(m+x)}else if(b!==null&&_<0&&Math.abs(_)>o.longSwipesRatio){t.slideTo(b)}else{t.slideTo(m)}}}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}var k=t.navigation&&(p.target===t.navigation.nextEl||p.target===t.navigation.prevEl);if(!k){if(t.swipeDirection==="next"){t.slideTo(w!==null?w:m+x)}if(t.swipeDirection==="prev"){t.slideTo(b!==null?b:m)}}else if(p.target===t.navigation.nextEl){t.slideTo(m+x)}else{t.slideTo(m)}}}function onResize(){var e=this;var t=e.params,i=e.el;if(i&&i.offsetWidth===0)return;if(t.breakpoints){e.setBreakpoint()}var r=e.allowSlideNext,n=e.allowSlidePrev,o=e.snapGrid;var s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=true;e.allowSlidePrev=true;e.updateSize();e.updateSlides();e.updateSlidesClasses();var a=s&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a){e.slideTo(e.slides.length-1,0,false,true)}else{if(e.params.loop&&!s){e.slideToLoop(e.realIndex,0,false,true)}else{e.slideTo(e.activeIndex,0,false,true)}}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){clearTimeout(e.autoplay.resizeTimeout);e.autoplay.resizeTimeout=setTimeout((function(){if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){e.autoplay.resume()}}),500)}e.allowSlidePrev=n;e.allowSlideNext=r;if(e.params.watchOverflow&&o!==e.snapGrid){e.checkOverflow()}}function onClick(e){var t=this;if(!t.enabled)return;if(!t.allowClick){if(t.params.preventClicks)e.preventDefault();if(t.params.preventClicksPropagation&&t.animating){e.stopPropagation();e.stopImmediatePropagation()}}}function onScroll(){var e=this;var t=e.wrapperEl,i=e.rtlTranslate,r=e.enabled;if(!r)return;e.previousTranslate=e.translate;if(e.isHorizontal()){e.translate=-t.scrollLeft}else{e.translate=-t.scrollTop}if(e.translate===0)e.translate=0;e.updateActiveIndex();e.updateSlidesClasses();var n;var o=e.maxTranslate()-e.minTranslate();if(o===0){n=0}else{n=(e.translate-e.minTranslate())/o}if(n!==e.progress){e.updateProgress(i?-e.translate:e.translate)}e.emit("setTranslate",e.translate,false)}function onLoad(e){var t=this;processLazyPreloader(t,e.target);if(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight){return}t.update()}var dummyEventAttached=false;function dummyEventListener(){}var events=function(e,t){var i=getDocument();var r=e.params,n=e.el,o=e.wrapperEl,s=e.device;var a=!!r.nested;var l=t==="on"?"addEventListener":"removeEventListener";var c=t;n[l]("pointerdown",e.onTouchStart,{passive:false});i[l]("pointermove",e.onTouchMove,{passive:false,capture:a});i[l]("pointerup",e.onTouchEnd,{passive:true});i[l]("pointercancel",e.onTouchEnd,{passive:true});i[l]("pointerout",e.onTouchEnd,{passive:true});i[l]("pointerleave",e.onTouchEnd,{passive:true});if(r.preventClicks||r.preventClicksPropagation){n[l]("click",e.onClick,true)}if(r.cssMode){o[l]("scroll",e.onScroll)}if(r.updateOnWindowResize){e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,true)}else{e[c]("observerUpdate",onResize,true)}n[l]("load",e.onLoad,{capture:true})};function attachEvents(){var e=this;var t=getDocument();var i=e.params;e.onTouchStart=onTouchStart.bind(e);e.onTouchMove=onTouchMove.bind(e);e.onTouchEnd=onTouchEnd.bind(e);if(i.cssMode){e.onScroll=onScroll.bind(e)}e.onClick=onClick.bind(e);e.onLoad=onLoad.bind(e);if(!dummyEventAttached){t.addEventListener("touchstart",dummyEventListener);dummyEventAttached=true}events(e,"on")}function detachEvents(){var e=this;events(e,"off")}var events$1={attachEvents:attachEvents,detachEvents:detachEvents};var isGridEnabled=function(e,t){return e.grid&&t.grid&&t.grid.rows>1};function setBreakpoint(){var e=this;var t=e.realIndex,i=e.initialized,r=e.params,n=e.el;var o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;var s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;var a=s in o?o[s]:undefined;var l=a||e.originalParams;var c=isGridEnabled(e,r);var p=isGridEnabled(e,l);var u=r.enabled;if(c&&!p){n.classList.remove("".concat(r.containerModifierClass,"grid"),"".concat(r.containerModifierClass,"grid-column"));e.emitContainerClasses()}else if(!c&&p){n.classList.add("".concat(r.containerModifierClass,"grid"));if(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column"){n.classList.add("".concat(r.containerModifierClass,"grid-column"))}e.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((function(t){if(typeof l[t]==="undefined")return;var i=r[t]&&r[t].enabled;var n=l[t]&&l[t].enabled;if(i&&!n){e[t].disable()}if(!i&&n){e[t].enable()}}));var d=l.direction&&l.direction!==r.direction;var h=r.loop&&(l.slidesPerView!==r.slidesPerView||d);if(d&&i){e.changeDirection()}extend(e.params,l);var f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev});if(u&&!f){e.disable()}else if(!u&&f){e.enable()}e.currentBreakpoint=s;e.emit("_beforeBreakpoint",l);if(h&&i){e.loopDestroy();e.loopCreate(t);e.updateSlides()}e.emit("breakpoint",l)}function getBreakpoint(e,t,i){if(t===void 0){t="window"}if(!e||t==="container"&&!i)return undefined;var r=false;var n=getWindow();var o=t==="window"?n.innerHeight:i.clientHeight;var s=Object.keys(e).map((function(e){if(typeof e==="string"&&e.indexOf("@")===0){var t=parseFloat(e.substr(1));var i=o*t;return{value:i,point:e}}return{value:e,point:e}}));s.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var a=0;a<s.length;a+=1){var l=s[a],c=l.point,p=l.value;if(t==="window"){if(n.matchMedia("(min-width: ".concat(p,"px)")).matches){r=c}}else if(p<=i.clientWidth){r=c}}return r||"max"}var breakpoints={setBreakpoint:setBreakpoint,getBreakpoint:getBreakpoint};function prepareClasses(e,t){var i=[];e.forEach((function(e){if(typeof e==="object"){Object.keys(e).forEach((function(r){if(e[r]){i.push(t+r)}}))}else if(typeof e==="string"){i.push(t+e)}}));return i}function addClasses(){var e;var t=this;var i=t.classNames,r=t.params,n=t.rtl,o=t.el,s=t.device;var a=prepareClasses(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);i.push.apply(i,a);(e=o.classList).add.apply(e,i);t.emitContainerClasses()}function removeClasses(){var e;var t=this;var i=t.el,r=t.classNames;(e=i.classList).remove.apply(e,r);t.emitContainerClasses()}var classes={addClasses:addClasses,removeClasses:removeClasses};function checkOverflow(){var e=this;var t=e.isLocked,i=e.params;var r=i.slidesOffsetBefore;if(r){var n=e.slides.length-1;var o=e.slidesGrid[n]+e.slidesSizesGrid[n]+r*2;e.isLocked=e.size>o}else{e.isLocked=e.snapGrid.length===1}if(i.allowSlideNext===true){e.allowSlideNext=!e.isLocked}if(i.allowSlidePrev===true){e.allowSlidePrev=!e.isLocked}if(t&&t!==e.isLocked){e.isEnd=false}if(t!==e.isLocked){e.emit(e.isLocked?"lock":"unlock")}}var checkOverflow$1={checkOverflow:checkOverflow};var defaults={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 moduleExtendParams(e,t){return function i(r){if(r===void 0){r={}}var n=Object.keys(r)[0];var o=r[n];if(typeof o!=="object"||o===null){extend(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&e[n]===true){e[n]={auto:true}}if(!(n in e&&"enabled"in o)){extend(t,r);return}if(e[n]===true){e[n]={enabled:true}}if(typeof e[n]==="object"&&!("enabled"in e[n])){e[n].enabled=true}if(!e[n])e[n]={enabled:false};extend(t,r)}}var prototypes={eventsEmitter:eventsEmitter,update:update,translate:translate,transition:transition,slide:slide,loop:loop,grabCursor:grabCursor,events:events$1,breakpoints:breakpoints,checkOverflow:checkOverflow$1,classes:classes};var extendedDefaults={};var Swiper=function(){function e(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}var n;var o;if(i.length===1&&i[0].constructor&&Object.prototype.toString.call(i[0]).slice(8,-1)==="Object"){o=i[0]}else{n=i[0],o=i[1]}if(!o)o={};o=extend({},o);if(n&&!o.el)o.el=n;var s=getDocument();if(o.el&&typeof o.el==="string"&&s.querySelectorAll(o.el).length>1){var a=[];s.querySelectorAll(o.el).forEach((function(t){var i=extend({},o,{el:t});a.push(new e(i))}));return a}var l=this;l.__swiper__=true;l.support=getSupport();l.device=getDevice({userAgent:o.userAgent});l.browser=getBrowser();l.eventsListeners={};l.eventsAnyListeners=[];l.modules=__spreadArray([],l.__modules__,true);if(o.modules&&Array.isArray(o.modules)){(t=l.modules).push.apply(t,o.modules)}var c={};l.modules.forEach((function(e){e({params:o,swiper:l,extendParams:moduleExtendParams(o,c),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));var p=extend({},defaults,c);l.params=extend({},p,extendedDefaults,o);l.originalParams=extend({},l.params);l.passedParams=extend({},o);if(l.params&&l.params.on){Object.keys(l.params.on).forEach((function(e){l.on(e,l.params.on[e])}))}if(l.params&&l.params.onAny){l.onAny(l.params.onAny)}Object.assign(l,{enabled:l.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return l.params.direction==="horizontal"},isVertical:function(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,cssOverflowAdjustment:function(){return Math.trunc(this.translate/Math.pow(2,23))*Math.pow(2,23)},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,startMoving:undefined,evCache:[]},allowClick:true,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});l.emit("_swiper");if(l.params.init){l.init()}return l}e.prototype.getSlideIndex=function(e){var t=this,i=t.slidesEl,r=t.params;var n=elementChildren(i,".".concat(r.slideClass,", swiper-slide"));var o=elementIndex(n[0]);return elementIndex(e)-o};e.prototype.getSlideIndexByData=function(e){return this.getSlideIndex(this.slides.filter((function(t){return t.getAttribute("data-swiper-slide-index")*1===e}))[0])};e.prototype.recalcSlides=function(){var e=this;var t=e.slidesEl,i=e.params;e.slides=elementChildren(t,".".concat(i.slideClass,", swiper-slide"))};e.prototype.enable=function(){var e=this;if(e.enabled)return;e.enabled=true;if(e.params.grabCursor){e.setGrabCursor()}e.emit("enable")};e.prototype.disable=function(){var e=this;if(!e.enabled)return;e.enabled=false;if(e.params.grabCursor){e.unsetGrabCursor()}e.emit("disable")};e.prototype.setProgress=function(e,t){var i=this;e=Math.min(Math.max(e,0),1);var r=i.minTranslate();var n=i.maxTranslate();var o=(n-r)*e+r;i.translateTo(o,typeof t==="undefined"?0:t);i.updateActiveIndex();i.updateSlidesClasses()};e.prototype.emitContainerClasses=function(){var e=this;if(!e.params._emitClasses||!e.el)return;var t=e.el.className.split(" ").filter((function(t){return t.indexOf("swiper")===0||t.indexOf(e.params.containerModifierClass)===0}));e.emit("_containerClasses",t.join(" "))};e.prototype.getSlideClasses=function(e){var t=this;if(t.destroyed)return"";return e.className.split(" ").filter((function(e){return e.indexOf("swiper-slide")===0||e.indexOf(t.params.slideClass)===0})).join(" ")};e.prototype.emitSlidesClasses=function(){var e=this;if(!e.params._emitClasses||!e.el)return;var t=[];e.slides.forEach((function(i){var r=e.getSlideClasses(i);t.push({slideEl:i,classNames:r});e.emit("_slideClass",i,r)}));e.emit("_slideClasses",t)};e.prototype.slidesPerViewDynamic=function(e,t){if(e===void 0){e="current"}if(t===void 0){t=false}var i=this;var r=i.params,n=i.slides,o=i.slidesGrid,s=i.slidesSizesGrid,a=i.size,l=i.activeIndex;var c=1;if(r.centeredSlides){var p=n[l]?n[l].swiperSlideSize:0;var u=void 0;for(var d=l+1;d<n.length;d+=1){if(n[d]&&!u){p+=n[d].swiperSlideSize;c+=1;if(p>a)u=true}}for(var d=l-1;d>=0;d-=1){if(n[d]&&!u){p+=n[d].swiperSlideSize;c+=1;if(p>a)u=true}}}else{if(e==="current"){for(var d=l+1;d<n.length;d+=1){var h=t?o[d]+s[d]-o[l]<a:o[d]-o[l]<a;if(h){c+=1}}}else{for(var d=l-1;d>=0;d-=1){var h=o[l]-o[d]<a;if(h){c+=1}}}}return c};e.prototype.update=function(){var e=this;if(!e||e.destroyed)return;var t=e.snapGrid,i=e.params;if(i.breakpoints){e.setBreakpoint()}__spreadArray([],e.el.querySelectorAll('[loading="lazy"]'),true).forEach((function(t){if(t.complete){processLazyPreloader(e,t)}}));e.updateSize();e.updateSlides();e.updateProgress();e.updateSlidesClasses();function r(){var t=e.rtlTranslate?e.translate*-1:e.translate;var i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i);e.updateActiveIndex();e.updateSlidesClasses()}var n;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode){r();if(i.autoHeight){e.updateAutoHeight()}}else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){var o=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(o.length-1,0,false,true)}else{n=e.slideTo(e.activeIndex,0,false,true)}if(!n){r()}}if(i.watchOverflow&&t!==e.snapGrid){e.checkOverflow()}e.emit("update")};e.prototype.changeDirection=function(e,t){if(t===void 0){t=true}var i=this;var r=i.params.direction;if(!e){e=r==="horizontal"?"vertical":"horizontal"}if(e===r||e!=="horizontal"&&e!=="vertical"){return i}i.el.classList.remove("".concat(i.params.containerModifierClass).concat(r));i.el.classList.add("".concat(i.params.containerModifierClass).concat(e));i.emitContainerClasses();i.params.direction=e;i.slides.forEach((function(t){if(e==="vertical"){t.style.width=""}else{t.style.height=""}}));i.emit("changeDirection");if(t)i.update();return i};e.prototype.changeLanguageDirection=function(e){var t=this;if(t.rtl&&e==="rtl"||!t.rtl&&e==="ltr")return;t.rtl=e==="rtl";t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl;if(t.rtl){t.el.classList.add("".concat(t.params.containerModifierClass,"rtl"));t.el.dir="rtl"}else{t.el.classList.remove("".concat(t.params.containerModifierClass,"rtl"));t.el.dir="ltr"}t.update()};e.prototype.mount=function(e){var t=this;if(t.mounted)return true;var i=e||t.params.el;if(typeof i==="string"){i=document.querySelector(i)}if(!i){return false}i.swiper=t;if(i.shadowEl){t.isElement=true}var r=function(){return".".concat((t.params.wrapperClass||"").trim().split(" ").join("."))};var n=function(){if(i&&i.shadowRoot&&i.shadowRoot.querySelector){var e=i.shadowRoot.querySelector(r());return e}return elementChildren(i,r())[0]};var o=n();if(!o&&t.params.createElements){o=createElement("div",t.params.wrapperClass);i.append(o);elementChildren(i,".".concat(t.params.slideClass)).forEach((function(e){o.append(e)}))}Object.assign(t,{el:i,wrapperEl:o,slidesEl:t.isElement?i:o,mounted:true,rtl:i.dir.toLowerCase()==="rtl"||elementStyle(i,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||elementStyle(i,"direction")==="rtl"),wrongRTL:elementStyle(o,"display")==="-webkit-box"});return true};e.prototype.init=function(e){var t=this;if(t.initialized)return t;var i=t.mount(e);if(i===false)return t;t.emit("beforeInit");if(t.params.breakpoints){t.setBreakpoint()}t.addClasses();t.updateSize();t.updateSlides();if(t.params.watchOverflow){t.checkOverflow()}if(t.params.grabCursor&&t.enabled){t.setGrabCursor()}if(t.params.loop&&t.virtual&&t.params.virtual.enabled){t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,false,true)}else{t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,false,true)}if(t.params.loop){t.loopCreate()}t.attachEvents();__spreadArray([],t.el.querySelectorAll('[loading="lazy"]'),true).forEach((function(e){if(e.complete){processLazyPreloader(t,e)}else{e.addEventListener("load",(function(e){processLazyPreloader(t,e.target)}))}}));preload(t);t.initialized=true;preload(t);t.emit("init");t.emit("afterInit");return t};e.prototype.destroy=function(e,t){if(e===void 0){e=true}if(t===void 0){t=true}var i=this;var r=i.params,n=i.el,o=i.wrapperEl,s=i.slides;if(typeof i.params==="undefined"||i.destroyed){return null}i.emit("beforeDestroy");i.initialized=false;i.detachEvents();if(r.loop){i.loopDestroy()}if(t){i.removeClasses();n.removeAttribute("style");o.removeAttribute("style");if(s&&s.length){s.forEach((function(e){e.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass);e.removeAttribute("style");e.removeAttribute("data-swiper-slide-index")}))}}i.emit("destroy");Object.keys(i.eventsListeners).forEach((function(e){i.off(e)}));if(e!==false){i.el.swiper=null;deleteProps(i)}i.destroyed=true;return null};e.extendDefaults=function(e){extend(extendedDefaults,e)};Object.defineProperty(e,"extendedDefaults",{get:function(){return extendedDefaults},enumerable:false,configurable:true});Object.defineProperty(e,"defaults",{get:function(){return defaults},enumerable:false,configurable:true});e.installModule=function(t){if(!e.prototype.__modules__)e.prototype.__modules__=[];var i=e.prototype.__modules__;if(typeof t==="function"&&i.indexOf(t)<0){i.push(t)}};e.use=function(t){if(Array.isArray(t)){t.forEach((function(t){return e.installModule(t)}));return e}e.installModule(t);return e};return e}();Object.keys(prototypes).forEach((function(e){Object.keys(prototypes[e]).forEach((function(t){Swiper.prototype[t]=prototypes[e][t]}))}));Swiper.use([Resize,Observer]);function Keyboard(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=getDocument();var s=getWindow();t.keyboard={enabled:false};i({keyboard:{enabled:false,onlyInViewport:true,pageUpDown:true}});function a(e){if(!t.enabled)return;var i=t.rtlTranslate;var r=e;if(r.originalEvent)r=r.originalEvent;var a=r.keyCode||r.charCode;var l=t.params.keyboard.pageUpDown;var c=l&&a===33;var p=l&&a===34;var u=a===37;var d=a===39;var h=a===38;var f=a===40;if(!t.allowSlideNext&&(t.isHorizontal()&&d||t.isVertical()&&f||p)){return false}if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&h||c)){return false}if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey){return undefined}if(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea")){return undefined}if(t.params.keyboard.onlyInViewport&&(c||p||u||d||h||f)){var m=false;if(elementParents(t.el,".".concat(t.params.slideClass,", swiper-slide")).length>0&&elementParents(t.el,".".concat(t.params.slideActiveClass)).length===0){return undefined}var g=t.el;var v=g.clientWidth;var y=g.clientHeight;var w=s.innerWidth;var b=s.innerHeight;var _=elementOffset(g);if(i)_.left-=g.scrollLeft;var x=[[_.left,_.top],[_.left+v,_.top],[_.left,_.top+y],[_.left+v,_.top+y]];for(var k=0;k<x.length;k+=1){var A=x[k];if(A[0]>=0&&A[0]<=w&&A[1]>=0&&A[1]<=b){if(A[0]===0&&A[1]===0)continue;m=true}}if(!m)return undefined}if(t.isHorizontal()){if(c||p||u||d){if(r.preventDefault)r.preventDefault();else r.returnValue=false}if((p||d)&&!i||(c||u)&&i)t.slideNext();if((c||u)&&!i||(p||d)&&i)t.slidePrev()}else{if(c||p||h||f){if(r.preventDefault)r.preventDefault();else r.returnValue=false}if(p||f)t.slideNext();if(c||h)t.slidePrev()}n("keyPress",a);return undefined}function l(){if(t.keyboard.enabled)return;o.addEventListener("keydown",a);t.keyboard.enabled=true}function c(){if(!t.keyboard.enabled)return;o.removeEventListener("keydown",a);t.keyboard.enabled=false}r("init",(function(){if(t.params.keyboard.enabled){l()}}));r("destroy",(function(){if(t.keyboard.enabled){c()}}));Object.assign(t.keyboard,{enable:l,disable:c})}function Mousewheel(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=getWindow();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};var s;var a=now();var l;var c=[];function p(e){var t=10;var i=40;var r=800;var n=0;var o=0;var s=0;var a=0;if("detail"in e){o=e.detail}if("wheelDelta"in e){o=-e.wheelDelta/120}if("wheelDeltaY"in e){o=-e.wheelDeltaY/120}if("wheelDeltaX"in e){n=-e.wheelDeltaX/120}if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){n=o;o=0}s=n*t;a=o*t;if("deltaY"in e){a=e.deltaY}if("deltaX"in e){s=e.deltaX}if(e.shiftKey&&!s){s=a;a=0}if((s||a)&&e.deltaMode){if(e.deltaMode===1){s*=i;a*=i}else{s*=r;a*=r}}if(s&&!n){n=s<1?-1:1}if(a&&!o){o=a<1?-1:1}return{spinX:n,spinY:o,pixelX:s,pixelY:a}}function u(){if(!t.enabled)return;t.mouseEntered=true}function d(){if(!t.enabled)return;t.mouseEntered=false}function h(e){if(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&now()-a<t.params.mousewheel.thresholdTime){return false}if(e.delta>=6&&now()-a<60){return true}if(e.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();n("scroll",e.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();n("scroll",e.raw)}a=(new o.Date).getTime();return false}function f(e){var i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges){return true}return false}function m(e){var i=e;var r=true;if(!t.enabled)return;if(e.target.closest(".".concat(t.params.mousewheel.noMousewheelClass)))return;var o=t.params.mousewheel;if(t.params.cssMode){i.preventDefault()}var a=t.el;if(t.params.mousewheel.eventsTarget!=="container"){a=document.querySelector(t.params.mousewheel.eventsTarget)}var u=a&&a.contains(i.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var d=0;var m=t.rtlTranslate?-1:1;var g=p(i);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;var v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();r=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(r&&t.params.nested)i.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){var y={time:now(),delta:Math.abs(d),direction:Math.sign(d),raw:e};if(c.length>=2){c.shift()}var w=c.length?c[c.length-1]:undefined;c.push(y);if(w){if(y.direction!==w.direction||y.delta>w.delta||y.time>w.time+150){h(y)}}else{h(y)}if(f(y)){return true}}else{var b={time:now(),delta:Math.abs(d),direction:Math.sign(d)};var _=l&&b.time<l.time+500&&b.delta<=l.delta&&b.direction===l.direction;if(!_){l=undefined;var x=t.getTranslate()+d*o.sensitivity;var k=t.isBeginning;var A=t.isEnd;if(x>=t.minTranslate())x=t.minTranslate();if(x<=t.maxTranslate())x=t.maxTranslate();t.setTransition(0);t.setTranslate(x);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!k&&t.isBeginning||!A&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:b.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(c.length>=15){c.shift()}var w=c.length?c[c.length-1]:undefined;var T=c[0];c.push(b);if(w&&(b.delta>w.delta||b.direction!==w.direction)){c.splice(0)}else if(c.length>=15&&b.time-T.time<500&&T.delta-b.delta>=1&&b.delta<=6){var C=d>0?.8:.2;l=b;c.splice(0);s=nextTick((function(){t.slideToClosest(t.params.speed,true,undefined,C)}),0)}if(!s){s=nextTick((function(){var e=.5;l=b;c.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!_)n("scroll",i);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(x===t.minTranslate()||x===t.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function g(e){var i=t.el;if(t.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(t.params.mousewheel.eventsTarget)}i[e]("mouseenter",u);i[e]("mouseleave",d);i[e]("wheel",m)}function v(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",m);return true}if(t.mousewheel.enabled)return false;g("addEventListener");t.mousewheel.enabled=true;return true}function y(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,m);return true}if(!t.mousewheel.enabled)return false;g("removeEventListener");t.mousewheel.enabled=false;return true}r("init",(function(){if(!t.params.mousewheel.enabled&&t.params.cssMode){y()}if(t.params.mousewheel.enabled)v()}));r("destroy",(function(){if(t.params.cssMode){v()}if(t.mousewheel.enabled)y()}));Object.assign(t.mousewheel,{enable:v,disable:y})}function createElementIfNotDefined(e,t,i,r){if(e.params.createElements){Object.keys(r).forEach((function(n){if(!i[n]&&i.auto===true){var o=elementChildren(e.el,".".concat(r[n]))[0];if(!o){o=createElement("div",r[n]);o.className=r[n];e.el.append(o)}i[n]=o;t[n]=o}}))}return i}function Navigation(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;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};var o=function(e){if(!Array.isArray(e))e=[e].filter((function(e){return!!e}));return e};function s(e){var i;if(e&&typeof e==="string"&&t.isElement){i=t.el.shadowRoot.querySelector(e);if(i)return i}if(e){if(typeof e==="string")i=__spreadArray([],document.querySelectorAll(e),true);if(t.params.uniqueNavElements&&typeof e==="string"&&i.length>1&&t.el.querySelectorAll(e).length===1){i=t.el.querySelector(e)}}if(e&&!i)return e;return i}function a(e,i){var r=t.params.navigation;e=o(e);e.forEach((function(e){var n;if(e){(n=e.classList)[i?"add":"remove"].apply(n,r.disabledClass.split(" "));if(e.tagName==="BUTTON")e.disabled=i;if(t.params.watchOverflow&&t.enabled){e.classList[t.isLocked?"add":"remove"](r.lockClass)}}}))}function l(){var e=t.navigation,i=e.nextEl,r=e.prevEl;if(t.params.loop){a(r,false);a(i,false);return}a(r,t.isBeginning&&!t.params.rewind);a(i,t.isEnd&&!t.params.rewind)}function c(e){e.preventDefault();if(t.isBeginning&&!t.params.loop&&!t.params.rewind)return;t.slidePrev();n("navigationPrev")}function p(e){e.preventDefault();if(t.isEnd&&!t.params.loop&&!t.params.rewind)return;t.slideNext();n("navigationNext")}function u(){var e=t.params.navigation;t.params.navigation=createElementIfNotDefined(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(e.nextEl||e.prevEl))return;var i=s(e.nextEl);var r=s(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:r});i=o(i);r=o(r);var n=function(i,r){var n;if(i){i.addEventListener("click",r==="next"?p:c)}if(!t.enabled&&i){(n=i.classList).add.apply(n,e.lockClass.split(" "))}};i.forEach((function(e){return n(e,"next")}));r.forEach((function(e){return n(e,"prev")}))}function d(){var e=t.navigation,i=e.nextEl,r=e.prevEl;i=o(i);r=o(r);var n=function(e,i){var r;e.removeEventListener("click",i==="next"?p:c);(r=e.classList).remove.apply(r,t.params.navigation.disabledClass.split(" "))};i.forEach((function(e){return n(e,"next")}));r.forEach((function(e){return n(e,"prev")}))}r("init",(function(){if(t.params.navigation.enabled===false){f()}else{u();l()}}));r("toEdge fromEdge lock unlock",(function(){l()}));r("destroy",(function(){d()}));r("enable disable",(function(){var e=t.navigation,i=e.nextEl,r=e.prevEl;i=o(i);r=o(r);__spreadArray(__spreadArray([],i,true),r,true).filter((function(e){return!!e})).forEach((function(e){return e.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass)}))}));r("click",(function(e,i){var r=t.navigation,s=r.nextEl,a=r.prevEl;s=o(s);a=o(a);var l=i.target;if(t.params.navigation.hideOnClick&&!a.includes(l)&&!s.includes(l)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===l||t.pagination.el.contains(l)))return;var c=void 0;if(s.length){c=s[0].classList.contains(t.params.navigation.hiddenClass)}else if(a.length){c=a[0].classList.contains(t.params.navigation.hiddenClass)}if(c===true){n("navigationShow")}else{n("navigationHide")}__spreadArray(__spreadArray([],s,true),a,true).filter((function(e){return!!e})).forEach((function(e){return e.classList.toggle(t.params.navigation.hiddenClass)}))}}));var h=function(){var e;(e=t.el.classList).remove.apply(e,t.params.navigation.navigationDisabledClass.split(" "));u();l()};var f=function(){var e;(e=t.el.classList).add.apply(e,t.params.navigation.navigationDisabledClass.split(" "));d()};Object.assign(t.navigation,{enable:h,disable:f,update:l,init:u,destroy:d})}function classesToSelector(e){if(e===void 0){e=""}return".".concat(e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function Pagination(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o="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:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"".concat(o,"-bullet"),bulletActiveClass:"".concat(o,"-bullet-active"),modifierClass:"".concat(o,"-"),currentClass:"".concat(o,"-current"),totalClass:"".concat(o,"-total"),hiddenClass:"".concat(o,"-hidden"),progressbarFillClass:"".concat(o,"-progressbar-fill"),progressbarOppositeClass:"".concat(o,"-progressbar-opposite"),clickableClass:"".concat(o,"-clickable"),lockClass:"".concat(o,"-lock"),horizontalClass:"".concat(o,"-horizontal"),verticalClass:"".concat(o,"-vertical"),paginationDisabledClass:"".concat(o,"-disabled")}});t.pagination={el:null,bullets:[]};var s;var a=0;var l=function(e){if(!Array.isArray(e))e=[e].filter((function(e){return!!e}));return e};function c(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function p(e,i){var r=t.params.pagination.bulletActiveClass;if(!e)return;e=e["".concat(i==="prev"?"previous":"next","ElementSibling")];if(e){e.classList.add("".concat(r,"-").concat(i));e=e["".concat(i==="prev"?"previous":"next","ElementSibling")];if(e){e.classList.add("".concat(r,"-").concat(i,"-").concat(i))}}}function u(e){var i=e.target.closest(classesToSelector(t.params.pagination.bulletClass));if(!i){return}e.preventDefault();var r=elementIndex(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;var n=t.getSlideIndexByData(r);var o=t.getSlideIndexByData(t.realIndex);if(n>t.slides.length-t.loopedSlides){t.loopFix({direction:n>o?"next":"prev",activeSlideIndex:n,slideTo:false})}t.slideToLoop(r)}else{t.slideTo(r)}}function d(){var e,i;var r=t.rtl;var o=t.params.pagination;if(c())return;var u=t.pagination.el;u=l(u);var d;var h;var f=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;var m=t.params.loop?Math.ceil(f/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop){h=t.previousRealIndex||0;d=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex}else if(typeof t.snapIndex!=="undefined"){d=t.snapIndex;h=t.previousSnapIndex}else{h=t.previousIndex||0;d=t.activeIndex||0}if(o.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){var g=t.pagination.bullets;var v;var y;var w=void 0;if(o.dynamicBullets){s=elementOuterSize(g[0],t.isHorizontal()?"width":"height",true);u.forEach((function(e){e.style[t.isHorizontal()?"width":"height"]="".concat(s*(o.dynamicMainBullets+4),"px")}));if(o.dynamicMainBullets>1&&h!==undefined){a+=d-(h||0);if(a>o.dynamicMainBullets-1){a=o.dynamicMainBullets-1}else if(a<0){a=0}}v=Math.max(d-a,0);y=v+(Math.min(g.length,o.dynamicMainBullets)-1);w=(y+v)/2}g.forEach((function(e){var t;var i=__spreadArray([],["","-next","-next-next","-prev","-prev-prev","-main"].map((function(e){return"".concat(o.bulletActiveClass).concat(e)})),true).map((function(e){return typeof e==="string"&&e.includes(" ")?e.split(" "):e})).flat();(t=e.classList).remove.apply(t,i)}));if(u.length>1){g.forEach((function(e){var i,r;var n=elementIndex(e);if(n===d){(i=e.classList).add.apply(i,o.bulletActiveClass.split(" "))}else if(t.isElement){e.setAttribute("part","bullet")}if(o.dynamicBullets){if(n>=v&&n<=y){(r=e.classList).add.apply(r,"".concat(o.bulletActiveClass,"-main").split(" "))}if(n===v){p(e,"prev")}if(n===y){p(e,"next")}}}))}else{var b=g[d];if(b){(e=b.classList).add.apply(e,o.bulletActiveClass.split(" "))}if(t.isElement){g.forEach((function(e,t){e.setAttribute("part",t===d?"bullet-active":"bullet")}))}if(o.dynamicBullets){var _=g[v];var x=g[y];for(var k=v;k<=y;k+=1){if(g[k]){(i=g[k].classList).add.apply(i,"".concat(o.bulletActiveClass,"-main").split(" "))}}p(_,"prev");p(x,"next")}}if(o.dynamicBullets){var A=Math.min(g.length,o.dynamicMainBullets+4);var T=(s*A-s)/2-w*s;var C=r?"right":"left";g.forEach((function(e){e.style[t.isHorizontal()?C:"top"]="".concat(T,"px")}))}}u.forEach((function(e,i){if(o.type==="fraction"){e.querySelectorAll(classesToSelector(o.currentClass)).forEach((function(e){e.textContent=o.formatFractionCurrent(d+1)}));e.querySelectorAll(classesToSelector(o.totalClass)).forEach((function(e){e.textContent=o.formatFractionTotal(m)}))}if(o.type==="progressbar"){var r=void 0;if(o.progressbarOpposite){r=t.isHorizontal()?"vertical":"horizontal"}else{r=t.isHorizontal()?"horizontal":"vertical"}var s=(d+1)/m;var a=1;var l=1;if(r==="horizontal"){a=s}else{l=s}e.querySelectorAll(classesToSelector(o.progressbarFillClass)).forEach((function(e){e.style.transform="translate3d(0,0,0) scaleX(".concat(a,") scaleY(").concat(l,")");e.style.transitionDuration="".concat(t.params.speed,"ms")}))}if(o.type==="custom"&&o.renderCustom){e.innerHTML=o.renderCustom(t,d+1,m);if(i===0)n("paginationRender",e)}else{if(i===0)n("paginationRender",e);n("paginationUpdate",e)}if(t.params.watchOverflow&&t.enabled){e.classList[t.isLocked?"add":"remove"](o.lockClass)}}))}function h(){var e=t.params.pagination;if(c())return;var i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;var r=t.pagination.el;r=l(r);var o="";if(e.type==="bullets"){var s=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.freeMode&&t.params.freeMode.enabled&&s>i){s=i}for(var a=0;a<s;a+=1){if(e.renderBullet){o+=e.renderBullet.call(t,a,e.bulletClass)}else{o+="<".concat(e.bulletElement," ").concat(t.isElement?'part="bullet"':"",' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">")}}}if(e.type==="fraction"){if(e.renderFraction){o=e.renderFraction.call(t,e.currentClass,e.totalClass)}else{o='<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>')}}if(e.type==="progressbar"){if(e.renderProgressbar){o=e.renderProgressbar.call(t,e.progressbarFillClass)}else{o='<span class="'.concat(e.progressbarFillClass,'"></span>')}}t.pagination.bullets=[];r.forEach((function(i){var r;if(e.type!=="custom"){i.innerHTML=o||""}if(e.type==="bullets"){(r=t.pagination.bullets).push.apply(r,i.querySelectorAll(classesToSelector(e.bulletClass)))}}));if(e.type!=="custom"){n("paginationRender",r[0])}}function f(){t.params.pagination=createElementIfNotDefined(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});var e=t.params.pagination;if(!e.el)return;var i;if(typeof e.el==="string"&&t.isElement){i=t.el.shadowRoot.querySelector(e.el)}if(!i&&typeof e.el==="string"){i=__spreadArray([],document.querySelectorAll(e.el),true)}if(!i){i=e.el}if(!i||i.length===0)return;if(t.params.uniqueNavElements&&typeof e.el==="string"&&Array.isArray(i)&&i.length>1){i=__spreadArray([],t.el.querySelectorAll(e.el),true);if(i.length>1){i=i.filter((function(e){if(elementParents(e,".swiper")[0]!==t.el)return false;return true}))[0]}}if(Array.isArray(i)&&i.length===1)i=i[0];Object.assign(t.pagination,{el:i});i=l(i);i.forEach((function(i){if(e.type==="bullets"&&e.clickable){i.classList.add(e.clickableClass)}i.classList.add(e.modifierClass+e.type);i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass);if(e.type==="bullets"&&e.dynamicBullets){i.classList.add("".concat(e.modifierClass).concat(e.type,"-dynamic"));a=0;if(e.dynamicMainBullets<1){e.dynamicMainBullets=1}}if(e.type==="progressbar"&&e.progressbarOpposite){i.classList.add(e.progressbarOppositeClass)}if(e.clickable){i.addEventListener("click",u)}if(!t.enabled){i.classList.add(e.lockClass)}}))}function m(){var e=t.params.pagination;if(c())return;var i=t.pagination.el;if(i){i=l(i);i.forEach((function(i){i.classList.remove(e.hiddenClass);i.classList.remove(e.modifierClass+e.type);i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass);if(e.clickable){i.removeEventListener("click",u)}}))}if(t.pagination.bullets)t.pagination.bullets.forEach((function(t){var i;return(i=t.classList).remove.apply(i,e.bulletActiveClass.split(" "))}))}r("changeDirection",(function(){if(!t.pagination||!t.pagination.el)return;var e=t.params.pagination;var i=t.pagination.el;i=l(i);i.forEach((function(i){i.classList.remove(e.horizontalClass,e.verticalClass);i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))}));r("init",(function(){if(t.params.pagination.enabled===false){v()}else{f();h();d()}}));r("activeIndexChange",(function(){if(typeof t.snapIndex==="undefined"){d()}}));r("snapIndexChange",(function(){d()}));r("snapGridLengthChange",(function(){h();d()}));r("destroy",(function(){m()}));r("enable disable",(function(){var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)}))}}));r("lock unlock",(function(){d()}));r("click",(function(e,i){var r=i.target;var o=t.pagination.el;if(!Array.isArray(o))o=[o].filter((function(e){return!!e}));if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;var s=o[0].classList.contains(t.params.pagination.hiddenClass);if(s===true){n("paginationShow")}else{n("paginationHide")}o.forEach((function(e){return e.classList.toggle(t.params.pagination.hiddenClass)}))}}));var g=function(){t.el.classList.remove(t.params.pagination.paginationDisabledClass);var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList.remove(t.params.pagination.paginationDisabledClass)}))}f();h();d()};var v=function(){t.el.classList.add(t.params.pagination.paginationDisabledClass);var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList.add(t.params.pagination.paginationDisabledClass)}))}m()};Object.assign(t.pagination,{enable:g,disable:v,render:h,update:d,init:f,destroy:m})}function freeMode(e){var t=e.swiper,i=e.extendParams,r=e.emit,n=e.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function o(){if(t.params.cssMode)return;var e=t.getTranslate();t.setTranslate(e);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;var e=t.touchEventsData,i=t.touches;if(e.velocities.length===0){e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime})}e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:now()})}function a(e){var i=e.currentPos;if(t.params.cssMode)return;var o=t.params,s=t.wrapperEl,a=t.rtlTranslate,l=t.snapGrid,c=t.touchEventsData;var p=now();var u=p-c.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<l.length){t.slideTo(l.length-1)}else{t.slideTo(t.slides.length-1)}return}if(o.freeMode.momentum){if(c.velocities.length>1){var d=c.velocities.pop();var h=c.velocities.pop();var f=d.position-h.position;var m=d.time-h.time;t.velocity=f/m;t.velocity/=2;if(Math.abs(t.velocity)<o.freeMode.minimumVelocity){t.velocity=0}if(m>150||now()-d.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=o.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*o.freeMode.momentumRatio;var v=t.velocity*g;var y=t.translate+v;if(a)y=-y;var w=false;var b;var _=Math.abs(t.velocity)*20*o.freeMode.momentumBounceRatio;var x=void 0;if(y<t.maxTranslate()){if(o.freeMode.momentumBounce){if(y+t.maxTranslate()<-_){y=t.maxTranslate()-_}b=t.maxTranslate();w=true;c.allowMomentumBounce=true}else{y=t.maxTranslate()}if(o.loop&&o.centeredSlides)x=true}else if(y>t.minTranslate()){if(o.freeMode.momentumBounce){if(y-t.minTranslate()>_){y=t.minTranslate()+_}b=t.minTranslate();w=true;c.allowMomentumBounce=true}else{y=t.minTranslate()}if(o.loop&&o.centeredSlides)x=true}else if(o.freeMode.sticky){var k=void 0;for(var A=0;A<l.length;A+=1){if(l[A]>-y){k=A;break}}if(Math.abs(l[k]-y)<Math.abs(l[k-1]-y)||t.swipeDirection==="next"){y=l[k]}else{y=l[k-1]}y=-y}if(x){n("transitionEnd",(function(){t.loopFix()}))}if(t.velocity!==0){if(a){g=Math.abs((-y-t.translate)/t.velocity)}else{g=Math.abs((y-t.translate)/t.velocity)}if(o.freeMode.sticky){var T=Math.abs((a?-y:y)-t.translate);var C=t.slidesSizesGrid[t.activeIndex];if(T<C){g=o.speed}else if(T<2*C){g=o.speed*1.5}else{g=o.speed*2.5}}}else if(o.freeMode.sticky){t.slideToClosest();return}if(o.freeMode.momentumBounce&&w){t.updateProgress(b);t.setTransition(g);t.setTranslate(y);t.transitionStart(true,t.swipeDirection);t.animating=true;elementTransitionEnd(s,(function(){if(!t||t.destroyed||!c.allowMomentumBounce)return;r("momentumBounce");t.setTransition(o.speed);setTimeout((function(){t.setTranslate(b);elementTransitionEnd(s,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){r("_freeModeNoMomentumRelease");t.updateProgress(y);t.setTransition(g);t.setTranslate(y);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;elementTransitionEnd(s,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(y)}t.updateActiveIndex();t.updateSlidesClasses()}else if(o.freeMode.sticky){t.slideToClosest();return}else if(o.freeMode){r("_freeModeNoMomentumRelease")}if(!o.freeMode.momentum||u>=o.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:o,onTouchMove:s,onTouchEnd:a}})}var grwPoiCss='@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}';var GrwPoiDetail=function(){function e(e){registerInstance(this,e);this.poi=undefined;this.displayShortDescription=true;this.showPoiDescriptionButton=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperPoi=new Swiper(this.swiperPoiRef,{modules:[Navigation,Pagination,Keyboard],navigation:{prevEl:this.prevElPoiRef,nextEl:this.nextElPoiRef},pagination:{el:this.paginationElPoiRef},allowTouchMove:false,keyboard:false});this.swiperPoiRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperPoi.keyboard.enable()}else{e.swiperPoi.keyboard.disable()}};this.showPoiDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight};e.prototype.handlePoiDescription=function(){this.displayShortDescription=!this.displayShortDescription};e.prototype.handleFullscreen=function(){if(this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].url){this.swiperPoiRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t;var i=getAssetPath("".concat("","assets/default-image.svg"));return h(Host,null,h("div",{class:"poi-type-img-container"},h("img",{crossorigin:"anonymous",class:"poi-type",src:"".concat((t=state.poiTypes.find((function(t){return t.id===e.poi.type})))===null||t===void 0?void 0:t.pictogram)}),h("div",{class:"swiper",ref:function(t){return e.swiperPoiRef=t}},h("div",{class:"swiper-wrapper"},this.poi.attachments.length>0?this.poi.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{class:"poi-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-poi-img",src:i,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElPoiRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElPoiRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElPoiRef=t}}))),h("div",{class:"poi-sub-container"},h("div",{class:"poi-name"},this.poi.name),h("div",{class:this.displayShortDescription?"poi-description-short":"poi-description",innerHTML:this.poi.description,ref:function(t){return e.descriptionRef=t}}),this.showPoiDescriptionButton&&h("div",{class:"handle-poi-description",onClick:function(){return e.handlePoiDescription()}},this.displayShortDescription?translate$1[state.language].readMore:translate$1[state.language].readLess)))};return e}();GrwPoiDetail.style=grwPoiCss;var grwSearchCss='.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}';var GrwSearch=function(){function e(e){registerInstance(this,e);this.fontFamily="Roboto"}e.prototype.onSearchChange=function(e){state.searchValue=e.target.value;if(state.mode==="treks"){state.currentTreks=handleTreksFiltersAndSearch()}else if(state.mode==="touristicContents"){state.currentTouristicContents=handleTouristicContentsFiltersAndSearch()}else if(state.mode==="touristicEvents"){state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch()}};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily}},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),h("input",{onInput:function(t){return e.onSearchChange(t)},class:"search-input",type:"search",placeholder:"Rechercher",value:state.searchValue}))};return e}();GrwSearch.style=grwSearchCss;var grwSegmentedSegmentCss=".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)}";var GrwSegmentedSegment=function(){function e(e){registerInstance(this,e);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}e.prototype.changeMode=function(e){state.searchValue="";if(e==="treks"&&state.currentTreks){treksFilters.forEach((function(e){state[e.property].forEach((function(e){return e.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;state.currentTreks=handleTreksFiltersAndSearch()}else if(e==="touristicContents"&&state.currentTouristicContents){touristicContentsFilters.forEach((function(e){state[e.property].forEach((function(e){return e.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicContents=handleTouristicContentsFiltersAndSearch()}else if(e==="touristicEvents"&&state.currentTouristicEvents){touristicEventsFilters.forEach((function(e){state[e.property].forEach((function(e){return e.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch()}state.mode=e};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily}},h("div",{class:"segmented-buttons-container"},this.treks&&h("label",{class:"segment".concat(state.mode==="treks"?" selected-segment":""),onClick:function(){return e.changeMode("treks")}},translate$1[state.language].home.segment.treks),this.touristicContents&&h("label",{class:"segment".concat(state.mode==="touristicContents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicContents")}},translate$1[state.language].home.segment.touristicContents),this.touristicEvents&&h("label",{class:"segment".concat(state.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicEvents")}},translate$1[state.language].home.segment.touristicEvents)))};return e}();GrwSegmentedSegment.style=grwSegmentedSegmentCss;var grwSelectLanguageCss='.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}';var GrwSelectLanguage=function(){function e(e){registerInstance(this,e)}e.prototype.handleSelect=function(e){state.treks=null;state.currentTreks=null;state.currentTrek=null;state.language=e.target.value};e.prototype.render=function(){var e=this;return h(Host,null,h("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),h("select",{onInput:function(t){return e.handleSelect(t)},name:"languages",id:"language-select"},state.languages.map((function(e){return h("option",{selected:e===state.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())}))))};return e}();GrwSelectLanguage.style=grwSelectLanguageCss;var grwSensitiveAreaDetailCss=":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}";var GrwSensitiveAreaDetail=function(){function e(e){registerInstance(this,e);this.sensitiveArea=undefined}e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"sensitive-area-title"},this.sensitiveArea.name),h("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&h("div",{class:"sensitive-area-practice-container"},h("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés :"),h("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map((function(t,i){var r=state.practices.find((function(e){return e.id===t}));if(r){return h("div",{innerHTML:"".concat(r.name.toUpperCase()).concat(i+1!==e.sensitiveArea.practices.length?" - ":"")})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&h("div",{class:"sensitive-area-period-container"},h("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),h("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map((function(t,i){if(t){return h("div",{innerHTML:"".concat(new Date(0,i+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()).concat(e.sensitiveArea.period.slice(i+1).find((function(e){return e}))?" - ":"")})}})))),h("div",{class:"sensitive-area-contact-container"},h("div",{class:"sensitive-area-contact-title"},"Contact"),h("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))};return e}();GrwSensitiveAreaDetail.style=grwSensitiveAreaDetailCss;var grwTouristicContentCardCss='@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)}';var GrwTouristicContentCard=function(){function e(e){registerInstance(this,e);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.cardTouristicContentMouseOver=createEvent(this,"cardTouristicContentMouseOver",7);this.cardTouristicContentMouseLeave=createEvent(this,"cardTouristicContentMouseLeave",7);this.fontFamily="Roboto";this.touristicContent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperTouristicContentRef){this.swiperTouristicContent=new Swiper(this.swiperTouristicContentRef,{modules:[Navigation,Pagination,Keyboard],navigation:{prevEl:this.prevElTouristicContentRef,nextEl:this.nextElTouristicContentRef},pagination:{el:this.paginationElTouristicContentRef},allowTouchMove:false,keyboard:false});this.swiperTouristicContentRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperTouristicContent.keyboard.enable()}else{e.swiperTouristicContent.keyboard.disable()}}}};e.prototype.handleFullscreen=function(){if(this.touristicContent.attachments&&this.touristicContent.attachments[0]&&this.touristicContent.attachments[0].url){this.swiperTouristicContentRef.requestFullscreen()}};e.prototype.handleMouseOver=function(){this.cardTouristicContentMouseOver.emit(this.touristicContent.id)};e.prototype.handleMouseLeave=function(){this.cardTouristicContentMouseLeave.emit()};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/default-image.svg"));var i=state.touristicContentCategories.find((function(t){return t.id===e.touristicContent.category}));return h(Host,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},h("div",{class:this.isLargeView?"touristic-content-card-large-view-container".concat(state.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""):"touristic-content-card-container".concat(state.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""),onClick:function(){if(!e.isInsideHorizontalList){e.touristicContentCardPress.emit(e.touristicContent.id)}}},h("div",{class:"touristic-content-type-img-container"},this.isInsideHorizontalList?h("div",{class:"swiper",ref:function(t){return e.swiperTouristicContentRef=t}},h("div",{class:"swiper-wrapper"},this.touristicContent.attachments.filter((function(e){return e.type==="image"})).length>0?this.touristicContent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{class:"touristic-content-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-touristic-content-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElTouristicContentRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElTouristicContentRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElTouristicContentRef=t}})):this.touristicContent.attachments.filter((function(e){return e.type==="image"})).length>0?h("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.touristicContent.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}):h("div",null)),h("div",{class:"touristic-content-sub-container"},h("div",{class:"touristic-content-category-container"},h("img",{crossorigin:"anonymous",src:i.pictogram}),h("div",{class:"touristic-content-category-name"},i.label)),h("div",{class:"touristic-content-name"},this.touristicContent.name)),this.isInsideHorizontalList&&h("div",{class:"touristic-content-more-detail-container"},h("button",{class:"more-details-button",onClick:function(){return e.touristicContentCardPress.emit(e.touristicContent.id)}},"Plus de détails"))))};return e}();GrwTouristicContentCard.style=grwTouristicContentCardCss;var grwTouristicContentDetailCss='@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}';var GrwTouristicContentDetail=function(){function e(e){registerInstance(this,e);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}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperImagesRef){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}}};e.prototype.handleFullscreen=function(){if(state.currentTouristicContent.attachments&&state.currentTouristicContent.attachments[0]&&state.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/default-image.svg"));var i=state.touristicContentCategories&&state.currentTouristicContent&&state.touristicContentCategories.find((function(e){return e.id===state.currentTouristicContent.category}));var r=state.currentTouristicContent&&state.currentTouristicContent.cities.map((function(e){var t;return(t=state.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return h(Host,{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"}},state.currentTouristicContent&&h("div",{class:"touristic-content-detail-container",ref:function(t){return e.touristicContentDetailContainerRef=t}},h("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},h("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},h("div",{class:"swiper-wrapper"},state.currentTouristicContent.attachments.length>0?state.currentTouristicContent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),h("div",{class:"touristic-content-category-container"},h("img",{crossorigin:"anonymous",src:i.pictogram}),h("div",{class:"touristic-content-category-name"},i.label)),h("div",{class:"name"},state.currentTouristicContent.name),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate$1[state.language].download),h("div",{class:"links-container"},h("a",{href:"".concat(state.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),state.currentTouristicContent.description_teaser&&h("div",null,h("div",{class:"divider"}),h("div",{class:"description-teaser",innerHTML:state.currentTouristicContent.description_teaser})),h("div",{class:"divider"}),state.currentTouristicContent.practical_info&&h("div",{class:"description-container",ref:function(t){return e.descriptionRef=t}},h("div",{class:"description-title"},translate$1[state.language].description),h("div",{class:"description",innerHTML:state.currentTouristicContent.description})),r&&r.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate$1[state.language].city," : "),h("div",{innerHTML:r.join(", ")})),state.currentTouristicContent.practical_info&&h("div",null,h("div",{class:"divider"}),h("div",{class:"useful-information-container"},h("div",{class:"useful-information-title"},translate$1[state.language].usefulInformation," : "),h("div",{innerHTML:state.currentTouristicContent.practical_info}))),(state.currentTouristicContent.contact||state.currentTouristicContent.email||state.currentTouristicContent.website)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"contact-container"},h("div",{class:"contact-title"},translate$1[state.language].contact," : "),state.currentTouristicContent.contact&&h("div",{innerHTML:state.currentTouristicContent.contact}),state.currentTouristicContent.email&&h("div",{class:"email-container"},h("div",null,translate$1[state.language].email," : "),h("div",{innerHTML:state.currentTouristicContent.email})),state.currentTouristicContent.website&&h("div",{class:"website-container"},h("div",null,translate$1[state.language].website," : "),h("div",{innerHTML:state.currentTouristicContent.website})))),h("div",{class:"detail-bottom-space"})))};return e}();GrwTouristicContentDetail.style=grwTouristicContentDetailCss;var GrwTouristicContentProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContent()};e.prototype.handleTouristicContent=function(){var e=[];e.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.touristicContentCategories?fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],e,true),[fetch("".concat(state.api,"touristiccontent/").concat(this.touristicContentId,"/?language=").concat(state.language,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website"),this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];state.trekNetworkError=false;if(t){state.cities=t.results}if(i){state.touristicContentCategories=i.results}state.currentTouristicContent=r})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTouristicContentsListCss='.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}';var GrwTouristicContentsList$1=function(){function e(e){registerInstance(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,this.step),true)}onChange("currentTouristicContents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.currentTouristicContents){e.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,e.step),true)}}));onChange("touristicContentsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.touristicContentsWithinBounds){e.touristicContentsToDisplay=__spreadArray([],state.touristicContentsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<state.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=state.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=state.touristicContentsWithinBounds.length?state.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{class:"current-touristic-contents-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate$1[state.language].home.touristicContents:translate$1[state.language].home.touristicContent)),h("div",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(t){return h("grw-touristic-content-card",{fontFamily:e.fontFamily,"reset-store-on-disconnected":"false",key:"touristic-content-".concat(t.id),touristicContent:t,"is-large-view":e.isLargeView,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();GrwTouristicContentsList$1.style=grwTouristicContentsListCss;var GrwTouristicContentsProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContents()};e.prototype.handleTouristicContents=function(){var e="".concat(state.api,"touristiccontent/?language=").concat(state.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.districts?fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!state.touristicContentCategories?fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];state.trekNetworkError=false;if(t){state.cities=t.results}if(i){state.districts=i.results}if(r){state.touristicContentCategories=r.results}state.touristicContents=n.results;state.currentTouristicContents=n.results})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTouristicEventCardCss='@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}';var GrwTouristicEvent=function(){function e(e){registerInstance(this,e);this.touristicEventCardPress=createEvent(this,"touristicEventCardPress",7);this.cardTouristicEventMouseOver=createEvent(this,"cardTouristicEventMouseOver",7);this.cardTouristicEventMouseLeave=createEvent(this,"cardTouristicEventMouseLeave",7);this.fontFamily="Roboto";this.touristicEvent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperTouristicEventRef){this.swiperTouristicEvent=new Swiper(this.swiperTouristicEventRef,{modules:[Navigation,Pagination,Keyboard],navigation:{prevEl:this.prevElTouristicEventRef,nextEl:this.nextElTouristicEventRef},pagination:{el:this.paginationElTouristicEventRef},allowTouchMove:false,keyboard:false});this.swiperTouristicEventRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperTouristicEvent.keyboard.enable()}else{e.swiperTouristicEvent.keyboard.disable()}}}};e.prototype.handleFullscreen=function(){if(this.touristicEvent.attachments&&this.touristicEvent.attachments[0]&&this.touristicEvent.attachments[0].url){this.swiperTouristicEventRef.requestFullscreen()}};e.prototype.handleMouseOver=function(){this.cardTouristicEventMouseOver.emit(this.touristicEvent.id)};e.prototype.handleMouseLeave=function(){this.cardTouristicEventMouseLeave.emit()};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/default-image.svg"));var i=state.touristicEventTypes.find((function(t){return t.id===e.touristicEvent.type}));return h(Host,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},h("div",{class:this.isLargeView?"touristic-event-card-large-view-container".concat(state.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""):"touristic-event-card-container".concat(state.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""),onClick:function(){if(!e.isInsideHorizontalList){e.touristicEventCardPress.emit(e.touristicEvent.id)}}},h("div",{class:"touristic-event-type-img-container"},this.isInsideHorizontalList?h("div",{class:"swiper",ref:function(t){return e.swiperTouristicEventRef=t}},h("div",{class:"swiper-wrapper"},this.touristicEvent.attachments.length>0?this.touristicEvent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{class:"touristic-event-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-touristic-event-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElTouristicEventRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElTouristicEventRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElTouristicEventRef=t}})):this.touristicEvent.attachments.filter((function(e){return e.type==="image"})).length>0?h("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.touristicEvent.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}):h("div",null)),h("div",{class:"touristic-event-sub-container"},h("div",{class:"touristic-event-type-container"},h("img",{crossorigin:"anonymous",src:i.pictogram}),h("div",{class:"touristic-event-type-name"},i.type)),h("div",{class:"touristic-event-name"},this.touristicEvent.name),(this.touristicEvent.begin_date||this.touristicEvent.end_date)&&h("div",{class:"touristic-event-date-container"},this.touristicEvent.begin_date&&h("div",{class:"touristic-event-date"},"Date de début : ",this.touristicEvent.begin_date),this.touristicEvent.end_date&&h("div",{class:"touristic-event-date"},"Date de fin : ",this.touristicEvent.end_date))),this.isInsideHorizontalList&&h("div",{class:"touristic-event-more-detail-container"},h("button",{class:"more-details-button",onClick:function(){return e.touristicEventCardPress.emit(e.touristicEvent.id)}},"Plus de détails"))))};return e}();GrwTouristicEvent.style=grwTouristicEventCardCss;var grwTouristicEventDetailCss='@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}';var GrwTouristicEventDetail=function(){function e(e){registerInstance(this,e);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}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}};e.prototype.handleFullscreen=function(){if(state.currentTouristicEvent.attachments&&state.currentTouristicEvent.attachments[0]&&state.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/default-image.svg"));var i=state.touristicEventTypes&&state.currentTouristicEvent&&state.touristicEventTypes.find((function(e){return e.id===state.currentTouristicEvent.type}));var r=state.currentTouristicEvent&&state.currentTouristicEvent.cities.map((function(e){var t;return(t=state.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return h(Host,{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"}},state.currentTouristicEvent&&h("div",{class:"touristic-event-detail-container",ref:function(t){return e.touristicEventDetailContainerRef=t}},h("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},h("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},h("div",{class:"swiper-wrapper"},state.currentTouristicEvent.attachments.length>0?state.currentTouristicEvent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),h("div",{class:"touristic-event-category-container"},h("img",{crossorigin:"anonymous",src:i.pictogram}),h("div",{class:"touristic-event-category-name"},i.type)),h("div",{class:"name"},state.currentTouristicEvent.name),(state.currentTouristicEvent.begin_date||state.currentTouristicEvent.end_date)&&h("div",{class:"touristic-event-date-container"},state.currentTouristicEvent.begin_date&&h("div",{class:"touristic-event-date"},"Date de début : ",state.currentTouristicEvent.begin_date),state.currentTouristicEvent.end_date&&h("div",{class:"touristic-event-date"},"Date de fin : ",state.currentTouristicEvent.end_date)),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate$1[state.language].download),h("div",{class:"links-container"},h("a",{href:"".concat(state.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),state.currentTouristicEvent.description_teaser&&h("div",null,h("div",{class:"divider"}),h("div",{class:"description-teaser",innerHTML:state.currentTouristicEvent.description_teaser})),h("div",{class:"divider"}),state.currentTouristicEvent.practical_info&&h("div",{class:"description-container",ref:function(t){return e.descriptionRef=t}},h("div",{class:"description-title"},translate$1[state.language].description),h("div",{class:"description",innerHTML:state.currentTouristicEvent.description})),r&&r.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate$1[state.language].city," : "),h("div",{innerHTML:r.join(", ")})),state.currentTouristicEvent.practical_info&&h("div",null,h("div",{class:"divider"}),h("div",{class:"useful-information-container"},h("div",{class:"useful-information-title"},translate$1[state.language].usefulInformation," : "),h("div",{innerHTML:state.currentTouristicEvent.practical_info}))),(state.currentTouristicEvent.contact||state.currentTouristicEvent.email||state.currentTouristicEvent.website)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"contact-container"},h("div",{class:"contact-title"},translate$1[state.language].contact," : "),state.currentTouristicEvent.contact&&h("div",{innerHTML:state.currentTouristicEvent.contact}),state.currentTouristicEvent.email&&h("div",{class:"email-container"},h("div",null,translate$1[state.language].email," : "),h("div",{innerHTML:state.currentTouristicEvent.email})),state.currentTouristicEvent.website&&h("div",{class:"website-container"},h("div",null,translate$1[state.language].website," : "),h("div",{innerHTML:state.currentTouristicEvent.website})))),h("div",{class:"detail-bottom-space"})))};return e}();GrwTouristicEventDetail.style=grwTouristicEventDetailCss;var GrwTouristicEventProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvent()};e.prototype.handleTouristicEvent=function(){var e=[];e.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],e,true),[fetch("".concat(state.api,"touristicevent/").concat(this.touristicEventId,"/?language=").concat(state.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)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];state.trekNetworkError=false;if(t){state.cities=t.results}if(i){state.touristicEventTypes=i.results}state.currentTouristicEvent=r})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTouristicEventsListCss='.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}';var GrwTouristicContentsList=function(){function e(e){registerInstance(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,this.step),true)}onChange("currentTouristicEvents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.currentTouristicContents){e.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,e.step),true)}}));onChange("touristicEventsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.touristicEventsWithinBounds){e.touristicEventsToDisplay=__spreadArray([],state.touristicEventsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<state.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=state.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=state.touristicEventsWithinBounds.length?state.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicEventsWithinBounds&&h("div",{class:"current-touristic-events-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate$1[state.language].home.touristicEvents:translate$1[state.language].home.touristicEvent)),h("div",{class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(t){return h("grw-touristic-event-card",{"reset-store-on-disconnected":"false",key:"touristic-event-".concat(t.id),touristicEvent:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();GrwTouristicContentsList.style=grwTouristicEventsListCss;var GrwTouristicEventsProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvents()};e.prototype.handleTouristicEvents=function(){var e="".concat(state.api,"touristicevent/?language=").concat(state.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.districts?fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];state.trekNetworkError=false;if(t){state.cities=t.results}if(i){state.districts=i.results}if(r){state.touristicEventTypes=r.results}state.touristicEvents=n.results;state.currentTouristicEvents=n.results})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTrekCardCss='.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}';var GrwTrekCard=function(){function e(e){registerInstance(this,e);this.trekCardPress=createEvent(this,"trekCardPress",7);this.cardTrekMouseOver=createEvent(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=createEvent(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}e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.difficulty=state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.departureCity=state.cities.find((function(t){return t.id===e.currentTrek.departure_city}))}onChange("currentTrek",(function(){e.currentTrek=e.trek?e.trek:state.currentTrek;if(e.currentTrek){e.difficulty=e.currentTrek.difficulty&&state.difficulties?state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty})):null;e.route=e.currentTrek.route&&state.routes?state.routes.find((function(t){return t.id===e.currentTrek.route})):null;e.practice=e.currentTrek.practice&&state.practices?state.practices.find((function(t){return t.id===e.currentTrek.practice})):null;e.themes=e.currentTrek.themes&&state.themes?state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)})):null;e.departureCity=e.currentTrek.departure_city&&state.cities?state.cities.find((function(t){return t.id===e.currentTrek.departure_city})):null}}))};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};e.prototype.handleMouseOver=function(){this.cardTrekMouseOver.emit(this.currentTrek.id)};e.prototype.handleMouseLeave=function(){this.cardTrekMouseLeave.emit()};e.prototype.render=function(){var e=this;var t,i,r,n,o,s,a;return h(Host,{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&&h("div",{class:this.isStep?"trek-card-container trek-step-card".concat(state.selectedStepId===this.currentTrek.id?" selected-trek-card":""):this.isLargeView?"trek-card-large-view-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""):"trek-card-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""),onClick:function(){return e.trekCardPress.emit(e.currentTrek.id)}},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0&&h("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}),h("div",{class:"sub-container"},this.departureCity&&h("div",{class:"departure"},this.departureCity.name),h("div",{class:"name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&h("div",{class:"themes-container"},this.themes.map((function(e){return h("div",{class:"theme"},e.label)}))),h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((i=this.difficulty)===null||i===void 0?void 0:i.pictogram)&&h("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(r=this.difficulty)===null||r===void 0?void 0:r.label),h("div",{class:"icon-label duration"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),formatDuration(this.currentTrek.duration))),h("div",{class:"row"},h("div",{class:"icon-label length"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),formatAscent(this.currentTrek.ascent))),!this.isStep&&h("div",{class:"row"},h("div",{class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&h("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route),h("div",{class:"icon-label practice"},((s=this.practice)===null||s===void 0?void 0:s.pictogram)&&h("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(a=this.practice)===null||a===void 0?void 0:a.name))))))};return e}();GrwTrekCard.style=grwTrekCardCss;var grwTrekDetailCss='@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}';var threshold=1;var presentation={visible:true,indicator:false,ref:"presentationOptionRef"};var steps={visible:false,indicator:false,ref:"stepsOptionRef"};var description={visible:false,indicator:false,ref:"descriptionOptionRef"};var recommendations={visible:false,indicator:false,ref:"recommendationsOptionRef"};var sensitiveArea={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var informationPlaces={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var pois={visible:false,indicator:false,ref:"poisOptionRef"};var touristicContents={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var touristicEvents={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var options={presentation:presentation,steps:steps,description:description,recommendations:recommendations,sensitiveArea:sensitiveArea,informationPlaces:informationPlaces,pois:pois,touristicContents:touristicContents,touristicEvents:touristicEvents};var GrwTrekDetail=function(){function e(e){registerInstance(this,e);this.descriptionIsInViewport=createEvent(this,"descriptionIsInViewport",7);this.parkingIsInViewport=createEvent(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=createEvent(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.stepsIsInViewport=createEvent(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.parentTrekPress=createEvent(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}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.swiperStep=new Swiper(this.swiperStepRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){var t=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});t.observe(this.presentationRef)}if(this.stepsRef){var i=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.stepsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{steps:Object.assign(Object.assign({},e.defaultOptions.steps),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});i.observe(this.stepsRef)}if(this.descriptionRef){var r=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.descriptionIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{description:Object.assign(Object.assign({},e.defaultOptions.description),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});r.observe(this.descriptionRef)}if(this.recommendationRef){var n=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{recommendations:Object.assign(Object.assign({},e.defaultOptions.recommendations),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});n.observe(this.recommendationRef)}if(this.parkingRef){var o=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.parkingIsInViewport.emit(i)}),{threshold:threshold});o.observe(this.parkingRef)}if(this.sensitiveAreaRef){var s=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.sensitiveAreaIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{sensitiveArea:Object.assign(Object.assign({},e.defaultOptions.sensitiveArea),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});s.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){var a=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.informationPlacesIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{informationPlaces:Object.assign(Object.assign({},e.defaultOptions.informationPlaces),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});a.observe(this.informationPlacesRef)}if(this.poiRef){var l=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.poiIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{pois:Object.assign(Object.assign({},e.defaultOptions.pois),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});l.observe(this.poiRef)}if(this.touristicContentsRef){var c=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicContentsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicContents:Object.assign(Object.assign({},e.defaultOptions.touristicContents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});c.observe(this.touristicContentsRef)}if(this.touristicEventsRef){var p=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicEventsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicEvents:Object.assign(Object.assign({},e.defaultOptions.touristicEvents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});p.observe(this.touristicContentsRef)}};e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:state.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=state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}this.cities=this.currentTrek.cities.map((function(e){var t;return(t=state.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));this.hasStep=this.currentTrek.children.length>0}onChange("currentTrek",(function(){e.currentTrek=e.trek?e.trek:state.currentTrek;if(e.currentTrek){e.defaultOptions=e.handleOptions();e.options=Object.assign(Object.assign({},e.defaultOptions),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:true})});e.difficulty=state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));e.route=state.routes.find((function(t){return t.id===e.currentTrek.route}));e.practice=state.practices.find((function(t){return t.id===e.currentTrek.practice}));e.themes=state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));e.labels=state.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));e.sources=state.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));e.accessibilities=state.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){e.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}e.cities=e.currentTrek.cities.map((function(e){var t;return(t=state.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));e.hasStep=e.currentTrek.children.length>0}}))};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};e.prototype.handleOptions=function(){var e=this;return Object.assign(Object.assign({},options),{presentation:Object.assign({},presentation),steps:Object.assign(Object.assign({},steps),{visible:Boolean(state.parentTrek)}),description:Object.assign(Object.assign({},description),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},recommendations),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},sensitiveArea),{visible:Boolean(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},informationPlaces),{visible:Boolean(state.currentInformationDesks&&state.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0)}),pois:Object.assign(Object.assign({},pois),{visible:Boolean(state.currentPois&&state.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},touristicContents),{visible:Boolean(state.trekTouristicContents&&state.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},touristicEvents),{visible:Boolean(state.touristicEvents&&state.touristicEvents.length>0)})})};e.prototype.handleFullscreen=function(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.handleIndicatorSelectedTrekOption=function(){var e;var t=0;var i=0;var r=0;var n=Object.values(this.options);var o=0;while(!e&&o<n.length){if(n[o].indicator){e=n[o]}else{if(n[o].visible){t+=1;i+=this[n[o].ref].clientWidth}}o++}if(e&&this[e.ref]){r=this[e.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*t-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:e.ref}}};e.prototype.handleScrollTo=function(e){this.trekDetailContainerRef.scrollTo({top:e.offsetTop-64})};e.prototype.render=function(){var e=this;var t,i,r,n,o,s,a;return h(Host,{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&&h("div",{class:"trek-options"},h("a",{ref:function(t){return e.presentationOptionRef=t},onClick:function(){return e.handleScrollTo(e.presentationRef)},class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.presentation),this.options.steps.visible&&h("a",{ref:function(t){return e.stepsOptionRef=t},onClick:function(){return e.handleScrollTo(e.stepsRef)},class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":"")},translate$1[state.language].options.steps),this.options.description.visible&&h("a",{ref:function(t){return e.descriptionOptionRef=t},onClick:function(){return e.handleScrollTo(e.descriptionRef)},class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.description),this.options.recommendations.visible&&h("a",{ref:function(t){return e.recommendationsOptionRef=t},onClick:function(){return e.handleScrollTo(e.recommendationRef)},class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{ref:function(t){return e.sensitiveAreaOptionRef=t},onClick:function(){return e.handleScrollTo(e.sensitiveAreaRef)},class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{ref:function(t){return e.informationPlacesOptionRef=t},onClick:function(){return e.handleScrollTo(e.informationPlacesRef)},class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.informationPlaces),this.options.pois.visible&&h("a",{ref:function(t){return e.poisOptionRef=t},onClick:function(){return e.handleScrollTo(e.poiRef)},class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.pois),this.options.touristicContents.visible&&h("a",{ref:function(t){return e.touristicContentsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicContentsRef)},class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{ref:function(t){return e.touristicEventsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicEventsRef)},class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.touristicEvents),this.presentationOptionRef&&h("span",{class:"indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&h("div",{class:"trek-detail-container",ref:function(t){return e.trekDetailContainerRef=t}},h("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},h("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},h("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),h("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&h("div",{class:"themes-container"},this.themes.map((function(e){return h("div",{class:"theme"},e.label)}))),h("div",{class:"sub-container"},h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&h("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),h("div",{class:"icon-label duration"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),formatDuration((r=this.currentTrek)===null||r===void 0?void 0:r.duration)),h("div",{class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&h("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route)),h("div",{class:"row"},h("div",{class:"icon-label length"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),formatAscent(this.currentTrek.ascent)),h("div",{class:"icon-label practice"},((s=this.practice)===null||s===void 0?void 0:s.pictogram)&&h("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(a=this.practice)===null||a===void 0?void 0:a.name)),this.currentTrek.ratings.map((function(e){return h("div",{class:"row"},"".concat(state.ratingsScale.find((function(t){return t.id===state.ratings.find((function(t){return t.id===e})).scale})).name," : ").concat(state.ratings.find((function(t){return t.id===e})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&h("div",{class:"row"},this.currentTrek.ratings_description))),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate$1[state.language].downloads),h("div",{class:"links-container"},h("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),h("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),h("a",{href:"".concat(this.currentTrek.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),h("div",{class:"divider"}),this.currentTrek.description_teaser&&h("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",null,h("div",{class:"divider"}),h("div",{class:"parent-trek-container"},h("button",{class:"parent-trek-title",onClick:function(){return e.parentTrekPress.emit(state.parentTrekId)}},h("div",null,"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{class:"step-container"},h("div",{class:"step-title",ref:function(t){return e.stepsRef=t}},"".concat(state.currentTrekSteps.length," ").concat(translate$1[state.language].steps)),h("div",{class:"swiper swiper-step",ref:function(t){return e.swiperStepRef=t}},h("div",{class:"swiper-wrapper"},state.currentTrekSteps&&state.currentTrekSteps.map((function(t){return h("div",{class:"swiper-slide"},h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(t.id),trek:t,"is-large-view":false,"is-step":true,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow}))}))))),h("div",{class:"divider"}),this.currentTrek.description&&h("div",{class:"description-container"},h("div",{class:"description-title",ref:function(t){return e.descriptionRef=t}},translate$1[state.language].description),h("div",{class:"description",innerHTML:this.currentTrek.description}),h("div",{class:"description",innerHTML:this.currentTrek.description}),h("div",{class:"description",innerHTML:this.currentTrek.description}),h("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{class:"departure-container"},h("div",{class:"departure-title"},translate$1[state.language].departure," : "),h("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{class:"arrival-container"},h("div",{class:"arrival-title"},translate$1[state.language].arrival," : "),h("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate$1[state.language].crossedCities," : "),h("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&h("div",{class:"weather-container"},h("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)})),this.currentTrek.access&&h("div",null,h("div",{class:"divider"}),h("div",{class:"access-container"},h("div",{class:"access-title"},translate$1[state.language].roadAccess),h("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&h("div",null,h("div",{class:"divider"}),h("div",{class:"public-transport-container"},h("div",{class:"public-transport-title"},translate$1[state.language].transport),h("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"advice-container"},h("div",{class:"advice-title",ref:function(t){return e.recommendationRef=t}},translate$1[state.language].recommendations),this.currentTrek.advice&&h("div",{class:"current-advice-container"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),h("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((function(e){return h("div",{class:"label-container"},h("div",{class:"label-sub-container"},e.pictogram&&h("img",{crossorigin:"anonymous",src:e.pictogram}),h("div",{class:"label-name",innerHTML:e.name})),h("div",{class:"label-advice",innerHTML:e.advice}))})))),this.currentTrek.advised_parking&&h("div",null,h("div",{class:"divider"}),h("div",{class:"advised-parking-container"},h("div",{class:"advised-parking-title",ref:function(t){return e.parkingRef=t}},translate$1[state.language].recommendedParking),h("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&h("div",null,h("div",{class:"divider"}),h("div",{class:"gear-container"},h("div",{class:"gear-title"},translate$1[state.language].equipments),h("div",{class:"gear",innerHTML:this.currentTrek.gear}))),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"sensitive-areas-container"},h("div",{class:"sensitive-areas-title",ref:function(t){return e.sensitiveAreaRef=t}},translate$1[state.language].environmentalSensitiveAreas),state.currentSensitiveAreas.map((function(e){return h("grw-sensitive-area-detail",{sensitiveArea:e})})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"information-desks-container"},h("div",{class:"information-desks-title",ref:function(t){return e.informationPlacesRef=t}},translate$1[state.language].informationPlaces),h("div",{class:"swiper swiper-information-desks",ref:function(t){return e.swiperInformationDesksRef=t}},h("div",{class:"swiper-wrapper"},state.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).map((function(e){return h("div",{class:"swiper-slide"},h("grw-information-desk",{informationDesk:e}))})))))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"accessibilities-container"},h("div",{class:"accessibilities-title"},translate$1[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{innerHTML:this.currentTrek.disabled_infrastructure}),h("div",{class:"accessibilities-content-container"},this.accessibilities.map((function(e){return h("div",{class:"accessibility-content-container"},h("img",{crossorigin:"anonymous",src:e.pictogram}),h("div",{innerHTML:e.name}))}))),this.currentTrek.accessibility_level&&h("div",{class:"accessibility-level-container"},h("div",{class:"accessibility-level-title"},translate$1[state.language].accessibilityLevel),h("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{class:"accessibility-slope-container"},h("div",{class:"accessibility-slope-title"},translate$1[state.language].accessibilitySlope),h("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{class:"accessibility-width-container"},h("div",{class:"accessibility-width-title"},translate$1[state.language].accessibilityWidth),h("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{class:"accessibility-signage-container"},h("div",{class:"accessibility-signage-title"},translate$1[state.language].accessibilitySignage),h("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{class:"accessibility-covering-container"},h("div",{class:"accessibility-covering-title"},translate$1[state.language].accessibilityCovering),h("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{class:"accessibility-exposure-container"},h("div",{class:"accessibility-exposure-title"},translate$1[state.language].accessibilityExposure),h("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{class:"accessibility-advice-container"},h("div",{class:"accessibility-advice-title"},translate$1[state.language].accessibilityAdvices),h("div",{innerHTML:this.currentTrek.accessibility_advice})))),state.currentPois&&state.currentPois.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"pois-container"},h("div",{class:"pois-title",ref:function(t){return e.poiRef=t}},translate$1[state.language].pois(state.currentPois.length)),h("div",{class:"swiper swiper-pois",ref:function(t){return e.swiperPoisRef=t}},h("div",{class:"swiper-wrapper"},state.currentPois.map((function(e){return h("div",{class:"swiper-slide"},h("grw-poi",{poi:e}))})))))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"touristic-content-container"},h("div",{class:"touristic-content-title",ref:function(t){return e.touristicContentsRef=t}},translate$1[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{class:"swiper swiper-touristic-content",ref:function(t){return e.swiperTouristicContentsRef=t}},h("div",{class:"swiper-wrapper"},state.trekTouristicContents.map((function(t){return h("div",{class:"swiper-slide"},h("grw-touristic-content-card",{fontFamily:e.fontFamily,touristicContent:t,isInsideHorizontalList:true}))})))))),state.touristicEvents&&state.touristicEvents.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"touristic-event-container"},h("div",{class:"touristic-event-title",ref:function(t){return e.touristicEventsRef=t}},translate$1[state.language].touristicEvents(state.touristicEvents.length)),h("div",{class:"swiper swiper-touristic-event",ref:function(t){return e.swiperTouristicEventsRef=t}},h("div",{class:"swiper-wrapper"},state.touristicEvents.map((function(t){return h("div",{class:"swiper-slide"},h("grw-touristic-event-card",{fontFamily:e.fontFamily,touristicEvent:t}))})))))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"source-container"},h("div",{class:"source-title"},translate$1[state.language].sources),this.sources.map((function(e){return h("div",{class:"source-sub-container"},e.pictogram&&h("img",{crossorigin:"anonymous",src:e.pictogram}),h("div",null,h("div",{class:"source-name",innerHTML:e.name}),h("a",{class:"source-advice",href:e.website,innerHTML:e.website})))})))),h("div",{class:"detail-bottom-space"})))};return e}();GrwTrekDetail.style=grwTrekDetailCss;var GrwTrekProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTrek()};e.prototype.handleTrek=function(){var e=this;var t=[];t.push(!state.difficulties?fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!state.routes?fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));t.push(!state.practices?fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!state.themes?fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.accessibilities?fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!state.ratings?fetch("".concat(state.api,"trek_rating/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));t.push(!state.ratings?fetch("".concat(state.api,"trek_ratingscale/?language=").concat(state.language,"&fields=id,name"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(state.language,"&published=true&trek=").concat(this.trekId,"&fields=id,geometry,name,description,contact,info_url,period,practices"),this.init).then((function(e){if(e.ok){return e}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(state.api,"label/?language=").concat(state.language,"&fields=id,name,advice,pictogram"),this.init),fetch("".concat(state.api,"source/?language=").concat(state.language,"&fields=id,name,website,pictogram"),this.init),fetch("".concat(state.api,"trek_accessibility_level/?language=").concat(state.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),fetch("".concat(state.api,"poi/?language=").concat(state.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init),fetch("".concat(state.api,"informationdesk/?language=").concat(state.language,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),this.init),fetch("".concat(state.api,"touristiccontent/?language=").concat(state.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,category,geometry&page_size=999"),this.init),fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),fetch("".concat(state.api,"touristicevent/?language=").concat(state.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(state.api,"trek/").concat(this.trekId,"/?language=").concat(state.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)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],p=t[8],u=t[9],d=t[10],h=t[11],f=t[12],m=t[13],g=t[14],v=t[15],y=t[16],w=t[17],b=t[18],_=t[19];return __awaiter(e,void 0,void 0,(function(){var e,t,x,k;return __generator(this,(function(A){switch(A.label){case 0:state.trekNetworkError=false;if(!(_.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(_.children.length>0))return[3,1];state.parentTrekId=_.id;state.parentTrek=_;e.push.apply(e,_.children);return[3,3];case 1:return[4,fetch("".concat(state.api,"trek/").concat(state.parentTrekId,"/?language=").concat(state.language,"&published=true&fields=name,children")).then((function(e){return e.json()}))];case 2:t=A.sent();state.parentTrek=t;e.push.apply(e,t.children);A.label=3;case 3:x=[];e.forEach((function(e){x.push(fetch("".concat(state.api,"trek/").concat(e,"/?language=").concat(state.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")))}));k=state;return[4,Promise.all(__spreadArray([],x,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 4:k.currentTrekSteps=A.sent();A.label=5;case 5:if(i){state.difficulties=i.results}if(r){state.routes=r.results}if(n){state.practices=n.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}))}if(o){state.themes=o.results}if(s){state.cities=s.results}if(a){state.accessibilities=a.results}if(l){state.ratings=l.results}if(c){state.ratingsScale=c.results}if(p){state.currentSensitiveAreas=p.results}state.labels=u.results;state.sources=d.results;if(h){state.accessibilitiesLevel=h.results}if(v){state.trekTouristicContents=v.results}if(y){state.touristicContentCategories=y.results}if(w){state.touristicEvents=w.results}if(b){state.touristicEventTypes=b.results}state.currentPois=f.results;state.poiTypes=m.results;state.currentInformationDesks=g.results;state.currentTrek=_;return[2]}}))}))})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTreksListCss='.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}';var GrwTreksList=function(){function e(e){registerInstance(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(state.currentTreks){this.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,this.step),true)}onChange("currentTreks",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.currentTreks){e.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,e.step),true)}}));onChange("treksWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.treksWithinBounds){e.treksToDisplay=__spreadArray([],state.treksWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<state.treksWithinBounds.length){this.treksToDisplay=state.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=state.treksWithinBounds.length?state.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate$1[state.language].treks:translate$1[state.language].trek)),h("div",{class:"treks-list-container"},this.treksToDisplay.map((function(t){return h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(t.id),trek:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();GrwTreksList.style=grwTreksListCss;var GrwTreksProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTreks()};e.prototype.disconnectedCallback=function(){this.controller.abort();state.treksNetworkError=false};e.prototype.handleTreks=function(){var e="".concat(this.api,"trek/?language=").concat(state.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));this.routes&&(e+="&routes=".concat(this.routes));this.practices&&(e+="&practices=".concat(this.practices));e+="&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("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(state.api,"label/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram&published=true&page_size=999"),this.init),fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch(e,this.init)]).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3],o=e[4],s=e[5],a=e[6],l=e[7],c=e[8];state.treksNetworkError=false;state.difficulties=t.results;state.routes=i.results;state.practices=r.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}));state.themes=n.results;state.cities=o.results;state.accessibilities=s.results;state.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];state.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}];state.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];state.labels=a.results;state.districts=l.results;state.treks=c.results;state.currentTreks=c.results})).catch((function(){return state.treksNetworkError=true}))};e.prototype.render=function(){return h(Host,null)};return e}();export{GrwApp as grw_app,GrwCommonButton as grw_common_button,GrwExtendedFab as grw_extended_fab,GrwFilter as grw_filter,GrwFilters as grw_filters,GrwInformationDeskDetail as grw_information_desk,GrwLoader as grw_loader,GrwMap as grw_map,GrwPoiDetail as grw_poi,GrwSearch as grw_search,GrwSegmentedSegment as grw_segmented_segment,GrwSelectLanguage as grw_select_language,GrwSensitiveAreaDetail as grw_sensitive_area_detail,GrwTouristicContentCard as grw_touristic_content_card,GrwTouristicContentDetail as grw_touristic_content_detail,GrwTouristicContentProvider as grw_touristic_content_provider,GrwTouristicContentsList$1 as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicEvent as grw_touristic_event_card,GrwTouristicEventDetail as grw_touristic_event_detail,GrwTouristicEventProvider as grw_touristic_event_provider,GrwTouristicContentsList as grw_touristic_events_list,GrwTouristicEventsProvider as grw_touristic_events_provider,GrwTrekCard as grw_trek_card,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
|
|
14
|
+
(function(t,i){{if(typeof i!=="undefined"&&i.L){e.exports=t(L)}else{e.exports=t(leafletSrc)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=t(L)}})((function(e){var t=function(t,i,r){r=r.split(" ");r.forEach((function(r){e.DomUtil[t].call(this,i,r)}))};var i=function(e,i){return t("addClass",e,i)};var r=function(e,i){return t("removeClass",e,i)};var n=e.Marker.extend({initialize:function(t,i){e.Util.setOptions(this,i);this._latlng=t;this.createIcon()},createIcon:function(){var t=this.options;var i="";if(t.color!==undefined){i+="stroke:".concat(t.color,";")}if(t.weight!==undefined){i+="stroke-width:".concat(t.weight,";")}if(t.fillColor!==undefined){i+="fill:".concat(t.fillColor,";")}if(t.fillOpacity!==undefined){i+="fill-opacity:".concat(t.fillOpacity,";")}if(t.opacity!==undefined){i+="opacity:".concat(t.opacity,";")}var r=this._getIconSVG(t,i);this._locationIcon=e.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(e,t){var i=e.radius;var r=e.weight;var n=i+r;var o=n*2;var s='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(o,'" height="').concat(o,'" version="1.1" viewBox="-').concat(n," -").concat(n," ").concat(o," ").concat(o,'">')+'<circle r="'+i+'" style="'+t+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:s,w:o,h:o}},setStyle:function(t){e.Util.setOptions(this,t);this.createIcon()}});var o=n.extend({initialize:function(t,i,r){e.Util.setOptions(this,r);this._latlng=t;this._heading=i;this.createIcon()},setHeading:function(e){this._heading=e},_getIconSVG:function(e,t){var i=e.radius;var r=e.width+e.weight;var n=(i+e.depth+e.weight)*2;var o="M0,0 l".concat(e.width/2,",").concat(e.depth," l-").concat(r,",0 z");var s="transform: rotate(".concat(this._heading,"deg)");var a='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r,'" height="').concat(n,'" version="1.1" viewBox="-').concat(r/2," 0 ").concat(r," ").concat(n,'" style="').concat(s,'">')+'<path d="'+o+'" style="'+t+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});var s=e.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds:function(e){return e.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:o,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback:function(t,i){var r=e.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",t);r.title=i.strings.title;r.href="#";r.setAttribute("role","button");var n=e.DomUtil.create(i.iconElementTag,i.icon,r);if(i.strings.text!==undefined){var o=e.DomUtil.create(i.textElementTag,"leaflet-locate-text",r);o.textContent=i.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(i.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError:function(e,t){alert(e.message)},onLocationOutsideMapBounds:function(e){e.stop();alert(e.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:function(t){for(var i in t){if(typeof this.options[i]==="object"){e.extend(this.options[i],t[i])}else{this.options[i]=t[i]}}this.options.followMarkerStyle=e.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=e.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=e.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(t){var i=e.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=i;this._map=t;this._layer=this.options.layer||new e.LayerGroup;this._layer.addTo(t);this._event=undefined;this._compassHeading=null;this._prevBounds=null;var r=this.options.createButtonCallback(i,this.options);this._link=r.link;this._icon=r.icon;e.DomEvent.on(this._link,"click",(function(t){e.DomEvent.stopPropagation(t);e.DomEvent.preventDefault(t);this._onClick()}),this).on(this._link,"dblclick",e.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return i},_onClick:function(){this._justClicked=true;var e=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){var t=this.options.clickBehavior;var i=t.outOfView;if(this._map.getBounds().contains(this._event.latlng)){i=e?t.inView:t.inViewNotFollowing}if(t[i]){i=t[i]}switch(i){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){var r=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;r.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start:function(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop:function(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing:function(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate:function(){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){var t="ondeviceorientationabsolute"in window;if(t||"ondeviceorientation"in window){var i=this;var r=function(){e.DomEvent.on(window,t?"deviceorientationabsolute":"deviceorientation",i._onDeviceOrientation,i)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(e){if(e==="granted"){r()}}))}else{r()}}}},_deactivate:function(){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){e.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){e.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView:function(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var t=this.options.flyTo?this._map.flyTo:this._map.setView;t.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var t=this.options.flyTo?this._map.flyTo:this._map.panTo;t.bind(this._map)([this._event.latitude,this._event.longitude])}else{var t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;t.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});e.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass:function(){if(!this._event){return}var e=this._event.latlng;if(this.options.showCompass&&e&&this._compassHeading!==null){var t=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(e,this._compassHeading,t).addTo(this._layer)}else{this._compass.setLatLng(e);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(t)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker:function(){if(this._event.accuracy===undefined){this._event.accuracy=0}var t=this._event.accuracy;var i=this._event.latlng;if(this.options.drawCircle){var r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=e.circle(i,t,r).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(t).setStyle(r)}}var n;var o;if(this.options.metric){n=t.toFixed(0);o=this.options.strings.metersUnit}else{n=(t*3.2808399).toFixed(0);o=this.options.strings.feetUnit}if(this.options.drawMarker){var s=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(i,s).addTo(this._layer)}else{this._marker.setLatLng(i);if(this._marker.setStyle){this._marker.setStyle(s)}}}this._drawCompass();var a=this.options.strings.popup;function l(){if(typeof a==="string"){return e.Util.template(a,{distance:n,unit:o})}else if(typeof a==="function"){return a({distance:n,unit:o})}else{return a}}if(this.options.showPopup&&a&&this._marker){this._marker.bindPopup(l())._popup.setLatLng(i)}if(this.options.showPopup&&a&&this._compass){this._compass.bindPopup(l())._popup.setLatLng(i)}},_removeMarker:function(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload:function(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading:function(t){if(!isNaN(parseFloat(t))&&isFinite(t)){t=Math.round(t);this._compassHeading=t;e.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(e){if(!this._active){return}if(e.webkitCompassHeading){this._setCompassHeading(e.webkitCompassHeading)}else if(e.absolute&&e.alpha){this._setCompassHeading(360-e.alpha)}},_onLocationError:function(e){if(e.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(e,this)},_onLocationFound:function(e){if(this._event&&this._event.latlng.lat===e.latlng.lat&&this._event.latlng.lng===e.latlng.lng&&this._event.accuracy===e.accuracy){return}if(!this._active){return}this._event=e;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:function(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom:function(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd:function(){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:function(){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:function(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){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:function(e){if(e=="requesting"){r(this._container,"active following");i(this._container,"requesting");r(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(e=="active"){r(this._container,"requesting following");i(this._container,"active");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(e=="following"){r(this._container,"requesting");i(this._container,"active following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}},_cleanClasses:function(){e.DomUtil.removeClass(this._container,"requesting");e.DomUtil.removeClass(this._container,"active");e.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)},_resetVariables:function(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});e.control.locate=function(t){return new e.Control.Locate(t)};return s}),window)}));var punycode=createCommonjsModule((function(e,t){(function(i){var r=t&&!t.nodeType&&t;var n=e&&!e.nodeType&&e;var o=typeof commonjsGlobal=="object"&&commonjsGlobal;if(o.global===o||o.window===o||o.self===o){i=o}var s,a=2147483647,l=36,c=1,p=26,u=38,d=700,h=72,f=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-c,_=Math.floor,x=String.fromCharCode,k;function A(e){throw new RangeError(w[e])}function T(e,t){var i=e.length;var r=[];while(i--){r[i]=t(e[i])}return r}function C(e,t){var i=e.split("@");var r="";if(i.length>1){r=i[0]+"@";e=i[1]}e=e.replace(y,".");var n=e.split(".");var o=T(n,t).join(".");return r+o}function L(e){var t=[],i=0,r=e.length,n,o;while(i<r){n=e.charCodeAt(i++);if(n>=55296&&n<=56319&&i<r){o=e.charCodeAt(i++);if((o&64512)==56320){t.push(((n&1023)<<10)+(o&1023)+65536)}else{t.push(n);i--}}else{t.push(n)}}return t}function S(e){return T(e,(function(e){var t="";if(e>65535){e-=65536;t+=x(e>>>10&1023|55296);e=56320|e&1023}t+=x(e);return t})).join("")}function E(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return l}function P(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function M(e,t,i){var r=0;e=i?_(e/d):e>>1;e+=_(e/t);for(;e>b*p>>1;r+=l){e=_(e/b)}return _(r+(b+1)*e/(e+u))}function O(e){var t=[],i=e.length,r,n=0,o=f,s=h,u,d,g,v,y,w,b,x,k;u=e.lastIndexOf(m);if(u<0){u=0}for(d=0;d<u;++d){if(e.charCodeAt(d)>=128){A("not-basic")}t.push(e.charCodeAt(d))}for(g=u>0?u+1:0;g<i;){for(v=n,y=1,w=l;;w+=l){if(g>=i){A("invalid-input")}b=E(e.charCodeAt(g++));if(b>=l||b>_((a-n)/y)){A("overflow")}n+=b*y;x=w<=s?c:w>=s+p?p:w-s;if(b<x){break}k=l-x;if(y>_(a/k)){A("overflow")}y*=k}r=t.length+1;s=M(n-v,r,v==0);if(_(n/r)>a-o){A("overflow")}o+=_(n/r);n%=r;t.splice(n++,0,o)}return S(t)}function I(e){var t,i,r,n,o,s,u,d,g,v,y,w=[],b,k,T,C;e=L(e);b=e.length;t=f;i=0;o=h;for(s=0;s<b;++s){y=e[s];if(y<128){w.push(x(y))}}r=n=w.length;if(n){w.push(m)}while(r<b){for(u=a,s=0;s<b;++s){y=e[s];if(y>=t&&y<u){u=y}}k=r+1;if(u-t>_((a-i)/k)){A("overflow")}i+=(u-t)*k;t=u;for(s=0;s<b;++s){y=e[s];if(y<t&&++i>a){A("overflow")}if(y==t){for(d=i,g=l;;g+=l){v=g<=o?c:g>=o+p?p:g-o;if(d<v){break}C=d-v;T=l-v;w.push(x(P(v+C%T,0)));d=_(C/T)}w.push(x(P(d,0)));o=M(i,k,r==n);i=0;++r}}++i;++t}return w.join("")}function z(e){return C(e,(function(e){return g.test(e)?O(e.slice(4).toLowerCase()):e}))}function B(e){return C(e,(function(e){return v.test(e)?"xn--"+I(e):e}))}s={version:"1.4.1",ucs2:{decode:L,encode:S},decode:O,encode:I,toASCII:B,toUnicode:z};if(r&&n){if(e.exports==r){n.exports=s}else{for(k in s){s.hasOwnProperty(k)&&(r[k]=s[k])}}}else{i.punycode=s}})(commonjsGlobal)}));var shams=function e(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var t={};var i=Symbol("test");var r=Object(i);if(typeof i==="string"){return false}if(Object.prototype.toString.call(i)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;t[i]=n;for(i in t){return false}if(typeof Object.keys==="function"&&Object.keys(t).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(t).length!==0){return false}var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==i){return false}if(!Object.prototype.propertyIsEnumerable.call(t,i)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var s=Object.getOwnPropertyDescriptor(t,i);if(s.value!==n||s.enumerable!==true){return false}}return true};var origSymbol=typeof Symbol!=="undefined"&&Symbol;var hasSymbols$1=function e(){if(typeof origSymbol!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof origSymbol("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return shams()};var test={foo:{}};var $Object=Object;var hasProto$1=function e(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)};var ERROR_MESSAGE="Function.prototype.bind called on incompatible ";var slice=Array.prototype.slice;var toStr$1=Object.prototype.toString;var funcType="[object Function]";var implementation=function e(t){var i=this;if(typeof i!=="function"||toStr$1.call(i)!==funcType){throw new TypeError(ERROR_MESSAGE+i)}var r=slice.call(arguments,1);var n;var o=function(){if(this instanceof n){var e=i.apply(this,r.concat(slice.call(arguments)));if(Object(e)===e){return e}return this}else{return i.apply(t,r.concat(slice.call(arguments)))}};var s=Math.max(0,i.length-r.length);var a=[];for(var l=0;l<s;l++){a.push("$"+l)}n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o);if(i.prototype){var c=function e(){};c.prototype=i.prototype;n.prototype=new c;c.prototype=null}return n};var functionBind=Function.prototype.bind||implementation;var src=functionBind.call(Function.call,Object.prototype.hasOwnProperty);var undefined$1;var $SyntaxError=SyntaxError;var $Function=Function;var $TypeError$1=TypeError;var getEvalledConstructor=function(e){try{return $Function('"use strict"; return ('+e+").constructor;")()}catch(t){}};var $gOPD=Object.getOwnPropertyDescriptor;var throwTypeError=function(){throw new $TypeError$1};var ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(e){try{return $gOPD(arguments,"callee").get}catch(t){return throwTypeError}}}():throwTypeError;var hasSymbols=hasSymbols$1();var hasProto=hasProto$1();var getProto=Object.getPrototypeOf||(hasProto?function(e){return e.__proto__}:null);var needsEval={};var TypedArray=typeof Uint8Array==="undefined"||!getProto?undefined$1:getProto(Uint8Array);var INTRINSICS={"%AggregateError%":typeof AggregateError==="undefined"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics==="undefined"?undefined$1:Atomics,"%BigInt%":typeof BigInt==="undefined"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array==="undefined"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON==="object"?JSON:undefined$1,"%Map%":typeof Map==="undefined"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!hasSymbols||!getProto?undefined$1:getProto((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?undefined$1:Promise,"%Proxy%":typeof Proxy==="undefined"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!hasSymbols||!getProto?undefined$1:getProto((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array==="undefined"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?undefined$1:WeakSet};var doEval=function e(t){var i;if(t==="%AsyncFunction%"){i=getEvalledConstructor("async function () {}")}else if(t==="%GeneratorFunction%"){i=getEvalledConstructor("function* () {}")}else if(t==="%AsyncGeneratorFunction%"){i=getEvalledConstructor("async function* () {}")}else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");if(r){i=r.prototype}}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");if(n&&getProto){i=getProto(n.prototype)}}INTRINSICS[t]=i;return i};var LEGACY_ALIASES={"%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 $concat$1=functionBind.call(Function.call,Array.prototype.concat);var $spliceApply=functionBind.call(Function.apply,Array.prototype.splice);var $replace$1=functionBind.call(Function.call,String.prototype.replace);var $strSlice=functionBind.call(Function.call,String.prototype.slice);var $exec=functionBind.call(Function.call,RegExp.prototype.exec);var rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=function e(t){var i=$strSlice(t,0,1);var r=$strSlice(t,-1);if(i==="%"&&r!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&i!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`")}var n=[];$replace$1(t,rePropName,(function(e,t,i,r){n[n.length]=i?$replace$1(r,reEscapeChar,"$1"):t||e}));return n};var getBaseIntrinsic=function e(t,i){var r=t;var n;if(src(LEGACY_ALIASES,r)){n=LEGACY_ALIASES[r];r="%"+n[0]+"%"}if(src(INTRINSICS,r)){var o=INTRINSICS[r];if(o===needsEval){o=doEval(r)}if(typeof o==="undefined"&&!i){throw new $TypeError$1("intrinsic "+t+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:o}}throw new $SyntaxError("intrinsic "+t+" does not exist!")};var getIntrinsic=function e(t,i){if(typeof t!=="string"||t.length===0){throw new $TypeError$1("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof i!=="boolean"){throw new $TypeError$1('"allowMissing" argument must be a boolean')}if($exec(/^%?[^%]*%?$/,t)===null){throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=stringToPath(t);var n=r.length>0?r[0]:"";var o=getBaseIntrinsic("%"+n+"%",i);var s=o.name;var a=o.value;var l=false;var c=o.alias;if(c){n=c[0];$spliceApply(r,$concat$1([0,1],c))}for(var p=1,u=true;p<r.length;p+=1){var d=r[p];var h=$strSlice(d,0,1);var f=$strSlice(d,-1);if((h==='"'||h==="'"||h==="`"||(f==='"'||f==="'"||f==="`"))&&h!==f){throw new $SyntaxError("property names with quotes must have matching quotes")}if(d==="constructor"||!u){l=true}n+="."+d;s="%"+n+"%";if(src(INTRINSICS,s)){a=INTRINSICS[s]}else if(a!=null){if(!(d in a)){if(!i){throw new $TypeError$1("base intrinsic for "+t+" exists, but the property is not available.")}return void undefined$1}if($gOPD&&p+1>=r.length){var m=$gOPD(a,d);u=!!m;if(u&&"get"in m&&!("originalValue"in m.get)){a=m.get}else{a=a[d]}}else{u=src(a,d);a=a[d]}if(u&&!l){INTRINSICS[s]=a}}}return a};var callBind=createCommonjsModule((function(e){var t=getIntrinsic("%Function.prototype.apply%");var i=getIntrinsic("%Function.prototype.call%");var r=getIntrinsic("%Reflect.apply%",true)||functionBind.call(i,t);var n=getIntrinsic("%Object.getOwnPropertyDescriptor%",true);var o=getIntrinsic("%Object.defineProperty%",true);var s=getIntrinsic("%Math.max%");if(o){try{o({},"a",{value:1})}catch(l){o=null}}e.exports=function e(t){var a=r(functionBind,i,arguments);if(n&&o){var l=n(a,"length");if(l.configurable){o(a,"length",{value:1+s(0,t.length-(arguments.length-1))})}}return a};var a=function e(){return r(functionBind,t,arguments)};if(o){o(e.exports,"apply",{value:a})}else{e.exports.apply=a}}));var $indexOf=callBind(getIntrinsic("String.prototype.indexOf"));var callBound=function e(t,i){var r=getIntrinsic(t,!!i);if(typeof r==="function"&&$indexOf(t,".prototype.")>-1){return callBind(r)}return r};var _nodeResolve_empty={};var _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});var utilInspect=getAugmentedNamespace(_nodeResolve_empty$1);var hasMap=typeof Map==="function"&&Map.prototype;var mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get==="function"?mapSizeDescriptor.get:null;var mapForEach=hasMap&&Map.prototype.forEach;var hasSet=typeof Set==="function"&&Set.prototype;var setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get==="function"?setSizeDescriptor.get:null;var setForEach=hasSet&&Set.prototype.forEach;var hasWeakMap=typeof WeakMap==="function"&&WeakMap.prototype;var weakMapHas=hasWeakMap?WeakMap.prototype.has:null;var hasWeakSet=typeof WeakSet==="function"&&WeakSet.prototype;var weakSetHas=hasWeakSet?WeakSet.prototype.has:null;var hasWeakRef=typeof WeakRef==="function"&&WeakRef.prototype;var weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null;var booleanValueOf=Boolean.prototype.valueOf;var objectToString=Object.prototype.toString;var functionToString=Function.prototype.toString;var $match=String.prototype.match;var $slice=String.prototype.slice;var $replace=String.prototype.replace;var $toUpperCase=String.prototype.toUpperCase;var $toLowerCase=String.prototype.toLowerCase;var $test=RegExp.prototype.test;var $concat=Array.prototype.concat;var $join=Array.prototype.join;var $arrSlice=Array.prototype.slice;var $floor=Math.floor;var bigIntValueOf=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var gOPS=Object.getOwnPropertySymbols;var symToString=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var hasShammedSymbols=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var toStringTag=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols?"object":"symbol")?Symbol.toStringTag:null;var isEnumerable=Object.prototype.propertyIsEnumerable;var gPO=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||$test.call(/e/,t)){return t}var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var r=e<0?-$floor(-e):$floor(e);if(r!==e){var n=String(r);var o=$slice.call(t,n.length+1);return $replace.call(n,i,"$&_")+"."+$replace.call($replace.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(t,i,"$&_")}var inspectCustom=utilInspect.custom;var inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null;var objectInspect=function e(t,i,r,n){var o=i||{};if(has$3(o,"quoteStyle")&&(o.quoteStyle!=="single"&&o.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has$3(o,"maxStringLength")&&(typeof o.maxStringLength==="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var s=has$3(o,"customInspect")?o.customInspect:true;if(typeof s!=="boolean"&&s!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has$3(o,"indent")&&o.indent!==null&&o.indent!=="\t"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has$3(o,"numericSeparator")&&typeof o.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=o.numericSeparator;if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(typeof t==="boolean"){return t?"true":"false"}if(typeof t==="string"){return inspectString(t,o)}if(typeof t==="number"){if(t===0){return Infinity/t>0?"0":"-0"}var l=String(t);return a?addNumericSeparator(t,l):l}if(typeof t==="bigint"){var c=String(t)+"n";return a?addNumericSeparator(t,c):c}var p=typeof o.depth==="undefined"?5:o.depth;if(typeof r==="undefined"){r=0}if(r>=p&&p>0&&typeof t==="object"){return isArray$3(t)?"[Array]":"[Object]"}var u=getIndent(o,r);if(typeof n==="undefined"){n=[]}else if(indexOf(n,t)>=0){return"[Circular]"}function d(t,i,s){if(i){n=$arrSlice.call(n);n.push(i)}if(s){var a={depth:o.depth};if(has$3(o,"quoteStyle")){a.quoteStyle=o.quoteStyle}return e(t,a,r+1,n)}return e(t,o,r+1,n)}if(typeof t==="function"&&!isRegExp$1(t)){var h=nameOf(t);var f=arrObjKeys(t,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+$join.call(f,", ")+" }":"")}if(isSymbol(t)){var m=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return typeof t==="object"&&!hasShammedSymbols?markBoxed(m):m}if(isElement(t)){var g="<"+$toLowerCase.call(String(t.nodeName));var v=t.attributes||[];for(var y=0;y<v.length;y++){g+=" "+v[y].name+"="+wrapQuotes(quote(v[y].value),"double",o)}g+=">";if(t.childNodes&&t.childNodes.length){g+="..."}g+="</"+$toLowerCase.call(String(t.nodeName))+">";return g}if(isArray$3(t)){if(t.length===0){return"[]"}var w=arrObjKeys(t,d);if(u&&!singleLineValues(w)){return"["+indentedJoin(w,u)+"]"}return"[ "+$join.call(w,", ")+" ]"}if(isError(t)){var b=arrObjKeys(t,d);if(!("cause"in Error.prototype)&&"cause"in t&&!isEnumerable.call(t,"cause")){return"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+d(t.cause),b),", ")+" }"}if(b.length===0){return"["+String(t)+"]"}return"{ ["+String(t)+"] "+$join.call(b,", ")+" }"}if(typeof t==="object"&&s){if(inspectSymbol&&typeof t[inspectSymbol]==="function"&&utilInspect){return utilInspect(t,{depth:p-r})}else if(s!=="symbol"&&typeof t.inspect==="function"){return t.inspect()}}if(isMap(t)){var _=[];if(mapForEach){mapForEach.call(t,(function(e,i){_.push(d(i,t,true)+" => "+d(e,t))}))}return collectionOf("Map",mapSize.call(t),_,u)}if(isSet(t)){var x=[];if(setForEach){setForEach.call(t,(function(e){x.push(d(e,t))}))}return collectionOf("Set",setSize.call(t),x,u)}if(isWeakMap(t)){return weakCollectionOf("WeakMap")}if(isWeakSet(t)){return weakCollectionOf("WeakSet")}if(isWeakRef(t)){return weakCollectionOf("WeakRef")}if(isNumber(t)){return markBoxed(d(Number(t)))}if(isBigInt(t)){return markBoxed(d(bigIntValueOf.call(t)))}if(isBoolean(t)){return markBoxed(booleanValueOf.call(t))}if(isString(t)){return markBoxed(d(String(t)))}if(!isDate(t)&&!isRegExp$1(t)){var k=arrObjKeys(t,d);var A=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object;var T=t instanceof Object?"":"null prototype";var C=!A&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):T?"Object":"";var L=A||typeof t.constructor!=="function"?"":t.constructor.name?t.constructor.name+" ":"";var S=L+(C||T?"["+$join.call($concat.call([],C||[],T||[]),": ")+"] ":"");if(k.length===0){return S+"{}"}if(u){return S+"{"+indentedJoin(k,u)+"}"}return S+"{ "+$join.call(k,", ")+" }"}return String(t)};function wrapQuotes(e,t,i){var r=(i.quoteStyle||t)==="double"?'"':"'";return r+e+r}function quote(e){return $replace.call(String(e),/"/g,""")}function isArray$3(e){return toStr(e)==="[object Array]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isRegExp$1(e){return toStr(e)==="[object RegExp]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isError(e){return toStr(e)==="[object Error]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isString(e){return toStr(e)==="[object String]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!toStringTag||!(typeof e==="object"&&toStringTag in e))}function isSymbol(e){if(hasShammedSymbols){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!symToString){return false}try{symToString.call(e);return true}catch(t){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!bigIntValueOf){return false}try{bigIntValueOf.call(e);return true}catch(t){}return false}var hasOwn=Object.prototype.hasOwnProperty||function(e){return e in this};function has$3(e,t){return hasOwn.call(e,t)}function toStr(e){return objectToString.call(e)}function nameOf(e){if(e.name){return e.name}var t=$match.call(functionToString.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var i=0,r=e.length;i<r;i++){if(e[i]===t){return i}}return-1}function isMap(e){if(!mapSize||!e||typeof e!=="object"){return false}try{mapSize.call(e);try{setSize.call(e)}catch(t){return true}return e instanceof Map}catch(i){}return false}function isWeakMap(e){if(!weakMapHas||!e||typeof e!=="object"){return false}try{weakMapHas.call(e,weakMapHas);try{weakSetHas.call(e,weakSetHas)}catch(t){return true}return e instanceof WeakMap}catch(i){}return false}function isWeakRef(e){if(!weakRefDeref||!e||typeof e!=="object"){return false}try{weakRefDeref.call(e);return true}catch(t){}return false}function isSet(e){if(!setSize||!e||typeof e!=="object"){return false}try{setSize.call(e);try{mapSize.call(e)}catch(t){return true}return e instanceof Set}catch(i){}return false}function isWeakSet(e){if(!weakSetHas||!e||typeof e!=="object"){return false}try{weakSetHas.call(e,weakSetHas);try{weakMapHas.call(e,weakMapHas)}catch(t){return true}return e instanceof WeakSet}catch(i){}return false}function isElement(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function inspectString(e,t){if(e.length>t.maxStringLength){var i=e.length-t.maxStringLength;var r="... "+i+" more character"+(i>1?"s":"");return inspectString($slice.call(e,0,t.maxStringLength),t)+r}var n=$replace.call($replace.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(n,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var i={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(i){return"\\"+i}return"\\x"+(t<16?"0":"")+$toUpperCase.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,i,r){var n=r?indentedJoin(i,r):$join.call(i,", ");return e+" ("+t+") {"+n+"}"}function singleLineValues(e){for(var t=0;t<e.length;t++){if(indexOf(e[t],"\n")>=0){return false}}return true}function getIndent(e,t){var i;if(e.indent==="\t"){i="\t"}else if(typeof e.indent==="number"&&e.indent>0){i=$join.call(Array(e.indent+1)," ")}else{return null}return{base:i,prev:$join.call(Array(t+1),i)}}function indentedJoin(e,t){if(e.length===0){return""}var i="\n"+t.prev+t.base;return i+$join.call(e,","+i)+"\n"+t.prev}function arrObjKeys(e,t){var i=isArray$3(e);var r=[];if(i){r.length=e.length;for(var n=0;n<e.length;n++){r[n]=has$3(e,n)?t(e[n],e):""}}var o=typeof gOPS==="function"?gOPS(e):[];var s;if(hasShammedSymbols){s={};for(var a=0;a<o.length;a++){s["$"+o[a]]=o[a]}}for(var l in e){if(!has$3(e,l)){continue}if(i&&String(Number(l))===l&&l<e.length){continue}if(hasShammedSymbols&&s["$"+l]instanceof Symbol){continue}else if($test.call(/[^\w$]/,l)){r.push(t(l,e)+": "+t(e[l],e))}else{r.push(l+": "+t(e[l],e))}}if(typeof gOPS==="function"){for(var c=0;c<o.length;c++){if(isEnumerable.call(e,o[c])){r.push("["+t(o[c])+"]: "+t(e[o[c]],e))}}}return r}var $TypeError=getIntrinsic("%TypeError%");var $WeakMap=getIntrinsic("%WeakMap%",true);var $Map=getIntrinsic("%Map%",true);var $weakMapGet=callBound("WeakMap.prototype.get",true);var $weakMapSet=callBound("WeakMap.prototype.set",true);var $weakMapHas=callBound("WeakMap.prototype.has",true);var $mapGet=callBound("Map.prototype.get",true);var $mapSet=callBound("Map.prototype.set",true);var $mapHas=callBound("Map.prototype.has",true);var listGetNode=function(e,t){for(var i=e,r;(r=i.next)!==null;i=r){if(r.key===t){i.next=r.next;r.next=e.next;e.next=r;return r}}};var listGet=function(e,t){var i=listGetNode(e,t);return i&&i.value};var listSet=function(e,t,i){var r=listGetNode(e,t);if(r){r.value=i}else{e.next={key:t,next:e.next,value:i}}};var listHas=function(e,t){return!!listGetNode(e,t)};var sideChannel=function e(){var t;var i;var r;var n={assert:function(e){if(!n.has(e)){throw new $TypeError("Side channel does not contain "+objectInspect(e))}},get:function(e){if($WeakMap&&e&&(typeof e==="object"||typeof e==="function")){if(t){return $weakMapGet(t,e)}}else if($Map){if(i){return $mapGet(i,e)}}else{if(r){return listGet(r,e)}}},has:function(e){if($WeakMap&&e&&(typeof e==="object"||typeof e==="function")){if(t){return $weakMapHas(t,e)}}else if($Map){if(i){return $mapHas(i,e)}}else{if(r){return listHas(r,e)}}return false},set:function(e,n){if($WeakMap&&e&&(typeof e==="object"||typeof e==="function")){if(!t){t=new $WeakMap}$weakMapSet(t,e,n)}else if($Map){if(!i){i=new $Map}$mapSet(i,e,n)}else{if(!r){r={key:{},next:null}}listSet(r,e,n)}}};return n};var replace=String.prototype.replace;var percentTwenties=/%20/g;var Format={RFC1738:"RFC1738",RFC3986:"RFC3986"};var formats={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986};var has$2=Object.prototype.hasOwnProperty;var isArray$2=Array.isArray;var hexTable=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var compactQueue=function e(t){while(t.length>1){var i=t.pop();var r=i.obj[i.prop];if(isArray$2(r)){var n=[];for(var o=0;o<r.length;++o){if(typeof r[o]!=="undefined"){n.push(r[o])}}i.obj[i.prop]=n}}};var arrayToObject=function e(t,i){var r=i&&i.plainObjects?Object.create(null):{};for(var n=0;n<t.length;++n){if(typeof t[n]!=="undefined"){r[n]=t[n]}}return r};var merge=function e(t,i,r){if(!i){return t}if(typeof i!=="object"){if(isArray$2(t)){t.push(i)}else if(t&&typeof t==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!has$2.call(Object.prototype,i)){t[i]=true}}else{return[t,i]}return t}if(!t||typeof t!=="object"){return[t].concat(i)}var n=t;if(isArray$2(t)&&!isArray$2(i)){n=arrayToObject(t,r)}if(isArray$2(t)&&isArray$2(i)){i.forEach((function(i,n){if(has$2.call(t,n)){var o=t[n];if(o&&typeof o==="object"&&i&&typeof i==="object"){t[n]=e(o,i,r)}else{t.push(i)}}else{t[n]=i}}));return t}return Object.keys(i).reduce((function(t,n){var o=i[n];if(has$2.call(t,n)){t[n]=e(t[n],o,r)}else{t[n]=o}return t}),n)};var assign=function e(t,i){return Object.keys(i).reduce((function(e,t){e[t]=i[t];return e}),t)};var decode=function(e,t,i){var r=e.replace(/\+/g," ");if(i==="iso-8859-1"){return r.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(r)}catch(n){return r}};var encode=function e(t,i,r,n,o){if(t.length===0){return t}var s=t;if(typeof t==="symbol"){s=Symbol.prototype.toString.call(t)}else if(typeof t!=="string"){s=String(t)}if(r==="iso-8859-1"){return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<s.length;++l){var c=s.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===formats.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+hexTable[c];continue}if(c<2048){a=a+(hexTable[192|c>>6]+hexTable[128|c&63]);continue}if(c<55296||c>=57344){a=a+(hexTable[224|c>>12]+hexTable[128|c>>6&63]+hexTable[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|s.charCodeAt(l)&1023);a+=hexTable[240|c>>18]+hexTable[128|c>>12&63]+hexTable[128|c>>6&63]+hexTable[128|c&63]}return a};var compact=function e(t){var i=[{obj:{o:t},prop:"o"}];var r=[];for(var n=0;n<i.length;++n){var o=i[n];var s=o.obj[o.prop];var a=Object.keys(s);for(var l=0;l<a.length;++l){var c=a[l];var p=s[c];if(typeof p==="object"&&p!==null&&r.indexOf(p)===-1){i.push({obj:s,prop:c});r.push(p)}}}compactQueue(i);return t};var isRegExp=function e(t){return Object.prototype.toString.call(t)==="[object RegExp]"};var isBuffer=function e(t){if(!t||typeof t!=="object"){return false}return!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};var combine=function e(t,i){return[].concat(t,i)};var maybeMap=function e(t,i){if(isArray$2(t)){var r=[];for(var n=0;n<t.length;n+=1){r.push(i(t[n]))}return r}return i(t)};var utils={arrayToObject:arrayToObject,assign:assign,combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isRegExp:isRegExp,maybeMap:maybeMap,merge:merge};var has$1=Object.prototype.hasOwnProperty;var arrayPrefixGenerators={brackets:function e(t){return t+"[]"},comma:"comma",indices:function e(t,i){return t+"["+i+"]"},repeat:function e(t){return t}};var isArray$1=Array.isArray;var push=Array.prototype.push;var pushToArray=function(e,t){push.apply(e,isArray$1(t)?t:[t])};var toISO=Date.prototype.toISOString;var defaultFormat=formats["default"];var defaults$2={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:utils.encode,encodeValuesOnly:false,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:false,serializeDate:function e(t){return toISO.call(t)},skipNulls:false,strictNullHandling:false};var isNonNullishPrimitive=function e(t){return typeof t==="string"||typeof t==="number"||typeof t==="boolean"||typeof t==="symbol"||typeof t==="bigint"};var sentinel={};var stringify=function e(t,i,r,n,o,s,a,l,c,p,u,d,h,f,m,g){var v=t;var y=g;var w=0;var b=false;while((y=y.get(sentinel))!==void undefined&&!b){var _=y.get(t);w+=1;if(typeof _!=="undefined"){if(_===w){throw new RangeError("Cyclic object value")}else{b=true}}if(typeof y.get(sentinel)==="undefined"){w=0}}if(typeof l==="function"){v=l(i,v)}else if(v instanceof Date){v=u(v)}else if(r==="comma"&&isArray$1(v)){v=utils.maybeMap(v,(function(e){if(e instanceof Date){return u(e)}return e}))}if(v===null){if(o){return a&&!f?a(i,defaults$2.encoder,m,"key",d):i}v=""}if(isNonNullishPrimitive(v)||utils.isBuffer(v)){if(a){var x=f?i:a(i,defaults$2.encoder,m,"key",d);return[h(x)+"="+h(a(v,defaults$2.encoder,m,"value",d))]}return[h(i)+"="+h(String(v))]}var k=[];if(typeof v==="undefined"){return k}var A;if(r==="comma"&&isArray$1(v)){if(f&&a){v=utils.maybeMap(v,a)}A=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(isArray$1(l)){A=l}else{var T=Object.keys(v);A=c?T.sort(c):T}var C=n&&isArray$1(v)&&v.length===1?i+"[]":i;for(var L=0;L<A.length;++L){var S=A[L];var E=typeof S==="object"&&typeof S.value!=="undefined"?S.value:v[S];if(s&&E===null){continue}var P=isArray$1(v)?typeof r==="function"?r(C,S):C:C+(p?"."+S:"["+S+"]");g.set(t,w);var M=sideChannel();M.set(sentinel,g);pushToArray(k,e(E,P,r,n,o,s,r==="comma"&&f&&isArray$1(v)?null:a,l,c,p,u,d,h,f,m,M))}return k};var normalizeStringifyOptions=function e(t){if(!t){return defaults$2}if(t.encoder!==null&&typeof t.encoder!=="undefined"&&typeof t.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var i=t.charset||defaults$2.charset;if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=formats["default"];if(typeof t.format!=="undefined"){if(!has$1.call(formats.formatters,t.format)){throw new TypeError("Unknown format option provided.")}r=t.format}var n=formats.formatters[r];var o=defaults$2.filter;if(typeof t.filter==="function"||isArray$1(t.filter)){o=t.filter}return{addQueryPrefix:typeof t.addQueryPrefix==="boolean"?t.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof t.allowDots==="undefined"?defaults$2.allowDots:!!t.allowDots,charset:i,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof t.delimiter==="undefined"?defaults$2.delimiter:t.delimiter,encode:typeof t.encode==="boolean"?t.encode:defaults$2.encode,encoder:typeof t.encoder==="function"?t.encoder:defaults$2.encoder,encodeValuesOnly:typeof t.encodeValuesOnly==="boolean"?t.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate==="function"?t.serializeDate:defaults$2.serializeDate,skipNulls:typeof t.skipNulls==="boolean"?t.skipNulls:defaults$2.skipNulls,sort:typeof t.sort==="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:defaults$2.strictNullHandling}};var stringify_1=function(e,t){var i=e;var r=normalizeStringifyOptions(t);var n;var o;if(typeof r.filter==="function"){o=r.filter;i=o("",i)}else if(isArray$1(r.filter)){o=r.filter;n=o}var s=[];if(typeof i!=="object"||i===null){return""}var a;if(t&&t.arrayFormat in arrayPrefixGenerators){a=t.arrayFormat}else if(t&&"indices"in t){a=t.indices?"indices":"repeat"}else{a="indices"}var l=arrayPrefixGenerators[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&t&&t.commaRoundTrip;if(!n){n=Object.keys(i)}if(r.sort){n.sort(r.sort)}var p=sideChannel();for(var u=0;u<n.length;++u){var d=n[u];if(r.skipNulls&&i[d]===null){continue}pushToArray(s,stringify(i[d],d,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,p))}var h=s.join(r.delimiter);var f=r.addQueryPrefix===true?"?":"";if(r.charsetSentinel){if(r.charset==="iso-8859-1"){f+="utf8=%26%2310003%3B&"}else{f+="utf8=%E2%9C%93&"}}return h.length>0?f+h:""};var has=Object.prototype.hasOwnProperty;var isArray=Array.isArray;var defaults$1={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var parseArrayValue=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var isoSentinel="utf8=%26%2310003%3B";var charsetSentinel="utf8=%E2%9C%93";var parseValues=function e(t,i){var r={__proto__:null};var n=i.ignoreQueryPrefix?t.replace(/^\?/,""):t;var o=i.parameterLimit===Infinity?undefined:i.parameterLimit;var s=n.split(i.delimiter,o);var a=-1;var l;var c=i.charset;if(i.charsetSentinel){for(l=0;l<s.length;++l){if(s[l].indexOf("utf8=")===0){if(s[l]===charsetSentinel){c="utf-8"}else if(s[l]===isoSentinel){c="iso-8859-1"}a=l;l=s.length}}}for(l=0;l<s.length;++l){if(l===a){continue}var p=s[l];var u=p.indexOf("]=");var d=u===-1?p.indexOf("="):u+1;var h,f;if(d===-1){h=i.decoder(p,defaults$1.decoder,c,"key");f=i.strictNullHandling?null:""}else{h=i.decoder(p.slice(0,d),defaults$1.decoder,c,"key");f=utils.maybeMap(parseArrayValue(p.slice(d+1),i),(function(e){return i.decoder(e,defaults$1.decoder,c,"value")}))}if(f&&i.interpretNumericEntities&&c==="iso-8859-1"){f=interpretNumericEntities(f)}if(p.indexOf("[]=")>-1){f=isArray(f)?[f]:f}if(has.call(r,h)){r[h]=utils.combine(r[h],f)}else{r[h]=f}}return r};var parseObject=function(e,t,i,r){var n=r?t:parseArrayValue(t,i);for(var o=e.length-1;o>=0;--o){var s;var a=e[o];if(a==="[]"&&i.parseArrays){s=[].concat(n)}else{s=i.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(!i.parseArrays&&l===""){s={0:n}}else if(!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&(i.parseArrays&&c<=i.arrayLimit)){s=[];s[c]=n}else if(l!=="__proto__"){s[l]=n}}n=s}return n};var parseKeys=function e(t,i,r,n){if(!t){return}var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;var s=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=r.depth>0&&s.exec(o);var c=l?o.slice(0,l.index):o;var p=[];if(c){if(!r.plainObjects&&has.call(Object.prototype,c)){if(!r.allowPrototypes){return}}p.push(c)}var u=0;while(r.depth>0&&(l=a.exec(o))!==null&&u<r.depth){u+=1;if(!r.plainObjects&&has.call(Object.prototype,l[1].slice(1,-1))){if(!r.allowPrototypes){return}}p.push(l[1])}if(l){p.push("["+o.slice(l.index)+"]")}return parseObject(p,i,r,n)};var normalizeParseOptions=function e(t){if(!t){return defaults$1}if(t.decoder!==null&&t.decoder!==undefined&&typeof t.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var i=typeof t.charset==="undefined"?defaults$1.charset:t.charset;return{allowDots:typeof t.allowDots==="undefined"?defaults$1.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes==="boolean"?t.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof t.allowSparse==="boolean"?t.allowSparse:defaults$1.allowSparse,arrayLimit:typeof t.arrayLimit==="number"?t.arrayLimit:defaults$1.arrayLimit,charset:i,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:defaults$1.charsetSentinel,comma:typeof t.comma==="boolean"?t.comma:defaults$1.comma,decoder:typeof t.decoder==="function"?t.decoder:defaults$1.decoder,delimiter:typeof t.delimiter==="string"||utils.isRegExp(t.delimiter)?t.delimiter:defaults$1.delimiter,depth:typeof t.depth==="number"||t.depth===false?+t.depth:defaults$1.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===true,interpretNumericEntities:typeof t.interpretNumericEntities==="boolean"?t.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof t.parameterLimit==="number"?t.parameterLimit:defaults$1.parameterLimit,parseArrays:t.parseArrays!==false,plainObjects:typeof t.plainObjects==="boolean"?t.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:defaults$1.strictNullHandling}};var parse$1=function(e,t){var i=normalizeParseOptions(t);if(e===""||e===null||typeof e==="undefined"){return i.plainObjects?Object.create(null):{}}var r=typeof e==="string"?parseValues(e,i):e;var n=i.plainObjects?Object.create(null):{};var o=Object.keys(r);for(var s=0;s<o.length;++s){var a=o[s];var l=parseKeys(a,r[a],i,typeof e==="string");n=utils.merge(n,l,i)}if(i.allowSparse===true){return n}return utils.compact(n)};var lib={formats:formats,parse:parse$1,stringify:stringify_1};function Url(){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 protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:true,"javascript:":true},hostlessProtocol={javascript:true,"javascript:":true},slashedProtocol={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function urlParse(e,t,i){if(e&&typeof e==="object"&&e instanceof Url){return e}var r=new Url;r.parse(e,t,i);return r}Url.prototype.parse=function(e,t,i){if(typeof e!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof e)}var r=e.indexOf("?"),n=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(n),s=/\\/g;o[0]=o[0].replace(s,"/");e=o.join(n);var a=e;a=a.trim();if(!i&&e.split("#").length===1){var l=simplePathPattern.exec(a);if(l){this.path=a;this.href=a;this.pathname=l[1];if(l[2]){this.search=l[2];if(t){this.query=lib.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(t){this.search="";this.query={}}return this}}var c=protocolPattern.exec(a);if(c){c=c[0];var p=c.toLowerCase();this.protocol=p;a=a.substr(c.length)}if(i||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var u=a.substr(0,2)==="//";if(u&&!(c&&hostlessProtocol[c])){a=a.substr(2);this.slashes=true}}if(!hostlessProtocol[c]&&(u||c&&!slashedProtocol[c])){var d=-1;for(var h=0;h<hostEndingChars.length;h++){var f=a.indexOf(hostEndingChars[h]);if(f!==-1&&(d===-1||f<d)){d=f}}var m,g;if(d===-1){g=a.lastIndexOf("@")}else{g=a.lastIndexOf("@",d)}if(g!==-1){m=a.slice(0,g);a=a.slice(g+1);this.auth=decodeURIComponent(m)}d=-1;for(var h=0;h<nonHostChars.length;h++){var f=a.indexOf(nonHostChars[h]);if(f!==-1&&(d===-1||f<d)){d=f}}if(d===-1){d=a.length}this.host=a.slice(0,d);a=a.slice(d);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var y=this.hostname.split(/\./);for(var h=0,w=y.length;h<w;h++){var b=y[h];if(!b){continue}if(!b.match(hostnamePartPattern)){var _="";for(var x=0,k=b.length;x<k;x++){if(b.charCodeAt(x)>127){_+="x"}else{_+=b[x]}}if(!_.match(hostnamePartPattern)){var A=y.slice(0,h);var T=y.slice(h+1);var C=b.match(hostnamePartStart);if(C){A.push(C[1]);T.unshift(C[2])}if(T.length){a="/"+T.join(".")+a}this.hostname=A.join(".");break}}}}if(this.hostname.length>hostnameMaxLen){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=punycode.toASCII(this.hostname)}var L=this.port?":"+this.port:"";var S=this.hostname||"";this.host=S+L;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!unsafeProtocol[p]){for(var h=0,w=autoEscape.length;h<w;h++){var E=autoEscape[h];if(a.indexOf(E)===-1){continue}var P=encodeURIComponent(E);if(P===E){P=escape(E)}a=a.split(E).join(P)}}var M=a.indexOf("#");if(M!==-1){this.hash=a.substr(M);a=a.slice(0,M)}var O=a.indexOf("?");if(O!==-1){this.search=a.substr(O);this.query=a.substr(O+1);if(t){this.query=lib.parse(this.query)}a=a.slice(0,O)}else if(t){this.search="";this.query={}}if(a){this.pathname=a}if(slashedProtocol[p]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var L=this.pathname||"";var I=this.search||"";this.path=L+I}this.href=this.format();return this};function urlFormat(e){if(typeof e==="string"){e=urlParse(e)}if(!(e instanceof Url)){return Url.prototype.format.call(e)}return e.format()}Url.prototype.format=function(){var e=this.auth||"";if(e){e=encodeURIComponent(e);e=e.replace(/%3A/i,":");e+="@"}var t=this.protocol||"",i=this.pathname||"",r=this.hash||"",n=false,o="";if(this.host){n=e+this.host}else if(this.hostname){n=e+(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){o=lib.stringify(this.query)}var s=this.search||o&&"?"+o||"";if(t&&t.substr(-1)!==":"){t+=":"}if(this.slashes||(!t||slashedProtocol[t])&&n!==false){n="//"+(n||"");if(i&&i.charAt(0)!=="/"){i="/"+i}}else if(!n){n=""}if(r&&r.charAt(0)!=="#"){r="#"+r}if(s&&s.charAt(0)!=="?"){s="?"+s}i=i.replace(/[?#]/g,(function(e){return encodeURIComponent(e)}));s=s.replace("#","%23");return t+n+i+s+r};function urlResolve(e,t){return urlParse(e,false,true).resolve(t)}Url.prototype.resolve=function(e){return this.resolveObject(urlParse(e,false,true)).format()};function urlResolveObject(e,t){if(!e){return t}return urlParse(e,false,true).resolveObject(t)}Url.prototype.resolveObject=function(e){if(typeof e==="string"){var t=new Url;t.parse(e,false,true);e=t}var i=new Url;var r=Object.keys(this);for(var n=0;n<r.length;n++){var o=r[n];i[o]=this[o]}i.hash=e.hash;if(e.href===""){i.href=i.format();return i}if(e.slashes&&!e.protocol){var s=Object.keys(e);for(var a=0;a<s.length;a++){var l=s[a];if(l!=="protocol"){i[l]=e[l]}}if(slashedProtocol[i.protocol]&&i.hostname&&!i.pathname){i.pathname="/";i.path=i.pathname}i.href=i.format();return i}if(e.protocol&&e.protocol!==i.protocol){if(!slashedProtocol[e.protocol]){var c=Object.keys(e);for(var p=0;p<c.length;p++){var u=c[p];i[u]=e[u]}i.href=i.format();return i}i.protocol=e.protocol;if(!e.host&&!hostlessProtocol[e.protocol]){var d=(e.pathname||"").split("/");while(d.length&&!(e.host=d.shift())){}if(!e.host){e.host=""}if(!e.hostname){e.hostname=""}if(d[0]!==""){d.unshift("")}if(d.length<2){d.unshift("")}i.pathname=d.join("/")}else{i.pathname=e.pathname}i.search=e.search;i.query=e.query;i.host=e.host||"";i.auth=e.auth;i.hostname=e.hostname||e.host;i.port=e.port;if(i.pathname||i.search){var h=i.pathname||"";var f=i.search||"";i.path=h+f}i.slashes=i.slashes||e.slashes;i.href=i.format();return i}var m=i.pathname&&i.pathname.charAt(0)==="/",g=e.host||e.pathname&&e.pathname.charAt(0)==="/",v=g||m||i.host&&e.pathname,y=v,w=i.pathname&&i.pathname.split("/")||[],d=e.pathname&&e.pathname.split("/")||[],b=i.protocol&&!slashedProtocol[i.protocol];if(b){i.hostname="";i.port=null;if(i.host){if(w[0]===""){w[0]=i.host}else{w.unshift(i.host)}}i.host="";if(e.protocol){e.hostname=null;e.port=null;if(e.host){if(d[0]===""){d[0]=e.host}else{d.unshift(e.host)}}e.host=null}v=v&&(d[0]===""||w[0]==="")}if(g){i.host=e.host||e.host===""?e.host:i.host;i.hostname=e.hostname||e.hostname===""?e.hostname:i.hostname;i.search=e.search;i.query=e.query;w=d}else if(d.length){if(!w){w=[]}w.pop();w=w.concat(d);i.search=e.search;i.query=e.query}else if(e.search!=null){if(b){i.host=w.shift();i.hostname=i.host;var _=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(_){i.auth=_.shift();i.hostname=_.shift();i.host=i.hostname}}i.search=e.search;i.query=e.query;if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.href=i.format();return i}if(!w.length){i.pathname=null;if(i.search){i.path="/"+i.search}else{i.path=null}i.href=i.format();return i}var x=w.slice(-1)[0];var k=(i.host||e.host||w.length>1)&&(x==="."||x==="..")||x==="";var A=0;for(var T=w.length;T>=0;T--){x=w[T];if(x==="."){w.splice(T,1)}else if(x===".."){w.splice(T,1);A++}else if(A){w.splice(T,1);A--}}if(!v&&!y){for(;A--;A){w.unshift("..")}}if(v&&w[0]!==""&&(!w[0]||w[0].charAt(0)!=="/")){w.unshift("")}if(k&&w.join("/").substr(-1)!=="/"){w.push("")}var C=w[0]===""||w[0]&&w[0].charAt(0)==="/";if(b){i.hostname=C?"":w.length?w.shift():"";i.host=i.hostname;var _=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(_){i.auth=_.shift();i.hostname=_.shift();i.host=i.hostname}}v=v||i.host&&w.length;if(v&&!C){w.unshift("")}if(w.length>0){i.pathname=w.join("/")}else{i.pathname=null;i.path=null}if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.auth=e.auth||i.auth;i.slashes=i.slashes||e.slashes;i.href=i.format();return i};Url.prototype.parseHost=function(){var e=this.host;var t=portPattern.exec(e);if(t){t=t[0];if(t!==":"){this.port=t.substr(1)}e=e.substr(0,e.length-t.length)}if(e){this.hostname=e}};var parse=urlParse;var resolve=urlResolve;var resolveObject=urlResolveObject;var format=urlFormat;var Url_1=Url;var url={parse:parse,resolve:resolve,resolveObject:resolveObject,format:format,Url:Url_1};!function(e){e()}((function(){var e={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"}},t=6e4,i=60*t,r=24*i;function n(e,t){return new URL(e,e.startsWith("../")||e.startsWith("./")?t:void 0).toString()}function o(e,t){var i=m("a","",{href:e,target:"_new",download:t||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function s(e,t,i){var r=this;return e&&function(n){var o=n.props,s=n.point,l=n.id,c=n.isMulti;if(o)for(var p=0,u=e;p<u.length;p++){var d=u[p];if(d in o){s.meta[t]=(i||a).call(r,c?o[d][c]:o[d],l);break}}}}var a=function(e,t){return parseInt("object"==typeof e?e[t]:e)},l=function(e,t){return e&&t.split(" ").every((function(t){return t&&L.DomUtil.addClass(e,t)}))},c=function(e,t){return e&&t.split(" ").every((function(t){return t&&L.DomUtil.removeClass(e,t)}))},p=function(e,t,i){return(i?l:c)(e,t)},u=function(e,t,i){return t&&c(e,t)||i&&l(e,i)},d=function(e,t,i){return void 0===i&&L.DomUtil.getStyle(e,t)||e.style.setProperty(t,i)},h=function(e,t){for(var i in t)e.setAttribute(i,t[i])},f=function(e,t,i,r){return e[r?"on":"off"](t,i)},m=function(e,t,i,r){var n=L.DomUtil.create(e,t||"");return i&&h(n,i),r&&g(r,n),n},g=function(e,t){return e.appendChild(t)},v=function(e,t,i){return e.insertAdjacentElement(i,t)},y=function(e,t){return(t||document).querySelector(e)},w=function(e,t){for(var i in e)t(e[i],i)},b=function(){return Math.random().toString(36).substr(2,9)},_=L.DomEvent,x=_.on,k=_.off,A=L.Util,T=A.throttle,C=A.wrapNum,S=L.DomUtil.hasClass,E=L.Util.formatNum,P=function(e,t){return t?e<t[0]?t[0]:e>t[1]?t[1]:e:e},M=function(e,t,i){return Math.abs(e-t)>i?t+i*Math.sign(e-t):e};function O(e,t,i){if(t===void 0){t=[]}if(i===void 0){i=[]}switch(!e||typeof e){case"object":var r=i.filter((function(t){return e===t.original}))[0];if(r)return r.copy;var n=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return i.push({original:e,copy:n}),Object.getOwnPropertyNames(e).forEach((function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get||o.set?o:{writable:o.writable,configurable:o.configurable,enumerable:o.enumerable,value:t.includes(r)?o.value:O(o.value,t,i)})})),n;case"function":case"symbol":console.warn("cloneDeep: "+typeof e+"s not fully supported:",e);default:return e}}var I=Object.freeze({__proto__:null,Colors:e,addClass:l,append:g,clamp:P,cloneDeep:O,coordPropsToMeta:s,create:m,drawCanvas:function(e,t){t.classed("canvas-path",!0),e.beginPath(),e.moveTo(0,0);var i=new Path2D(t.attr("d"));e.strokeStyle=t.attr("stroke"),e.fillStyle=t.attr("fill"),e.lineWidth=1.25,e.globalCompositeOperation="source-over",e.globalAlpha=t.attr("stroke-opacity")||.3,e.stroke(i),e.globalAlpha=t.attr("fill-opacity")||.45,e.fill(i),e.globalAlpha=1,e.closePath()},each:w,formatDate:function(e){return e?"time"==e?function(e){return new Date(e).toLocaleTimeString()}:"date"==e?function(e){return new Date(e).toLocaleDateString()}:function(t){return e(t)}:function(e){return new Date(e).toLocaleString().replaceAll("/","-").replaceAll(","," ")}},formatTime:function(e){var n=Math.floor(e/r),o=Math.floor((e-n*r)/i),s=Math.floor((e-n*r-o*i)/t),a=Math.round((e-n*r-o*i-s*t)/1e3);return 60===a&&(s++,a=0),60===s&&(o++,s=0),24===o&&(n++,o=0),(n?n+"d ":"")+o.toString().padStart(2,0)+":"+s.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:S,iAvg:function(e,t,i){if(t===void 0){t=0}if(i===void 0){i=1}return(e+t*(i-1))/i},iMax:function(e,t){if(t===void 0){t=-1/0}return e>t?e:t},iMin:function(e,t){if(t===void 0){t=1/0}return e<t?e:t},iSum:function(e,t){if(t===void 0){t=0}return e+t},insert:v,off:k,on:x,parseDate:function(e,t){return new Date(Date.parse("object"==typeof e?e[t]:e))},parseNumeric:a,randomId:b,removeClass:c,replaceClass:u,resolveURL:n,round:E,saveFile:o,select:y,setAttributes:h,style:d,throttle:T,toggleClass:p,toggleEvent:f,toggleStyle:function(e,t,i,r){return d(e,t,r?i:"")},wrapDelta:M,wrapNum:C}),z={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?url.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?url.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=function(e,t){return e});var B=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:z,__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:function(e,t){var i=this;this.import(this.__D3).then((function(){i._modulesLoaded?(t=t!==null&&t!==void 0?t:e.on&&e,i._addData(e),i._addLayer(t),i._fireEvt("eledata_added",{data:e,layer:t,track_info:i.track_info})):i.once("modules_loaded",(function(){return i.addData(e,t)}))}))},addTo:function(e){if(this.options.detached){var t=y(this.options.elevationDiv),i=this.onAdd(e);t?g(t,i):v(e.getContainer(),i,"afterend")}else L.Control.prototype.addTo.call(this,e);return this},clear:function(){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((function(e){return e.options.renderer.remove()})),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var e=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(t){var i=t.fn,r=t.ctx;return e.off("elechart_updated",i,r)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(e){(e=e||this._layers)&&e.eachLayer&&(e.eachLayer((function(e){return e.remove()})),e.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(e){e=e||this.getBounds(),this._map&&e.isValid()&&this._map.fitBounds(e)},getBounds:function(e){return L.latLngBounds((e||this._data).map((function(e){return e.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){d(this._container,"display","none")},initialize:function(t){t=L.setOptions(this,L.extend({},O(z),t)),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],t.trkStart||z.trkStart),this._end=L.circleMarker([0,0],t.trkEnd||z.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},t.followMarker&&(this._setMapView=T(this._setMapView,300,this)),t.legend&&(t.margins.bottom+=30),t.theme&&(t.polylineSegments.className+=" "+t.theme),!0===t.wptIcons&&(t.wptIcons=z.wptIcons),!0===t.distanceMarkers&&(t.distanceMarkers=z.distanceMarkers),t.trkStart&&this._start.addTo(this._circleMarkers),t.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(t.polylineSegments),L.extend(e,t.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import:function(e,t){switch(e){case this.__D3:t="object"!=typeof d3;break;case this.__TOGEOJSON:t="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:t="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:t="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:t="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:t="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:t="function"!=typeof L.Hotline}return!1!==t?import(n(e,this.options.srcFolder)):Promise.resolve()},load:function(e){var t=this;this._parseFromString(e).then((function(i){return i?t._loadLayer(i):t._loadFile(e)}))},onAdd:function(e){var t=this;this._map=e;var i=this._container=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+b()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((function(){t._initChart(i),t._initButton(i),t._initSummary(i),t._initMarker(e),t._initLayer(e),t._modulesLoaded=!0,t.fire("modules_loaded")})),this.fire("add"),i},onRemove:function(e){this._container=null,e.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),k(e.getContainer(),"mousewheel",this._resetDrag,this),k(e.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:function(){this._resizeChart()},setZFollow:function(e){this.options.zFollow=e},show:function(){d(this._container,"display","block")},_addData:function(e){var t=this;if(e){if("FeatureCollection"===e.type)return w(e.features,(function(e){return t._addData(e)}));if("Feature"===e.type){var i=e.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,e.properties);case"MultiLineString":return w(i.coordinates,(function(i,r){return t._addGeoJSONData(i,e.properties,r)}));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return e._latlngs?this._addGeoJSONData(e._latlngs,e.feature&&e.feature.properties):void 0}},_addGeoJSONData:function(e,t,i){var r=this;var n=t&&t.coordinateProperties||t;e.forEach((function(e,t){var o,s,a,l,c;e.meta=(o=e.meta)!==null&&o!==void 0?o:{time:null,ele:null},e.prev=function(e){return e?r._data[t>0?t-1:0][e]:r._data[t>0?t-1:0]},r.fire("elepoint_init",{point:e,props:n,id:t,isMulti:i}),r._addPoint((s=e.lat)!==null&&s!==void 0?s:e[1],(a=e.lng)!==null&&a!==void 0?a:e[0],(c=(l=e.alt)!==null&&l!==void 0?l:e.meta.ele)!==null&&c!==void 0?c:e[2]),r.fire("elepoint_added",{point:e,index:r._data.length-1}),r._yCoordMax<r._data[r._data.length-1][r.options.yAttr]&&(r._yCoordMax=r._data[r._data.length-1][r.options.yAttr])})),this.fire("eletrack_added",{coords:e,index:this._data.length-1})},_addPoint:function(e,t,i){var r;this.options.reverseCoords&&(r=[t,e],e=r[0],t=r[1],r),this._data.push({x:e,y:t,z:i,latlng:L.latLng(e,t,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(e){return e&&this._layers.addLayer(e),e&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&e.on("add remove",(function(e){var t=e.target,i=e.type;return L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]()})),e},_addMarker:function(e){return e&&this._markers.addLayer(e),e},_initAlmostOverHandler:function(e,t){var i=this;return e&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((function(){e.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&e.almostOver&&e.almostOver.enabled()&&(e.almostOver.addLayer(t),e.on("almost:move",i._onMouseMoveLayer,i).on("almost:out",i._onMouseOut,i),i.once("eledata_clear",(function(){e.almostOver.removeLayer(t),e.off("almost:move",i._onMouseMoveLayer,i).off("almost:out",i._onMouseOut,i)})))})):Promise.resolve()},_initDistanceMarkers:function(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale:function(e){var t=this;return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((function(){e.edgeScaleControl=e.edgeScaleControl||L.control.edgeScale("boolean"!=typeof t.options.edgeScale?t.options.edgeScale:{}).addTo(e)})):Promise.resolve()},_initHotLine:function(e){var t=this;var i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((function(){e.eachLayer((function(e){if("Point"!=e.feature.geometry.type){var r=L.geoJson(e.toGeoJSON(),{coordsToLatLng:function(e){return L.latLng(e[0],e[1],e[2]*(t.options.altitudeFactor||1))}}),n=L.hotline(r.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(t.track_info[i+"_min"])?t.track_info[i+"_min"]:0,max:isFinite(t.track_info[i+"_max"])?t.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(t._hotline),o=e.options.style&&e.options.style.opacity||1;e.on("add remove",(function(t){var i=t.type;e.setStyle({opacity:"add"==i?0:o}),n["add"==i?"addTo":"removeFrom"](e._map),n._renderer&&n._renderer._container.parentElement.insertBefore(n._renderer._container,n._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations:function(e){var t=this;var 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(e),this._initAlmostOverHandler(i,e),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((function(){t.options.polyline&&(t._layers.addLayer(e.addTo(i)),t._circleMarkers.addTo(i)),t.options.autofitBounds&&t.fitBounds(e.getBounds()),i.invalidateSize()}))):this.once("add",(function(){return t._initMapIntegrations(e)}))},_collapse:function(){u(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand:function(){u(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,i=this,r=this.options.theme.split(" ")[0].replace("-theme",""),n=e[r]||{};L.Canvas.include({_fillStroke:function(e,o){if(i._layers.hasLayer(o)){var s=o.options;if(s.color=n.line||n.area||r,s.stroke=!!s.color,t.call(this,e,o),s.stroke&&0!==s.weight){var a=e.globalCompositeOperation||"source-over";e.globalCompositeOperation="destination-over",e.strokeStyle=n.outline||"#FFF",e.lineWidth=1.75*s.weight,e.stroke(),e.globalCompositeOperation=a}}else t.call(this,e,o)}})},_fixTooltipSize:function(){var e=this;this.on("elechart_init",(function(){return e.once("elechart_change elechart_hover",(function(t){var i=t.data,r=t.xCoord;e._chartEnabled&&(e._chart._showDiagramIndicator(i,r),e._chart._showDiagramIndicator(i,r)),e._updateMarker(i)}))}))},_findItemForLatLng:function(e){return this._data[this._chart._findIndexForLatLng(e)]},_findItemForX:function(e){return this._data[this._chart._findIndexForXCoord(e)]},_fireEvt:function(e,t,i){this.fire&&this.fire(e,t,i),this._map&&this._map.fire(e,t,i)},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(e){var t=this;var i=this.options,r=this._map;if(i.detached){var n=this.eleDiv,o=n.offsetWidth,s=n.offsetHeight;o>0&&(i.width=o),s>20&&(i.height=s-20)}else{var a=r.getContainer().clientWidth;i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>a&&(i.width=a-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((function(n){var o=t._chart=new(n[1]||B).Chart(i,t);t._x=t._chart._x,t._y=t._chart._y,d3.select(e).call(o.render()),o.on("reset_drag",t._hideMarker,t).on("mouse_enter",t._onMouseEnter,t).on("dragged",t._onDragEnd,t).on("mouse_move",t._onMouseMove,t).on("mouse_out",t._onMouseOut,t).on("ruler_filter",t._onRulerFilter,t).on("zoom",t._updateChart,t).on("elepath_toggle",t._onToggleChart,t).on("margins_updated",t._resizeChart,t),t.fire("elechart_init"),r.on("zoom viewreset zoomanim",t._hideMarker,t).on("resize",t._resetView,t).on("resize",t._resizeChart,t).on("rotate",t._rotateMarker,t).on("mousedown",t._resetDrag,t),x(r.getContainer(),"mousewheel",t._resetDrag,t),x(r.getContainer(),"touchstart",t._resetDrag,t),x(document,"keydown",t._onKeyDown,t),t.on("eledata_added eledata_loaded",t._updateChart,t).on("eledata_added eledata_loaded",t._updateSummary,t),t._updateChart(),t._updateSummary()}))},_initLayer:function(){var e=this;this._layers.on("layeradd layerremove",(function(t){var i=t.layer,r=t.type;var n=i.getElement&&i.getElement();p(n,e.options.polyline.className+" "+e.options.theme,"layeradd"==r),f(i,"mousemove",e._onMouseMoveLayer.bind(e),"layeradd"==r),f(i,"mouseout",e._onMouseOut.bind(e),"layeradd"==r)}))},_initMarker:function(e){var t=this;var i=e.getPane("elevationPane");i||(i=this._pane=e.createPane("elevationPane",e.getPane("norotatePane")||e.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((function(e){t._marker=new(e[1]||B).Marker(t.options,t),t.fire("elechart_marker")}))},_initButton:function(e){if(L.DomEvent.disableClickPropagation(e).disableScrollPropagation(e),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(x(e,"mouseover",this._expand,this),x(e,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){var t=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},e);x(t,"click",L.DomEvent.stop),x(t,"click",this._toggle,this),x(t,"focus",this._toggle,this),fetch(n(this.__btnIcon,this.options.srcFolder)).then((function(e){return e.ok&&e.text().then((function(e){return t.innerHTML=e}))}))}},_initSummary:function(e){var t=this;this.import(this.__LSUMMARY).then((function(i){t._summary=new(i||B).Summary({summary:t.options.summary},t),t.on("elechart_init",(function(){d3.select(e).call(t._summary.render())}))}))},_loadFile:function(e){var t=this;fetch(e).then((function(e){return e.text()})).then((function(i){t._downloadURL=e,t._parseFromString(i).then((function(e){return e&&t._loadLayer(e)}))})).catch((function(e){return console.warn(e)}))},_loadModules:function(e){var t=this;var i=(e=e.map((function(e){return"string"==typeof e&&void 0!==B[e]?B[e]:e}))).map((function(e){return"string"==typeof e&&t.import(t.__modulesFolder+e.toLowerCase()+".js")||e instanceof Promise&&e||Promise.resolve()}));return Promise.all(i).then((function(i){w(i,(function(t,i){var r;var n=t&&Object.keys(t)[0];n&&(e[i]=B[n]=(r=B[n])!==null&&r!==void 0?r:t[n])})),w(e,(function(e){return["function","object"].includes(typeof e)&&t._registerHandler(e)}))}))},_loadLayer:function(e){var t=this;var i=this.options,r=i.polyline,n=i.theme,o=i.waypoints,s=i.wptIcons,a=i.wptLabels,l=i.distanceMarkers,c=L.extend({},r);n&&(c.className+=" "+n),e.name&&(this.track_info.name=e.name);var p=L.geoJson(e,{distanceMarkers:l,style:c,pointToLayer:function(e,i){if(o){var r=e.properties,n=r.desc,l=r.name,c=r.sym;if(n=n||"",l=l||"",[!0,"dots"].includes(o)&&t._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(a)?l:""}),[!0,"markers"].includes(o)&&0!=s)return t._registerMarker({latlng:i,sym:(c!==null&&c!==void 0?c:l).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(a)&&(l||n)&&decodeURI("<b>"+l+"</b>"+(n.length>0?"<br>"+n:""))})}},onEachFeature:function(e,i){return e.geometry&&"Point"!=e.geometry.type&&t.addData(e,i)}});return this.import(this.__D3).then((function(){t._initMapIntegrations(p);var i={data:e,layer:p,name:t.track_info.name,track_info:t.track_info};t._modulesLoaded?t._fireEvt("eledata_loaded",i):t.once("modules_loaded",(function(){return t._fireEvt("eledata_loaded",i)}))})),p},_onDragEnd:function(e){var t=e.dragstart,i=e.dragend;this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown:function(e){var t=e.key;this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter:function(){this.fire("elechart_enter")},_onMouseMove:function(e){var t=e.xCoord;if(this._chartEnabled&&this._data.length){var 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:function(e){var t=e.latlng;if(this._data.length){var i=this._findItemForLatLng(t);if(i){var r=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,r),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:r})}}},_onMouseOut:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter:function(e){var t=e.coords;this._updateMapSegments(t)},_onToggleChart:function(e){var t=this;var i=e.name,r=e.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(e){return p(e.getElement&&e.getElement(),t.options.polyline.className+" "+t.options.theme,t._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString:function(e){try{return JSON.parse(e)}catch(e){}},_parseFromString:function(e){var t=this;return new Promise((function(i){return t.import(t.__TOGEOJSON).then((function(){var r;try{r=t._parseFromXMLString(e.trim())}catch(i){r=t._parseFromGeoJSONString(e.toString())}r&&(r.name=r.name||(t._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(r)}))}))},_parseFromXMLString:function(e){var t;if(0!=e.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(e,"text/xml"),r=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[r](i);return o.name=n.length>0?((t=Array.from(n).find((function(e){return"trk"==e.parentElement.tagName})))!==null&&t!==void 0?t:n[0]).textContent:"",o},_registerAreaPath:function(e){var t=this;this.on("elechart_init",(function(){return t._chart._registerAreaPath(e)}))},_registerAxisGrid:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisGrid(e)}))},_registerAxisScale:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisScale(e)}))},_registerCheckPoint:function(e){var t=this;var i=function(){return t._chart._registerCheckPoint(e)};this.on("elechart_updated",i).once("eledata_clear",(function(){return t.off("elechart_updated",i)}))},_registerDataAttribute:function(e){var t=this;e.coordPropsToMeta&&this.on("elepoint_init",(function(i){return e.coordPropsToMeta.call(t,i)}));var i,r,n,o=e.attr||e.name,s={};this.on("elepoint_added",(function(a){var l=a.index,c=a.point;if(i=l,n=r!==null&&r!==void 0?r:t._data[i],r=t._data[i],r[o]=e.pointToAttr.call(t,c,i),i>0&&isNaN(n[o])&&(isNaN(s[o])||isNaN(r[o])?isNaN(s[o])?isNaN(r[o])||(n[o]=r[o]):n[o]=s[o]:n[o]=(s[o]+r[o])/2,e.meta&&(n[e.meta]=n[o])),!isNaN(r[o])){if(s[o]=r[o],e.deltaMax&&(r[o]=M(r[o],n[o],e.deltaMax)),e.clampRange&&(r[o]=P(r[o],e.clampRange)),isNaN(e.decimals)||(r[o]=E(r[o],e.decimals)),e.stats)for(var p in e.stats){var u=(e.statsName||o)+(""!=p?"_":"");t.track_info[u+p]=e.stats[p].call(t,r[o],t.track_info[u+p],t._data.length)}e.onPointAdded&&e.onPointAdded.call(t,r[o],i,c)}}))},_registerHandler:function(e){var t=this;if("function"==typeof e)return this._registerHandler(e.call(this));var i=e.name,r=e.attr,n=e.required,o=e.deltaMax,a=e.clampRange,l=e.decimals,c=e.meta,p=e.unit,u=e.coordinateProperties,d=e.coordPropsToMeta,h=e.pointToAttr,f=e.onPointAdded,m=e.stats,g=e.statsName,v=e.grid,y=e.scale,b=e.path,_=e.tooltip,x=e.summary;(this.options[i]||n)&&(this._registerDataAttribute({name:i,attr:r,meta:c,deltaMax:o,clampRange:a,decimals:l,coordPropsToMeta:s(u,c||i,d),pointToAttr:h,onPointAdded:f,stats:m,statsName:g}),v&&this._registerAxisGrid(L.extend({name:i},v)),"summary"!==this.options[i]&&(y&&this._registerAxisScale(L.extend({name:i,label:p},y)),b&&this._registerAreaPath(L.extend({name:i},b))),(_||e.tooltips)&&w(__spreadArray([_],e.tooltips||[],true),(function(e){return e&&t._registerTooltip(L.extend({name:i},e))})),x&&(w(x,(function(e,t){return x[t]=L.extend({unit:p},e)})),this._registerSummary(x)))},_registerMarker:function(e){var t=e.latlng,i=e.sym,r=e.content;var n=this.options.wptIcons;n.hasOwnProperty(i)||(n[i]=L.divIcon(L.extend({},n[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));var o=L.marker(t,{icon:n[i]});return r&&(o.bindPopup(r,{className:"elevation-popup",keepInView:!0}).openPopup(),o.bindTooltip(r,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(o)},_registerTooltip:function(e){var t=this;e.chart&&this.on("elechart_init",(function(){return t._chart._registerTooltip(L.extend({},e,{value:e.chart}))})),e.marker&&this.on("elechart_marker",(function(){return t._marker._registerTooltip(L.extend({},e,{value:e.marker}))}))},_registerSummary:function(e){var t=this;this.on("elechart_summary",(function(){return t._summary._registerSummary(e)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=d(this._container,"display")){var e=this.options,t=e.detached?(this.eleDiv||this._container).offsetWidth:P(e._maxWidth,[0,this._map.getContainer().clientWidth-30]);t&&(e.width=t,this._chart&&this._chart._chart&&(this._chart._chart._resize(e),this._updateChart())),this._updateMapSegments()}},_toggle:function(){S(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(e){if(this._map&&this.options.followMarker){var t=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(e.latlng,t<i?i:t,{animate:!0,duration:.25}):this._map.getBounds().contains(e.latlng)||this._map.setView(e.latlng,t,{animate:!0,duration:.25})}},_updateChart:function(){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:function(e){this._marker&&this._marker.update({map:this._map,item:e,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(e){this._markedSegments.setLatLngs(e||[]),e&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var e=this;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>",y(".download a",this._summary._container).onclick=function(t){t.preventDefault();var i={downloadLink:e.options.downloadLink,confirm:o.bind(e,e._downloadURL)};"modal"==e.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=e.options.downloadLink&&!0!==e.options.downloadLink||i.confirm(),e.fire("eletrack_download",i)}))},_width:function(){if(this._chart)return this._chart._width();var e=this.options,t=e.width,i=e.margins;return t-i.left-i.right},_height:function(){if(this._chart)return this._chart._height();var e=this.options,t=e.height,i=e.margins;return t-i.top-i.bottom}});B.Utils=I,L.control.elevation=function(e){return new B(e)}}));createCommonjsModule((function(e,t){!function(e,i){i(t)}(commonjsGlobal,(function(e){var t=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(e){L.Util.setOptions(this,e),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 t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,r=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,s=this.options.chunkInterval,a=this.options.chunkProgress,l=e.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),d=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var f=(new Date).getTime()-h;if(s<f)break}if((i=e[c])instanceof L.LayerGroup)p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),g=m[0]===i?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(i),t||this.fire("layeradd",{layer:i})}a&&a(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var h=this._needsClustering;c<l;c++)(i=e[c])instanceof L.LayerGroup?(p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length):i.getLatLng?this.hasLayer(i)||h.push(i):n.addLayer(i);return this},removeLayers:function(e){var t,i,r=e.length,n=this._featureGroup,o=this._nonPointGroup,s=!0;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=e.slice(),l=r;for(t=0;t<l;t++)(i=a[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),l=a.length):this._unspiderfyLayer(i)}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,r,n,o=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),r=o.length-1;0<=r;r--){for(i=!0,n=s.length-1;0<=n;n--)if(s[n].layer===o[r]){i=!1;break}i&&e.call(t,o[r])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer((function(t){e.push(t)})),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer((function(i){L.stamp(i)===e&&(t=i)})),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return!0;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return!1;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var r=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),e.__parent.zoomToBounds())},onAdd:function(e){var t,i,r;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(r=this._needsRemoving[t]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.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(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=t&&r[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var r=this._gridClusters,n=this._gridUnclustered,o=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var l,c=e.__parent,p=c._markers;for(this._arraySplice(p,e);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)t&&c._childCount<=1?(l=c._markers[0]===e?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,s.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,s.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(o.removeLayer(c),i||o.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(t||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(e||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(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 e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var n=e;t<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,r,n=this._gridClusters,o=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);s<=t;t--){i=this._map.project(e.getLatLng(),t);var a=n[t].getNearObject(i);if(a)return a._addChild(e),void(e.__parent=a);if(a=o[t].getNearObject(i)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,t,a,e);n[t].addObject(c,this._map.project(c._cLatLng,t)),a.__parent=c;var p=e.__parent=c;for(r=t-1;r>l._zoom;r--)p=new this._markerCluster(this,r,p),n[r].addObject(p,this._map.project(a.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(a,t)}o[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()}))},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&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,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):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(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,r=e.getLayers(),n=0;for(t=t||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});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(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,e,o,(function(o){var s,a=o._latlng,l=o._markers;for(r.contains(a)||(a=null),o._isSingleParent()&&e+1===t?(n.removeLayer(o),o._recursivelyAddChildrenToMap(null,t,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,t,r)),i=l.length-1;0<=i;i--)s=l[i],r.contains(s._latlng)||n.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,t),n.eachLayer((function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()})),this._topClusterLevel._recursively(r,e,t,(function(e){e._recursivelyRestoreChildPositions(t)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,e,o,(function(e){n.removeLayer(e),e.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,r=this._featureGroup;r.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue((function(){r.removeLayer(e),e.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,t+1,i);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===e._childCount){var s=e._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else e._recursively(r,i,n,(function(e){e._recursivelyRemoveChildrenFromMap(r,n,t+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var r=this._markers.length-1;0<=r;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),o=this._zoom+1,s=r.getZoom();0<i.length&&o<n;){o++;var a=[];for(t=0;t<i.length;t++)a=a.concat(i[t]._childClusters);i=a}o<n?this._group._map.setView(this._latlng,o):n<=s?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_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(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,r,n=this._markers,o=this._childClusters,s=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),e=0;e<n.length;e++)i=n[e]._latlng,this._bounds.extend(i),s+=i.lat,a+=i.lng;for(e=0;e<o.length;e++)(t=o[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,s+=i.lat*r,a+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(s/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,(function(e){var i,r,n=e._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}),(function(e){var i,r,n=e._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,r){this._recursively(e,r,t,(function(n){n._recursivelyAnimateChildrenIn(e,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(e,t,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,(function(e){e.clusterShow()}))},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,(function(r){if(t!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var o=r._markers[n];i.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(function(t){t._addToMap(e)}))},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-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(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var n,o;this._recursively(e,t-1,i-1,(function(e){for(o=e._markers.length-1;0<=o;o--)n=e._markers[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(e){for(o=e._childClusters.length-1;0<=o;o--)n=e._childClusters[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(e,t,i,r,n){var o,s,a=this._childClusters,l=this._zoom;if(t<=l&&(r&&r(this),n&&l===i&&n(this)),l<t||l<i)for(o=a.length-1;0<=o;o--)(s=a[o])._boundsNeedUpdate&&s._recalculateBounds(),e.intersects(s._bounds)&&s._recursively(e,t,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),r=this._getCoord(t.y),n=this._grid,o=n[r]=n[r]||{},s=o[i]=o[i]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,s.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,r,n=this._getCoord(t.x),o=this._getCoord(t.y),s=this._grid,a=s[o]=s[o]||{},l=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=l.length;i<r;i++)if(l[i]===e)return l.splice(i,1),1===r&&delete a[n],!0},eachObject:function(e,t){var i,r,n,o,s,a,l=this._grid;for(i in l)for(r in s=l[i])for(n=0,o=(a=s[r]).length;n<o;n++)e.call(t,a[n])&&(n--,o--)},getNearObject:function(e){var t,i,r,n,o,s,a,l,c=this._getCoord(e.x),p=this._getCoord(e.y),u=this._objectPoint,d=this._sqCellSize,h=null;for(t=p-1;t<=p+1;t++)if(n=this._grid[t])for(i=c-1;i<=c+1;i++)if(o=n[i])for(r=0,s=o.length;r<s;r++)a=o[r],((l=this._sqDist(u[L.Util.stamp(a)],e))<d||l<=d&&null===h)&&(d=l,h=a);return h},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,r,n,o=0,s=null,a=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(n=this.getDistant(r,e))&&(a.push(r),o<n&&(o=n,s=r));return{maxPoint:s,newPoints:a}},buildConvexHull:function(e,t){var i=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)):[e[0]]},getConvexHull:function(e){var t,i=!1,r=!1,n=!1,o=!1,s=null,a=null,l=null,c=null,p=null,u=null;for(t=e.length-1;0<=t;t--){var d=e[t];(!1===i||d.lat>i)&&(i=(s=d).lat),(!1===r||d.lat<r)&&(r=(a=d).lat),(!1===n||d.lng>n)&&(n=(l=d).lng),(!1===o||d.lng<o)&&(o=(c=d).lng)}return p=r!==i?(u=a,s):(u=c,l),[].concat(this.buildConvexHull([u,p],e),this.buildConvexHull([p,u],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),r=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),r.push(e);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 e,t=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,o=this._2PI/e,s=[];for(n=Math.max(n,35),s.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*o,s[i]=new L.Point(t.x+n*Math.cos(r),t.y+n*Math.sin(r))._round();return s},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,o=r*this._spiralFootSeparation,s=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(i=l.length=e;0<=i;i--)i<e&&(l[i]=new L.Point(t.x+n*Math.cos(a),t.y+n*Math.sin(a))._round()),n+=s/(a+=o/n+5e-4*i);return l},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,n=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=o.length-1;0<=t;t--)e=o[t],n.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(r.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,n,o,s=this._group,a=s._map,l=s._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=!0,i=0;i<e.length;i++)o=a.layerPointToLatLng(t[i]),r=e[i],n=new L.Polyline([this._latlng,o],c),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),s._ignoreMove=!1,s.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,n,o,s,a,l=this,c=this._group,p=c._map,u=c._featureGroup,d=this._latlng,h=p.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,i=0;i<e.length;i++)r=e[i],a=p.layerPointToLatLng(t[i]),n=new L.Polyline([d,a],m),p.addLayer(n),r._spiderLeg=n,f&&(s=(o=n._path).getTotalLength()+.1,o.style.strokeDasharray=s,o.style.strokeDashoffset=s),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(h);for(c._forceLayout(),c._animationStart(),i=e.length-1;0<=i;i--)a=p.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),f&&((o=(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:e})}),200)},_animationUnspiderfy:function(e){var t,i,r,n,o,s,a=this,l=this._group,c=l._map,p=l._featureGroup,u=e?c._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(t=d[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,s=!0,t._setPos&&(t._setPos(u),s=!1),t.clusterHide&&(t.clusterHide(),s=!1),s&&p.removeLayer(t),h&&(o=(n=(r=t._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=o,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var e=0;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&e++;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&p.removeLayer(t),c.removeLayer(t._spiderLeg),delete t._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:d})}),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(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:!0})}))}));function getTrekGeometry(e){return fetch("".concat(state.api,"trek/").concat(e,"/?language=").concat(state.language,"&published=true&fields=geometry"),{cache:"default"}).then((function(e){return e.json()}))}var grwMapCss='@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}';var GrwMap=function(){function e(e){registerInstance(this,e);this.trekCardPress=createEvent(this,"trekCardPress",7);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.touristicEventCardPress=createEvent(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}e.prototype.onCenterOnMap=function(e){this.map.setView(new leafletSrc.LatLng(e.detail.latitude,e.detail.longitude),17,{animate:false})};e.prototype.stepsIsInViewport=function(e){if(this.currentStepsLayer){this.handleLayerVisibility(e.detail,this.currentStepsLayer)}};e.prototype.descriptionIsInViewport=function(e){if(this.currentReferencePointsLayer){this.handleLayerVisibility(e.detail,this.currentReferencePointsLayer)}};e.prototype.parkingIsInViewport=function(e){if(this.currentParkingLayer){this.handleLayerVisibility(e.detail,this.currentParkingLayer)}};e.prototype.onInformationDesksIsInViewport=function(e){if(this.currentInformationDesksLayer){this.handleLayerVisibility(e.detail,this.currentInformationDesksLayer)}};e.prototype.sensitiveAreaIsInViewport=function(e){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(e.detail,this.currentSensitiveAreasLayer)}};e.prototype.poiIsInViewport=function(e){if(this.currentPoisLayer){this.handleLayerVisibility(e.detail,this.currentPoisLayer)}};e.prototype.touristicContentsIsInViewport=function(e){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(e.detail,this.currentToutisticContentsLayer)}};e.prototype.touristicEventsIsInViewport=function(e){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(e.detail,this.currentToutisticEventsLayer)}};e.prototype.onCardTrekMouseOver=function(e){if(!state.parentTrek&&(!state.selectedTrekId||state.selectedTrekId!==e.detail)){state.selectedTrekId=e.detail;this.hideTrekLine();this.showTrekLine(e.detail);this.addSelectedCurrentTrek(e.detail)}else if(state.parentTrek){this.stepPopupIsOpen=false;state.selectedStepId=null;this.addSelectedCurrentStep(e.detail)}};e.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&state.selectedTrekId){this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.currentStepsLayer){state.selectedStepId=null;this.removeSelectedCurrentStep()}};e.prototype.onTouristicContentMouseOver=function(e){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.addSelectedTouristicContent(e.detail)};e.prototype.onTouristicContentMouseLeave=function(){state.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};e.prototype.onTouristicEventMouseOver=function(e){this.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;this.addSelectedTouristicEvent(e.detail)};e.prototype.onTouristicEventMouseLeave=function(){state.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};e.prototype.componentDidLoad=function(){var e=this;this.map=leafletSrc.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});leafletSrc.control.scale({metric:true,imperial:false}).addTo(this.map);leafletSrc.control.locate({showPopup:false}).addTo(this.map);var t=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(e,t){return t===0?e:"http"+e}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){e.tileLayer.push({key:"".concat(t[n]),value:leafletSrc.tileLayer(i,{maxZoom:e.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].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=leafletSrc.control.layers(this.tileLayer.reduce((function(e,t){var i;return Object.assign(e,(i={},i[t.key]=t.value,i))}),{}),{},{collapsed:true}).addTo(this.map);leafletSrc.Control.Contract=leafletSrc.Control.extend({onAdd:function(){var t=leafletSrc.DomUtil.create("div");t.className="leaflet-bar leaflet-control";var i=t.appendChild(leafletSrc.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";t.onclick=function(t){e.bounds&&e.map.fitBounds(e.bounds);t.preventDefault()};return t}});leafletSrc.control.contract=function(e){return new leafletSrc.Control.Contract(e)};leafletSrc.control.contract({position:"topleft"}).addTo(this.map)}if(state.currentTrek){this.addTrek()}else if(state.currentTreks){this.addTreks()}else if(state.currentTouristicContent){this.addTouristicContent()}else if(state.currentTouristicEvent){this.addTouristicEvent()}else if(state.touristicContents){this.addTouristicContents()}else if(state.touristicEvents){this.addTouristicEvents()}onChange("currentTreks",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(state.currentTrek){e.removeTreks();e.addTrek()}else if(state.currentTreks){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvents();e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks(true)}}));onChange("currentTrek",(function(){if(state.currentTrek){e.removeTreks();e.addTrek()}else if(state.currentTreks){e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks()}}));onChange("currentTouristicContent",(function(){if(state.currentTouristicContent){e.removeTrek();e.removeTouristicContents();e.addTouristicContent()}else if(state.touristicContents){e.removeTouristicContent();e.addTouristicContents()}else if(state.currentTrek){e.removeTouristicContent();e.addTrek()}else if(state.currentTreks){e.removeTouristicContent();e.addTreks()}}));onChange("currentTouristicEvent",(function(){if(state.currentTouristicEvent){e.removeTrek();e.removeTouristicEvents();e.addTouristicEvent()}else if(state.currentTrek){e.removeTouristicEvent();e.addTrek()}else if(state.currentTreks){e.removeTouristicEvent();e.addTreks()}}));onChange("currentTouristicContents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(state.currentTouristicContent){e.removeTouristicContents();e.addTouristicContent()}else if(state.currentTouristicContents){e.removeTreks();e.removeTouristicEvents();e.removeTouristicContent();e.addTouristicContents(true)}}));onChange("currentTouristicEvents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(state.currentTouristicEvent){e.removeTouristicEvents();e.addTouristicEvent()}else if(state.currentTouristicEvents){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvent();e.addTouristicEvents(true)}}));onChange("mode",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(state.mode==="treks"){if(state.treks){e.removeTouristicContents();e.removeTouristicEvents();e.addTreks(true)}}else if(state.mode==="touristicContents"){if(state.touristicContents){e.removeTreks();e.removeTouristicEvents();e.addTouristicContents(true)}}else if(state.mode==="touristicEvents"){if(state.touristicEvents){e.removeTreks();e.removeTouristicContents();e.addTouristicEvents(true)}}}))};e.prototype.handleLayerVisibility=function(e,t){if(e&&!this.map.hasLayer(t)){t.addTo(this.map)}else if(this.map.hasLayer(t)&&!this.userLayersState[t._leaflet_id]){this.map.removeLayer(t)}this.handleLayersControlEvent()};e.prototype.addTreks=function(e){var t=this;if(e===void 0){e=false}var i;state.treksWithinBounds=state.currentTreks;var r=[];var n={type:"FeatureCollection",features:[]};if(state.currentTreks){var o=function(e){r.push(e.departure_geom);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(i=state.practices.find((function(t){return t.id===e.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var s=0,a=state.currentTreks;s<a.length;s++){var l=a[s];o(l)}}if(!this.treksLayer){if(r.length>0&&!state.currentMapBounds||e){this.bounds=leafletSrc.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.treksLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.practice?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return t.trekCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.hideTrekLine();t.showTrekLine(e.properties.id);t.addSelectedCurrentTrek(e.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return leafletSrc.divIcon({html:"<div>"+e.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(r.length>0){this.bounds=leafletSrc.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n);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)};e.prototype.removeTreks=function(){if(this.treksLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};e.prototype.handleTreksWithinBounds=function(){var e=this;if(state.currentTreks&&!state.currentMapBounds||state.currentTreks&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.treksWithinBounds=state.currentTreks.filter((function(t){return e.map.getBounds().contains(leafletSrc.latLng(t.departure_geom[1],t.departure_geom[0]))}))}};e.prototype.handleTouristicContentsWithinBounds=function(){var e=this;if(state.currentTouristicContents&&!state.currentMapBounds||state.currentTouristicContents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicContentsWithinBounds=state.currentTouristicContents.filter((function(t){return e.map.getBounds().contains(leafletSrc.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.handleTouristicEventsWithinBounds=function(){var e=this;if(state.currentTouristicEvents&&!state.currentMapBounds||state.currentTouristicEvents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicEventsWithinBounds=state.currentTouristicEvents.filter((function(t){return e.map.getBounds().contains(leafletSrc.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.addTrek=function(){var e=this;var t,i,r,n;this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();var o={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=leafletSrc.geoJSON(o,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){var s={type:"Feature",properties:{},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=leafletSrc.geoJSON(s,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false,interactive:false})}})}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){var a={type:"FeatureCollection",features:[]};for(var l=0,c=state.currentSensitiveAreas;l<c.length;l++){var p=c[l];a.features.push({type:"Feature",properties:{name:p.name},geometry:p.geometry})}this.currentSensitiveAreasLayer=leafletSrc.geoJSON(a,{onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="sensitive-area-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="sensitive-area-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))},style:function(){return{color:e.colorSensitiveArea}}})}if(state.currentPois&&state.currentPois.length>0){var u={type:"FeatureCollection",features:[]};var d=function(e){u.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=state.poiTypes.find((function(t){return t.id===e.type})))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})};for(var h=0,f=state.currentPois;h<f.length;h++){var m=f[h];d(m)}this.currentPoisLayer=leafletSrc.geoJSON(u,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type_pictogram?'<img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="poi-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="poi-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(state.trekTouristicContents&&state.trekTouristicContents.length>0){var g={type:"FeatureCollection",features:[]};var v=function(e){g.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(i=state.touristicContentCategories.find((function(t){return t.id===e.category})))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})};for(var y=0,w=state.trekTouristicContents;y<w.length;y++){var b=w[y];v(b)}this.currentToutisticContentsLayer=leafletSrc.geoJSON(g,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.category_pictogram?'<img crossorigin="anonymous "src='.concat(e.properties.category_pictogram," />"):"<img />",className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="touristic-content-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-content-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(state.touristicEvents&&state.touristicEvents.length>0){var _={type:"FeatureCollection",features:[]};var x=function(e){_.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(r=state.touristicEventTypes.find((function(t){return t.id===e.type})))===null||r===void 0?void 0:r.pictogram},geometry:e.geometry})};for(var k=0,A=state.touristicEvents;k<A.length;k++){var T=A[k];x(T)}this.currentToutisticEventsLayer=leafletSrc.geoJSON(_,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type_pictogram?'\n <img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="touristic-event-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-event-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(state.currentInformationDesks&&state.currentInformationDesks.length>0){var C={type:"FeatureCollection",features:[]};for(var L=0,S=state.currentInformationDesks.filter((function(e){return state.currentTrek.information_desks.includes(e.id)}));L<S.length;L++){var E=S[L];if(E.latitude&&E.longitude){C.features.push({type:"Feature",properties:{name:E.name,type_pictogram:E.type.pictogram},geometry:{type:"Point",coordinates:[Number(E.longitude),Number(E.latitude)]}})}}this.currentInformationDesksLayer=leafletSrc.geoJSON(C,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type_pictogram?'<img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=leafletSrc.DomUtil.create("div");i.className="information-desks-tooltip";var r=leafletSrc.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="information-desks-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(state.currentTrek.points_reference){var P={type:"FeatureCollection",features:[]};P.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});var M=0;this.currentReferencePointsLayer=leafletSrc.geoJSON(P,{pointToLayer:function(e,t){M+=1;return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:M,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){var O={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var I=function(e){O.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(n=state.practices.find((function(t){return t.id===e.practice})))===null||n===void 0?void 0:n.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var z=0,B=state.currentTrekSteps;z<B.length;z++){var D=B[z];I(D)}}var F=0;this.currentStepsLayer=leafletSrc.geoJSON(O,{pointToLayer:function(e,t){F+=1;return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(F,"</div></div>"),className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="trek-departure-popup";if(t.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=t.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="trek-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return e.trekCardPress.emit(t.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){e.addSelectedCurrentStep(t.properties.id,i.latlng)}))}})}var j={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!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=leafletSrc.control.elevation(Object.assign({},j)).addTo(this.map);var N=JSON.stringify({name:"".concat(state.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:state.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(N);var R={};if(this.currentStepsLayer){R[translate$1[state.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){R[translate$1[state.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){R[translate$1[state.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){R[translate$1[state.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){R[translate$1[state.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){R[translate$1[state.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){R[translate$1[state.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){R[translate$1[state.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(R).forEach((function(t){e.layersControl.addOverlay(R[t],t)}))}else{this.layersControl=leafletSrc.control.layers({},R,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=leafletSrc.latLngBounds(state.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.addSelectedCurrentTrek=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(state.currentTreks){var o=state.currentTreks.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.departure_geom},properties:{id:o.id,name:o.name,practice:(r=state.practices.find((function(e){return e.id===o.practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();state.selectedTrekId=e;this.selectedCurrentTrekLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:e.properties.practice?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"selected-trek-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return i.trekCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.trekPopupIsOpen){state.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}));t.on("popupopen",(function(){i.trekPopupIsOpen=Boolean(state.selectedTrekId)}));t.on("popupclose",(function(){if(state.selectedTrekId){i.trekPopupIsOpen=false;state.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentTrek=function(){state.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};e.prototype.addSelectedCurrentStep=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var o=state.currentTrekSteps.findIndex((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:state.currentTrekSteps[o].departure_geom},properties:{id:state.currentTrekSteps[o].id,name:state.currentTrekSteps[o].name,practice:(r=state.practices.find((function(e){return e.id===state.currentTrekSteps[o].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:state.currentTrekSteps[o].attachments&&state.currentTrekSteps[o].attachments.length>0&&state.currentTrekSteps[o].attachments[0].thumbnail,index:o+1}})}this.removeSelectedCurrentStep();state.selectedStepId=e;this.selectedCurrentStepLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(e.properties.index,"</div></div>"),className:"selected-step-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return i.trekCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.stepPopupIsOpen){state.selectedTrekId=null;i.removeSelectedCurrentStep()}}));t.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(state.selectedStepId)}));t.on("popupclose",(function(){if(state.selectedStepId){i.stepPopupIsOpen=false;state.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentStep=function(){if(state.selectedStepId){state.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};e.prototype.handleLayersControlEvent=function(){var e=this;var t=this.layersControl._layerControlInputs;t.forEach((function(t){if(e.layersControl._layers.find((function(e){return e.layer._leaflet_id===t.layerId})).overlay){t.onchange=function(i){e.userLayersState[t.layerId]=i.target.checked}}}))};e.prototype.removeTrek=function(){var e=this;if(this.layersControl){if(!this.layersControl._layers.some((function(e){return!e.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(e){return e.overlay})).forEach((function(t){e.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}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};e.prototype.showTrekLine=function(e){var t=this;getTrekGeometry(e).then((function(e){var i={type:"Feature",geometry:e.geometry,properties:{}};t.currentTrekLayer=leafletSrc.geoJSON(i,{style:function(){return{color:t.colorTrekLine}},interactive:false}).addTo(t.map)}))};e.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};e.prototype.addTouristicContent=function(){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.removeSelectedTouristicContent();var e={type:"FeatureCollection",features:[]};if(state.currentTouristicContent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicContent.geometry.coordinates},properties:{id:state.currentTouristicContent.id,name:state.currentTouristicContent.name,practice:state.touristicContentCategories.find((function(e){return e.id===state.currentTouristicContent.category})).pictogram}})}if(!this.currentToutisticContentLayer){this.currentToutisticContentLayer=leafletSrc.geoJSON(e,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.practice?'<div class="touristic-content-marker-container"><img crossorigin="anonymous "src='.concat(e.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([state.currentTouristicContent.geometry.coordinates[1],state.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};e.prototype.addTouristicContents=function(e){var t=this;if(e===void 0){e=false}state.touristicContentsWithinBounds=state.currentTouristicContents;var i=[];var r={type:"FeatureCollection",features:[]};if(state.currentTouristicContents){var n=function(e){i.push(e.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,practice:state.touristicContentCategories.find((function(t){return t.id===e.category})).pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var o=0,s=state.currentTouristicContents;o<s.length;o++){var a=s[o];n(a)}}if(!this.toutisticContentsLayer){if(i.length>0&&!state.currentMapBounds||e){this.bounds=leafletSrc.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.toutisticContentsLayer=leafletSrc.geoJSON(r,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.practice?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-content-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-content-button";s.onclick=function(){return t.touristicContentCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedTouristicContent(e.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return leafletSrc.divIcon({html:"<div>"+e.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=leafletSrc.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(r);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)};e.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};e.prototype.addTouristicEvent=function(){var e={type:"FeatureCollection",features:[]};if(state.currentTouristicEvent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicEvent.geometry.coordinates},properties:{id:state.currentTouristicEvent.id,name:state.currentTouristicEvent.name,type:state.touristicEventTypes.find((function(e){return e.id===state.currentTouristicEvent.type})).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=leafletSrc.geoJSON(e,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.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([state.currentTouristicEvent.geometry.coordinates[1],state.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};e.prototype.addSelectedTouristicContent=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(state.touristicContents){var o=state.touristicContents.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(r=state.touristicContentCategories.find((function(e){return e.id===o.category})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=e;this.selectedTouristicContentLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:e.properties.category?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.category," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-content-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-content-button";s.onclick=function(){return i.touristicContentCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}));t.on("popupopen",(function(){i.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));t.on("popupclose",(function(){if(state.selectedTouristicContentId){i.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}))}}).addTo(this.map)};e.prototype.removeSelectedTouristicContent=function(){state.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};e.prototype.addTouristicEvents=function(e){var t=this;if(e===void 0){e=false}var i;state.touristicEventsWithinBounds=state.currentTouristicEvents;var r=[];var n={type:"FeatureCollection",features:[]};if(state.currentTouristicEvents){var o=function(e){r.push(e.geometry.coordinates);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,type:(i=state.touristicEventTypes.find((function(t){return t.id===e.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var s=0,a=state.currentTouristicEvents;s<a.length;s++){var l=a[s];o(l)}}if(!this.toutisticEventsLayer){if(r.length>0&&!state.currentMapBounds||e){this.bounds=leafletSrc.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}this.toutisticEventsLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{icon:leafletSrc.divIcon({html:e.properties.type?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.type," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-event-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-event-button";s.onclick=function(){return t.touristicEventCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedTouristicEvent(e.properties.id,i.latlng)}))}});this.touristicEventsMarkerClusterGroup=leafletSrc.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return leafletSrc.divIcon({html:"<div>"+e.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(r.length>0){this.bounds=leafletSrc.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticEventsLayer.clearLayers();this.toutisticEventsLayer.addData(n);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)};e.prototype.removeTouristicEvents=function(){if(this.toutisticEventsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.toutisticEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};e.prototype.addSelectedTouristicEvent=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(state.touristicEvents){var o=state.touristicEvents.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(r=state.touristicEventTypes.find((function(e){return e.id===o.type})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();state.selectedTouristicEventId=e;this.selectedTouristicEventLayer=leafletSrc.geoJSON(n,{pointToLayer:function(e,t){return leafletSrc.marker(t,{zIndexOffset:4e6,icon:leafletSrc.divIcon({html:e.properties.category?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.category," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"selected-touristic-event-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=leafletSrc.DomUtil.create("div");r.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var n=leafletSrc.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=leafletSrc.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-event-name";r.appendChild(o);var s=leafletSrc.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-event-button";s.onclick=function(){return i.touristicEventCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.touristicEventPopupIsOpen){state.selectedTouristicEventId=null;i.removeSelectedTouristicEvent()}}));t.on("popupopen",(function(){i.touristicEventPopupIsOpen=Boolean(state.selectedTouristicEventId)}));t.on("popupclose",(function(){if(state.selectedTouristicEventId){i.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;i.removeSelectedTouristicEvent()}}))}}).addTo(this.map)};e.prototype.removeSelectedTouristicEvent=function(){state.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/layers.svg"));var i=getAssetPath("".concat("","assets/contract.svg"));return h(Host,{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(".concat(t,")"),"--contract-image-src":"url(".concat(i,")"),"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},h("div",{id:"map",style:{},class:state.currentTrek?"trek-map":"treks-map",ref:function(t){return e.mapRef=t}}),state.currentTrek&&h("div",null,h("div",{id:"elevation",ref:function(t){return e.elevationRef=t}}),h("div",{class:"map-bottom-space"})),!this.mapIsReady&&h("div",{class:"map-loader-container"},h("span",{class:"loader"})))};return e}();GrwMap.style=grwMapCss;function isObject$1(e){return e!==null&&typeof e==="object"&&"constructor"in e&&e.constructor===Object}function extend$1(e,t){if(e===void 0){e={}}if(t===void 0){t={}}Object.keys(t).forEach((function(i){if(typeof e[i]==="undefined")e[i]=t[i];else if(isObject$1(t[i])&&isObject$1(e[i])&&Object.keys(t[i]).length>0){extend$1(e[i],t[i])}}))}var ssrDocument={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){var e=typeof document!=="undefined"?document:{};extend$1(e,ssrDocument);return e}var ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function e(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){if(typeof setTimeout==="undefined"){e();return null}return setTimeout(e,0)},cancelAnimationFrame:function(e){if(typeof setTimeout==="undefined"){return}clearTimeout(e)}};function getWindow(){var e=typeof window!=="undefined"?window:{};extend$1(e,ssrWindow);return e}function deleteProps(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(i){}try{delete t[e]}catch(i){}}))}function nextTick(e,t){if(t===void 0){t=0}return setTimeout(e,t)}function now(){return Date.now()}function getComputedStyle$1(e){var t=getWindow();var i;if(t.getComputedStyle){i=t.getComputedStyle(e,null)}if(!i&&e.currentStyle){i=e.currentStyle}if(!i){i=e.style}return i}function getTranslate(e,t){if(t===void 0){t="x"}var i=getWindow();var r;var n;var o;var s=getComputedStyle$1(e);if(i.WebKitCSSMatrix){n=s.transform||s.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")}o=new i.WebKitCSSMatrix(n==="none"?"":n)}else{o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");r=o.toString().split(",")}if(t==="x"){if(i.WebKitCSSMatrix)n=o.m41;else if(r.length===16)n=parseFloat(r[12]);else n=parseFloat(r[4])}if(t==="y"){if(i.WebKitCSSMatrix)n=o.m42;else if(r.length===16)n=parseFloat(r[13]);else n=parseFloat(r[5])}return n||0}function isObject(e){return typeof e==="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function isNode(e){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return e instanceof HTMLElement}return e&&(e.nodeType===1||e.nodeType===11)}function extend(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var i=Object(e[0]);var r=["__proto__","constructor","prototype"];for(var n=1;n<e.length;n+=1){var o=e[n];if(o!==undefined&&o!==null&&!isNode(o)){var s=Object.keys(Object(o)).filter((function(e){return r.indexOf(e)<0}));for(var a=0,l=s.length;a<l;a+=1){var c=s[a];var p=Object.getOwnPropertyDescriptor(o,c);if(p!==undefined&&p.enumerable){if(isObject(i[c])&&isObject(o[c])){if(o[c].__swiper__){i[c]=o[c]}else{extend(i[c],o[c])}}else if(!isObject(i[c])&&isObject(o[c])){i[c]={};if(o[c].__swiper__){i[c]=o[c]}else{extend(i[c],o[c])}}else{i[c]=o[c]}}}}}return i}function setCSSProperty(e,t,i){e.style.setProperty(t,i)}function animateCSSModeScroll(e){var t=e.swiper,i=e.targetPosition,r=e.side;var n=getWindow();var o=-t.translate;var s=null;var a;var l=t.params.speed;t.wrapperEl.style.scrollSnapType="none";n.cancelAnimationFrame(t.cssModeFrameID);var c=i>o?"next":"prev";var p=function(e,t){return c==="next"&&e>=t||c==="prev"&&e<=t};var u=function(){var e;a=(new Date).getTime();if(s===null){s=a}var c=Math.max(Math.min((a-s)/l,1),0);var d=.5-Math.cos(c*Math.PI)/2;var h=o+d*(i-o);if(p(h,i)){h=i}t.wrapperEl.scrollTo((e={},e[r]=h,e));if(p(h,i)){t.wrapperEl.style.overflow="hidden";t.wrapperEl.style.scrollSnapType="";setTimeout((function(){var e;t.wrapperEl.style.overflow="";t.wrapperEl.scrollTo((e={},e[r]=h,e))}));n.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=n.requestAnimationFrame(u)};u()}function elementChildren(e,t){if(t===void 0){t=""}return __spreadArray([],e.children,true).filter((function(e){return e.matches(t)}))}function createElement(e,t){var i;if(t===void 0){t=[]}var r=document.createElement(e);(i=r.classList).add.apply(i,Array.isArray(t)?t:[t]);return r}function elementOffset(e){var t=getWindow();var i=getDocument();var r=e.getBoundingClientRect();var n=i.body;var o=e.clientTop||n.clientTop||0;var s=e.clientLeft||n.clientLeft||0;var a=e===t?t.scrollY:e.scrollTop;var l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+a-o,left:r.left+l-s}}function elementPrevAll(e,t){var i=[];while(e.previousElementSibling){var r=e.previousElementSibling;if(t){if(r.matches(t))i.push(r)}else i.push(r);e=r}return i}function elementNextAll(e,t){var i=[];while(e.nextElementSibling){var r=e.nextElementSibling;if(t){if(r.matches(t))i.push(r)}else i.push(r);e=r}return i}function elementStyle(e,t){var i=getWindow();return i.getComputedStyle(e,null).getPropertyValue(t)}function elementIndex(e){var t=e;var i;if(t){i=0;while((t=t.previousSibling)!==null){if(t.nodeType===1)i+=1}return i}return undefined}function elementParents(e,t){var i=[];var r=e.parentElement;while(r){if(t){if(r.matches(t))i.push(r)}else{i.push(r)}r=r.parentElement}return i}function elementTransitionEnd(e,t){function i(r){if(r.target!==e)return;t.call(e,r);e.removeEventListener("transitionend",i)}if(t){e.addEventListener("transitionend",i)}}function elementOuterSize(e,t,i){var r=getWindow();if(i){return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}return e.offsetWidth}var support;function calcSupport(){var e=getWindow();var t=getDocument();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function getSupport(){if(!support){support=calcSupport()}return support}var deviceCached;function calcDevice(e){var t=e===void 0?{}:e,i=t.userAgent;var r=getSupport();var n=getWindow();var o=n.navigator.platform;var s=i||n.navigator.userAgent;var a={ios:false,android:false};var l=n.screen.width;var c=n.screen.height;var p=s.match(/(Android);?[\s\/]+([\d.]+)?/);var u=s.match(/(iPad).*OS\s([\d_]+)/);var d=s.match(/(iPod)(.*OS\s([\d_]+))?/);var h=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/);var f=o==="Win32";var m=o==="MacIntel";var g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!u&&m&&r.touch&&g.indexOf("".concat(l,"x").concat(c))>=0){u=s.match(/(Version)\/([\d.]+)/);if(!u)u=[0,1,"13_0_0"];m=false}if(p&&!f){a.os="android";a.android=true}if(u||h||d){a.os="ios";a.ios=true}return a}function getDevice(e){if(e===void 0){e={}}if(!deviceCached){deviceCached=calcDevice(e)}return deviceCached}var browser;function calcBrowser(){var e=getWindow();var t=false;function i(){var t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){var r=String(e.navigator.userAgent);if(r.includes("Version/")){var n=r.split("Version/")[1].split(" ")[0].split(".").map((function(e){return Number(e)})),o=n[0],s=n[1];t=o<16||o===16&&s<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function getBrowser(){if(!browser){browser=calcBrowser()}return browser}function Resize(e){var t=e.swiper,i=e.on,r=e.emit;var n=getWindow();var o=null;var s=null;var a=function(){if(!t||t.destroyed||!t.initialized)return;r("beforeResize");r("resize")};var l=function(){if(!t||t.destroyed||!t.initialized)return;o=new ResizeObserver((function(e){s=n.requestAnimationFrame((function(){var i=t.width,r=t.height;var n=i;var o=r;e.forEach((function(e){var i=e.contentBoxSize,r=e.contentRect,s=e.target;if(s&&s!==t.el)return;n=r?r.width:(i[0]||i).inlineSize;o=r?r.height:(i[0]||i).blockSize}));if(n!==i||o!==r){a()}}))}));o.observe(t.el)};var c=function(){if(s){n.cancelAnimationFrame(s)}if(o&&o.unobserve&&t.el){o.unobserve(t.el);o=null}};var p=function(){if(!t||t.destroyed||!t.initialized)return;r("orientationchange")};i("init",(function(){if(t.params.resizeObserver&&typeof n.ResizeObserver!=="undefined"){l();return}n.addEventListener("resize",a);n.addEventListener("orientationchange",p)}));i("destroy",(function(){c();n.removeEventListener("resize",a);n.removeEventListener("orientationchange",p)}))}function Observer(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=[];var s=getWindow();var a=function(e,i){if(i===void 0){i={}}var r=s.MutationObserver||s.WebkitMutationObserver;var a=new r((function(e){if(t.__preventObserver__)return;if(e.length===1){n("observerUpdate",e[0]);return}var i=function t(){n("observerUpdate",e[0])};if(s.requestAnimationFrame){s.requestAnimationFrame(i)}else{s.setTimeout(i,0)}}));a.observe(e,{attributes:typeof i.attributes==="undefined"?true:i.attributes,childList:typeof i.childList==="undefined"?true:i.childList,characterData:typeof i.characterData==="undefined"?true:i.characterData});o.push(a)};var l=function(){if(!t.params.observer)return;if(t.params.observeParents){var e=elementParents(t.el);for(var i=0;i<e.length;i+=1){a(e[i])}}a(t.el,{childList:t.params.observeSlideChildren});a(t.wrapperEl,{attributes:false})};var c=function(){o.forEach((function(e){e.disconnect()}));o.splice(0,o.length)};i({observer:false,observeParents:false,observeSlideChildren:false});r("init",l);r("destroy",c)}var eventsEmitter={on:function(e,t,i){var r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof t!=="function")return r;var n=i?"unshift":"push";e.split(" ").forEach((function(e){if(!r.eventsListeners[e])r.eventsListeners[e]=[];r.eventsListeners[e][n](t)}));return r},once:function(e,t,i){var r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof t!=="function")return r;function n(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}r.off(e,n);if(n.__emitterProxy){delete n.__emitterProxy}t.apply(r,i)}n.__emitterProxy=t;return r.on(e,n,i)},onAny:function(e,t){var i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof e!=="function")return i;var r=t?"unshift":"push";if(i.eventsAnyListeners.indexOf(e)<0){i.eventsAnyListeners[r](e)}return i},offAny:function(e){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;var i=t.eventsAnyListeners.indexOf(e);if(i>=0){t.eventsAnyListeners.splice(i,1)}return t},off:function(e,t){var i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;e.split(" ").forEach((function(e){if(typeof t==="undefined"){i.eventsListeners[e]=[]}else if(i.eventsListeners[e]){i.eventsListeners[e].forEach((function(r,n){if(r===t||r.__emitterProxy&&r.__emitterProxy===t){i.eventsListeners[e].splice(n,1)}}))}}));return i},emit:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;var r;var n;var o;if(typeof e[0]==="string"||Array.isArray(e[0])){r=e[0];n=e.slice(1,e.length);o=i}else{r=e[0].events;n=e[0].data;o=e[0].context||i}n.unshift(o);var s=Array.isArray(r)?r:r.split(" ");s.forEach((function(e){if(i.eventsAnyListeners&&i.eventsAnyListeners.length){i.eventsAnyListeners.forEach((function(t){t.apply(o,__spreadArray([e],n,true))}))}if(i.eventsListeners&&i.eventsListeners[e]){i.eventsListeners[e].forEach((function(e){e.apply(o,n)}))}}));return i}};function updateSize(){var e=this;var t;var i;var r=e.el;if(typeof e.params.width!=="undefined"&&e.params.width!==null){t=e.params.width}else{t=r.clientWidth}if(typeof e.params.height!=="undefined"&&e.params.height!==null){i=e.params.height}else{i=r.clientHeight}if(t===0&&e.isHorizontal()||i===0&&e.isVertical()){return}t=t-parseInt(elementStyle(r,"padding-left")||0,10)-parseInt(elementStyle(r,"padding-right")||0,10);i=i-parseInt(elementStyle(r,"padding-top")||0,10)-parseInt(elementStyle(r,"padding-bottom")||0,10);if(Number.isNaN(t))t=0;if(Number.isNaN(i))i=0;Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i})}function updateSlides(){var e=this;function t(t){if(e.isHorizontal()){return t}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"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}var r=e.params;var n=e.wrapperEl,o=e.slidesEl,s=e.size,a=e.rtlTranslate,l=e.wrongRTL;var c=e.virtual&&r.virtual.enabled;var p=c?e.virtual.slides.length:e.slides.length;var u=elementChildren(o,".".concat(e.params.slideClass,", swiper-slide"));var d=c?e.virtual.slides.length:u.length;var h=[];var f=[];var m=[];var g=r.slidesOffsetBefore;if(typeof g==="function"){g=r.slidesOffsetBefore.call(e)}var v=r.slidesOffsetAfter;if(typeof v==="function"){v=r.slidesOffsetAfter.call(e)}var y=e.snapGrid.length;var w=e.slidesGrid.length;var b=r.spaceBetween;var _=-g;var x=0;var k=0;if(typeof s==="undefined"){return}if(typeof b==="string"&&b.indexOf("%")>=0){b=parseFloat(b.replace("%",""))/100*s}else if(typeof b==="string"){b=parseFloat(b)}e.virtualSize=-b;u.forEach((function(e){if(a){e.style.marginLeft=""}else{e.style.marginRight=""}e.style.marginBottom="";e.style.marginTop=""}));if(r.centeredSlides&&r.cssMode){setCSSProperty(n,"--swiper-centered-offset-before","");setCSSProperty(n,"--swiper-centered-offset-after","")}var A=r.grid&&r.grid.rows>1&&e.grid;if(A){e.grid.initSlides(d)}var T;var C=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter((function(e){return typeof r.breakpoints[e].slidesPerView!=="undefined"})).length>0;for(var L=0;L<d;L+=1){T=0;var S=void 0;if(u[L])S=u[L];if(A){e.grid.updateSlide(L,S,d,t)}if(u[L]&&elementStyle(S,"display")==="none")continue;if(r.slidesPerView==="auto"){if(C){u[L].style[t("width")]=""}var E=getComputedStyle(S);var P=S.style.transform;var M=S.style.webkitTransform;if(P){S.style.transform="none"}if(M){S.style.webkitTransform="none"}if(r.roundLengths){T=e.isHorizontal()?elementOuterSize(S,"width",true):elementOuterSize(S,"height",true)}else{var O=i(E,"width");var I=i(E,"padding-left");var z=i(E,"padding-right");var B=i(E,"margin-left");var D=i(E,"margin-right");var F=E.getPropertyValue("box-sizing");if(F&&F==="border-box"){T=O+B+D}else{var j=S.clientWidth,N=S.offsetWidth;T=O+I+z+B+D+(N-j)}}if(P){S.style.transform=P}if(M){S.style.webkitTransform=M}if(r.roundLengths)T=Math.floor(T)}else{T=(s-(r.slidesPerView-1)*b)/r.slidesPerView;if(r.roundLengths)T=Math.floor(T);if(u[L]){u[L].style[t("width")]="".concat(T,"px")}}if(u[L]){u[L].swiperSlideSize=T}m.push(T);if(r.centeredSlides){_=_+T/2+x/2+b;if(x===0&&L!==0)_=_-s/2-b;if(L===0)_=_-s/2-b;if(Math.abs(_)<1/1e3)_=0;if(r.roundLengths)_=Math.floor(_);if(k%r.slidesPerGroup===0)h.push(_);f.push(_)}else{if(r.roundLengths)_=Math.floor(_);if((k-Math.min(e.params.slidesPerGroupSkip,k))%e.params.slidesPerGroup===0)h.push(_);f.push(_);_=_+T+b}e.virtualSize+=T+b;x=T;k+=1}e.virtualSize=Math.max(e.virtualSize,s)+v;if(a&&l&&(r.effect==="slide"||r.effect==="coverflow")){n.style.width="".concat(e.virtualSize+b,"px")}if(r.setWrapperSize){n.style[t("width")]="".concat(e.virtualSize+b,"px")}if(A){e.grid.updateWrapperSize(T,h,t)}if(!r.centeredSlides){var R=[];for(var L=0;L<h.length;L+=1){var G=h[L];if(r.roundLengths)G=Math.floor(G);if(h[L]<=e.virtualSize-s){R.push(G)}}h=R;if(Math.floor(e.virtualSize-s)-Math.floor(h[h.length-1])>1){h.push(e.virtualSize-s)}}if(c&&r.loop){var Z=m[0]+b;if(r.slidesPerGroup>1){var H=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup);var V=Z*r.slidesPerGroup;for(var L=0;L<H;L+=1){h.push(h[h.length-1]+V)}}for(var L=0;L<e.virtual.slidesBefore+e.virtual.slidesAfter;L+=1){if(r.slidesPerGroup===1){h.push(h[h.length-1]+Z)}f.push(f[f.length-1]+Z);e.virtualSize+=Z}}if(h.length===0)h=[0];if(b!==0){var Y=e.isHorizontal()&&a?"marginLeft":t("marginRight");u.filter((function(e,t){if(!r.cssMode||r.loop)return true;if(t===u.length-1){return false}return true})).forEach((function(e){e.style[Y]="".concat(b,"px")}))}if(r.centeredSlides&&r.centeredSlidesBounds){var U=0;m.forEach((function(e){U+=e+(b||0)}));U-=b;var W=U-s;h=h.map((function(e){if(e<=0)return-g;if(e>W)return W+v;return e}))}if(r.centerInsufficientSlides){var $=0;m.forEach((function(e){$+=e+(b||0)}));$-=b;if($<s){var q=(s-$)/2;h.forEach((function(e,t){h[t]=e-q}));f.forEach((function(e,t){f[t]=e+q}))}}Object.assign(e,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:m});if(r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){setCSSProperty(n,"--swiper-centered-offset-before","".concat(-h[0],"px"));setCSSProperty(n,"--swiper-centered-offset-after","".concat(e.size/2-m[m.length-1]/2,"px"));var K=-e.snapGrid[0];var Q=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((function(e){return e+K}));e.slidesGrid=e.slidesGrid.map((function(e){return e+Q}))}if(d!==p){e.emit("slidesLengthChange")}if(h.length!==y){if(e.params.watchOverflow)e.checkOverflow();e.emit("snapGridLengthChange")}if(f.length!==w){e.emit("slidesGridLengthChange")}if(r.watchSlidesProgress){e.updateSlidesOffset()}if(!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){var X="".concat(r.containerModifierClass,"backface-hidden");var J=e.el.classList.contains(X);if(d<=r.maxBackfaceHiddenSlides){if(!J)e.el.classList.add(X)}else if(J){e.el.classList.remove(X)}}}function updateAutoHeight(e){var t=this;var i=[];var r=t.virtual&&t.params.virtual.enabled;var n=0;var o;if(typeof e==="number"){t.setTransition(e)}else if(e===true){t.setTransition(t.params.speed)}var s=function(e){if(r){return t.slides[t.getSlideIndexByData(e)]}return t.slides[e]};if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1){if(t.params.centeredSlides){(t.visibleSlides||[]).forEach((function(e){i.push(e)}))}else{for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){var a=t.activeIndex+o;if(a>t.slides.length&&!r)break;i.push(s(a))}}}else{i.push(s(t.activeIndex))}for(o=0;o<i.length;o+=1){if(typeof i[o]!=="undefined"){var l=i[o].offsetHeight;n=l>n?l:n}}if(n||n===0)t.wrapperEl.style.height="".concat(n,"px")}function updateSlidesOffset(){var e=this;var t=e.slides;var i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(var r=0;r<t.length;r+=1){t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-i-e.cssOverflowAdjustment()}}function updateSlidesProgress(e){if(e===void 0){e=this&&this.translate||0}var t=this;var i=t.params;var r=t.slides,n=t.rtlTranslate,o=t.snapGrid;if(r.length===0)return;if(typeof r[0].swiperSlideOffset==="undefined")t.updateSlidesOffset();var s=-e;if(n)s=e;r.forEach((function(e){e.classList.remove(i.slideVisibleClass)}));t.visibleSlidesIndexes=[];t.visibleSlides=[];var a=i.spaceBetween;if(typeof a==="string"&&a.indexOf("%")>=0){a=parseFloat(a.replace("%",""))/100*t.size}else if(typeof a==="string"){a=parseFloat(a)}for(var l=0;l<r.length;l+=1){var c=r[l];var p=c.swiperSlideOffset;if(i.cssMode&&i.centeredSlides){p-=r[0].swiperSlideOffset}var u=(s+(i.centeredSlides?t.minTranslate():0)-p)/(c.swiperSlideSize+a);var d=(s-o[0]+(i.centeredSlides?t.minTranslate():0)-p)/(c.swiperSlideSize+a);var h=-(s-p);var f=h+t.slidesSizesGrid[l];var m=h>=0&&h<t.size-1||f>1&&f<=t.size||h<=0&&f>=t.size;if(m){t.visibleSlides.push(c);t.visibleSlidesIndexes.push(l);r[l].classList.add(i.slideVisibleClass)}c.progress=n?-u:u;c.originalProgress=n?-d:d}}function updateProgress(e){var t=this;if(typeof e==="undefined"){var i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}var r=t.params;var n=t.maxTranslate()-t.minTranslate();var o=t.progress,s=t.isBeginning,a=t.isEnd,l=t.progressLoop;var c=s;var p=a;if(n===0){o=0;s=true;a=true}else{o=(e-t.minTranslate())/n;var u=Math.abs(e-t.minTranslate())<1;var d=Math.abs(e-t.maxTranslate())<1;s=u||o<=0;a=d||o>=1;if(u)o=0;if(d)o=1}if(r.loop){var h=t.getSlideIndexByData(0);var f=t.getSlideIndexByData(t.slides.length-1);var m=t.slidesGrid[h];var g=t.slidesGrid[f];var v=t.slidesGrid[t.slidesGrid.length-1];var y=Math.abs(e);if(y>=m){l=(y-m)/v}else{l=(y+v-g)/v}if(l>1)l-=1}Object.assign(t,{progress:o,progressLoop:l,isBeginning:s,isEnd:a});if(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)t.updateSlidesProgress(e);if(s&&!c){t.emit("reachBeginning toEdge")}if(a&&!p){t.emit("reachEnd toEdge")}if(c&&!s||p&&!a){t.emit("fromEdge")}t.emit("progress",o)}function updateSlidesClasses(){var e=this;var t=e.slides,i=e.params,r=e.slidesEl,n=e.activeIndex;var o=e.virtual&&i.virtual.enabled;var s=function(e){return elementChildren(r,".".concat(i.slideClass).concat(e,", swiper-slide").concat(e))[0]};t.forEach((function(e){e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)}));var a;if(o){if(i.loop){var l=n-e.virtual.slidesBefore;if(l<0)l=e.virtual.slides.length+l;if(l>=e.virtual.slides.length)l-=e.virtual.slides.length;a=s('[data-swiper-slide-index="'.concat(l,'"]'))}else{a=s('[data-swiper-slide-index="'.concat(n,'"]'))}}else{a=t[n]}if(a){a.classList.add(i.slideActiveClass);var c=elementNextAll(a,".".concat(i.slideClass,", swiper-slide"))[0];if(i.loop&&!c){c=t[0]}if(c){c.classList.add(i.slideNextClass)}var p=elementPrevAll(a,".".concat(i.slideClass,", swiper-slide"))[0];if(i.loop&&!p===0){p=t[t.length-1]}if(p){p.classList.add(i.slidePrevClass)}}e.emitSlidesClasses()}var processLazyPreloader=function(e,t){if(!e||e.destroyed||!e.params)return;var i=function(){return e.isElement?"swiper-slide":".".concat(e.params.slideClass)};var r=t.closest(i());if(r){var n=r.querySelector(".".concat(e.params.lazyPreloaderClass));if(n)n.remove()}};var unlazy=function(e,t){if(!e.slides[t])return;var i=e.slides[t].querySelector('[loading="lazy"]');if(i)i.removeAttribute("loading")};var preload=function(e){if(!e||e.destroyed||!e.params)return;var t=e.params.lazyPreloadPrevNext;var i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);var r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView);var n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){var o=n;var s=[o-t];s.push.apply(s,Array.from({length:t}).map((function(e,t){return o+r+t})));e.slides.forEach((function(t,i){if(s.includes(t.column))unlazy(e,i)}));return}var a=n+r-1;if(e.params.rewind||e.params.loop){for(var l=n-t;l<=a+t;l+=1){var c=(l%i+i)%i;if(c<n||c>a)unlazy(e,c)}}else{for(var l=Math.max(n-t,0);l<=Math.min(a+t,i-1);l+=1){if(l!==n&&(l>a||l<n)){unlazy(e,l)}}}};function getActiveIndexByTranslate(e){var t=e.slidesGrid,i=e.params;var r=e.rtlTranslate?e.translate:-e.translate;var n;for(var o=0;o<t.length;o+=1){if(typeof t[o+1]!=="undefined"){if(r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2){n=o}else if(r>=t[o]&&r<t[o+1]){n=o+1}}else if(r>=t[o]){n=o}}if(i.normalizeSlideIndex){if(n<0||typeof n==="undefined")n=0}return n}function updateActiveIndex(e){var t=this;var i=t.rtlTranslate?t.translate:-t.translate;var r=t.snapGrid,n=t.params,o=t.activeIndex,s=t.realIndex,a=t.snapIndex;var l=e;var c;var p=function(e){var i=e-t.virtual.slidesBefore;if(i<0){i=t.virtual.slides.length+i}if(i>=t.virtual.slides.length){i-=t.virtual.slides.length}return i};if(typeof l==="undefined"){l=getActiveIndexByTranslate(t)}if(r.indexOf(i)>=0){c=r.indexOf(i)}else{var u=Math.min(n.slidesPerGroupSkip,l);c=u+Math.floor((l-u)/n.slidesPerGroup)}if(c>=r.length)c=r.length-1;if(l===o){if(c!==a){t.snapIndex=c;t.emit("snapIndexChange")}if(t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=p(l)}return}var d;if(t.virtual&&n.virtual.enabled&&n.loop){d=p(l)}else if(t.slides[l]){d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10)}else{d=l}Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:s,realIndex:d,previousIndex:o,activeIndex:l});if(t.initialized){preload(t)}t.emit("activeIndexChange");t.emit("snapIndexChange");if(s!==d){t.emit("realIndexChange")}if(t.initialized||t.params.runCallbacksOnInit){t.emit("slideChange")}}function updateClickedSlide(e){var t=this;var i=t.params;var r=e.closest(".".concat(i.slideClass,", swiper-slide"));var n=false;var o;if(r){for(var s=0;s<t.slides.length;s+=1){if(t.slides[s]===r){n=true;o=s;break}}}if(r&&n){t.clickedSlide=r;if(t.virtual&&t.params.virtual.enabled){t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10)}else{t.clickedIndex=o}}else{t.clickedSlide=undefined;t.clickedIndex=undefined;return}if(i.slideToClickedSlide&&t.clickedIndex!==undefined&&t.clickedIndex!==t.activeIndex){t.slideToClickedSlide()}}var update={updateSize:updateSize,updateSlides:updateSlides,updateAutoHeight:updateAutoHeight,updateSlidesOffset:updateSlidesOffset,updateSlidesProgress:updateSlidesProgress,updateProgress:updateProgress,updateSlidesClasses:updateSlidesClasses,updateActiveIndex:updateActiveIndex,updateClickedSlide:updateClickedSlide};function getSwiperTranslate(e){if(e===void 0){e=this.isHorizontal()?"x":"y"}var t=this;var i=t.params,r=t.rtlTranslate,n=t.translate,o=t.wrapperEl;if(i.virtualTranslate){return r?-n:n}if(i.cssMode){return n}var s=getTranslate(o,e);s+=t.cssOverflowAdjustment();if(r)s=-s;return s||0}function setTranslate(e,t){var i=this;var r=i.rtlTranslate,n=i.params,o=i.wrapperEl,s=i.progress;var a=0;var l=0;var c=0;if(i.isHorizontal()){a=r?-e:e}else{l=e}if(n.roundLengths){a=Math.floor(a);l=Math.floor(l)}i.previousTranslate=i.translate;i.translate=i.isHorizontal()?a:l;if(n.cssMode){o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-a:-l}else if(!n.virtualTranslate){if(i.isHorizontal()){a-=i.cssOverflowAdjustment()}else{l-=i.cssOverflowAdjustment()}o.style.transform="translate3d(".concat(a,"px, ").concat(l,"px, ").concat(c,"px)")}var p;var u=i.maxTranslate()-i.minTranslate();if(u===0){p=0}else{p=(e-i.minTranslate())/u}if(p!==s){i.updateProgress(e)}i.emit("setTranslate",i.translate,t)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(e,t,i,r,n){var o;if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(r===void 0){r=true}var s=this;var a=s.params,l=s.wrapperEl;if(s.animating&&a.preventInteractionOnTransition){return false}var c=s.minTranslate();var p=s.maxTranslate();var u;if(r&&e>c)u=c;else if(r&&e<p)u=p;else u=e;s.updateProgress(u);if(a.cssMode){var d=s.isHorizontal();if(t===0){l[d?"scrollLeft":"scrollTop"]=-u}else{if(!s.support.smoothScroll){animateCSSModeScroll({swiper:s,targetPosition:-u,side:d?"left":"top"});return true}l.scrollTo((o={},o[d?"left":"top"]=-u,o.behavior="smooth",o))}return true}if(t===0){s.setTransition(0);s.setTranslate(u);if(i){s.emit("beforeTransitionStart",t,n);s.emit("transitionEnd")}}else{s.setTransition(t);s.setTranslate(u);if(i){s.emit("beforeTransitionStart",t,n);s.emit("transitionStart")}if(!s.animating){s.animating=true;if(!s.onTranslateToWrapperTransitionEnd){s.onTranslateToWrapperTransitionEnd=function e(t){if(!s||s.destroyed)return;if(t.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd);s.onTranslateToWrapperTransitionEnd=null;delete s.onTranslateToWrapperTransitionEnd;if(i){s.emit("transitionEnd")}}}s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd)}}return true}var translate={getTranslate:getSwiperTranslate,setTranslate:setTranslate,minTranslate:minTranslate,maxTranslate:maxTranslate,translateTo:translateTo};function setTransition(e,t){var i=this;if(!i.params.cssMode){i.wrapperEl.style.transitionDuration="".concat(e,"ms")}i.emit("setTransition",e,t)}function transitionEmit(e){var t=e.swiper,i=e.runCallbacks,r=e.direction,n=e.step;var o=t.activeIndex,s=t.previousIndex;var a=r;if(!a){if(o>s)a="next";else if(o<s)a="prev";else a="reset"}t.emit("transition".concat(n));if(i&&o!==s){if(a==="reset"){t.emit("slideResetTransition".concat(n));return}t.emit("slideChangeTransition".concat(n));if(a==="next"){t.emit("slideNextTransition".concat(n))}else{t.emit("slidePrevTransition".concat(n))}}}function transitionStart(e,t){if(e===void 0){e=true}var i=this;var r=i.params;if(r.cssMode)return;if(r.autoHeight){i.updateAutoHeight()}transitionEmit({swiper:i,runCallbacks:e,direction:t,step:"Start"})}function transitionEnd(e,t){if(e===void 0){e=true}var i=this;var r=i.params;i.animating=false;if(r.cssMode)return;i.setTransition(0);transitionEmit({swiper:i,runCallbacks:e,direction:t,step:"End"})}var transition={setTransition:setTransition,transitionStart:transitionStart,transitionEnd:transitionEnd};function slideTo(e,t,i,r,n){var o;if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(typeof e==="string"){e=parseInt(e,10)}var s=this;var a=e;if(a<0)a=0;var l=s.params,c=s.snapGrid,p=s.slidesGrid,u=s.previousIndex,d=s.activeIndex,h=s.rtlTranslate,f=s.wrapperEl,m=s.enabled;if(s.animating&&l.preventInteractionOnTransition||!m&&!r&&!n){return false}var g=Math.min(s.params.slidesPerGroupSkip,a);var v=g+Math.floor((a-g)/s.params.slidesPerGroup);if(v>=c.length)v=c.length-1;var y=-c[v];if(l.normalizeSlideIndex){for(var w=0;w<p.length;w+=1){var b=-Math.floor(y*100);var _=Math.floor(p[w]*100);var x=Math.floor(p[w+1]*100);if(typeof p[w+1]!=="undefined"){if(b>=_&&b<x-(x-_)/2){a=w}else if(b>=_&&b<x){a=w+1}}else if(b>=_){a=w}}}if(s.initialized&&a!==d){if(!s.allowSlideNext&&(h?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())){return false}if(!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()){if((d||0)!==a){return false}}}if(a!==(u||0)&&i){s.emit("beforeSlideChangeStart")}s.updateProgress(y);var k;if(a>d)k="next";else if(a<d)k="prev";else k="reset";if(h&&-y===s.translate||!h&&y===s.translate){s.updateActiveIndex(a);if(l.autoHeight){s.updateAutoHeight()}s.updateSlidesClasses();if(l.effect!=="slide"){s.setTranslate(y)}if(k!=="reset"){s.transitionStart(i,k);s.transitionEnd(i,k)}return false}if(l.cssMode){var A=s.isHorizontal();var T=h?y:-y;if(t===0){var C=s.virtual&&s.params.virtual.enabled;if(C){s.wrapperEl.style.scrollSnapType="none";s._immediateVirtual=true}if(C&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0){s._cssModeVirtualInitialSet=true;requestAnimationFrame((function(){f[A?"scrollLeft":"scrollTop"]=T}))}else{f[A?"scrollLeft":"scrollTop"]=T}if(C){requestAnimationFrame((function(){s.wrapperEl.style.scrollSnapType="";s._immediateVirtual=false}))}}else{if(!s.support.smoothScroll){animateCSSModeScroll({swiper:s,targetPosition:T,side:A?"left":"top"});return true}f.scrollTo((o={},o[A?"left":"top"]=T,o.behavior="smooth",o))}return true}s.setTransition(t);s.setTranslate(y);s.updateActiveIndex(a);s.updateSlidesClasses();s.emit("beforeTransitionStart",t,r);s.transitionStart(i,k);if(t===0){s.transitionEnd(i,k)}else if(!s.animating){s.animating=true;if(!s.onSlideToWrapperTransitionEnd){s.onSlideToWrapperTransitionEnd=function e(t){if(!s||s.destroyed)return;if(t.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd);s.onSlideToWrapperTransitionEnd=null;delete s.onSlideToWrapperTransitionEnd;s.transitionEnd(i,k)}}s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)}return true}function slideToLoop(e,t,i,r){if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(typeof e==="string"){var n=parseInt(e,10);e=n}var o=this;var s=e;if(o.params.loop){if(o.virtual&&o.params.virtual.enabled){s=s+o.virtual.slidesBefore}else{s=o.getSlideIndexByData(s)}}return o.slideTo(s,t,i,r)}function slideNext(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;var n=r.enabled,o=r.params,s=r.animating;if(!n)return r;var a=o.slidesPerGroup;if(o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto){a=Math.max(r.slidesPerViewDynamic("current",true),1)}var l=r.activeIndex<o.slidesPerGroupSkip?1:a;var c=r.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return false;r.loopFix({direction:"next"});r._clientLeft=r.wrapperEl.clientLeft}if(o.rewind&&r.isEnd){return r.slideTo(0,e,t,i)}return r.slideTo(r.activeIndex+l,e,t,i)}function slidePrev(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;var n=r.params,o=r.snapGrid,s=r.slidesGrid,a=r.rtlTranslate,l=r.enabled,c=r.animating;if(!l)return r;var p=r.virtual&&n.virtual.enabled;if(n.loop){if(c&&!p&&n.loopPreventsSliding)return false;r.loopFix({direction:"prev"});r._clientLeft=r.wrapperEl.clientLeft}var u=a?r.translate:-r.translate;function d(e){if(e<0)return-Math.floor(Math.abs(e));return Math.floor(e)}var h=d(u);var f=o.map((function(e){return d(e)}));var m=o[f.indexOf(h)-1];if(typeof m==="undefined"&&n.cssMode){var g;o.forEach((function(e,t){if(h>=e){g=t}}));if(typeof g!=="undefined"){m=o[g>0?g-1:g]}}var v=0;if(typeof m!=="undefined"){v=s.indexOf(m);if(v<0)v=r.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){v=v-r.slidesPerViewDynamic("previous",true)+1;v=Math.max(v,0)}}if(n.rewind&&r.isBeginning){var y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,i)}return r.slideTo(v,e,t,i)}function slideReset(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;return r.slideTo(r.activeIndex,e,t,i)}function slideToClosest(e,t,i,r){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}if(r===void 0){r=.5}var n=this;var o=n.activeIndex;var s=Math.min(n.params.slidesPerGroupSkip,o);var a=s+Math.floor((o-s)/n.params.slidesPerGroup);var l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){var c=n.snapGrid[a];var p=n.snapGrid[a+1];if(l-c>(p-c)*r){o+=n.params.slidesPerGroup}}else{var u=n.snapGrid[a-1];var c=n.snapGrid[a];if(l-u<=(c-u)*r){o-=n.params.slidesPerGroup}}o=Math.max(o,0);o=Math.min(o,n.slidesGrid.length-1);return n.slideTo(o,e,t,i)}function slideToClickedSlide(){var e=this;var t=e.params,i=e.slidesEl;var r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;var n=e.clickedIndex;var o;var s=e.isElement?"swiper-slide":".".concat(t.slideClass);if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(t.centeredSlides){if(n<e.loopedSlides-r/2||n>e.slides.length-e.loopedSlides+r/2){e.loopFix();n=e.getSlideIndex(elementChildren(i,"".concat(s,'[data-swiper-slide-index="').concat(o,'"]'))[0]);nextTick((function(){e.slideTo(n)}))}else{e.slideTo(n)}}else if(n>e.slides.length-r){e.loopFix();n=e.getSlideIndex(elementChildren(i,"".concat(s,'[data-swiper-slide-index="').concat(o,'"]'))[0]);nextTick((function(){e.slideTo(n)}))}else{e.slideTo(n)}}else{e.slideTo(n)}}var slide={slideTo:slideTo,slideToLoop:slideToLoop,slideNext:slideNext,slidePrev:slidePrev,slideReset:slideReset,slideToClosest:slideToClosest,slideToClickedSlide:slideToClickedSlide};function loopCreate(e){var t=this;var i=t.params,r=t.slidesEl;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;var n=elementChildren(r,".".concat(i.slideClass,", swiper-slide"));n.forEach((function(e,t){e.setAttribute("data-swiper-slide-index",t)}));t.loopFix({slideRealIndex:e,direction:i.centeredSlides?undefined:"next"})}function loopFix(e){var t=e===void 0?{}:e,i=t.slideRealIndex,r=t.slideTo,n=r===void 0?true:r,o=t.direction,s=t.setTranslate,a=t.activeSlideIndex,l=t.byController,c=t.byMousewheel;var p=this;if(!p.params.loop)return;p.emit("beforeLoopFix");var u=p.slides,d=p.allowSlidePrev,h=p.allowSlideNext,f=p.slidesEl,m=p.params;p.allowSlidePrev=true;p.allowSlideNext=true;if(p.virtual&&m.virtual.enabled){if(n){if(!m.centeredSlides&&p.snapIndex===0){p.slideTo(p.virtual.slides.length,0,false,true)}else if(m.centeredSlides&&p.snapIndex<m.slidesPerView){p.slideTo(p.virtual.slides.length+p.snapIndex,0,false,true)}else if(p.snapIndex===p.snapGrid.length-1){p.slideTo(p.virtual.slidesBefore,0,false,true)}}p.allowSlidePrev=d;p.allowSlideNext=h;p.emit("loopFix");return}var g=m.slidesPerView==="auto"?p.slidesPerViewDynamic():Math.ceil(parseFloat(m.slidesPerView,10));var v=m.loopedSlides||g;if(v%m.slidesPerGroup!==0){v+=m.slidesPerGroup-v%m.slidesPerGroup}p.loopedSlides=v;var y=[];var w=[];var b=p.activeIndex;if(typeof a==="undefined"){a=p.getSlideIndex(p.slides.filter((function(e){return e.classList.contains(m.slideActiveClass)}))[0])}else{b=a}var _=o==="next"||!o;var x=o==="prev"||!o;var k=0;var A=0;if(a<v){k=Math.max(v-a,m.slidesPerGroup);for(var T=0;T<v-a;T+=1){var C=T-Math.floor(T/u.length)*u.length;y.push(u.length-C-1)}}else if(a>p.slides.length-v*2){A=Math.max(a-(p.slides.length-v*2),m.slidesPerGroup);for(var T=0;T<A;T+=1){var C=T-Math.floor(T/u.length)*u.length;w.push(C)}}if(x){y.forEach((function(e){p.slides[e].swiperLoopMoveDOM=true;f.prepend(p.slides[e]);p.slides[e].swiperLoopMoveDOM=false}))}if(_){w.forEach((function(e){p.slides[e].swiperLoopMoveDOM=true;f.append(p.slides[e]);p.slides[e].swiperLoopMoveDOM=false}))}p.recalcSlides();if(m.slidesPerView==="auto"){p.updateSlides()}if(m.watchSlidesProgress){p.updateSlidesOffset()}if(n){if(y.length>0&&x){if(typeof i==="undefined"){var L=p.slidesGrid[b];var S=p.slidesGrid[b+k];var E=S-L;if(c){p.setTranslate(p.translate-E)}else{p.slideTo(b+k,0,false,true);if(s){p.touches[p.isHorizontal()?"startX":"startY"]+=E}}}else{if(s){p.slideToLoop(i,0,false,true)}}}else if(w.length>0&&_){if(typeof i==="undefined"){var L=p.slidesGrid[b];var S=p.slidesGrid[b-A];var E=S-L;if(c){p.setTranslate(p.translate-E)}else{p.slideTo(b-A,0,false,true);if(s){p.touches[p.isHorizontal()?"startX":"startY"]+=E}}}else{p.slideToLoop(i,0,false,true)}}}p.allowSlidePrev=d;p.allowSlideNext=h;if(p.controller&&p.controller.control&&!l){var P={slideRealIndex:i,slideTo:false,direction:o,setTranslate:s,activeSlideIndex:a,byController:true};if(Array.isArray(p.controller.control)){p.controller.control.forEach((function(e){if(!e.destroyed&&e.params.loop)e.loopFix(P)}))}else if(p.controller.control instanceof p.constructor&&p.controller.control.params.loop){p.controller.control.loopFix(P)}}p.emit("loopFix")}function loopDestroy(){var e=this;var t=e.params,i=e.slidesEl;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();var r=[];e.slides.forEach((function(e){var t=typeof e.swiperSlideIndex==="undefined"?e.getAttribute("data-swiper-slide-index")*1:e.swiperSlideIndex;r[t]=e}));e.slides.forEach((function(e){e.removeAttribute("data-swiper-slide-index")}));r.forEach((function(e){i.append(e)}));e.recalcSlides();e.slideTo(e.realIndex,0)}var loop={loopCreate:loopCreate,loopFix:loopFix,loopDestroy:loopDestroy};function setGrabCursor(e){var t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;var i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;if(t.isElement){t.__preventObserver__=true}i.style.cursor="move";i.style.cursor=e?"grabbing":"grab";if(t.isElement){requestAnimationFrame((function(){t.__preventObserver__=false}))}}function unsetGrabCursor(){var e=this;if(e.params.watchOverflow&&e.isLocked||e.params.cssMode){return}if(e.isElement){e.__preventObserver__=true}e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(e.isElement){requestAnimationFrame((function(){e.__preventObserver__=false}))}}var grabCursor={setGrabCursor:setGrabCursor,unsetGrabCursor:unsetGrabCursor};function closestElement(e,t){if(t===void 0){t=this}function i(t){if(!t||t===getDocument()||t===getWindow())return null;if(t.assignedSlot)t=t.assignedSlot;var r=t.closest(e);if(!r&&!t.getRootNode){return null}return r||i(t.getRootNode().host)}return i(t)}function onTouchStart(e){var t=this;var i=getDocument();var r=getWindow();var n=t.touchEventsData;n.evCache.push(e);var o=t.params,s=t.touches,a=t.enabled;if(!a)return;if(!o.simulateTouch&&e.pointerType==="mouse")return;if(t.animating&&o.preventInteractionOnTransition){return}if(!t.animating&&o.cssMode&&o.loop){t.loopFix()}var l=e;if(l.originalEvent)l=l.originalEvent;var c=l.target;if(o.touchEventsTarget==="wrapper"){if(!t.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;var p=!!o.noSwipingClass&&o.noSwipingClass!=="";var u=e.composedPath?e.composedPath():e.path;if(p&&l.target&&l.target.shadowRoot&&u){c=u[0]}var d=o.noSwipingSelector?o.noSwipingSelector:".".concat(o.noSwipingClass);var h=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(h?closestElement(d,c):c.closest(d))){t.allowClick=true;return}if(o.swipeHandler){if(!c.closest(o.swipeHandler))return}s.currentX=l.pageX;s.currentY=l.pageY;var f=s.currentX;var m=s.currentY;var g=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection;var v=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(g&&(f<=v||f>=r.innerWidth-v)){if(g==="prevent"){e.preventDefault()}else{return}}Object.assign(n,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});s.startX=f;s.startY=m;n.touchStartTime=now();t.allowClick=true;t.updateSize();t.swipeDirection=undefined;if(o.threshold>0)n.allowThresholdMove=false;var y=true;if(c.matches(n.focusableElements)){y=false;if(c.nodeName==="SELECT"){n.isTouched=false}}if(i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==c){i.activeElement.blur()}var w=y&&t.allowTouchMove&&o.touchStartPreventDefault;if((o.touchStartForcePreventDefault||w)&&!c.isContentEditable){l.preventDefault()}if(o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode){t.freeMode.onTouchStart()}t.emit("touchStart",l)}function onTouchMove(e){var t=getDocument();var i=this;var r=i.touchEventsData;var n=i.params,o=i.touches,s=i.rtlTranslate,a=i.enabled;if(!a)return;if(!n.simulateTouch&&e.pointerType==="mouse")return;var l=e;if(l.originalEvent)l=l.originalEvent;if(!r.isTouched){if(r.startMoving&&r.isScrolling){i.emit("touchMoveOpposite",l)}return}var c=r.evCache.findIndex((function(e){return e.pointerId===l.pointerId}));if(c>=0)r.evCache[c]=l;var p=r.evCache.length>1?r.evCache[0]:l;var u=p.pageX;var d=p.pageY;if(l.preventedByNestedSwiper){o.startX=u;o.startY=d;return}if(!i.allowTouchMove){if(!l.target.matches(r.focusableElements)){i.allowClick=false}if(r.isTouched){Object.assign(o,{startX:u,startY:d,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:u,currentY:d});r.touchStartTime=now()}return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(d<o.startY&&i.translate<=i.maxTranslate()||d>o.startY&&i.translate>=i.minTranslate()){r.isTouched=false;r.isMoved=false;return}}else if(u<o.startX&&i.translate<=i.maxTranslate()||u>o.startX&&i.translate>=i.minTranslate()){return}}if(t.activeElement){if(l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=true;i.allowClick=false;return}}if(r.allowTouchCallbacks){i.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;o.currentX=u;o.currentY=d;var h=o.currentX-o.startX;var f=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(f,2))<i.params.threshold)return;if(typeof r.isScrolling==="undefined"){var m=void 0;if(i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX){r.isScrolling=false}else{if(h*h+f*f>=25){m=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI;r.isScrolling=i.isHorizontal()?m>n.touchAngle:90-m>n.touchAngle}}}if(r.isScrolling){i.emit("touchMoveOpposite",l)}if(typeof r.startMoving==="undefined"){if(o.currentX!==o.startX||o.currentY!==o.startY){r.startMoving=true}}if(r.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&r.evCache.length>1){r.isTouched=false;return}if(!r.startMoving){return}i.allowClick=false;if(!n.cssMode&&l.cancelable){l.preventDefault()}if(n.touchMoveStopPropagation&&!n.nested){l.stopPropagation()}var g=i.isHorizontal()?h:f;var v=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;if(n.oneWayMovement){g=Math.abs(g)*(s?1:-1);v=Math.abs(v)*(s?1:-1)}o.diff=g;g*=n.touchRatio;if(s){g=-g;v=-v}var y=i.touchesDirection;i.swipeDirection=g>0?"prev":"next";i.touchesDirection=v>0?"prev":"next";var w=i.params.loop&&!n.cssMode;if(!r.isMoved){if(w){i.loopFix({direction:i.swipeDirection})}r.startTranslate=i.getTranslate();i.setTransition(0);if(i.animating){var b=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true});i.wrapperEl.dispatchEvent(b)}r.allowMomentumBounce=false;if(n.grabCursor&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(true)}i.emit("sliderFirstMove",l)}var _;if(r.isMoved&&y!==i.touchesDirection&&w&&Math.abs(g)>=1){i.loopFix({direction:i.swipeDirection,setTranslate:true});_=true}i.emit("sliderMove",l);r.isMoved=true;r.currentTranslate=g+r.startTranslate;var x=true;var k=n.resistanceRatio;if(n.touchReleaseOnEdges){k=0}if(g>0){if(w&&!_&&r.currentTranslate>(n.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())){i.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(r.currentTranslate>i.minTranslate()){x=false;if(n.resistance){r.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+r.startTranslate+g,k)}}}else if(g<0){if(w&&!_&&r.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())){i.loopFix({direction:"next",setTranslate:true,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))})}if(r.currentTranslate<i.maxTranslate()){x=false;if(n.resistance){r.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-r.startTranslate-g,k)}}}if(x){l.preventedByNestedSwiper=true}if(!i.allowSlideNext&&i.swipeDirection==="next"&&r.currentTranslate<r.startTranslate){r.currentTranslate=r.startTranslate}if(!i.allowSlidePrev&&i.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate){r.currentTranslate=r.startTranslate}if(!i.allowSlidePrev&&!i.allowSlideNext){r.currentTranslate=r.startTranslate}if(n.threshold>0){if(Math.abs(g)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=true;o.startX=o.currentX;o.startY=o.currentY;r.currentTranslate=r.startTranslate;o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}}if(!n.followFinger||n.cssMode)return;if(n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress){i.updateActiveIndex();i.updateSlidesClasses()}if(n.freeMode&&n.freeMode.enabled&&i.freeMode){i.freeMode.onTouchMove()}i.updateProgress(r.currentTranslate);i.setTranslate(r.currentTranslate)}function onTouchEnd(e){var t=this;var i=t.touchEventsData;var r=i.evCache.findIndex((function(t){return t.pointerId===e.pointerId}));if(r>=0){i.evCache.splice(r,1)}if(["pointercancel","pointerout","pointerleave"].includes(e.type)){var n=e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView);if(!n){return}}var o=t.params,s=t.touches,a=t.rtlTranslate,l=t.slidesGrid,c=t.enabled;if(!c)return;if(!o.simulateTouch&&e.pointerType==="mouse")return;var p=e;if(p.originalEvent)p=p.originalEvent;if(i.allowTouchCallbacks){t.emit("touchEnd",p)}i.allowTouchCallbacks=false;if(!i.isTouched){if(i.isMoved&&o.grabCursor){t.setGrabCursor(false)}i.isMoved=false;i.startMoving=false;return}if(o.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===true||t.allowSlidePrev===true)){t.setGrabCursor(false)}var u=now();var d=u-i.touchStartTime;if(t.allowClick){var h=p.path||p.composedPath&&p.composedPath();t.updateClickedSlide(h&&h[0]||p.target);t.emit("tap click",p);if(d<300&&u-i.lastClickTime<300){t.emit("doubleTap doubleClick",p)}}i.lastClickTime=now();nextTick((function(){if(!t.destroyed)t.allowClick=true}));if(!i.isTouched||!i.isMoved||!t.swipeDirection||s.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=false;i.isMoved=false;i.startMoving=false;return}i.isTouched=false;i.isMoved=false;i.startMoving=false;var f;if(o.followFinger){f=a?t.translate:-t.translate}else{f=-i.currentTranslate}if(o.cssMode){return}if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}var m=0;var g=t.slidesSizesGrid[0];for(var v=0;v<l.length;v+=v<o.slidesPerGroupSkip?1:o.slidesPerGroup){var y=v<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(typeof l[v+y]!=="undefined"){if(f>=l[v]&&f<l[v+y]){m=v;g=l[v+y]-l[v]}}else if(f>=l[v]){m=v;g=l[l.length-1]-l[l.length-2]}}var w=null;var b=null;if(o.rewind){if(t.isBeginning){b=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1}else if(t.isEnd){w=0}}var _=(f-l[m])/g;var x=m<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}if(t.swipeDirection==="next"){if(_>=o.longSwipesRatio)t.slideTo(o.rewind&&t.isEnd?w:m+x);else t.slideTo(m)}if(t.swipeDirection==="prev"){if(_>1-o.longSwipesRatio){t.slideTo(m+x)}else if(b!==null&&_<0&&Math.abs(_)>o.longSwipesRatio){t.slideTo(b)}else{t.slideTo(m)}}}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}var k=t.navigation&&(p.target===t.navigation.nextEl||p.target===t.navigation.prevEl);if(!k){if(t.swipeDirection==="next"){t.slideTo(w!==null?w:m+x)}if(t.swipeDirection==="prev"){t.slideTo(b!==null?b:m)}}else if(p.target===t.navigation.nextEl){t.slideTo(m+x)}else{t.slideTo(m)}}}function onResize(){var e=this;var t=e.params,i=e.el;if(i&&i.offsetWidth===0)return;if(t.breakpoints){e.setBreakpoint()}var r=e.allowSlideNext,n=e.allowSlidePrev,o=e.snapGrid;var s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=true;e.allowSlidePrev=true;e.updateSize();e.updateSlides();e.updateSlidesClasses();var a=s&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a){e.slideTo(e.slides.length-1,0,false,true)}else{if(e.params.loop&&!s){e.slideToLoop(e.realIndex,0,false,true)}else{e.slideTo(e.activeIndex,0,false,true)}}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){clearTimeout(e.autoplay.resizeTimeout);e.autoplay.resizeTimeout=setTimeout((function(){if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){e.autoplay.resume()}}),500)}e.allowSlidePrev=n;e.allowSlideNext=r;if(e.params.watchOverflow&&o!==e.snapGrid){e.checkOverflow()}}function onClick(e){var t=this;if(!t.enabled)return;if(!t.allowClick){if(t.params.preventClicks)e.preventDefault();if(t.params.preventClicksPropagation&&t.animating){e.stopPropagation();e.stopImmediatePropagation()}}}function onScroll(){var e=this;var t=e.wrapperEl,i=e.rtlTranslate,r=e.enabled;if(!r)return;e.previousTranslate=e.translate;if(e.isHorizontal()){e.translate=-t.scrollLeft}else{e.translate=-t.scrollTop}if(e.translate===0)e.translate=0;e.updateActiveIndex();e.updateSlidesClasses();var n;var o=e.maxTranslate()-e.minTranslate();if(o===0){n=0}else{n=(e.translate-e.minTranslate())/o}if(n!==e.progress){e.updateProgress(i?-e.translate:e.translate)}e.emit("setTranslate",e.translate,false)}function onLoad(e){var t=this;processLazyPreloader(t,e.target);if(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight){return}t.update()}var dummyEventAttached=false;function dummyEventListener(){}var events=function(e,t){var i=getDocument();var r=e.params,n=e.el,o=e.wrapperEl,s=e.device;var a=!!r.nested;var l=t==="on"?"addEventListener":"removeEventListener";var c=t;n[l]("pointerdown",e.onTouchStart,{passive:false});i[l]("pointermove",e.onTouchMove,{passive:false,capture:a});i[l]("pointerup",e.onTouchEnd,{passive:true});i[l]("pointercancel",e.onTouchEnd,{passive:true});i[l]("pointerout",e.onTouchEnd,{passive:true});i[l]("pointerleave",e.onTouchEnd,{passive:true});if(r.preventClicks||r.preventClicksPropagation){n[l]("click",e.onClick,true)}if(r.cssMode){o[l]("scroll",e.onScroll)}if(r.updateOnWindowResize){e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,true)}else{e[c]("observerUpdate",onResize,true)}n[l]("load",e.onLoad,{capture:true})};function attachEvents(){var e=this;var t=getDocument();var i=e.params;e.onTouchStart=onTouchStart.bind(e);e.onTouchMove=onTouchMove.bind(e);e.onTouchEnd=onTouchEnd.bind(e);if(i.cssMode){e.onScroll=onScroll.bind(e)}e.onClick=onClick.bind(e);e.onLoad=onLoad.bind(e);if(!dummyEventAttached){t.addEventListener("touchstart",dummyEventListener);dummyEventAttached=true}events(e,"on")}function detachEvents(){var e=this;events(e,"off")}var events$1={attachEvents:attachEvents,detachEvents:detachEvents};var isGridEnabled=function(e,t){return e.grid&&t.grid&&t.grid.rows>1};function setBreakpoint(){var e=this;var t=e.realIndex,i=e.initialized,r=e.params,n=e.el;var o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;var s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;var a=s in o?o[s]:undefined;var l=a||e.originalParams;var c=isGridEnabled(e,r);var p=isGridEnabled(e,l);var u=r.enabled;if(c&&!p){n.classList.remove("".concat(r.containerModifierClass,"grid"),"".concat(r.containerModifierClass,"grid-column"));e.emitContainerClasses()}else if(!c&&p){n.classList.add("".concat(r.containerModifierClass,"grid"));if(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column"){n.classList.add("".concat(r.containerModifierClass,"grid-column"))}e.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((function(t){if(typeof l[t]==="undefined")return;var i=r[t]&&r[t].enabled;var n=l[t]&&l[t].enabled;if(i&&!n){e[t].disable()}if(!i&&n){e[t].enable()}}));var d=l.direction&&l.direction!==r.direction;var h=r.loop&&(l.slidesPerView!==r.slidesPerView||d);if(d&&i){e.changeDirection()}extend(e.params,l);var f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev});if(u&&!f){e.disable()}else if(!u&&f){e.enable()}e.currentBreakpoint=s;e.emit("_beforeBreakpoint",l);if(h&&i){e.loopDestroy();e.loopCreate(t);e.updateSlides()}e.emit("breakpoint",l)}function getBreakpoint(e,t,i){if(t===void 0){t="window"}if(!e||t==="container"&&!i)return undefined;var r=false;var n=getWindow();var o=t==="window"?n.innerHeight:i.clientHeight;var s=Object.keys(e).map((function(e){if(typeof e==="string"&&e.indexOf("@")===0){var t=parseFloat(e.substr(1));var i=o*t;return{value:i,point:e}}return{value:e,point:e}}));s.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var a=0;a<s.length;a+=1){var l=s[a],c=l.point,p=l.value;if(t==="window"){if(n.matchMedia("(min-width: ".concat(p,"px)")).matches){r=c}}else if(p<=i.clientWidth){r=c}}return r||"max"}var breakpoints={setBreakpoint:setBreakpoint,getBreakpoint:getBreakpoint};function prepareClasses(e,t){var i=[];e.forEach((function(e){if(typeof e==="object"){Object.keys(e).forEach((function(r){if(e[r]){i.push(t+r)}}))}else if(typeof e==="string"){i.push(t+e)}}));return i}function addClasses(){var e;var t=this;var i=t.classNames,r=t.params,n=t.rtl,o=t.el,s=t.device;var a=prepareClasses(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);i.push.apply(i,a);(e=o.classList).add.apply(e,i);t.emitContainerClasses()}function removeClasses(){var e;var t=this;var i=t.el,r=t.classNames;(e=i.classList).remove.apply(e,r);t.emitContainerClasses()}var classes={addClasses:addClasses,removeClasses:removeClasses};function checkOverflow(){var e=this;var t=e.isLocked,i=e.params;var r=i.slidesOffsetBefore;if(r){var n=e.slides.length-1;var o=e.slidesGrid[n]+e.slidesSizesGrid[n]+r*2;e.isLocked=e.size>o}else{e.isLocked=e.snapGrid.length===1}if(i.allowSlideNext===true){e.allowSlideNext=!e.isLocked}if(i.allowSlidePrev===true){e.allowSlidePrev=!e.isLocked}if(t&&t!==e.isLocked){e.isEnd=false}if(t!==e.isLocked){e.emit(e.isLocked?"lock":"unlock")}}var checkOverflow$1={checkOverflow:checkOverflow};var defaults={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 moduleExtendParams(e,t){return function i(r){if(r===void 0){r={}}var n=Object.keys(r)[0];var o=r[n];if(typeof o!=="object"||o===null){extend(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&e[n]===true){e[n]={auto:true}}if(!(n in e&&"enabled"in o)){extend(t,r);return}if(e[n]===true){e[n]={enabled:true}}if(typeof e[n]==="object"&&!("enabled"in e[n])){e[n].enabled=true}if(!e[n])e[n]={enabled:false};extend(t,r)}}var prototypes={eventsEmitter:eventsEmitter,update:update,translate:translate,transition:transition,slide:slide,loop:loop,grabCursor:grabCursor,events:events$1,breakpoints:breakpoints,checkOverflow:checkOverflow$1,classes:classes};var extendedDefaults={};var Swiper=function(){function e(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}var n;var o;if(i.length===1&&i[0].constructor&&Object.prototype.toString.call(i[0]).slice(8,-1)==="Object"){o=i[0]}else{n=i[0],o=i[1]}if(!o)o={};o=extend({},o);if(n&&!o.el)o.el=n;var s=getDocument();if(o.el&&typeof o.el==="string"&&s.querySelectorAll(o.el).length>1){var a=[];s.querySelectorAll(o.el).forEach((function(t){var i=extend({},o,{el:t});a.push(new e(i))}));return a}var l=this;l.__swiper__=true;l.support=getSupport();l.device=getDevice({userAgent:o.userAgent});l.browser=getBrowser();l.eventsListeners={};l.eventsAnyListeners=[];l.modules=__spreadArray([],l.__modules__,true);if(o.modules&&Array.isArray(o.modules)){(t=l.modules).push.apply(t,o.modules)}var c={};l.modules.forEach((function(e){e({params:o,swiper:l,extendParams:moduleExtendParams(o,c),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));var p=extend({},defaults,c);l.params=extend({},p,extendedDefaults,o);l.originalParams=extend({},l.params);l.passedParams=extend({},o);if(l.params&&l.params.on){Object.keys(l.params.on).forEach((function(e){l.on(e,l.params.on[e])}))}if(l.params&&l.params.onAny){l.onAny(l.params.onAny)}Object.assign(l,{enabled:l.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return l.params.direction==="horizontal"},isVertical:function(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,cssOverflowAdjustment:function(){return Math.trunc(this.translate/Math.pow(2,23))*Math.pow(2,23)},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,startMoving:undefined,evCache:[]},allowClick:true,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});l.emit("_swiper");if(l.params.init){l.init()}return l}e.prototype.getSlideIndex=function(e){var t=this,i=t.slidesEl,r=t.params;var n=elementChildren(i,".".concat(r.slideClass,", swiper-slide"));var o=elementIndex(n[0]);return elementIndex(e)-o};e.prototype.getSlideIndexByData=function(e){return this.getSlideIndex(this.slides.filter((function(t){return t.getAttribute("data-swiper-slide-index")*1===e}))[0])};e.prototype.recalcSlides=function(){var e=this;var t=e.slidesEl,i=e.params;e.slides=elementChildren(t,".".concat(i.slideClass,", swiper-slide"))};e.prototype.enable=function(){var e=this;if(e.enabled)return;e.enabled=true;if(e.params.grabCursor){e.setGrabCursor()}e.emit("enable")};e.prototype.disable=function(){var e=this;if(!e.enabled)return;e.enabled=false;if(e.params.grabCursor){e.unsetGrabCursor()}e.emit("disable")};e.prototype.setProgress=function(e,t){var i=this;e=Math.min(Math.max(e,0),1);var r=i.minTranslate();var n=i.maxTranslate();var o=(n-r)*e+r;i.translateTo(o,typeof t==="undefined"?0:t);i.updateActiveIndex();i.updateSlidesClasses()};e.prototype.emitContainerClasses=function(){var e=this;if(!e.params._emitClasses||!e.el)return;var t=e.el.className.split(" ").filter((function(t){return t.indexOf("swiper")===0||t.indexOf(e.params.containerModifierClass)===0}));e.emit("_containerClasses",t.join(" "))};e.prototype.getSlideClasses=function(e){var t=this;if(t.destroyed)return"";return e.className.split(" ").filter((function(e){return e.indexOf("swiper-slide")===0||e.indexOf(t.params.slideClass)===0})).join(" ")};e.prototype.emitSlidesClasses=function(){var e=this;if(!e.params._emitClasses||!e.el)return;var t=[];e.slides.forEach((function(i){var r=e.getSlideClasses(i);t.push({slideEl:i,classNames:r});e.emit("_slideClass",i,r)}));e.emit("_slideClasses",t)};e.prototype.slidesPerViewDynamic=function(e,t){if(e===void 0){e="current"}if(t===void 0){t=false}var i=this;var r=i.params,n=i.slides,o=i.slidesGrid,s=i.slidesSizesGrid,a=i.size,l=i.activeIndex;var c=1;if(r.centeredSlides){var p=n[l]?n[l].swiperSlideSize:0;var u=void 0;for(var d=l+1;d<n.length;d+=1){if(n[d]&&!u){p+=n[d].swiperSlideSize;c+=1;if(p>a)u=true}}for(var d=l-1;d>=0;d-=1){if(n[d]&&!u){p+=n[d].swiperSlideSize;c+=1;if(p>a)u=true}}}else{if(e==="current"){for(var d=l+1;d<n.length;d+=1){var h=t?o[d]+s[d]-o[l]<a:o[d]-o[l]<a;if(h){c+=1}}}else{for(var d=l-1;d>=0;d-=1){var h=o[l]-o[d]<a;if(h){c+=1}}}}return c};e.prototype.update=function(){var e=this;if(!e||e.destroyed)return;var t=e.snapGrid,i=e.params;if(i.breakpoints){e.setBreakpoint()}__spreadArray([],e.el.querySelectorAll('[loading="lazy"]'),true).forEach((function(t){if(t.complete){processLazyPreloader(e,t)}}));e.updateSize();e.updateSlides();e.updateProgress();e.updateSlidesClasses();function r(){var t=e.rtlTranslate?e.translate*-1:e.translate;var i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i);e.updateActiveIndex();e.updateSlidesClasses()}var n;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode){r();if(i.autoHeight){e.updateAutoHeight()}}else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){var o=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(o.length-1,0,false,true)}else{n=e.slideTo(e.activeIndex,0,false,true)}if(!n){r()}}if(i.watchOverflow&&t!==e.snapGrid){e.checkOverflow()}e.emit("update")};e.prototype.changeDirection=function(e,t){if(t===void 0){t=true}var i=this;var r=i.params.direction;if(!e){e=r==="horizontal"?"vertical":"horizontal"}if(e===r||e!=="horizontal"&&e!=="vertical"){return i}i.el.classList.remove("".concat(i.params.containerModifierClass).concat(r));i.el.classList.add("".concat(i.params.containerModifierClass).concat(e));i.emitContainerClasses();i.params.direction=e;i.slides.forEach((function(t){if(e==="vertical"){t.style.width=""}else{t.style.height=""}}));i.emit("changeDirection");if(t)i.update();return i};e.prototype.changeLanguageDirection=function(e){var t=this;if(t.rtl&&e==="rtl"||!t.rtl&&e==="ltr")return;t.rtl=e==="rtl";t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl;if(t.rtl){t.el.classList.add("".concat(t.params.containerModifierClass,"rtl"));t.el.dir="rtl"}else{t.el.classList.remove("".concat(t.params.containerModifierClass,"rtl"));t.el.dir="ltr"}t.update()};e.prototype.mount=function(e){var t=this;if(t.mounted)return true;var i=e||t.params.el;if(typeof i==="string"){i=document.querySelector(i)}if(!i){return false}i.swiper=t;if(i.shadowEl){t.isElement=true}var r=function(){return".".concat((t.params.wrapperClass||"").trim().split(" ").join("."))};var n=function(){if(i&&i.shadowRoot&&i.shadowRoot.querySelector){var e=i.shadowRoot.querySelector(r());return e}return elementChildren(i,r())[0]};var o=n();if(!o&&t.params.createElements){o=createElement("div",t.params.wrapperClass);i.append(o);elementChildren(i,".".concat(t.params.slideClass)).forEach((function(e){o.append(e)}))}Object.assign(t,{el:i,wrapperEl:o,slidesEl:t.isElement?i:o,mounted:true,rtl:i.dir.toLowerCase()==="rtl"||elementStyle(i,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||elementStyle(i,"direction")==="rtl"),wrongRTL:elementStyle(o,"display")==="-webkit-box"});return true};e.prototype.init=function(e){var t=this;if(t.initialized)return t;var i=t.mount(e);if(i===false)return t;t.emit("beforeInit");if(t.params.breakpoints){t.setBreakpoint()}t.addClasses();t.updateSize();t.updateSlides();if(t.params.watchOverflow){t.checkOverflow()}if(t.params.grabCursor&&t.enabled){t.setGrabCursor()}if(t.params.loop&&t.virtual&&t.params.virtual.enabled){t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,false,true)}else{t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,false,true)}if(t.params.loop){t.loopCreate()}t.attachEvents();__spreadArray([],t.el.querySelectorAll('[loading="lazy"]'),true).forEach((function(e){if(e.complete){processLazyPreloader(t,e)}else{e.addEventListener("load",(function(e){processLazyPreloader(t,e.target)}))}}));preload(t);t.initialized=true;preload(t);t.emit("init");t.emit("afterInit");return t};e.prototype.destroy=function(e,t){if(e===void 0){e=true}if(t===void 0){t=true}var i=this;var r=i.params,n=i.el,o=i.wrapperEl,s=i.slides;if(typeof i.params==="undefined"||i.destroyed){return null}i.emit("beforeDestroy");i.initialized=false;i.detachEvents();if(r.loop){i.loopDestroy()}if(t){i.removeClasses();n.removeAttribute("style");o.removeAttribute("style");if(s&&s.length){s.forEach((function(e){e.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass);e.removeAttribute("style");e.removeAttribute("data-swiper-slide-index")}))}}i.emit("destroy");Object.keys(i.eventsListeners).forEach((function(e){i.off(e)}));if(e!==false){i.el.swiper=null;deleteProps(i)}i.destroyed=true;return null};e.extendDefaults=function(e){extend(extendedDefaults,e)};Object.defineProperty(e,"extendedDefaults",{get:function(){return extendedDefaults},enumerable:false,configurable:true});Object.defineProperty(e,"defaults",{get:function(){return defaults},enumerable:false,configurable:true});e.installModule=function(t){if(!e.prototype.__modules__)e.prototype.__modules__=[];var i=e.prototype.__modules__;if(typeof t==="function"&&i.indexOf(t)<0){i.push(t)}};e.use=function(t){if(Array.isArray(t)){t.forEach((function(t){return e.installModule(t)}));return e}e.installModule(t);return e};return e}();Object.keys(prototypes).forEach((function(e){Object.keys(prototypes[e]).forEach((function(t){Swiper.prototype[t]=prototypes[e][t]}))}));Swiper.use([Resize,Observer]);function Keyboard(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=getDocument();var s=getWindow();t.keyboard={enabled:false};i({keyboard:{enabled:false,onlyInViewport:true,pageUpDown:true}});function a(e){if(!t.enabled)return;var i=t.rtlTranslate;var r=e;if(r.originalEvent)r=r.originalEvent;var a=r.keyCode||r.charCode;var l=t.params.keyboard.pageUpDown;var c=l&&a===33;var p=l&&a===34;var u=a===37;var d=a===39;var h=a===38;var f=a===40;if(!t.allowSlideNext&&(t.isHorizontal()&&d||t.isVertical()&&f||p)){return false}if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&h||c)){return false}if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey){return undefined}if(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea")){return undefined}if(t.params.keyboard.onlyInViewport&&(c||p||u||d||h||f)){var m=false;if(elementParents(t.el,".".concat(t.params.slideClass,", swiper-slide")).length>0&&elementParents(t.el,".".concat(t.params.slideActiveClass)).length===0){return undefined}var g=t.el;var v=g.clientWidth;var y=g.clientHeight;var w=s.innerWidth;var b=s.innerHeight;var _=elementOffset(g);if(i)_.left-=g.scrollLeft;var x=[[_.left,_.top],[_.left+v,_.top],[_.left,_.top+y],[_.left+v,_.top+y]];for(var k=0;k<x.length;k+=1){var A=x[k];if(A[0]>=0&&A[0]<=w&&A[1]>=0&&A[1]<=b){if(A[0]===0&&A[1]===0)continue;m=true}}if(!m)return undefined}if(t.isHorizontal()){if(c||p||u||d){if(r.preventDefault)r.preventDefault();else r.returnValue=false}if((p||d)&&!i||(c||u)&&i)t.slideNext();if((c||u)&&!i||(p||d)&&i)t.slidePrev()}else{if(c||p||h||f){if(r.preventDefault)r.preventDefault();else r.returnValue=false}if(p||f)t.slideNext();if(c||h)t.slidePrev()}n("keyPress",a);return undefined}function l(){if(t.keyboard.enabled)return;o.addEventListener("keydown",a);t.keyboard.enabled=true}function c(){if(!t.keyboard.enabled)return;o.removeEventListener("keydown",a);t.keyboard.enabled=false}r("init",(function(){if(t.params.keyboard.enabled){l()}}));r("destroy",(function(){if(t.keyboard.enabled){c()}}));Object.assign(t.keyboard,{enable:l,disable:c})}function Mousewheel(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=getWindow();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};var s;var a=now();var l;var c=[];function p(e){var t=10;var i=40;var r=800;var n=0;var o=0;var s=0;var a=0;if("detail"in e){o=e.detail}if("wheelDelta"in e){o=-e.wheelDelta/120}if("wheelDeltaY"in e){o=-e.wheelDeltaY/120}if("wheelDeltaX"in e){n=-e.wheelDeltaX/120}if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){n=o;o=0}s=n*t;a=o*t;if("deltaY"in e){a=e.deltaY}if("deltaX"in e){s=e.deltaX}if(e.shiftKey&&!s){s=a;a=0}if((s||a)&&e.deltaMode){if(e.deltaMode===1){s*=i;a*=i}else{s*=r;a*=r}}if(s&&!n){n=s<1?-1:1}if(a&&!o){o=a<1?-1:1}return{spinX:n,spinY:o,pixelX:s,pixelY:a}}function u(){if(!t.enabled)return;t.mouseEntered=true}function d(){if(!t.enabled)return;t.mouseEntered=false}function h(e){if(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&now()-a<t.params.mousewheel.thresholdTime){return false}if(e.delta>=6&&now()-a<60){return true}if(e.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();n("scroll",e.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();n("scroll",e.raw)}a=(new o.Date).getTime();return false}function f(e){var i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges){return true}return false}function m(e){var i=e;var r=true;if(!t.enabled)return;if(e.target.closest(".".concat(t.params.mousewheel.noMousewheelClass)))return;var o=t.params.mousewheel;if(t.params.cssMode){i.preventDefault()}var a=t.el;if(t.params.mousewheel.eventsTarget!=="container"){a=document.querySelector(t.params.mousewheel.eventsTarget)}var u=a&&a.contains(i.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var d=0;var m=t.rtlTranslate?-1:1;var g=p(i);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;var v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();r=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(r&&t.params.nested)i.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){var y={time:now(),delta:Math.abs(d),direction:Math.sign(d),raw:e};if(c.length>=2){c.shift()}var w=c.length?c[c.length-1]:undefined;c.push(y);if(w){if(y.direction!==w.direction||y.delta>w.delta||y.time>w.time+150){h(y)}}else{h(y)}if(f(y)){return true}}else{var b={time:now(),delta:Math.abs(d),direction:Math.sign(d)};var _=l&&b.time<l.time+500&&b.delta<=l.delta&&b.direction===l.direction;if(!_){l=undefined;var x=t.getTranslate()+d*o.sensitivity;var k=t.isBeginning;var A=t.isEnd;if(x>=t.minTranslate())x=t.minTranslate();if(x<=t.maxTranslate())x=t.maxTranslate();t.setTransition(0);t.setTranslate(x);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!k&&t.isBeginning||!A&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:b.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(c.length>=15){c.shift()}var w=c.length?c[c.length-1]:undefined;var T=c[0];c.push(b);if(w&&(b.delta>w.delta||b.direction!==w.direction)){c.splice(0)}else if(c.length>=15&&b.time-T.time<500&&T.delta-b.delta>=1&&b.delta<=6){var C=d>0?.8:.2;l=b;c.splice(0);s=nextTick((function(){t.slideToClosest(t.params.speed,true,undefined,C)}),0)}if(!s){s=nextTick((function(){var e=.5;l=b;c.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!_)n("scroll",i);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(x===t.minTranslate()||x===t.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function g(e){var i=t.el;if(t.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(t.params.mousewheel.eventsTarget)}i[e]("mouseenter",u);i[e]("mouseleave",d);i[e]("wheel",m)}function v(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",m);return true}if(t.mousewheel.enabled)return false;g("addEventListener");t.mousewheel.enabled=true;return true}function y(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,m);return true}if(!t.mousewheel.enabled)return false;g("removeEventListener");t.mousewheel.enabled=false;return true}r("init",(function(){if(!t.params.mousewheel.enabled&&t.params.cssMode){y()}if(t.params.mousewheel.enabled)v()}));r("destroy",(function(){if(t.params.cssMode){v()}if(t.mousewheel.enabled)y()}));Object.assign(t.mousewheel,{enable:v,disable:y})}function createElementIfNotDefined(e,t,i,r){if(e.params.createElements){Object.keys(r).forEach((function(n){if(!i[n]&&i.auto===true){var o=elementChildren(e.el,".".concat(r[n]))[0];if(!o){o=createElement("div",r[n]);o.className=r[n];e.el.append(o)}i[n]=o;t[n]=o}}))}return i}function Navigation(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;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};var o=function(e){if(!Array.isArray(e))e=[e].filter((function(e){return!!e}));return e};function s(e){var i;if(e&&typeof e==="string"&&t.isElement){i=t.el.shadowRoot.querySelector(e);if(i)return i}if(e){if(typeof e==="string")i=__spreadArray([],document.querySelectorAll(e),true);if(t.params.uniqueNavElements&&typeof e==="string"&&i.length>1&&t.el.querySelectorAll(e).length===1){i=t.el.querySelector(e)}}if(e&&!i)return e;return i}function a(e,i){var r=t.params.navigation;e=o(e);e.forEach((function(e){var n;if(e){(n=e.classList)[i?"add":"remove"].apply(n,r.disabledClass.split(" "));if(e.tagName==="BUTTON")e.disabled=i;if(t.params.watchOverflow&&t.enabled){e.classList[t.isLocked?"add":"remove"](r.lockClass)}}}))}function l(){var e=t.navigation,i=e.nextEl,r=e.prevEl;if(t.params.loop){a(r,false);a(i,false);return}a(r,t.isBeginning&&!t.params.rewind);a(i,t.isEnd&&!t.params.rewind)}function c(e){e.preventDefault();if(t.isBeginning&&!t.params.loop&&!t.params.rewind)return;t.slidePrev();n("navigationPrev")}function p(e){e.preventDefault();if(t.isEnd&&!t.params.loop&&!t.params.rewind)return;t.slideNext();n("navigationNext")}function u(){var e=t.params.navigation;t.params.navigation=createElementIfNotDefined(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(e.nextEl||e.prevEl))return;var i=s(e.nextEl);var r=s(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:r});i=o(i);r=o(r);var n=function(i,r){var n;if(i){i.addEventListener("click",r==="next"?p:c)}if(!t.enabled&&i){(n=i.classList).add.apply(n,e.lockClass.split(" "))}};i.forEach((function(e){return n(e,"next")}));r.forEach((function(e){return n(e,"prev")}))}function d(){var e=t.navigation,i=e.nextEl,r=e.prevEl;i=o(i);r=o(r);var n=function(e,i){var r;e.removeEventListener("click",i==="next"?p:c);(r=e.classList).remove.apply(r,t.params.navigation.disabledClass.split(" "))};i.forEach((function(e){return n(e,"next")}));r.forEach((function(e){return n(e,"prev")}))}r("init",(function(){if(t.params.navigation.enabled===false){f()}else{u();l()}}));r("toEdge fromEdge lock unlock",(function(){l()}));r("destroy",(function(){d()}));r("enable disable",(function(){var e=t.navigation,i=e.nextEl,r=e.prevEl;i=o(i);r=o(r);__spreadArray(__spreadArray([],i,true),r,true).filter((function(e){return!!e})).forEach((function(e){return e.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass)}))}));r("click",(function(e,i){var r=t.navigation,s=r.nextEl,a=r.prevEl;s=o(s);a=o(a);var l=i.target;if(t.params.navigation.hideOnClick&&!a.includes(l)&&!s.includes(l)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===l||t.pagination.el.contains(l)))return;var c=void 0;if(s.length){c=s[0].classList.contains(t.params.navigation.hiddenClass)}else if(a.length){c=a[0].classList.contains(t.params.navigation.hiddenClass)}if(c===true){n("navigationShow")}else{n("navigationHide")}__spreadArray(__spreadArray([],s,true),a,true).filter((function(e){return!!e})).forEach((function(e){return e.classList.toggle(t.params.navigation.hiddenClass)}))}}));var h=function(){var e;(e=t.el.classList).remove.apply(e,t.params.navigation.navigationDisabledClass.split(" "));u();l()};var f=function(){var e;(e=t.el.classList).add.apply(e,t.params.navigation.navigationDisabledClass.split(" "));d()};Object.assign(t.navigation,{enable:h,disable:f,update:l,init:u,destroy:d})}function classesToSelector(e){if(e===void 0){e=""}return".".concat(e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function Pagination(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o="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:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"".concat(o,"-bullet"),bulletActiveClass:"".concat(o,"-bullet-active"),modifierClass:"".concat(o,"-"),currentClass:"".concat(o,"-current"),totalClass:"".concat(o,"-total"),hiddenClass:"".concat(o,"-hidden"),progressbarFillClass:"".concat(o,"-progressbar-fill"),progressbarOppositeClass:"".concat(o,"-progressbar-opposite"),clickableClass:"".concat(o,"-clickable"),lockClass:"".concat(o,"-lock"),horizontalClass:"".concat(o,"-horizontal"),verticalClass:"".concat(o,"-vertical"),paginationDisabledClass:"".concat(o,"-disabled")}});t.pagination={el:null,bullets:[]};var s;var a=0;var l=function(e){if(!Array.isArray(e))e=[e].filter((function(e){return!!e}));return e};function c(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function p(e,i){var r=t.params.pagination.bulletActiveClass;if(!e)return;e=e["".concat(i==="prev"?"previous":"next","ElementSibling")];if(e){e.classList.add("".concat(r,"-").concat(i));e=e["".concat(i==="prev"?"previous":"next","ElementSibling")];if(e){e.classList.add("".concat(r,"-").concat(i,"-").concat(i))}}}function u(e){var i=e.target.closest(classesToSelector(t.params.pagination.bulletClass));if(!i){return}e.preventDefault();var r=elementIndex(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;var n=t.getSlideIndexByData(r);var o=t.getSlideIndexByData(t.realIndex);if(n>t.slides.length-t.loopedSlides){t.loopFix({direction:n>o?"next":"prev",activeSlideIndex:n,slideTo:false})}t.slideToLoop(r)}else{t.slideTo(r)}}function d(){var e,i;var r=t.rtl;var o=t.params.pagination;if(c())return;var u=t.pagination.el;u=l(u);var d;var h;var f=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;var m=t.params.loop?Math.ceil(f/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop){h=t.previousRealIndex||0;d=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex}else if(typeof t.snapIndex!=="undefined"){d=t.snapIndex;h=t.previousSnapIndex}else{h=t.previousIndex||0;d=t.activeIndex||0}if(o.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){var g=t.pagination.bullets;var v;var y;var w=void 0;if(o.dynamicBullets){s=elementOuterSize(g[0],t.isHorizontal()?"width":"height",true);u.forEach((function(e){e.style[t.isHorizontal()?"width":"height"]="".concat(s*(o.dynamicMainBullets+4),"px")}));if(o.dynamicMainBullets>1&&h!==undefined){a+=d-(h||0);if(a>o.dynamicMainBullets-1){a=o.dynamicMainBullets-1}else if(a<0){a=0}}v=Math.max(d-a,0);y=v+(Math.min(g.length,o.dynamicMainBullets)-1);w=(y+v)/2}g.forEach((function(e){var t;var i=__spreadArray([],["","-next","-next-next","-prev","-prev-prev","-main"].map((function(e){return"".concat(o.bulletActiveClass).concat(e)})),true).map((function(e){return typeof e==="string"&&e.includes(" ")?e.split(" "):e})).flat();(t=e.classList).remove.apply(t,i)}));if(u.length>1){g.forEach((function(e){var i,r;var n=elementIndex(e);if(n===d){(i=e.classList).add.apply(i,o.bulletActiveClass.split(" "))}else if(t.isElement){e.setAttribute("part","bullet")}if(o.dynamicBullets){if(n>=v&&n<=y){(r=e.classList).add.apply(r,"".concat(o.bulletActiveClass,"-main").split(" "))}if(n===v){p(e,"prev")}if(n===y){p(e,"next")}}}))}else{var b=g[d];if(b){(e=b.classList).add.apply(e,o.bulletActiveClass.split(" "))}if(t.isElement){g.forEach((function(e,t){e.setAttribute("part",t===d?"bullet-active":"bullet")}))}if(o.dynamicBullets){var _=g[v];var x=g[y];for(var k=v;k<=y;k+=1){if(g[k]){(i=g[k].classList).add.apply(i,"".concat(o.bulletActiveClass,"-main").split(" "))}}p(_,"prev");p(x,"next")}}if(o.dynamicBullets){var A=Math.min(g.length,o.dynamicMainBullets+4);var T=(s*A-s)/2-w*s;var C=r?"right":"left";g.forEach((function(e){e.style[t.isHorizontal()?C:"top"]="".concat(T,"px")}))}}u.forEach((function(e,i){if(o.type==="fraction"){e.querySelectorAll(classesToSelector(o.currentClass)).forEach((function(e){e.textContent=o.formatFractionCurrent(d+1)}));e.querySelectorAll(classesToSelector(o.totalClass)).forEach((function(e){e.textContent=o.formatFractionTotal(m)}))}if(o.type==="progressbar"){var r=void 0;if(o.progressbarOpposite){r=t.isHorizontal()?"vertical":"horizontal"}else{r=t.isHorizontal()?"horizontal":"vertical"}var s=(d+1)/m;var a=1;var l=1;if(r==="horizontal"){a=s}else{l=s}e.querySelectorAll(classesToSelector(o.progressbarFillClass)).forEach((function(e){e.style.transform="translate3d(0,0,0) scaleX(".concat(a,") scaleY(").concat(l,")");e.style.transitionDuration="".concat(t.params.speed,"ms")}))}if(o.type==="custom"&&o.renderCustom){e.innerHTML=o.renderCustom(t,d+1,m);if(i===0)n("paginationRender",e)}else{if(i===0)n("paginationRender",e);n("paginationUpdate",e)}if(t.params.watchOverflow&&t.enabled){e.classList[t.isLocked?"add":"remove"](o.lockClass)}}))}function h(){var e=t.params.pagination;if(c())return;var i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;var r=t.pagination.el;r=l(r);var o="";if(e.type==="bullets"){var s=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.freeMode&&t.params.freeMode.enabled&&s>i){s=i}for(var a=0;a<s;a+=1){if(e.renderBullet){o+=e.renderBullet.call(t,a,e.bulletClass)}else{o+="<".concat(e.bulletElement," ").concat(t.isElement?'part="bullet"':"",' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">")}}}if(e.type==="fraction"){if(e.renderFraction){o=e.renderFraction.call(t,e.currentClass,e.totalClass)}else{o='<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>')}}if(e.type==="progressbar"){if(e.renderProgressbar){o=e.renderProgressbar.call(t,e.progressbarFillClass)}else{o='<span class="'.concat(e.progressbarFillClass,'"></span>')}}t.pagination.bullets=[];r.forEach((function(i){var r;if(e.type!=="custom"){i.innerHTML=o||""}if(e.type==="bullets"){(r=t.pagination.bullets).push.apply(r,i.querySelectorAll(classesToSelector(e.bulletClass)))}}));if(e.type!=="custom"){n("paginationRender",r[0])}}function f(){t.params.pagination=createElementIfNotDefined(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});var e=t.params.pagination;if(!e.el)return;var i;if(typeof e.el==="string"&&t.isElement){i=t.el.shadowRoot.querySelector(e.el)}if(!i&&typeof e.el==="string"){i=__spreadArray([],document.querySelectorAll(e.el),true)}if(!i){i=e.el}if(!i||i.length===0)return;if(t.params.uniqueNavElements&&typeof e.el==="string"&&Array.isArray(i)&&i.length>1){i=__spreadArray([],t.el.querySelectorAll(e.el),true);if(i.length>1){i=i.filter((function(e){if(elementParents(e,".swiper")[0]!==t.el)return false;return true}))[0]}}if(Array.isArray(i)&&i.length===1)i=i[0];Object.assign(t.pagination,{el:i});i=l(i);i.forEach((function(i){if(e.type==="bullets"&&e.clickable){i.classList.add(e.clickableClass)}i.classList.add(e.modifierClass+e.type);i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass);if(e.type==="bullets"&&e.dynamicBullets){i.classList.add("".concat(e.modifierClass).concat(e.type,"-dynamic"));a=0;if(e.dynamicMainBullets<1){e.dynamicMainBullets=1}}if(e.type==="progressbar"&&e.progressbarOpposite){i.classList.add(e.progressbarOppositeClass)}if(e.clickable){i.addEventListener("click",u)}if(!t.enabled){i.classList.add(e.lockClass)}}))}function m(){var e=t.params.pagination;if(c())return;var i=t.pagination.el;if(i){i=l(i);i.forEach((function(i){i.classList.remove(e.hiddenClass);i.classList.remove(e.modifierClass+e.type);i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass);if(e.clickable){i.removeEventListener("click",u)}}))}if(t.pagination.bullets)t.pagination.bullets.forEach((function(t){var i;return(i=t.classList).remove.apply(i,e.bulletActiveClass.split(" "))}))}r("changeDirection",(function(){if(!t.pagination||!t.pagination.el)return;var e=t.params.pagination;var i=t.pagination.el;i=l(i);i.forEach((function(i){i.classList.remove(e.horizontalClass,e.verticalClass);i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))}));r("init",(function(){if(t.params.pagination.enabled===false){v()}else{f();h();d()}}));r("activeIndexChange",(function(){if(typeof t.snapIndex==="undefined"){d()}}));r("snapIndexChange",(function(){d()}));r("snapGridLengthChange",(function(){h();d()}));r("destroy",(function(){m()}));r("enable disable",(function(){var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)}))}}));r("lock unlock",(function(){d()}));r("click",(function(e,i){var r=i.target;var o=t.pagination.el;if(!Array.isArray(o))o=[o].filter((function(e){return!!e}));if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;var s=o[0].classList.contains(t.params.pagination.hiddenClass);if(s===true){n("paginationShow")}else{n("paginationHide")}o.forEach((function(e){return e.classList.toggle(t.params.pagination.hiddenClass)}))}}));var g=function(){t.el.classList.remove(t.params.pagination.paginationDisabledClass);var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList.remove(t.params.pagination.paginationDisabledClass)}))}f();h();d()};var v=function(){t.el.classList.add(t.params.pagination.paginationDisabledClass);var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList.add(t.params.pagination.paginationDisabledClass)}))}m()};Object.assign(t.pagination,{enable:g,disable:v,render:h,update:d,init:f,destroy:m})}function freeMode(e){var t=e.swiper,i=e.extendParams,r=e.emit,n=e.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function o(){if(t.params.cssMode)return;var e=t.getTranslate();t.setTranslate(e);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;var e=t.touchEventsData,i=t.touches;if(e.velocities.length===0){e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime})}e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:now()})}function a(e){var i=e.currentPos;if(t.params.cssMode)return;var o=t.params,s=t.wrapperEl,a=t.rtlTranslate,l=t.snapGrid,c=t.touchEventsData;var p=now();var u=p-c.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<l.length){t.slideTo(l.length-1)}else{t.slideTo(t.slides.length-1)}return}if(o.freeMode.momentum){if(c.velocities.length>1){var d=c.velocities.pop();var h=c.velocities.pop();var f=d.position-h.position;var m=d.time-h.time;t.velocity=f/m;t.velocity/=2;if(Math.abs(t.velocity)<o.freeMode.minimumVelocity){t.velocity=0}if(m>150||now()-d.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=o.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*o.freeMode.momentumRatio;var v=t.velocity*g;var y=t.translate+v;if(a)y=-y;var w=false;var b;var _=Math.abs(t.velocity)*20*o.freeMode.momentumBounceRatio;var x=void 0;if(y<t.maxTranslate()){if(o.freeMode.momentumBounce){if(y+t.maxTranslate()<-_){y=t.maxTranslate()-_}b=t.maxTranslate();w=true;c.allowMomentumBounce=true}else{y=t.maxTranslate()}if(o.loop&&o.centeredSlides)x=true}else if(y>t.minTranslate()){if(o.freeMode.momentumBounce){if(y-t.minTranslate()>_){y=t.minTranslate()+_}b=t.minTranslate();w=true;c.allowMomentumBounce=true}else{y=t.minTranslate()}if(o.loop&&o.centeredSlides)x=true}else if(o.freeMode.sticky){var k=void 0;for(var A=0;A<l.length;A+=1){if(l[A]>-y){k=A;break}}if(Math.abs(l[k]-y)<Math.abs(l[k-1]-y)||t.swipeDirection==="next"){y=l[k]}else{y=l[k-1]}y=-y}if(x){n("transitionEnd",(function(){t.loopFix()}))}if(t.velocity!==0){if(a){g=Math.abs((-y-t.translate)/t.velocity)}else{g=Math.abs((y-t.translate)/t.velocity)}if(o.freeMode.sticky){var T=Math.abs((a?-y:y)-t.translate);var C=t.slidesSizesGrid[t.activeIndex];if(T<C){g=o.speed}else if(T<2*C){g=o.speed*1.5}else{g=o.speed*2.5}}}else if(o.freeMode.sticky){t.slideToClosest();return}if(o.freeMode.momentumBounce&&w){t.updateProgress(b);t.setTransition(g);t.setTranslate(y);t.transitionStart(true,t.swipeDirection);t.animating=true;elementTransitionEnd(s,(function(){if(!t||t.destroyed||!c.allowMomentumBounce)return;r("momentumBounce");t.setTransition(o.speed);setTimeout((function(){t.setTranslate(b);elementTransitionEnd(s,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){r("_freeModeNoMomentumRelease");t.updateProgress(y);t.setTransition(g);t.setTranslate(y);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;elementTransitionEnd(s,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(y)}t.updateActiveIndex();t.updateSlidesClasses()}else if(o.freeMode.sticky){t.slideToClosest();return}else if(o.freeMode){r("_freeModeNoMomentumRelease")}if(!o.freeMode.momentum||u>=o.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:o,onTouchMove:s,onTouchEnd:a}})}var grwPoiCss='@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}';var GrwPoiDetail=function(){function e(e){registerInstance(this,e);this.poi=undefined;this.displayShortDescription=true;this.showPoiDescriptionButton=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperPoi=new Swiper(this.swiperPoiRef,{modules:[Navigation,Pagination,Keyboard],navigation:{prevEl:this.prevElPoiRef,nextEl:this.nextElPoiRef},pagination:{el:this.paginationElPoiRef},allowTouchMove:false,keyboard:false});this.swiperPoiRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperPoi.keyboard.enable()}else{e.swiperPoi.keyboard.disable()}};this.showPoiDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight};e.prototype.handlePoiDescription=function(){this.displayShortDescription=!this.displayShortDescription};e.prototype.handleFullscreen=function(){if(this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].url){this.swiperPoiRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t;var i=getAssetPath("".concat("","assets/default-image.svg"));return h(Host,null,h("div",{class:"poi-type-img-container"},h("img",{crossorigin:"anonymous",class:"poi-type",src:"".concat((t=state.poiTypes.find((function(t){return t.id===e.poi.type})))===null||t===void 0?void 0:t.pictogram)}),h("div",{class:"swiper",ref:function(t){return e.swiperPoiRef=t}},h("div",{class:"swiper-wrapper"},this.poi.attachments.length>0?this.poi.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{class:"poi-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-poi-img",src:i,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElPoiRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElPoiRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElPoiRef=t}}))),h("div",{class:"poi-sub-container"},h("div",{class:"poi-name"},this.poi.name),h("div",{class:this.displayShortDescription?"poi-description-short":"poi-description",innerHTML:this.poi.description,ref:function(t){return e.descriptionRef=t}}),this.showPoiDescriptionButton&&h("div",{class:"handle-poi-description",onClick:function(){return e.handlePoiDescription()}},this.displayShortDescription?translate$1[state.language].readMore:translate$1[state.language].readLess)))};return e}();GrwPoiDetail.style=grwPoiCss;var grwSearchCss='.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}';var GrwSearch=function(){function e(e){registerInstance(this,e);this.fontFamily="Roboto"}e.prototype.onSearchChange=function(e){state.searchValue=e.target.value;if(state.mode==="treks"){state.currentTreks=handleTreksFiltersAndSearch()}else if(state.mode==="touristicContents"){state.currentTouristicContents=handleTouristicContentsFiltersAndSearch()}else if(state.mode==="touristicEvents"){state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch()}};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily}},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),h("input",{onInput:function(t){return e.onSearchChange(t)},class:"search-input",type:"search",placeholder:"Rechercher",value:state.searchValue}))};return e}();GrwSearch.style=grwSearchCss;var grwSegmentedSegmentCss=".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)}";var GrwSegmentedSegment=function(){function e(e){registerInstance(this,e);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}e.prototype.changeMode=function(e){state.searchValue="";if(e==="treks"&&state.currentTreks){treksFilters.forEach((function(e){state[e.property].forEach((function(e){return e.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;state.currentTreks=handleTreksFiltersAndSearch()}else if(e==="touristicContents"&&state.currentTouristicContents){touristicContentsFilters.forEach((function(e){state[e.property].forEach((function(e){return e.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicContents=handleTouristicContentsFiltersAndSearch()}else if(e==="touristicEvents"&&state.currentTouristicEvents){touristicEventsFilters.forEach((function(e){state[e.property].forEach((function(e){return e.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch()}state.mode=e};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily}},h("div",{class:"segmented-buttons-container"},this.treks&&h("label",{class:"segment".concat(state.mode==="treks"?" selected-segment":""),onClick:function(){return e.changeMode("treks")}},translate$1[state.language].home.segment.treks),this.touristicContents&&h("label",{class:"segment".concat(state.mode==="touristicContents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicContents")}},translate$1[state.language].home.segment.touristicContents),this.touristicEvents&&h("label",{class:"segment".concat(state.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicEvents")}},translate$1[state.language].home.segment.touristicEvents)))};return e}();GrwSegmentedSegment.style=grwSegmentedSegmentCss;var grwSelectLanguageCss='.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}';var GrwSelectLanguage=function(){function e(e){registerInstance(this,e)}e.prototype.handleSelect=function(e){state.treks=null;state.currentTreks=null;state.currentTrek=null;state.language=e.target.value};e.prototype.render=function(){var e=this;return h(Host,null,h("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),h("select",{onInput:function(t){return e.handleSelect(t)},name:"languages",id:"language-select"},state.languages.map((function(e){return h("option",{selected:e===state.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())}))))};return e}();GrwSelectLanguage.style=grwSelectLanguageCss;var grwSensitiveAreaDetailCss=":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}";var GrwSensitiveAreaDetail=function(){function e(e){registerInstance(this,e);this.sensitiveArea=undefined}e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"sensitive-area-title"},this.sensitiveArea.name),h("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&h("div",{class:"sensitive-area-practice-container"},h("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés :"),h("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map((function(t,i){var r=state.practices.find((function(e){return e.id===t}));if(r){return h("div",{innerHTML:"".concat(r.name.toUpperCase()).concat(i+1!==e.sensitiveArea.practices.length?" - ":"")})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&h("div",{class:"sensitive-area-period-container"},h("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),h("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map((function(t,i){if(t){return h("div",{innerHTML:"".concat(new Date(0,i+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()).concat(e.sensitiveArea.period.slice(i+1).find((function(e){return e}))?" - ":"")})}})))),h("div",{class:"sensitive-area-contact-container"},h("div",{class:"sensitive-area-contact-title"},"Contact"),h("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))};return e}();GrwSensitiveAreaDetail.style=grwSensitiveAreaDetailCss;var grwTouristicContentCardCss='@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)}';var GrwTouristicContentCard=function(){function e(e){registerInstance(this,e);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.cardTouristicContentMouseOver=createEvent(this,"cardTouristicContentMouseOver",7);this.cardTouristicContentMouseLeave=createEvent(this,"cardTouristicContentMouseLeave",7);this.fontFamily="Roboto";this.touristicContent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperTouristicContentRef){this.swiperTouristicContent=new Swiper(this.swiperTouristicContentRef,{modules:[Navigation,Pagination,Keyboard],navigation:{prevEl:this.prevElTouristicContentRef,nextEl:this.nextElTouristicContentRef},pagination:{el:this.paginationElTouristicContentRef},allowTouchMove:false,keyboard:false});this.swiperTouristicContentRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperTouristicContent.keyboard.enable()}else{e.swiperTouristicContent.keyboard.disable()}}}};e.prototype.handleFullscreen=function(){if(this.touristicContent.attachments&&this.touristicContent.attachments[0]&&this.touristicContent.attachments[0].url){this.swiperTouristicContentRef.requestFullscreen()}};e.prototype.handleMouseOver=function(){this.cardTouristicContentMouseOver.emit(this.touristicContent.id)};e.prototype.handleMouseLeave=function(){this.cardTouristicContentMouseLeave.emit()};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/default-image.svg"));var i=state.touristicContentCategories.find((function(t){return t.id===e.touristicContent.category}));return h(Host,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},h("div",{class:this.isLargeView?"touristic-content-card-large-view-container".concat(state.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""):"touristic-content-card-container".concat(state.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""),onClick:function(){if(!e.isInsideHorizontalList){e.touristicContentCardPress.emit(e.touristicContent.id)}}},h("div",{class:"touristic-content-type-img-container"},this.isInsideHorizontalList?h("div",{class:"swiper",ref:function(t){return e.swiperTouristicContentRef=t}},h("div",{class:"swiper-wrapper"},this.touristicContent.attachments.filter((function(e){return e.type==="image"})).length>0?this.touristicContent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{class:"touristic-content-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-touristic-content-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElTouristicContentRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElTouristicContentRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElTouristicContentRef=t}})):this.touristicContent.attachments.filter((function(e){return e.type==="image"})).length>0?h("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.touristicContent.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}):h("div",null)),h("div",{class:"touristic-content-sub-container"},h("div",{class:"touristic-content-category-container"},h("img",{crossorigin:"anonymous",src:i.pictogram}),h("div",{class:"touristic-content-category-name"},i.label)),h("div",{class:"touristic-content-name"},this.touristicContent.name)),this.isInsideHorizontalList&&h("div",{class:"touristic-content-more-detail-container"},h("button",{class:"more-details-button",onClick:function(){return e.touristicContentCardPress.emit(e.touristicContent.id)}},"Plus de détails"))))};return e}();GrwTouristicContentCard.style=grwTouristicContentCardCss;var grwTouristicContentDetailCss='@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}';var GrwTouristicContentDetail=function(){function e(e){registerInstance(this,e);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}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperImagesRef){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}}};e.prototype.handleFullscreen=function(){if(state.currentTouristicContent.attachments&&state.currentTouristicContent.attachments[0]&&state.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/default-image.svg"));var i=state.touristicContentCategories&&state.currentTouristicContent&&state.touristicContentCategories.find((function(e){return e.id===state.currentTouristicContent.category}));var r=state.currentTouristicContent&&state.currentTouristicContent.cities.map((function(e){var t;return(t=state.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return h(Host,{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"}},state.currentTouristicContent&&h("div",{class:"touristic-content-detail-container",ref:function(t){return e.touristicContentDetailContainerRef=t}},h("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},h("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},h("div",{class:"swiper-wrapper"},state.currentTouristicContent.attachments.length>0?state.currentTouristicContent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),h("div",{class:"touristic-content-category-container"},h("img",{crossorigin:"anonymous",src:i.pictogram}),h("div",{class:"touristic-content-category-name"},i.label)),h("div",{class:"name"},state.currentTouristicContent.name),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate$1[state.language].download),h("div",{class:"links-container"},h("a",{href:"".concat(state.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),state.currentTouristicContent.description_teaser&&h("div",null,h("div",{class:"divider"}),h("div",{class:"description-teaser",innerHTML:state.currentTouristicContent.description_teaser})),h("div",{class:"divider"}),state.currentTouristicContent.practical_info&&h("div",{class:"description-container",ref:function(t){return e.descriptionRef=t}},h("div",{class:"description-title"},translate$1[state.language].description),h("div",{class:"description",innerHTML:state.currentTouristicContent.description})),r&&r.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate$1[state.language].city," : "),h("div",{innerHTML:r.join(", ")})),state.currentTouristicContent.practical_info&&h("div",null,h("div",{class:"divider"}),h("div",{class:"useful-information-container"},h("div",{class:"useful-information-title"},translate$1[state.language].usefulInformation," : "),h("div",{innerHTML:state.currentTouristicContent.practical_info}))),(state.currentTouristicContent.contact||state.currentTouristicContent.email||state.currentTouristicContent.website)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"contact-container"},h("div",{class:"contact-title"},translate$1[state.language].contact," : "),state.currentTouristicContent.contact&&h("div",{innerHTML:state.currentTouristicContent.contact}),state.currentTouristicContent.email&&h("div",{class:"email-container"},h("div",null,translate$1[state.language].email," : "),h("div",{innerHTML:state.currentTouristicContent.email})),state.currentTouristicContent.website&&h("div",{class:"website-container"},h("div",null,translate$1[state.language].website," : "),h("div",{innerHTML:state.currentTouristicContent.website})))),h("div",{class:"detail-bottom-space"})))};return e}();GrwTouristicContentDetail.style=grwTouristicContentDetailCss;var GrwTouristicContentProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContent()};e.prototype.handleTouristicContent=function(){var e=[];e.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.touristicContentCategories?fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],e,true),[fetch("".concat(state.api,"touristiccontent/").concat(this.touristicContentId,"/?language=").concat(state.language,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website"),this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];state.trekNetworkError=false;if(t){state.cities=t.results}if(i){state.touristicContentCategories=i.results}state.currentTouristicContent=r})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTouristicContentsListCss='.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}';var GrwTouristicContentsList$1=function(){function e(e){registerInstance(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,this.step),true)}onChange("currentTouristicContents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.currentTouristicContents){e.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,e.step),true)}}));onChange("touristicContentsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.touristicContentsWithinBounds){e.touristicContentsToDisplay=__spreadArray([],state.touristicContentsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<state.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=state.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=state.touristicContentsWithinBounds.length?state.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{class:"current-touristic-contents-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate$1[state.language].home.touristicContents:translate$1[state.language].home.touristicContent)),h("div",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(t){return h("grw-touristic-content-card",{fontFamily:e.fontFamily,"reset-store-on-disconnected":"false",key:"touristic-content-".concat(t.id),touristicContent:t,"is-large-view":e.isLargeView,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();GrwTouristicContentsList$1.style=grwTouristicContentsListCss;var GrwTouristicContentsProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContents()};e.prototype.handleTouristicContents=function(){var e="".concat(state.api,"touristiccontent/?language=").concat(state.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.districts?fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!state.touristicContentCategories?fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];state.trekNetworkError=false;if(t){state.cities=t.results}if(i){state.districts=i.results}if(r){state.touristicContentCategories=r.results}state.touristicContents=n.results;state.currentTouristicContents=n.results})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTouristicEventCardCss='@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}';var GrwTouristicEvent=function(){function e(e){registerInstance(this,e);this.touristicEventCardPress=createEvent(this,"touristicEventCardPress",7);this.cardTouristicEventMouseOver=createEvent(this,"cardTouristicEventMouseOver",7);this.cardTouristicEventMouseLeave=createEvent(this,"cardTouristicEventMouseLeave",7);this.fontFamily="Roboto";this.touristicEvent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperTouristicEventRef){this.swiperTouristicEvent=new Swiper(this.swiperTouristicEventRef,{modules:[Navigation,Pagination,Keyboard],navigation:{prevEl:this.prevElTouristicEventRef,nextEl:this.nextElTouristicEventRef},pagination:{el:this.paginationElTouristicEventRef},allowTouchMove:false,keyboard:false});this.swiperTouristicEventRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperTouristicEvent.keyboard.enable()}else{e.swiperTouristicEvent.keyboard.disable()}}}};e.prototype.handleFullscreen=function(){if(this.touristicEvent.attachments&&this.touristicEvent.attachments[0]&&this.touristicEvent.attachments[0].url){this.swiperTouristicEventRef.requestFullscreen()}};e.prototype.handleMouseOver=function(){this.cardTouristicEventMouseOver.emit(this.touristicEvent.id)};e.prototype.handleMouseLeave=function(){this.cardTouristicEventMouseLeave.emit()};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/default-image.svg"));var i=state.touristicEventTypes.find((function(t){return t.id===e.touristicEvent.type}));return h(Host,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},h("div",{class:this.isLargeView?"touristic-event-card-large-view-container".concat(state.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""):"touristic-event-card-container".concat(state.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""),onClick:function(){if(!e.isInsideHorizontalList){e.touristicEventCardPress.emit(e.touristicEvent.id)}}},h("div",{class:"touristic-event-type-img-container"},this.isInsideHorizontalList?h("div",{class:"swiper",ref:function(t){return e.swiperTouristicEventRef=t}},h("div",{class:"swiper-wrapper"},this.touristicEvent.attachments.length>0?this.touristicEvent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{class:"touristic-event-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-touristic-event-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElTouristicEventRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElTouristicEventRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElTouristicEventRef=t}})):this.touristicEvent.attachments.filter((function(e){return e.type==="image"})).length>0?h("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.touristicEvent.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}):h("div",null)),h("div",{class:"touristic-event-sub-container"},h("div",{class:"touristic-event-type-container"},h("img",{crossorigin:"anonymous",src:i.pictogram}),h("div",{class:"touristic-event-type-name"},i.type)),h("div",{class:"touristic-event-name"},this.touristicEvent.name),(this.touristicEvent.begin_date||this.touristicEvent.end_date)&&h("div",{class:"touristic-event-date-container"},this.touristicEvent.begin_date&&h("div",{class:"touristic-event-date"},"Date de début : ",this.touristicEvent.begin_date),this.touristicEvent.end_date&&h("div",{class:"touristic-event-date"},"Date de fin : ",this.touristicEvent.end_date))),this.isInsideHorizontalList&&h("div",{class:"touristic-event-more-detail-container"},h("button",{class:"more-details-button",onClick:function(){return e.touristicEventCardPress.emit(e.touristicEvent.id)}},"Plus de détails"))))};return e}();GrwTouristicEvent.style=grwTouristicEventCardCss;var grwTouristicEventDetailCss='@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}';var GrwTouristicEventDetail=function(){function e(e){registerInstance(this,e);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}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}};e.prototype.handleFullscreen=function(){if(state.currentTouristicEvent.attachments&&state.currentTouristicEvent.attachments[0]&&state.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t=getAssetPath("".concat("","assets/default-image.svg"));var i=state.touristicEventTypes&&state.currentTouristicEvent&&state.touristicEventTypes.find((function(e){return e.id===state.currentTouristicEvent.type}));var r=state.currentTouristicEvent&&state.currentTouristicEvent.cities.map((function(e){var t;return(t=state.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return h(Host,{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"}},state.currentTouristicEvent&&h("div",{class:"touristic-event-detail-container",ref:function(t){return e.touristicEventDetailContainerRef=t}},h("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},h("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},h("div",{class:"swiper-wrapper"},state.currentTouristicEvent.attachments.length>0?state.currentTouristicEvent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),h("div",{class:"touristic-event-category-container"},h("img",{crossorigin:"anonymous",src:i.pictogram}),h("div",{class:"touristic-event-category-name"},i.type)),h("div",{class:"name"},state.currentTouristicEvent.name),(state.currentTouristicEvent.begin_date||state.currentTouristicEvent.end_date)&&h("div",{class:"touristic-event-date-container"},state.currentTouristicEvent.begin_date&&h("div",{class:"touristic-event-date"},"Date de début : ",state.currentTouristicEvent.begin_date),state.currentTouristicEvent.end_date&&h("div",{class:"touristic-event-date"},"Date de fin : ",state.currentTouristicEvent.end_date)),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate$1[state.language].download),h("div",{class:"links-container"},h("a",{href:"".concat(state.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),state.currentTouristicEvent.description_teaser&&h("div",null,h("div",{class:"divider"}),h("div",{class:"description-teaser",innerHTML:state.currentTouristicEvent.description_teaser})),h("div",{class:"divider"}),state.currentTouristicEvent.practical_info&&h("div",{class:"description-container",ref:function(t){return e.descriptionRef=t}},h("div",{class:"description-title"},translate$1[state.language].description),h("div",{class:"description",innerHTML:state.currentTouristicEvent.description})),r&&r.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate$1[state.language].city," : "),h("div",{innerHTML:r.join(", ")})),state.currentTouristicEvent.practical_info&&h("div",null,h("div",{class:"divider"}),h("div",{class:"useful-information-container"},h("div",{class:"useful-information-title"},translate$1[state.language].usefulInformation," : "),h("div",{innerHTML:state.currentTouristicEvent.practical_info}))),(state.currentTouristicEvent.contact||state.currentTouristicEvent.email||state.currentTouristicEvent.website)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"contact-container"},h("div",{class:"contact-title"},translate$1[state.language].contact," : "),state.currentTouristicEvent.contact&&h("div",{innerHTML:state.currentTouristicEvent.contact}),state.currentTouristicEvent.email&&h("div",{class:"email-container"},h("div",null,translate$1[state.language].email," : "),h("div",{innerHTML:state.currentTouristicEvent.email})),state.currentTouristicEvent.website&&h("div",{class:"website-container"},h("div",null,translate$1[state.language].website," : "),h("div",{innerHTML:state.currentTouristicEvent.website})))),h("div",{class:"detail-bottom-space"})))};return e}();GrwTouristicEventDetail.style=grwTouristicEventDetailCss;var GrwTouristicEventProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvent()};e.prototype.handleTouristicEvent=function(){var e=[];e.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],e,true),[fetch("".concat(state.api,"touristicevent/").concat(this.touristicEventId,"/?language=").concat(state.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)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];state.trekNetworkError=false;if(t){state.cities=t.results}if(i){state.touristicEventTypes=i.results}state.currentTouristicEvent=r})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTouristicEventsListCss='.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}';var GrwTouristicContentsList=function(){function e(e){registerInstance(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,this.step),true)}onChange("currentTouristicEvents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.currentTouristicContents){e.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,e.step),true)}}));onChange("touristicEventsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.touristicEventsWithinBounds){e.touristicEventsToDisplay=__spreadArray([],state.touristicEventsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<state.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=state.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=state.touristicEventsWithinBounds.length?state.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicEventsWithinBounds&&h("div",{class:"current-touristic-events-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate$1[state.language].home.touristicEvents:translate$1[state.language].home.touristicEvent)),h("div",{class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(t){return h("grw-touristic-event-card",{"reset-store-on-disconnected":"false",key:"touristic-event-".concat(t.id),touristicEvent:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();GrwTouristicContentsList.style=grwTouristicEventsListCss;var GrwTouristicEventsProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvents()};e.prototype.handleTouristicEvents=function(){var e="".concat(state.api,"touristicevent/?language=").concat(state.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.districts?fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];state.trekNetworkError=false;if(t){state.cities=t.results}if(i){state.districts=i.results}if(r){state.touristicEventTypes=r.results}state.touristicEvents=n.results;state.currentTouristicEvents=n.results})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTrekCardCss='.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}';var GrwTrekCard=function(){function e(e){registerInstance(this,e);this.trekCardPress=createEvent(this,"trekCardPress",7);this.cardTrekMouseOver=createEvent(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=createEvent(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}e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.difficulty=state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.departureCity=state.cities.find((function(t){return t.id===e.currentTrek.departure_city}))}onChange("currentTrek",(function(){e.currentTrek=e.trek?e.trek:state.currentTrek;if(e.currentTrek){e.difficulty=e.currentTrek.difficulty&&state.difficulties?state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty})):null;e.route=e.currentTrek.route&&state.routes?state.routes.find((function(t){return t.id===e.currentTrek.route})):null;e.practice=e.currentTrek.practice&&state.practices?state.practices.find((function(t){return t.id===e.currentTrek.practice})):null;e.themes=e.currentTrek.themes&&state.themes?state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)})):null;e.departureCity=e.currentTrek.departure_city&&state.cities?state.cities.find((function(t){return t.id===e.currentTrek.departure_city})):null}}))};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};e.prototype.handleMouseOver=function(){this.cardTrekMouseOver.emit(this.currentTrek.id)};e.prototype.handleMouseLeave=function(){this.cardTrekMouseLeave.emit()};e.prototype.render=function(){var e=this;var t,i,r,n,o,s,a;return h(Host,{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&&h("div",{class:this.isStep?"trek-card-container trek-step-card".concat(state.selectedStepId===this.currentTrek.id?" selected-trek-card":""):this.isLargeView?"trek-card-large-view-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""):"trek-card-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""),onClick:function(){return e.trekCardPress.emit(e.currentTrek.id)}},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0&&h("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}),h("div",{class:"sub-container"},this.departureCity&&h("div",{class:"departure"},this.departureCity.name),h("div",{class:"name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&h("div",{class:"themes-container"},this.themes.map((function(e){return h("div",{class:"theme"},e.label)}))),h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((i=this.difficulty)===null||i===void 0?void 0:i.pictogram)&&h("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(r=this.difficulty)===null||r===void 0?void 0:r.label),h("div",{class:"icon-label duration"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),formatDuration(this.currentTrek.duration))),h("div",{class:"row"},h("div",{class:"icon-label length"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),formatAscent(this.currentTrek.ascent))),!this.isStep&&h("div",{class:"row"},h("div",{class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&h("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route),h("div",{class:"icon-label practice"},((s=this.practice)===null||s===void 0?void 0:s.pictogram)&&h("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(a=this.practice)===null||a===void 0?void 0:a.name))))))};return e}();GrwTrekCard.style=grwTrekCardCss;var grwTrekDetailCss='@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}';var threshold=1;var presentation={visible:true,indicator:false,ref:"presentationOptionRef"};var steps={visible:false,indicator:false,ref:"stepsOptionRef"};var description={visible:false,indicator:false,ref:"descriptionOptionRef"};var recommendations={visible:false,indicator:false,ref:"recommendationsOptionRef"};var sensitiveArea={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var informationPlaces={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var pois={visible:false,indicator:false,ref:"poisOptionRef"};var touristicContents={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var touristicEvents={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var options={presentation:presentation,steps:steps,description:description,recommendations:recommendations,sensitiveArea:sensitiveArea,informationPlaces:informationPlaces,pois:pois,touristicContents:touristicContents,touristicEvents:touristicEvents};var GrwTrekDetail=function(){function e(e){registerInstance(this,e);this.descriptionIsInViewport=createEvent(this,"descriptionIsInViewport",7);this.parkingIsInViewport=createEvent(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=createEvent(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.stepsIsInViewport=createEvent(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.parentTrekPress=createEvent(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}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.swiperStep=new Swiper(this.swiperStepRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){var t=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});t.observe(this.presentationRef)}if(this.stepsRef){var i=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.stepsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{steps:Object.assign(Object.assign({},e.defaultOptions.steps),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});i.observe(this.stepsRef)}if(this.descriptionRef){var r=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.descriptionIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{description:Object.assign(Object.assign({},e.defaultOptions.description),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});r.observe(this.descriptionRef)}if(this.recommendationRef){var n=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{recommendations:Object.assign(Object.assign({},e.defaultOptions.recommendations),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});n.observe(this.recommendationRef)}if(this.parkingRef){var o=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.parkingIsInViewport.emit(i)}),{threshold:threshold});o.observe(this.parkingRef)}if(this.sensitiveAreaRef){var s=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.sensitiveAreaIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{sensitiveArea:Object.assign(Object.assign({},e.defaultOptions.sensitiveArea),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});s.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){var a=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.informationPlacesIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{informationPlaces:Object.assign(Object.assign({},e.defaultOptions.informationPlaces),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});a.observe(this.informationPlacesRef)}if(this.poiRef){var l=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.poiIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{pois:Object.assign(Object.assign({},e.defaultOptions.pois),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});l.observe(this.poiRef)}if(this.touristicContentsRef){var c=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicContentsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicContents:Object.assign(Object.assign({},e.defaultOptions.touristicContents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});c.observe(this.touristicContentsRef)}if(this.touristicEventsRef){var p=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicEventsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicEvents:Object.assign(Object.assign({},e.defaultOptions.touristicEvents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:threshold});p.observe(this.touristicContentsRef)}};e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:state.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=state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}this.cities=this.currentTrek.cities.map((function(e){var t;return(t=state.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));this.hasStep=this.currentTrek.children.length>0}onChange("currentTrek",(function(){e.currentTrek=e.trek?e.trek:state.currentTrek;if(e.currentTrek){e.defaultOptions=e.handleOptions();e.options=Object.assign(Object.assign({},e.defaultOptions),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:true})});e.difficulty=state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));e.route=state.routes.find((function(t){return t.id===e.currentTrek.route}));e.practice=state.practices.find((function(t){return t.id===e.currentTrek.practice}));e.themes=state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));e.labels=state.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));e.sources=state.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));e.accessibilities=state.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){e.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}e.cities=e.currentTrek.cities.map((function(e){var t;return(t=state.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));e.hasStep=e.currentTrek.children.length>0}}))};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};e.prototype.handleOptions=function(){var e=this;return Object.assign(Object.assign({},options),{presentation:Object.assign({},presentation),steps:Object.assign(Object.assign({},steps),{visible:Boolean(state.parentTrek)}),description:Object.assign(Object.assign({},description),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},recommendations),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},sensitiveArea),{visible:Boolean(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},informationPlaces),{visible:Boolean(state.currentInformationDesks&&state.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0)}),pois:Object.assign(Object.assign({},pois),{visible:Boolean(state.currentPois&&state.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},touristicContents),{visible:Boolean(state.trekTouristicContents&&state.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},touristicEvents),{visible:Boolean(state.touristicEvents&&state.touristicEvents.length>0)})})};e.prototype.handleFullscreen=function(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.handleIndicatorSelectedTrekOption=function(){var e;var t=0;var i=0;var r=0;var n=Object.values(this.options);var o=0;while(!e&&o<n.length){if(n[o].indicator){e=n[o]}else{if(n[o].visible){t+=1;i+=this[n[o].ref].clientWidth}}o++}if(e&&this[e.ref]){r=this[e.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*t-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:e.ref}}};e.prototype.handleScrollTo=function(e){this.trekDetailContainerRef.scrollTo({top:e.offsetTop-64})};e.prototype.render=function(){var e=this;var t,i,r,n,o,s,a;return h(Host,{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&&h("div",{class:"trek-options"},h("a",{ref:function(t){return e.presentationOptionRef=t},onClick:function(){return e.handleScrollTo(e.presentationRef)},class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.presentation),this.options.steps.visible&&h("a",{ref:function(t){return e.stepsOptionRef=t},onClick:function(){return e.handleScrollTo(e.stepsRef)},class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":"")},translate$1[state.language].options.steps),this.options.description.visible&&h("a",{ref:function(t){return e.descriptionOptionRef=t},onClick:function(){return e.handleScrollTo(e.descriptionRef)},class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.description),this.options.recommendations.visible&&h("a",{ref:function(t){return e.recommendationsOptionRef=t},onClick:function(){return e.handleScrollTo(e.recommendationRef)},class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{ref:function(t){return e.sensitiveAreaOptionRef=t},onClick:function(){return e.handleScrollTo(e.sensitiveAreaRef)},class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{ref:function(t){return e.informationPlacesOptionRef=t},onClick:function(){return e.handleScrollTo(e.informationPlacesRef)},class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.informationPlaces),this.options.pois.visible&&h("a",{ref:function(t){return e.poisOptionRef=t},onClick:function(){return e.handleScrollTo(e.poiRef)},class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.pois),this.options.touristicContents.visible&&h("a",{ref:function(t){return e.touristicContentsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicContentsRef)},class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{ref:function(t){return e.touristicEventsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicEventsRef)},class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":"")},translate$1[state.language].options.touristicEvents),this.presentationOptionRef&&h("span",{class:"indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&h("div",{class:"trek-detail-container",ref:function(t){return e.trekDetailContainerRef=t}},h("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},h("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},h("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).map((function(t){return h("div",{class:"swiper-slide"},h("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))}))),h("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),h("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),h("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),h("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&h("div",{class:"themes-container"},this.themes.map((function(e){return h("div",{class:"theme"},e.label)}))),h("div",{class:"sub-container"},h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&h("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),h("div",{class:"icon-label duration"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),formatDuration((r=this.currentTrek)===null||r===void 0?void 0:r.duration)),h("div",{class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&h("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route)),h("div",{class:"row"},h("div",{class:"icon-label length"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),formatAscent(this.currentTrek.ascent)),h("div",{class:"icon-label practice"},((s=this.practice)===null||s===void 0?void 0:s.pictogram)&&h("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(a=this.practice)===null||a===void 0?void 0:a.name)),this.currentTrek.ratings.map((function(e){return h("div",{class:"row"},"".concat(state.ratingsScale.find((function(t){return t.id===state.ratings.find((function(t){return t.id===e})).scale})).name," : ").concat(state.ratings.find((function(t){return t.id===e})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&h("div",{class:"row"},this.currentTrek.ratings_description))),h("div",{class:"divider"}),h("div",{class:"downloads-container"},h("div",{class:"download-title"},translate$1[state.language].downloads),h("div",{class:"links-container"},h("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),h("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),h("a",{href:"".concat(this.currentTrek.pdf),target:"_blank",rel:"noopener noreferrer"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),h("div",{class:"divider"}),this.currentTrek.description_teaser&&h("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",null,h("div",{class:"divider"}),h("div",{class:"parent-trek-container"},h("button",{class:"parent-trek-title",onClick:function(){return e.parentTrekPress.emit(state.parentTrekId)}},h("div",null,"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{class:"step-container"},h("div",{class:"step-title",ref:function(t){return e.stepsRef=t}},"".concat(state.currentTrekSteps.length," ").concat(translate$1[state.language].steps)),h("div",{class:"swiper swiper-step",ref:function(t){return e.swiperStepRef=t}},h("div",{class:"swiper-wrapper"},state.currentTrekSteps&&state.currentTrekSteps.map((function(t){return h("div",{class:"swiper-slide"},h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(t.id),trek:t,"is-large-view":false,"is-step":true,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow}))}))))),h("div",{class:"divider"}),this.currentTrek.description&&h("div",{class:"description-container"},h("div",{class:"description-title",ref:function(t){return e.descriptionRef=t}},translate$1[state.language].description),h("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{class:"departure-container"},h("div",{class:"departure-title"},translate$1[state.language].departure," : "),h("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{class:"arrival-container"},h("div",{class:"arrival-title"},translate$1[state.language].arrival," : "),h("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&h("div",{class:"cities-container"},h("div",{class:"cities-title"},translate$1[state.language].crossedCities," : "),h("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&h("div",{class:"weather-container"},h("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)})),this.currentTrek.access&&h("div",null,h("div",{class:"divider"}),h("div",{class:"access-container"},h("div",{class:"access-title"},translate$1[state.language].roadAccess),h("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&h("div",null,h("div",{class:"divider"}),h("div",{class:"public-transport-container"},h("div",{class:"public-transport-title"},translate$1[state.language].transport),h("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"advice-container"},h("div",{class:"advice-title",ref:function(t){return e.recommendationRef=t}},translate$1[state.language].recommendations),this.currentTrek.advice&&h("div",{class:"current-advice-container"},h("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),h("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((function(e){return h("div",{class:"label-container"},h("div",{class:"label-sub-container"},e.pictogram&&h("img",{crossorigin:"anonymous",src:e.pictogram}),h("div",{class:"label-name",innerHTML:e.name})),h("div",{class:"label-advice",innerHTML:e.advice}))})))),this.currentTrek.advised_parking&&h("div",null,h("div",{class:"divider"}),h("div",{class:"advised-parking-container"},h("div",{class:"advised-parking-title",ref:function(t){return e.parkingRef=t}},translate$1[state.language].recommendedParking),h("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&h("div",null,h("div",{class:"divider"}),h("div",{class:"gear-container"},h("div",{class:"gear-title"},translate$1[state.language].equipments),h("div",{class:"gear",innerHTML:this.currentTrek.gear}))),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"sensitive-areas-container"},h("div",{class:"sensitive-areas-title",ref:function(t){return e.sensitiveAreaRef=t}},translate$1[state.language].environmentalSensitiveAreas),state.currentSensitiveAreas.map((function(e){return h("grw-sensitive-area-detail",{sensitiveArea:e})})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"information-desks-container"},h("div",{class:"information-desks-title",ref:function(t){return e.informationPlacesRef=t}},translate$1[state.language].informationPlaces),h("div",{class:"swiper swiper-information-desks",ref:function(t){return e.swiperInformationDesksRef=t}},h("div",{class:"swiper-wrapper"},state.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).map((function(e){return h("div",{class:"swiper-slide"},h("grw-information-desk",{informationDesk:e}))})))))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&h("div",null,h("div",{class:"divider"}),h("div",{class:"accessibilities-container"},h("div",{class:"accessibilities-title"},translate$1[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{innerHTML:this.currentTrek.disabled_infrastructure}),h("div",{class:"accessibilities-content-container"},this.accessibilities.map((function(e){return h("div",{class:"accessibility-content-container"},h("img",{crossorigin:"anonymous",src:e.pictogram}),h("div",{innerHTML:e.name}))}))),this.currentTrek.accessibility_level&&h("div",{class:"accessibility-level-container"},h("div",{class:"accessibility-level-title"},translate$1[state.language].accessibilityLevel),h("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{class:"accessibility-slope-container"},h("div",{class:"accessibility-slope-title"},translate$1[state.language].accessibilitySlope),h("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{class:"accessibility-width-container"},h("div",{class:"accessibility-width-title"},translate$1[state.language].accessibilityWidth),h("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{class:"accessibility-signage-container"},h("div",{class:"accessibility-signage-title"},translate$1[state.language].accessibilitySignage),h("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{class:"accessibility-covering-container"},h("div",{class:"accessibility-covering-title"},translate$1[state.language].accessibilityCovering),h("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{class:"accessibility-exposure-container"},h("div",{class:"accessibility-exposure-title"},translate$1[state.language].accessibilityExposure),h("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{class:"accessibility-advice-container"},h("div",{class:"accessibility-advice-title"},translate$1[state.language].accessibilityAdvices),h("div",{innerHTML:this.currentTrek.accessibility_advice})))),state.currentPois&&state.currentPois.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"pois-container"},h("div",{class:"pois-title",ref:function(t){return e.poiRef=t}},translate$1[state.language].pois(state.currentPois.length)),h("div",{class:"swiper swiper-pois",ref:function(t){return e.swiperPoisRef=t}},h("div",{class:"swiper-wrapper"},state.currentPois.map((function(e){return h("div",{class:"swiper-slide"},h("grw-poi",{poi:e}))})))))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"touristic-content-container"},h("div",{class:"touristic-content-title",ref:function(t){return e.touristicContentsRef=t}},translate$1[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{class:"swiper swiper-touristic-content",ref:function(t){return e.swiperTouristicContentsRef=t}},h("div",{class:"swiper-wrapper"},state.trekTouristicContents.map((function(t){return h("div",{class:"swiper-slide"},h("grw-touristic-content-card",{fontFamily:e.fontFamily,touristicContent:t,isInsideHorizontalList:true}))})))))),state.touristicEvents&&state.touristicEvents.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"touristic-event-container"},h("div",{class:"touristic-event-title",ref:function(t){return e.touristicEventsRef=t}},translate$1[state.language].touristicEvents(state.touristicEvents.length)),h("div",{class:"swiper swiper-touristic-event",ref:function(t){return e.swiperTouristicEventsRef=t}},h("div",{class:"swiper-wrapper"},state.touristicEvents.map((function(t){return h("div",{class:"swiper-slide"},h("grw-touristic-event-card",{fontFamily:e.fontFamily,touristicEvent:t}))})))))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",null,h("div",{class:"divider"}),h("div",{class:"source-container"},h("div",{class:"source-title"},translate$1[state.language].sources),this.sources.map((function(e){return h("div",{class:"source-sub-container"},e.pictogram&&h("img",{crossorigin:"anonymous",src:e.pictogram}),h("div",null,h("div",{class:"source-name",innerHTML:e.name}),h("a",{class:"source-advice",href:e.website,innerHTML:e.website})))})))),h("div",{class:"detail-bottom-space"})))};return e}();GrwTrekDetail.style=grwTrekDetailCss;var GrwTrekProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTrek()};e.prototype.handleTrek=function(){var e=this;var t=[];t.push(!state.difficulties?fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!state.routes?fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));t.push(!state.practices?fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!state.themes?fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.accessibilities?fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!state.ratings?fetch("".concat(state.api,"trek_rating/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));t.push(!state.ratings?fetch("".concat(state.api,"trek_ratingscale/?language=").concat(state.language,"&fields=id,name"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(state.language,"&published=true&trek=").concat(this.trekId,"&fields=id,geometry,name,description,contact,info_url,period,practices"),this.init).then((function(e){if(e.ok){return e}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(state.api,"label/?language=").concat(state.language,"&fields=id,name,advice,pictogram"),this.init),fetch("".concat(state.api,"source/?language=").concat(state.language,"&fields=id,name,website,pictogram"),this.init),fetch("".concat(state.api,"trek_accessibility_level/?language=").concat(state.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),fetch("".concat(state.api,"poi/?language=").concat(state.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init),fetch("".concat(state.api,"informationdesk/?language=").concat(state.language,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),this.init),fetch("".concat(state.api,"touristiccontent/?language=").concat(state.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,category,geometry&page_size=999"),this.init),fetch("".concat(state.api,"touristiccontent_category/?language=").concat(state.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),fetch("".concat(state.api,"touristicevent/?language=").concat(state.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(state.api,"trek/").concat(this.trekId,"/?language=").concat(state.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)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],p=t[8],u=t[9],d=t[10],h=t[11],f=t[12],m=t[13],g=t[14],v=t[15],y=t[16],w=t[17],b=t[18],_=t[19];return __awaiter(e,void 0,void 0,(function(){var e,t,x,k;return __generator(this,(function(A){switch(A.label){case 0:state.trekNetworkError=false;if(!(_.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(_.children.length>0))return[3,1];state.parentTrekId=_.id;state.parentTrek=_;e.push.apply(e,_.children);return[3,3];case 1:return[4,fetch("".concat(state.api,"trek/").concat(state.parentTrekId,"/?language=").concat(state.language,"&published=true&fields=name,children")).then((function(e){return e.json()}))];case 2:t=A.sent();state.parentTrek=t;e.push.apply(e,t.children);A.label=3;case 3:x=[];e.forEach((function(e){x.push(fetch("".concat(state.api,"trek/").concat(e,"/?language=").concat(state.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")))}));k=state;return[4,Promise.all(__spreadArray([],x,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 4:k.currentTrekSteps=A.sent();A.label=5;case 5:if(i){state.difficulties=i.results}if(r){state.routes=r.results}if(n){state.practices=n.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}))}if(o){state.themes=o.results}if(s){state.cities=s.results}if(a){state.accessibilities=a.results}if(l){state.ratings=l.results}if(c){state.ratingsScale=c.results}if(p){state.currentSensitiveAreas=p.results}state.labels=u.results;state.sources=d.results;if(h){state.accessibilitiesLevel=h.results}if(v){state.trekTouristicContents=v.results}if(y){state.touristicContentCategories=y.results}if(w){state.touristicEvents=w.results}if(b){state.touristicEventTypes=b.results}state.currentPois=f.results;state.poiTypes=m.results;state.currentInformationDesks=g.results;state.currentTrek=_;return[2]}}))}))})).catch((function(){state.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};e.prototype.render=function(){return h(Host,null)};return e}();var grwTreksListCss='.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}';var GrwTreksList=function(){function e(e){registerInstance(this,e);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(state.currentTreks){this.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,this.step),true)}onChange("currentTreks",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.currentTreks){e.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,e.step),true)}}));onChange("treksWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(state.treksWithinBounds){e.treksToDisplay=__spreadArray([],state.treksWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<state.treksWithinBounds.length){this.treksToDisplay=state.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=state.treksWithinBounds.length?state.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return h(Host,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate$1[state.language].treks:translate$1[state.language].trek)),h("div",{class:"treks-list-container"},this.treksToDisplay.map((function(t){return h("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(t.id),trek:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&h("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();GrwTreksList.style=grwTreksListCss;var GrwTreksProvider=function(){function e(e){registerInstance(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined}e.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTreks()};e.prototype.disconnectedCallback=function(){this.controller.abort();state.treksNetworkError=false};e.prototype.handleTreks=function(){var e="".concat(this.api,"trek/?language=").concat(state.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));this.routes&&(e+="&routes=".concat(this.routes));this.practices&&(e+="&practices=".concat(this.practices));e+="&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("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(state.api,"label/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram&published=true&page_size=999"),this.init),fetch("".concat(state.api,"district/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch(e,this.init)]).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3],o=e[4],s=e[5],a=e[6],l=e[7],c=e[8];state.treksNetworkError=false;state.difficulties=t.results;state.routes=i.results;state.practices=r.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}));state.themes=n.results;state.cities=o.results;state.accessibilities=s.results;state.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];state.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}];state.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];state.labels=a.results;state.districts=l.results;state.treks=c.results;state.currentTreks=c.results})).catch((function(){return state.treksNetworkError=true}))};e.prototype.render=function(){return h(Host,null)};return e}();export{GrwApp as grw_app,GrwCommonButton as grw_common_button,GrwExtendedFab as grw_extended_fab,GrwFilter as grw_filter,GrwFilters as grw_filters,GrwInformationDeskDetail as grw_information_desk,GrwLoader as grw_loader,GrwMap as grw_map,GrwPoiDetail as grw_poi,GrwSearch as grw_search,GrwSegmentedSegment as grw_segmented_segment,GrwSelectLanguage as grw_select_language,GrwSensitiveAreaDetail as grw_sensitive_area_detail,GrwTouristicContentCard as grw_touristic_content_card,GrwTouristicContentDetail as grw_touristic_content_detail,GrwTouristicContentProvider as grw_touristic_content_provider,GrwTouristicContentsList$1 as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicEvent as grw_touristic_event_card,GrwTouristicEventDetail as grw_touristic_event_detail,GrwTouristicEventProvider as grw_touristic_event_provider,GrwTouristicContentsList as grw_touristic_events_list,GrwTouristicEventsProvider as grw_touristic_events_provider,GrwTrekCard as grw_trek_card,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
|
|
15
15
|
//# sourceMappingURL=grw-app_28.entry.js.map
|