1const Bt=()=>{document.documentElement.style.setProperty("--scrollBarWidth",`${window.innerWidth-document.documentElement.clientWidth}px`)};Bt();const Nt=()=>{document.documentElement.style.setProperty("--vh",`${window.innerHeight}px`)};Nt();const st=(i,t)=>getComputedStyle(i).getPropertyValue(t),ft={isClosed:"is-closed",isOpen:"is-open",dataAttr:"[data-accordion]"};let K=null;const Et=(i,t)=>{i.open=t,K=null,i.style.height=""},Pt=i=>{i.classList.toggle(ft.isOpen,!i.open),i.classList.toggle(ft.isClosed,i.open)},zt=i=>{const t=i.closest(ft.dataAttr),e=i.closest("details"),o=i.nextElementSibling,[n,s,r,l]=[t?st(t,"--accordion-easing-on-close"):"ease-in-out",t?st(t,"--accordion-duration-on-close"):200,t?st(t,"--accordion-easing-on-open"):"ease-in-out",t?st(t,"--accordion-duration-on-open"):300],a=new CustomEvent(e.open?"accordion:close":"accordion:open",{cancelable:!0,bubbles:!0});if(e.dispatchEvent(a)){if(Pt(e),t&&t.dataset.accordion==="collapse"){const c=t.querySelector(":scope > [open]"),u=new CustomEvent("accordion:close",{cancelable:!0,bubbles:!0});c&&c!==e&&c.dispatchEvent(u)&&(Pt(c),c.animate({height:[`${c.offsetHeight}px`,`${c.firstElementChild.offsetHeight}px`]},{duration:Number(s),easing:n}).onfinish=()=>c.open=!1)}K||(e.open?e.open&&(K=e.animate({height:[`${e.offsetHeight}px`,`${i.offsetHeight}px`]},{duration:Number(s),easing:n}),K.onfinish=()=>Et(e,!1)):(e.style.height=`${e.offsetHeight}px`,e.open=!0,K=e.animate({height:[`${e.offsetHeight}px`,`${i.offsetHeight+o.offsetHeight}px`]},{duration:Number(l),easing:r}),K.onfinish=()=>Et(e,!0)))}},Ft=()=>(document.addEventListener("click",i=>{(i.target.matches("summary")||i.target.closest("summary"))&&(i.preventDefault(),zt(i.target.matches("summary")?i.target:i.target.closest("summary")))}),!1);Ft();var X=function(){return X=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i},X.apply(this,arguments)};function qt(i,t,e){if(e||arguments.length===2)for(var o,n=0,s=t.length;n<s;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return i.concat(o||Array.prototype.slice.call(t))}function Tt(i){return Array.prototype.slice.call(i)}function At(i,t){var e=Math.floor(i);return e===t||e+1===t?i:t}function xt(){return Date.now()}function ut(i,t,e){if(t="data-keen-slider-"+t,e===null)return i.removeAttribute(t);i.setAttribute(t,e||"")}function ct(i,t){return t=t||document,typeof i=="function"&&(i=i(t)),Array.isArray(i)?i:typeof i=="string"?Tt(t.querySelectorAll(i)):i instanceof HTMLElement?[i]:i instanceof NodeList?Tt(i):[]}function J(i){i.raw&&(i=i.raw),i.cancelable&&!i.defaultPrevented&&i.preventDefault()}function Q(i){i.raw&&(i=i.raw),i.stopPropagation&&i.stopPropagation()}function Ut(){var i=[];return{add:function(t,e,o,n){t.addListener?t.addListener(o):t.addEventListener(e,o,n),i.push([t,e,o,n])},input:function(t,e,o,n){this.add(t,e,function(s){return function(r){r.nativeEvent&&(r=r.nativeEvent);var l=r.changedTouches||[],a=r.targetTouches||[],c=r.detail&&r.detail.x?r.detail:null;return s({id:c?c.identifier?c.identifier:"i":a[0]?a[0]?a[0].identifier:"e":"d",idChanged:c?c.identifier?c.identifier:"i":l[0]?l[0]?l[0].identifier:"e":"d",raw:r,x:c&&
1c.x?c.x:a[0]?a[0].screenX:c?c.x:r.pageX,y:c&&c.y?c.y:a[0]?a[0].screenY:c?c.y:r.pageY})}}(o),n)},purge:function(){i.forEach(function(t){t[0].removeListener?t[0].removeListener(t[2]):t[0].removeEventListener(t[1],t[2],t[3])}),i=[]}}}function yt(i,t,e){return Math.min(Math.max(i,t),e)}function j(i){return(i>0?1:0)-(i<0?1:0)||+i}function Ct(i){var t=i.getBoundingClientRect();return{height:At(t.height,i.offsetHeight),width:At(t.width,i.offsetWidth)}}function V(i,t,e,o){var n=i&&i[t];return n==null?e:o&&typeof n=="function"?n():n}function W(i){return Math.round(1e6*i)/1e6}function Kt(i){var t,e,o,n,s,r;function l(m){r||(r=m),a(!0);var v=m-r;v>o&&(v=o);var h=n[e];if(h[3]<v)return e++,l(m);var p=h[2],P=h[4],f=h[0],S=h[1]*(0,h[5])(P===0?1:(v-p)/P);if(S&&i.track.to(f+S),v<o)return u();r=null,a(!1),c(null),i.emit("animationEnded")}function a(m){t.active=m}function c(m){t.targetIdx=m}function u(){var m;m=l,s=window.requestAnimationFrame(m)}function g(){var m;m=s,window.cancelAnimationFrame(m),a(!1),c(null),r&&i.emit("animationStopped"),r=null}return t={active:!1,start:function(m){if(g(),i.track.details){var v=0,h=i.track.details.position;e=0,o=0,n=m.map(function(p){var P,f=Number(h),S=(P=p.earlyExit)!==null&&P!==void 0?P:p.duration,w=p.easing,M=p.distance*w(S/p.duration)||0;h+=M;var L=o;return o+=S,v+=M,[f,p.distance,L,o,p.duration,w]}),c(i.track.distToIdx(v)),u(),i.emit("animationStarted")}},stop:g,targetIdx:null}}function Xt(i){var t,e,o,n,s,r,l,a,c,u,g,m,v,h,p=1/0,P=[],f=null,S=0;function w(E){R(S+E)}function M(E){var b=L(S+E).abs;return C(b)?b:null}function L(E){var b=Math.floor(Math.abs(W(E/e))),d=W((E%e+e)%e);d===e&&(d=0);var A=j(E),k=l.indexOf(qt([],l,!0).reduce(function($,_){return Math.abs(_-d)<Math.abs($-d)?_:$})),x=k;return A<0&&b++,k===r&&(x=0,b+=A>0?1:-1),{abs:x+b*r*A,origin:k,rel:x}}function O(E,b,d){var A;if(b||!Y())return y(E,d);if(!C(E))return null;var k=L(d??S),x=k.abs,$=E-k.rel,_=x+$;A=y(_);var q=y(_-r*j($));return(q!==null&&Math.abs(q)<Math.abs(A)||A===null)&&(A=q),W(A)}function y(E,b){if(b==null&&(b=W(S)),!C(E)||E===null)return null;E=Math.round(E);var d=L(b),A=d.abs,k=d.rel,x=d.origin,$=D(E),_=(b%e+e)%e,q=l[x],B=Math.floor((E-(A-k))/r)*e;return W(q-_-q+l[$]+B+(x===r?e:0))}function C(E){return H(E)===E}function H(E){return yt(E,c,u)}function Y(){return n.loop}function D(E){return(E%r+r)%r}function R(E){var b;b=E-S,P.push({distance:b,timestamp:xt()}),P.length>6&&(P=P.slice(-6)),S=W(E);var d=T().abs;if(d!==f){var A=f!==null;f=d,A&&i.emit("slideChanged")}}function T(E){var b=E?null:function(){if(r){var d=Y(),A=d?(S%e+e)%e:S,k=(d?S%e:S)-s[0][2],x=0-(k<0&&d?e-Math.abs(k):k),$=0,_=L(S),q=_.abs,B=_.rel,ot=s[B][2],nt=s.map(function(N,Wt){var I=x+$;(I<0-N[0]||I>1)&&(I+=(Math.abs(I)>e-1&&d?e:0)*j(-I));var bt=Wt-B,kt=j(bt),G=bt+q;d&&(kt===-1&&I>ot&&(G+=r),kt===1&&I<ot&&(G-=r),g!==null&&G<g&&(I+=e),m!==null&&G>m&&(I-=e));var St=I+N[0]+N[1],jt=Math.max(I>=0&&St<=1?1:St<0||I>1?0:I<0?Math.min(1,(N[0]+I)/N[0]):(1-I)/N[0],0);return $+=N[0]+N[1],{abs:G,distance:n.rtl?-1*I+1-N[0]:I,portion:jt,size:N[0]}});return q=H(q),B=D(q),{abs:H(q),length:o,max:h,maxIdx:u,min:v,minIdx:c,position:S,progress:d?A/e:S/o,rel:B,slides:nt,slidesLength:e}}}();return t.details=b,i.emit("detailsChanged"),b}return t={absToRel:D,add:w,details:null,distToIdx:M,idxToDist:O,init:function(E){if(function(){if(n=i.options,s=(n.trackConfig||[]).map(function(k){return[V(k,"size",1),V(k,"spacing",0),V(k,"origin",0)]}),r=s.length){e=W(s.reduce(function(k,x){return k+x[0]+x[1]},0));var d,A=r-1;o=W(e+s[0][2]-s[A][0]-s[A][2]-s[A][1]),l=s.reduce(function(k,x){if(!k)return[0];var $=s[k.length-1],_=k[k.length-1]+($[0]+$[2])+$[1];return _-=x[2],k[k.length-1]>_&&(_=k[k.length-1]),_=W(_),k.push(_),(!d||d<_)&&(a=k.length-1),d=_,k},null),o===0&&(a=0),l.push(W(e))}}(),!r)return T(!0);var b;(function(){var d=i.options.range,A=i.options.loop;g=c=A?V(A,"min",-1/0):0,m=u=A?V(A,"max",p):a;var k=V(d,"min",null),x=V(d,"max",null);k!==null&&(c=k),x!==null&&(u=x),v=c===-1/0?c:i.track.idxToDist(c||0,!0,0),h=u===p?u:O(u,!0,0),x===null&&(m=u),V(d,"align",!1)&&u!==p&&s[D(u)][2]===0&&(h-=1-s[D(u)][0],u=M(h-S)),v=W(v),h=W(h)})(),b=E,Number(b)===b?w(y(H(E))):T()},to:R,velocity:function(){var E=xt(),b=P.reduce(function(d,A){var k=A.distance,x=A.timestamp;return E-x>200||(j(k)!==j(d.distance)&&d.distance&&(d={distance:0,lastTimestamp:0,time:0}),d.time&&(d.distance+=k),d.lastTimestamp&&(d.time+=x-d.lastTimestamp),d.lastTimestamp=x),d},{distance:0,lastTimestamp:0,time:0});return b.distance/b.time||0}}}function Gt(i){var t,e,o,n,s,r,l,a;function c(f){return 2*f}function u(f){return yt(f,l,a)}function g(f){return 1-Math.pow(1-f,3)}function m(){return o?i.track.velocity():0}function v(){P();var f=i.options.mode==="free-snap",S=i.track,w=m();n=j(w);var M=i.track.details,L=[];if(w||!f){var O=h(w),y=O.dist,C=O.dur;if(C=c(C),y*=n,f){var H=S.idxToDist(S.distToIdx(y),!0);H&&(y=H)}L.push({distance:y,duration:C,easing:g});var Y=M.position,D=Y+y;if(D<s||D>r){var R=D<s?s-Y:r-Y,T=0,E=w;if(j(R)===n){var b=Math.min(Math.abs(R)/Math.abs(y),1),d=function(x){return 1-Math.pow(1-x,1/3)}(b)*C;L[0].earlyExit=d,E=w*(1-b)}else L[0].earlyExit=0,T+=R;var A=h(E,100),k=A.dist*n;i.options.rubberband&&(L.push({distance:k,duration:c(A.dur),easing:g}),L.push({distance:-k+T,duration:500,easing:g}))}i.animator.start(L)}else i.moveToIdx(u(M.abs),!0,{duration:500,easing:function(x){return 1+--x*x*x*x*x}})}function h(f,S){S===void 0&&(S=1e3);var w=147e-9+(f=Math.abs(f))/S;return{dist:Math.pow(f,2)/w,dur:f/w}}function p(){var f=i.track.details;f&&(s=f.min,r=f.max,l=f.minIdx,a=f.maxIdx)}function P(){i.animator.stop()}i.on("updated",p),i.on("optionsChanged",p),i.on("created",p),i.on("dragStarted",function(){o=!1,P(),t=e=i.track.details.abs}),i.on("dragChecked",function(){o=!0}),i.on("dragEnded",function(){var f=i.options.mode;f==="snap"&&function(){var S=i.track,w=i.track.details,M=w.position,L=j(m());(M>r||M<s)&&(L=0);var O=t+L;w.slides[S.absToRel(O)].portion===0&&(O-=L),t!==e&&(O=e),j(S.idxToDist(O,!0))!==L&&(O+=L),O=u(O);var y=S.idxToDist(O,!0);i.animator.start([{distance:y,duration:500,easing:function(C){return 1+--C*C*C*C*C}}])}(),f!=="free"&&f!=="free-snap"||v()}),i.on("dragged",function(){e=i.track.details.abs})}function Jt(i){var t,e,o,n,s,r,l,a,c,u,g,m,v,h,p,P,f,S,w=Ut();function M(T){if(r&&a===T.id){var E=C(T);if(c){if(!y(T))return O(T);u=E,c=!1,i.emit("dragChecked")}if(P)return u=E;J(T);var b=function(A){if(f===-1/0&&S===1/0)return A;var k=i.track.details,x=k.length,$=k.position,_=yt(A,f-$,S-$);if(x===0)return 0;if(!i.options.rubberband)return _;if($<=S&&$>=f||$<f&&e>0||$>S&&e<0)return A;var q=($<f?$-f:$-S)/x,B=n*x,ot=Math.abs(q*B),nt=Math.max(0,1-ot/s*2);return nt*nt*A}(l(u-E)/n*o);e=j(b);var d=i.track.details.position;(d>f&&d<S||d===f&&e>0||d===S&&e<0)&&Q(T),g+=b,!m&&Math.abs(g*n)>5&&(m=!0),i.track.add(b),u=E,i.emit("dragged")}}function L(T){!r&&i.track.details&&i.track.details.length&&(g=0,r=!0,m=!1,c=!0,a=T.id,y(T),u=C(T),i.emit("dragStarted"))}function O(T){r&&a===T.idChanged&&(r=!1,i.emit("dragEnded"))}function y(T){var E=H(),b=E?T.y:T.x,d=E?T.x:T.y,A=v!==void 0&&h!==void 0&&Math.abs(h-d)<=Math.abs(v-b);return v=b,h=d,A}function C(T){return H()?T.y:T.x}function H(){return i.options.vertical}function Y(){n=i.size,s=H()?window.innerHeight:window.innerWidth;var T=i.track.details;T&&(f=T.min,S=T.max)}function D(T){m&&(Q(T),J(T))}function R(){if(w.purge(),i.options.drag&&!i.options.disabled){var T;T=i.options.dragSpeed||1,l=typeof T=="function"?T:function(b){return b*T},o=i.options.rtl?-1:1,Y(),t=i.container,function(){var b="data-keen-slider-clickable";ct("[".concat(b,"]:not([").concat(b,"=false])"),t).map(function(d){w.add(d,"dragstart",Q),w.add(d,"mousedown",Q),w.add(d,"touchstart",Q)})}(),w.add(t,"dragstart",function(b){J(b)}),w.add(t,"click",D,{capture:!0}),w.input(t,"ksDragStart",L),w.input(t,"ksDrag",M),w.input(t,"ksDragEnd",O),w.input(t,"mousedown",L),w.input(t,"mousemove",M),w.input(t,"mouseleave",O),w.input(t,"mouseup",O),w.input(t,"touchstart",L,{passive:!0}),w.input(t,"touchmove",M,{passive:!1}),w.input(t,"touchend",O),w.input(t,"touchcancel",O),w.add(window,"wheel",function(b){r&&J(b)});var E="data-keen-slider-scrollable";ct("[".concat(E,"]:not([").concat(E,"=false])"),i.container).map(function(b){return function(d){var A;w.input(d,"touchstart",function(k){A=C(k),P=!0,p=!0},{passive:!0}
1),w.input(d,"touchmove",function(k){var x=H(),$=x?d.scrollHeight-d.clientHeight:d.scrollWidth-d.clientWidth,_=A-C(k),q=x?d.scrollTop:d.scrollLeft,B=x&&d.style.overflowY==="scroll"||!x&&d.style.overflowX==="scroll";if(A=C(k),(_<0&&q>0||_>0&&q<$)&&p&&B)return P=!0;p=!1,J(k),P=!1}),w.input(d,"touchend",function(){P=!1})}(b)})}}i.on("updated",Y),i.on("optionsChanged",R),i.on("created",R),i.on("destroyed",w.purge)}function Qt(i){var t,e,o=null;function n(v,h,p){i.animator.active?r(v,h,p):requestAnimationFrame(function(){return r(v,h,p)})}function s(){n(!1,!1,e)}function r(v,h,p){var P=0,f=i.size,S=i.track.details;if(S&&t){var w=S.slides;t.forEach(function(M,L){if(v)!o&&h&&a(M,null,p),c(M,null,p);else{if(!w[L])return;var O=w[L].size*f;!o&&h&&a(M,O,p),c(M,w[L].distance*f-P,p),P+=O}})}}function l(v){return i.options.renderMode==="performance"?Math.round(v):v}function a(v,h,p){var P=p?"height":"width";h!==null&&(h=l(h)+"px"),v.style["min-"+P]=h,v.style["max-"+P]=h}function c(v,h,p){if(h!==null){h=l(h);var P=p?h:0;h="translate3d(".concat(p?0:h,"px, ").concat(P,"px, 0)")}v.style.transform=h,v.style["-webkit-transform"]=h}function u(){t&&(r(!0,!0,e),t=null),i.on("detailsChanged",s,!0)}function g(){n(!1,!0,e)}function m(){u(),e=i.options.vertical,i.options.disabled||i.options.renderMode==="custom"||(o=V(i.options.slides,"perView",null)==="auto",i.on("detailsChanged",s),(t=i.slides).length&&g())}i.on("created",m),i.on("optionsChanged",m),i.on("beforeOptionsChanged",function(){u()}),i.on("updated",g),i.on("destroyed",u)}function Zt(i,t){return function(e){var o,n,s,r,l,a=Ut();function c(y){var C;ut(e.container,"reverse",(C=e.container,window.getComputedStyle(C,null).getPropertyValue("direction")!=="rtl"||y?null:"")),ut(e.container,"v",e.options.vertical&&!y?"":null),ut(e.container,"disabled",e.options.disabled&&!y?"":null)}function u(){g()&&P()}function g(){var y=null;if(r.forEach(function(H){H.matches&&(y=H.__media)}),y===o)return!1;o||e.emit("beforeOptionsChanged"),o=y;var C=y?s.breakpoints[y]:s;return e.options=X(X({},s),C),c(),L(),O(),S(),!0}function m(y){var C=Ct(y);return(e.options.vertical?C.height:C.width)/e.size||1}function v(){return e.options.trackConfig.length}function h(y){for(var C in o=!1,s=X(X({},t),y),a.purge(),n=e.size,r=[],s.breakpoints||[]){var H=window.matchMedia(C);H.__media=C,r.push(H),a.add(H,"change",u)}a.add(window,"orientationchange",M),a.add(window,"resize",w),g()}function p(y){e.animator.stop();var C=e.track.details;e.track.init(y??(C?C.abs:0))}function P(y){p(y),e.emit("optionsChanged")}function f(y,C){if(y)return h(y),void P(C);L(),O();var H=v();S(),v()!==H?P(C):p(C),e.emit("updated")}function S(){var y=e.options.slides;if(typeof y=="function")return e.options.trackConfig=y(e.size,e.slides);for(var C=e.slides,H=C.length,Y=typeof y=="number"?y:V(y,"number",H,!0),D=[],R=V(y,"perView",1,!0),T=V(y,"spacing",0,!0)/e.size||0,E=R==="auto"?T:T/R,b=V(y,"origin","auto"),d=0,A=0;A<Y;A++){var k=R==="auto"?m(C[A]):1/R-T+E,x=b==="center"?.5-k/2:b==="auto"?0:b;D.push({origin:x,size:k,spacing:T}),d+=k}if(d+=T*(Y-1),b==="auto"&&!e.options.loop&&R!==1){var $=0;D.map(function(_){var q=d-$;return $+=_.size+T,q>=1||(_.origin=1-q-(d>1?0:1-d)),_})}e.options.trackConfig=D}function w(){L();var y=e.size;e.options.disabled||y===n||(n=y,f())}function M(){w(),setTimeout(w,500),setTimeout(w,2e3)}function L(){var y=Ct(e.container);e.size=(e.options.vertical?y.height:y.width)||1}function O(){e.slides=ct(e.options.selector,e.container)}e.container=(l=ct(i,document)).length?l[0]:null,e.destroy=function(){a.purge(),e.emit("destroyed"),c(!0)},e.prev=function(){e.moveToIdx(e.track.details.abs-1,!0)},e.next=function(){e.moveToIdx(e.track.details.abs+1,!0)},e.update=f,h(e.options)}}var te=function(i,t,e){try{return function(o,n){var s,r={};return s={emit:function(l){r[l]&&r[l].forEach(function(c){c(s)});var a=s.options&&s.options[l];a&&a(s)},moveToIdx:function(l,a,c){var u=s.track.idxToDist(l,a);if(u){var g=s.options.defaultAnimation;s.animator.start([{distance:u,duration:V(c||g,"duration",500),easing:V(c||g,"easing",function(m){return 1+--m*m*m*m*m})}])}},on:function(l,a,c){c===void 0&&(c=!1),r[l]||(r[l]=[]);var u=r[l].indexOf(a);u>-1?c&&delete r[l][u]:c||r[l].push(a)},options:o},function(){if(s.track=Xt(s),s.animator=Kt(s),n)for(var l=0,a=n;l<a.length;l++)(0,a[l])(s);s.track.init(s.options.initial||0),s.emit("created")}(),s}(t,qt([Zt(i,{drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"}),Qt,Jt,Gt],e||[],!0))}catch(o){console.error(o)}};class ee extends HTMLElement{constructor(){super()}addPagination(t){if(t.slides.length===1)return;const e=this.querySelector("[data-pagination]");
1e&&(t.slides.forEach((o,n)=>{const s=document.createElement("div");s.classList.add("block-phone-section__slider-dot"),s.addEventListener("click",()=>t.track.to(n,!0)),e.appendChild(s)}),t.on("slideChanged",()=>{const o=t.track.details.rel;[...e.children].forEach((n,s)=>n.classList.toggle("is-active",s===o))}),t.on("created",()=>{[...e.children].forEach((o,n)=>o.classList.toggle("is-active",n===0))}))}connectedCallback(){this.querySelectorAll("[data-item]").forEach(e=>{new IntersectionObserver((n,s)=>{n[0].isIntersecting&&(this.dataset.phone=n[0].target.dataset.item)}).observe(e)},{threshold:1}),new te(this.querySelector(".keen-slider"),{loop:!0,defaultAnimation:{duration:1e3}},[this.addPagination.bind(this)])}disconnectedCallback(){}}customElements.define("wl-phone-section",ee);class ie extends HTMLElement{constructor(){super()}connectedCallback(){let t=0,e=0,o=this.parentElement;const n=(r,l,a,c)=>(1-a/c)*r+a*l,s=r=>{const l=n(t,e,.05,1);o.style.setProperty("--scroll",l),t=l,requestAnimationFrame(s)};requestAnimationFrame(s),new IntersectionObserver((r,l)=>{const a=r[0];e=a.boundingClientRect.y>0?a.intersectionRatio/2:1-a.intersectionRatio/2},{root:null,rootMargin:"0px",threshold:Array.from({length:100},(r,l)=>l/100+.01)}).observe(this)}disconnectedCallback(){}}customElements.define("wl-parallax",ie);const dt=new WeakMap;function pt(i,t,e,o){if(!i&&!dt.has(t))return!1;const n=dt.get(t)??new WeakMap;dt.set(t,n);const s=n.get(e)??new Set;n.set(e,s);const r=s.has(o);return i?s.add(o):s.delete(o),r&&i}function oe(i,t){let e=i.target;if(e instanceof Text&&(e=e.parentElement),e instanceof Element&&i.currentTarget instanceof Element){const o=e.closest(t);if(o&&i.currentTarget.contains(o))return o}}function ne(i,t,e,o={}){const{signal:n,base:s=document}=o;if(n!=null&&n.aborted)return;const{once:r,...l}=o,a=s instanceof Document?s.documentElement:s,c=!!(typeof o=="object"?o.capture:o),u=v=>{const h=oe(v,i);if(h){const p=Object.assign(v,{delegateTarget:h});e.call(a,p),r&&(a.removeEventListener(t,u,l),pt(!1,a,e,g))}},g=JSON.stringify({selector:i,type:t,capture:c});pt(!0,a,e,g)||a.addEventListener(t,u,l),n==null||n.addEventListener("abort",()=>{pt(!1,a,e,g)})}function U(){return U=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},U.apply(this,arguments)}const It=(i,t)=>String(i).toLowerCase().replace(/[\s/_.]+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+|-+$/g,"")||t||"",z=({hash:i}={})=>location.pathname+location.search+(i?location.hash:""),se=(i,t={})=>{const e=U({url:i=i||z({hash:!0}),random:Math.random(),source:"swup"},t);history.pushState(e,"",i)},tt=(i=null,t={})=>{i=i||z({hash:!0});const e=U({},history.state||{},{url:i,random:Math.random(),source:"swup"},t);history.replaceState(e,"",i)},re=(i,t,e,o)=>{const n=new AbortController;return o=U({},o,{signal:n.signal}),ne(i,t,e,o),{destroy:()=>n.abort()}};let F=class mt extends URL{constructor(t,e=document.baseURI){super(t.toString(),e)}get url(){return this.pathname+this.search}static fromElement(t){const e=t.getAttribute("href")||t.getAttribute("xlink:href")||"";return new mt(e)}static fromUrl(t){return new mt(t)}};class rt extends Error{constructor(t,e){super(t),this.url=void 0,this.status=void 0,this.aborted=void 0,this.timedOut=void 0,this.name="FetchError",this.url=e.url,this.status=e.status,this.aborted=e.aborted||!1,this.timedOut=e.timedOut||!1}}async function ae(i,t={}){var e;i=F.fromUrl(i).url;const o=U({},this.options.requestHeaders,t.headers),n=(e=t.timeout)!=null?e:this.options.timeout,s=new AbortController,{signal:r}=s;t=U({},t,{headers:o,signal:r});let l,a=!1,c=null;n&&n>0&&(c=setTimeout(()=>{a=!0,s.abort("timeout")},n));try{l=await this.hooks.call("fetch:request",{url:i,options:t},(p,{url:P,options:f})=>fetch(P,f)),c&&clearTimeout(c)}catch(p){throw a?(this.hooks.call("fetch:timeout",{url:i}),new rt(`Request timed out: ${i}`,{url:i,timedOut:a})):(p==null?void 0:p.name)==="AbortError"||r.aborted?new rt(`Request aborted: ${i}`,{url:i,aborted:!0}):p}const{status:u,url:g}=l,m=await l.text();if(u===500)throw this.hooks.call("fetch:error",{status:u,response:l,url:g}),new rt(`Server error: ${g}`,{status:u,url:g});if(!m)throw new rt(`Empty response: ${g}`,{status:u,url:g});const{url:v}=F.fromUrl(g),h={url:v,html:m};return!this.visit.cache.write||t.method&&t.method!=="GET"||i!==v||this.cache.set(h.url,h),h}class le{constructor(t){this.swup=void 0,this.pages=new Map,this.swup=t}get size(){return this.pages.size}get all(){const t=new Map;
1return this.pages.forEach((e,o)=>{t.set(o,U({},e))}),t}has(t){return this.pages.has(this.resolve(t))}get(t){const e=this.pages.get(this.resolve(t));return e&&U({},e)}set(t,e){e=U({},e,{url:t=this.resolve(t)}),this.pages.set(t,e),this.swup.hooks.callSync("cache:set",{page:e})}update(t,e){t=this.resolve(t);const o=U({},this.get(t),e,{url:t});this.pages.set(t,o)}delete(t){this.pages.delete(this.resolve(t))}clear(){this.pages.clear(),this.swup.hooks.callSync("cache:clear",void 0)}prune(t){this.pages.forEach((e,o)=>{t(o,e)&&this.delete(o)})}resolve(t){const{url:e}=F.fromUrl(t);return this.swup.resolveUrl(e)}}const gt=(i,t=document)=>t.querySelector(i),it=(i,t=document)=>Array.from(t.querySelectorAll(i)),Dt=()=>new Promise(i=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{i()})})});function Rt(i){return!!i&&(typeof i=="object"||typeof i=="function")&&typeof i.then=="function"}function ce(i,t=[]){return new Promise((e,o)=>{const n=i(...t);Rt(n)?n.then(e,o):e(n)})}const Lt=i=>window.CSS&&window.CSS.escape?CSS.escape(i):i,$t=i=>1e3*Number(i.slice(0,-1).replace(",","."));class he{constructor(t){this.swup=void 0,this.swupClasses=["to-","is-changing","is-rendering","is-popstate","is-animating"],this.swup=t}get selectors(){const{scope:t}=this.swup.visit.animation;return t==="containers"?this.swup.visit.containers:t==="html"?["html"]:Array.isArray(t)?t:[]}get selector(){return this.selectors.join(",")}get targets(){return this.selector.trim()?it(this.selector):[]}add(...t){this.targets.forEach(e=>e.classList.add(...t))}remove(...t){this.targets.forEach(e=>e.classList.remove(...t))}clear(){this.targets.forEach(t=>{const e=t.className.split(" ").filter(o=>this.isSwupClass(o));t.classList.remove(...e)})}isSwupClass(t){return this.swupClasses.some(e=>t.startsWith(e))}}function ue({to:i,from:t=this.currentPageUrl,hash:e,el:o,event:n}){return{id:Math.random(),from:{url:t},to:{url:i,hash:e},containers:this.options.containers,animation:{animate:!0,wait:!1,name:void 0,scope:this.options.animationScope,selector:this.options.animationSelector},trigger:{el:o,event:n},cache:{read:this.options.cache,write:this.options.cache},history:{action:"push",popstate:!1,direction:void 0},scroll:{reset:!0,target:void 0}}}class de{constructor(t){this.swup=void 0,this.registry=new Map,this.hooks=["animation:out:start","animation:out:await","animation:out:end","animation:in:start","animation:in:await","animation:in:end","animation:skip","cache:clear","cache:set","content:replace","content:scroll","enable","disable","fetch:request","fetch:error","fetch:timeout","history:popstate","link:click","link:self","link:anchor","link:newtab","page:load","page:view","scroll:top","scroll:anchor","visit:start","visit:transition","visit:end"],this.swup=t,this.init()}init(){this.hooks.forEach(t=>this.create(t))}create(t){this.registry.has(t)||this.registry.set(t,new Map)}exists(t){return this.registry.has(t)}get(t){const e=this.registry.get(t);if(e)return e;console.error(`Unknown hook '${t}'`)}clear(){this.registry.forEach(t=>t.clear())}on(t,e,o={}){const n=this.get(t);if(!n)return console.warn(`Hook '${t}' not found.`),()=>{};const s=U({},o,{id:n.size+1,hook:t,handler:e});return n.set(e,s),()=>this.off(t,e)}before(t,e,o={}){return this.on(t,e,U({},o,{before:!0}))}replace(t,e,o={}){return this.on(t,e,U({},o,{replace:!0}))}once(t,e,o={}){return this.on(t,e,U({},o,{once:!0}))}off(t,e){const o=this.get(t);o&&e?o.delete(e)||console.warn(`Handler for hook '${t}' not found.`):o&&o.clear()}async call(t,e,o){const{before:n,handler:s,after:r}=this.getHandlers(t,o);await this.run(n,e);const[l]=await this.run(s,e);return await this.run(r,e),this.dispatchDomEvent(t,e),l}callSync(t,e,o){const{before:n,handler:s,after:r}=this.getHandlers(t,o);this.runSync(n,e);const[l]=this.runSync(s,e);return this.runSync(r,e),this.dispatchDomEvent(t,e),l}async run(t,e){const o=[];for(const{hook:n,handler:s,defaultHandler:r,once:l}of t){const a=await ce(s,[this.swup.visit,e,r]);o.push(a),l&&this.off(n,s)}return o}runSync(t,e){const o=[];for(const{hook:n,handler:s,defaultHandler:r,once:l}of t){const a=s(this.swup.visit,e,r);o.push(a),Rt(a)&&console.warn(`Promise returned from handler for synchronous hook '${n}'.Swup will not wait for it to resolve.`),l&&this.off(n,s)}return o}getHandlers(t,e){const o=this.get(t);if(!o)return{found:!1,before:[],handler:[],after:[],replaced:!1};const n=Array.from(o.values()),s=this.sortRegistrations,r=n.filter(({before:g,replace:m})=>g&&!m).sort(s),l=n.filter(({replace:g})=>g).filter(g=>!0).sort(s),a=n.filter(({before:g,replace:m})=>!g&&!m).sort(s),c=l.length>0;let u=[];
1if(e&&(u=[{id:0,hook:t,handler:e}],c)){const g=l.length-1,m=v=>{const h=l[v-1];return h?(p,P)=>h.handler(p,P,m(v-1)):e};u=[{id:0,hook:t,handler:l[g].handler,defaultHandler:m(g)}]}return{found:!0,before:r,handler:u,after:a,replaced:c}}sortRegistrations(t,e){var o,n;return((o=t.priority)!=null?o:0)-((n=e.priority)!=null?n:0)||t.id-e.id||0}dispatchDomEvent(t,e){document.dispatchEvent(new CustomEvent(`swup:${t}`,{detail:{hook:t,args:e,visit:this.swup.visit}}))}}const pe=i=>{if(i&&i.charAt(0)==="#"&&(i=i.substring(1)),!i)return null;const t=decodeURIComponent(i);let e=document.getElementById(i)||document.getElementById(t)||gt(`a[name='${Lt(i)}']`)||gt(`a[name='${Lt(t)}']`);return e||i!=="top"||(e=document.body),e},Z="transition",at="animation";async function fe({elements:i,selector:t}){if(t===!1&&!i)return;let e=[];if(i)e=Array.from(i);else if(t&&(e=it(t,document.body),!e.length))return void console.warn(`[swup] No elements found matching animationSelector \`${t}\``);const o=e.map(n=>function(s){const{type:r,timeout:l,propCount:a}=function(c,u){const g=window.getComputedStyle(c),m=lt(g,`${Z}Delay`),v=lt(g,`${Z}Duration`),h=_t(m,v),p=lt(g,`${at}Delay`),P=lt(g,`${at}Duration`),f=_t(p,P);let S=null,w=0,M=0;return w=Math.max(h,f),S=w>0?h>f?Z:at:null,M=S?S===Z?v.length:P.length:0,{type:S,timeout:w,propCount:M}}(s);return!(!r||!l)&&new Promise(c=>{const u=`${r}end`,g=performance.now();let m=0;const v=()=>{s.removeEventListener(u,h),c()},h=p=>{if(p.target===s){if(!function(P){return[`${Z}end`,`${at}end`].includes(P.type)}(p))throw new Error("Not a transition or animation event.");(performance.now()-g)/1e3<p.elapsedTime||++m>=a&&v()}};setTimeout(()=>{m<a&&v()},l+1),s.addEventListener(u,h)})}(n));
1o.filter(Boolean).length>0?await Promise.all(o):t&&console.warn(`[swup] No CSS animation duration defined on elements matching \`${t}\``)}function lt(i,t){return(i[t]||"").split(", ")}function _t(i,t){for(;i.length<t.length;)i=i.concat(i);return Math.max(...t.map((e,o)=>$t(e)+$t(i[o])))}function me(i,t={},e={}){if(typeof i!="string")throw new Error("swup.navigate() requires a URL parameter");if(this.shouldIgnoreVisit(i,{el:e.el,event:e.event}))return void(window.location.href=i);const{url:o,hash:n}=F.fromUrl(i);this.visit=this.createVisit(U({},e,{to:o,hash:n})),this.performNavigation(t)}async function ge(i={}){this.navigating=!0;const t=this.visit,{el:e}=t.trigger;i.referrer=i.referrer||this.currentPageUrl,i.animate===!1&&(t.animation.animate=!1),t.animation.animate||this.classes.clear();const o=i.history||(e==null?void 0:e.getAttribute("data-swup-history"))||void 0;o&&["push","replace"].includes(o)&&(t.history.action=o);const n=i.animation||(e==null?void 0:e.getAttribute("data-swup-animation"))||void 0;var s,r;n&&(t.animation.name=n),typeof i.cache=="object"?(t.cache.read=(s=i.cache.read)!=null?s:t.cache.read,t.cache.write=(r=i.cache.write)!=null?r:t.cache.write):i.cache!==void 0&&(t.cache={read:!!i.cache,write:!!i.cache}),delete i.cache;try{await this.hooks.call("visit:start",void 0);const l=this.hooks.call("page:load",{options:i},async(a,c)=>{let u;return a.cache.read&&(u=this.cache.get(a.to.url)),c.page=u||await this.fetchPage(a.to.url,c.options),c.cache=!!u,c.page});if(!t.history.popstate){const a=t.to.url+t.to.hash;t.history.action==="replace"||t.to.url===this.currentPageUrl?tt(a):(this.currentHistoryIndex++,se(a,{index:this.currentHistoryIndex}))}if(this.currentPageUrl=z(),t.animation.wait){const{html:a}=await l;t.to.html=a}await this.hooks.call("visit:transition",void 0,async a=>{const c=this.animatePageOut(),[u]=await Promise.all([l,c]);return a.id===this.visit.id&&(await this.renderPage(u),await this.animatePageIn(),!0)}),await this.hooks.call("visit:end",void 0,()=>this.classes.clear()),this.navigating=!1}catch(l){if(!l||l!=null&&l.aborted)return;console.error(l),this.options.skipPopStateHandling=()=>(window.location.href=t.to.url+t.to.hash,!0),window.history.go(-1)}}const ve=async function(){this.visit.animation.animate?(await this.hooks.call("animation:out:start",void 0,i=>{this.classes.add("is-changing","is-leaving","is-animating"),i.history.popstate&&this.classes.add("is-popstate"),i.animation.name&&this.classes.add(`to-${It(i.animation.name)}`)}),await this.hooks.call("animation:out:await",{skip:!1},async(i,{skip:t})=>{t||await this.awaitAnimations({selector:i.animation.selector})}),await this.hooks.call("animation:out:end",void 0)):await this.hooks.call("animation:skip",void 0)},we=function({html:i},{containers:t}=this.options){var e;const o=new DOMParser().parseFromString(i,"text/html"),n=((e=o.querySelector("title"))==null?void 0:e.innerText)||"";document.title=n;const s=it('[data-swup-persist]:not([data-swup-persist=""])'),r=t.map(l=>{const a=document.querySelector(l),c=o.querySelector(l);return a&&c?(a.replaceWith(c),!0):(a||console.warn(`[swup] Container missing in current document: ${l}`),c||console.warn(`[swup] Container missing in incoming document: ${l}`),!1)}).filter(Boolean);return s.forEach(l=>{const a=l.getAttribute("data-swup-persist"),c=gt(`[data-swup-persist="${a}"]`);c&&c!==l&&c.replaceWith(l)}),r.length===t.length},ye=function(){const i={behavior:"auto"},{target:t,reset:e}=this.visit.scroll,o=t??this.visit.to.hash;let n=!1;return o&&(n=this.hooks.callSync("scroll:anchor",{hash:o,options:i},(s,{hash:r,options:l})=>{const a=this.getAnchorElement(r);return a&&a.scrollIntoView(l),!!a})),e&&!n&&(n=this.hooks.callSync("scroll:top",{options:i},(s,{options:r})=>(window.scrollTo(U({top:0,left:0},r)),!0))),n},be=async function(){if(!this.visit.animation.animate)return;const i=this.hooks.call("animation:in:await",{skip:!1},async(t,{skip:e})=>{e||await this.awaitAnimations({selector:t.animation.selector})});await Dt(),await this.hooks.call("animation:in:start",void 0,()=>{this.classes.remove("is-animating")}),await i,await this.hooks.call("animation:in:end",void 0)},ke=async function(i){const{url:t,html:e}=i;this.classes.remove("is-leaving"),this.isSameResolvedUrl(z(),t)||(tt(t),this.currentPageUrl=z(),this.visit.to.url=this.currentPageUrl),this.visit.animation.animate&&this.classes.add("is-rendering"),this.visit.to.html=e,await this.hooks.call("content:replace",{page:i},(o,{page:n})=>{if(!this.replaceContent(n,{containers:o.containers}))throw new Error("[swup] Container mismatch, aborting");o.animation.animate&&(this.classes.add("is-animating","is-changing","is-rendering"),o.animation.name&&this.classes.add(`to-${It(o.animation.name)}`))}),await this.hooks.call("content:scroll",void 0,()=>this.scrollToContent()),await this.hooks.call("page:view",{url:this.currentPageUrl,title:document.title})},Se=function(i){var t;
1if(t=i,!!(t!=null&&t.isSwupPlugin)){if(i.swup=this,!i._checkRequirements||i._checkRequirements())return i._beforeMount&&i._beforeMount(),i.mount(),this.plugins.push(i),this.plugins}else console.error("Not a swup plugin instance",i)};function Ee(i){const t=this.findPlugin(i);if(t)return t.unmount(),t._afterUnmount&&t._afterUnmount(),this.plugins=this.plugins.filter(e=>e!==t),this.plugins;console.error("No such plugin",t)}function Pe(i){return this.plugins.find(t=>t===i||t.name===i||t.name===`Swup${String(i)}`)}function Te(i){if(typeof this.options.resolveUrl!="function")return console.warn("[swup] options.resolveUrl expects a callback function."),i;const t=this.options.resolveUrl(i);return t&&typeof t=="string"?t.startsWith("//")||t.startsWith("http")?(console.warn("[swup] options.resolveUrl needs to return a relative url"),i):t:(console.warn("[swup] options.resolveUrl needs to return a url"),i)}function Ae(i,t){return this.resolveUrl(i)===this.resolveUrl(t)}const xe={animateHistoryBrowsing:!1,animationSelector:'[class*="transition-"]',animationScope:"html",cache:!0,containers:["#swup"],ignoreVisit:(i,{el:t}={})=>!(t==null||!t.closest("[data-no-swup]")),linkSelector:"a[href]",linkToSelf:"scroll",plugins:[],resolveUrl:i=>i,requestHeaders:{"X-Requested-With":"swup",Accept:"text/html, application/xhtml+xml"},skipPopStateHandling:i=>{var t;return((t=i.state)==null?void 0:t.source)!=="swup"},timeout:0};class Ce{constructor(t={}){var e,o;this.version="4.4.2",this.options=void 0,this.defaults=xe,this.plugins=[],this.visit=void 0,this.cache=void 0,this.hooks=void 0,this.classes=void 0,this.currentPageUrl=z(),this.currentHistoryIndex=void 0,this.clickDelegate=void 0,this.navigating=!1,this.use=Se,this.unuse=Ee,this.findPlugin=Pe,this.log=()=>{},this.navigate=me,this.performNavigation=ge,this.createVisit=ue,this.delegateEvent=re,this.fetchPage=ae,this.awaitAnimations=fe,this.renderPage=ke,this.replaceContent=we,this.animatePageIn=be,this.animatePageOut=ve,this.scrollToContent=ye,this.getAnchorElement=pe,this.getCurrentUrl=z,this.resolveUrl=Te,this.isSameResolvedUrl=Ae,this.options=U({},this.defaults,t),this.handleLinkClick=this.handleLinkClick.bind(this),this.handlePopState=this.handlePopState.bind(this),this.cache=new le(this),this.classes=new he(this),this.hooks=new de(this),this.visit=this.createVisit({to:""}),this.currentHistoryIndex=(e=(o=history.state)==null?void 0:o.index)!=null?e:1,this.checkRequirements()&&this.enable()}checkRequirements(){return typeof Promise<"u"||(console.warn("Promise is not supported"),!1)}async enable(){var t;const{linkSelector:e}=this.options;this.clickDelegate=this.delegateEvent(e,"click",this.handleLinkClick),window.addEventListener("popstate",this.handlePopState),this.options.animateHistoryBrowsing&&(window.history.scrollRestoration="manual"),this.options.plugins.forEach(o=>this.use(o)),((t=history.state)==null?void 0:t.source)!=="swup"&&tt(null,{index:this.currentHistoryIndex}),await Dt(),await this.hooks.call("enable",void 0,()=>{document.documentElement.classList.add("swup-enabled")})}async destroy(){this.clickDelegate.destroy(),window.removeEventListener("popstate",this.handlePopState),this.cache.clear(),this.options.plugins.forEach(t=>this.unuse(t)),await this.hooks.call("disable",void 0,()=>{document.documentElement.classList.remove("swup-enabled")}),this.hooks.clear()}shouldIgnoreVisit(t,{el:e,event:o}={}){const{origin:n,url:s,hash:r}=F.fromUrl(t);return n!==window.location.origin||!(!e||!this.triggerWillOpenNewWindow(e))||!!this.options.ignoreVisit(s+r,{el:e,event:o})}handleLinkClick(t){const e=t.delegateTarget,{href:o,url:n,hash:s}=F.fromElement(e);this.shouldIgnoreVisit(o,{el:e,event:t})||(this.navigating&&n===this.visit.to.url?t.preventDefault():(this.visit=this.createVisit({to:n,hash:s,el:e,event:t}),t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?this.hooks.call("link:newtab",{href:o}):t.button===0&&this.hooks.callSync("link:click",{el:e,event:t},()=>{var r;const l=(r=this.visit.from.url)!=null?r:"";t.preventDefault(),n&&n!==l?this.isSameResolvedUrl(n,l)||this.performNavigation():s?this.hooks.callSync("link:anchor",{hash:s},()=>{tt(n+s),this.scrollToContent()}):this.hooks.callSync("link:self",void 0,()=>this.options.linkToSelf==="navigate"?this.performNavigation():(tt(n),this.scrollToContent()))})))}handlePopState(t){var e,o,n,s;const r=(e=(o=t.state)==null?void 0:o.url)!=null?e:location.href;if(this.options.skipPopStateHandling(t)||this.isSameResolvedUrl(z(),this.currentPageUrl))return;const{url:l,hash:a}=F.fromUrl(r);this.visit=this.createVisit({to:l,hash:a,event:t}),this.visit.history.popstate=!0;const c=(n=(s=t.state)==null?void 0:s.index)!=null?n:0;c&&c!==this.currentHistoryIndex&&(this.visit.history.direction=c-this.currentHistoryIndex>0?"forwards":"backwards",this.currentHistoryIndex=c),this.visit.animation.animate=!1,this.visit.scroll.reset=!1,this.visit.scroll.target=!1,this.options.animateHistoryBrowsing&&(this.visit.animation.animate=!0,this.visit.scroll.reset=!0),this.hooks.callSync("history:popstate",{event:t},()=>{this.performNavigation()})}triggerWillOpenNewWindow(t){return!!t.matches('[download], [target="_blank"]')}}function et(){return et=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},et.apply(this,arguments)}const Ot=i=>String(i).split(".").map(t=>String(parseInt(t||"0",10))).concat(["0","0"]).slice(0,3).join(".");let Vt=class{constructor(){this.isSwupPlugin=!0,this.swup=void 0,this.version=void 0,this.requires={},this.handlersToUnregister=[]}mount(){}unmount(){this.handlersToUnregister.forEach(t=>t()),this.handlersToUnregister=[]}_beforeMount(){if(!this.name)throw new Error("You must define a name of plugin when creating a class.")}_afterUnmount(){}_checkRequirements(){return typeof this.requires!="object"||Object.entries(this.requires).forEac
1h(([t,e])=>{if(!function(o,n,s){const r=function(l,a){var c;if(l==="swup")return(c=a.version)!=null?c:"";{var u;const g=a.findPlugin(l);return(u=g==null?void 0:g.version)!=null?u:""}}(o,s);return!!r&&((l,a)=>a.every(c=>{const[,u,g]=c.match(/^([\D]+)?(.*)$/)||[];var m,v;return((h,p)=>{const P={"":f=>f===0,">":f=>f>0,">=":f=>f>=0,"<":f=>f<0,"<=":f=>f<=0};return(P[p]||P[""])(h)})((v=g,m=Ot(m=l),v=Ot(v),m.localeCompare(v,void 0,{numeric:!0})),u||">=")}))(r,n)}(t,e=Array.isArray(e)?e:[e],this.swup)){const o=`${t} ${e.join(", ")}`;throw new Error(`Plugin version mismatch: ${this.name} requires ${o}`)}}),!0}on(t,e,o={}){var n;e=!(n=e).name.startsWith("bound ")||n.hasOwnProperty("prototype")?e.bind(this):e;const s=this.swup.hooks.on(t,e,o);return this.handlersToUnregister.push(s),s}once(t,e,o={}){return this.on(t,e,et({},o,{once:!0}))}before(t,e,o={}){return this.on(t,e,et({},o,{before:!0}))}replace(t,e,o={}){return this.on(t,e,et({},o,{replace:!0}))}off(t,e){return this.swup.hooks.off(t,e)}};function ht(){return ht=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},ht.apply(this,arguments)}function Mt(){return window.matchMedia("(hover: hover)").matches}const Ht=window.requestIdleCallback||(i=>setTimeout(i,1)),Le=["preloadVisibleLinks"];class $e extends Vt{constructor(t={}){var e;super(),e=this,this.name="SwupPreloadPlugin",this.requires={swup:">=4"},this.defaults={throttle:5,preloadInitialPage:!0,preloadHoveredLinks:!0,preloadVisibleLinks:{enabled:!1,threshold:.2,delay:500,containers:["body"],ignore:()=>!1}},this.options=void 0,this.queue=void 0,this.preloadObserver=void 0,this.preloadPromises=new Map,this.mouseEnterDelegate=void 0,this.touchStartDelegate=void 0,this.focusDelegate=void 0,this.onPageLoad=(s,r,l)=>{const{url:a}=s.to;return a&&this.preloadPromises.has(a)?this.preloadPromises.get(a):l(s,r)},this.onMouseEnter=async function(s){if(s.target!==s.delegateTarget||!Mt())return;const r=s.delegateTarget;r instanceof HTMLAnchorElement&&(e.swup.hooks.callSync("link:hover",{el:r,event:s}),e.preload(r,{priority:!0}))},this.onTouchStart=s=>{if(Mt())return;const r=s.delegateTarget;r instanceof HTMLAnchorElement&&this.preload(r,{priority:!0})},this.onFocus=s=>{const r=s.delegateTarget;r instanceof HTMLAnchorElement&&this.preload(r,{priority:!0})};const{preloadVisibleLinks:o}=t,n=function(s,r){if(s==null)return{};var l,a,c={},u=Object.keys(s);for(a=0;a<u.length;a++)r.indexOf(l=u[a])>=0||(c[l]=s[l]);return c}(t,Le);this.options=ht({},this.defaults,n),typeof o=="object"?this.options.preloadVisibleLinks=ht({},this.options.preloadVisibleLinks,{enabled:!0},o):this.options.preloadVisibleLinks.enabled=!!o,this.preload=this.preload.bind(this),this.queue=function(s=1){const r=[],l=[];let a=0,c=0;function u(){c<s&&a>0&&((l.shift()||r.shift()||(()=>{}))(),a--,c++)}return{add:function(g,m=!1){if(g.__queued){if(!m)return;{const v=r.indexOf(g);if(v>=0){const h=r.splice(v,1);a-=h.length}}}g.__queued=!0,(m?l:r).push(g),a++,a<=1&&u()},next:function(){c--,u()}}}(this.options.throttle)}mount(){const t=this.swup;if(!t.options.cache)return void console.warn("SwupPreloadPlugin: swup cache needs to be enabled for preloading");t.hooks.create("page:preload"),t.hooks.create("link:hover"),t.preload=this.preload,t.preloadLinks=this.preloadLinks;const{linkSelector:e}=t.options,o={passive:!0,capture:!0};this.mouseEnterDelegate=t.delegateEvent(e,"mouseenter",this.onMouseEnter,o),this.touchStartDelegate=t.delegateEvent(e,"touchstart",this.onTouchStart,o),this.focusDelegate=t.delegateEvent(e,"focus",this.onFocus,o),this.replace("page:load",this.onPageLoad),this.options.preloadHoveredLinks&&(this.preloadLinks(),this.on("page:view",()=>this.preloadLinks())),this.options.preloadVisibleLinks.enabled&&(this.preloadVisibleLinks(),this.on("page:view",()=>this.preloadVisibleLinks())),this.options.preloadInitialPage&&this.preload(z())}unmount(){var t,e,o;this.swup.preload=void 0,this.swup.preloadLinks=void 0,this.preloadPromises.clear(),(t=this.mouseEnterDelegate)==null||t.destroy(),(e=this.touchStartDelegate)==null||e.destroy(),(o=this.focusDelegate)==null||o.destroy(),this.stopPreloadingVisibleLinks()}async preload(t,e={}){var o;let n,s;const r=(o=e.priority)!=null&&o;if(Array.isArray(t))return Promise.all(t.map(a=>this.preload(a)));if(t instanceof HTMLAnchorElement)s=t,{url:n}=F.fromElement(t);else{if(typeof t!="string")return;n=t}if(this.preloadPromises.has(n))return this.preloadPromises.get(n);if(!this.shouldPreload(n,{el:s}))return;const l=new Promise(a=>{this.queue.add(()=>{this.performPreload(n).catch(()=>{}).then(c=>a(c)).finally(()=>{this.queue.next(),this.preloadPromises.delete(n)})},r)});return this.preloadPromises.set(n,l),l}preloadLinks(){Ht(()=>{Array.from(document.querySelectorAll("a[data-swup-preload], [data-swup-preload-all] a")).forEac
1h(t=>this.preload(t))})}preloadVisibleLinks(){if(this.preloadObserver)return void this.preloadObserver.update();const{threshold:t,delay:e,containers:o}=this.options.preloadVisibleLinks;this.preloadObserver=function({threshold:n,delay:s,containers:r,callback:l,filter:a}){const c=new Map,u=new IntersectionObserver(h=>{h.forEach(p=>{p.isIntersecting?g(p.target):m(p.target)})},{threshold:n}),g=h=>{var p;const P=(p=c.get(h.href))!=null?p:new Set;c.set(h.href,P),P.add(h),setTimeout(()=>{const f=c.get(h.href);f!=null&&f.size&&(l(h),u.unobserve(h),f.delete(h))},s)},m=h=>{var p;return(p=c.get(h.href))==null?void 0:p.delete(h)},v=()=>{Ht(()=>{const h=r.map(p=>`${p} a[href]`).join(", ");Array.from(document.querySelectorAll(h)).filter(p=>a(p)).forEach(p=>u.observe(p))})};return{start:()=>v(),stop:()=>u.disconnect(),update:()=>(c.clear(),v())}}({threshold:t,delay:e,containers:o,callback:n=>this.preload(n),filter:n=>!this.options.preloadVisibleLinks.ignore(n)&&this.shouldPreload(n.href,{el:n})}),this.preloadObserver.start()}stopPreloadingVisibleLinks(){this.preloadObserver&&this.preloadObserver.stop()}shouldPreload(t,{el:e}={}){const{url:o,href:n}=F.fromUrl(t);return!(!function(){if(navigator.connection){var s;if(navigator.connection.saveData||(s=navigator.connection.effectiveType)!=null&&s.endsWith("2g"))return!1}return!0}()||this.swup.cache.has(o)||this.preloadPromises.has(o)||this.swup.shouldIgnoreVisit(n,{el:e})||e&&this.swup.resolveUrl(o)===this.swup.resolveUrl(z()))}async performPreload(t){const e=await this.swup.fetchPage(t);return await this.swup.hooks.call("page:preload",{page:e}),e}}function vt(){return vt=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},vt.apply(this,arguments)}class _e{constructor(t){this._raf=null,this._positionY=0,this._velocityY=0,this._targetPositionY=0,this._targetPositionYWithOffset=0,this._direction=0,this.scrollTo=e=>{if(e&&e.nodeType)this._targetPositionY=Math.round(e.getBoundingClientRect().top+window.pageYOffset);else{if(parseInt(this._targetPositionY)!==this._targetPositionY)return void console.error("Argument must be a number or an element.");this._targetPositionY=Math.round(e)}this._targetPositionY>document.documentElement.scrollHeight-window.innerHeight&&(this._targetPositionY=document.documentElement.scrollHeight-window.innerHeight),this._positionY=document.body.scrollTop||document.documentElement.scrollTop,this._direction=this._positionY>this._targetPositionY?-1:1,this._targetPositionYWithOffset=this._targetPositionY+this._direction,this._velocityY=0,this._positionY!==this._targetPositionY?(this.options.onStart(),this._animate()):this.options.onAlreadyAtPositions()},this._animate=()=>{this._update(),this._render(),this._direction===1&&this._targetPositionY>this._positionY||this._direction===-1&&this._targetPositionY<this._positionY?(this._raf=requestAnimationFrame(this._animate),this.options.onT
1ick()):(this._positionY=this._targetPositionY,this._render(),this._raf=null,this.options.onTick(),this.options.onEnd())},this._update=()=>{const e=this._targetPositionYWithOffset-this._positionY;return this._velocityY+=e*this.options.acceleration,this._velocityY*=this.options.friction,this._positionY+=this._velocityY,Math.abs(e)},this._render=()=>{window.scrollTo(0,this._positionY)},this.options=vt({},{onAlreadyAtPositions:()=>{},onCancel:()=>{},onEnd:()=>{},onStart:()=>{},onTick:()=>{},friction:.7,acceleration:.04},t),t&&t.friction&&(this.options.friction=1-t.friction),window.addEventListener("mousewheel",e=>{this._raf&&(this.options.onCancel(),cancelAnimationFrame(this._raf),this._raf=null)},{passive:!0})}}function wt(){return wt=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},wt.apply(this,arguments)}class Oe extends Vt{constructor(t={}){super(),this.name="SwupScrollPlugin",this.requires={swup:">=4.2.0"},this.scrl=void 0,this.defaults={doScrollingRightAway:!1,animateScroll:{betweenPages:!0,samePageWithHash:!0,samePage:!0},scrollFriction:.3,scrollAcceleration:.04,getAnchorElement:void 0,offset:0,scrollContainers:"[data-swup-scroll-container]",shouldResetScrollPosition:()=>!0,markScrollTarget:!1},this.options=void 0,this.cachedScrollPositions={},this.previousScrollRestoration=void 0,this.currentCacheKey=void 0,this.getAnchorElement=(e="")=>typeof this.options.getAnchorElement=="function"?this.options.getAnchorElement(e):this.swup.getAnchorElement(e),this.getOffset=e=>e?typeof this.options.offset=="function"?parseInt(String(this.options.offset(e)),10):parseInt(String(this.options.offset),10):0,this.onBeforeLinkToSelf=e=>{e.scroll.animate=this.shouldAnimate("samePage")},this.handleScrollToTop=e=>{var o,n;return(o=(n=this.swup).scrollTo)==null||o.call(n,0,e.scroll.animate),!0},this.onBeforeLinkToAnchor=e=>{e.scroll.animate=this.shouldAnimate("samePageWithHash")},this.handleScrollToAnchor=(e,{hash:o})=>this.maybeScrollToAnchor(o,e.scroll.animate),this.onBeforeVisitStart=e=>{e.scroll.scrolledToContent=!1,e.scroll.animate=this.shouldAnimate("betweenPages")},this.onVisitStart=e=>{var o;this.cacheScrollPositions(e.from.url),this.maybeResetScrollPositions(e);const n=(o=e.scroll.target)!=null?o:e.to.hash;e.scroll.animate&&this.options.doScrollingRightAway&&!n&&this.doScrollingBetweenPages(e)},this.handleScrollToContent=e=>{e.scroll.scrolledToContent||this.doScrollingBetweenPages(e),this.restoreScrollContainers(e.to.url)},this.doScrollingBetweenPages=e=>{var o,n;if(e.history.popstate&&!e.animation.animate)return;const s=(o=e.scroll.target)!=null?o:e.to.hash;if(s&&this.maybeScrollToAnchor(s,e.scroll.animate)||!e.scroll.reset)return;const r=this.getCachedScrollPositions(e.to.url),l=(r==null||(n=r.window)==null?void 0:n.top)||0;requestAnimationFrame(()=>{var a,c;return(a=(c=this.swup).scrollTo)==null?void 0:a.call(c,l,e.scroll.animate)}),e.scroll.scrolledToContent=!0},this.maybeResetScrollPositions=e=>{const{popstate:o}=e.history,{url:n}=e.to,{el:s}=e.trigger;o||s&&!this.options.shouldResetScrollPosition(s)||this.resetScrollPositions(n)},this.options=wt({},this.defaults,t)}mount(){const t=this.swup;t.hooks.create("scroll:start"),t.hooks.create("scroll:end"),this.scrl=new _e({onStart:()=>t.hooks.callSync("scroll:start",void 0),onEnd:()=>t.hooks.callSync("scroll:end",void 0),onCancel:()=>t.hooks.callSync("scroll:end",void 0),friction:this.options.scrollFriction,acceleration:this.options.scrollAcceleration}),t.scrollTo=(e,o=!0)=>{o?this.scrl.scrollTo(e):(t.hooks.callSync("scroll:start",void 0),window.scrollTo(0,e),t.hooks.callSync("scroll:end",void 0))},this.previousScrollRestoration=window.history.scrollRestoration,t.options.animateHistoryBrowsing&&(window.history.scrollRestoration="manual"),this.updateScrollTarget=this.updateScrollTarget.bind(this),this.options.markScrollTarget&&(window.addEventListener("popstate",this.updateScrollTarget),window.addEventListener("hashchange",this.updateScrollTarget),this.on("page:view",this.updateScrollTarget),this.on("link:anchor",this.updateScrollTarget),this.on("link:self",this.updateScrollTarget),this.updateScrollTarget()),this.before("visit:start",this.onBeforeVisitStart,{priority:-1}),this.on("visit:start",this.onVisitStart,{priority:1}),this.replace("content:scroll",this.handleScrollToContent),this.before("link:self",this.onBeforeLinkToSelf,{priority:-1}),this.replace("scroll:top",this.handleScrollToTop),this.before("link:anchor",this.onBeforeLinkToAnchor,{priority:-1}),this.replace("scroll:anchor",this.handleScrollToAnchor)}unmount(){super.unmount(),this.previousScrollRestoration&&(window.history.scrollRestoration=this.previousScrollRestoration),window.removeEventListener("popstate",this.updateScrollTarget),window.removeEventListener("hashchange",this.updateScrollTarget),this.cachedScrollPositions={},delete this.swup.scrollTo,delete this.scrl}shouldAnimate(t){return typeof this.options.animateScroll=="boolean"?this.options.animateScroll:this.options.animateScroll[t]}maybeScrollToAnchor(t,e=!1){var o,n;if(!t)return!1;const s=this.getAnchorElement(t);if(!s)return console.warn(`Anchor target ${t} not found`),!1;if(!(s instanceof Element))return console.warn(`Anchor target ${t} is not a DOM node`),!1;const{top:r}=s.getBoundingClientRect(),l=r+window.scrollY-this.getOffset(s);return(o=(n=this.swup).scrollTo)==null||o.call(n,l,e),!0}cacheScrollPositions(t){const e=this.swup.resolveUrl(t),o=it(this.options.scrollContainers
1).map(s=>({top:s.scrollTop,left:s.scrollLeft})),n={window:{top:window.scrollY,left:window.scrollX},containers:o};this.cachedScrollPositions[e]=n}resetScrollPositions(t){const e=this.swup.resolveUrl(t);delete this.cachedScrollPositions[e]}getCachedScrollPositions(t){const e=this.swup.resolveUrl(t);return this.cachedScrollPositions[e]}restoreScrollContainers(t){const e=this.getCachedScrollPositions(t);e&&e.containers.length!==0&&it(this.options.scrollContainers).forEach((o,n)=>{const s=e.containers[n];s!=null&&(o.scrollTop=s.top,o.scrollLeft=s.left)})}updateScrollTarget(){var t;const{hash:e}=window.location,o=document.querySelector("[data-swup-scroll-target]");let n=this.getAnchorElement(e);n instanceof HTMLBodyElement&&(n=null),o!==n&&(o==null||o.removeAttribute("data-swup-scroll-target"),(t=n)==null||t.setAttribute("data-swup-scroll-target",""))}}const Yt=new Ce({plugins:[new Oe,new $e({preloadVisibleLinks:!0})]});Yt.hooks.on("visit:start",i=>{document.querySelectorAll(`[href$="${i.from.url}"]`).forEach(t=>t.classList.remove("is-current")),document.querySelectorAll(`[href$="${i.to.url}"]`).forEach(t=>t.classList.add("is-current")),document.body.classList.remove("is-nav-active")});["page:view","enable"].forEach(i=>{Yt.hooks.on(i,t=>{})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.