PageSourceSearch

https://www.dangers-naturels.ch/static/5353.664fdb43.js

js dangers-naturels.ch collected 2026-09-25 04:39:42 UTC 74,402 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5353],{60880:(e,a,t)=>{t.d(a,{A:()=>i.ClimateMonitorDiagram});var i=t(57412)},31209:(e,a,t)=>{t.r(a),t.d(a,{LocalForecast:()=>Mt,LocalForecastElement:()=>At,default:()=>Vt});var i=t(65723),n=t(41594),r=t(69913),s=t(91536),l=t(75857),o=t(97848),d=t(28974),c=t(62278);const u=t.p+"css/mch/local-forecast-tabs.fa025b05.css",m=[...c.T,u].filter(((e,a,t)=>t.indexOf(e)===a));var h=t(82100),p=t(4583),v=t(41992),g=t(3501);const f=t.p+"css/mch/warning.65e83628.css",b=[...v.r,...g.a,f].filter(((e,a,t)=>t.indexOf(e)===a)),w=t.p+"css/mch/local-forecast-infobox.fed6e1ea.css",x=[...h.i,...p.b,...b,w].filter(((e,a,t)=>t.indexOf(e)===a));var y=t(52487);const j=t.p+"css/mch/local-hazards-list.8f840912.css",_=[...y.i,...c.T,...b,j].filter(((e,a,t)=>t.indexOf(e)===a)),k=t.p+"css/mch/local-forecast-chart.a9154f7d.css",S=[...x,k].filter(((e,a,t)=>t.indexOf(e)===a));var T=t(91871),$=t(73054);const z=t.p+"css/mch/day-chooser-row.9cda1bf9.css",N=t.p+"css/mch/day-chooser.c97be6a4.css",D=[...T.h,...$.y,...p.b,z,N].filter(((e,a,t)=>t.indexOf(e)===a)),A=[t.p+"css/mch/toogle.65473aca.css"].filter(((e,a,t)=>t.indexOf(e)===a)),O=t.p+"css/mch/local-forecast-detail-view.c82ffbe8.css",M=[...p.b,...S,...D,...A,O].filter(((e,a,t)=>t.indexOf(e)===a)),V=t.p+"css/mch/local-forecast-weekly-overview.e765d89b.css",W=[...S,V].filter(((e,a,t)=>t.indexOf(e)===a)),C=t.p+"css/mch/wind-forecast-diagram.fd4a5496.css",P=[...S,...D,C].filter(((e,a,t)=>t.indexOf(e)===a)),E=t.p+"css/mch/webcam-iframe.2c3777eb.css",L=[...d.Y,E].filter(((e,a,t)=>t.indexOf(e)===a)),I=t.p+"css/mch/local-forecast.ccf2eb09.css",R=[...l.Q,...o.G,...d.Y,...m,...x,..._,...M,...W,...P,...L,I].filter(((e,a,t)=>t.indexOf(e)===a));var U=t(6510),F=t(16728),H=t(11618),G=t(12232),B=t(40149),Z=t(39104),K=t(33221),Y=t(20780),q=t(17377),X=t(13324),J=t(85780),Q=t(5113),ee=t(69674);const ae=e=>e.reduce((function(e,a){return e>a?e:a}));var te,ie=t(30469),ne=t(21424),re=t(60880),se=t(94971);!function(e){e[e.DETAIL_VIEW=0]="DETAIL_VIEW",e[e.WEEKLY_OVERVIEW=1]="WEEKLY_OVERVIEW",e[e.WIND_GUST_PEAKS=2]="WIND_GUST_PEAKS"}(te||(te={}));var le=t(49398),oe=t(89484),de=t(6405);const ce=(0,H.V)({"detail-view":{de:"Detailansicht",fr:"Vue détaillée",it:"Informazioni dettagliate",en:"Detail view"},"weekly-overview":{de:"8-Tage Übersicht",fr:"Aperçu à 8 jours",it:"Panoramica per i prossimi 8 giorni",en:"8-day overview"},"wind-gust-peaks":{de:"Wind/Böen",fr:"Vent/Rafales",it:"Vento / raffiche",en:"Wind/Gust peak"}}),ue="detail-view",me="weekly-overview",he="wind-gust-peaks",pe=[{id:ue,label:ce(ue)},{id:me,label:ce(me)},{id:he,label:ce(he)}],ve={"6-day-overview":"weekly-overview"},ge=({tabs:e})=>{const[a,t]=(0,le.A)("local-forecast-tab")(ue),[n,r]=(0,de.un)(a,de.i2,ve),s=e[n];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(oe.o,{className:"local-forecast-tabs--switch",parameters:pe,onChange:e=>{r(e),t(e)},selected:n,analyticsData:{triggerAnalytics:!0,category:"Local Forecast",parameter:"click tab"}}),s]})};var fe=t(79893),be=t(18384),we=t(74837),xe=t(36157),ye=t(35735),je=t(43051);const _e=Object.assign(Object.assign(Object.assign({"temperature-highcharts":{de:"Temperatur",en:"Temperature",fr:"Température",it:"Temperatura"},"rain-highcharts":{de:"Niederschlag",en:"Precipitation",fr:"Précipitation",it:"Precipitazione"},"wind-highcharts":{de:"Wind",en:"Wind",fr:"Vent",it:"Vento"},"wind-speed-highcharts":{de:"Windgeschwindigkeit",en:"Wind Speed",fr:"Vitesse du vent",it:"Velocità del vento"},"wind-direction-highcharts":{de:"Windrichtung",en:"Wind direction",fr:"Direction du vent",it:"Direzione del vento"},"wind-gust-peak-highcharts":{de:"Böenspitzen",en:"Gust peak",fr:"Rafales maximales",it:"Raffiche del vento"},"danger-highcharts":{de:"Unwetter",fr:"Intempéries",en:"Bad weather",it:"Maltempo"},"sunshine-highcharts":{de:"Sonne",en:"Sunshine",fr:"Ensoleillement",it:"Soleggiamento"},mmPerHour:{de:"mm/h",en:"mm/h",fr:"mm/h",it:"mm/h"},minPerHour:{de:"min/h",en:"min/h",fr:"min/h",it:"min/h"},kmPerHour:{de:"km/h",en:"km/h",fr:"km/h",it:"km/h"},uncertainty:{de:"Unsicherheit",it:"Incertezza",fr:"Incertitude",en:"Uncertainty"}},ye.A),je.A),xe.k),ke=(0,H.V)(_e);var Se=t(77914),Te=t(66896);const $e=54e5,ze=(e,a,t,i=!1,n)=>({id:"weather-symbols-series",name:"weather-symbols",type:"line",color:"transparent",data:(i?a:e).map((([e,a])=>({x:e,y:.5,marker:{height:t,width:t,symbol:`url(/static/resources/weather-symbols/${a}.svg)`},label:ke(`symbol_id_${a}`)}
1))).filter(Boolean),tooltip:{pointFormatter:function(){return`<div style="text-align: center">${i?(0,K.yI)(this.x):(0,K.bU)(this.x-$e,this.x+$e)}<br>${this.label}</div>`}},events:{click:n},yAxis:"symbol"}),Ne="#F472B6",De="#FBCFE8",Ae=(e,a,t)=>[{id:"rain-series",name:"rain-highcharts",type:"column",color:"#33669B",yAxis:"precipitation",data:e.map((([e,a])=>({x:e,y:a,label:`${a} ${ke("mmPerHour")}`}))),tooltip:{pointFormatter:function(){const e=Me(this.x,a),t=ke("mmPerHour");return`<div style="text-align: center">${(0,K.bU)(this.x,this.x+K.uv)}<br>${ke(this.series.name)}: ${this.label}${e?`<br>${ke("uncertainty")}: ${e[1]} ${t} – ${e[2]} ${t}`:""}</div>`}},events:{click:t},states:{hover:{color:"#60A5FA"}},enableMouseTracking:!0,pointPadding:.05,groupPadding:0,borderWidth:0,pointPlacement:"between"},{id:"rain-variance-series",name:"rain-variance-highcharts",type:"errorbar",data:Oe(a),yAxis:"precipitation",stemWidth:1,pointPlacement:"between",linkedTo:"rain-series",whiskerLength:"50%",whiskerWidth:1,color:"#93C5FD",enableMouseTracking:!1,allowPointSelect:!1}],Oe=e=>e.filter((e=>null!==e[1]&&null!==e[2]&&e[1]!==e[2])),Me=(e,a)=>a.reduce(((a,t)=>Math.abs(t[0]-e)<K.uv&&(void 0===a||Math.abs(t[0]-e)<Math.abs(a[0]-e))?t:a),void 0),Ve=(e,a)=>({id:"temperature-series",name:"temperature-highcharts",type:"spline",data:e,yAxis:"temperature",zIndex:4,color:"#FF6363",tooltip:{valueSuffix:"°C"},marker:{enabled:!1},events:{click:a}}),We=e=>({id:"temperature-range-series",name:"TemperatureRange",type:"areasplinerange",linkedTo:"temperature-series",data:e,yAxis:"temperature",fillOpacity:.18,zIndex:3,lineWidth:0,marker:{enabled:!1},color:"#FF6363",enableMouseTracking:!1}),Ce=(e,a,t,i)=>e?[{id:"wind-series",name:"wind-highcharts",type:"line",color:"transparent",data:a.map((([e,a])=>{var i;const n=null===(i=t.find((([a])=>a===e)))||void 0===i?void 0:i[1];return{x:e,y:4,speed:Math.round(n||0),label:ke(a),marker:{symbol:`url(/static/resources/wind-directions/${a.toLowerCase()}.svg)`}}})),tooltip:{pointFormatter:function(){return`<div style="text-align: center">${(0,K.Ge)(this.x)}<br>${this.label}</div>`}},events:{click:i},yAxis:"wind",dataLabels:{format:"{point.speed}",enabled:!0,verticalAlign:"top",y:5,color:"white",style:{fontSize:"var(--wb-ds-font-size--2xl)",fontFamily:"var(--wb-ds-font-family--default)",fontWeight:"normal"}},stickyTracking:!1,visible:!0}]:[],Pe=(e,a,t)=>e?[{id:"wind-direction-series",name:"wind-direction-highcharts",type:"line",color:"transparent",yAxis:"winddirection",data:a.map((([e,a])=>({x:e,y:4,label:ke(a),marker:{symbol:`url(/static/resources/wind-directions/${a.toLowerCase()}.svg)`}}))),tooltip:{pointFormatter:function(){return`<div style="text-align: center">${(0,K.Ge)(this.x)}<br>${this.label}</div>`}},events:{click:t},stickyTracking:!1,visible:!0}]:[],Ee=(e,a)=>({id:"wind-speed-series",name:"wind-speed-highcharts",type:"spline",data:e,yAxis:"windspeed",zIndex:6,color:Ne,tooltip:{valueSuffix:ke("kmPerHour")},marker:{enabled:!1},events:{click:a}}),Le=(e,a)=>({id:"wind-gust-peak-series",name:"wind-gust-peak-highcharts",type:"spline",data:e,yAxis:"windspeed",zIndex:5,color:De,tooltip:{valueSuffix:ke("kmPerHour")},marker:{enabled:!1},events:{click:a}}),Ie=e=>({id:"wind-gust-peak-range-series",name:"wind-gust-peak-variance-highcharts",type:"areasplinerange",linkedTo:"wind-gust-peak-series",data:e,yAxis:"windspeed",color:De,fillOpacity:.18,zIndex:3,lineWidth:0,marker:{enabled:!1},enableMouseTracking:!1}),Re=(e,a,t,i,n,r)=>{const s=e=>({id:"sunrise-highcharts"+(e?"-sunrise":"-sunset"),name:"sunrise-series"+(e?"-sunrise":"-sunset"),type:"line",color:"transparent",data:(e?i:n).map((a=>({x:a,y:8,marker:{symbol:`url(/static/resources/wind-directions/${e?"s":"n"}.svg)`},label:a?(0,K.mS)(a):""}))),dataLabels:{format:"{point.label}",enabled:!0,verticalAlign:"middle",align:e?"right":"left",y:0,x:e?-4:4,color:"white",style:{fontSize:"var(--wb-ds-font-size--l)",fontFamily:"var(--wb-ds-font-family--default)",fontWeight:"normal"}},tooltip:{enabled:!1},events:{click:r},yAxis:"sunshine",enableMouseTracking:!1,allowPointSelect:!1});return e?[{id:"sunshine-series",name:"sunshine-highcharts",type:"column",color:"#8F7318",states:{hover:{color:"#FBBF24"}},yAxis:"sunshine",data:a,tooltip:{valueSuffix:ke("minPerHour"),pointFormatter:function(){var e,a,i,n;const r=null!==(n=null===(i=null===(a=null===(e=this.series)||void 0===e?void 0:e.options)||void 0===a?void 0:a.tooltip)||void 0===i?void 0:i.valueSuffix
1)&&void 0!==n?n:"",s=Me(this.x,t),l=s&&null!==s[1]&&null!==s[2]?`<br>${ke("uncertainty")}: ${s[1]} ${r} – ${s[2]} ${r}`:"";return`<div style="text-align: center">${(0,K.bU)(this.x,this.x+K.uv)}<br>${ke(this.series.name)}: ${this.y} ${r}${l}</div>`}},events:{click:r},enableMouseTracking:!0,pointPadding:.05,groupPadding:0,borderWidth:0,pointPlacement:"between"},{id:"sunshine-variance-series",name:"sunshine-variance-highcharts",type:"errorbar",data:Oe(t),yAxis:"sunshine",stemWidth:1,pointPlacement:"between",linkedTo:"sunshine-series",whiskerLength:"50%",whiskerWidth:1,color:"#FCD34D",enableMouseTracking:!1,allowPointSelect:!1},s(!0),s(!1)]:[]},Ue=(e,a)=>{const t=(0,Te.$z)(e);return{type:"xrange",grouping:!1,id:"danger-series",pointWidth:t.length>3?void 0:16,data:e.reverse().map((e=>{var a,i;return{x:1e3*(null!==(a=e.graphStart)&&void 0!==a?a:0),x2:1e3*(null!==(i=e.graphEnd)&&void 0!==i?i:0),y:t.indexOf(e.warn_type)+.5,color:{pattern:{image:`/static/resources/local-forecast-diagram/${e.warn_type}-${e.warnlevel}${e.is_outlook?"p":""}.svg`,aspectRatio:262.5}},label:`${ke(e.warn_type)}: ${e.dangerLevelText}`,danger:e}})),borderWidth:0,borderRadius:0,tooltip:{pointFormatter:function(){return`<div style="text-align: center">${this.label}<br>${(0,Se.L)(this.danger)}</div>`},followPointer:!0},yAxis:"danger",events:{click:a}}};function Fe({weatherSymbol:e,weatherSymbolDay:a,hazards:t,precipitationVariance:i,precipitation:n,temperatureVariance:r,temperature:s,sunshine:l,sunshineVariance:o,windDirection:d,windSpeed:c,sunrise:u,sunset:m,start:h,end:p},v,g,f,b,w,x,y){const j=Ue(function(e,a,t){return e.getDangers().map((e=>Object.assign(Object.assign({},e),{dangerLevelText:(0,ie.U6)(e,0,ie.O8),graphStart:Math.max(a/1e3,e.onset||0),graphEnd:Math.min(t/1e3,e.expires||0)})))}(t,h,p),v),_=[ze(e,a,x,y,v),...Ae(n,i,v),Ve(s,v),We(r),...Ce(f,d,c,v),...Re(b,l,o,u,m,v)];return w?[..._,j]:_}function He({windDirection:e,windSpeed:a,windSpeedVariance:t,windGustPeak:i,windGustPeakVariance:n},r){return[Ee(a,r),(s=t,{id:"wind-speed-range-series",name:"WindspeedRange",type:"areasplinerange",linkedTo:"wind-speed-series",data:s,yAxis:"windspeed",color:Ne,fillOpacity:.18,zIndex:4,lineWidth:0,marker:{enabled:!1},enableMouseTracking:!1}),Le(i,r),Ie(n),...Pe(!0,e,r)];var s}const Ge=Object.assign(Object.assign({LocalForecast:{de:"Lokalprognose",fr:"Prévisions locales",it:"Previsioni locali",en:"Local forecasts"},"loading-message":{de:"Laden...",fr:"Chargement...",it:"Caricamento...",en:"Loading..."},"add-to-my-locations":{de:"Zu «Meine Orte» hinzufügen",fr:"Ajouter à «Mes localités»",it:"Aggiungere a «Le mie località»",en:"Add to «My Places»"},"remove-from-my-locations":{de:"Von «Meine Orte» entfernen",fr:"Supprimer de «Mes localités»",it:"Togliere da «Le mie località»",en:"Remove from «My Places»"},"show-sunshine":{de:"Sonnenschein",fr:"Ensoleillement",it:"Soleggiamento",en:"Sunshine"},"show-precipitation-uncertainty":{de:"Unsicherheitsbereich Niederschlag",fr:"Plage d’incertitude",it:"Intervallo d’incertezza delle precipitazioni",en:"Precipitation uncertainty range"},"show-wind":{de:"Wind",fr:"Vent",it:"Vento",en:"Wind"},dangersForRegion:{de:"Gefahren für",fr:"Dangers pour",it:"Pericolo per",en:"Hazards for"},climateMonitorForLocation:{de:"Klima-Monitor für",fr:"Suivi du climat de",it:"Monitoraggio climatico per",en:"Climate monitor for"},localForecastAnchor:{de:"Lokalprognose",fr:"Prévisions locales",en:"Local forecasts",it:"Previsioni locali"},climateAnchor:{de:"Klima-Monitor",fr:"Suivi du climat",it:"Monitoraggio del clima",en:"Climate monitor"},blogAnchor:{de:"MeteoSchweiz Blog",fr:"MétéoSuisse-Blog",it:"MeteoSvizzera-Blog",en:"MeteoSwiss-Blog"},dangersAnchor:{de:"Gefahren",fr:"Dangers",it:"Pericoli",en:"Dangers"},webcamsAnchor:{de:"Wetterkamera",fr:"Caméra météo",it:"Telecamera meteo",en:"Weather cam"},measuredValuesAnchor:{de:"Messwerte",fr:"Valeurs mesurées",it:"Valori attuali",en:"Measurement values"}},ye.A),{localForecastSection:{de:"Lokalprognose Abschnitt",fr:"Rubrique pronostic local",it:"Sezione prognosi locale",en:"Local forecast section"},dangerSection:{de:"Gefahren Abschnitt",fr:"Rubrique dangers",it:"Sezione pericoli",en:"Danger section"},applicationsSection:{de:"Anwendungs Abschnitt",fr:"Rubrique candidatures",it:"Sezione applicazioni",en:"Applications section"},measuredValuesSection:{de:"Messwerte Abschnitt",fr:"Rubrique lectures",it:"Sezione letture",en:"Measured values section"},webcamsSection:{de:"Webcam Abschnitt",fr:"Rubrique webcams",it:"Sezione webcam",en:"Webcams section"},climateSection:{de:"Klima Abschnitt",fr:"Rubrique climat",it:"Sezione clima",en:"Climate section"},blogSection:{de:"MeteoSchweiz Blog",fr:"MétéoSuisse-Blog",it:"MeteoSvizzera-Blog",en:"MeteoSwiss-Blog"},Today:{de:"Heute",fr:"Aujourd'hui",en:"Today",it:"Oggi"},metersAboveSeaLevel:{de:"m ü. M.",fr:"m s. mer",en:"m a. sea level",it:"m slm"}}),Be=(0,H.V)(Ge);var Ze=t(35366),Ke=t(22285),Ye=t(67038);const qe=({dangers:e,mobile:a=1,tablet:t=1,desktop:n=1,displayDangerLevelInfo:r=!1,displayRegionOrWaterSurface:s=!1,currentDate:l=new Date})=>(0,i.jsx)("div",{className:"warning__container",children:e.map(((e,o)=>{const[d,c]=(0,ie.As)(e.warnlevel),u=(0,Se.L)(e);return(0,i.jsx)(Ze.Hz,{leftColumn:()=>[(0,i.jsx)(Ke.F,{info:e,iconColor:c,background:d,dangerTimeValidity:u,currentDate:l},`left-${o}`)],rightColumn:()=>[(0,i.jsx)(Ye.c,{displayRegionOrWaterSurface:s,info:e,displayDangerLevelInfo:r},`right-${o}`)],mobile:a,tablet:t,desktop:n},o)}))}),Xe=Object.assign({uncertainty:{de:"Unsicherheit",it:"Incertezza",fr:"Incertitude",en:"Uncertainty"},"uncertainty-info-aria-label":{de:"Details zur Unsicherheit der Niederschlagsprognose",fr:"Détails sur l’incertitude des prévisions de précipitations",it:"Dettagli sull’incertezza delle previsioni delle precipitazioni",en:"Details about precipitation forecast uncertainty"},"wind-direction":{de:"Windrichtung",fr:"Direction du vent",it:"Direzione del vento",en:"Wind direction"},mmPerHour:{de:"mm/h",fr:"mm/h",it:"mm/h",en:"mm/h"},kmPerHour:{de:"km/h",fr:"km/h",it:"km/h",en:"km/h"},minPerHour:{de:"min/h",fr:"min/h",it:"min/h",en:"min/h"}},je.A),Je=(0,H.V)(Xe);var Qe=function(e,a){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)a.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]])}return t};const ea=({iconName:e,iconContent:a,mainData:t,title:n,subtitle:r,subtitleExplanation:s,subtitleAriaLabel:l,variance:o,footer:d})=>(0,i.jsxs)("div",{className:"weather-data-cell__container",children:[e?(0,i.jsx)(we.A,{icon:e,background:"transparent",size:"large"}):null,a||null,(0,i.jsxs)("div",{className:"weather-data-cell__text-container",children:[n?(0,i.jsx)("div",{className:"weather-data-cell__title",children:n}):null,(0,i.jsx)("div",{className:"weather-data-cell__main-info",children:t}),r?(0,i.jsxs)("div",{className:"weather-data-cell__subtitle",children:[r,s&&(0,i.jsx)(be.m,{isHTML:!0,content:s,ariaLabel:l,children:(0,i.jsx)(B.In,{name:"info-circle",size:"s",color:"gray--white"})})]}):null,o?(0,i.jsx)("div",{className:"weather-data-cell__variance",children:o}):null,d?(0,i.jsx)("div",{className:"weather-data-cell__variance",children:d}):null]})]}),aa=({color:e})=>(0,i.jsx)("div",{className:"icon icon--large",style:{display:"grid",alignItems:"center",padding:"var(--wb-ds-space--3xs)"},children:(0,i.jsx)("div",{style:{height:0,padding:0,borderBottom:`2px solid ${e}`}})}),ta=({temperature:e,temperatureVariance:a,timestamp:t,precipitation:n,precipitationVariance:r,precipitationProbabilityExplanation:s,weatherSymbol:l,windDirection:o,windSpeed:d,windSpeedVariance:c,sunshine:u,sunshineVariance:m,dangers:h})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"local-forecast-infobox__weather",children:[(0,i.jsxs)("div",{className:"local-forecast-infobox__summary",children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{className:"local-forecast-infobox__summary-icon",src:`/static/resources/weather-symbols/${l}.svg`,alt:Be(`symbol_id_${l}`),title:Be(`symbol_id_${l}`),loading:"lazy"})}),(0,i.jsx)("div",{className:"local-forecast-infobox__summary-text",children:(0,H.Oo)(t,(0,U.Z0)())})]}),(0,i.jsxs)("div",{className:"local-forecast-infobox__weather_data",children:[(0,i.jsx)(ea,{iconName:"lfd-temperature",mainData:`${e} ºC`,subtitle:Je("uncertainty"),variance:`${a[0]} ºC – ${a[1]} ºC`}),(0,i.jsx)(ea,{iconName:"lfd-rain",mainData:`${n} ${Je("mmPerHour")}`,subtitle:Je("uncertainty"),subtitleExplanation:s,subtitleAriaLabel:Je("uncertainty-info-aria-label"),variance:`${r[0]} – ${r[1]} ${Je("mmPerHour")}`}),c?(0,i.jsx)(ea,{iconName:"lfd-wind",mainData:`${d} ${Je("kmPerHour")}`,variance:c?`${c[0]} km/h – ${c[1]} km/h`:void 0,subtitle:c?Je("uncertainty"):void 0,footer:o?Je(o):""}):(0,i.jsx)(ea,{iconName:"lfd-wind",mainData:`${d} ${Je("kmPerHour")}`,variance:o?Je(o):""}),(0,i.jsx)(ea,{iconName:"lfd-sun",mainData:`${u} ${Je("minPerHour")}`,subtitle:m?Je("uncertainty"):void 0,variance:m?`${m[0]} – ${m[1]} ${Je("minPerHour")}`:void 0})]})]}),h.length>0?(0,i.jsx)("div",{className:"local-forecast-infobox__danger",children:(0,i.jsx)(qe,{dangers:h})}):null]}),ia=({timestamp:e,windDirection:a,windSpeed:t,windSpeedVariance:n,windGustPeak:r,windGustPeakVariance:s})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"local-forecast-infobox__weather",children:[(0,i.jsx)("div",{className:"local-forecast-infobox__summary",children:(0,i.jsx)("div",{className:"local-forecast-infobox__timestamp-text",children:(0,K.Ge)(e)})}),(0,i.jsxs)("div",{className:"local-forecast-infobox__weather_data",children:[(0,i.jsx)(ea,{iconName:"lfd-wind",mainData:ke(a),title:ke("wind-direction-highcharts")}),(0,i.jsx)(ea,{title:ke("wind-speed-highcharts"),iconContent:(0,i.jsx)(aa,{color:Ne}),mainData:`${t} ${ke("kmPerHour")}`,variance:n?`${n[0]} km/h – ${n[1]} km/h`:void 0,subtitle:n?Je("uncertainty"):void 0}),(0,i.jsx)(ea,{title:ke("wind-gust-peak-highcharts"),iconContent:(0,i.jsx)(aa,{color:De}),mainData:`${r} ${ke("kmPerHour")}`,variance:s?`${s[0]} km/h – ${s[1]} km/h`:void 0,subtitle:s?Je("uncertainty"):void 0})]})]})}),na=e=>{var{viewMode:a}=e,t=Qe(e,["viewMode"]);const n=!!["windSpeed","windGustPeak","windDirection"].every((e=>void 0!==e))&&t;return(0,i.jsx)("div",{className:"local-forecast-infobox__container",children:a===te.DETAIL_VIEW||a===te.WEEKLY_OVERVIEW?(0,i.jsx)(ta,Object.assign({},t)):!(a!==te.WIND_GUST_PEAKS||!n)&&(0,i.jsx)(ia,Object.assign({},n))})};var ra=t(72369),sa=t(89187),la=t(10690),oa=t(14194);const da={key:"forecast-chart",fallback:"v0",paths:{v0:"/product/output/forecast-chart/",v2:"/product/output/forecast-chart-v2/"}},ca=async e=>{const a=await(0,sa.n0)(ie.Kn);return{data:await(0,oa.x)(`${a.basePath}${a.currentVersionDirectory}/${e}/dangers.json`),lastUpdate:(0,la.xw)(a.currentVersionDirectory)}},ua=(e,a)=>e.reduce(((e,t)=>[...e,...a(t)]),[]);async function ma(e,a){const{data:t,lastUpdate:i}=await(async(e,a)=>{const t=await(0,sa.n0)(da);return{data:await(0,oa.x)(`${t.basePath}${t.currentVersionDirectory}/${a}/${e}.json`),lastUpdate:(0,la.xw)(t.currentVersionDirectory)}})(e.id,a),n=t.filter(((e,a)=>a<8)),r=ua(n,(e=>e.temperature)),s=r[0][0],l=r[r.length-1][0],{ngp:o,hazards:d,lastUpdate:c}=await async function(e,a,t,i){const{data:n,lastUpdate:r}=await ca(a),s={hydroRegions:e.hydroRegionIds,meteoRegions:e.warnRegionIds,slfRegions:e.slfRegionIds,forestRegions:e.forestFireRegionIds,lakes:e.hydroLakeIds,rivers:e.hydroRiverIds};return{ngp:(0,ra.J)(n,ie.Xo,ie.O8,new Date(t),new Date(i)).forRegions(s),hazards:(0,ra.J)(n,ie.Xo,ie.kS,new Date(t),new Date(i)).forRegions(s),lastUpdate:r}}(e,a,s,l);return{temperature:r,temperatureVariance:ua(n,(e=>e.variance_range)),precipitation:ua(n,(e=>e.rainfall)),precipitationVariance:ua(n,(e=>e.variance_rain)),weatherSymbol:ua(n,(e=>e.symbols.map((({timestamp:e,weather_symbol_id:a})=>[e,a])))),weatherSymbolDay:n.map((e=>[e.symbol_day.timestamp,e.symbol_day.weather_symbol_id])),windSpeed:ua(n,(e=>e.wind.data)),windSpeedVariance:ua(n,(e=>e.wind_speed_variance)),windDirection:ua(n,(e=>e.wind.symbols.map((({timestamp:e,symbol_id:a})=>[e,a])))),windGustPeak:ua(n,(e=>e.wind_gust_peak.data)),windGustPeakVariance:ua(n,(e=>e.wind_gust_speed_variance)),sunshine:ua(n,(e=>e.sunshine)),sunshineVariance:ua(n,(e=>{var a;return null!==(a=e.variance_sunshine)&&void 0!==a?a:[]})),lastUpdate:ae([i,c]),lastUpdateDangers:c,sunrise:n.map((e=>e.sunrise)),sunset:n.map((e=>e.sunset)),ngp:o,hazards:d,start:s,end:l}}var ha=t(61671);const pa=(0,H.V)({"severe-weather":{de:"Unwetter",fr:"Intempéries",it:"Maltempo",en:"Bad weather"},"natural-hazards":{de:"Naturgefahren",fr:"Dangers naturels",it:"Pericoli naturali",en:"Natural hazards"},"natural-hazards-title":{de:"Alle Naturgefahren für $1",fr:"Dangers actuels pour $1",it:"Pericoli attuali a $1",en:"Current hazards issued for $1"},"severe-weather-title":{de:"Alle Unwetter für $1",fr:"Toutes les intempéries pour $1",it:"Tutto il maltempo per $1",en:"All bad weather for $1"},noDanger:{de:"Keine oder geringe Gefahr",fr:"Aucun danger ou faible danger",it:"Pericolo nullo o debole",en:"No or low danger"}}),va=(e,a)=>{const t=(0,ie.lo)(!1,(0,ie.As)(e.getState().dangerLevel)[0]),i=(0,ie.lo)(a.getState().dangerIsOutlook,(0,ie.As)(a.getState().dangerLevel)[0]);return[{id:ie.kS,label:pa(ie.kS),levelColor:i},{id:ie.O8,label:pa(ie.O8),levelColor:t}]},ga=()=>(0,i.jsx)("div",{className:"local-hazards-list__no-danger",children:pa("noDanger")}),fa=({hazards:e,ngp:a,location:t,bulletinPage:r,useHashState:s=!0,currentDate:l=new Date})=>{const o=a.forTimeRange(null!=l?l:new Date,void 0),d=e.forTimeRange(null!=l?l:new Date,void 0),[c,u]=s?(0,de.un)(ie.kS,de.D0):(0,n.use
1State)(ie.kS);return(0,i.jsxs)("div",{className:"local-hazards-list",children:[(0,i.jsx)(oe.o,{parameters:va(o,d),onChange:u,selected:c,analyticsData:{triggerAnalytics:!0,category:"Local Forecast",parameter:"click danger tab"}}),(0,i.jsxs)("div",{className:"local-hazards-list__container",children:[(0,i.jsxs)("div",{className:"local-hazards-list__hazards-container",children:[(0,i.jsx)(F.h,{level:3,className:"local-hazards-list__subtitle",children:(c===ie.kS?pa("severe-weather-title"):pa("natural-hazards-title")).replace("$1",t)}),(0,i.jsx)("div",{children:c===ie.kS?d.getDangers().length>0?(0,i.jsx)(qe,{dangers:(0,ie.Bq)(d.getRegions(),d,ie.kS),displayRegionOrWaterSurface:!0,displayDangerLevelInfo:!0,desktop:2,currentDate:l}):(0,i.jsx)(ga,{}):o.getDangers().length>0?(0,i.jsx)(qe,{dangers:o.getDangers(),displayRegionOrWaterSurface:!0,displayDangerLevelInfo:!0,desktop:2,currentDate:l}):(0,i.jsx)(ga,{})})]}),(0,i.jsx)("div",{className:"local-hazards-list__bulletin-container",children:(0,i.jsx)(ha.NaturalHazardBulletinTeaser,{bulletinPage:r})})]})]})};var ba=t(66044),wa=t.n(ba),xa=t(29132),ya=t.n(xa),ja=t(28663),_a=t.n(ja),ka=t(33247),Sa=t.n(ka),Ta=t(9204),$a=t.n(Ta),za=t(48398),Na=t.n(za),Da=t(1326);const Aa=e=>{const a=new Map;return t=>(a.has(t)||a.set(t,e(t)),a.get(t))};var Oa=t(36683);const Ma=e=>void 0!==e,Va=e=>e.reduce(((e,{id:a,gap:t,height:i})=>{var n,r;const s=e[e.length-1],l=(null!==(n=null==s?void 0:s.top)&&void 0!==n?n:0)+(null!==(r=null==s?void 0:s.height)&&void 0!==r?r:0)+t;return[...e,{id:a,top:l,height:i}]}),[]),Wa=e=>{var a,t;const i=e[e.length-1],n=(null!==(a=null==i?void 0:i.top)&&void 0!==a?a:0)+(null!==(t=null==i?void 0:i.height)&&void 0!==t?t:0),r=e=>Math.round(100*e/n)+"%";return{height:n,axis:e.map((({id:e,top:a,height:t})=>({id:e,top:r(a),height:r(t)})))}},Ca=25,Pa={[te.DETAIL_VIEW]:{scaleRatio:1,xAxisWidth:void 0,showDateAndTimeYAxis:!0,weatherSymbolHeight:40,weatherSymbolTrackHeight:40,getTimeAxisWidth:e=>e.length*Ca,getChartMinWidth:e=>e.length*Ca+2*Ea},[te.WEEKLY_OVERVIEW]:{scaleRatio:1.4,xAxisWidth:"100%",showDateAndTimeYAxis:!1,weatherSymbolHeight:60,weatherSymbolTrackHeight:80,getTimeAxisWidth:()=>"100%",getChartMinWidth:()=>800},[te.WIND_GUST_PEAKS]:{scaleRatio:0,chartHeight:470,xAxisWidth:void 0,showDateAndTimeYAxis:!0,weatherSymbolHeight:40,weatherSymbolTrackHeight:40,getTimeAxisWidth:e=>e.length*Ca,getChartMinWidth:e=>e.length*Ca+2*Ea}};ya()(wa()),$a()(wa()),_a()(wa()),Na()(wa()),Sa()(wa());const Ea=39,La=[!0,!0,!1],Ia=(e,a)=>Object.assign(Object.assign({},e?{danger:{title:{text:ke("danger-highcharts"),style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},align:"low",offset:25,margin:0},labels:{enabled:!1},min:0,reversed:!1,gridLineWidth:0}}:void 0),{symbol:{title:void 0,labels:{enabled:!1},min:0,max:1,gridLineWidth:0},wind:{title:{text:`${ke("wind-highcharts")} ${ke("kmPerHour")}`,style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},align:"low",offset:25,margin:0},labels:{enabled:!1,format:"{value}",style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},x:-4},offset:0,opposite:!1,gridLineWidth:0,max:10,min:0},sunshine:{labels:{format:"{value}",style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},x:-4},title:{text:`${ke("sunshine-highcharts")} ${ke("minPerHour")}`,style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},align:"low",offset:25,margin:0},gridLineColor:"var(--wb-ds-color-gray--x-light)",tickAmount:5,max:60,min:0,offset:0,plotLines:[{color:"var(--wb-ds-color-gray--2x-light)",width:1,value:0,zIndex:100}]},temperature:{labels:{formatter:function(){return 0===(e=this.value)?`<span style="font-weight: var(--wb-ds-font-weight--thick); font-size: var(--wb-ds-font-size--s);">${e}</span>`:e;var e},style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},x:-4},title:{text:`${ke("temperature-highcharts")} °C`,style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},align:"low",offset:25,margin:0},gridLineWidth:0,offset:0},precipitation:{labels:{format:"{value}",style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},x:4},title:{text:`${ke("rain-highcharts")} ${ke("mmPerHour")}`,style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},align:"low",offset:25,margin:0},gridLineWidth:0,opposite:!0,tickAmount:a,min:0,minTickInterval:2}}),Ra=(e,a)=>e>=0?e-e%a:e-(a+e%a),Ua=(e,a)=>e>=0?e+(a-e%a):e-e%a,Fa=e=>{const a=(e=>e.includes(0)&&0!==e[0])(e);return e.map((e=>0===e&&a?{color:"var(--wb-ds-color-gray--2x-light)",width:1,value:0,zIndex:1,dashStyle:"Dash"}:{color:"var(--wb-ds-color-gray--x-light)",width:1,value:e,zIndex:1}))},Ha=(e,a,t=!0)=>{const i=(e=>{if(0===e.numberOfTicks)return[];const{lowerBound:a,numberOfTicks:t}=e;return Array(t).fill(a).map(((e,a)=>e+5*a))})(a);return{danger:{max:t?Math.max((0,Te.$z)(e).length,3):0},temperature:{tickPositions:i,plotLines:Fa(i)}}},Ga=(e,a,t,i,n,r,s)=>{const{height:l,axis:o}=(({sunshine:e,wind:a,hazards:t},i=1,n=40)=>{const r=67*i,s=156*i,l={id:"danger",gap:0,height:101*i},o={id:"symbol",gap:0,height:n*i},d={id:"wind",gap:-o.height,height:o.height+r},c={id:"sunshine",gap:18,height:84},u={id:"temperature",gap:18,height:s},m={id:"precipitation",gap:-u.height,height:u.height},h=[l,o,d,c,u,m],p=[t?l.id:void 0,o.id,a?d.id:void 0,e?c.id:void 0,u.id,m.id].filter(Ma),v=h.filter((({id:e})=>p.includes(e)));return Wa(Va(v))})({sunshine:e,wind:a,hazards:n},r,s),d=(e=>{if(!e.length)return{lowerBound:0,numberOfTicks:0};const a=Math.min(...e.map((e=>e[1]))),t=Math.max(...e.map((e=>e[2]))),i=Math.floor(a)-0,n=Math.ceil(t)+0,r=Ra(i,5),s=Ua(n,5);return{lowerBound:r,numberOfTicks:Math.abs(s-r)/5+1}})(i);return{height:l,axis:o.map((e=>Object.assign(Object.assign(Object.assign({},e),Ia(n,d.numberOfTicks)[e.id]),Ha(t,d,n)[e.id])))}},Ba="currentTimePlotLine",Za=(0,n.memo)((({data:e,viewMode:a=te.DETAIL_VIEW,currentTimestamp:t,selectTimestamp:r,selectedTimestamp:s,showSunshine:l=!1,showWind:o=!1,showHazards:d=!0,onScrollChange:c})=>{const{start:u,end:m}=e,{temperature:h,temperatureVariance:p}=e,v=(0,n.useMemo)((()=>d?e.hazards:(0,Oa.V)({})),[e.hazards,d]),{scaleRatio:g,xAxisWidth:f,weatherSymbolHeight:b,weatherSymbolTrackHeight:w,getTimeAxisWidth:x,getChartMinWidth:y,showDateAndTimeYAxis:j}=Pa[a],_=x(h),k=y(h),S=(0,n.useRef)(null),T=(0,n.useRef)(),$=(0,H.Hb)(),[z,N]=(0,n.use
1State)(!1),D=(0,n.useRef)(),A=()=>{var e,a;D.current&&(D.current(),D.current=void 0);const t=null===(a=null===(e=S.current)||void 0===e?void 0:e.container.current)||void 0===a?void 0:a.querySelector(".highcharts-scrolling");if(t){T&&t.scrollTo({left:T.current});const e=()=>{const e=t.scrollLeft;T.current=e;const a=t.clientWidth,i=t.scrollWidth;c&&c(e/i,(e+a)/i)};t.addEventListener("scroll",e,{passive:!0}),D.current=()=>t.removeEventListener("scroll",e)}},O=(0,n.useMemo)((()=>{if(h.length>=2){const e=m-u;return Math.max(0,(s.timestamp-4*K.uv-u)/e)}return 0}),[]),M=(0,n.useCallback)((e=>{const a=new Date(e);if(r){const e=null!=u?u:0,t=null!=m?m:Number.MAX_SAFE_INTEGER,i=Math.max(e,Math.min(t,a.getTime()));r({timestamp:i,scrollToTimestamp:!1})}}),[r,u,m]);(0,n.useEffect)((()=>{var e,a;if(S.current&&s.timestamp){const t=S.current.chart.xAxis[0];if(t.removePlotBand(Ba),t.addPlotLine({color:"var(--wb-ds-color-gray--white)",width:2,value:s.timestamp,zIndex:7,id:Ba}),s.scrollToTimestamp){const t=null===(a=null===(e=S.current)||void 0===e?void 0:e.container.current)||void 0===a?void 0:a.querySelector(".highcharts-scrolling");if(t&&h.length>=2){const e=Ca/K.uv,a=(s.timestamp-u)*e-t.clientWidth/2;t.scrollTo({left:a,behavior:"smooth"})}}}}),[s,S.current]);const V=u-2*K.uv,W=(0,n.useMemo)((()=>{const e=[];var i;return j&&e.push({id:"time-axis",type:"datetime",tickInterval:108e5,labels:{format:"{value:%H.%M}",align:"left",style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},x:3,y:14},tickLength:15,minPadding:0,maxPadding:0,width:_,plotBands:[{color:"var(--wb-ds-color-secondary--2x-dark)",from:V,to:t}],plotLines:[...(i=h.map((([e])=>e)),i.filter(K.C_).map((e=>({color:"var(--wb-ds-color-gray--2x-light)",width:1,value:e,zIndex:100}))))],crosshair:!1}),e.push(Object.assign(Object.assign({id:"date-axis"},j?{linkedTo:0}:{}),{offset:0,type:"datetime",tickInterval:864e5,labels:{style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},formatter:function(){return a===te.WEEKLY_OVERVIEW&&this.isLast?"":(0,K.yI)(this.value)},align:"left",x:3,y:j?30:14},opposite:!1,tickLength:30,gridLineWidth:1,width:f})),e}),[h,t,_,f]),{height:C,axis:P}=(0,n.useMemo)((()=>a===te.WIND_GUST_PEAKS?{height:Pa[te.WIND_GUST_PEAKS].chartHeight,axis:[{id:"winddirection",top:"0%",height:"18%",title:{text:void 0},labels:{enabled:!1},offset:0,opposite:!1,gridLineWidth:0,max:10,min:0},{id:"windspeed",top:"18%",height:"82%",title:{text:`${ke("wind-highcharts")} ${ke("kmPerHour")}`,style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},align:"low",offset:25,margin:0},labels:{format:"{value}",style:{color:"var(--wb-ds-color-gray--2x-light)",fontSize:"var(--wb-ds-font-size--xs)"},x:-4},gridLineColor:"var(--wb-ds-color-gray--x-light)",offset:0,tickAmount:5}]}:Ga(l,o,v.getDangers(),p,d,g,w)),[l,o,v,p,d,g]),E=(0,n.useMemo)((()=>{const t=function(e){let a=e.point.x;e.point.x2&&(a=e.chartX?V+e.chartX/Ca*K.uv:(e.point.x2+e.point.x)/2),M(a)};return{plotOptions:{series:{stickyTracking:!1}},chart:{height:C+45,spacingTop:0,spacingLeft:0,spacingRight:0,spacingBottom:15,backgroundColor:"var(--wb-ds-color-secondary--3x-dark)",scrollablePlotArea:{minWidth:k,scrollPositionX:O},style:{fontFamily:"var(--wb-ds-font-family--default)"},events:{click:function(e){const a=e,t=Math.round(a.xAxis[0].value);M(t)},render:A}},credits:{enabled:!1},title:{text:void 0},legend:{enabled:!1},time:{getTimezoneOffset:Aa((e=>-(0,K.iL)(e)))},series:a===te.WIND_GUST_PEAKS?He(e,t):Fe(e,t,0,o,l,d,b,a===te.WEEKLY_OVERVIEW),tooltip:{enabled:$,hideDelay:0,shared:!1,followTouchMove:!0,backgroundColor:"var(--wb-ds-color-secondary--dark)",borderRadius:1,borderWidth:0,padding:28,style:{color:"var(--wb-ds-color-gray--white)",fontSize:"var(--wb-ds-font-size--m)"},headerFormat:"",useHTML:!0,pointFormatter:function(){var a,t,i,n;const r=null!==(n=null===(i=null===(t=null===(a=this.series)||void 0===a?void 0:a.options)||void 0===t?void 0:t.tooltip)||void 0===i?void 0:i.valueSuffix)&&void 0!==n?n:"",s=St(e,this.x),l=Ka(this.series.name,s);return`<div style="text-align: center">${(0,K.Ge)(this.x)}\n                            <br>${ke(this.series.name)}: ${this.y} ${r}${l?`<br>${ke("uncertainty")}: ${l}`:""}</div>`}},yAxis:P,xAxis:W}}),[W,P,h,p,M,C,v,l,o,$,d,k,z]);return(0,i.jsx)(Da.HighchartsReact,{highcharts:wa(),options:E,ref:S,updateArgs:La,callback:()=>N(!0)})})),Ka=(e,a)=>{let t;switch(e){case"temperature-highcharts":t=`${a.temperatureVariance[0]} ºC – ${a.temperatureVariance[1]} ºC`;break;case"wind-speed-highcharts":t=a.windSpeedVariance?`${a.windSpeedVariance[0]} km/h – ${a.windSpeedVariance[1]} km/h`:void 0;break;case"wind-gust-peak-highcharts":t=a.windGustPeakVariance?`${a.windGustPeakVariance[0]} km/h – ${a.windGustPeakVariance[1]} km/h`:void 0}return t};var Ya=t(23487),qa=t(13508),Xa=t(80625);const Ja=(0,H.V)({precipitationMeanLabel:{de:"Tagessumme Niederschlag",en:"Daily total precipitation",fr:"Somme des précipitations journalières",it:"Somma delle precipitazioni giornaliere"},precipitationUncertaintyLabel:{de:"Unsicherheitsbereich Niederschlag",en:"Precipitation uncertainty range",fr:"Plage d’incertitude",it:"Intervallo d’incertezza delle precipitazioni"},temperatureRangeLabel__pre:{de:"Temperatur: zwischen ",en:"Temperature: between ",fr:"Température: entre ",it:"Temperatura: fra "},temperatureRangeLabel__inter:{de:"° und ",en:"° and ",fr:"° et ",it:"° e "},temperatureRangeLabel__post:{de:"°",en:"°",fr:"°",it:"°"}}),Qa=" ",et=`${Qa}mm`,at=({forecast:{temp_high:e,weekday:a,temp_low:t,weather_symbol_id:n,precip_mean:r,precip_min:s,precip_max:l,warnLevel:o,isUncertain:d},isToday:c,onDayChange:u})=>{const m=c?Be("Today"):a,h=`${Ja("temperatureRangeLabel__pre")}${t}${Ja("temperatureRangeLabel__inter")}${e}${Ja("temperatureRangeLabel__post")}`;return(0,i.jsxs)("button",{className:"day-chooser-row__container",onClick:u,children:[(0,i.jsxs)("div",{className:"day-chooser-row__weekday",children:[(0,i.jsx)("div",{className:"day-chooser-row__day-long",children:m}),(0,i.jsx)("div",{className:"day-chooser-row__day-short",children:(0,Xa.N)(m)})]}),(0,i.jsx)("div",{className:"day-chooser-row__symbol",children:(0,i.jsx)(qa.N,{icon:n,danger:{warnLevel:""+o,isUncertain:!!d}})}),(0,i.jsxs)("div",{className:"day-chooser-row__min-max","aria-label":h,children:[(0,i.jsx)(tt,{temperature:t}),(0,i.jsx)(tt,{temperature:e})]}),(0,i.jsx)(it,{precipitation:r,min:s,max:l})]})},tt=({temperature:e})=>(0,i.jsxs)("div",{className:"day-chooser__row-min-max-temperature",children:[e,"°"]}),it=({precipitation:e,min:a,max:t})=>(0,i.jsxs)("div",{className:"day-chooser-row__precipitation",children:[(0,i.jsx)("div",{"aria-label":Ja("precipitationMeanLabel"),children:(0,i.jsx)(we.A,{size:"small",background:"transparent",icon:"lfd-rain-cropped"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"day-chooser-row__precipitation-value day-chooser-row__precipitation-value--mean",children:st(e)}),a&&t&&(0,i.jsxs)("span",{className:"day-chooser-row__precipitation-value day-chooser-row__precipitation-value--uncertainty",children:[(0,i.jsx)(Ya.G,{text:Ja("precipitationUncertaintyLabel")}),rt(a,t)]})]})]}),nt=e=>Math.round(Math.max(0,e)),rt=(e,a)=>`${nt(e)}${Qa}-${Qa}${nt(a)}${et}`,st=e=>`${(e=>e<=0?0:e<1?`<${Qa}1`:Math.round(e))(e)}${et}`,lt=(e,a)=>({top:100*e+"%",bottom:100*(1-a)+"%"}),ot=({dailyForecasts:e,start:a,end:t,currentTimestamp:n,onDayChange:r})=>{const s=e=>()=>{r(e.noon)},{todayIndex:l}=(0,ne.T)(e.map((e=>e.noon)),n);return(0,i.jsx)("div",{className:"day-chooser__outer-container",children:(0,i.jsxs)("div",{className:"day-chooser__indicator-container",children:[(0,i.jsx)("div",{className:"day-chooser__indicator",style:lt(a,t)}),(0,i.jsx)("div",{className:"day-chooser__item-container",children:e.map(((e,a)=>(0,i.jsx)(at,{forecast:e,isToday:a===l,onDayChange:s(e)},a)))})]})})};var dt=t(19403);const ct=e=>(0,i.jsx)(dt.A,Object.assign({},e)),ut=({localForecastData:e,onDayChange:a,filterRef:t,currentTimestamp:r,selectedTimestamp:s,setSelectedTimestamp:l})=>{const[o,d]=(0,le.A)("local-forecast-detail-view-toggles")({showWind:!1,showSunshine:!1}),{showSunshine:c,showWind:u}
1=o,[m,h]=(0,n.useState)({start:0,end:0}),p=(0,n.useCallback)(((e,a)=>{h({start:e,end:a})}),[]);return(0,i.jsx)("div",{className:"local-forecast-detail-view",children:(0,i.jsxs)("div",{className:"local-forecast-detail-view__container",children:[(0,i.jsxs)("div",{className:"local-forecast-detail-view__filters",ref:t,children:[(0,i.jsxs)("div",{className:"local-forecast-detail-view__filters-item",children:[(0,i.jsx)(ct,{defaultChecked:u,icons:!1,id:"local-forecast-detail-view__wind-toggle",onChange:()=>d(Object.assign(Object.assign({},o),{showWind:!u}))}),(0,i.jsx)("label",{htmlFor:"local-forecast-detail-view__wind-toggle",children:(0,i.jsxs)("div",{className:"local-forecast-detail-view__filters-item-label",children:[(0,i.jsx)(we.A,{size:"small",background:"transparent",icon:"lfd-wind-cropped"}),(0,i.jsx)("span",{children:Be("show-wind")})]})})]}),(0,i.jsxs)("div",{className:"local-forecast-detail-view__filters-item",children:[(0,i.jsx)(ct,{defaultChecked:c,icons:!1,id:"local-forecast-detail-view__sunshine-toggle",onChange:()=>d(Object.assign(Object.assign({},o),{showSunshine:!c}))}),(0,i.jsx)("label",{htmlFor:"local-forecast-detail-view__sunshine-toggle",children:(0,i.jsxs)("div",{className:"local-forecast-detail-view__filters-item-label",children:[(0,i.jsx)(we.A,{size:"small",background:"transparent",icon:"lfd-sun-cropped"}),(0,i.jsx)("span",{children:Be("show-sunshine")})]})})]})]}),(0,i.jsx)("div",{className:"local-forecast-detail-view__diagram",children:(0,i.jsx)(Za,{data:e.chartData,currentTimestamp:r,selectedTimestamp:s,selectTimestamp:l,showSunshine:c,showWind:u,onScrollChange:p})}),(0,i.jsx)("div",{className:"local-forecast-detail-view__day-chooser",children:(0,i.jsx)(ot,{dailyForecasts:e.dailyForecasts,start:m.start,end:m.end,currentTimestamp:r,onDayChange:a})})]})})},mt=({localForecastData:e,currentTimestamp:a,selectedTimestamp:t,setSelectedTimestamp:n})=>(0,i.jsx)("div",{className:"local-forecast-weekly-overview",children:(0,i.jsx)("div",{className:"local-forecast-weekly-overview__diagram",children:(0,i.jsx)(Za,{data:e.chartData,currentTimestamp:a,selectedTimestamp:t,selectTimestamp:n,showSunshine:!1,showWind:!1,showHazards:!1,viewMode:te.WEEKLY_OVERVIEW})})}),ht=({localForecastData:e,onDayChange:a,currentTimestamp:t,selectedTimestamp:r,setSelectedTimestamp:s})=>{const[l,o]=(0,n.useState)({start:0,end:0}),d=(0,n.useCallback)(((e,a)=>{o({start:e,end:a})}),[]);return(0,i.jsx)("div",{className:"wind-forecast-diagram",children:(0,i.jsxs)("div",{className:"wind-forecast-diagram__container",children:[(0,i.jsx)("div",{className:"wind-forecast-diagram__diagram",children:(0,i.jsx)(Za,{data:e.chartData,currentTimestamp:t,selectedTimestamp:r,selectTimestamp:s,showSunshine:!1,showWind:!1,onScrollChange:d,showHazards:!1,viewMode:te.WIND_GUST_PEAKS})}),(0,i.jsx)("div",{className:"wind-forecast-diagram____day-chooser",children:(0,i.jsx)(ot,{dailyForecasts:e.dailyForecasts,start:l.start,end:l.end,currentTimestamp:t,onDayChange:a})})]})})},pt={key:"weather-widget/forecast",fallback:"v0",paths:{v0:"/product/output/weather-widget/forecast/",v2:"/product/output/weather-widget/forecast-v2/"}};var vt=t(48366),gt=t(71266),ft=t(49679),bt=t(58515),wt=t(49703),xt=t(71408);const yt={webcamsTitle:{de:"Wetterkamera $city, $altitude",fr:"Caméra météo $city, $altitude",it:"Telecamera meteo $city, $altitude",en:"Weather cam $city, $altitude"},webcamsDefaultTitle:{de:"Wetterkamera",fr:"Caméra météo",it:"Telecamera meteo",en:"Weather cam"},timezoneHint:{de:'Zeitangabe UTC: UTC steht für "Coordinated Universal Time". Es ist der international anerkannte Zeitstandard, nach dem die Zeit weltweit koordiniert wird.\n        Lokalzeit in der Schweiz: Mitteleuropäische Zeit (MEZ): Im Winter ist die Schweiz in der MEZ (UTC+1 Stunde). Mitteleuropäische Sommerzeit (MESZ): Im Sommer wird die Zeit um eine Stunde vorgestellt: die Schweiz ist in der MESZ (UTC+2 Stunden).',fr:"Indication de l'heure UTC : UTC est l'acronyme de Universal Time Coordinated (temps universel coordonné), qu’on appelait autrefois Greenwich Mean Time (GMT) ou Zulu Time (Z). Il s’agit de l’heure au méridien d’origine (0° de longitude).\n        Pour en déduire l’heure locale en Suisse 
1(ou en Europe centrale - MEZ), il faut ajouter 1 heure en hiver (UTC+1 h) et 2 heures en été (UTC+2 ).",it:"Tempo UTC: UTC è l'acronimo di “Coordinated Universal Time”. È lo standard temporale riconosciuto a livello internazionale in base al quale l'ora viene coordinata in tutto il mondo.\n        Ora locale in Svizzera: ora dell'Europa centrale (CET – Central European Time): in inverno, la Svizzera è in CET (UTC+1 ora). Ora legale dell'Europa centrale (CEST – Central European Summer Time): in estate l'ora è anticipata di un'ora: la Svizzera è in CEST (UTC+2 ore).",en:'Time indication UTC: UTC stands for "Coordinated Universal Time." It is the internationally recognized time standard used to coordinate time worldwide.\n        Local time in Switzerland: Central European Time (CET): In winter, Switzerland operates on CET (UTC+1 hour). Central European Summer Time (CEST): In summer, the clocks are set forward by one hour: Switzerland operates on CEST (UTC+2 hours).'}},jt=(0,H.V)(yt),_t=({webcamId:e,mva:a,loading:t="eager"})=>{const[r,s]=(0,n.useState)({title:`${jt("webcamsDefaultTitle")} ${null!=e?e:""}`,mva:a&&a.url?Object.assign(Object.assign({},a),{url:(l=a.url,o=e,`${l}#lang=${(0,U.Z0)()}&param=messnetz-webcams${o?`&station=${o}`:""}`)}):void 0});var l,o;(0,n.useEffect)((()=>{(async()=>{var a,t,i,n;if(e)try{const r=await fetch(`/product/output/measured-values/stationMeta/messnetz-webcams/stationMeta.messnetz-webcams.${e}.${(0,U.Z0)()}.json`);if(!r.ok)return;const l=await r.json(),o=null===(t=null===(a=null==l?void 0:l.meta)||void 0===a?void 0:a.station_name)||void 0===t?void 0:t.value,d=null===(n=null===(i=null==l?void 0:l.meta)||void 0===i?void 0:i.altitude)||void 0===n?void 0:n.value,c=null==l?void 0:l.roundshot;s((e=>Object.assign(Object.assign({},e),{title:void 0!==o&&void 0!==d?jt("webcamsTitle").replace("$city",o).replace("$altitude",d):e.title,webcam:(null==c?void 0:c.iframe_src)?c:void 0})))}catch(e){console.error(e)}})()}),[]);const{openApplicationOverlay:d}=(0,wt.wC)(),c=(0,n.useCallback)((e=>{e.preventDefault(),r.mva&&r.mva.url&&d({title:r.mva.heading,lead:r.mva.lead,url:r.mva.url})}),[r,d]);return(0,i.jsxs)("div",{style:{minHeight:"var(--mch-product-webcam__iframe-height)"},children:[(0,i.jsx)(F.h,{level:2,className:"webcam-iframe__header",children:r.title}),r.webcam&&(0,i.jsx)(ee.B,{timeout:1e3,children:(0,i.jsx)(vt.J,{position:"top",space:"space--3xl",children:(0,i.jsxs)(ft.B,{space:"space--2xs",children:[(0,i.jsx)("iframe",{id:r.webcam.iframe_id,src:r.webcam.iframe_src,className:"webcam-iframe__iframe",loading:t}),(0,i.jsx)(bt.E,{children:jt("timezoneHint")})]})})}),r.mva&&r.mva.webcamsLabel&&r.mva.url&&(0,i.jsx)(gt.P,{shrinkContent:!0,justifyContent:"flex-end",className:"webcam-iframe__mva-link-container",children:(0,i.jsx)(xt.N_,{className:"webcam-iframe__mva-link",icon:"arrow-right",href:r.mva.url,onClick:c,children:r.mva.webcamsLabel})})]})},kt=(e,a)=>e.reduce(((e,t)=>{const i=t[0]-a;return Math.abs(i)<Math.abs(e.distance)||Math.abs(i)===Math.abs(e.distance)&&i>0?{item:t,distance:i}:e}),{item:void 0,distance:Number.MAX_SAFE_INTEGER}).item,St=(e,a)=>{var t,i,n,r,s;const l=e.temperature.map((([e],a)=>({timestamp:e,index:a}))),o=Tt(a,l),d=e.sunshineVariance[o],c=d&&null!==d[1]&&null!==d[2]?[d[1],d[2]]:void 0,u=(0,ie.Bq)(e.hazards.getRegions(),e.hazards.forTimeRange(new Date(a),new Date(a)),ie.kS,!1);return{temperature:e.temperature[o][1],temperatureVariance:[e.temperatureVariance[o][1],e.temperatureVariance[o][2]],precipitation:e.precipitation[o][1],precipitationVariance:[e.precipitationVariance[o][1],e.precipitationVariance[o][2]],timestamp:a,weatherSymbol:null!==(i=null===(t=kt(e.weatherSymbol,a))||void 0===t?void 0:t[1])&&void 0!==i?i:0,windSpeed:null===(n=e.windSpeed[o])||void 0===n?void 0:n[1],windSpeedVariance:[e.windSpeedVariance[o][1],e.windSpeedVariance[o][2]],windGustPeak:null===(r=e.windGustPeak[o])||void 0===r?void 0:r[1],windGustPeakVariance:[e.windGustPeakVariance[o][1],e.windGustPeakVariance[o][2]],windDirection:null===(s=kt(e.windDirection,a))||void 0===s?void 0:s[1],sunshine:e.sunshine[o][1],sunshineVariance:c,dangers:u}},Tt=(e,a)=>{let t=Number.MAX_SAFE_INTEGER,i=0;return a.forEach((({timestamp:a,index:n})=>{const r=e-a;r>=0&&r<t&&(t=r,i=n)})),i},$t=(e,a)=>{const t=[null!=a?a:new Date(0),e];return ae(t)},zt=e=>void 0!==e&&e.trim().length>0,Nt=e=>{const a=null==e?void 0:e.getRootNode(),t=a instanceof ShadowRoot?a.host:null==e?void 0:e.closest("mch-local-forecast");t instanceof HTMLElement&&(t.style.minHeight="0")},Dt=({currentTimestamp:e,bulletinPage:a,climateMonitor:t,precipitationProbabilityExplanation:r,mva:s,weatherApplicationTeaserListTitle:l,showBlogTeasers:o,delayedLoadTimeout:d})=>{const c=e||Date.now(),{persistentMyLocations:u,toggleLocation:m}
1=(0,q.q)(),[h,p]=(0,n.useState)({timestamp:c,scrollToTimestamp:!1}),v=(0,n.useMemo)(fe.l,[]),g=(0,X.S)(pt,(async e=>{if(void 0===v)throw new Error("Missing location properties on current page.");const a=await async function(e,a){const t=await fetch(`${e}${(0,U.Z0)()}/${a}.json`);return(await t.json()).data}(e,v.id),t=await ma(v,(0,U.Z0)()),i=function(e,a){let t=e.timestamp;const i=[...e.forecasts];for(let e=0;e<i.length;e++){const[n,r]=(0,K.e)(t),s=a.forTimeRange(new Date(1e3*n),new Date(1e3*r)).getState();i[e]=Object.assign(Object.assign({},i[e]),{warnLevel:s.dangerLevel,isUncertain:s.dangerIsOutlook}),t+=86400}return i}(a,t.hazards),{horizonInPast:n}=(0,ne.T)(i.map((e=>e.noon)),c),r=(0,ne.T)(t.temperature.map((([e])=>e)),c).horizonInPast;if(n||r)throw new Error("Local forecast horizon is entirely in the past.");return((e,a)=>{const t=(0,K.jO)(a),i=e=>(0,K.jO)(e)>=t,n=e.dailyForecasts.filter((e=>i(e.noon)));if(0===n.length)return e;const r=e=>e.filter((([e])=>i(e))),s=e=>e.filter(i),l=r(e.chartData.temperature);return Object.assign(Object.assign({},e),{dailyForecasts:n,chartData:Object.assign(Object.assign({},e.chartData),{temperature:l,temperatureVariance:r(e.chartData.temperatureVariance),precipitation:r(e.chartData.precipitation),precipitationVariance:r(e.chartData.precipitationVariance),weatherSymbol:r(e.chartData.weatherSymbol),weatherSymbolDay:r(e.chartData.weatherSymbolDay),windSpeed:r(e.chartData.windSpeed),windSpeedVariance:r(e.chartData.windSpeedVariance),windDirection:r(e.chartData.windDirection),windGustPeak:r(e.chartData.windGustPeak),windGustPeakVariance:r(e.chartData.windGustPeakVariance),sunshine:r(e.chartData.sunshine),sunshineVariance:r(e.chartData.sunshineVariance),sunrise:s(e.chartData.sunrise),sunset:s(e.chartData.sunset),start:l.length>0?l[0][0]:e.chartData.start,end:l.length>0?l[l.length-1][0]:e.chartData.end})})})({locationName:v.name,zipCode:v.plz,altitude:String(v.altitude),dailyForecasts:i,chartData:t},c)})),f=(0,J.k)(),b=(0,n.useRef)(null),w=u.findIndex((e=>e===(null==v?void 0:v.id)))>-1,x=(0,n.useRef)(null),y=(0,n.useRef)(null),j=(0,n.useRef)(null),_=(0,n.useRef)(null),k=(0,n.useRef)(null),S=(0,n.useRef)(null),T=(0,n.useRef)(null),$=(0,n.useMemo)((()=>{if(g.state===Q.V.Success){const e=[{id:"localforecast",title:Be("localForecastAnchor"),ref:x},{id:"dangers",title:Be("dangersAnchor"),ref:y},{id:"applications",title:l,ref:T},{id:"measuredValues",title:Be("measuredValuesAnchor"),ref:S},{id:"webcams",title:Be("webcamsAnchor"),ref:k},{id:"climate",title:Be("climateAnchor"),ref:j}];return o&&e.push({id:"blog",title:Be("blogAnchor"),ref:_}),e}return[]}),[g]);(0,H.fI)($);if("scrollRestoration"in history&&(history.scrollRestoration="manual"),g.state===Q.V.Loading)return(0,i.jsx)("div",{children:(0,i.jsx)(Z.A,{})});if(g.state===Q.V.Error)return(0,i.jsx)("div",{ref:Nt,children:(0,i.jsx)("div",{children:g.message})});const z={localForecastData:g.data,onDayChange:e=>{const a=(0,K.ro)(new Date(e),new Date(c))?c:e;if(p({timestamp:a,scrollToTimestamp:!0}),f===J.XS&&b.current){const e=b.current.getBoundingClientRect().top+window.scrollY-10;window.scrollTo({top:e,behavior:"smooth"})}},filterRef:b,currentTimestamp:c,selectedTimestamp:h,setSelectedTimestamp:p,precipitationProbabilityExplanation:r};return(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"local-forecast",children:[(0,i.jsxs)("section",{className:"local-forecast__container",ref:x,"aria-label":Be("localForecastSection"),children:[(0,i.jsxs)("div",{className:"local-forecast__title-wrapper",children:[(0,i.jsx)(F.h,{level:1,children:[Be("LocalForecast"),g.data.zipCode,(N=g.data.locationName,D=g.data.altitude,N?D?N+", "+D+" "+Be("metersAboveSeaLevel"):N:"")].filter(zt).join(" ")}),(null==v?void 0:v.id)?(0,i.jsx)("div",{className:"local-forecast__favorite-toggle",children:(0,i.jsxs)(G.$,{onClick:()=>{(e=>{if(g.state!==Q.V.Success)return;m(e);const a={category:"Favorites",parameter:w?"click remove location from favorites":"click add location to favorites",name:`${g.data.zipCode} - ${g.data.locationName}`};(0,H.hZ)("analytics-track-event",{data:a})})(null==v?void 0:v.id)},kind:"clear",children:[(0,i.jsx)("span",{className:"local-forecast__toggle-text",children:Be(w?"remove-from-my-locations":"add-to-my-locations")}),(0,i.jsx)(B.In,{name:w?"favorite-selected":"favorite",size:"2xl","aria-hidden":!0})]})}):null]}),(0,i.jsx)(ge,{tabs:{"detail-view":(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ut,Object.assign({},z)),(0,i.jsx)("div",{className:"local-forecast__detail",children:(0,i.jsx)(na,Ob
1ject.assign({},St(g.data.chartData,h.timestamp),{precipitationProbabilityExplanation:r,viewMode:te.DETAIL_VIEW}))})]}),"weekly-overview":(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(mt,Object.assign({},z)),(0,i.jsx)("div",{className:"local-forecast__detail",children:(0,i.jsx)(na,Object.assign({},St(g.data.chartData,h.timestamp),{precipitationProbabilityExplanation:r,viewMode:te.WEEKLY_OVERVIEW}))})]}),"wind-gust-peaks":(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ht,Object.assign({},z)),(0,i.jsx)("div",{className:"local-forecast__detail",children:(0,i.jsx)(na,Object.assign({},St(g.data.chartData,h.timestamp),{viewMode:te.WIND_GUST_PEAKS}))})]})}}),(0,i.jsx)("div",{className:"local-forecast__updated_on local-forecast__updated_on--chart",children:(0,i.jsx)(Y.B,{lastUpdate:$t(g.lastUpdate,g.data.chartData.lastUpdate)})})]}),(0,i.jsxs)("section",{className:"local-forecast__hazards-list",ref:y,"aria-label":Be("dangerSection"),children:[(0,i.jsx)(F.h,{level:2,children:[Be("dangersForRegion"),g.data.zipCode,g.data.locationName].filter(zt).join(" ")}),(0,i.jsx)(fa,{ngp:g.data.chartData.ngp,hazards:g.data.chartData.hazards,location:g.data.locationName,bulletinPage:a,useHashState:!1,currentDate:new Date(c)}),(0,i.jsx)("div",{className:"local-forecast__updated_on local-forecast__updated_on--local-hazards-list",children:(0,i.jsx)(Y.B,{lastUpdate:g.data.chartData.lastUpdateDangers||new Date(0)})})]}),(0,i.jsx)("section",{className:"local-forecast__applications",ref:T,"aria-label":Be("applicationsSection"),children:(0,i.jsx)("slot",{name:"applicationTeasers"})}),(0,i.jsx)("section",{className:"local-forecast__measured-values",ref:S,"aria-label":Be("measuredValuesSection"),children:(0,i.jsx)(ee.B,{timeout:null!=d?d:100,children:(0,i.jsx)(se.LocalMeasuredValues,{stationId:null==v?void 0:v.stationId,mva:s})})}),(0,i.jsx)("section",{className:"local-forecast__webcam",ref:k,"aria-label":Be("webcamsSection"),children:(0,i.jsx)(_t,{webcamId:null==v?void 0:v.webcamId,mva:s,loading:"lazy"})}),(0,i.jsx)("section",{className:"local-forecast__climate-monitor",ref:j,"aria-label":Be("climateSection"),children:(0,i.jsx)(re.A,{heading:[Be("climateMonitorForLocation"),g.data.zipCode,g.data.locationName].filter(zt).join(" "),headingLevel:2,locationId:null==v?void 0:v.id,descriptionUrl:null==t?void 0:t.descriptionUrl,descriptionLabel:null==t?void 0:t.descriptionLabel})}),o&&(0,i.jsx)("section",{className:"local-forecast__blog-teasers",ref:_,"aria-label":Be("blogSection"),children:(0,i.jsx)("slot",{name:"blogTeasers"})})]})});var N,D},At=(0,r.b)({reactComponent:Dt,cssUrls:[...R],properties:{currentTimestamp:Number,bulletinPage:Object,climateMonitor:Object,mva:Object,precipitationProbabilityExplanation:String,weatherApplicationTeaserListTitle:String,showBlogTeasers:Boolean}}),Ot=(0,s.N)("mch-local-forecast",At),Mt=e=>(0,i.jsx)(Ot,Object.assign({},e)),Vt=At},79893:(e,a,t)=>{t.d(a,{l:()=>i});const i=()=>{if("undefined"!=typeof window)return window.__mchwebLocalforecastLocation}},94971:(e,a,t)=>{t.r(a),t.d(a,{LocalMeasuredValues:()=>ie,LocalMeasuredValuesElement:()=>ae,default:()=>ne});var i=t(65723),n=t(41594),r=t(69913),s=t(91536),l=t(97848),o=t(4583);const d=t.p+"css/mch/local-measured-value.e7fb4555.css",c=[...o.b,d].filter(((e,a,t)=>t.indexOf(e)===a)),u=t.p+"css/mch/local-measured-values.40839574.css",m=[...l.G,...c,u].filter(((e,a,t)=>t.indexOf(e)===a));var h=t(6510),p=t(16728),v=t(49703),g=t(71408),f=t(20780),b=t(74837),w=t(5062),x=t(11618);const y=(0,x.V)({headingWithStationName:{de:"Aktuelle Messwerte Messstation $station",fr:"Valeurs actuelles de la station de mesure $station",it:"Valori attuali della stazione di misura $station",en:"Current values of the station $station"},headingSuffixAltitude:{de:", $altitude m. ü. M.",fr:", $altitude m s. mer",it:", $altitude m slm",en:", $altitude m a. sea level"},temperature:{de:"Temperatur",fr:"Température",it:"Temperatura",en:"Temperature"},precipitation:{de:"Niederschlag",fr:"Précipitation",it:"Precipitazione",en:"Precipitation"},wind:{de:"Wind",fr:"Vent",it:"Vento",en:"Wind"},gusts:{de:"Böenspitzen",fr:"Rafale de vent",it:"Raffica del vento",en:"Gust peak"},sunshine:{de:"Sonnenschein",fr:"Ensoleillement",it:"Soleggiamento",en:"Sunshine"},pressure:{de:"Druck",fr:"Pression",it:"Pressione",en:"Pressure"},humidity:{de:"Feuchtigkeit",fr:"Humidité",it:"Umidità",en:"Humidity"},noData:{de:"keine Daten",fr:"pas de données",it:"senza dati",en:"no data"},noDataEver:{de:"keine Messung",fr:"pas de mesure",it:"senza misura",en:"no measurement"}}),j=(e,a)=>new Array(a-e+1).fill(e).map(((e,a)=>e+a)),_=e=>e/180*Math.PI,k=e=>{return a=Math.cos(e),t=Math.sin(e),{x:a,y:t};var a,t},S=(e,a)=>({x:e.x*a,y:e.y*a}),T=(e,a)=>((e,a)=>({x:e.x+a.x,y:e.y+a.y}))(e,S(a,-1)),$=e=>+e.toFixed(3),z=({x:e,y:a})=>`${$(e)},${$(a)}`,N=([e,...a])=>`M ${z(e)}${a.map((e=>` L ${z(e)}`)).join("")} Z`,D=({center:e,angle:a,radius:t,color:n="#979797",width:r=12,offsetAngle:s=0})=>{const l=a=>T(e,S(k(a),t)),o=l(_(s)),d=l(_(a+s));return(0,i.jsx)("path",{fill:"none",stroke:n,strokeWidth:r,d:`M ${z(o)} A ${t},${t} 0 ${a>180?"1":"0"} 1 ${z(d)}`})},A=({center:e,angle:a,radius:t,length:n,color:r})=>{const s=(a,t)=>T(e,S(k(a),t));return(0,i.jsx)("path",{fill:r,d:N([s(_(a-6),t),s(_(a-.2),t+n),s(_(a+.2),t+n),s(_(a+6),t)])})},O=({center:e,angle:a,radius:t,color:n="#979797"})=>{const r=(a,t)=>T(e,S(k(a),t));return(0,i.jsx)("path",{fill:n,d:N([r(_(a),t-15),r(_(a-1.6),t),r(_(a+1.6),t)])})},M=({start:e,end:a,color:t})=>(0,i.jsx)("path",{fill:"none",stroke:t,strokeWidth:1,d:`M ${z(e)} L ${z(a)}`});function V(e,a,t,i,n,r){const s=n?a-i:a,l=r?t+i:t,o=(Math.min(l,Math.max(s,e))-a)/(t-a);return 180*(o>1?1+.5*(o-1):o<0?.5*o:o)}function W({stroke:e,anchor:a,value:t,textAngle:n}){return(0,i.jsx)("text",{"aria-hidden":!0,x:$(a.x),y:$(a.y),textAnchor:"middle",transform:`rotate(${$(n)}, ${$(a.x)}, ${$(a.y)})`,strokeWidth:0,stroke:e,fill:e,style:{fontSize:"var(--wb-ds-font-size--2xl)",lineHeight:"var(--wb-ds-line-height--2xl)"},children:t})}const C=(0,n.memo)((({min:e,max:a,majorStep:t,minorStep:n,value:r,markerValue:s,type:l="needle",color:o="#a5f4fd",below:d=!1,above:c=!1})=>{const u=void 0!==r?V(r,e,a,t,d,c):void 0,m=void 0!==s?V(s,e,a,t,d,c):void 0,h={x:250,y:250},p=(e,a)=>T(h,S(k(e),a)),v=Math.round((a-e)/n),g=Math.round(t/n),f=j(0,v).map((t=>{const i=t%g==0;return{angle:Math.PI*(t/v),isMajor:i,value:e+t/v*(a-e)}})),b=[...d?j(-g,-1).map((e=>({angle:Math.PI*(e/(2*v)),isMajor:!1,value:void 0}))):[],...f,...c?j(1,g).map((e=>({angle:Math.PI*(1+e/(2*v)),isMajor:!1,value:void 0}))):[]];return(0,i.jsxs)("svg",{viewBox:"0 0 500 350",width:"100%",height:"100%",children:[b.map((({angle:e,value:a,isMajor:t})=>t&&void 0!==a?(0,i.jsx)(W,{stroke:o,anchor:p(e,216),value:a,textAngle:e/Math.PI*180-90},e):null)),(0,i.jsxs)("g",{children:[(0,i.jsx)("g",{children:b.map((({angle:e,isMajor:a},t)=>(0,i.jsx)(M,{start:p(e,160),end:p(e,a?204:175),color:"var(--wb-ds-color-gray--white)"},t)))}),(0,i.jsx)(D,{center:h,angle:180,radius:145,color:"var(--wb-ds-color-gray--light)",width:1}),(0,i.jsx)(D,{center:h,angle:180,radius:249,color:"var(--wb-ds-color-gray--light)",width:1})]}),m?(0,i.jsx)(O,{center:h,angle:m,radius:249,color:o}):null,void 0!==u?"arc"===l?(0,i.jsx)(D,{center:h,angle:u,radius:160,color:o,width:14}):(0,i.jsx)(A,{center:h,angle:u,radius:100,length:130,color:o}):null]})})),P=[[0,940,-10,30],[941,1661,-15,25],[1662,2501,-20,20],[2502,3129,-25,15],[3130,1e4,-30,10]],E=[[0,202,960,1010],[203,342,950,1e3],[343,427,940,990],[428,538,930,980],[539,622,920,970],[623,697,910,960],[698,789,900,950],[790,844,890,940],[845,95
17,880,930],[958,1049,870,920],[1050,1135,860,910],[1136,1204,850,900],[1205,1320,840,890],[1321,1385,830,880],[1386,1464,820,870],[1465,1604,810,860],[1605,1708,800,850],[1709,1803,790,840],[1804,1897,780,830],[1898,1979,770,820],[1980,2170,750,800],[2171,2285,740,790],[2286,2379,730,780],[2380,2500,720,770],[2501,2690,700,750],[2691,2733,690,740],[2734,2891,680,730],[2892,2963,670,720],[2964,3128,660,710],[3129,3293,650,700],[3294,1e4,620,670]],L=(e,a)=>{for(const t of a)if(t[0]<=e&&t[1]>=e)return{min:t[2],max:t[3]};return{min:0,max:0}},I={temperature:(e=0)=>Object.assign(Object.assign({param:"lufttemperatur-10min",unit:"°C"},L(e,P)),{minorStep:2,majorStep:10,color:"#fc656b",type:"needle",below:!0,above:!0,icon:"lfd-temperature"}),precipitation:()=>({param:"niederschlag-10min",unit:"mm/10min",min:0,max:10,minorStep:.2,majorStep:2,color:"#60a5fa",type:"arc",above:!0,icon:"lfd-rain"}),wind:()=>({param:"windgeschwindigkeit-kmh-10min",unit:"km/h",min:0,max:140,minorStep:5,majorStep:20,color:"#f472b6",type:"needle",above:!0,icon:"lfd-wind"}),sunshine:()=>({param:"sonnenscheindauer-10min",unit:"min/10min",min:0,max:10,minorStep:.5,majorStep:1,color:"#fbbf24",type:"arc",icon:"lfd-sun"}),pressure:(e=0)=>Object.assign(Object.assign({param:"luftdruck-qfe-10min",unit:"hPa"},L(e,E)),{minorStep:2,majorStep:10,color:"#a78bfa",type:"needle",above:!0,below:!0,icon:"lfd-pressure"}),humidity:()=>({param:"luftfeuchtigkeit-10min",unit:"%",min:0,max:100,minorStep:2,majorStep:10,color:"#34d399",type:"needle",icon:"lfd-humidity"})};var R=t(43051);const U=Object.assign({},R.A),F=(0,x.V)(U),H=["N","NE","E","SE","S","SW","W","NW"];var G=function(e,a){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)a.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]])}return t};const B=e=>void 0!==e&&"direction"in e,Z=({measurement:e,onClick:a,type:t,baseUrl:r,altitude:s})=>{var l;const o=(0,n.useMemo)((()=>((e,a)=>I[e](a))(t,s)),[t,s]),{param:d,unit:c,icon:u}=o,m=G(o,["param","unit","icon"]),h=(0,n.useCallback)((e=>{e.preventDefault(),a(d)}),[a,t]),p=null!=(null==e?void 0:e.stationName),v=null!=(null==e?void 0:e.value);return(0,i.jsxs)("a",{className:(0,w.x)({"local-measured-value":!0,"local-measured-value--inactive":!p}),onClick:p?h:()=>null,href:p?r?`${r}&param=${d}`:"":void 0,children:[(0,i.jsx)(C,Object.assign({value:null==e?void 0:e.value,markerValue:B(e)?e.gust:void 0},m)),(0,i.jsxs)("div",{className:"local-measured-value__data",children:[(0,i.jsx)("div",{className:"local-measured-value__unit",children:c}),(0,i.jsxs)("div",{className:"local-measured-value__value",children:[(0,i.jsx)(b.A,{icon:u,className:(0,w.x)({"local-measured-value__icon--hidden":!v}),background:"transparent",size:"large",title:y(t)}),p?null!==(l=null==e?void 0:e.value)&&void 0!==l?l:y("noData"):y("noDataEver")]}),(0,i.jsx)("div",{className:"local-measured-value__label",children:B(e)?(g=e.direction,F(H[Math.round(g/(360/H.length))%H.length])):y(t)}),(0,i.jsx)("div",{className:"local-measured-value__marker-label",style:{color:m.color},children:B(e)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("svg",{viewBox:"0 0 20 20",className:"local-measured-value__marker",children:(0,i.jsx)("path",{fill:m.color,d:"M3,3 L17,3 L10,17 Z"})}),y("gusts")]}):""})]})]});var g},K=e=>!!e,Y=e=>{if((null==e?void 0:e.current.value)&&(null==e?void 0:e.current.date))return{value:Number.parseFloat(e.current.value),date:e.current.date}},q=e=>{if((null==e?void 0:e.current.value)&&(null==e?void 0:e.current.date))return{value:Number.parseFloat(e.current.value),date:e.current.date,direction:e.current.wind_direction}},X=async(e,a,t,i=Y)=>{try{const r=await(await fetch(`/product/output/measured-values/stationsTable/messwerte-${e}/stationsTable.messwerte-${e}.${a}.json`)).json();if(Array.isArray(null==r?void 0:r.stations)){const e=r.stations.find((e=>e.id===t));return Object.assign({stationName:null==e?void 0:e.station_name,altitude:(n=null==e?void 0:e.altitude,"string"==typeof n?Number.parseFloat(n):void 0)},i(e))}}catch(i){console.error(`Failed to load measured values for param '${e}', language '${a}' and station '${t}'`)}var n},J=async(e,a)=>{var t,i;
1try{const n=await fetch(`/product/output/measured-values/stationMeta/messnetz-automatisch/stationMeta.messnetz-automatisch.${e}.${a}.json`);if(!n.ok)return"";const r=await n.json(),s=null===(i=null===(t=null==r?void 0:r.meta)||void 0===t?void 0:t.altitude)||void 0===i?void 0:i.value;return"string"==typeof s?s.split("/")[0].trim():""}catch(e){return""}},Q=(e,a,t)=>`${e}#lang=${(0,h.Z0)()}&station=${a}${t?`&param=messwerte-${t}`:""}`,ee=({stationId:e,mva:a})=>{var t,r,s,l,o,d;const[c,u]=(0,n.useState)();(0,n.useEffect)((()=>{e&&(async e=>{var a;const t=await Promise.all([X("lufttemperatur-10min",(0,h.Z0)(),e),X("niederschlag-10min",(0,h.Z0)(),e),X("windgeschwindigkeit-kmh-10min",(0,h.Z0)(),e,q),X("sonnenscheindauer-10min",(0,h.Z0)(),e),X("luftdruck-qfe-10min",(0,h.Z0)(),e),X("luftfeuchtigkeit-10min",(0,h.Z0)(),e),X("wind-boeenspitze-kmh-10min",(0,h.Z0)(),e),J(e,(0,h.Z0)())]);return{temperature:t[0],precipitation:t[1],wind:t[2]?Object.assign(Object.assign({},t[2]),{gust:null===(a=t[6])||void 0===a?void 0:a.value}):void 0,sunshine:t[3],pressure:t[4],humidity:t[5],stationAltitude:t[7]}})(e).then(u).catch((e=>console.error("Failed to load measurements for local measured values",e)))}),[e]);const m=(0,n.useMemo)((()=>(e=>{const a=Object.values(null!=e?e:{}).filter(K).map((({date:e})=>e)).filter(K);return a.length>0?new Date(Math.max(...a)):void 0})(c)),[c]),b=(0,n.useMemo)((()=>{var e;return{name:null===(e=Object.values(null!=c?c:{}).filter((e=>null!=e&&"object"==typeof e)).find((({stationName:e})=>e)))||void 0===e?void 0:e.stationName}}),[c]),w=(0,n.useMemo)((()=>{var e,a;return[y("headingWithStationName").replace("$station",null!==(e=b.name)&&void 0!==e?e:""),null!==(a=null==c?void 0:c.stationAltitude)&&void 0!==a?a:""].join(" ")}),[b,null==c?void 0:c.stationAltitude]),{openApplicationOverlay:x}=(0,v.wC)(),j=(0,n.useCallback)((t=>{a&&a.url&&x({title:a.heading,lead:a.lead,url:Q(a.url,e,t)})}),[a,x,e]),_=(0,n.useCallback)((e=>{e.preventDefault(),j()}),[j]),k=a&&Q(a.url,e);return(0,i.jsxs)("div",{className:"local-measured-values",children:[(0,i.jsx)(p.h,{level:2,className:"local-measured-values__heading",children:w}),(0,i.jsx)("div",{className:"local-measured-values__values-wrapper",children:(0,i.jsxs)("div",{className:"local-measured-values__values",children:[(0,i.jsx)("div",{className:"local-measured-values__value",children:(0,i.jsx)(Z,{type:"temperature",onClick:j,altitude:null===(t=null==c?void 0:c.temperature)||void 0===t?void 0:t.altitude,measurement:null==c?void 0:c.temperature,baseUrl:k})}),(0,i.jsx)("div",{className:"local-measured-values__value",children:(0,i.jsx)(Z,{type:"precipitation",onClick:j,altitude:null===(r=null==c?void 0:c.precipitation)||void 0===r?void 0:r.altitude,measurement:null==c?void 0:c.precipitation,baseUrl:k})}),(0,i.jsx)("div",{className:"local-measured-values__value",children:(0,i.jsx)(Z,{type:"wind",onClick:j,altitude:null===(s=null==c?void 0:c.wind)||void 0===s?void 0:s.altitude,measurement:null==c?void 0:c.wind,baseUrl:k})}),(0,i.jsx)("div",{className:"local-measured-values__value",children:(0,i.jsx)(Z,{type:"sunshine",onClick:j,altitude:null===(l=null==c?void 0:c.sunshine)||void 0===l?void 0:l.altitude,measurement:null==c?void 0:c.sunshine,baseUrl:k})}),(0,i.jsx)("div",{className:"local-measured-values__value",children:(0,i.jsx)(Z,{type:"pressure",onClick:j,altitude:null===(o=null==c?void 0:c.pressure)||void 0===o?void 0:o.altitude,measurement:null==c?void 0:c.pressure,baseUrl:k})}),(0,i.jsx)("div",{className:"local-measured-values__value",children:(0,i.jsx)(Z,{type:"humidity",onClick:j,altitude:null===(d=null==c?void 0:c.humidity)||void 0===d?void 0:d.altitude,measurement:null==c?void 0:c.humidity,baseUrl:k})})]})}),m||a?(0,i.jsxs)("div",{className:"local-measured-values__link-and-last-update-container",children:[m&&(0,i.jsx)(f.B,{lastUpdate:m}),a?(0,i.jsx)(g.N_,{className:"local-measured-values__overview-link",icon:"arrow-right",href:null==a?void 0:a.url,onClick:_,children:null==a?void 0:a.label}):null]}):null]})},ae=(0,r.b)({reactComponent:ee,cssUrls:[...m],properties:{stationId:String,mva:Object}}),te=(0,s.N)("mch-local-measured-values",ae),ie=e=>(0,i.jsx)(te,Object.assign({},e)),ne=ae},91969:(e,a,t)=>{t.d(a,{A:()=>g});var i=t(65723),n=t(41594),r=t(6510),s=t(16728),l=t(11618),o=t(49703),d=t(40149),c=t(39104),u=t(68985),m=t(13324),h=t(5113),p=t(75396);const v=(0,l.V)({bulletinTitle:{de:"Naturgefahrenbulletin des Bundes",fr:"Bulletin de vigilance dangers naturels de la Confédération",it:"Bollettino sui pericoli naturali della Confederazione",en:"Federal natural hazard bulletins",rm:"Bulletin federal dals privels da la natira"},issuedOn:{de:"Ausgabedatum",fr:"Date d'édition",it:"Data di edizione",en:"Date of issue"},nextUpdateOn:{de:"Nächste Information",fr:"Information suivante",it:"Prossima informazione",en:"Next information"},bulletinLink:{de:"Zum Naturgefahrenbulletin",fr:"Vers le bulletin de vigilance dangers naturels",it:"Al Bollettino sui pericoli naturali",en:"Go to natural hazard bulletin"}}),g=(0,n.forwardRef)((({bulletinPage:e,onUpdate:a,className:t},g)=>{var f;
1const b=(0,m.S)(p.R,(async e=>{const t=await fetch(`${e}naturalhazardbulletin_${(0,r.Z0)()}.json`),i=await t.json(),n="title"in i;return null==a||a(n),n?i:void 0})),{openApplicationOverlay:w}=(0,o.wC)(),x=(0,n.useCallback)((a=>{a.preventDefault(),(null==e?void 0:e.url)&&(null==e?void 0:e.title)&&w({title:e.title,lead:e.lead,url:e.url});const t={category:"Teaser",parameter:"click ngb teaser",name:void 0};(0,l.hZ)("analytics-track-event",{data:t})}),[e,w]);return(0,i.jsxs)("div",{ref:g,className:t,children:[b.state===h.V.Loading?(0,i.jsx)(c.A,{}):null,b.state===h.V.Error?(0,i.jsx)("div",{children:b.message}):null,b.state===h.V.Success?b.data&&(0,i.jsxs)(u.A,{url:null!==(f=null==e?void 0:e.url)&&void 0!==f?f:"#",onClick:x,className:"natural-hazard-bulletin-teaser",children:[(0,i.jsx)(s.h,{level:3,className:"natural-hazard-bulletin-teaser__title",children:v("bulletinTitle")}),(0,i.jsxs)("dl",{children:[(0,i.jsxs)("dt",{className:"natural-hazard-bulletin-teaser__date-label",children:[v("issuedOn"),":"]}),(0,i.jsx)("dd",{className:"natural-hazard-bulletin-teaser__date-value",children:b.data.issuedOn&&(0,l.P$)(b.data.issuedOn,(0,r.Z0)())}),b.data.nextUpdateOn?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("dt",{className:"natural-hazard-bulletin-teaser__date-label",children:[v("nextUpdateOn"),":"]}),(0,i.jsx)("dd",{className:"natural-hazard-bulletin-teaser__date-value",children:(0,l.P$)(b.data.nextUpdateOn,(0,r.Z0)())})]}):null]}),(0,i.jsx)("p",{className:"natural-hazard-bulletin-teaser__hazard-title",children:b.data.title}),(0,i.jsx)("p",{className:"natural-hazard-bulletin-teaser__lead",children:b.data.lead}),(0,i.jsxs)("div",{className:"natural-hazard-bulletin-teaser__link",children:[(0,i.jsx)("span",{children:v("bulletinLink")}),(0,i.jsx)(d.In,{name:"arrow-up-right",size:"m"})]})]}):null]})}))},61671:(e,a,t)=>{t.r(a),t.d(a,{NaturalHazardBulletinTeaser:()=>c,NaturalHazardBulletinTeaserElement:()=>o,default:()=>u});var i=t(65723),n=(t(41594),t(69913)),r=t(91536),s=t(22743),l=t(91969);const o=(0,n.b)({reactComponent:l.A,cssUrls:[...s.W],properties:{bulletinPage:Object}}),d=(0,r.N)("mch-product-natural-hazard-bulletin-teaser",o),c=e=>(0,i.jsx)(d,Object.assign({},e)),u=o},22743:(e,a,t)=>{t.d(a,{W:()=>s});var i=t(75857),n=t(39627);const r=t.p+"css/mch/natural-hazard-bulletin-teaser.7ebf3a02.css",s=[...i.Q,...n.G,r].filter(((e,a,t)=>t.indexOf(e)===a))},75396:(e,a,t)=>{t.d(a,{R:()=>i});const i={key:"natural-hazard-bulletin",fallback:"v0",paths:{v0:"/product/output/natural-hazard-bulletin/",v2:"/product/output/versioned/natural-hazard-bulletin/v2/"}}},52487:(e,a,t)=>{t.d(a,{i:()=>s});var i=t(97329),n=t(4583);const r=t.p+"css/mch/parameter-dropdown.e1428d00.css",s=[...i.E,...n.b,r].filter(((e,a,t)=>t.indexOf(e)===a))},62278:(e,a,t)=>{t.d(a,{T:()=>r});var i=t(52487),n=t(67325);const r=[...i.i,...n.r].filter(((e,a,t)=>t.indexOf(e)===a))},68985:(e,a,t)=>{t.d(a,{A:()=>r});var i=t(65723),n=t(5062);const r=({children:e,onClick:a,url:t,className:r,onKeyUp:s})=>(0,i.jsx)("a",{className:(0,n.x)("product-teaser-box",r),href:t,onClick:a,onKeyUp:s,children:e})},39627:(e,a,t)=>{t.d(a,{G:()=>i});const i=[t.p+"css/mch/product-teaser-box.ad7680fa.css"].filter(((e,a,t)=>t.indexOf(e)===a))},67325:(e,a,t)=>{t.d(a,{r:()=>s});var i=t(97329),n=t(82100);const r=t.p+"css/mch/tab-list.a62122df.css",s=[...i.E,...n.i,r].filter(((e,a,t)=>t.indexOf(e)===a))},3501:(e,a,t)=>{t.d(a,{a:()=>l});var i=t(4583),n=t(41992),r=t(80925);const s=t.p+"css/mch/warning-metadata.7cca1349.css",l=[...i.b,...n.r,r,s].filter(((e,a,t)=>t.indexOf(e)===a))},73054:(e,a,t)=>{t.d(a,{y:()=>i});const i=[t.p+"css/mch/weather-symbol.8b732860.css"].filter(((e,a,t)=>t.indexOf(e)===a))},80625:(e,a,t)=>{t.d(a,{N:()=>n});const i={"aujourd'hui":"auj.",today:"Today",heute:"Heute",oggi:"Oggi",montag:"Mo",dienstag:"Di",mittwoch:"Mi",donnerstag:"Do",freitag:"Fr",samstag:"Sa",sonntag:"So",lundi:"lun.",mardi:"mar.",mercredi:"mer.",jeudi:"jeu.",vendredi:"ven.",samedi:"sam.",dimanche:"dim.",monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun",lunedì:"Lun",martedì:"Mar",mercoledì:"Mer",giovedì:"Gio",venerdì:"Ven",sabato:"Sab",domenica:"Dom","12 stunden":"12 Std","24 stunden":"24 Std","48 stunden":"48 Std","72 stunden":"72 Std","12 heures":"12 h","24 heures":"24 h","48 heures":"48 h","72 heures":"72 h","12 hours":"12 h","24 hours":"24 h","48 hours":"48 h","72 hours":"72 h","12 ore":"12 ore","24 ore":"24 ore","48 ore":"48 ore","72 ore":"72 ore","ganzer tag":"0-24 h","toute la journée":"0-24 h","tutta la giornata":"0-24 h","all day":"0-24 h","0 - 6 uhr":"0-6 h","6 - 12 uhr":"6-12 h","12 - 18 uhr":"12-18 h","18 - 24 uhr":"18-24 h","0 - 6 heures":"0-6 h","6 - 12 heures":"6-12 h","12 - 18 heures":"12-18 h","18 - 24 heures":"18-24 h","0 - 6 in punto":"0-6 h","6 - 12 in punto":"6-12 h","12 - 18 in punto":"12-18 h","18 - 24 in punto":"18-24 h","0 - 6 o'clock":"0-6 h","6 - 12 o'clock":"6-12 h","12 - 18 o'clock":"12-18 h","18 - 24 o'clock":"18-24 h"},n=e=>i[e.toLowerCase()]},69674:(e,a,t)=>{t.d(a,{B:()=>r});var i=t(65723),n=t(41594);const r=({children:e,timeout:a})=>
1{const[t,r]=(0,n.useState)(!a);return(0,n.useEffect)((()=>{a&&setTimeout((()=>{r(!0)}),a)}),[a]),t?(0,i.jsx)(i.Fragment,{children:e}):null}},28974:(e,a,t)=>{t.d(a,{Y:()=>i});const i=[].filter(((e,a,t)=>t.indexOf(e)===a))},43051:(e,a,t)=>{t.d(a,{A:()=>i});const i={ALL:{en:"Wind from all directions",fr:"Vent de toutes les directions",it:"Vento da tutte le direzioni",de:"Wind aus allen Richtungen"},N:{en:"Wind from north",fr:"Vent du nord",it:"Vento da nord",de:"Wind aus Nord"},NE:{en:"Wind from the northeast",fr:"Vent du nord-est",it:"Vento da nord-est",de:"Wind aus Nordost"},E:{en:"Wind from the east",fr:"Vent de l'est",it:"Vento da est",de:"Wind aus Ost"},SE:{en:"Wind from southeast",fr:"Vent du sud-est",it:"Vento da sud-est",de:"Wind aus Südost"},S:{en:"Wind from south",fr:"Vent du sud",it:"Vento da sud",de:"Wind aus Süd"},SW:{en:"Wind from southwest",fr:"Vent du sud-ouest",it:"Vento da sud-ovest",de:"Wind aus Südwest"},W:{en:"Wind from west",fr:"Vent d'ouest",it:"Vento da ovest",de:"Wind aus West"},NW:{en:"Wind from the northwest",fr:"Vent du nord-ouest",it:"Vento da nord-ovest",de:"Wind aus Nordwest"}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.