1import{g as W}from"./viewPort.DY7x5Ljc.js";import{g as p,S as R}from"./ScrollTrigger.B-59Vj8q.js";function N(t,e){const o={anchor:{...t.anchor},offset:{...t.offset},rotation:t.rotation,scale:t.scale,hidden:t.hidden??!1};if(!t.breakpoints||e==="base")return o;const s=["md","lg","xl"];for(const r of s){const n=t.breakpoints[r];if(n&&(n.anchor&&(o.anchor={...n.anchor}),n.offset&&(o.offset={...n.offset}),n.rotation!==void 0&&(o.rotation=n.rotation),n.scale!==void 0&&(o.scale=n.scale),n.hidden!==void 0&&(o.hidden=n.hidden)),r===e)break}return o}function V(){const t=window.innerWidth;return t>=1479?"xl":t>=1200?"lg":t>=768?"md":"base"}const X={jobs:{zones:[{anchor:{x:.2,y:0},offset:{x:-40,y:-100},rotation:40,scale:1,layer:"behind",breakpoints:{lg:{offset:{x:-40,y:-80}}}},{anchor:{x:.8,y:0},offset:{x:0,y:-100},rotation:-10,scale:.8,layer:"behind",breakpoints:{lg:{offset:{x:60,y:-80},rotation:-20}}},{anchor:{x:.8,y:1},offset:{x:0,y:50},rotation:20,scale:1,layer:"behind",breakpoints:{lg:{offset:{x:0,y:120},rotation:-20}}},{anchor:{x:.3,y:1},offset:{x:-50,y:50},rotation:-20,scale:.8,layer:"behind",aspectRatio:"3/4",breakpoints:{lg:{offset:{x:0,y:50},rotation:20,scale:.8}}},{anchor:{x:1,y:1},offset:{x:100,y:300},rotation:-10,scale:1,layer:"front",hidden:!0,breakpoints:{lg:{hidden:!1}}},{anchor:{x:1,y:1},offset:{x:0,y:0},rotation:-10,scale:1,layer:"front",hidden:!0,breakpoints:{md:{hidden:!1}}}],icons:[{type:"plus",anchor:{x:.8,y:1},offset:{x:0,y:100},rotation:0,scale:1,breakpoints:{lg:{anchor:{x:.98,y:.1},offset:{x:0,y:0},scale:1.2}}},{type:"asterisk",anchor:{x:.05,y:-.15},offset:{x:0,y:0},rotation:0,scale:1,breakpoints:{md:{anchor:{x:.05,y:-.05}},lg:{anchor:{x:.02,y:-.05},scale:1.2}}}]},news:{zones:[{anchor:{x:1,y:0},offset:{x:-20,y:0},rotation:15,scale:1,layer:"behind",breakpoints:{lg:{anchor:{x:1,y:.5},offset:{x:100,y:0},rotation:15}}},{anchor:{x:1,y:0},offset:{x:-100,y:-100},rotation:-10,scale:.8,layer:"behind",breakpoints:{lg:{anchor:{x:1,y:.1},offset:{x:0,y:0},scale:.7}}},{anchor:{x:-.1,y:1.2},offset:{x:25,y:0},rotation:10,scale:.8,layer:"front",aspectRatio:"3/4",breakpoints:{md:{anchor:{x:0,y:1},scale:1},lg:{anchor:{x:.1,y:1},offset:{x:0,y:-50}}}}],icons:[{type:"plus",anchor:{x:1,y:0},offset:{x:0,y:-75},rotation:0,scale:1,breakpoints:{lg:{anchor:{x:1.25,y:.35},offset:{x:0,y:-40},scale:1.2}}},{type:"asterisk",anchor:{x:-.3,y:1},offset:{x:0,y:0},rotation:0,scale:1,breakpoints:{md:{anchor:{x:-.2,y:.85}},lg:{anchor:{x:-.2,y:.7},scale:1.2}}}]},services:{zones:[{anchor:{x:0,y:1},offset:{x:75,y:0},rotation:15,scale:.8,layer:"behind",aspectRatio:"3/4",breakpoints:{md:{offset:{x:100,y:0}},lg:{anchor:{x:.3,y:1},offset:{x:0,y:0},scale:.8}}},{anchor:{x:.8,y:0},offset:{x:0,y:0},rotation:-25,scale:1,layer:"behind",breakpoints:{md:{anchor:{x:.85,y:.1}},lg:{anchor:{x:.9,y:0},offset:{x:0,y:-75},scale:.8,rotation:-25}}},{anchor:{x:.5,y:0},offset:{x:0,y:25},rotation:-15,scale:.8,layer:"behind",aspectRatio:"3/4",hidden:!0,breakpoints:{md:{offset:{x:0,y:100},scale:.65,hidden:!1},lg:{offset:{x:100,y:0},rotation:25}}},{anchor:{x:0,y:0},offset:{x:75,y:-50},rotation:35,scale:.8,layer:"front",breakpoints:{md:{anchor:{x:.15,y:0},offset:{x:0,y:0},scale:1},lg:{anchor:{x:.11,y:.1},rotation:-25}}},{anchor:{x:1,y:1},offset:{x:-50,y:0},rotation:-12,scale:.8,layer:"front",breakpoints:{md:{anchor:{x:.9,y:1},offset:{x:-100,y:0},scale:1},lg:{anchor:{x:.85,y:1.15},offset:{x:-100,y:0},scale:1,rotation:25}}}]},culture:{zones:[],icons:[{type:"asterisk",anchor:{x:0,y:0},offset:{x:20,y:-25},rotation:0,scale:.8,breakpoints:{md:{scale:1},lg:{offset:{x:-15,y:-30},scale:1}}}]}};p.registerPlugin(R);const x="cubic-bezier(0.175, 0.885, 0.32, 1.275)",T=.08,m=.8,b=.4,$=.2,H=.28,I=100,q=32,Y=5,E=.02,Z=90,j=150,k=[],g=[];let A=!1;function F(t){const e=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let o;for(;o=e.nextNode();){const s=o.textContent??"",r=s.match(/\{([^}]+)\}/);if(r){const n=r[1],i=s.slice(0,r.index),c=s.slice(r.index+r[0].length),a=o.parentNode,f=[];i&&f.push(document.createTextNode(i)),f.push(document.createTextNode("{"));const l=document.createElement("span");l.setAttribute("data-c8-typewriter-word",""),l.setAttribute("data-c8-typewriter-value",n),f.pu
1sh(l),f.push(document.createTextNode("}")),c&&f.push(document.createTextNode(c));for(const u of f)a.insertBefore(u,o);return a.removeChild(o),l}}return null}function J(t){const e=Math.max(0,Math.min(1,t));return e*e*(3-2*e)}function P(){g.forEach(t=>{const e=t.scrollTrigger?t.scrollTrigger.progress:.5,o=J(e);t.smoothedMouseNormX+=(t.mouseNormX-t.smoothedMouseNormX)*E,t.smoothedMouseNormY+=(t.mouseNormY-t.smoothedMouseNormY)*E,t.layers.forEach(({el:s,layer:r})=>{const n=r/Y,i=(o-.5)*I*n,c=t.smoothedMouseNormX*q*n,a=t.smoothedMouseNormY*q*n;p.set(s,{x:c,y:i+a})})})}function K(t){if(w())return;const e=t.querySelectorAll("[data-c8-page-intro-layer]"),o=[];if(e.forEach(c=>{const a=c.getAttribute("data-c8-page-intro-layer"),f=a?parseInt(a,10):NaN;f>=1&&f<=Y&&o.push({el:c,layer:f})}),!o.length)return;const s=R.create({trigger:t,start:"top bottom",end:"bottom top"}),r={root:t,scrollTrigger:s,layers:o,mouseNormX:0,mouseNormY:0,smoothedMouseNormX:0,smoothedMouseNormY:0};g.push(r),A||(A=!0,p.ticker.add(P));const n=window.matchMedia("(min-width: 768px) and (pointer: fine)");let i=null;return n.matches&&(i=c=>{const a=t.getBoundingClientRect(),f=a.left+a.width/2,l=a.top+a.height/2,u=a.width/2||1,y=a.height/2||1;let d=(c.clientX-f)/u,h=(c.clientY-l)/y;d=Math.max(-1,Math.min(1,d)),h=Math.max(-1,Math.min(1,h)),r.mouseNormX=d,r.mouseNormY=h},t.addEventListener("mousemove",i)),()=>{s.kill(),i&&t.removeEventListener("mousemove",i);const c=g.indexOf(r);c!==-1&&g.splice(c,1),g.length===0&&A&&(p.ticker.remove(P),A=!1),o.forEach(({el:a})=>p.set(a,{clearProps:"x,y"}))}}function w(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function _(t,e){p.set(e,{clearProps:"x,y,rotation,scale,opacity"})}function C(t){const e=Array.from(t.querySelectorAll("[data-c8-page-intro-image]")).filter(i=>i.style.display!=="none");if(!e.length)return;const o=t.getBoundingClientRect(),s={left:o.left+o.width/2,top:o.top+o.height/2},r=p.timeline({delay:0});e.forEach((i,c)=>{const a=i.getBoundingClientRect(),f=s.left-(a.left+a.width/2),l=s.top-(a.top+a.height/2),u=c*T;r.fromTo(i,{opacity:0},{opacity:1,duration:H,ease:"power2.out"},u),r.fromTo(i,{x:f,y:l,rotation:Math.random()*180-90,scale:.85},{x:0,y:0,scale:1,duration:m,rotation:0,ease:x},u)});const n=$+(e.length-1)*T+m;return r.add(()=>{_(t,e)},n),r}function B(t,e,o,s){const r=Array.from(t.querySelectorAll("[data-c8-page-intro-decorative-icon]"));if(!r.length)return;const n=t.getBoundingClientRect(),i={left:n.left+n.width/2,top:n.top+n.height/2},c=s?b:m,a=[];if(r.forEach((l,u)=>{const y=l.querySelector("[data-c8-page-intro-decorative-icon-inner]");if(!y)return;a.push(y);const d=l.getBoundingClientRect(),h=i.left-(d.left+d.width/2),O=i.top-(d.top+d.height/2),z=h*.5,G=O*.5,U=Math.random()*180-90,S=o+u*T;s?(p.set(l,{opacity:0}),e.fromTo(l,{opacity:0},{opacity:1,duration:c,ease:"power2.out"},S)):(e.fromTo(l,{opacity:0},{opacity:1,duration:c,ease:"power2.out"},S),e.fromTo(y,{x:z,y:G,rotation:U},{x:0,y:0,rotation:0,duration:c,ease:x},S))}),!a.length)return;const f=o+(r.length-1)*T+c;e.add(()=>{p.set(a,{clearProps:"x,y,rotation"});const l=t.getAttribute("data-c8-page-intro");l&&v(t,l)},f)}function Q(t,e){const o=e?void 0:C(t),r=t.querySelector("[data-c8-page-intro-text]")?.querySelectorAll("p");if(!r||!r[1])return;const n=e?b:m,i=o??p.timeline({delay:0});return i.fromTo(r[0],e?{opacity:0,y:-50}:{y:-50},{opacity:1,y:0,duration:n,ease:e?"power2.out":x},0),i.fromTo(r[1],{opacity:0,y:50},{opacity:1,y:0,duration:n,ease:"power2.out"},e?.1:.4),B(t,i,0,e??!1),i}function tt(t,e){const o=e?void 0:C(t),s=t.querySelector("[data-c8-page-intro-text]"),r=t.querySelector("[data-c8-page-intro-marquee]"),n=r?.querySelector("[data-c8-page-intro-marquee-top]"),i=r?.querySelector("[data-c8-page-intro-marquee-bottom]");if(!r||!s||!n||!i)return;const c=e?b:m,a=o??p.timeline({delay:0});return a.fromTo(s,e?{opacity:0,y:-50}:{y:-50},{opacity:1,y:0,duration:c,ease:e?"power2.out":x},0),a.fromTo(n,{y:-50,opacity:0},{y:0,opacity:1,duration:c,ease:"power2.out"},0),a.fromTo(i,{y:50,opacity:0},{y:0,opacity:1,duration:c,ease:"power2.out"},0),a}function et(t){const o=t.querySelector("[data-c8-page-intro-text]")?.querySelectorAll("p");
1if(!o||!o[1]||!o[0])return;const s=o[1],r=F(s),n=p.timeline({delay:0});n.fromTo(o[0],{y:-50},{opacity:1,y:0,duration:m,ease:x},0),n.fromTo(s,{opacity:0,y:50},{opacity:1,y:0,duration:m,ease:"power2.out"},.2);let i=null;if(r){const l=r.getAttribute("data-c8-typewriter-value")??"";w()?n.add(()=>{r.textContent=l},.5):n.add(()=>{let u=0;const y=()=>{u<=l.length&&(r.textContent=l.slice(0,u),u+=1,u<=l.length&&(i=setTimeout(y,Z)))};y()},.5)}const c=()=>{i!=null&&(clearTimeout(i),i=null)},a=t.querySelector(".decorative-icon--asterisk[data-c8-page-intro-decorative-icon]"),f=a?.querySelector("[data-c8-page-intro-decorative-icon-inner]");if(a&&f){const l=w()?b:m;n.fromTo(a,{opacity:0},{opacity:1,duration:l,ease:"power2.out"},.2),w()||(n.fromTo(f,{rotation:18},{rotation:0,duration:l,ease:x},.2),n.add(()=>{p.set(f,{clearProps:"rotation"}),v(t,"culture")},.2+l))}return{timeline:n,typewriterCleanup:c}}function ot(t,e){const o=e?void 0:C(t),r=t.querySelector("[data-c8-page-intro-text]")?.querySelectorAll("p");if(!r||!r[1])return;const n=e?b:m,i=o??p.timeline({delay:0});return i.fromTo(r[0],e?{opacity:0,x:"-100%"}:{x:"-100%"},{opacity:1,x:e?0:"-20%",duration:n,ease:e?"power2.out":x},0),i.fromTo(r[1],e?{opacity:0,x:"100%"}:{x:"100%"},{opacity:1,x:e?0:"20%",duration:n,ease:e?"power2.out":x},0),B(t,i,0,e??!1),i}function nt(t,e){p.set(e,{opacity:0}),p.to(e,{opacity:1,duration:.3,ease:"power2.out",onComplete:()=>{_(t,e)}})}function L(t,e,o,s){if(e.hidden){t.style.display="none";return}t.style.display="block";const r=o.left+o.width*e.anchor.x,n=o.top+o.height*e.anchor.y,i=r+e.offset.x,c=n+e.offset.y;t.style.left=`${i-s.left-t.offsetWidth/2}px`,t.style.top=`${c-s.top-t.offsetHeight/2}px`;const a=t.querySelector(".image-inner, .decorative-icon-inner");a&&(a.style.transform=`rotate(${e.rotation}deg) scale(${e.scale})`)}function v(t,e){const o=X[e];if(!o)return;const s=V(),r=t.querySelector(".content");if(!r)return;const n=e==="services"?r:t.querySelector("[data-c8-page-intro-text]");if(!n)return;const i=Number(p.getProperty(n,"x"))||0,c=Number(p.getProperty(n,"y"))||0,a=r.getBoundingClientRect(),f=n.getBoundingClientRect(),l={left:f.left-i,top:f.top-c,width:f.width,height:f.height};o.zones.forEach((u,y)=>{const d=t.querySelector(`[data-c8-zone-index="${y}"]`);if(!d)return;const h=N(u,s);L(d,h,l,a)}),(o.icons??[]).forEach((u,y)=>{const d=t.querySelector(`[data-c8-icon-index="${y}"]`);if(!d)return;const h=N(u,s);L(d,h,l,a)})}function M(t){const e=t.querySelector("[data-scroll-down]"),o=t.getAttribute("data-c8-page-intro"),s=t.querySelectorAll("[data-c8-page-intro-images-container]"),r=Array.from(t.querySelectorAll("[data-c8-page-intro-image]"));let n,i=!1,c;o&&v(t,o),s&&[...s].forEach(y=>{p.set(y,{opacity:1})});const a=w();switch(a&&r.length>0&&nt(t,r),o){case"jobs":n=Q(t,a);break;case"services":n=tt(t,a);break;case"culture":{const y=et(t);y&&(n=y.timeline,c=y.typewriterCleanup);break}case"news":n=ot(t,a);break}i=!!n;let f;if(e){const y=()=>{const d=W(t);if(d){d.scrollIntoView({behavior:"smooth"});return}window.scrollBy({top:window.innerHeight,behavior:"smooth"})};e.addEventListener("click",y),f=()=>e.removeEventListener("click",y)}const l=K(t);R.refresh();let u;if(o&&X[o]){let y=null;const d=()=>{y&&clearTimeout(y),y=setTimeout(()=>{v(t,o)},j)};window.addEventListener("resize",d),u=()=>{window.removeEventListener("resize",d),y&&clearTimeout(y)}}(i||f||l||u)&&k.push({root:t,timeline:n,scrollCleanup:f,parallaxCleanup:l,typewriterCleanup:c,resizeCleanup:u})}function D(){k.forEach(t=>{t.typewriterCleanup?.(),t.timeline?.kill(),t.scrollCleanup?.(),t.parallaxCleanup?.(),t.resizeCleanup?.()}),k.length=0}document.addEventListener("astro:before-swap",()=>{D()});document.addEventListener("astro:page-load",()=>{const t=document.querySelectorAll("[data-c8-page-intro]");Promise.all(Array.from(t).map(e=>M(e))).catch(()=>{})});window.addEventListener("pageshow",t=>{if(!t.persisted)return;D();const e=document.querySelectorAll("[data-c8-page-intro]");Promise.all(Array.from(e).map(o=>M(o))).catch(()=>{})});
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.