(function(){"use strict";function Me(e){return e()}function Fe(e){e.forEach(Me)}function bi(e){}const V=[],ne=[];let x=[];const ie=[],re=Promise.resolve();let z=!1;function _e(){z||(z=!0,re.then(He))}function oe(){return _e(),re}function Ne(e){x.push(e)}const q=new Set;let O=0;function He(){if(O===0){do{try{for(;O=t||L<0||g&&T>=o}function p(){var w=U();if(v(w))return y(w);a=setTimeout(p,l(w))}function y(w){return a=void 0,h&&i?b(w):(i=r=void 0,s)}function E(){a!==void 0&&clearTimeout(a),c=0,i=d=r=a=void 0}function k(){return a===void 0?s:y(U())}function A(){var w=U(),L=v(w);if(i=arguments,r=this,d=w,L){if(a===void 0)return m(d);if(g)return a=setTimeout(p,t),b(d)}return a===void 0&&(a=setTimeout(p,t)),s}return A.cancel=E,A.flush=k,A}function j(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ot(e){return!!e&&typeof e=="object"}function st(e){return typeof e=="symbol"||ot(e)&&tt.call(e)==$e}function ue(e){if(typeof e=="number")return e;if(st(e))return le;if(j(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=j(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(We,"");var n=Je.test(e);return n||Ye.test(e)?Ze(e.slice(2),n?2:8):Ge.test(e)?le:+e}var at=rt;const $=Ue(at),ct=200,u={viewportSize:{height:0,width:0},END_EVENT:"end",init:function(){this.observers||typeof window>"u"||(de.call(this,[this.END_EVENT]),u.notifyEndDebounced=$(u.notifyEnd.bind(u),ct),window.addEventListener("resize",u.notifyEndDebounced,{passive:!0}),window.addEventListener("orientationchange",()=>{setTimeout(u.notifyEndDebounced,100)},{passive:!0}),window.addEventListener("load",u.notifyEndDebounced),window.addEventListener("viewport:end",u.notifyEndDebounced),console.log("Update Viewport Size"),this.viewportSize=this.measureViewportSize())},measureViewportSize:function(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}},getViewportSize:function(){return this.viewportSize},notifyEnd(){console.log("Viewport:End event");const e=this.measureViewportSize();(e.width!==this.viewportSize.width||e.height!==this.viewportSize.height)&&(this.viewportSize=e,u.notify(u.END_EVENT,e))},addObserver(e,t){},removeObserver(e,t){}},W={},dt=e=>{Object.assign(W,e)};function fe(){return W.Lottie||console.warn("no lottie library!"),W.Lottie}function lt(){const e=document.querySelector(".progress-bar");e?ut(e):console.debug("no progress bar")}function ut(e){let t,n="0%",i,r=!1;function o(){e.style.width=n,i=n}function s(){r=!0,n===i?r=!1:(o(),window.requestAnimationFrame(s))}function a(){t||f();const m=document.body.scrollTop||document.documentElement.scrollTop;n=`${Math.min(100,Math.round(m/t*1e3)/10)}%`,r||s()}function d(){try{const m=document.getElementById("content-modules-end");return m?m.getBoundingClientRect().top+window.scrollY-window.innerHeight:void 0}catch(m){console.warn("could not get content scroll height",m);return}}function c(){return Math.max(document.body.scrollHeight||0,document.documentElement.scrollHeight||0,document.body.offsetHeight||0,document.documentElement.offsetHeight||0,document.body.clientHeight||0,document.documentElement.clientHeight||0)-u.getViewportSize().height}function f(){const m=d();m&&m>u.getViewportSize().height?t=m:t=c()}function g(){console.log("update progress bar"),f(),a()}const h=$(g,300);window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("load",a),window.addEventListener("appUpdate",h),a();const b=new ResizeObserver(()=>h());return b.observe(document.body),u.addObserver(u.END_EVENT,h),{destroy(){u.removeObserver(u.END_EVENT,h()),window.removeEventListener("scroll",a),window.removeEventListener("load",a),window.removeEventListener("appUpdate",h),b.disconnect()}}}function ft(){document.querySelectorAll(".tab-navigation-tabs").forEach(gt)}function gt(e){let t,n,i=[],r,o;function s(l){return l.bboxTop>=0?l.index+1:-1*(l.index+1)}function a(l){if(l){clearTimeout(o);const v=i.find(p=>p.targetId===l);v&&v.isIntersecting?r=void 0:(r=l,o=setTimeout(()=>r=void 0,2e3))}}function d(l){l.forEach(p=>{const y=p.target.id,E=i.find(k=>k.targetId===y);E.isIntersecting=p.isIntersecting,E.bboxTop=p.boundingClientRect.top}),a(r);const v=i.filter(p=>p.isIntersecting).sort((p,y)=>s(p)-s(y));if(v.length>0)f(v[0].targetId);else{const p=i.filter(y=>y.bboxTop<=0).sort((y,E)=>s(y)-s(E));p.length>0&&f(p[0].targetId)}}let c;function f(l){t.forEach(v=>{const p=v.dataset.targetId===l;v.classList.toggle("active",p),p&&h(v)})}function g(l){const v=l.offsetLeft-e.offsetLeft,p=v+l.offsetWidth-e.scrollLeft;return v-e.scrollLeft>0&&p{g(l)||(e.scrollLeft=l.offsetLeft-e.offsetLeft-Math.round(l.offsetWidth*.66))},v?2e3:300)}function b(){n&&n.disconnect(),t=Array.from(e.querySelectorAll("a[data-target-id]")),n=new IntersectionObserver(d),i=[],t.map(l=>l.dataset.targetId).map(l=>document.getElementById(l)).filter(l=>l!==null).forEach((l,v)=>{i.push({targetId:l.id,index:v,isIntersecting:!1,bboxTop:void 0}),n.observe(l)})}function m(l){const v=l.target.dataset?.targetId;v&&(clearTimeout(c),a(v))}return document.addEventListener("click",m),window.addEventListener("load",b),window.addEventListener("appUpdate",b),oe().then(b),{update(){b()},destroy(){n&&n.disconnect(),window.removeEventListener("load",b),window.removeEventListener("appUpdate",b),document.removeEventListener("click",m)}}}function I(e,t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"trackingEvent",eventCategory:"Longread",eventAction:e,eventLabel:t})}function ge(e,t){const n=e.getAttribute(t);if(n)return n.startsWith("{")||n.startsWith("[")?JSON.parse(n):n}function S(e,t,n){const i=ge(t,n),r=e(t,i),o=()=>{r.update&&r.update(ge(t,n))};return new MutationObserver(o).observe(t,{attributeFilter:[n]}),{destroy(){r.destroy&&r.destroy()}}}function ht(){const e=[];function t(r){const o=r.dataset.trackEventAction,s=r.dataset.trackEventLabel;I(o,s)}return document.querySelectorAll("[data-track-event='true']").forEach(r=>{const o=()=>t(r);r.addEventListener("click",o),e.push({element:r,fn:o})}),document.querySelectorAll("a[href^='#']").forEach(r=>{const o=()=>{const{arrowDirection:s}=r.dataset,a=r.innerText;r.setAttribute("data-track-event-action",`AnchorLink: click ${s||""}`),r.setAttribute("data-track-event-label",`${a}`),t(r)};r.addEventListener("click",o),e.push({element:r,fn:o})}),{destroy(){e.forEach(({element:r,fn:o})=>{r.removeEventListener("click",o)}),e.length=0}}}function pt(){const e=document.querySelector("[data-tracking-events-config]");e&&vt(e)}function vt(e){return S(ht,e,"data-tracking-events-config")}function mt(){document.querySelectorAll("[data-track-teaser-click]").forEach(bt)}function bt(e){function t(){const n=e.getAttribute("href"),r=new URL(n).pathname,o=/-((?:sz|li|lux|)\.?e?\d+)\/?$/,s=r.match(o)?.[1];window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"teaser_clicked",teaser_clicked:{target_object_id:s,target_url:n}})}return e.addEventListener("click",t),{destroy(){e.removeEventListener("click",t)}}}function he(){const e=window.szerColorSchemeOverride==="dark";document.documentElement.classList.remove("dark-mode","light-mode"),document.documentElement.classList.add(e?"dark-mode":"light-mode")}function yt(){window.szerColorSchemeOverride&&he(),window.addEventListener("szerColorSchemeOverride",he)}function wt(e,t,n,i){return n==="dark"?"dark":!i||t==="light"?"light":e||t==="dark"?"dark":"light"}function Et(){const t=document.querySelector("meta[name='color-scheme']")?.getAttribute("content")?.includes("dark"),n=document.querySelector("[data-color-scheme]").dataset.colorScheme;return{darkModeSupported:t,colorScheme:n}}function St(e){e||(e=Et());const t=window.matchMedia("(prefers-color-scheme: dark)");let n=t.matches,i="light";function r(){const o=wt(n,window.szerColorSchemeOverride,e.colorScheme,e.darkModeSupported);o!==i&&(i=o,document.documentElement.dispatchEvent(new CustomEvent("embedColorScheme",{detail:{colorScheme:i}}))),document.documentElement.classList.toggle("embed-color-scheme--dark",i==="dark")}return window.addEventListener("szerColorSchemeOverride",r),t.addEventListener("change",o=>{n=o.matches,r()}),document.documentElement.classList.add("embed-color-scheme"),r(),{update(o){e=o,r()}}}function Lt(e,t){yt();const{update:n}=St(t);return{update(i){t=i,n(t)}}}function It(e){return 1-Math.pow(1-e,3)}function kt(){const e=document.querySelector(".offer-page.with-fadeout");e&&Ct(e,{id:e.dataset.moduleId})}function Ct(e,t){const n=`module-${t.id-1}`,i=document.getElementById(n);if(!i.classList.contains("module-blender"))return console.warn("offerpage: unexpected previous element"),{};const r=s=>{s.forEach(a=>{a.boundingClientRect.top<=0?i.style.opacity="0.1":a.isIntersecting?i.style.opacity=Math.max(.1,1-It(a.intersectionRatio)).toString():i.style.opacity="1"})},o=new window.IntersectionObserver(r,{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});return o.observe(e),{destroy(){o.disconnect()}}}function Pt(){document.querySelectorAll(".tab-navigation-tabs a, .button-navigation a").forEach(At)}function At(e){e.addEventListener("click",function(){const t=e.getAttribute("href");console.debug("history: replace state for "+t),history.replaceState({},document.title,t)})}function Ot(e){return e.filter(n=>n.boundingClientRect.height>0).filter(n=>n.boundingClientRect.top>=0).length===0}function pe(e){const t=e.match(/^(\d+)-(\d+)-(\d+)$/),n=i=>i.toString().padStart(3,"0");return parseInt(`1${n(t[1])}${n(t[2])}${n(t[3])}`)}function Tt(e,t){return pe(e)-pe(t)}function Vt(){document.querySelectorAll(".blender-container-sticky").forEach(Bt)}function Bt(e){const t=e.querySelector(":scope > .foreground-container"),n={activeForegroundId:null,activeSlideId:null,intersectingForegroundIds:new Set};let i=new IntersectionObserver(d),r={},o={},s,a;function d(g){const h=new Set(n.intersectingForegroundIds);g.forEach(w=>{const{foregroundId:L}=w.target.dataset;w.isIntersecting?h.add(L):h.delete(L)});let b;h.size>0?b=Array.from(h).sort(Tt).pop():b=Ot(g)?s:a;const m=b.replace(/-\d+$/,""),l=h.size>0,v=b!==n.activeForegroundId,p=l!==n.intersectingForegroundIds.size>0,y=m!==n.activeSlideId;n.intersectingForegroundIds=h,n.activeForegroundId=b,n.activeSlideId=m;const E={activeSlideId:m,activeForegroundId:b,foregroundVisibility:l},k=r[b];if(!k){console.warn(`skip slide event, unknown activeForegroundId: ${b}.`);return}E.activeForegroundCmsId=k.dataset.cmsId,E.activeForegroundCustomId=k.dataset.customId,E.activeForegroundBlenderIndex=parseInt(k.dataset.foregroundBlenderIndex,10);const A=o[m];E.activeSlideCmsId=A.dataset.cmsId,E.activeSlideCustomId=A.dataset.customId,t.dispatchEvent(new CustomEvent("intersectionEvent",{detail:{...E,intersectingForegroundIds:Array.from(h)}})),y&&t.dispatchEvent(new CustomEvent("slideChange",{detail:E,bubbles:!0})),v&&t.dispatchEvent(new CustomEvent("foregroundChange",{detail:E,bubbles:!0})),p&&t.dispatchEvent(new CustomEvent("foregroundVisibilityChange",{detail:{isInViewport:l},bubbles:!0})),e.blenderStatus={...E,foregroundVisibility:l}}function c(){Array.from(t.children).forEach((g,h)=>{const b=g.dataset.slideId;o[b]=g,Array.from(g.children).forEach((m,l)=>{i.observe(m);const v=m.dataset.foregroundId;r[v]=m,l===0&&h===0&&(a=v),h===t.children.length-1&&l===g.children.length-1&&(s=v)})})}function f(){i.disconnect(),r={},o={},c(),i=new IntersectionObserver(d)}return c(),{update(){f()},destroy(){i.disconnect(),e.blenderStatus=void 0}}}function Dt(e){return e==="video/mp4; codecs=hvc1"?"video/mp4; codecs=hvc1.2.4.L153.B0":e}function xt(e){return"MediaSource"in window&&typeof MediaSource.isTypeSupported=="function"?MediaSource.isTypeSupported(e):!!document.createElement("video").canPlayType(e)}function Mt(e){return e?e.find(t=>{const n=Dt(t.mimeType);return xt(n)}):null}function G(e){return e?Mt(e.additionalFormats)?.url||e.mediaUrl:void 0}function Ft(e,t,n){return e==="scrollbased"&&(!t||!n)?"autoplay-loop":e}class B{constructor(t,n){const{media:i,breakpoint:r,enableAutoplay:o,onVisibilityChange:s,resetAfter:a,type:d,isContainerVisible:c,scrollProgress:f}=n;this.state={enableAutoplay:o,isContainerVisible:c,useFallbackSource:!1,device:"desktop",poster:void 0,source:void 0,posterLoaded:!1,loadedMetaData:!1,loadedData:!1,timeUpdated:!1,isPlaying:!1,resetTimeout:void 0,scrollProgress:f,playPromise:void 0,canBeDisplayed:!1},this.node=t,this.onVisibilityChange=s,this.config=B.generateConfig(r,i,a,d),this.setupCallbacks(),this.setupEventListeners(),this.selectSource()}static generateConfig(t,n,i,r){const o=Ft(n.playMode,n?.desktop?.frames,n?.desktop?.fps),s={breakpoint:t,resetAfter:i,type:r,playMode:o,desktop:{device:"desktop",source:G(n?.desktop),fallbackSource:n?.desktop?.mediaUrl,poster:n?.desktop?.url,frames:n?.desktop?.frames,fps:n?.desktop?.fps}};return s.mobile={device:"mobile",source:G(n?.mobile)||s.desktop.source,fallbackSource:n?.mobile?.mediaUrl||s.desktop.fallbackSource,poster:n?.mobile?.url||s.desktop.poster,frames:n?.mobile?.frames||s.desktop.frames,fps:n?.mobile?.fps||s.desktop.fps},s}setupCallbacks(){this.viewportServiceCb=()=>this.selectSource(),this.loadeddataCb=()=>{this.state.loadedData=!0,this.onStateChange(!0)},this.loadedmetadataCb=()=>{this.state.loadedMetaData=!0,this.onStateChange(!0)},this.timeupdateCb=()=>{this.state.timeUpdated||(this.state.timeUpdated=!0,this.onStateChange(!0))}}shouldReset(){return!this.state.enableAutoplay&&!this.state.isPlaying&&!this.state.isContainerVisible&&this.config.resetAfter&&this.node.currentTime>0}handleVideoError(){this.node.error?.code===4&&!this.state.useFallbackSource&&(console.log("unsupported source error, use fallback source"),this.state.useFallbackSource=!0,this.selectSource())}playPauseVideo(t=!1){if(this.state.enableAutoplay&&!this.state.isPlaying&&(this.state.loadedMetaData||this.state.posterLoaded)?(this.state.isPlaying=!0,this.playPromise=this.node.play().catch(n=>{this.state.isPlaying=!1,console.error("video playback error",n),this.handleVideoError()})):!this.state.enableAutoplay&&this.state.isPlaying&&(this.node.pause(),this.state.isPlaying=!1),this.config.playMode==="scrollbased"){if(this.playPromise&&this.playPromise.then(()=>{this.node.pause()}),t||this.state.scrollProgress)if(!this.state.scrollProgress)this.node.currentTime=0;else{const n=this.config[this.state.device],i=this.state.scrollProgress.frame||Math.round(n.frames*this.state.scrollProgress.seekPosition),r=i===0?0:i/n.fps;if(this.node.duration){const o=Math.ceil(1/n.fps*1e3)/1e3,s=Math.max(0,this.node.duration-o);this.node.currentTime=Math.min(s,r)}else this.node.currentTime=r}}else this.shouldReset()&&(this.state.resetTimeout&&clearTimeout(this.state.resetTimeout),this.state.resetTimeout=setTimeout(()=>{this.state.resetTimeout=void 0,this.shouldReset()&&(this.node.currentTime=0)},this.config.resetAfter))}loadVideo(){this.state.isPlaying=!1,this.node.load()}observePoster(){const t=new Image,n=this.state.poster;t.addEventListener("load",()=>this.state.poster!==n?!1:(this.state.posterLoaded=!0,this.onStateChange(this.node),!0),!1),t.src=n}toggleVisibility(){(this.state.loadedMetaData||this.state.posterLoaded)&&(this.config.type==="contentVideo"||this.state.timeUpdated)?(this.config.type==="backgroundVideo"?this.node.style.opacity=1:this.node.style.display="block",this.state.canBeDisplayed||(this.state.canBeDisplayed=!0,this.node.dispatchEvent(new CustomEvent("canBeDisplayed",{detail:!0,bubbles:!0}))),this.onVisibilityChange&&this.onVisibilityChange(!0)):(this.config.type==="backgroundVideo"?this.node.style.opacity=0:this.node.style.display="none",this.state.canBeDisplayed&&(this.state.canBeDisplayed=!1,this.node.dispatchEvent(new CustomEvent("canBeDisplayed",{detail:!1,bubbles:!0}))))}onStateChange(t=!1){this.toggleVisibility(),this.playPauseVideo(t)}selectSource(){const t=window.matchMedia(`(min-width: ${this.config.breakpoint})`).matches?this.config.desktop:this.config.mobile,n=this.state.useFallbackSource?t.fallbackSource:t.source;n!==this.state.source&&(this.state.source=n,this.state.device=t.device,this.node.src=this.state.source,this.state.loadedMetaData=!1,this.state.loadedData=!1,this.onStateChange(!0),this.loadVideo()),t.poster!==this.state.poster&&(this.state.poster=t.poster,this.node.setAttribute("poster",this.state.poster),this.state.posterLoaded=!1,this.onStateChange(!0),this.observePoster())}setupEventListeners(){this.node.addEventListener("loadeddata",this.loadeddataCb),this.node.addEventListener("loadedmetadata",this.loadedmetadataCb),this.node.addEventListener("timeupdate",this.timeupdateCb),u.addObserver(u.END_EVENT,this.viewportServiceCb)}onUpdate(t){const{media:n,breakpoint:i,enableAutoplay:r,resetAfter:o,type:s,isContainerVisible:a,scrollProgress:d}=t,c=B.generateConfig(i,n,o,s);(r!==this.state.enableAutoplay||a!==this.state.isContainerVisible||d!==this.state.scrollProgress)&&(this.state.enableAutoplay=r,this.state.isContainerVisible=a,this.state.scrollProgress=d,this.onStateChange()),JSON.stringify(c)!==JSON.stringify(this.config)&&(this.config=c,this.selectSource())}onDestroy(){this.node.removeEventListener("loadeddata",this.loadeddataCb),this.node.removeEventListener("loadedmetadata",this.loadedmetadataCb),this.node.removeEventListener("timeupdate",this.timeupdateCb),u.removeObserver(u.END_EVENT,this.viewportServiceCb)}}function ve(e){return e.dataset.isFallback!==void 0&&e.dataset.isFallback==="true"}const P={HIDDEN:"hidden",PARTLY_VISIBLE:"partlyVisible"};function _t(e){let t=P.HIDDEN,n;function i(s){return s.find(d=>d.isIntersecting)!==void 0?P.PARTLY_VISIBLE:P.HIDDEN}function r(s){const a=i(s);a!==t&&(t=a,e.dispatchEvent(new CustomEvent("visibilityChange",{detail:{visibility:t}})),e.visibilityStatus=t)}function o(){n=new IntersectionObserver(r),n.observe(e)}return ve(e)||o(),{destroy(){n&&n.disconnect(),e.visibilityStatus=void 0}}}function Nt(){document.querySelectorAll("[data-visibility-observer]").forEach(_t)}function Ht(e){return e.classList.contains("background-static")?ve(e)?"fallback":"static":"sticky"}function me(e,t){let n;const i=e.dataset.slideId,r=Ht(e),o={isBackgroundInViewport:e.visibilityStatus&&e.visibilityStatus!==P.HIDDEN,isForegroundInViewport:!!t.blenderStatus?.foregroundVisibility,isSlideActive:t.blenderStatus?.activeSlideId===i,scrollProgress:t.scrollProgress};function s(){return r==="sticky"?o.isForegroundInViewport&&o.isSlideActive:o.isBackgroundInViewport}function a(){return r==="sticky"?(o.isBackgroundInViewport||o.isForegroundInViewport)&&o.isSlideActive:o.isBackgroundInViewport}function d(){n&&n()}function c(l){const{activeSlideId:v}=l.detail;o.isSlideActive=v===i,d()}function f(l){const{visibility:v}=l.detail;o.isBackgroundInViewport=P.HIDDEN!==v,d()}function g(l){const{isInViewport:v}=l.detail;o.isForegroundInViewport=v,d()}function h(l){const{scrollProgress:v,slideId:p}=l.detail;p===i?(o.scrollProgress=v,d()):o.scrollProgress=void 0}function b(){if(!t)throw new Error("unsupported autoplay media outside of blender");r!=="fallback"&&(t.addEventListener("slideChange",c),e.addEventListener("visibilityChange",f),t.addEventListener("foregroundVisibilityChange",g),t.addEventListener("scrollProgressChange",h))}function m(){t.removeEventListener("slideChange",c),e.removeEventListener("visibilityChange",f),t.removeEventListener("foregroundVisibilityChange",g),t.removeEventListener("scrollProgressChange",h)}return b(),{current:o,getEnableAutoplay:s,getIsContainerVisible:a,onUpdate:l=>n=l,destroy:()=>m()}}function Rt(e,t){const n=e.closest(".blender-container,.blender-static-container"),i=e.closest(".background,.background-static"),r=me(i,n);function o(c){return{...c,enableAutoplay:r.getEnableAutoplay(),isContainerVisible:r.getIsContainerVisible(),scrollProgress:r.current.scrollProgress,type:"backgroundVideo",resetAfter:1e3}}function s(){d.onUpdate(o(t))}const a=o(t),d=new B(e,a);return d.onStateChange(!0),r.onUpdate(s),{update(c){t=c,s()},destroy(){d.onDestroy(),r.destroy()}}}function zt(){document.querySelectorAll("[data-autoplay-background-video-config]").forEach(qt)}function qt(e){return S(Rt,e,"data-autoplay-background-video-config")}function Ut(e,t,n){return be(e)&&t==="sticky"&&n==="backgroundflight"}function be(e){return e?.type!=="flightAnimation"||!Array.isArray(e.targetPositions)?!1:e.targetPositions.filter(t=>ye(t)).length>0&&e.targetPositions.length>1}function ye(e){return Array.isArray(e)&&e.length===3&&e[0]!==null}function J(e,t,n,i){const r=e*-1+t/(n*i)/2;return Math.round(r*1e3*i)/10}function we(e,t,n,i){const r=J(e,t,n,i);if(r>0)return 0;const s=(t/n-1)*100-100*(i-1);return rn){const i=window.innerWidth*2;return{width:i,height:Math.round(i/(t/n))}}else{const i=window.innerHeight*2;return{height:i,width:Math.round(i/(n/t))}}return{width:t,height:n}}function Wt(e,t,n,i){const[r,o,s]=e,{width:a,height:d}=n;if(i==="cover"){const c=jt(s,t,n);return{x:`${we(r,t.width,a,c)}%`,y:`${we(o,t.height,d,c)}%`,scale:c}}return{x:`${J(r,t.width,a,s)}%`,y:`${J(o,t.height,d,s)}%`,scale:s}}function Gt(e,t){let n=null;function i(c){const f=t.animation.targetPositions;return ye(f[c])}function r(c){const f=t.animation.targetPositions;if(i(c))return c;for(let g=c;g>=0;g--)if(i(g))return g;for(let g=c;g{i=s.detail.activeSlideId,r()};return n.addEventListener("slideChange",o),r(),{update(){r()},destroy(){n?.removeEventListener("slideChange",o)}}}function Zt(){document.querySelectorAll("[data-active-background-status-class]").forEach(Yt)}function Xt(e,t){const n=e.closest(".blender-container,.blender-static-container"),r=e.closest(".background,.background-static").dataset.slideId,o={activeForegroundId:n.blenderStatus?.activeForegroundId,activeSlideId:n.blenderStatus?.activeSlideId};function s(){return window.matchMedia(`(min-width: ${t.breakpoint})`).matches?{...t.desktop,blenderType:t.blenderType,backgroundType:t.backgroundType,activeForeground:o.activeForegroundId,status:M(r,o.activeSlideId)}:{...t.mobile,blenderType:t.blenderType,backgroundType:t.backgroundType,activeForeground:o.activeForegroundId,status:M(r,o.activeSlideId)}}u.addObserver(u.END_EVENT,g);function a(h){const{activeForegroundId:b,activeSlideId:m}=h.detail;o.activeForegroundId=b,o.activeSlideId=m,g()}function d(h){h.classList.contains("blender-container-sticky")&&h.addEventListener("foregroundChange",a)}const c=s(),f=Gt(e,c);function g(){f.update(s())}return d(n),{update(h){t=h,g()},destroy(){f.destroy(),n.removeEventListener("foregroundChange",a)}}}function Kt(){document.querySelectorAll("[data-flight-config]").forEach(Qt)}function Qt(e){return S(Xt,e,"data-flight-config")}function en(e,t){if(!e?.width||!e?.height||!t?.width||!t?.height)return 50;const n=t.width/e.width,i=e.height/t.height,r=n*i*100,o=Math.max(5,Math.min(50,r));return Math.round(o*100)/100}function F(){return window.matchMedia("(orientation: portrait)").matches}function tn(e,t){const n=e.querySelector(".background-container");let i;function r(){e.splitBlenderHeights&&e.dispatchEvent(new CustomEvent("splitBlenderHeights",{detail:{heights:null}})),e.splitBlenderHeights=null}function o(){if(!Array.isArray(t)||t.length<=0||!F()){r();return}const a=t.map(c=>({slideId:c.slideId,index:Y(c.slideId),heightInPercent:en(c,i)})).sort((c,f)=>c.index-f.index);let d;for(const c of a)d&&d.index===c.index-1&&(d.nextHeightInPercent=c.heightInPercent),d=c;e.splitBlenderHeights=a,e.dispatchEvent(new CustomEvent("splitBlenderHeights",{detail:{heights:a}}))}function s(){i=n.getBoundingClientRect(),o()}return s(),u.addObserver(u.END_EVENT,s),window.addEventListener("appUpdate",o),{update(a){t=a,o()},destroy(){u.removeObserver(u.END_EVENT,s),window.removeEventListener("appUpdate",o),r()}}}function nn(){document.querySelectorAll(".blender-container[data-split-blender-heights]").forEach(rn)}function rn(e){return S(tn,e,"data-split-blender-heights")}function on(e,t){const n=e.closest(".blender-container");let i=e.blenderStatus?.activeSlideId;function r(){e.style.removeProperty("--split-blender-bg-bottom"),e.classList.remove("split-blender-active")}function o(){if(!F())r();else if(t[i]?e.classList.add("split-blender-active"):e.classList.remove("split-blender-active"),n.splitBlenderHeights){const a=n.splitBlenderHeights.find(d=>d.slideId===i);a?e.style.setProperty("--split-blender-bg-bottom",`${100-a.heightInPercent}%`):e.style.removeProperty("--split-blender-bg-bottom")}else e.style.removeProperty("--split-blender-bg-bottom")}const s=a=>{i=a.detail.activeSlideId,o()};return n.addEventListener("splitBlenderHeights",o),n.addEventListener("slideChange",s),o(),{update(a){t=a,o()},destroy(){n?.removeEventListener("slideChange",s),n?.removeEventListener("splitBlenderHeights",o),r()}}}function sn(){document.querySelectorAll("[data-active-split-blender-config]").forEach(an)}function an(e){return S(on,e,"data-active-split-blender-config")}function X(e){return e||(e="750px"),window.matchMedia(`(min-width: ${e})`).matches?"desktop":"mobile"}function cn(e,t,n){return(1-n)*e+n*t}const Se=20;class dn{constructor(){this.containerList=[],this.setupEventListeners()}setupEventListeners(){window.addEventListener("scroll",()=>this.onScroll(),{passive:!0});const t=$(()=>this.onResize(),300);new ResizeObserver(()=>t()).observe(document.body),u.addObserver(u.END_EVENT,()=>t())}add(t){const n=new ln(t),i=s=>{o.scrollObserver.setIsInViewport(s[0].isIntersecting),o.isInViewport=s[0].isIntersecting,o.scrollObserver.updateBoundings(s[0].boundingClientRect),console.log((o.isInViewport?"activate":"deactivate")+" scroll observer",t)},r=new IntersectionObserver(i,{threshold:[0]});r.observe(t);const o={element:t,isInViewport:!1,scrollObserver:n,intersectionObserver:r};return this.containerList.push(o),n}remove(t){const n=this.containerList.find(i=>i.element===t);n&&(console.log("remove container",n),n.intersectionObserver.disconnect(),n.scrollObserver.destroy(),this.containerList.splice(this.containerList.indexOf(n),1))}onResize(){this.containerList.filter(t=>t.isInViewport).forEach(t=>t.scrollObserver.onResize())}onScroll(){this.containerList.filter(t=>t.isInViewport).forEach(t=>t.scrollObserver.onScroll())}}class ln{constructor(t){console.log("scrollrenderer: init for container",t),this.renderLoopRunning=!1,this.currentSeekPosition=0,this.isInViewport=!1,this.callbacks=[],this.container=t}setTargetFrames(t){this.targetFrames=t}setIsInViewport(t){this.isInViewport=t}onResize(){console.debug("scrollObserver: on resize",this.container);const t=this.container.getBoundingClientRect();this.updateBoundings(t),this.isInViewport&&this.onScroll()}updateBoundings(t){console.debug("scrollObserver: update bounds",this.container);const n=this.container.parentNode,i=n.classList.contains("directly-visible")&&n.firstElementChild===this.container;i?this.measurements={contentOffsetTop:window.scrollY+t.top,contentHeight:t.height-Se-u.viewportSize.height}:this.measurements={contentOffsetTop:window.scrollY+t.top-u.viewportSize.height,contentHeight:t.height-Se},this.measurements.foregrounds=Array.from(this.container.children).map((r,o)=>{let s=r.offsetTop;return i&&(s=Math.max(0,s-u.viewportSize.height)),{offsetTop:s,index:o,id:r.dataset.foregroundId,cmsId:r.dataset.cmsId,customId:r.dataset.customId}})}getScrollRatio(){return((document.documentElement.scrollTop||document.body.scrollTop)-this.measurements.contentOffsetTop)/this.measurements.contentHeight}onScroll(){const t=this.getScrollRatio();this.targetSeekPosition=Math.min(Math.max(t,0),1),this.startRenderLoop()}startRenderLoop(){this.renderLoopRunning||(this.renderLoopRunning=!0,requestAnimationFrame(()=>{this.renderLoop()}))}hasToRender(){return this.destroyed?!1:Math.abs(this.targetSeekPosition-this.currentSeekPosition)*this.measurements.contentHeight>=1}renderLoop(){this.hasToRender()?(this.currentSeekPosition=cn(this.currentSeekPosition,this.targetSeekPosition,.14),this.render(),requestAnimationFrame(()=>{this.renderLoop()})):this.renderLoopRunning=!1}addCallback(t){this.callbacks.push(t),this.isInViewport&&this.onScroll()}getCurrentForegroundIndex(){const t=this.currentSeekPosition*this.measurements.contentHeight,n=this.measurements.foregrounds.length;for(let i=0;i=n||this.measurements.foregrounds[i+1].offsetTop>t)return i}getCurrentForeground(){const t=this.getCurrentForegroundIndex(),n=this.measurements.foregrounds[t],i=this.measurements.foregrounds.length,r=n.offsetTop,o=t+10?this.targetFrames[t.index-1]:0;return Math.max(1,Math.round(i+t.progress*(n-i)))}renderCallback(t){const n={seekPosition:this.currentSeekPosition,foreground:this.getCurrentForeground()};this.targetFrames&&(n.frame=this.calculateFrame(n.foreground),this.previousEvent&&n.frame===this.previousEvent.frame)||(this.previousEvent=n,t(n))}render(){this.callbacks.forEach(t=>this.renderCallback(t))}destroy(){this.destroyed=!0,this.callbacks.length=0}}let _;function un(e,t){_||(_=new dn);const n=e.closest(".blender-container");let i;function r(){i&&(_.remove(e),i=null,n.scrollProgress=void 0)}function o(){const{active:s,slideId:a,targetFramesConfig:d}=t;if(s){i||(i=_.add(e),i.addCallback(f=>{let g={slideId:a,scrollProgress:f};e.dispatchEvent(new CustomEvent("scrollProgressChange",{detail:g,bubbles:!0})),n.scrollProgress=g}));const c=X(d.breakpoint);i.setTargetFrames(d[c])}else r()}return u.addObserver(u.END_EVENT,o),o(),{update(s){t=s,o()},destroy(){u.removeObserver(u.END_EVENT,o),r()}}}function fn(){document.querySelectorAll("[data-scroll-observer-config]").forEach(gn)}function gn(e){return S(un,e,"data-scroll-observer-config")}function Le(e,t){return e==="cover"?"Mid":t==="top"||t==="left"?"Min":t==="bottom"||t==="right"?"Max":"Mid"}function hn(e,t,n){const i=e==="mobile"&&t?.mediaUrl?t.backgroundSize:n.backgroundSize;if(!i)return"xMidYMid meet";const r={x:Le(i.type,i.horizontal),y:Le(i.type,i.vertical),meetOrSlice:i.type==="cover"?"slice":"meet"};return`x${r.x}Y${r.y} ${r.meetOrSlice}`}function Ie(e,t){const{media:n,playMode:i}=e,{mobile:r,desktop:o}=n,s=t==="mobile"&&r?.mediaUrl?r:o,a=s.animationType;return{url:s.mediaUrl,frames:s.frames,device:t,preserveAspectRatio:hn(t,r,o),loop:i==="autoplay-loop"||a==="flightAnimation",animationType:a}}function ke(e,t){const{Lottie:n}=t;let i,r,o=X(t.breakpoint),s,a,d;function c(){i&&(i.destroy(),i=null)}async function f(){const p=document.querySelector(`script[data-url='${r.url}']`);return p?JSON.parse(p.textContent):await(await fetch(r.url)).json()}function g(){c(),r=Ie(t,o),a?.url!==r.url&&(e.dispatchEvent(new CustomEvent("lottieIsLoading")),a={url:r.url,promise:f()}),a.promise.then(p=>{i=n.loadAnimation({container:e,renderer:window.lottieRenderer==="canvas"?"canvas":"svg",loop:r.loop,autoplay:!1,rendererSettings:{preserveAspectRatio:r.preserveAspectRatio},animationData:p}),i.addEventListener("DOMLoaded",()=>{m(!0),e.dispatchEvent(new CustomEvent("lottieLoaded"))}),i.addEventListener("enterFrame",y=>{d=y.currentTime})}).catch(p=>{console.error("could not load lottie animation data",p)})}function h(){return t.playMode?.includes("autoplay")||t.forceAutoplay||r.animationType==="flightAnimation"}function b(){const{enableAutoplay:p,isContainerVisible:y}=t;return h()&&!p&&!y}function m(p=!1){const{scrollProgress:y,enableAutoplay:E}=t;if(h())E?d===void 0?i.play():i.goToAndPlay(Math.round(d),!0):i.pause();else if(y||p){const k=r.frames,A=y?y.frame||Math.round(k*y.seekPosition):1;i.goToAndStop(A,"true")}b()&&(s&&clearTimeout(s),s=setTimeout(()=>{s=void 0,b()&&(d=void 0,i.goToAndStop(1,!0))},1e3))}function l(p){return p.url!==r.url||p.loop!==r.loop||p.preserveAspectRatio!==r.preserveAspectRatio}function v(){o=X(t.breakpoint),g()}return u.addObserver(u.END_EVENT,v),g(),{update(p){t=p;const y=Ie(p,o);l(y)?g():i&&m()},destroy(){u.removeObserver(u.END_EVENT,v),c(),e.dispatchEvent(new CustomEvent("lottieLoaded"))}}}function pn(e,t){const n=e.closest(".blender-container,.blender-static-container"),i=e.closest(".background,.background-static"),r=me(i,n);function o(){return{...t,Lottie:fe(),enableAutoplay:r.getEnableAutoplay(),isContainerVisible:r.getIsContainerVisible(),scrollProgress:r.current.scrollProgress}}const s=o(),a=ke(e,s);function d(){a.update(o())}return r.onUpdate(d),{update(c){t=c,d()},destroy(){a.destroy(),r.destroy()}}}function vn(){document.querySelectorAll("[data-autoplay-lottie-config]").forEach(mn)}function mn(e){return S(pn,e,"data-autoplay-lottie-config")}function bn(e){const t=()=>e.style.display="flex",n=()=>e.style.display="none",i=e.parentNode.querySelector(".lottie");return i.addEventListener("lottieIsLoading",t),i.addEventListener("lottieLoaded",n),t(),{destroy(){n(),i.removeEventListener("lottieIsLoading",t),i.removeEventListener("lottieLoaded",n)}}}function yn(){document.querySelectorAll(".lottie-container .loading, .lottie-content-player-container .loading").forEach(bn)}function wn(e,t){const n=e.querySelector(".caption-icon-open"),i=e.querySelector(".caption-icon-close"),r=e.querySelector(".caption-content");function o(){r.style.display="none",n.style.display="block",e.classList.remove("isopen")}function s(){r.style.display="flex",n.style.display="none",e.classList.add("isopen")}function a(){e.classList.contains("isopen")?(o(),I("Caption: Close",t.eventLabel)):(s(),I("Caption: Open",t.eventLabel))}return n.addEventListener("click",a),i.addEventListener("click",a),o(),{destroy(){n.removeEventListener("click",a),i.removeEventListener("click",a)}}}function En(){document.querySelectorAll("[data-toggle-caption-config]").forEach(Sn)}function Sn(e){return S(wn,e,"data-toggle-caption-config")}function Ln(e){const t=e.closest(".blender-container"),i=e.closest(".background,.background-static").dataset.slideId;if(i==="0-0"||!t)return;function r(s){const a=M(i,s);e.decoding=a==="inactive"?"async":"sync"}const o=s=>{r(s.detail.activeSlideId)};return t.addEventListener("slideChange",o),r(t.blenderStatus?.activeSlideId),{destroy(){t?.removeEventListener("slideChange",o)}}}function In(){document.querySelectorAll("[data-active-background-image-attributes]").forEach(Ln)}function kn(e,t){function n(){return{...t,enableAutoplay:!0,type:"contentVideo"}}function i(o){e.parentNode.classList.toggle("video-can-be-displayed",!!o.detail)}const r=new B(e,n());return r.onStateChange(!0),e.addEventListener("canBeDisplayed",i),{update(o){t=o,r.onUpdate(n())},destroy(){r.onDestroy(),e.removeEventListener("canBeDisplayed",i)}}}function Cn(){document.querySelectorAll("[data-autoplay-video-config]").forEach(Pn)}function Pn(e){return S(kn,e,"data-autoplay-video-config")}function An(e){e.addEventListener("canBeDisplayed",t=>{e.classList.toggle("video-can-be-displayed",!!t.detail)})}function On(){document.querySelectorAll("[data-video-ready-action]").forEach(An)}function Tn(e,t){function n(){I("Content Video Interaction",`play: ${t.src}`)}function i(){I("Content Video Interaction",`pause: ${t.src}`)}function r(){I("Content Video Interaction",`ended: ${t.src}`)}function o(){I("Content Video Interaction",`error: ${t.src}`)}const s=[];function a(){if(e.currentTime&&e.duration){const f=Math.floor(e.currentTime/e.duration*10)/10*100;f>0&&f<=100&&!s.includes(f)&&(I("Content Video Progress",`${f}%: ${t.src}`),s.push(f))}}function d(){e.addEventListener("play",n),e.addEventListener("pause",i),e.addEventListener("ended",r),e.addEventListener("error",o),e.addEventListener("timeupdate",a)}function c(){e.removeEventListener("play",n),e.removeEventListener("pause",i),e.removeEventListener("ended",r),e.removeEventListener("error",o),e.removeEventListener("timeupdate",a)}return d(),{update(f){t=f,c(),d()},destroy(){c()}}}function Ce(){return{video:void 0,poster:void 0}}function Vn(e){return{poster:e.poster,video:G(e)}}function Bn(e,t){let n=Ce();const i=Tn(e,{});function r(){if(!t){e.poster=void 0,e.querySelector("source")?.remove(),n=Ce(),i.update({});return}const o=window.matchMedia(`(min-width: ${t.breakpoint})`).matches?"desktop":"mobile",s=t.media[o]||t.media.desktop,a=Vn(s);if(a.video!==n.video||a.poster!==n.poster){n=a,e.poster=n.poster,e.querySelector("source")?.remove();const c=document.createElement("source");c.src=n.video,e.appendChild(c),i.update({src:n.video}),e.load()}}return u.addObserver(u.END_EVENT,r),r(),{update(o){t=o,r()},destroy(){u.removeObserver(u.END_EVENT,r)}}}function Dn(){document.querySelectorAll("[data-controllable-video-config]").forEach(xn)}function xn(e){return S(Bn,e,"data-controllable-video-config")}function Mn(e,t){const n=e.parentNode,i={visibility:n.visibilityStatus||P.HIDDEN};function r(){return{...t,playMode:"autoplay-loop",Lottie:fe(),isContainerVisible:i.visibility!==P.HIDDEN,enableAutoplay:i.visibility!==P.HIDDEN}}const o=ke(e,r());function s(){o.update(r())}function a(d){i.visibility=d.detail.visibility,s()}return n.addEventListener("visibilityChange",a),{update(d){t=d,s()},destroy(){o.destroy(),n.removeEventListener("visibilityChange",a)}}}function Fn(){document.querySelectorAll("[data-lottie-content-player-config]").forEach(_n)}function _n(e){return S(Mn,e,"data-lottie-content-player-config")}function Nn(e,t){const n=e.querySelector(".expandable-header"),i=e.querySelector(".body");function r(){i.style.maxHeight="0",i.style.overflow="hidden",e.classList.remove("isopen")}function o(){const{scrollHeight:h}=i;i.style.maxHeight=h?`${h}px`:"none",e.classList.add("isopen")}function s(){e.classList.contains("isopen")?(r(),I("Expandable: Close",t.eventLabel)):(o(),I("Expandable: Open",t.eventLabel))}function a(){e.classList.contains("isopen")&&o()}const d=new ResizeObserver(a);function c(){i.querySelectorAll(".embed").forEach(h=>{d.observe(h)})}function f(){c(),a()}const g=new MutationObserver(f);return g.observe(i,{childList:!0,subtree:!0}),i.style.transition="max-height .25s ease-out",i.style.willChange="max-height",n.addEventListener("click",s),r(),c(),{update(h){t=h},destroy(){n.removeEventListener("click",s),d.disconnect(),g.disconnect()}}}function Hn(){document.querySelectorAll("[data-expandable-config]").forEach(Rn)}function Rn(e){return S(Nn,e,"data-expandable-config")}let Pe;const Ae="https://player.podigee-cdn.net",zn=()=>{Pe||(window.addEventListener("message",function(e){if(e.origin===Ae)try{const t=JSON.parse(e.data);t&&(t.event==="ready"&&(K("play",t),K("sendMetadata",t),K("ended",t)),t.event==="play"&&Q("play",t),t.event==="sendMetadata"&&Q("sendMetadata",t),t.event==="ended"&&Q("ended",t))}catch{}},!1),Pe=!0)};function K(e,t){if(t.value){const i=/id=([a-zA-Z-0-9]+)/g.exec(t.value.src)[1],r=document.querySelector('iframe[id="'.concat(i,'"]'));if(r&&r.contentWindow){const o={podcastId:r.id,event:e},s={method:"addEventListener",value:e,listener:JSON.stringify(o),context:"player.js"};r.contentWindow.postMessage(JSON.stringify(s),Ae)}}}function Q(e,t){if(t.listener){const n=JSON.parse(t.listener);if(n){const i=n.podcastId,r=t.value?.episode_id,o=t.value?.episode_title,s=t.value?.podcast_title,a=t.value?.episode_duration;n.event===e&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"genericevent",genericevent:{category:"podcast",action:e,label:i,podcast:{itemEpisodeId:r,itemEpisodeTitle:o,itemPodcastTitle:s,itemEpisodeDuration:a}}}))}}}function qn(e,t){let n;const i=()=>{const{podigeeUrl:r}=t;n&&e.removeChild(n),n=document.createElement("div"),e.appendChild(n);const o=document.createElement("script");o.setAttribute("src","https://player.podigee-cdn.net/podcast-player/javascripts/podigee-podcast-player.js"),o.setAttribute("class","podigee-podcast-player"),o.setAttribute("data-configuration",`${r}/embed?context=external`),n.appendChild(o)};return zn(),i(),{update(r){t=r,i()}}}function Un(){document.querySelectorAll("[data-podcast-player-config]").forEach(jn)}function jn(e){return S(qn,e,"data-podcast-player-config")}function Oe(e,t){const n=(e-t/2)/(1-t),i=Math.max(0,Math.min(1,n));return Math.round(i*1e3)/10}function $n(e,t){function n(){e.style.objectPosition=null}function i(){const{media:r,breakpoint:o}=t,s=window.matchMedia(`(min-width: ${o})`).matches?"desktop":"mobile",a=r[s]||r.desktop;if(a?.focalPoint&&a.naturalWidth&&a.backgroundSizeType==="cover"){const d=e.getBoundingClientRect(),c=a.naturalWidth/a.naturalHeight,f=d.width/d.height;c>f?e.style.objectPosition=`${Oe(a.focalPoint.x,f/c)}% center`:e.style.objectPosition=`center ${Oe(a.focalPoint.y,c/f)}%`}else n()}return u.addObserver(u.END_EVENT,i),window.addEventListener("appUpdate",i),i(),{update(r){t=r,i()},destroy(){u.removeObserver(u.END_EVENT,i),window.removeEventListener("appUpdate",i),n()}}}function Wn(){document.querySelectorAll("[data-focal-point-config]").forEach(Gn)}function Gn(e){return S($n,e,"data-focal-point-config")}function Jn(e){const t=e.closest(".blender-container");function n(){e.style.bottom="",e.style.removeProperty("--clip-for-previous-slide")}function i(s){const a=e.dataset.slideId;if(a&&F()){const d=s.find(c=>c.slideId===a);if(d){e.style.bottom=`${100-d.heightInPercent}%`;let c=d.heightInPercent-(d.nextHeightInPercent??0);d.nextHeightInPercent&&c>0?e.style.setProperty("--clip-for-previous-slide",(c+.5)/100):e.style.removeProperty("--clip-for-previous-slide")}else n()}else n()}function r(s){i(s.detail.heights)}function o(){i(t.splitBlenderHeights??[])}return t.addEventListener("splitBlenderHeights",r),o(),{update(){o()},destroy(){t.removeEventListener("splitBlenderHeights",r),n()}}}function Yn(){document.querySelectorAll(".background.split-blender[data-split-blender-background-height]").forEach(Jn)}function Zn(e){const t=e.closest(".blender-container");function n(){return e.dataset.foregroundId?.endsWith("-0-0")}function i(){e.style.marginBottom="",n()&&t.style.removeProperty("--first-split-blender-height")}function r(a){const d=e.dataset.foregroundId;if(d&&F()){const c=a.find(f=>d.startsWith(f.slideId+"-"));c?(e.style.marginBottom=`calc(${(100-c.heightInPercent)/100} * var(--viewport-height, 100lvh))`,n()&&t.style.setProperty("--first-split-blender-move-up-percentage",(100-c.heightInPercent)/100)):i()}else i()}function o(a){r(a.detail.heights)}function s(){r(t.splitBlenderHeights??[])}return t.addEventListener("splitBlenderHeights",o),s(),{update(){s()},destroy(){t.removeEventListener("splitBlenderHeights",o),i()}}}function Xn(){document.querySelectorAll(".foreground-group.split-blender > [data-split-blender-foreground-height]").forEach(Zn)}function Kn(e,t){if(!e||!t)return null;const n=t===e,i=t+1===e,r=t-1===e;return Ee(i,r,n)}function Qn(e){const t=e.closest(".blender-container");function n(o){const s=parseInt(e.dataset.foregroundBlenderIndex,10),a=Kn(s,o);a&&Z(e,a)}function i(o){const s=o.detail.activeForegroundBlenderIndex;n(s)}function r(){n(t.blenderStatus?.foregroundId)}return t.addEventListener("foregroundChange",i),r(),{update(){r()},destroy(){t.removeEventListener("foregroundChange",i),Z(e,null)}}}function ei(){document.querySelectorAll("[data-active-foreground-slide-status-class]").forEach(Qn)}const ti=[Zt,lt,kt,ft,Pt,mt,pt,Lt,zt,vn,Kt,Wn,fn,Nt,yn,En,In,Cn,On,Dn,Fn,Vt,Hn,Un,nn,sn,Yn,Xn,ei];var Te={},D={},N=C&&C.__assign||function(){return N=Object.assign||function(e){for(var t,n=1,i=arguments.length;n{const n=document.createElement("script");n.src=e,n.setAttribute("defer","defer"),n.onload=t,n.onerror=t,document.body.appendChild(n)})}function fi(){Array.isArray(window.externalJs)&&window.externalJs.length>0&&Promise.all(window.externalJs.map(ui)).then(()=>{window.externalScriptsInitialized=!0,window.dispatchEvent(new window.Event("externalScriptInit"))}).catch(e=>console.error("error initializing external scripts",e))}function gi(e){ti.forEach(t=>{try{t()}catch(n){e.error("hydration of one action failed: "+t,void 0,n)}})}function hi(){oe().then(()=>{window.appInitialized=!0,window.dispatchEvent(new window.Event("appInit")),fi()}).catch(e=>console.error("hydrate tick error",e))}function pi(){const e=document.querySelector(".vgwort-pixel");e&&e.setAttribute("src",e.dataset.src)}function vi(e){dt({})}function mi(e){window.appId="longread.v2";const t=ci("hydrate");try{vi(e),di(),gi(t),/www.*.sueddeutsche.de/.test(window.location.hostname)&&pi(),hi()}catch(n){t.error("hydration failed",void 0,n)}}document.addEventListener("DOMContentLoaded",()=>mi())})();