(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=Array.isArray,u=Array.prototype.indexOf,d=Array.prototype.includes;Array.from;var f=Object.getOwnPropertyDescriptor,p=Object.prototype,m=Array.prototype,h=Object.getPrototypeOf,g=()=>{};function _(e){for(var t=0;t{e=n,t=r}),resolve:e,reject:t}}function v(e){"@babel/helpers - typeof";return v=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},v(e)}function te(e,t){if(v(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(v(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ne(e){var t=te(e,`string`);return v(t)==`symbol`?t:t+``}function y(e,t,n){return(t=ne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=1024,x=2048,S=4096,re=8192,ie=16384,ae=32768,oe=1<<25,se=65536,ce=1<<19,le=65536,ue=1<<21,de=1<<23,fe=Symbol(`$state`),pe=new class extends Error{constructor(...e){super(...e),y(this,`name`,`StaleReactionError`),y(this,`message`,"The reaction that called `getAbortSignal()` was re-run or destroyed")}};globalThis.document?.contentType;function me(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function he(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ge(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function _e(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}var C=Symbol(`uninitialized`);function ve(){console.warn(`https://svelte.dev/e/derived_inert`)}function ye(e){return e===this.v}var be=null;function xe(e){be=e}function Se(){return!0}var w=[];function Ce(){var e=w;w=[],_(e)}function we(e){if(w.length===0&&!$e){var t=w;queueMicrotask(()=>{t===w&&Ce()})}w.push(e)}function Te(){for(;w.length>0;)Ce()}function Ee(e){var t=U;if(t===null)return V.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;De(e,t)}function De(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var Oe=~(x|S|b);function T(e,t){e.f=e.f&Oe|t}function ke(e){e.f&512||e.deps===null?T(e,b):T(e,S)}function Ae(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=le,Ae(t.deps))}function je(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ae(e.deps),T(e,b)}function Me(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Ne(e,t){Me(e,t),t.add(e)}function E(e,t,n){Me(e,t),t.set(e,n)}function D(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function O(e,t,n){return e.set(D(e,t),n),n}function k(e,t){return e.get(D(e,t))}se|ce;var Pe=new WeakMap,Fe=new WeakMap,Ie=new WeakMap,Le=new WeakMap,Re=new WeakMap,ze=new WeakMap,Be=new WeakSet;function Ve(e){this.is_pending=!1,e.transfer_effects(k(Re,this),k(ze,this))}function He(e,t){if(!this.has_pending_snippet()){if(this.parent){var n;D(Be,n=this.parent,He).call(n,e,t)}return}O(Le,this,k(Le,this)+e),k(Le,this)===0&&(D(Be,this,Ve).call(this,t),k(Fe,this)&&Qt(k(Fe,this),()=>{O(Fe,this,null)}),k(Ie,this)&&(k(Pe,this).before(k(Ie,this)),O(Ie,this,null)))}var Ue=Symbol(`obsolete`);function We(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;nthis.schedule(e)){var n=k(P,this).get(e);if(n){k(P,this).delete(e);for(var r of n.d)T(r,x),t(r);for(r of n.m)T(r,S),t(r)}k(ht,this).add(e)}capture(e,t,n=!1){e.v!==C&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),j?.set(e,t)),this.is_fork||(e.v=t)}activate(){A=this}deactivate(){A=null,j=null}flush(){try{et=!0,A=this,D(F,this,yt).call(this)}finally{rt=0,Qe=null,tt=null,nt=null,et=!1,A=null,j=null,L.clear()}}discard(){for(let e of k(lt,this))e(this);k(lt,this).clear();for(let e of this.async_deriveds.values())e.reject(Ue);D(F,this,wt).call(this),k(ft,this)?.resolve()}register_created_effect(e){k(pt,this).push(e)}increment(e,t){if(O(ut,this,k(ut,this)+1),e){let e=k(dt,this).get(t)??0;k(dt,this).set(t,e+1)}}decrement(e,t){if(O(ut,this,k(ut,this)-1),e){let e=k(dt,this).get(t)??0;e===1?k(dt,this).delete(t):k(dt,this).set(t,e-1)}k(gt,this)||(O(gt,this,!0),we(()=>{O(gt,this,!1),this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)k(mt,this).add(t);for(let e of t)k(N,this).add(e);e.clear(),t.clear()}oncommit(e){k(ct,this).add(e)}ondiscard(e){k(lt,this).add(e)}settled(){return(k(ft,this)??O(ft,this,ee())).promise}static ensure(){if(A===null){let t=A=new e;!et&&!$e&&we(()=>{k(at,t)||t.flush()})}return A}apply(){j=null}schedule(e){if(Qe=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(tt!==null&&t===U&&(V===null||!(V.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=b}}k(M,this).push(t)}};Ye=_t;function vt(){if(this.is_fork)return!0;for(let n of k(dt,this).keys()){for(var e=n,t=!1;e.parent!==null;){if(k(P,this).has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}function yt(){O(at,this,!0),rt++>1e3&&(D(F,this,wt).call(this),Et());for(let e of k(mt,this))k(N,this).delete(e),T(e,x),this.schedule(e);for(let e of k(N,this))T(e,S),this.schedule(e);let e=k(M,this);O(M,this,[]),this.apply();var t=tt=[],n=[],r=nt=[];for(let r of e)try{D(F,this,bt).call(this,r,t,n)}catch(e){throw Mt(r),D(F,this,vt).call(this)||this.discard(),e}if(A=null,r.length>0){var i=Ye.ensure();for(let e of r)i.schedule(e)}if(tt=null,nt=null,D(F,this,vt).call(this)){D(F,this,Ct).call(this,n),D(F,this,Ct).call(this,t);for(let[e,t]of k(P,this))jt(e,t);r.length>0&&D(F,A,yt).call(A);return}let a=D(F,this,xt).call(this);if(a){D(F,this,Ct).call(this,n),D(F,this,Ct).call(this,t),D(F,a,St).call(a,this);return}k(mt,this).clear(),k(N,this).clear();for(let e of k(ct,this))e(this);k(ct,this).clear(),Ze=this,Dt(n),Dt(t),Ze=null,k(ft,this)?.resolve();var o=A;if(k(ut,this)===0&&(k(M,this).length===0||o!==null)&&D(F,this,wt).call(this),k(M,this).length>0)if(o!==null){let e=o;k(M,e).push(...k(M,this).filter(t=>!k(M,e).includes(t)))}else o=this;o!==null&&D(F,o,yt).call(o)}function bt(e,t,n){e.f^=b;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||k(P,this).has(r))&&r.fn!==null){a?r.f^=b:i&4?t.push(r):dn(r)&&(i&16&&k(N,this).add(r),gn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}function xt(){for(var e=k(ot,this);e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=k(ot,e)}return null}function St(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(k(mt,e),k(N,e));let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(k(N,this).delete(i),T(i,x),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),D(F,e,wt).call(e),A=this,D(F,this,yt).call(this)}function Ct(e){for(var t=0;t0)){L.clear();for(let e of I){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)I.has(n)&&(I.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||gn(n)}}I.clear()}}I=null}}function Ot(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Ot(i,t,n,r):e&4194320&&!(e&2048)&&kt(i,t,r)&&(T(i,x),At(i))}}function kt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(d.call(t,r))return!0;if(r.f&2&&kt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function At(e){A.schedule(e)}function jt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),T(e,b);for(var n=e.first;n!==null;)jt(n,t),n=n.next}}function Mt(e){T(e,b);for(var t=e.first;t!==null;)Mt(t),t=t.next}var Nt=new Set,L=new Map,Pt=!1;function Ft(e,t){return{f:0,v:e,reactions:null,equals:ye,rv:0,wv:0}}function R(e,t){let n=Ft(e,t);return on(n),n}function z(e,t,n=!1){return V!==null&&(!H||V.f&131072)&&Se()&&V.f&4325394&&(W===null||!W.has(e))&&_e(),It(e,n?Bt(t):t,nt)}function It(e,t,n=null){if(!e.equals(t)){L.set(e,B?t:e.v);var r=_t.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Ge(t),j===null&&ke(t)}e.wv=un(),zt(e,x,n),Se()&&U!==null&&U.f&1024&&!(U.f&96)&&(q===null?sn([e]):q.push(e)),!r.is_fork&&Nt.size>0&&!Pt&&Lt()}return t}function Lt(){Pt=!1;for(let e of Nt){e.f&1024&&T(e,S);let t;try{t=dn(e)}catch{t=!0}t&&gn(e)}Nt.clear()}function Rt(e){z(e,e.v+1)}function zt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Se(),a=r.length,o=0;o{if(Y===o)return e();var t=V,n=Y;rn(null),ln(o);var r=e();return rn(t),ln(n),r};return r&&n.set(`length`,R(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&he();var i=n.get(t);return i===void 0?s(()=>{var e=R(r.value,a);return n.set(t,e),e}):z(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>R(C,a));n.set(t,e),Rt(i)}}else z(r,C),Rt(i);return!0},get(t,r,i){if(r===fe)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||f(t,r)?.writable)&&(o=s(()=>R(Bt(c?t[r]:C),a)),n.set(r,o)),o!==void 0){var l=vn(o);return l===C?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=vn(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==C)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===fe)return!0;var r=n.get(t),i=r!==void 0&&r.v!==C||Reflect.has(e,t);return(r!==void 0||U!==null&&(!i||f(e,t)?.writable))&&(r===void 0&&(r=s(()=>R(i?Bt(e[t]):C,a)),n.set(t,r)),vn(r)===C)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;dR(C,a)),n.set(d+``,p)):z(p,C)}if(l===void 0)(!u||f(e,t)?.writable)&&(l=s(()=>R(void 0,a)),z(l,Bt(o)),n.set(t,l));else{u=l.v!==C;var m=s(()=>Bt(o));z(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&z(g,_+1)}Rt(i)}return!0},ownKeys(e){vn(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==C});for(var[r,a]of n)a.v!==C&&!(r in e)&&t.push(r);return t},setPrototypeOf(){ge()}})}var Vt;function Ht(e){return Vt.call(e)}function Ut(e){var t=V,n=U;rn(null),an(null);try{return e()}finally{rn(t),an(n)}}function Wt(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Gt(){return V!==null&&!H}function Kt(e){var t=e.teardown;if(t!==null){let e=B,n=V;nn(!0),rn(null);try{t.call(null)}finally{nn(e),rn(n)}}}function qt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Ut(()=>{e.abort(pe)});var r=n.next;n.f&64?n.parent=null:Yt(n,t),n=r}}function Jt(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Yt(t),t=n}}function Yt(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Xt(e.nodes.start,e.nodes.end),n=!0),e.f|=oe,qt(e,t&&!n),hn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Kt(e),e.f^=oe,e.f|=ie;var i=e.parent;i!==null&&i.first!==null&&Zt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Xt(e,t){for(;e!==null;){var n=e===t?null:Ht(e);e.remove(),e=n}}function Zt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Qt(e,t,n=!0){var r=[];$t(e,r,!0);var i=()=>{n&&Yt(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function $t(e,t,n){if(!(e.f&8192)){e.f^=re;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;$t(i,t,o?n:!1)}i=a}}}var en=null,tn=!1,B=!1;function nn(e){B=e}var V=null,H=!1;function rn(e){V=e}var U=null;function an(e){U=e}var W=null;function on(e){V!==null&&(W??(W=new Set)).add(e)}var G=null,K=0,q=null;function sn(e){q=e}var cn=1,J=0,Y=J;function ln(e){Y=e}function un(){return++cn}function dn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~le),t&4096){for(var n=e.deps,r=n.length,i=0;ie.wv)return!0}t&512&&j===null&&T(e,b)}return!1}function fn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(W!==null&&W.has(e)))for(var i=0;i{e.ac.abort(pe)}),e.ac=null);try{e.f|=ue;var u=e.fn,d=u();e.f|=ae;var f=e.deps,p=A?.is_fork;if(G!==null){var m;if(p||hn(e,K),f!==null&&K>0)for(f.length=K+G.length,m=0;m{var n=k(Sn,this).get(e);n.delete(t),n.size===0&&(k(Sn,this).delete(e),k(Cn,this).unobserve(e))}}};xn=En;function Dn(){return k(Cn,this)??O(Cn,this,new ResizeObserver(e=>{for(var t of e){xn.entries.set(t.target,t);for(var n of k(Sn,this).get(t.target)||[])n(t)}}))}y(En,`entries`,new WeakMap);function On(){let e=Array.prototype.shift.apply(arguments),t,n,r;if(this.observers[e]==null)throw Error(`Unknown event `+e+` for observable (`+Object.keys(this.observers).join(`,`)+`)`);if(this.observers[e].length===0)return!1;for(r=this.observers[e],t=0,n=r.length;t{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=v(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(v(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function ee(e){return l=e,s=setTimeout(y,t),u?_(e):o}function te(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function ne(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function y(){var e=m();if(ne(e))return b(e);s=setTimeout(y,te(e))}function b(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function S(){return s===void 0?o:b(m())}function re(){var e=m(),n=ne(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return ee(c);if(d)return s=setTimeout(y,t),_(c)}return s===void 0&&(s=setTimeout(y,t)),o}return re.cancel=x,re.flush=S,re}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function ee(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function v(e){if(typeof e==`number`)return e;if(ee(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h}))(),1),Fn=200,X={viewportSize:{height:0,width:0},END_EVENT:`end`,init:function(){this.observers||typeof window>`u`||(Nn.call(this,[this.END_EVENT]),X.notifyEndDebounced=(0,Pn.default)(X.notifyEnd.bind(X),Fn),window.addEventListener(`resize`,X.notifyEndDebounced,{passive:!0}),window.addEventListener(`orientationchange`,()=>{setTimeout(X.notifyEndDebounced,100)},{passive:!0}),window.addEventListener(`load`,X.notifyEndDebounced),window.addEventListener(`viewport:end`,X.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`);let e=this.measureViewportSize();(e.width!==this.viewportSize.width||e.height!==this.viewportSize.height)&&(this.viewportSize=e,X.notify(X.END_EVENT,e))},addObserver(e,t){},removeObserver(e,t){}},In={},Ln=e=>{Object.assign(In,e)};function Rn(){return In.Lottie||console.warn(`no lottie library!`),In.Lottie}function zn(e,t){let n=e.getAttribute(t);if(n)return n.startsWith(`{`)||n.startsWith(`[`)?JSON.parse(n):n}function Z(e,t,n){let r=e(t,zn(t,n));return new MutationObserver(()=>{r.update&&r.update(zn(t,n))}).observe(t,{attributeFilter:[n]}),{destroy(){r.destroy&&r.destroy()}}}function Q(e,t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`trackingEvent`,eventCategory:`Longread`,eventAction:e,eventLabel:t})}var Bn=!1,Vn=!1;function Hn(e){e>50&&!Bn&&(Q(`User Scroll`,`50%`),Bn=!0),e>90&&!Vn&&(Q(`User Scroll`,`90%`),Vn=!0)}function Un(e,t){let n,r=`0%`,i,a=!1,o=t?.isReduced;function s(){e.style.width=r,i=r}function c(){a=!0,r===i?a=!1:(s(),window.requestAnimationFrame(c))}function l(){n||f();let e=document.body.scrollTop||document.documentElement.scrollTop,t=Math.min(100,Math.round(e/n*1e3)/10);r=`${t}%`,o||Hn(t),a||c()}function u(){try{let e=document.getElementById(`content-modules-end`);return e?e.getBoundingClientRect().top+window.scrollY-window.innerHeight:void 0}catch(e){console.warn(`could not get content scroll height`,e);return}}function d(){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)-X.getViewportSize().height}function f(){let e=u();n=e&&e>X.getViewportSize().height?e:d()}function p(){console.log(`update progress bar`),f(),l()}let m=(0,Pn.default)(p,300);window.addEventListener(`scroll`,l,{passive:!0}),window.addEventListener(`load`,l),window.addEventListener(`appUpdate`,m),l();let h=new ResizeObserver(()=>m());return h.observe(document.body),X.addObserver(X.END_EVENT,m),{destroy(){X.removeObserver(X.END_EVENT,m()),window.removeEventListener(`scroll`,l),window.removeEventListener(`load`,l),window.removeEventListener(`appUpdate`,m),h.disconnect()}}}function Wn(){let e=document.querySelector(`.progress-bar`);e?Gn(e):console.debug(`no progress bar`)}function Gn(e){return Z(Un,e,`data-header-progress`)}function Kn(){document.querySelectorAll(`.tab-navigation-tabs`).forEach(qn)}function qn(e){let t,n,r=[],i,a;function o(e){return e.bboxTop>=0?e.index+1:-1*(e.index+1)}function s(e){if(e){clearTimeout(a);let t=r.find(t=>t.targetId===e);t&&t.isIntersecting?i=void 0:(i=e,a=setTimeout(()=>{i=void 0},2e3))}}function c(e){e.forEach(e=>{let t=e.target.id,n=r.find(e=>e.targetId===t);n.isIntersecting=e.isIntersecting,n.bboxTop=e.boundingClientRect.top}),s(i);let t=r.filter(e=>e.isIntersecting).sort((e,t)=>o(e)-o(t));if(t.length>0)u(t[0].targetId);else{let e=r.filter(e=>e.bboxTop<=0).sort((e,t)=>o(e)-o(t));e.length>0&&u(e[0].targetId)}}let l;function u(e){t.forEach(t=>{let n=t.dataset.targetId===e;t.classList.toggle(`active`,n),n&&f(t)})}function d(t){let n=t.offsetLeft-e.offsetLeft,r=n+t.offsetWidth-e.scrollLeft;return n-e.scrollLeft>0&&r{d(t)||(e.scrollLeft=t.offsetLeft-e.offsetLeft-Math.round(t.offsetWidth*.66))},n?2e3:300)}function p(){n&&n.disconnect(),t=Array.from(e.querySelectorAll(`a[data-target-id]`)),n=new IntersectionObserver(c),r=[],t.map(e=>e.dataset.targetId).map(e=>document.getElementById(e)).filter(e=>e!==null).forEach((e,t)=>{r.push({targetId:e.id,index:t,isIntersecting:!1,bboxTop:void 0}),n.observe(e)})}function m(e){let t=e.target.dataset?.targetId;t&&(clearTimeout(l),s(t))}return document.addEventListener(`click`,m),window.addEventListener(`load`,p),window.addEventListener(`appUpdate`,p),_n().then(p),{update(){p()},destroy(){n&&n.disconnect(),window.removeEventListener(`load`,p),window.removeEventListener(`appUpdate`,p),document.removeEventListener(`click`,m)}}}function Jn(){let e=window.szerColorSchemeOverride===`dark`;document.documentElement.classList.remove(`dark-mode`,`light-mode`),document.documentElement.classList.add(e?`dark-mode`:`light-mode`)}function Yn(){window.szerColorSchemeOverride&&Jn(),window.addEventListener(`szerColorSchemeOverride`,Jn)}function Xn(e,t,n,r){return n===`dark`?`dark`:!r||t===`light`?`light`:e||t===`dark`?`dark`:`light`}function Zn(){return{darkModeSupported:(document.querySelector(`meta[name='color-scheme']`)?.getAttribute(`content`))?.includes(`dark`),colorScheme:document.querySelector(`[data-color-scheme]`).dataset.colorScheme}}function Qn(e){e||(e=Zn());let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=t.matches,r=`light`;function i(){let t=Xn(n,window.szerColorSchemeOverride,e.colorScheme,e.darkModeSupported);t!==r&&(r=t,document.documentElement.dispatchEvent(new CustomEvent(`embedColorScheme`,{detail:{colorScheme:r}}))),document.documentElement.classList.toggle(`embed-color-scheme--dark`,r===`dark`)}return window.addEventListener(`szerColorSchemeOverride`,i),t.addEventListener(`change`,e=>{n=e.matches,i()}),document.documentElement.classList.add(`embed-color-scheme`),i(),{update(t){e=t,i()}}}function $n(e,t){Yn();let{update:n}=Qn(t);return{update(e){t=e,n(t)}}}function er(e){return 1-(1-e)**3}function tr(){let e=document.querySelector(`.offer-page.with-fadeout`);e&&nr(e,{active:!0,id:e.dataset.moduleId})}function nr(e,t){if(!t.active)return{};let n=`module-${t.id-1}`,r=document.getElementById(n);if(!r.classList.contains(`module-blender`))return console.warn(`offerpage: unexpected previous element`),{};let i=new window.IntersectionObserver(e=>{e.forEach(e=>{e.boundingClientRect.top<=0?r.style.opacity=`0.1`:e.isIntersecting?r.style.opacity=Math.max(.1,1-er(e.intersectionRatio)).toString():r.style.opacity=`1`})},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});return i.observe(e),{destroy(){i.disconnect()}}}function rr(){sr(document.querySelector(`main`))}function ir(){return!!window.webkit?.messageHandlers}function ar(e,t){t.preventDefault();let n=document.getElementById(e.replace(/^#/,``));n?n.scrollIntoView():console.error(`target ${e} not found`)}function or(e,t){console.debug(`navigate to `+e),history.replaceState({},document.title,e),ir&&ar(e,t)}function sr(e){function t(e){let t=e.target.closest(`a[href^="#"]`);t&&(t.closest(`[data-isolate-external-script]`)||or(t.getAttribute(`href`),e))}return e.addEventListener(`click`,t),{destroy(){e.removeEventListener(`click`,t)}}}function cr(e){return e.filter(e=>e.boundingClientRect.height>0).filter(e=>e.boundingClientRect.top>=0).length===0}function lr(e){let t=e.match(/^(\d+)-(\d+)-(\d+)$/),n=e=>e.toString().padStart(3,`0`);return parseInt(`1${n(t[1])}${n(t[2])}${n(t[3])}`)}function ur(e,t){return lr(e)-lr(t)}function dr(){document.querySelectorAll(`.blender-container-sticky`).forEach(pr)}function fr(){return{root:document,rootMargin:`120px 0px 0px 0px`}}function pr(e){let t=e.querySelector(`:scope > .foreground-container`),n={activeForegroundId:null,activeSlideId:null,intersectingForegroundIds:new Set},r=fr(),i=new IntersectionObserver(l,r),a={},o={},s,c;function l(r){let i=new Set(n.intersectingForegroundIds);r.forEach(e=>{let{foregroundId:t}=e.target.dataset;e.isIntersecting?i.add(t):i.delete(t)});let l;l=i.size>0?Array.from(i).sort(ur).pop():cr(r)?s:c;let u=l.replace(/-\d+$/,``),d=i.size>0,f=l!==n.activeForegroundId,p=d!==n.intersectingForegroundIds.size>0,m=u!==n.activeSlideId;n.intersectingForegroundIds=i,n.activeForegroundId=l,n.activeSlideId=u;let h={activeSlideId:u,activeForegroundId:l,foregroundVisibility:d},g=a[l];if(!g){console.warn(`skip slide event, unknown activeForegroundId: ${l}.`);return}h.activeForegroundCmsId=g.dataset.cmsId,h.activeForegroundCustomId=g.dataset.customId,h.activeForegroundBlenderIndex=parseInt(g.dataset.foregroundBlenderIndex,10);let _=o[u];h.activeSlideCmsId=_.dataset.cmsId,h.activeSlideCustomId=_.dataset.customId,t.dispatchEvent(new CustomEvent(`intersectionEvent`,{detail:{...h,intersectingForegroundIds:Array.from(i)}})),m&&t.dispatchEvent(new CustomEvent(`slideChange`,{detail:h,bubbles:!0})),f&&t.dispatchEvent(new CustomEvent(`foregroundChange`,{detail:h,bubbles:!0})),p&&t.dispatchEvent(new CustomEvent(`foregroundVisibilityChange`,{detail:{isInViewport:d},bubbles:!0})),e.blenderStatus={...h,foregroundVisibility:d}}function u(){Array.from(t.children).forEach((e,n)=>{let r=e.dataset.slideId;o[r]=e,Array.from(e.children).forEach((r,o)=>{i.observe(r);let l=r.dataset.foregroundId;a[l]=r,o===0&&n===0&&(c=l),n===t.children.length-1&&o===e.children.length-1&&(s=l)})})}function d(){i.disconnect(),a={},o={},u(),i=new IntersectionObserver(l,r)}return u(),{update(){d()},destroy(){i.disconnect(),e.blenderStatus=void 0}}}function mr(e){return e===`video/mp4; codecs=hvc1`?`video/mp4; codecs=hvc1.2.4.L153.B0`:e}function hr(e){return`MediaSource`in window&&typeof MediaSource.isTypeSupported==`function`?MediaSource.isTypeSupported(e):!!document.createElement(`video`).canPlayType(e)}function gr(e){return e?e.find(e=>hr(mr(e.mimeType))):null}function _r(e){if(e)return gr(e.additionalFormats)?.url||e.mediaUrl}function vr(e,t,n){return e===`scrollbased`&&(!t||!n)?`autoplay-loop`:e}var yr=class e{constructor(t,n){let{media:r,breakpoint:i,enableAutoplay:a,onVisibilityChange:o,resetAfter:s,type:c,isContainerVisible:l,shouldPreload:u,scrollProgress:d}=n;this.state={enableAutoplay:a,isContainerVisible:l,shouldPreload:u,useFallbackSource:!1,device:`desktop`,poster:void 0,source:void 0,posterLoaded:!1,loadedMetaData:!1,loadedData:!1,timeUpdated:!1,isPlaying:!1,resetTimeout:void 0,scrollProgress:d,playPromise:void 0,canBeDisplayed:!1},this.node=t,this.onVisibilityChange=o,this.config=e.generateConfig(i,r,s,c),this.setupCallbacks(),this.setupEventListeners(),this.selectSource()}static generateConfig(e,t,n,r){let i={breakpoint:e,resetAfter:n,type:r,playMode:vr(t.playMode,t?.desktop?.frames,t?.desktop?.fps),desktop:{device:`desktop`,source:_r(t?.desktop),fallbackSource:t?.desktop?.mediaUrl,poster:t?.desktop?.url,frames:t?.desktop?.frames,fps:t?.desktop?.fps}};return i.mobile={device:`mobile`,source:_r(t?.mobile)||i.desktop.source,fallbackSource:t?.mobile?.mediaUrl||i.desktop.fallbackSource,poster:t?.mobile?.url||i.desktop.poster,frames:t?.mobile?.frames||i.desktop.frames,fps:t?.mobile?.fps||i.desktop.fps},i}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(e=!1){if(this.state.enableAutoplay&&!this.state.isPlaying&&(this.state.loadedMetaData||this.state.posterLoaded)?(this.state.isPlaying=!0,this.playPromise=this.node.play().catch(e=>{this.state.isPlaying=!1,console.error(`video playback error`,e),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()}),e||this.state.scrollProgress)if(!this.state.scrollProgress)this.node.currentTime=0;else{let e=this.config[this.state.device],t=this.state.scrollProgress.frame||Math.round(e.frames*this.state.scrollProgress.seekPosition),n=t===0?0:t/e.fps;if(this.node.duration){let t=Math.ceil(1/e.fps*1e3)/1e3,r=Math.max(0,this.node.duration-t);this.node.currentTime=Math.min(r,n)}else this.node.currentTime=n}}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(){let e=new Image,t=this.state.poster;e.addEventListener(`load`,()=>this.state.poster===t?(this.state.posterLoaded=!0,this.onStateChange(this.node),!0):!1,!1),e.src=t}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(e=!1){this.toggleVisibility(),this.state.source===void 0?this.selectSource():this.playPauseVideo(e)}selectSource(){let e=window.matchMedia(`(min-width: ${this.config.breakpoint})`).matches?this.config.desktop:this.config.mobile,t=this.state.useFallbackSource?e.fallbackSource:e.source,n=this.state.shouldPreload||this.state.source!==void 0;t!==this.state.source&&n&&(this.state.source=t,this.state.device=e.device,this.state.loadedMetaData=!1,this.state.loadedData=!1,this.node.src=this.state.source,this.onStateChange(!0),this.loadVideo()),e.poster!==this.state.poster&&(this.state.poster=e.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),X.addObserver(X.END_EVENT,this.viewportServiceCb)}onUpdate(t){let{media:n,breakpoint:r,enableAutoplay:i,resetAfter:a,type:o,isContainerVisible:s,shouldPreload:c,scrollProgress:l}=t,u=e.generateConfig(r,n,a,o);(i!==this.state.enableAutoplay||s!==this.state.isContainerVisible||l!==this.state.scrollProgress||c!==this.state.shouldPreload)&&(this.state.enableAutoplay=i,this.state.isContainerVisible=s,this.state.scrollProgress=l,this.state.shouldPreload=c,this.onStateChange()),JSON.stringify(u)!==JSON.stringify(this.config)&&(this.config=u,this.selectSource())}onDestroy(){this.node.removeEventListener(`loadeddata`,this.loadeddataCb),this.node.removeEventListener(`loadedmetadata`,this.loadedmetadataCb),this.node.removeEventListener(`timeupdate`,this.timeupdateCb),X.removeObserver(X.END_EVENT,this.viewportServiceCb)}};function br(e){return e.dataset.isFallback!==void 0&&e.dataset.isFallback===`true`}var $={HIDDEN:`hidden`,PARTLY_VISIBLE:`partlyVisible`};function xr(e,t){let n=$.HIDDEN,r;function i(e){return e.find(e=>e.isIntersecting)===void 0?$.HIDDEN:$.PARTLY_VISIBLE}function a(t){let r=i(t);r!==n&&(n=r,e.dispatchEvent(new CustomEvent(`visibilityChange`,{detail:{visibility:n}})),e.visibilityStatus=n)}function o(){r=new IntersectionObserver(a,{threshold:t?.threshold??0}),r.observe(e)}return br(e)||o(),{destroy(){r&&r.disconnect(),e.visibilityStatus=void 0}}}function Sr(e){return Z(xr,e,`data-visibility-observer-config`)}function Cr(){document.querySelectorAll(`[data-visibility-observer-config]`).forEach(Sr)}function wr(e){return parseInt(e.replace(/^[0-9]+-([0-9]+)/,`$1`))}var Tr=[`active`,`next`,`previous`,`inactive`];function Er(e,t,n){return n?`active`:e?`next`:t?`previous`:`inactive`}function Dr(e,t){if(!e||!t)return`inactive`;let n=wr(e),r=wr(t),i=t===e;return Er(r+1===n,r-1===n,i)}function Or(e,t){(!t||!e.classList.contains(t))&&(e.classList.remove(...Tr),t&&e.classList.add(t))}function kr(e){let t=e.dataset.slideId;if(!t)throw Error(`no slide id for background`);let n=e.closest(`.blender-container`),r=n.blenderStatus?.activeSlideId;function i(){Or(e,Dr(t,r))}let a=e=>{r=e.detail.activeSlideId,i()};return n.addEventListener(`slideChange`,a),i(),{update(){_n().then(()=>i())},destroy(){n?.removeEventListener(`slideChange`,a)}}}function Ar(){document.querySelectorAll(`[data-active-background-status-class]`).forEach(kr)}function jr(e){return e.classList.contains(`background-static`)?br(e)?`fallback`:`static`:`sticky`}function Mr(e,t){if(e)return Dr(e,t)!==`inactive`}function Nr(e,t){let n,r=e.dataset.slideId,i=jr(e),a={isBackgroundInViewport:e.visibilityStatus&&e.visibilityStatus!==$.HIDDEN,isForegroundInViewport:!!t.blenderStatus?.foregroundVisibility,isSlideActive:t.blenderStatus?.activeSlideId===r,shouldPreload:Mr(t.blenderStatus?.activeSlideId,r),scrollProgress:t.scrollProgress};function o(){return i===`sticky`?a.isForegroundInViewport&&a.isSlideActive:a.isBackgroundInViewport}function s(){return i===`sticky`?(a.isBackgroundInViewport||a.isForegroundInViewport)&&a.isSlideActive:a.isBackgroundInViewport}function c(){return i===`sticky`?(a.isBackgroundInViewport||a.isForegroundInViewport)&&a.shouldPreload:o()}function l(){n&&n()}function u(e){let{activeSlideId:t}=e.detail;a.isSlideActive=t===r,a.shouldPreload=Mr(t,r),l()}function d(e){let{visibility:t}=e.detail;a.isBackgroundInViewport=$.HIDDEN!==t,l()}function f(e){let{isInViewport:t}=e.detail;a.isForegroundInViewport=t,l()}function p(e){let{scrollProgress:t,slideId:n}=e.detail;n===r?(a.scrollProgress=t,l()):a.scrollProgress=void 0}function m(){if(!t)throw Error(`unsupported autoplay media outside of blender`);i!==`fallback`&&(t.addEventListener(`slideChange`,u),e.addEventListener(`visibilityChange`,d),t.addEventListener(`foregroundVisibilityChange`,f),t.addEventListener(`scrollProgressChange`,p))}function h(){t.removeEventListener(`slideChange`,u),e.removeEventListener(`visibilityChange`,d),t.removeEventListener(`foregroundVisibilityChange`,f),t.removeEventListener(`scrollProgressChange`,p)}return m(),{current:a,getShouldPreload:c,getEnableAutoplay:o,getIsContainerVisible:s,onUpdate:e=>{n=e},destroy:()=>h()}}function Pr(e,t){let n=e.closest(`.blender-container,.blender-static-container`),r=Nr(e.closest(`.background,.background-static`),n);function i(e){return{...e,enableAutoplay:r.getEnableAutoplay(),isContainerVisible:r.getIsContainerVisible(),shouldPreload:r.getShouldPreload(),scrollProgress:r.current.scrollProgress,type:`backgroundVideo`,resetAfter:1e3}}function a(){o.onUpdate(i(t))}let o=new yr(e,i(t));return o.onStateChange(!0),r.onUpdate(a),{update(e){t=e,a()},destroy(){o.onDestroy(),r.destroy()}}}function Fr(){document.querySelectorAll(`[data-autoplay-background-video-config]`).forEach(Ir)}function Ir(e){return Z(Pr,e,`data-autoplay-background-video-config`)}function Lr(e,t,n){return Rr(e)&&t===`sticky`&&n===`backgroundflight`}function Rr(e){return e?.type!==`flightAnimation`||!Array.isArray(e.targetPositions)?!1:e.targetPositions.filter(e=>zr(e)).length>0&&e.targetPositions.length>1}function zr(e){return Array.isArray(e)&&e.length===3&&e[0]!==null}function Br(e,t,n,r){let i=e*-1+t/(n*r)/2;return Math.round(i*1e3*r)/10}function Vr(e,t,n,r){let i=Br(e,t,n,r);if(i>0)return 0;let a=(t/n-1)*100-100*(r-1);return in){let e=window.innerWidth*2;return{width:e,height:Math.round(e/(t/n))}}else{let e=window.innerHeight*2;return{height:e,width:Math.round(e/(n/t))}}return{width:t,height:n}}function Wr(e,t,n,r){let[i,a,o]=e,{width:s,height:c}=n;if(r===`cover`){let e=Hr(o,t,n);return{x:`${Vr(i,t.width,s,e)}%`,y:`${Vr(a,t.height,c,e)}%`,scale:e}}return{x:`${Br(i,t.width,s,o)}%`,y:`${Br(a,t.height,c,o)}%`,scale:o}}function Gr(e,t){let n=null;function r(e){let n=t.animation.targetPositions;return zr(n[e])}function i(e){let n=t.animation.targetPositions;if(r(e))return e;for(let t=e;t>=0;t--)if(r(t))return t;for(let t=e;t({slideId:e.slideId,index:wr(e.slideId),heightInPercent:Yr(e,r)})).sort((e,t)=>e.index-t.index),a;for(let e of n)a&&a.index===e.index-1&&(a.nextHeightInPercent=e.heightInPercent),a=e;e.splitBlenderHeights=n,e.dispatchEvent(new CustomEvent(`splitBlenderHeights`,{detail:{heights:n}}))}function o(){r=n.getBoundingClientRect(),a()}return o(),X.addObserver(X.END_EVENT,o),window.addEventListener(`appUpdate`,a),{update(e){t=e,a()},destroy(){X.removeObserver(X.END_EVENT,o),window.removeEventListener(`appUpdate`,a),i()}}}function Qr(){document.querySelectorAll(`.blender-container[data-split-blender-heights]`).forEach($r)}function $r(e){return Z(Zr,e,`data-split-blender-heights`)}function ei(e,t){let n=e.closest(`.blender-container`),r=e.blenderStatus?.activeSlideId;function i(){e.style.removeProperty(`--split-blender-bg-bottom`),e.classList.remove(`split-blender-active`)}function a(){if(!Xr())i();else if(t[r]?e.classList.add(`split-blender-active`):e.classList.remove(`split-blender-active`),n.splitBlenderHeights){let t=n.splitBlenderHeights.find(e=>e.slideId===r);t?e.style.setProperty(`--split-blender-bg-bottom`,`${100-t.heightInPercent}%`):e.style.removeProperty(`--split-blender-bg-bottom`)}else e.style.removeProperty(`--split-blender-bg-bottom`)}let o=e=>{r=e.detail.activeSlideId,a()};return n.addEventListener(`splitBlenderHeights`,a),n.addEventListener(`slideChange`,o),a(),{update(e){t=e,a()},destroy(){n?.removeEventListener(`slideChange`,o),n?.removeEventListener(`splitBlenderHeights`,a),i()}}}function ti(){document.querySelectorAll(`[data-active-split-blender-config]`).forEach(ni)}function ni(e){return Z(ei,e,`data-active-split-blender-config`)}function ri(e){return e||(e=`750px`),window.matchMedia(`(min-width: ${e})`).matches?`desktop`:`mobile`}function ii(e,t,n){return(1-n)*e+n*t}var ai=20,oi=class{constructor(){this.containerList=[],this.setupEventListeners()}setupEventListeners(){window.addEventListener(`scroll`,()=>this.onScroll(),{passive:!0});let e=(0,Pn.default)(()=>this.onResize(),300);new ResizeObserver(()=>e()).observe(document.body),X.addObserver(X.END_EVENT,()=>e())}add(e){let t=new si(e),n=new IntersectionObserver(t=>{r.scrollObserver.setIsInViewport(t[0].isIntersecting),r.isInViewport=t[0].isIntersecting,r.scrollObserver.updateBoundings(t[0].boundingClientRect),console.log((r.isInViewport?`activate`:`deactivate`)+` scroll observer`,e)},{threshold:[0]});n.observe(e);let r={element:e,isInViewport:!1,scrollObserver:t,intersectionObserver:n};return this.containerList.push(r),t}remove(e){let t=this.containerList.find(t=>t.element===e);t&&(console.log(`remove container`,t),t.intersectionObserver.disconnect(),t.scrollObserver.destroy(),this.containerList.splice(this.containerList.indexOf(t),1))}onResize(){this.containerList.filter(e=>e.isInViewport).forEach(e=>{e.scrollObserver.onResize()})}onScroll(){this.containerList.filter(e=>e.isInViewport).forEach(e=>{e.scrollObserver.onScroll()})}},si=class{constructor(e){console.log(`scrollrenderer: init for container`,e),this.renderLoopRunning=!1,this.currentSeekPosition=0,this.isInViewport=!1,this.callbacks=[],this.container=e}setTargetFrames(e){this.targetFrames=e}setIsInViewport(e){this.isInViewport=e}onResize(){console.debug(`scrollObserver: on resize`,this.container);let e=this.container.getBoundingClientRect();this.updateBoundings(e),this.isInViewport&&this.onScroll()}updateBoundings(e){console.debug(`scrollObserver: update bounds`,this.container);let t=this.container.parentNode,n=t.classList.contains(`directly-visible`)&&t.firstElementChild===this.container;n?this.measurements={contentOffsetTop:window.scrollY+e.top,contentHeight:e.height-ai-X.viewportSize.height}:this.measurements={contentOffsetTop:window.scrollY+e.top-X.viewportSize.height,contentHeight:e.height-ai},this.measurements.foregrounds=Array.from(this.container.children).map((e,t)=>{let r=e.offsetTop;return n&&(r=Math.max(0,r-X.viewportSize.height)),{offsetTop:r,index:t,id:e.dataset.foregroundId,cmsId:e.dataset.cmsId,customId:e.dataset.customId}})}getScrollRatio(){return((document.documentElement.scrollTop||document.body.scrollTop)-this.measurements.contentOffsetTop)/this.measurements.contentHeight}onScroll(){let e=this.getScrollRatio();this.targetSeekPosition=Math.min(Math.max(e,0),1),this.startRenderLoop()}startRenderLoop(){this.renderLoopRunning||(this.renderLoopRunning=!0,requestAnimationFrame(()=>{this.renderLoop()}))}hasToRender(){return!this.destroyed&&Math.abs(this.targetSeekPosition-this.currentSeekPosition)*this.measurements.contentHeight>=1}renderLoop(){this.hasToRender()?(this.currentSeekPosition=ii(this.currentSeekPosition,this.targetSeekPosition,.14),this.render(),requestAnimationFrame(()=>{this.renderLoop()})):this.renderLoopRunning=!1}addCallback(e){this.callbacks.push(e),this.isInViewport&&this.onScroll()}getCurrentForegroundIndex(){let e=this.currentSeekPosition*this.measurements.contentHeight,t=this.measurements.foregrounds.length;for(let n=0;n=t||this.measurements.foregrounds[n+1].offsetTop>e)return n}getCurrentForeground(){let e=this.getCurrentForegroundIndex(),t=this.measurements.foregrounds[e],n=this.measurements.foregrounds.length,r=t.offsetTop,i=e+10?this.targetFrames[e.index-1]:0;return Math.max(1,Math.round(n+e.progress*(t-n)))}renderCallback(e){let t={seekPosition:this.currentSeekPosition,foreground:this.getCurrentForeground()};this.targetFrames&&(t.frame=this.calculateFrame(t.foreground),this.previousEvent&&t.frame===this.previousEvent.frame)||(this.previousEvent=t,e(t))}render(){this.callbacks.forEach(e=>{this.renderCallback(e)})}destroy(){this.destroyed=!0,this.callbacks.length=0}},ci;function li(e,t){ci||(ci=new oi);let n=e.closest(`.blender-container`),r;function i(){r&&(ci.remove(e),r=null,n.scrollProgress=void 0)}function a(){let{active:a,slideId:o,targetFramesConfig:s}=t;if(a){r||(r=ci.add(e),r.addCallback(t=>{let r={slideId:o,scrollProgress:t};e.dispatchEvent(new CustomEvent(`scrollProgressChange`,{detail:r,bubbles:!0})),n.scrollProgress=r}));let t=ri(s.breakpoint);r.setTargetFrames(s[t])}else i()}return X.addObserver(X.END_EVENT,a),a(),{update(e){t=e,a()},destroy(){X.removeObserver(X.END_EVENT,a),i()}}}function ui(){document.querySelectorAll(`[data-scroll-observer-config]`).forEach(di)}function di(e){return Z(li,e,`data-scroll-observer-config`)}function fi(e,t){return e===`cover`?`Mid`:t===`top`||t===`left`?`Min`:t===`bottom`||t===`right`?`Max`:`Mid`}function pi(e,t,n){let r=e===`mobile`&&t?.mediaUrl?t.backgroundSize:n.backgroundSize;if(!r)return`xMidYMid meet`;let i={x:fi(r.type,r.horizontal),y:fi(r.type,r.vertical),meetOrSlice:r.type===`cover`?`slice`:`meet`};return`x${i.x}Y${i.y} ${i.meetOrSlice}`}function mi(e,t){let{media:n,playMode:r}=e,{mobile:i,desktop:a}=n,o=t===`mobile`&&i?.mediaUrl?i:a,s=o.animationType;return{url:o.mediaUrl,frames:o.frames,device:t,preserveAspectRatio:pi(t,i,a),loop:r===`autoplay-loop`||s===`flightAnimation`,animationType:s}}function hi(e,t){return e?e.frame?e.frame-1:Math.min(t-1,Math.max(0,Math.round(t*e.seekPosition)-1)):0}function gi(e,t){let{Lottie:n}=t,r,i,a=ri(t.breakpoint),o,s,c;function l(){r&&(r.destroy(),r=null)}async function u(){let e=document.querySelector(`script[data-url='${i.url}']`);return e?JSON.parse(e.textContent):await(await fetch(i.url)).json()}function d(){l(),i=mi(t,a),s?.url!==i.url&&(e.dispatchEvent(new CustomEvent(`lottieIsLoading`)),s={url:i.url,promise:u()}),s.promise.then(t=>{r=n.loadAnimation({container:e,renderer:window.lottieRenderer===`canvas`?`canvas`:`svg`,loop:i.loop,autoplay:!1,rendererSettings:{preserveAspectRatio:i.preserveAspectRatio},animationData:t}),r.addEventListener(`DOMLoaded`,()=>{m(!0),e.dispatchEvent(new CustomEvent(`lottieLoaded`))}),r.addEventListener(`enterFrame`,e=>{c=e.currentTime})}).catch(e=>{console.error(`could not load lottie animation data`,e)})}function f(){return t.playMode?.includes(`autoplay`)||t.forceAutoplay||i.animationType===`flightAnimation`}function p(){let{enableAutoplay:e,isContainerVisible:n}=t;return f()&&!e&&!n}function m(e=!1){let{scrollProgress:n,enableAutoplay:a}=t;if(f())a?c===void 0?r.play():r.goToAndPlay(Math.round(c),!0):r.pause();else if(n||e){let e=i.frames,t=hi(n,e);r.goToAndStop(t,`true`)}p()&&(o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,p()&&(c=void 0,r.goToAndStop(1,!0))},1e3))}function h(e){return e.url!==i.url||e.loop!==i.loop||e.preserveAspectRatio!==i.preserveAspectRatio}function g(){a=ri(t.breakpoint),d()}return X.addObserver(X.END_EVENT,g),d(),{update(e){t=e,h(mi(e,a))?d():r&&m()},destroy(){X.removeObserver(X.END_EVENT,g),l(),e.dispatchEvent(new CustomEvent(`lottieLoaded`))}}}function _i(e,t){let n=e.closest(`.blender-container,.blender-static-container`),r=Nr(e.closest(`.background,.background-static`),n);function i(){return{...t,Lottie:Rn(),enableAutoplay:r.getEnableAutoplay(),isContainerVisible:r.getIsContainerVisible(),scrollProgress:r.current.scrollProgress}}let a=gi(e,i());function o(){a.update(i())}return r.onUpdate(o),{update(e){t=e,o()},destroy(){a.destroy(),r.destroy()}}}function vi(){document.querySelectorAll(`[data-autoplay-lottie-config]`).forEach(yi)}function yi(e){return Z(_i,e,`data-autoplay-lottie-config`)}function bi(e){let t=()=>{e.style.display=`flex`},n=()=>{e.style.display=`none`},r=e.parentNode.querySelector(`.lottie`);return r.addEventListener(`lottieIsLoading`,t),r.addEventListener(`lottieLoaded`,n),t(),{destroy(){n(),r.removeEventListener(`lottieIsLoading`,t),r.removeEventListener(`lottieLoaded`,n)}}}function xi(){document.querySelectorAll(`.lottie-container .loading, .lottie-content-player-container .loading`).forEach(bi)}function Si(e,t){let n=e.querySelector(`.caption-icon-open`),r=e.querySelector(`.caption-icon-close`),i=e.querySelector(`.caption-content`);function a(){i.style.display=`none`,n.style.display=`block`,e.classList.remove(`isopen`)}function o(){i.style.display=`flex`,n.style.display=`none`,e.classList.add(`isopen`)}function s(){e.classList.contains(`isopen`)?(a(),Q(`Caption: Close`,t.eventLabel)):(o(),Q(`Caption: Open`,t.eventLabel))}return n.addEventListener(`click`,s),r.addEventListener(`click`,s),a(),{destroy(){n.removeEventListener(`click`,s),r.removeEventListener(`click`,s)}}}function Ci(){document.querySelectorAll(`[data-toggle-caption-config]`).forEach(wi)}function wi(e){return Z(Si,e,`data-toggle-caption-config`)}function Ti(e){let t=e.closest(`.blender-container`),n=e.closest(`.background,.background-static`).dataset.slideId;if(n===`0-0`||!t)return;function r(t){e.decoding=Dr(n,t)===`inactive`?`async`:`sync`}let i=e=>{r(e.detail.activeSlideId)};return t.addEventListener(`slideChange`,i),r(t.blenderStatus?.activeSlideId),{destroy(){t?.removeEventListener(`slideChange`,i)}}}function Ei(){document.querySelectorAll(`[data-active-background-image-attributes]`).forEach(Ti)}function Di(e,t){let n=!1;function r(){return{...t,enableAutoplay:n,shouldPreload:n,type:`contentVideo`}}function i(){s.onUpdate(r(t))}function a(t){e.parentNode.classList.toggle(`video-can-be-displayed`,!!t.detail)}function o(e){let{visibility:t}=e.detail;n=$.HIDDEN!==t,i()}let s=new yr(e,r());return s.onStateChange(!0),e.addEventListener(`canBeDisplayed`,a),e.parentNode.addEventListener(`visibilityChange`,o),{update(e){t=e,s.onUpdate(r())},destroy(){s.onDestroy(),e.removeEventListener(`canBeDisplayed`,a),e.parentNode.removeEventListener(`visibilityChange`,o)}}}function Oi(){document.querySelectorAll(`[data-autoplay-video-config]`).forEach(ki)}function ki(e){return Z(Di,e,`data-autoplay-video-config`)}function Ai(e){e.addEventListener(`canBeDisplayed`,t=>{e.classList.toggle(`video-can-be-displayed`,!!t.detail)})}function ji(){document.querySelectorAll(`[data-video-ready-action]`).forEach(Ai)}function Mi(e,t){function n(){Q(`Content Video Interaction`,`play: ${t.src}`)}function r(){Q(`Content Video Interaction`,`pause: ${t.src}`)}function i(){Q(`Content Video Interaction`,`ended: ${t.src}`)}function a(){Q(`Content Video Interaction`,`error: ${t.src}`)}let o=[];function s(){if(e.currentTime&&e.duration){let n=Math.floor(e.currentTime/e.duration*10)/10*100;n>0&&n<=100&&!o.includes(n)&&(Q(`Content Video Progress`,`${n}%: ${t.src}`),o.push(n))}}function c(){e.addEventListener(`play`,n),e.addEventListener(`pause`,r),e.addEventListener(`ended`,i),e.addEventListener(`error`,a),e.addEventListener(`timeupdate`,s)}function l(){e.removeEventListener(`play`,n),e.removeEventListener(`pause`,r),e.removeEventListener(`ended`,i),e.removeEventListener(`error`,a),e.removeEventListener(`timeupdate`,s)}return c(),{update(e){t=e,l(),c()},destroy(){l()}}}function Ni(){return{video:void 0,poster:void 0}}function Pi(e){return{poster:e.poster,video:_r(e)}}function Fi(e,t){let n=Ni(),r=!1,i=!1,a=Mi(e,{});function o(){if(!t){e.poster=void 0,e.querySelector(`source`)?.remove(),n=Ni(),a.update({});return}let r=window.matchMedia(`(min-width: ${t.breakpoint})`).matches?`desktop`:`mobile`,i=Pi(t.media[r]||t.media.desktop);if(i.video!==n.video||i.poster!==n.poster){n=i,e.poster=n.poster,e.querySelector(`source`)?.remove();let t=document.createElement(`source`);t.src=n.video,e.appendChild(t),a.update({src:n.video}),e.load()}}function s(e){let{visibility:t}=e.detail;r=$.HIDDEN!==t,r&&!i&&(i=!0,o())}return X.addObserver(X.END_EVENT,o),e.parentNode.addEventListener(`visibilityChange`,s),{update(e){t=e,o()},destroy(){X.removeObserver(X.END_EVENT,o),e.parentNode.removeEventListener(`visibilityChange`,s)}}}function Ii(){document.querySelectorAll(`[data-controllable-video-config]`).forEach(Li)}function Li(e){return Z(Fi,e,`data-controllable-video-config`)}function Ri(e,t){let n=e.parentNode,r={visibility:n.visibilityStatus||$.HIDDEN};function i(){return{...t,playMode:`autoplay-loop`,Lottie:Rn(),isContainerVisible:r.visibility!==$.HIDDEN,enableAutoplay:r.visibility!==$.HIDDEN}}let a=gi(e,i());function o(){a.update(i())}function s(e){r.visibility=e.detail.visibility,o()}return n.addEventListener(`visibilityChange`,s),{update(e){t=e,o()},destroy(){a.destroy(),n.removeEventListener(`visibilityChange`,s)}}}function zi(){document.querySelectorAll(`[data-lottie-content-player-config]`).forEach(Bi)}function Bi(e){return Z(Ri,e,`data-lottie-content-player-config`)}function Vi(e){function t(){let t=`${e.dataset.articleId}: ${e.querySelector(`:scope > summary`)?.textContent?.trim()}`;e.open?Q(`Expandable: Open`,t):Q(`Expandable: Close`,t)}return e.addEventListener(`toggle`,t),{destroy(){e.removeEventListener(`toggle`,t)}}}function Hi(){document.querySelectorAll(`details.expandable`).forEach(Vi)}var Ui,Wi=`https://player.podigee-cdn.net`,Gi=()=>{Ui||(window.addEventListener(`message`,e=>{if(e.origin===Wi)try{let t=JSON.parse(e.data);t&&(t.event===`ready`&&(Ki(`play`,t),Ki(`sendMetadata`,t),Ki(`ended`,t)),t.event===`play`&&qi(`play`,t),t.event===`sendMetadata`&&qi(`sendMetadata`,t),t.event===`ended`&&qi(`ended`,t))}catch{}},!1),Ui=!0)};function Ki(e,t){if(t.value){let n=/id=([a-zA-Z-0-9]+)/g.exec(t.value.src)[1],r=document.querySelector(`iframe[id="${n}"]`);if(r&&r.contentWindow){let t={podcastId:r.id,event:e},n={method:`addEventListener`,value:e,listener:JSON.stringify(t),context:`player.js`};r.contentWindow.postMessage(JSON.stringify(n),Wi)}}}function qi(e,t){if(t.listener){let n=JSON.parse(t.listener);if(n){let r=n.podcastId,i=t.value?.episode_id,a=t.value?.episode_title,o=t.value?.podcast_title,s=t.value?.episode_duration;n.event===e&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`genericevent`,genericevent:{category:`podcast`,action:e,label:r,podcast:{itemEpisodeId:i,itemEpisodeTitle:a,itemPodcastTitle:o,itemEpisodeDuration:s}}}))}}}function Ji(e){let t=e.match(/data-configuration="([^"]+)"/);try{return t?new URL(t[1]).toString():new URL(`${e}/embed?context=external`).toString()}catch{return console.error(`invalid input`),null}}function Yi(e,t){let n,r=()=>{let{podigeeInput:r}=t,i=Ji(r);if(n&&e.removeChild(n),n=document.createElement(`div`),e.appendChild(n),!i)return;let a=document.createElement(`script`);a.setAttribute(`src`,`https://player.podigee-cdn.net/podcast-player/javascripts/podigee-podcast-player.js`),a.setAttribute(`class`,`podigee-podcast-player`),a.setAttribute(`data-configuration`,i),n.appendChild(a)};return Gi(),r(),{update(e){t=e,r()}}}function Xi(){document.querySelectorAll(`[data-podcast-player-config]`).forEach(Zi)}function Zi(e){return Z(Yi,e,`data-podcast-player-config`)}function Qi(e,t){let n=(e-t/2)/(1-t);return Math.round(Math.max(0,Math.min(1,n))*1e3)/10}function $i(e,t){function n(){e.style.objectPosition=null}function r(){let{media:r,breakpoint:i}=t,a=r[window.matchMedia(`(min-width: ${i})`).matches?`desktop`:`mobile`]||r.desktop;if(a?.focalPoint&&a.naturalWidth&&a.backgroundSizeType===`cover`){let t=e.getBoundingClientRect(),n=a.naturalWidth/a.naturalHeight,r=t.width/t.height;n>r?e.style.objectPosition=`${Qi(a.focalPoint.x,r/n)}% center`:e.style.objectPosition=`center ${Qi(a.focalPoint.y,n/r)}%`}else n()}return X.addObserver(X.END_EVENT,r),window.addEventListener(`appUpdate`,r),r(),{update(e){t=e,r()},destroy(){X.removeObserver(X.END_EVENT,r),window.removeEventListener(`appUpdate`,r),n()}}}function ea(){document.querySelectorAll(`[data-focal-point-config]`).forEach(ta)}function ta(e){return Z($i,e,`data-focal-point-config`)}function na(e){let t=e.closest(`.blender-container`);function n(){e.style.bottom=``,e.style.removeProperty(`--clip-for-previous-slide`)}function r(t){let r=e.dataset.slideId;if(r&&Xr()){let i=t.find(e=>e.slideId===r);if(i){e.style.bottom=`${100-i.heightInPercent}%`;let t=i.heightInPercent-(i.nextHeightInPercent??0);i.nextHeightInPercent&&t>0?e.style.setProperty(`--clip-for-previous-slide`,(t+.5)/100):e.style.removeProperty(`--clip-for-previous-slide`)}else n()}else n()}function i(e){r(e.detail.heights)}function a(){r(t.splitBlenderHeights??[])}return t.addEventListener(`splitBlenderHeights`,i),a(),{update(){a()},destroy(){t.removeEventListener(`splitBlenderHeights`,i),n()}}}function ra(){document.querySelectorAll(`.background.split-blender[data-split-blender-background-height]`).forEach(na)}function ia(e){let t=e.closest(`.blender-container`);function n(){return e.dataset.foregroundId?.endsWith(`-0-0`)}function r(){e.style.marginBottom=``,n()&&t.style.removeProperty(`--first-split-blender-height`)}function i(i){let a=e.dataset.foregroundId;if(a&&Xr()){let o=i.find(e=>a.startsWith(e.slideId+`-`));o?(e.style.marginBottom=`calc(${(100-o.heightInPercent)/100} * var(--viewport-height, 100lvh))`,n()&&t.style.setProperty(`--first-split-blender-move-up-percentage`,(100-o.heightInPercent)/100)):r()}else r()}function a(e){i(e.detail.heights)}function o(){i(t.splitBlenderHeights??[])}return t.addEventListener(`splitBlenderHeights`,a),o(),{update(){o()},destroy(){t.removeEventListener(`splitBlenderHeights`,a),r()}}}function aa(){document.querySelectorAll(`.foreground-group.split-blender > [data-split-blender-foreground-height]`).forEach(ia)}function oa(e,t){if(!e||!t)return null;let n=t===e;return Er(t+1===e,t-1===e,n)}function sa(e){let t=e.closest(`.blender-container`);function n(t){let n=oa(parseInt(e.dataset.foregroundBlenderIndex,10),t);n&&Or(e,n)}function r(e){let t=e.detail.activeForegroundBlenderIndex;n(t)}function i(){n(t.blenderStatus?.foregroundId)}return t.addEventListener(`foregroundChange`,r),i(),{update(){i()},destroy(){t.removeEventListener(`foregroundChange`,r),Or(e,null)}}}function ca(){document.querySelectorAll(`[data-active-foreground-slide-status-class]`).forEach(sa)}var la=[Ar,Wn,tr,Kn,rr,$n,Fr,vi,qr,ea,ui,Cr,xi,Ci,Ei,Oi,ji,Ii,zi,dr,Hi,Xi,Qr,ti,ra,aa,ca],ua=o((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,"__esModule",{value:!0}),e.getConsoleLogger=t;function t(){return{debug:function(e,t,n){console.debug(e,t,n)},info:function(e,t,n){console.info(e,t,n)},warn:function(e,t,n){console.warn(e,t,n)},error:function(e,t,n){console.error(e,t,n)}}}})),fa=o((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,"__esModule",{value:!0}),e.makeGetBrowserLogger=e.getLoggingScript=e.initBrowserLogging=void 0;var t=ua();Object.defineProperty(e,"initBrowserLogging",{enumerable:!0,get:function(){return t.initBrowserLogging}}),Object.defineProperty(e,"getLoggingScript",{enumerable:!0,get:function(){return t.getLoggingScript}});var n=fa();Object.defineProperty(e,"makeGetBrowserLogger",{enumerable:!0,get:function(){return n.makeGetBrowserLogger}})}))().makeGetBrowserLogger)({team:`er`,service:`er-longread`});function ma(e){return!!e?.match(/((iPhone|iPad).*(Instagram|FBAN\/FBIOS))|FxiOS/i)}function ha(){let e=0,t=0,n=()=>{let n=window.innerHeight,r=window.innerWidth;e=r===t&&Math.abs(n-e)<150?Math.max(n,e):n,t=r,document.documentElement.style.setProperty(`--js-viewport-height`,`${e}px`)},r=(0,Pn.default)(n,250);window.addEventListener(`resize`,r),n()}function ga(){ma(window.navigator.userAgent)&&ha()}function _a(){X.init(),ga(),va()}function va(){window.szerLongreadServices={viewportService:X}}function ya(e){return new Promise(t=>{let n=document.createElement(`script`);n.src=e,n.setAttribute(`defer`,`defer`),n.onload=t,n.onerror=t,document.body.appendChild(n)})}function ba(){Array.isArray(window.externalJs)&&window.externalJs.length>0&&Promise.all(window.externalJs.map(ya)).then(()=>{window.externalScriptsInitialized=!0,window.dispatchEvent(new window.Event(`externalScriptInit`))}).catch(e=>console.error(`error initializing external scripts`,e))}function xa(e){la.forEach(t=>{try{t()}catch(n){e.error(`hydration of one action failed: `+t,void 0,n)}})}function Sa(){_n().then(()=>{window.appInitialized=!0,window.dispatchEvent(new window.Event(`appInit`)),ba()}).catch(e=>console.error(`hydrate tick error`,e))}function Ca(){let e=document.querySelector(`.vgwort-pixel`);e&&e.setAttribute(`src`,e.dataset.src)}function wa(e){Ln(e||{})}function Ta(e){window.appId=`longread.v2`;let t=pa(`hydrate`);try{wa(e),_a(),xa(t),/www.*.sueddeutsche.de/.test(window.location.hostname)&&Ca(),Sa()}catch(e){t.error(`hydration failed`,void 0,e)}}document.addEventListener(`DOMContentLoaded`,()=>Ta())})();