diff --git a/frontend/dist/assets/index-Bf_hNuMB.js b/frontend/dist/assets/index-Bf_hNuMB.js index 7e9c7d9..c5cf89d 100644 --- a/frontend/dist/assets/index-Bf_hNuMB.js +++ b/frontend/dist/assets/index-Bf_hNuMB.js @@ -11,4 +11,4 @@ Error generating stack: `+e.message+` `,F:` -`}),m=d(`Check`,{O:``,F:``}),h=d(`ChevronDown`,{F:``,O:``}),g=d(`Code`,{O:``,F:``}),_=d(`Copy`,{O:``,F:``}),v=d(`Cpu`,{O:``,F:``}),y=d(`FolderCheck`,{O:``,F:``}),b=d(`Key`,{O:``,F:``}),x=d(`Lock`,{O:``,F:``}),S=d(`Menu`,{O:``,F:``}),C=d(`Pause`,{O:``,F:``}),w=d(`Play`,{O:``,F:``}),T=d(`Refresh`,{O:``,F:``}),E=d(`Server`,{O:``,F:``}),D=d(`ShieldCheck`,{O:``,F:``}),O=d(`X`,{O:``,F:``}),k=c();function A(...e){return e.filter(Boolean).join(` `)}var j=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),M=e(((e,t)=>{t.exports=j()})),N=M();function P({children:e,href:t,variant:n=`primary`,size:r=`md`,external:i,className:a,onClick:o,ariaLabel:s}){let c=A(`btn`,`btn--${n}`,r===`lg`&&`btn--lg`,a);return t?(0,N.jsx)(`a`,{className:c,href:t,"aria-label":s,...i?{target:`_blank`,rel:`noopener noreferrer`}:{},onClick:o,children:e}):(0,N.jsx)(`button`,{className:c,onClick:o,"aria-label":s,type:`button`,children:e})}var ee={width:24,height:24,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0};function F({children:e,label:t}){return(0,N.jsx)(`span`,{style:ee,role:t?`img`:void 0,"aria-label":t,"aria-hidden":!t||void 0,children:e})}var I={width:18,height:18,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":!0};function te(){return(0,N.jsx)(`svg`,{...I,children:(0,N.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})})}function ne(){return(0,N.jsx)(`svg`,{...I,children:(0,N.jsx)(`path`,{d:`M16.36 12.76c.03 2.89 2.53 3.85 2.56 3.86-.02.07-.4 1.37-1.32 2.71-.79 1.16-1.62 2.31-2.92 2.34-1.28.03-1.69-.76-3.15-.76-1.46 0-1.92.74-3.13.72-1.26-.02-2.22-1.26-3.02-2.41C3.74 17.02 2.5 13.06 4.18 10.2c.83-1.42 2.32-2.32 3.93-2.34 1.23-.02 2.39.83 3.14.83.75 0 2.16-1.03 3.65-.88.62.03 2.36.25 3.48 1.9-.09.06-2.08 1.22-2.02 3.05M14.16 5.9c.65-.79 1.09-1.89.97-2.99-.94.04-2.08.63-2.75 1.42-.6.7-1.13 1.82-.99 2.9 1.05.08 2.12-.54 2.77-1.33`})})}function re(){return(0,N.jsx)(`svg`,{...I,children:(0,N.jsx)(`path`,{d:`M3 5.5 10.5 4.4v7.1H3V5.5Zm0 13 7.5 1.1v-7.1H3V18.5Zm8.5 1.2L21 21v-8.5h-9.5v7.2Zm0-14.4v7.2H21V3l-9.5 2.3Z`})})}function ie(){return(0,N.jsx)(`svg`,{...I,children:(0,N.jsx)(`path`,{d:`M12.27 1.5c-.62 0-1.17.17-1.62.6-.9.86-1.09 2.2-1.19 3.4-.1 1.23-.3 2.56-.95 3.53-.33.49-.76.87-1.21 1.23-.54.44-1.1.89-1.5 1.49-.38.58-.6 1.25-.75 1.95-.13.63-.25 1.3-.55 1.86-.2.38-.47.7-.75 1-.28.3-.57.57-.8.9-.22.32-.4.7-.43 1.1-.04.44.16.88.47 1.2.3.3.7.49 1.1.63.78.28 1.63.42 2.46.5.55.06 1.11.1 1.66.2.44.08.87.2 1.28.39.42.2.81.47 1.24.62.72.25 1.5.15 2.2-.14.66-.27 1.25-.68 1.92-.87.5-.14 1.02-.16 1.53-.23.6-.09 1.2-.24 1.74-.55.45-.26.84-.62 1.06-1.1.18-.4.2-.85.08-1.26-.13-.45-.4-.84-.7-1.19-.33-.39-.68-.75-.95-1.18-.27-.44-.47-.93-.57-1.44-.08-.42-.1-.85-.15-1.27-.08-.72-.22-1.44-.5-2.1-.26-.63-.64-1.2-1.06-1.72-.4-.5-.85-.95-1.22-1.47-.35-.5-.62-1.06-.72-1.66-.08-.5-.06-1.01-.08-1.51-.03-.88-.1-1.78-.44-2.58-.32-.77-.87-1.44-1.6-1.83-.35-.19-.73-.28-1.11-.28h-.03Z`})})}function ae({size:e=24}){return(0,N.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 64 64`,"aria-hidden":`true`,children:[(0,N.jsx)(`rect`,{width:`64`,height:`64`,rx:`12`,fill:`#d7d7d0`}),(0,N.jsxs)(`g`,{fill:`#1a1614`,children:[(0,N.jsx)(`circle`,{cx:`18`,cy:`16`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`27`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`38`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`49`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`29`,cy:`32.5`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`38`,cy:`23`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`47`,cy:`14`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`38`,cy:`42`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`47`,cy:`51`,r:`3.2`})]}),(0,N.jsx)(`circle`,{cx:`53`,cy:`32.5`,r:`3.2`,fill:`#DE4E1A`})]})}var L=`https://github.com/ELY-Open-Source/Kigi-CLI`,oe=`https://github.com/ELY-Open-Source/Kigi-CLI/releases`,se=[{label:`Terminal UI`,href:`#surfaces`},{label:`Headless mode`,href:`#surfaces`},{label:`Editor integration`,href:`#surfaces`},{label:`Graph Engineering`,href:`#graph`},{label:`Agent Swarm`,href:`#swarm`}];function ce({label:e,items:t}){return(0,N.jsxs)(`div`,{className:`nav__dropdown`,"data-dropdown":!0,children:[(0,N.jsxs)(`button`,{type:`button`,className:`nav__link nav__link--btn`,"aria-haspopup":`true`,children:[e,(0,N.jsx)(F,{children:(0,N.jsx)(h,{size:18,strokeWidth:1.5})})]}),(0,N.jsx)(`div`,{className:`nav__menu`,children:t.map(e=>(0,N.jsx)(`a`,{className:`nav__menu-item t-small`,href:e.href,children:e.label},e.label))})]})}function le(){let[e,t]=(0,l.useState)(!1),[n,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(!1),o=(0,l.useRef)(0);return(0,l.useEffect)(()=>{let e=0,n=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{let e=window.scrollY;t(e>8),r(e>480&&e>o.current+4),(e{cancelAnimationFrame(e),window.removeEventListener(`scroll`,n)}},[]),(0,N.jsxs)(`header`,{className:A(`nav`,e&&`nav--scrolled`,n&&`nav--hidden`),children:[(0,N.jsxs)(`div`,{className:`nav__inner shell`,children:[(0,N.jsxs)(`a`,{className:`nav__logo`,href:`#main`,"aria-label":`Kigi home`,children:[(0,N.jsx)(ae,{size:28}),(0,N.jsx)(`span`,{className:`t-mono`,children:`kigi`})]}),(0,N.jsxs)(`nav`,{className:`nav__links`,"aria-label":`Primary`,children:[(0,N.jsx)(ce,{label:`Product`,items:se}),(0,N.jsx)(`a`,{className:`nav__link`,href:oe,target:`_blank`,rel:`noopener noreferrer`,children:`Releases`}),(0,N.jsx)(`a`,{className:`nav__link`,href:`#faq`,children:`FAQ`}),(0,N.jsx)(`a`,{className:`nav__link nav__link--icon`,href:L,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`GitHub`,children:(0,N.jsx)(F,{label:`GitHub`,children:(0,N.jsx)(te,{})})})]}),(0,N.jsx)(`div`,{className:`nav__cta`,children:(0,N.jsx)(P,{href:`#install`,size:`md`,children:`Install Kigi`})}),(0,N.jsx)(`button`,{type:`button`,className:`nav__burger`,"aria-label":i?`Close menu`:`Open menu`,"aria-expanded":i,onClick:()=>a(e=>!e),children:(0,N.jsx)(F,{children:i?(0,N.jsx)(O,{size:18,strokeWidth:1.5}):(0,N.jsx)(S,{size:18,strokeWidth:1.5})})})]}),(0,N.jsxs)(`div`,{className:A(`nav__mobile`,i&&`nav__mobile--open`),children:[se.map(e=>(0,N.jsx)(`a`,{className:`nav__mobile-link`,href:e.href,onClick:()=>a(!1),children:e.label},e.label)),(0,N.jsx)(`a`,{className:`nav__mobile-link`,href:oe,target:`_blank`,rel:`noopener noreferrer`,children:`Releases`}),(0,N.jsx)(`a`,{className:`nav__mobile-link`,href:`#faq`,onClick:()=>a(!1),children:`FAQ`}),(0,N.jsx)(`a`,{className:`nav__mobile-link`,href:L,target:`_blank`,rel:`noopener noreferrer`,children:`GitHub`}),(0,N.jsx)(P,{href:`#install`,className:`nav__mobile-cta`,onClick:()=>a(!1),children:`Install Kigi`})]})]})}function ue({command:e,label:t,dark:n,className:r}){let[i,a]=(0,l.useState)(!1),o=(0,l.useRef)(void 0);return(0,l.useEffect)(()=>()=>window.clearTimeout(o.current),[]),(0,N.jsxs)(`button`,{type:`button`,className:A(`copycmd`,n&&`copycmd--dark`,r),onClick:async()=>{await navigator.clipboard.writeText(e),a(!0),window.clearTimeout(o.current),o.current=window.setTimeout(()=>a(!1),1600)},"aria-label":t??`Copy: ${e}`,"data-copied":i||void 0,children:[(0,N.jsxs)(`code`,{className:`copycmd__code t-mono`,children:[(0,N.jsx)(`span`,{className:`copycmd__prompt`,"aria-hidden":!0,children:`$`}),` `,e]}),(0,N.jsx)(`span`,{className:`copycmd__action`,"aria-hidden":!0,children:(0,N.jsx)(F,{children:i?(0,N.jsx)(m,{size:18,strokeWidth:1.5,color:`var(--olive)`}):(0,N.jsx)(_,{size:18,strokeWidth:1.5})})}),(0,N.jsx)(`span`,{className:`copycmd__toast t-small`,"aria-hidden":!0,children:`Copied`})]})}function de(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function R(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var fe={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},pe={duration:.5,overwrite:!1,delay:0},me,he,z,ge=1e8,_e=1/ge,ve=Math.PI*2,ye=ve/4,B=0,be=Math.sqrt,xe=Math.cos,Se=Math.sin,V=function(e){return typeof e==`string`},H=function(e){return typeof e==`function`},Ce=function(e){return typeof e==`number`},we=function(e){return e===void 0},Te=function(e){return typeof e==`object`},Ee=function(e){return e!==!1},De=function(){return typeof window<`u`},Oe=function(e){return H(e)||V(e)},ke=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},U=Array.isArray,Ae=/random\([^)]+\)/g,je=/,\s*/g,Me=/(?:-?\.?\d|\.)+/gi,Ne=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Pe=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Fe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ie=/[+-]=-?[.\d]+/,Le=/[^,'"\[\]\s]+/gi,Re=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ze,Be,Ve,He,Ue={},We={},Ge,Ke=function(e){return(We=Ct(e,Ue))&&Hr},qe=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},Je=function(e,t){return!t&&console.warn(e)},Ye=function(e,t){return e&&(Ue[e]=t)&&We&&(We[e]=t)||Ue},Xe=function(){return 0},Ze={suppressEvents:!0,isStart:!0,kill:!1},Qe={suppressEvents:!0,kill:!1},$e={suppressEvents:!0},et={},tt=[],nt={},rt,it={},at={},ot=30,st=[],ct=``,lt=function(e){var t=e[0],n,r;if(Te(t)||H(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=st.length;r--&&!st[r].targetTest(t););n=st[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Qn(e[r],n)))||e.splice(r,1);return e},ut=function(e){return e._gsap||lt(sn(e))[0]._gsap},dt=function(e,t,n){return(n=e[t])&&H(n)?e[t]():we(n)&&e.getAttribute&&e.getAttribute(t)||n},ft=function(e,t){return(e=e.split(`,`)).forEach(t)||e},pt=function(e){return Math.round(e*1e5)/1e5||0},W=function(e){return Math.round(e*1e7)/1e7||0},mt=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},ht=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},kt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},At=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},jt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Mt=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Nt=function(e,t,n,r){return e._startAt&&(he?e._startAt.revert(Qe):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Pt=function e(t){return!t||t._ts&&e(t.parent)},Ft=function(e){return e._repeat?It(e._tTime,e=e.duration()+e._rDelay)*e:0},It=function(e,t){var n=Math.floor(e=W(e/t));return e&&n===e?n-1:n},Lt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Rt=function(e){return e._end=W(e._start+(e._tDur/Math.abs(e._ts||e._rts||_e)||0))},zt=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=W(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Rt(e),n._dirty||jt(n,e)),e},Bt=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start_e)&&t.render(n,!0)),jt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-_e}},Vt=function(e,t,n,r){return t.parent&&At(t),t._start=W((Ce(n)?n:n||e!==ze?Zt(e,n,t):e._time)+t._delay),t._end=W(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ot(e,t,`_first`,`_last`,e._sort?`_start`:0),Gt(t)||(e._recent=t),r||Bt(e,t),e._ts<0&&zt(e,e._tTime),e},Ht=function(e,t){return(Ue.ScrollTrigger||qe(`scrollTrigger`,t))&&Ue.ScrollTrigger.create(t,e)},Ut=function(e,t,n,r,i){if(sr(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!he&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&rt!==zn.frame)return tt.push(e),e._lazy=[i,r],1},Wt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Gt=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},Kt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&Wt(e)&&!(!e._initted&&Gt(e))||(e._ts<0||e._dp._ts<0)&&!Gt(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=en(0,e._tDur,t),l=It(s,o),e._yoyo&&l&1&&(a=1-a),l!==It(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||he||r||e._zTime===_e||!t&&e._zTime){if(!e._initted&&Ut(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?_e:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Nt(e,t,n,!0),e._onUpdate&&!n&&wn(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&wn(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&At(e,1),!n&&!he&&(wn(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},qt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&zt(e,e._tTime=e._tDur*o),e.parent&&Rt(e),n||jt(e.parent,e),e},Yt=function(e){return e instanceof er?jt(e):Jt(e,e._dur)},Xt={_start:0,endTime:Xe,totalDuration:Xe},Zt=function e(t,n,r){var i=t.labels,a=t._recent||Xt,o=t.duration()>=ge?a.endTime(!1):t._dur,s,c,l;return V(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(U(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Qt=function(e,t,n){var r=Ce(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=Ee(s.vars.inherit)&&s.parent;a.immediateRender=Ee(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new mr(t[0],a,t[i+1])},$t=function(e,t){return e||e===0?t(e):t},en=function(e,t,n){return nt?t:n},tn=function(e,t){return!V(e)||!(t=Re.exec(e))?``:t[1]},nn=function(e,t,n){return $t(n,function(n){return en(e,t,n)})},rn=[].slice,an=function(e,t){return e&&Te(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&Te(e[0]))&&!e.nodeType&&e!==Be},on=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return V(e)&&!t||an(e,1)?(r=n).push.apply(r,sn(e)):n.push(e)})||n},sn=function(e,t,n){return z&&!t&&z.selector?z.selector(e):V(e)&&!n&&(Ve||!Bn())?rn.call((t||He).querySelectorAll(e),0):U(e)?on(e,n):an(e)?rn.call(e,0):e?[e]:[]},cn=function(e){return e=sn(e)[0]||Je(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return sn(t,n.querySelectorAll?n:n===e?Je(`Invalid scope`)||He.createElement(`div`):e)}},ln=function(e){return e.sort(function(){return .5-Math.random()})},un=function(e){if(H(e))return e;var t=Te(e)?e:{each:e},n=qn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return V(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,ge])[1],!S){for(b=-ge;b<(b=d[S++].getBoundingClientRect().left)&&Sb&&(b=v),vf?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=tn(t.amount||t.each)||0,n=n&&f<0?Kn(n):n}return f=(p[e]-p.min)/p.max||0,W(p.b+(n?n(f):f)*p.v)+p.u}},dn=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=W(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Ce(n)?0:tn(n))}},fn=function(e,t){var n=U(e),r,i;return!n&&Te(e)&&(r=n=e.radius||ge,e.values?(e=sn(e.values),(i=!Ce(e[0]))&&(r*=r)):e=dn(e.increment)),$t(t,n?H(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=ge,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},bn=function(e){return e.replace(Ae,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(je);return pn(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},xn=function(e,t,n,r,i){var a=t-e,o=r-n;return $t(i,function(t){return n+((t-e)/a*o||0)})},Sn=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=V(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(U(t)&&!U(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},wn=function(e,t,n){var r=e.vars,i=r[t],a=z,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&tt.length&>(),o&&(z=o),l=s?i.apply(c,s):i.call(c),z=a,l},Tn=function(e){return At(e),e.scrollTrigger&&e.scrollTrigger.kill(!!he),e.progress()<1&&wn(e,`onInterrupt`),e},En,Dn=[],On=function(e){if(e)if(e=!e.name&&e.default||e,De()||e.headless){var t=e.name,n=H(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Xe,render:Cr,add:nr,kill:Tr,modifier:wr,rawVars:0},a={targetTest:0,get:0,getSetter:yr,aliases:{},register:0};if(Bn(),e!==r){if(it[t])return;xt(r,xt(Tt(e,i),a)),Ct(r.prototype,Ct(i,Tt(e,a))),it[r.prop=t]=r,e.targetTest&&(st.push(r),et[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Ye(t,r),e.register&&e.register(Hr,r,Or)}else Dn.push(e)},kn=255,An={aqua:[0,kn,kn],lime:[0,kn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,kn],navy:[0,0,128],white:[kn,kn,kn],olive:[128,128,0],yellow:[kn,kn,0],orange:[kn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[kn,0,0],pink:[kn,192,203],cyan:[0,kn,kn],transparent:[kn,kn,kn,0]},jn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*kn+.5|0},Mn=function(e,t,n){var r=e?Ce(e)?[e>>16,e>>8&kn,e&kn]:0:An.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),An[e])r=An[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&kn,r&kn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&kn,e&kn]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(Me),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=jn(s+1/3,i,a),r[1]=jn(s,i,a),r[2]=jn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Ne),n&&r.length<4&&(r[3]=1),r}else r=e.match(Me)||An.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/kn,a=r[1]/kn,o=r[2]/kn,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),Bn=function(){return!Rn&&zn.wake()},G={},Vn=/^[\d.\-M][\d.\-,\s]/,Hn=/["']/g,Un=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Un(t[1])]:Wn(e).split(`,`).map(yt)):G._CE&&Vn.test(e)?G._CE(``,e):n},Kn=function(e){return function(t){return 1-e(1-t)}},qn=function(e,t){return e&&(H(e)?e:G[e]||Gn(e))||t},Jn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return ft(e,function(e){for(var t in G[e]=Ue[e]=i,G[a=e.toLowerCase()]=n,i)G[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=G[e+`.`+t]=i[t]}),i},Yn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Xn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/ve*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*Se((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Yn(s);return a=ve/a,c.config=function(n,r){return e(t,n,r)},c},Zn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:Yn(r);return i.config=function(n){return e(t,n)},i};ft(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Jn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),G.Linear.easeNone=G.none=G.Linear.easeIn,Jn(`Elastic`,Xn(`in`),Xn(`out`),Xn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Jt(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Bn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(zt(this,e),!n._dp||n.parent||Bt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===_e||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),vt(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Ft(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Ft(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?It(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-_e?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Lt(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-_e?0:this._rts,this.totalTime(en(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Rt(this),Mt(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Bn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_e&&(this._tTime-=_e)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=W(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Vt(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Ee(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Lt(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=$e);var t=he;return he=e,_t(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),he=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Yt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Yt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Zt(this,e),Ee(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Ee(t)),this._dur||(this._zTime=-_e),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-_e:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-_e,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=H(e)?e:bt,a=function(){var e=t.then;t.then=null,n&&n(),H(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Tn(this)},e}();xt($n.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_e,_prom:0,_ps:!1,_rts:1});var er=function(e){R(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=Ee(t.sortChildren),ze&&Vt(t.parent||ze,de(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Ht(de(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Qt(0,arguments,this),this},n.from=function(e,t,n){return Qt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Qt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Et(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new mr(e,t,Zt(this,n),1),this},n.call=function(e,t,n){return Vt(this,mr.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new mr(e,n,Zt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Et(n).immediateRender=Ee(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Et(r).immediateRender=Ee(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:W(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==ze&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=W(o%f),o===i?(d=this._repeat,c=a):(_=W(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=It(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:W(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&wn(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=qt(this,W(r),W(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(wn(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-_e);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||he&&_t(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-_e:_e);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-_e)._zTime=c>=r?1:-1,this._ts))return this._start=g,Rt(this),this.render(e,t,n);this._onUpdate&&!t&&wn(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&At(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(wn(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(Ce(t)||(t=Zt(this,t,e)),!(e instanceof $n)){if(U(e))return e.forEach(function(e){return n.add(e,t)}),this;if(V(e))return this.addLabel(e,t);if(H(e))e=mr.delayedCall(0,e);else return this}return this===e?this:Vt(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-ge);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof mr?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return V(e)?this.removeLabel(e):H(e)?this.killTweensOf(e):(e.parent===this&&kt(this,e),e===this._recent&&(this._recent=this._last),jt(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=W(zn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Zt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=mr.delayedCall(0,t||Xe,n);return r.data=`isPause`,this._hasPause=1,Vt(this,r,Zt(this,e))},n.removePause=function(e){var t=this._first;for(e=Zt(this,e);t;)t._start===e&&t.data===`isPause`&&At(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)ar!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=sn(e),i=this._first,a=Ce(t),o;i;)i instanceof mr?ht(i._targets,r)&&(a?(!ar||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=Zt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=mr.to(n,xt({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||_e,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&Jt(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,xt({startAt:{time:Zt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Cn(this,Zt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Cn(this,Zt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+_e)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=W(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return jt(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),jt(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=ge,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Vt(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=W(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;Jt(n,n===ze&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(ze._ts&&(vt(ze,Lt(e,ze)),rt=zn.frame),zn.frame>=ot){ot+=fe.autoSleep||120;var t=ze._first;if((!t||!t._ts)&&fe.autoSleep&&zn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||zn.sleep()}}},t}($n);xt(er.prototype,{_lock:0,_hasPause:0,_forcing:0});var tr=function(e,t,n,r,i,a,o){var s=new Or(this._pt,e,t,0,1,Sr,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=bn(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Fe)||[];u=Fe.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?mt(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Fe.lastIndex);return s.c=c`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||ur(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;vi-_e&&!o?i:e<_e?0:e,c,l,u,d,f,p,m,h;if(!a)Kt(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=W(s%d),s===i?(u=this._repeat,c=a):(f=W(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=It(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(W(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(Ut(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&At(this,1),!t&&!(o&&!r)&&(s||r||p)&&(wn(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){Rn||zn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||sr(this,a),o=this._ease(a/this._dur),cr(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(zt(this,0),this.parent||Ot(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Tn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!he),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,ar&&ar.vars.overwrite!==!0)._first||Tn(this),this.parent&&n!==this.timeline.totalDuration()&&Jt(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?sn(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Dt(r,i))return t===`all`&&(this._pt=0),Tn(this);for(s=this._op=this._op||[],t!==`all`&&(V(t)&&(d={},ft(t,function(e){return d[e]=1}),t=d),t=lr(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&kt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Tn(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Qt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return Qt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return ze.killTweensOf(e,t,n)},t}($n);xt(mr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ft(`staggerTo,staggerFrom,staggerFromTo`,function(e){mr[e]=function(){var t=new er,n=rn.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var hr=function(e,t,n){return e[t]=n},gr=function(e,t,n){return e[t](n)},_r=function(e,t,n,r){return e[t](r.fp,n)},vr=function(e,t,n){return e.setAttribute(t,n)},yr=function(e,t){return H(e[t])?gr:we(e[t])&&e.setAttribute?vr:hr},br=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},xr=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Sr=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Cr=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},wr=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Tr=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?kt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Er=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Dr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Or=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||br,this.d=o||this,this.set=s||hr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Er,this.m=e,this.mt=n,this.tween=t},e}();ft(ct+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return et[e]=1}),Ue.TweenMax=Ue.TweenLite=mr,Ue.TimelineLite=Ue.TimelineMax=er,ze=new er({sortChildren:!1,defaults:pe,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),fe.stringFilter=Ln;var kr=[],Ar={},jr=[],Mr=0,Nr=0,Pr=function(e){return(Ar[e]||jr).map(function(e){return e()})},Fr=function(){var e=Date.now(),t=[];e-Mr>2&&(Pr(`matchMediaInit`),kr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=Be.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Pr(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Mr=e,Pr(`matchMedia`))},Ir=function(){function e(e,t){this.selector=t&&cn(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Nr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){H(e)&&(n=t,t=e,e=H);var r=this,i=function(){var e=z,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=cn(n)),z=r,a=t.apply(r,arguments),H(a)&&r._r.push(a),z=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===H?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=z;z=null,e(this),z=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof mr&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof er?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof mr)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=kr.length;r--;)kr[r].id===this.id&&kr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Lr=function(){function e(e){this.contexts=[],this.scope=e,z&&z.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Te(e)||(e={matches:e});var r=new Ir(0,n||this.scope),i=r.conditions={},a,o,s;for(o in z&&!r.selector&&(r.selector=z.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=Be.matchMedia(e[o]),a&&(kr.indexOf(r)<0&&kr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Fr):a.addEventListener(`change`,Fr)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Rr={registerPlugin:function(){[...arguments].forEach(function(e){return On(e)})},timeline:function(e){return new er(e)},getTweensOf:function(e,t){return ze.getTweensOf(e,t)},getProperty:function(e,t,n,r){V(e)&&(e=sn(e)[0]);var i=ut(e||{}).get,a=n?bt:yt;return n===`native`&&(n=``),e&&(t?a((it[t]&&it[t].get||i)(e,t,n,r)):function(t,n,r){return a((it[t]&&it[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=sn(e),e.length>1){var r=e.map(function(e){return Hr.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=it[t],o=ut(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;En._pt=0,r.init(e,n?t+n:t,En,0,[e]),r.render(1,r),En._pt&&Cr(1,En)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Hr.to(e,xt((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return ze.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=qn(e.ease,pe.ease)),wt(pe,e||{})},config:function(e){return wt(fe,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!it[e]&&!Ue[e]&&Je(t+` effect requires `+e+` plugin.`)}),at[t]=function(e,t,r){return n(sn(e),xt(t||{},i),r)},a&&(er.prototype[t]=function(e,n,r){return this.add(at[t](e,Te(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){G[e]=qn(t)},parseEase:function(e,t){return arguments.length?qn(e,t):G},getById:function(e){return ze.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new er(e),r,i;for(n.smoothChildTiming=Ee(e.smoothChildTiming),ze.remove(n),n._dp=0,n._time=n._tTime=ze._time,r=ze._first;r;)i=r._next,(t||!(!r._dur&&r instanceof mr&&r.vars.onComplete===r._targets[0]))&&Vt(n,r,r._start-r._delay),r=i;return Vt(ze,n,0),n},context:function(e,t){return e?new Ir(e,t):z},matchMedia:function(e){return new Lr(e)},matchMediaRefresh:function(){return kr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Fr()},addEventListener:function(e,t){var n=Ar[e]||(Ar[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Ar[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:vn,wrapYoyo:yn,distribute:un,random:pn,snap:fn,normalize:gn,getUnit:tn,clamp:nn,splitColor:Mn,toArray:sn,selector:cn,mapRange:xn,pipe:mn,unitize:hn,interpolate:Sn,shuffle:ln},install:Ke,effects:at,ticker:zn,updateRoot:er.updateRoot,plugins:it,globalTimeline:ze,core:{PropTween:Or,globals:Ye,Tween:mr,Timeline:er,Animation:$n,getCache:ut,_removeLinkedListItem:kt,reverting:function(){return he},context:function(e){return e&&z&&(z.data.push(e),e._ctx=z),z},suppressOverwrites:function(e){return me=e}}};ft(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return Rr[e]=mr[e]}),zn.add(er.updateRoot),En=Rr.to({},{duration:0});var zr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Br=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=zr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Vr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(V(n)&&(r={},ft(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Br(e,n)}}}},Hr=Rr.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)he?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Vr(`roundProps`,dn),Vr(`modifiers`),Vr(`snap`,fn))||Rr;mr.version=er.version=Hr.version=`3.15.0`,Ge=1,De()&&Bn(),G.Power0,G.Power1,G.Power2,G.Power3,G.Power4,G.Linear,G.Quad,G.Cubic,G.Quart,G.Quint,G.Strong,G.Elastic,G.Back,G.SteppedEase,G.Bounce,G.Sine,G.Expo,G.Circ;var Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr=function(){return typeof window<`u`},Zr={},Qr=180/Math.PI,$r=Math.PI/180,ei=Math.atan2,ti=1e8,ni=/([A-Z])/g,ri=/(left|right|width|margin|padding|x)/i,ii=/[\s,\(]\S/,ai={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},oi=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},si=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ci=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},li=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},ui=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},di=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},fi=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},pi=function(e,t,n){return e.style[t]=n},mi=function(e,t,n){return e.style.setProperty(t,n)},hi=function(e,t,n){return e._gsap[t]=n},gi=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},_i=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},vi=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},yi=`transform`,bi=yi+`Origin`,xi=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Zr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=ai[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Bi(i,e)}):this.tfm[t]=o.x?o[t]:Bi(i,t),t===bi&&(this.tfm.zOrigin=o.zOrigin);else return ai.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(yi)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(bi,n,``)),t=yi}(a||n)&&this.props.push(t,n,a[t])},Si=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ci=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?Oi[i]:``)+e},Ai=function(){Xr()&&window.document&&(Ur=window,Wr=Ur.document,Gr=Wr.documentElement,qr=Ei(`div`)||{style:{}},Ei(`div`),yi=ki(yi),bi=yi+`Origin`,qr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Ti=!!ki(`perspective`),Yr=Hr.core.reverting,Kr=1)},ji=function(e){var t=e.ownerSVGElement,n=Ei(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Gr.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Gr.removeChild(n),i},Mi=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Ni=function(e){var t,n;try{t=e.getBBox()}catch{t=ji(e),n=1}return t&&(t.width||t.height)||n||(t=ji(e)),t&&!t.width&&!t.x&&!t.y?{x:+Mi(e,[`x`,`cx`,`x1`])||0,y:+Mi(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},Pi=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ni(e))},Fi=function(e,t){if(t){var n=e.style,r;t in Zr&&t!==bi&&(t=yi),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(ni,`-$1`).toLowerCase())):n.removeAttribute(t)}},Ii=function(e,t,n,r,i,a){var o=new Or(e._pt,t,n,0,1,a?fi:di);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Li={deg:1,rad:1,turn:1},Ri={grid:1,flex:1},zi=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=qr.style,c=ri.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Li[i]||Li[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&Pi(t),(p||o===`%`)&&(Zr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],pt(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Wr||!h.appendChild)&&(h=Wr.body),g=h._gsap,g&&p&&g.width&&c&&g.time===zn.time&&!g.uncache)return pt(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Fi(t,n)}else(p||o===`%`)&&!Ri[Di(h,`display`)]&&(s.position=Di(t,`position`)),h===t&&(s.position=`static`),h.appendChild(qr),m=qr[u],h.removeChild(qr),s.position=`absolute`;return c&&p&&(g=ut(h),g.time=zn.time,g.width=h[u]),pt(f?m*a/d:m&&a?d/m*a:0)},Bi=function(e,t,n,r){var i;return Kr||Ai(),t in ai&&t!==`transform`&&(t=ai[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Zr[t]&&t!==`transform`?(i=Qi(e,r),i=t===`transformOrigin`?i.svg?i.origin:$i(Di(e,bi))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Gi[t]&&Gi[t](e,t,n)||Di(e,t)||dt(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?zi(e,t,i,n)+n:i},Vi=function(e,t,n,r){if(!n||n===`none`){var i=ki(t,e,1),a=i&&Di(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Di(e,`borderTopColor`))}var o=new Or(this._pt,e.style,t,0,1,Sr),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Di(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Di(e,t)||r,m?e.style[t]=m:Fi(e,t)),l=[n,r],Ln(l),n=l[0],r=l[1],d=n.match(Pe)||[],b=r.match(Pe)||[],b.length){for(;u=Pe.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=mt(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Pe.lastIndex-v.length,v||(v=v||fe.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=zi(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],Zr[o]&&(s=1,o=o===`transformOrigin`?bi:yi),Fi(n,o);s&&(Fi(n,yi),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Qi(n,1),a.uncache=1,Si(r)))}},Gi={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Or(e._pt,t,n,0,0,Wi);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Ki=[1,0,0,1,0,0],qi={},Ji=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Yi=function(e){var t=Di(e,yi);return Ji(t)?Ki:t.substr(7).match(Ne).map(pt)},Xi=function(e,t){var n=e._gsap||ut(e),r=e.style,i=Yi(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Ki:i):(i===Ki&&!e.offsetParent&&e!==Gr&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Gr.appendChild(e)),i=Yi(e),s?r.display=s:Fi(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Gr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Zi=function(e,t,n,r,i,a){var o=e._gsap,s=i||Xi(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Ki&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Ni(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[bi]=`0px 0px`,a&&(Ii(a,o,`xOrigin`,c,y),Ii(a,o,`yOrigin`,l,b),Ii(a,o,`xOffset`,u,o.xOffset),Ii(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Qi=function(e,t){var n=e._gsap||new Qn(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Di(e,bi)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,ee,F,I,te,ne,re;return n.svg=!!(e.getCTM&&Pi(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[yi]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[yi]===`none`?``:s[yi])),r.scale=r.rotate=r.translate=`none`),S=Xi(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Zi(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Ki&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?ei(D,E)*Qr:0,_=O||k?ei(O,k)*Qr+m:0,_&&(p*=Math.abs(Math.cos(_*$r))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(re=S[6],te=S[7],ee=S[8],F=S[9],I=S[10],ne=S[11],l=S[12],u=S[13],d=S[14],C=ei(re,I),h=C*Qr,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+ee*T,N=j*w+F*T,P=re*w+I*T,ee=A*-T+ee*w,F=j*-T+F*w,I=re*-T+I*w,ne=te*-T+ne*w,A=M,j=N,re=P),C=ei(-O,I),g=C*Qr,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-ee*T,N=D*w-F*T,P=O*w-I*T,ne=k*T+ne*w,E=M,D=N,O=P),C=ei(D,E),m=C*Qr,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=pt(Math.sqrt(E*E+D*D+O*O)),p=pt(Math.sqrt(j*j+re*re)),C=ei(A,j),_=Math.abs(C)>2e-4?C*Qr:0,y=ne?1/(ne<0?-ne:ne):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Ji(Di(e,yi)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=pt(f),n.scaleY=pt(p),n.rotation=pt(m)+o,n.rotationX=pt(h)+o,n.rotationY=pt(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[bi]=$i(c)),n.xOffset=n.yOffset=0,n.force3D=fe.force3D,n.renderTransform=n.svg?oa:Ti?aa:ta,n.uncache=0,n},$i=function(e){return(e=e.split(` `))[0]+` `+e[1]},ea=function(e,t,n){var r=tn(t);return pt(parseFloat(t)+parseFloat(zi(e,`x`,n+`px`,r)))+r},ta=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,aa(e,t)},na=`0deg`,ra=`0px`,ia=`) `,aa=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==na||l!==na)){var x=parseFloat(l)*$r,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*$r,w=Math.cos(x),a=ea(_,a,S*w*-v),o=ea(_,o,-Math.sin(x)*-v),s=ea(_,s,C*w*-v+v)}h!==ra&&(y+=`perspective(`+h+ia),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ra||o!==ra||s!==ra)&&(y+=s!==ra||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+ia),c!==na&&(y+=`rotate(`+c+ia),l!==na&&(y+=`rotateY(`+l+ia),u!==na&&(y+=`rotateX(`+u+ia),(d!==na||f!==na)&&(y+=`skew(`+d+`, `+f+ia),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+ia),_.style[yi]=y||`translate(0, 0)`},oa=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=$r,c*=$r,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=$r,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=pt(b),x=pt(x),S=pt(S),C=pt(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=zi(f,`x`,a,`px`),y=zi(f,`y`,o,`px`)),(p||m||h||g)&&(v=pt(v+p-(p*b+m*S)+h),y=pt(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=pt(v+r/100*w.width),y=pt(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[yi]=w)},sa=function(e,t,n,r,i){var a=360,o=V(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Qr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*ti)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*ti)%a-~~(s/a)*a)),e._pt=u=new Or(e._pt,t,n,r,s,si),u.e=c,u.u=`deg`,e._props.push(n),u},ca=function(e,t){for(var n in t)e[n]=t[n];return e},la=function(e,t,n){var r=ca({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[yi]=t,o=Qi(n,1),Fi(n,yi),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[yi],a[yi]=t,o=Qi(n,1),a[yi]=c),Zr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=tn(c),p=tn(l),u=f===p?parseFloat(c):zi(n,s,c,p),d=parseFloat(l),e._pt=new Or(e._pt,o,s,u,d-u,oi),e._pt.u=p||0,e._props.push(s));ca(o,r)};ft(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});Gi[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return Bi(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var ua={name:`css`,register:Ai,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in Kr||Ai(),this.styles=this.styles||wi(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(it[m]&&ir(m,t,n,r,e,i)))){if(f=typeof l,p=Gi[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=bn(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,Fn.lastIndex=0,Fn.test(c)||(h=tn(c),g=tn(l),g?h!==g&&(c=zi(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],V(c)&&~c.indexOf(`random(`)&&(c=bn(c)),tn(c+``)||c===`auto`||(c+=fe.units[m]||tn(Bi(e,m))||``),(c+``).charAt(1)===`=`&&(c=Bi(e,m))):c=Bi(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in ai&&(m===`autoAlpha`&&(d===1&&Bi(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),Ii(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=ai[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Zr,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Di(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Di(e,`perspective`),T?e.style.perspective=T:Fi(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Qi(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Or(this._pt,o,yi,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Or(this._pt,b,`scaleY`,b.scaleY,(_?mt(b.scaleY,_+u):u)-b.scaleY||0,oi),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(bi,0,o[bi]),l=Ui(l),b.svg?Zi(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&Ii(this,b,`zOrigin`,b.zOrigin,g),Ii(this,o,m,$i(c),$i(l)));continue}else if(m===`svgOrigin`){Zi(e,l,1,x,0,this);continue}else if(m in qi){sa(this,b,m,d,_?mt(d,_+l):l);continue}else if(m===`smoothOrigin`){Ii(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){la(this,l,e);continue}}else m in o||(m=ki(m)||m);if(v||(u||u===0)&&(d||d===0)&&!ii.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=tn(l)||(m in fe.units?fe.units[m]:h),h!==g&&(d=zi(e,m,c,g)),this._pt=new Or(this._pt,v?b:o,m,d,(_?mt(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?ui:oi),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=li):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=ci);else if(m in o)Vi.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){qe(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Dr(this)},render:function(e,t){if(t.tween._time||!Yr())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Bi,aliases:ai,getSetter:function(e,t,n){var r=ai[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Zr&&t!==bi&&(e._gsap.x||Bi(e,`x`))?n&&Jr===n?t===`scale`?gi:hi:(Jr=n||{})&&(t===`scale`?_i:vi):e.style&&!we(e.style[t])?pi:~t.indexOf(`-`)?mi:yr(e,t)},core:{_removeProperty:Fi,_getMatrix:Xi}};Hr.utils.checkPrefix=ki,Hr.core.getStyleSaver=wi,(function(e,t,n,r){var i=ft(e+`,`+t+`,`+n,function(e){Zr[e]=1});ft(t,function(e){fe.units[e]=`deg`,qi[e]=1}),ai[i[13]]=e+`,`+t,ft(r,function(e){var t=e.split(`:`);ai[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),ft(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){fe.units[e]=`px`}),Hr.registerPlugin(ua);var da=Hr.registerPlugin(ua)||Hr;da.core.Tween;function fa(e,t){for(var n=0;ns?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=ja();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},Ja=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Ya=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Xa=function(){Sa=ma.core.globals().ScrollTrigger,Sa&&Sa.core&&Na()},Za=function(e){return ma=e||Da(),!ha&&ma&&typeof document<`u`&&document.body&&(ga=window,_a=document,va=_a.documentElement,ya=_a.body,Ca=[ga,_a,va,ya],ma.utils.clamp,Ea=ma.core.context||function(){},xa=`onpointerenter`in ya?`pointer`:`mouse`,ba=Qa.isTouch=ga.matchMedia&&ga.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in ga||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ta=Qa.eventTypes=(`ontouchstart`in va?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in va?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return Oa=0},500),ha=1),Sa||Xa(),ha};Ha.op=Ua,K.cache=0;var Qa=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){ha||Za(ma)||console.warn(`Please gsap.registerPlugin(Observer)`),Sa||Xa();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,ee=e.onEnable,F=e.onDisable,I=e.onClick,te=e.scrollSpeed,ne=e.capture,re=e.allowClicks,ie=e.lockAxis,ae=e.onLockAxis;this.target=i=Wa(i)||va,this.vars=e,u&&=ma.utils.toArray(u),t||=1e-9,n||=0,d||=1,te||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(ga.getComputedStyle(ya).lineHeight)||22;var L,oe,se,ce,le,ue,de,R=this,fe=0,pe=0,me=e.passive||!s&&e.passive!==!1,he=Ka(i,Ha),z=Ka(i,Ua),ge=he(),_e=z(),ve=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Ta[0]===`pointerdown`,ye=Fa(i),B=i.ownerDocument||_a,be=[0,0,0],xe=[0,0,0],Se=0,V=function(){return Se=ja()},H=function(e,t){return(R.event=e)&&u&&Ga(e.target,u)||t&&ve&&e.pointerType!==`touch`||A&&A(e,t)},Ce=function(){R._vx.reset(),R._vy.reset(),oe.pause(),c&&c(R)},we=function(){var e=R.deltaX=Ya(be),n=R.deltaY=Ya(xe),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(R,e,n,be,xe),r&&(v&&R.deltaX>0&&v(R),y&&R.deltaX<0&&y(R),S&&S(R),T&&R.deltaX<0!=fe<0&&T(R),fe=R.deltaX,be[0]=be[1]=be[2]=0),i&&(x&&R.deltaY>0&&x(R),b&&R.deltaY<0&&b(R),C&&C(R),E&&R.deltaY<0!=pe<0&&E(R),pe=R.deltaY,xe[0]=xe[1]=xe[2]=0),(ce||se)&&(k&&k(R),se&&=(p&&se===1&&p(R),h&&h(R),0),ce=!1),ue&&!(ue=!1)&&ae&&ae(R),le&&=(P(R),!1),L=0},Te=function(e,t,n){be[n]+=e,xe[n]+=t,R._vx.update(e),R._vy.update(t),o?L||=requestAnimationFrame(we):we()},Ee=function(e,t){ie&&!de&&(R.axis=de=Math.abs(e)>Math.abs(t)?`x`:`y`,ue=!0),de!==`y`&&(be[2]+=e,R._vx.update(e,!0)),de!==`x`&&(xe[2]+=t,R._vy.update(t,!0)),o?L||=requestAnimationFrame(we):we()},De=function(e){if(!H(e,1)){e=Ja(e,s);var t=e.clientX,r=e.clientY,i=t-R.x,a=r-R.y,o=R.isDragging;R.x=t,R.y=r,(o||(i||a)&&(Math.abs(R.startX-t)>=n||Math.abs(R.startY-r)>=n))&&(se||=o?2:1,o||(R.isDragging=!0),Ee(i,a))}},Oe=R.onPress=function(e){H(e,1)||e&&e.button||(R.axis=de=null,oe.pause(),R.isPressed=!0,e=Ja(e),fe=pe=0,R.startX=R.x=e.clientX,R.startY=R.y=e.clientY,R._vx.reset(),R._vy.reset(),Ia(j?i:B,Ta[1],De,me,!0),R.deltaX=R.deltaY=0,g&&g(R))},ke=R.onRelease=function(e){if(!H(e,1)){La(j?i:B,Ta[1],De,!0);var t=!isNaN(R.y-R.startY),n=R.isDragging,r=n&&(Math.abs(R.x-R.startX)>3||Math.abs(R.y-R.startY)>3),a=Ja(e);!r&&t&&(R._vx.reset(),R._vy.reset(),s&&re&&ma.delayedCall(.08,function(){if(ja()-Se>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(B.createEvent){var t=B.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,ga,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),R.isDragging=R.isGesturing=R.isPressed=!1,c&&n&&!j&&oe.restart(!0),se&&we(),m&&n&&m(R),_&&_(R,r)}},U=function(e){return e.touches&&e.touches.length>1&&(R.isGesturing=!0)&&M(e,R.isDragging)},Ae=function(){return(R.isGesturing=!1)||N(R)},je=function(e){if(!H(e)){var t=he(),n=z();Te((t-ge)*te,(n-_e)*te,1),ge=t,_e=n,c&&oe.restart(!0)}},Me=function(e){if(!H(e)){e=Ja(e,s),P&&(le=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?ga.innerHeight:1)*d;Te(e.deltaX*t,e.deltaY*t,0),c&&!j&&oe.restart(!0)}},Ne=function(e){if(!H(e)){var t=e.clientX,n=e.clientY,r=t-R.x,i=n-R.y;R.x=t,R.y=n,ce=!0,c&&oe.restart(!0),(r||i)&&Ee(r,i)}},Pe=function(e){R.event=e,D(R)},Fe=function(e){R.event=e,O(R)},Ie=function(e){return H(e)||Ja(e,s)&&I(R)};oe=R._dc=ma.delayedCall(l||.25,Ce).pause(),R.deltaX=R.deltaY=0,R._vx=qa(0,50,!0),R._vy=qa(0,50,!0),R.scrollX=he,R.scrollY=z,R.isDragging=R.isGesturing=R.isPressed=!1,Ea(this),R.enable=function(e){return R.isEnabled||(Ia(ye?B:i,`scroll`,Ba),r.indexOf(`scroll`)>=0&&Ia(ye?B:i,`scroll`,je,me,ne),r.indexOf(`wheel`)>=0&&Ia(i,`wheel`,Me,me,ne),(r.indexOf(`touch`)>=0&&ba||r.indexOf(`pointer`)>=0)&&(Ia(i,Ta[0],Oe,me,ne),Ia(B,Ta[2],ke),Ia(B,Ta[3],ke),re&&Ia(i,`click`,V,!0,!0),I&&Ia(i,`click`,Ie),M&&Ia(B,`gesturestart`,U),N&&Ia(B,`gestureend`,Ae),D&&Ia(i,xa+`enter`,Pe),O&&Ia(i,xa+`leave`,Fe),k&&Ia(i,xa+`move`,Ne)),R.isEnabled=!0,R.isDragging=R.isGesturing=R.isPressed=ce=se=!1,R._vx.reset(),R._vy.reset(),ge=he(),_e=z(),e&&e.type&&Oe(e),ee&&ee(R)),R},R.disable=function(){R.isEnabled&&(ka.filter(function(e){return e!==R&&Fa(e.target)}).length||La(ye?B:i,`scroll`,Ba),R.isPressed&&(R._vx.reset(),R._vy.reset(),La(j?i:B,Ta[1],De,!0)),La(ye?B:i,`scroll`,je,ne),La(i,`wheel`,Me,ne),La(i,Ta[0],Oe,ne),La(B,Ta[2],ke),La(B,Ta[3],ke),La(i,`click`,V,!0),La(i,`click`,Ie),La(B,`gesturestart`,U),La(B,`gestureend`,Ae),La(i,xa+`enter`,Pe),La(i,xa+`leave`,Fe),La(i,xa+`move`,Ne),R.isEnabled=R.isPressed=R.isDragging=!1,F&&F(R))},R.kill=R.revert=function(){R.disable();var e=ka.indexOf(R);e>=0&&ka.splice(e,1),wa===R&&(wa=0)},ka.push(R),j&&Fa(i)&&(wa=R),R.enable(f)},pa(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();Qa.version=`3.15.0`,Qa.create=function(e){return new Qa(e)},Qa.register=Za,Qa.getAll=function(){return ka.slice()},Qa.getById=function(e){return ka.filter(function(t){return t.vars.id===e})[0]},Da()&&ma.registerPlugin(Qa);var q,$a,J,Y,eo,to,no,X,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao=1,jo=Date.now,Mo=jo(),No=0,Po=0,Fo=function(e,t,n){var r=Zo(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},Io=function(e,t){return t&&(!Zo(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},Lo=function e(){return Po&&requestAnimationFrame(e)},Ro=function(){return co=1},zo=function(){return co=0},Bo=function(e){return e},Vo=function(e){return Math.round(e*1e5)/1e5||0},Ho=function(){return typeof window<`u`},Uo=function(){return q||Ho()&&(q=window.gsap)&&q.registerPlugin&&q},Wo=function(e){return!!~no.indexOf(e)},Go=function(e){return(e===`Height`?Eo:J[`inner`+e])||eo[`client`+e]||to[`client`+e]},Ko=function(e){return Pa(e,`getBoundingClientRect`)||(Wo(e)?function(){return vc.width=J.innerWidth,vc.height=Eo,vc}:function(){return Ss(e)})},qo=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=Pa(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?Go(i):e[`client`+i])||0}},Jo=function(e,t){return!t||~Aa.indexOf(e)?Ko(e):function(){return vc}},Yo=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=Pa(e,n))?a()-Ko(e)()[i]:Wo(e)?(eo[n]||to[n])-Go(r):e[n]-e[`offset`+r])},Xo=function(e,t){for(var n=0;n0){for(e-=i,a=0;a=e)return n[a];return n[a-1]}else for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in Ps?Ps[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Is=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=Y.createElement(`div`),m=Wo(n)||Pa(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?to:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===Ua?os:ss)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],Ls(p,0,r,_),p},Ls=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+gs]=1,i[`border`+o+gs]=0,i[n.p]=t+`px`,q.set(e,i)},Z=[],Rs={},zs,Bs=function(){return jo()-No>34&&(zs||=requestAnimationFrame(lc))},Vs=function(){(!vo||!vo.isPressed||vo.startX>to.clientWidth)&&(K.cache++,vo?zs||=requestAnimationFrame(lc):lc(),No||qs(`scrollStart`),No=jo())},Hs=function(){xo=J.innerWidth,bo=J.innerHeight},Us=function(e){K.cache++,(e===!0||!so&&!_o&&!Y.fullscreenElement&&!Y.webkitFullscreenElement&&(!yo||xo!==J.innerWidth||Math.abs(J.innerHeight-bo)>J.innerHeight*.25))&&X.restart(!0)},Ws={},Gs=[],Ks=function e(){return As(Q,`scrollEnd`,e)||ac(!0)},qs=function(e){return Ws[e]&&Ws[e].map(function(e){return e()})||Gs},Js=[],Ys=function(e){for(var t=0;tt,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),ic(!1),Oo=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),K.forEach(function(e){Qo(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),Qs(wo,1),X.pause(),ec++,$s=2,lc(2),Z.forEach(function(e){return Qo(e.vars.onRefresh)&&e.vars.onRefresh(e)}),$s=Q.isRefreshing=!1,qs(`refresh`)},oc=0,sc=1,cc,lc=function(e){if(e===2||!$s&&!Do){Q.isUpdating=!0,cc&&cc.update(0);var t=Z.length,n=jo(),r=n-Mo>=50,i=t&&Z[0].scroll();if(sc=oc>i?-1:1,$s||(oc=i),r&&(No&&!co&&n-No>200&&(No=0,qs(`scrollEnd`)),ao=Mo,Mo=n),sc<0){for(uo=t;uo-->0;)Z[uo]&&Z[uo].update(0,r);sc=1}else for(uo=0;uo20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,Ls(a,C,r,w&&C>20||!w&&(u?Math.max(to[h],eo[h]):a.parentNode[h])<=C+1),u&&(c=Ss(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+vs))}return f&&_&&(h=Ss(_),f.seek(d),g=Ss(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},bc=/(webkit|moz|length|cssText|inset)/i,xc=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===to){for(a in e._stOrig=i.cssText,o=ys(e),o)!+a&&!bc.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;q.core.getCache(e).uncache=1,t.appendChild(e)}},Sc=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},Cc=function(e,t,n){var r={};r[t.p]=`+=`+n,q.set(e,r)},wc=function(e,t){var n=Ka(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=Sc(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){K.cache++,t.tween&&lc()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=q.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ks(e,`wheel`,n.wheelHandler),Q.isTouch&&ks(e,`touchmove`,n.wheelHandler),i},Q=function(){function e(t,n){$a||e.register(q)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),Co(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Po){this.update=this.refresh=this.kill=Bo;return}t=xs(Zo(t)||$o(t)||t.nodeType?{trigger:t}:t,Ns);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Ha:Ua,T=!l&&l!==0,E=Wa(t.scroller||J),D=q.core.getCache(E),O=Wo(E),k=(`pinType`in t?t.pinType:Pa(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:Ns.markers,N=O?0:parseFloat(ys(E)[`border`+w.p2+gs])||0,P=this,ee=t.onRefreshInit&&function(){return t.onRefreshInit(P)},F=qo(E,O,w),I=Jo(E,O),te=0,ne=0,re=0,ie=Ka(E,w),ae,L,oe,se,ce,le,ue,de,R,fe,pe,me,he,z,ge,_e,ve,ye,B,be,xe,Se,V,H,Ce,we,Te,Ee,De,Oe,ke,U,Ae,je,Me,Ne,Pe,Fe,Ie;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):ie,se=ie(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(ho=1,t.refreshPriority===-9999&&(cc=P)),D.tweenScroll=D.tweenScroll||{top:wc(E,Ua),left:wc(E,Ha)},P.tweenTo=ae=D.tweenScroll[w.p],P.scrubDuration=function(e){Ae=$o(e)&&e,Ae?U?U.duration(e):U=q.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:Ae,paused:!0,onComplete:function(){return h&&h(P)}}):(U&&U.progress(1).kill(),U=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Oe=0,o||=n.vars.id),v&&((!es(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in to.style&&q.set(O?[to,eo]:E,{scrollBehavior:`auto`}),K.forEach(function(e){return Qo(e)&&e.target===(O?Y.scrollingElement||eo:E)&&(e.smooth=!1)}),oe=Qo(v.snapTo)?v.snapTo:v.snapTo===`labels`?Ts(n):v.snapTo===`labelsDirectional`?Ds(n):v.directional===!1?q.utils.snap(v.snapTo):function(e,t){return Es(v.snapTo)(e,jo()-ne<500?0:t.direction)},je=v.duration||{min:.1,max:2},je=es(je)?io(je.min,je.max):io(je,je),Me=q.delayedCall(v.delay||Ae/2||.1,function(){var e=ie(),t=jo()-ne<500,r=ae.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!co&&te!==e){var i=(e-le)/z,a=n&&!T?n.totalProgress():i,o=t?0:(a-ke)/(jo()-ao)*1e3||0,s=q.utils.clamp(-i,1-i,rs(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=oe(c,P),$o(l)||(l=c),u=Math.max(0,Math.round(le+l*z)),e<=ue&&e>=le&&u!==e){if(r&&!r._initted&&r.data<=rs(u-e))return;v.inertia===!1&&(s=l-i),ae(u,{duration:je(rs(Math.max(rs(c-a),rs(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:rs(u-e),onInterrupt:function(){return Me.restart(!0)&&p&&ns(P,p)},onComplete:function(){P.update(),te=ie(),n&&!T&&(U?U.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Oe=ke=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&ns(P,m)}},e,s*z,u-e-s*z),f&&ns(P,f,ae.tween)}}else P.isActive&&te!==e&&Me.restart(!0)}).pause()),o&&(Rs[o]=P),u=P.trigger=Wa(u||d!==!0&&d),Ie=u&&u._gsap&&u._gsap.stRevert,Ie&&=Ie(P),d=d===!0?u:Wa(d),Zo(a)&&(a={targets:u,className:a}),d&&(f===!1||f===hs||(f=!f&&d.parentNode&&d.parentNode.style&&ys(d.parentNode).display===`flex`?!1:ms),P.pin=d,L=q.core.getCache(d),L.spacer?ge=L.pinState:(b&&(b=Wa(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),L.spacerIsNative=!!b,b&&(L.spacerState=gc(b))),L.spacer=ye=b||Y.createElement(`div`),ye.classList.add(`pin-spacer`),o&&ye.classList.add(`pin-spacer-`+o),L.pinState=ge=gc(d)),t.force3D!==!1&&q.set(d,{force3D:!0}),P.spacer=ye=L.spacer,De=ys(d),H=De[f+w.os2],be=q.getProperty(d),xe=q.quickSetter(d,w.a,vs),pc(d,ye,De),ve=gc(d)),M){me=es(M)?xs(M,Ms):Ms,fe=Is(`scroller-start`,o,E,w,me,0),pe=Is(`scroller-end`,o,E,w,me,0,fe),B=fe[`offset`+w.op.d2];var Le=Wa(Pa(E,`content`)||E);de=this.markerStart=Is(`start`,o,Le,w,me,B,0,x),R=this.markerEnd=Is(`end`,o,Le,w,me,B,0,x),x&&(Fe=q.quickSetter([de,R],w.a,vs)),!k&&!(Aa.length&&Pa(E,`fixedMarkers`)===!0)&&(bs(O?to:E),q.set([fe,pe],{force3D:!0}),we=q.quickSetter(fe,w.a,vs),Ee=q.quickSetter(pe,w.a,vs))}if(x){var Re=x.vars.onUpdate,ze=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),Re&&Re.apply(x,ze||[])})}if(P.previous=function(){return Z[Z.indexOf(P)-1]},P.next=function(){return Z[Z.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=so;r!==P.isReverted&&(r&&(Ne=Math.max(ie(),P.scroll.rec||0),re=P.progress,Pe=n&&n.progress()),de&&[de,R,fe,pe].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(so=P,P.update(r)),d&&(!y||!P.isActive)&&(r?fc(d,ye,ge):pc(d,ye,ys(d),Ce)),r||P.update(r),so=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!((so||!P.enabled)&&!i)){if(d&&r&&No){ks(e,`scrollEnd`,Ks);return}!$s&&ee&&ee(P),so=P,ae.tween&&!a&&(ae.tween.kill(),ae.tween=0),U&&U.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=F(),l=I(),m=x?x.duration():Yo(E,w),h=z<=.01||!z,g=0,_=o||0,v=es(a)?a.end:t.end,b=t.endTrigger||u,S=es(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&Wa(t.pinnedContainer,P),D=u&&Math.max(0,Z.indexOf(P))||0,A=D,j,L,oe,me,B,xe,H,we,Ee,De,Oe,ke,Ae;for(M&&es(a)&&(ke=q.getProperty(fe,w.p),Ae=q.getProperty(pe,w.p));A-->0;)xe=Z[A],xe.end||xe.refresh(0,1)||(so=P),H=xe.pin,H&&(H===u||H===d||H===C)&&!xe.isReverted&&(De||=[],De.unshift(xe),xe.revert(!0,!0)),xe!==Z[A]&&(D--,A--);for(Qo(S)&&(S=S(P)),S=Fo(S,`start`,P),le=yc(S,u,s,w,ie(),de,fe,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),Qo(v)&&(v=v(P)),Zo(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(Zo(S)?S.split(` `)[0]:``)+v:(g=Fs(v.substr(2),s),v=Zo(S)?S:(x?q.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,le):le)+g,b=u)),v=Fo(v,`end`,P),ue=Math.max(le,yc(v||(b?`100% 0`:m),b,s,w,ie()+g,R,pe,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)xe=Z[A]||{},H=xe.pin,H&&xe.start-xe._pinPush<=le&&!x&&xe.end>0&&(j=xe.end-(P._startClamp?Math.max(0,xe.start):xe.start),(H===u&&xe.start-xe._pinPush=Yo(E,w)))j=ys(d),me=w===Ua,oe=ie(),Se=parseFloat(be(w.a))+_,!m&&ue>1&&(Oe=(O?Y.scrollingElement||eo:E).style,Oe={style:Oe,value:Oe[`overflow`+w.a.toUpperCase()]},O&&ys(to)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Oe.style[`overflow`+w.a.toUpperCase()]=`scroll`)),pc(d,ye,j),ve=gc(d),L=Ss(d,!0),we=k&&Ka(E,me?Ha:Ua)(),f?(Ce=[f+w.os2,z+_+vs],Ce.t=ye,A=f===ms?Cs(d,w)+z+_:0,A&&(Ce.push(w.d,A+vs),ye.style.flexBasis!==`auto`&&(ye.style.flexBasis=A+vs)),hc(Ce),C&&Z.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&ie(Ne)):(A=Cs(d,w),A&&ye.style.flexBasis!==`auto`&&(ye.style.flexBasis=A+vs)),k&&(B={top:L.top+(me?oe-le:we)+vs,left:L.left+(me?we:oe-le)+vs,boxSizing:`border-box`,position:`fixed`},B[cs]=B[`max`+gs]=Math.ceil(L.width)+vs,B[ls]=B[`max`+_s]=Math.ceil(L.height)+vs,B[hs]=B[hs+fs]=B[hs+us]=B[hs+ps]=B[hs+ds]=`0`,B[ms]=j[ms],B[ms+fs]=j[ms+fs],B[ms+us]=j[ms+us],B[ms+ps]=j[ms+ps],B[ms+ds]=j[ms+ds],_e=_c(ge,B,y),$s&&ie(0)),n?(Ee=n._initted,go(1),n.render(n.duration(),!0,!0),V=be(w.a)-Se+z+_,Te=Math.abs(z-V)>1,k&&Te&&_e.splice(_e.length-2,2),n.render(0,!0,!0),Ee||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),go(0)):V=z,Oe&&(Oe.value?Oe.style[`overflow`+w.a.toUpperCase()]=Oe.value:Oe.style.removeProperty(`overflow-`+w.a));else if(u&&ie()&&!x)for(L=u.parentNode;L&&L!==to;)L._pinOffset&&(le-=L._pinOffset,ue-=L._pinOffset),L=L.parentNode;De&&De.forEach(function(e){return e.revert(!1,!0)}),P.start=le,P.end=ue,se=ce=$s?Ne:ie(),!x&&!$s&&(se0?Z.slice(0,t).reverse():Z.slice(t+1);return(Zo(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=le:e.start>=ue})},P.update=function(e,t,r){if(!(x&&!r&&!e)){var o=$s===!0?Ne:P.scroll(),c=e?0:(o-le)/z,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,ee;if(t&&(ce=se,se=x?ie():o,v&&(ke=Oe,Oe=n&&!T?n.totalProgress():u)),m&&d&&!so&&!Ao&&No&&(!u&&leo+(o-ce)/(jo()-ao)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!so&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],ee=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||ee)&&(ee||l||!n)&&(Qo(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(U&&!so&&!Ao?(U._dp._time-U._start!==U._time&&U.render(U._dp._time-U._start),U.resetTo?U.resetTo(`totalProgress`,u,n._tTime/n._tDur):(U.vars.totalProgress=u,U.invalidate().restart())):n&&n.totalProgress(u,!!(so&&(ne||e)))),d){if(e&&f&&(ye.style[f+w.os2]=H),!k)xe(Vo(Se+V*u));else if(O){if(N=!e&&u>p&&ue+1>o&&o+1>=Yo(E,w),y)if(!e&&(h||N)){var F=Ss(d,!0),I=o-le;xc(d,to,F.top+(w===Ua?I:0)+vs,F.left+(w===Ua?0:I)+vs)}else xc(d,ye);hc(h||N?_e:ve),Te&&u<1&&h||xe(Se+(u===1&&!N?V:0))}}v&&!ae.tween&&!so&&!Ao&&Me.restart(!0),a&&(M||_&&u&&(u<1||!ko))&&ro(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!so?(T&&(ee&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!ko)&&(s&&M&&ns(P,s),A[b]&&ns(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&ns(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>($o(S)?S:2500)&&(ts(P.callbackAnimation),U?U.progress(1):ts(n,D===`reverse`?1:!u,1))):T&&i&&!so&&i(P)}if(Ee){var te=x?o/x.duration()*(x._caScrollDist||0):o;we(te+ +!!fe._isFlipped),Ee(te)}Fe&&Fe(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,ks(E,`resize`,Us),O||ks(E,`scroll`,Vs),ee&&ks(e,`refreshInit`,ee),t!==!1&&(P.progress=re=0,se=ce=te=ie()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&ae?ae.tween:U},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:Io(e,n&&!!P._startClamp),end:Io(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(Ce&&e){var t=Ce.indexOf(w.d)+1;Ce[t]=parseFloat(Ce[t])+e+vs,Ce[1]=parseFloat(Ce[1])+e+vs,hc(Ce)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||U&&U.pause(),Ne=0,L&&(L.uncache=1),ee&&As(e,`refreshInit`,ee),Me&&(Me.pause(),ae.tween&&ae.tween.kill()&&(ae.tween=0)),!O)){for(var r=Z.length;r--;)if(Z[r].scroller===E&&Z[r]!==P)return;As(E,`resize`,Us),O||As(E,`scroll`,Vs)}},P.kill=function(e,r){P.disable(e,r),U&&!r&&U.kill(),o&&delete Rs[o];var i=Z.indexOf(P);i>=0&&Z.splice(i,1),i===uo&&sc>0&&uo--,i=0,Z.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||$s||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),de&&[de,R,fe,pe].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),cc===P&&(cc=0),d&&(L&&(L.uncache=1),i=0,Z.forEach(function(e){return e.pin===d&&i++}),i||(L.spacer=0)),t.onKill&&t.onKill(P)},Z.push(P),P.enable(!1,!1),Ie&&Ie(P),n&&n.add&&!z){var Be=P.update;P.update=function(){P.update=Be,K.cache++,le||ue||P.refresh()},q.delayedCall(.01,P.update),z=.01,le=ue=0}else P.refresh();d&&nc()},e.register=function(t){return $a||=(q=t||Uo(),Ho()&&window.document&&e.enable(),Po),$a},e.defaults=function(e){if(e)for(var t in e)Ns[t]=e[t];return Ns},e.disable=function(e,t){Po=0,Z.forEach(function(n){return n[t?`kill`:`disable`](e)}),As(J,`wheel`,Vs),As(Y,`scroll`,Vs),clearInterval(oo),As(Y,`touchcancel`,Bo),As(to,`touchstart`,Bo),Os(As,Y,`pointerdown,touchstart,mousedown`,Ro),Os(As,Y,`pointerup,touchend,mouseup`,zo),X.kill(),Xo(As);for(var n=0;n0&&r.left+i0&&r.top+i=0&&Js.splice(t,5),Js.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),q.core.getCache(e),Co())}}):Js},Q.revert=function(e,t){return Zs(!e,t)},Q.create=function(e,t){return new Q(e,t)},Q.refresh=function(e){return e?Us(!0):($a||Q.register())&&ac(!0)},Q.update=function(e){return++K.cache&&lc(e===!0?2:0)},Q.clearScrollMemory=Qs,Q.maxScroll=function(e,t){return Yo(e,t?Ha:Ua)},Q.getScrollFunc=function(e,t){return Ka(Wa(e),t?Ha:Ua)},Q.getById=function(e){return Rs[e]},Q.getAll=function(){return Z.filter(function(e){return e.vars.id!==`ScrollSmoother`})},Q.isScrolling=function(){return!!No},Q.snapDirectional=Es,Q.addEventListener=function(e,t){var n=Ws[e]||(Ws[e]=[]);~n.indexOf(t)||n.push(t)},Q.removeEventListener=function(e,t){var n=Ws[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},Q.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=q.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&Qo(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return Qo(a)&&(a=a(),ks(Q,`refresh`,function(){return a=t.batchMax()})),ro(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(Q.create(t))}),n};var Tc=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},Ec=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(Qa.isTouch?` pinch-zoom`:``):`none`,t===eo&&e(to,n)},Dc={auto:1,scroll:1},Oc=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||q.core.getCache(i),o=jo(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==to&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(Dc[(s=ys(i)).overflowY]||Dc[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!Wo(i)&&(Dc[(s=ys(i)).overflowY]||Dc[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},kc=function(e,t,n,r){return Qa.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=Oc,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&ks(Y,Qa.eventTypes[0],Mc,!1,!0)},onDisable:function(){return As(Y,Qa.eventTypes[0],Mc,!0)}})},Ac=/(input|label|select|textarea)/i,jc,Mc=function(e){var t=Ac.test(e.target.tagName);(t||jc)&&(e._gsapAllow=!0,jc=t)},Nc=function(e){es(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||=`wheel,touch`,e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=Wa(e.target)||eo,l=q.core.globals().ScrollSmoother,u=l&&l.get(),d=So&&(e.content&&Wa(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=Ka(c,Ua),p=Ka(c,Ha),m=1,h=(Qa.isTouch&&J.visualViewport?J.visualViewport.scale*J.visualViewport.width:J.outerWidth)/J.innerWidth,g=0,_=Qo(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=kc(c,e.type,!0,i),x=function(){return y=!1},S=Bo,C=Bo,w=function(){s=Yo(c,Ua),C=io(+!!So,s),n&&(S=io(0,Yo(c,Ha))),v=ec},T=function(){d._gsap.y=Vo(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=Vo(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=Vo((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=K.cache,lc()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&q.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return So&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=Vo((J.visualViewport&&J.visualViewport.scale||1)/h),D.pause(),e!==m&&Ec(c,m>1.01||!n&&`x`),O=p(),k=f(),w(),v=ec},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{K.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=Tc(p,i,o,Yo(c,Ha)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=Tc(f,i,o,Yo(c,Ua)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(So&&D.vars.scrollY>=s||i>=s-1)&&q.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),jo()-g>1e3&&(v=0,g=jo())},e.onChange=function(e,t,r,i,a){if(ec!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&lc()},e.onEnable=function(){Ec(c,!n&&`x`),Q.addEventListener(`refresh`,j),ks(J,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){Ec(c,!0),As(J,`resize`,j),Q.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new Qa(e),o.iOS=So,So&&!f()&&f(1),So&&q.ticker.add(Bo),A=o._dc,D=q.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:Sc(f,f(),function(){return D.pause()})},onUpdate:lc,onComplete:A.vars.onComplete}),o};Q.sort=function(e){if(Qo(e))return Z.sort(e);var t=J.pageYOffset||0;return Q.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+J.innerHeight}),Z.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},Q.observe=function(e){return new Qa(e)},Q.normalizeScroll=function(e){if(e===void 0)return vo;if(e===!0&&vo)return vo.enable();if(e===!1){vo&&vo.kill(),vo=e;return}var t=e instanceof Qa?e:Nc(e);return vo&&vo.target===t.target&&vo.kill(),Wo(t.target)&&(vo=t),t},Q.core={_getVelocityProp:qa,_inputObserver:kc,_scrollers:K,_proxies:Aa,bridge:{ss:function(){No||qs(`scrollStart`),No=jo()},ref:function(){return so}}},Uo()&&q.registerPlugin(Q);var Pc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Fc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Ic=Math.PI/180;180/Math.PI;var Lc=Math.sin,Rc=Math.cos,zc=Math.abs,Bc=Math.sqrt,Vc=function(e){return typeof e==`number`},Hc=1e5,Uc=function(e){return Math.round(e*Hc)/Hc||0},Wc=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function Gc(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u1&&(n=Bc(b)*n,r=Bc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*Bc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,N=(-g-T)/n,P=(-_-E)/r,ee=j*j+M*M,F=(M<0?-1:1)*Math.acos(j/Bc(ee)),I=(j*P-M*N<0?-1:1)*Math.acos((j*N+M*P)/Bc(ee*(N*N+P*P)));isNaN(I)&&(I=f),!o&&I>0?I-=p:o&&I<0&&(I+=p),F%=p,I%=p;var te=Math.ceil(zc(I)/(p/4)),ne=[],re=I/te,ie=4/3*Lc(re/2)/(1+Rc(re/2)),ae=u*n,L=d*n,oe=d*-r,se=u*r,ce;for(ce=0;ce-1e-4?0:t}).match(Pc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l.5||zc(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=Kc(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;ul*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},sl=function(){function e(e,t,n){Xc||Qc(),this.id=e,tl&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match(nl),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(rl.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=qc(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&al(n,t.height,t.originY),this.segment=n,d=2;dh.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cxh||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();sl.version=`3.15.0`,sl.headless=!0,Zc()&&Yc.registerPlugin(sl),da.registerPlugin(Q,sl);var cl=sl.create(`fadeUp`,`0.25,0.1,0.25,1`),ll=`(prefers-reduced-motion: reduce)`,ul=(0,l.createContext)({ready:!0});function dl({children:e}){return(0,N.jsx)(ul.Provider,{value:{ready:!0},children:e})}var fl={opacity:0,y:24,filter:`blur(8px)`},pl={opacity:1,y:0,filter:`blur(0px)`,duration:.7,ease:cl,clearProps:`filter`};function $({children:e,delay:t=0,immediate:n=!1,className:r,style:i,as:a=`div`}){let o=(0,l.useRef)(null);return(0,l.useContext)(ul),(0,l.useEffect)(()=>{let e=o.current;if(!e||window.matchMedia(ll).matches)return;da.set(e,fl);let r=da.to(e,{...pl,delay:t,...n?{}:{scrollTrigger:{trigger:e,start:`top bottom-=60`,once:!0}}});return()=>{r.scrollTrigger?.kill(),r.kill()}},[t,n]),(0,N.jsx)(a,{ref:o,className:r,style:i,children:e})}function ml({children:e,className:t,step:n=.1}){let r=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=r.current;if(!e||window.matchMedia(ll).matches)return;let t=Array.from(e.children);da.set(t,fl);let i=da.to(t,{...pl,stagger:n,scrollTrigger:{trigger:e,start:`top bottom-=60`,once:!0}});return()=>{i.scrollTrigger?.kill(),i.kill()}},[n]),(0,N.jsx)(`div`,{ref:r,className:t,children:e})}function hl(){return(0,N.jsxs)(`div`,{className:`hcard hcard--side`,children:[(0,N.jsxs)(`header`,{className:`hcard__head`,children:[(0,N.jsx)(`span`,{className:`hcard__label`,children:`Verifier`}),(0,N.jsx)(`span`,{className:`hcard__badge hcard__badge--sage`,children:`9/9 passed`})]}),(0,N.jsxs)(`svg`,{className:`hcard__chart`,viewBox:`0 0 200 72`,"aria-hidden":!0,children:[(0,N.jsx)(`defs`,{children:(0,N.jsxs)(`linearGradient`,{id:`hcard-fill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,N.jsx)(`stop`,{offset:`0%`,stopColor:`#7a8c3e`,stopOpacity:`0.25`}),(0,N.jsx)(`stop`,{offset:`100%`,stopColor:`#7a8c3e`,stopOpacity:`0`})]})}),(0,N.jsx)(`polygon`,{points:`0,60 34,48 68,52 102,34 136,38 170,18 200,12 200,72 0,72`,fill:`url(#hcard-fill)`}),(0,N.jsx)(`polyline`,{points:`0,60 34,48 68,52 102,34 136,38 170,18 200,12`,fill:`none`,stroke:`#7a8c3e`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),(0,N.jsxs)(`div`,{className:`hcard__ticks t-mono`,children:[(0,N.jsx)(`span`,{children:`n-01`}),(0,N.jsx)(`span`,{children:`n-03`}),(0,N.jsx)(`span`,{children:`n-05`}),(0,N.jsx)(`span`,{children:`n-07`})]})]})}function gl(){return(0,N.jsxs)(`div`,{className:`hcard hcard--main`,children:[(0,N.jsxs)(`header`,{className:`hcard__head`,children:[(0,N.jsx)(`span`,{className:`hcard__label t-mono`,children:`/graph show`}),(0,N.jsxs)(`span`,{className:`hcard__pill`,children:[`live`,(0,N.jsx)(`span`,{className:`hcard__live-dot`})]})]}),(0,N.jsxs)(`svg`,{className:`hcard__dag`,viewBox:`0 0 240 104`,"aria-hidden":!0,children:[(0,N.jsxs)(`g`,{stroke:`#08150c`,strokeOpacity:`0.16`,strokeWidth:`1.4`,children:[(0,N.jsx)(`path`,{d:`M38 28 C 74 28 84 24 118 24`,fill:`none`}),(0,N.jsx)(`path`,{d:`M38 28 C 74 32 84 74 118 76`,fill:`none`}),(0,N.jsx)(`path`,{d:`M38 78 C 74 78 84 78 118 76`,fill:`none`}),(0,N.jsx)(`path`,{d:`M118 24 C 158 24 168 48 202 50`,fill:`none`}),(0,N.jsx)(`path`,{d:`M118 76 C 158 74 168 52 202 50`,fill:`none`})]}),(0,N.jsxs)(`g`,{children:[(0,N.jsx)(`circle`,{cx:`38`,cy:`28`,r:`7`,fill:`#7a8c3e`}),(0,N.jsx)(`path`,{d:`M35 28 l2.2 2.2 4-4.4`,stroke:`#fdf5eb`,strokeWidth:`1.6`,fill:`none`,strokeLinecap:`round`}),(0,N.jsx)(`circle`,{cx:`38`,cy:`78`,r:`7`,fill:`#7a8c3e`}),(0,N.jsx)(`path`,{d:`M35 78 l2.2 2.2 4-4.4`,stroke:`#fdf5eb`,strokeWidth:`1.6`,fill:`none`,strokeLinecap:`round`}),(0,N.jsx)(`circle`,{cx:`118`,cy:`24`,r:`7`,fill:`#c46b2d`,className:`hcard__dag-run`}),(0,N.jsx)(`circle`,{cx:`118`,cy:`76`,r:`7`,fill:`#c46b2d`,className:`hcard__dag-run hcard__dag-run--late`}),(0,N.jsx)(`circle`,{cx:`202`,cy:`50`,r:`7`,fill:`none`,stroke:`#b8afa4`,strokeWidth:`1.6`,strokeDasharray:`3 3`})]})]}),(0,N.jsxs)(`div`,{className:`hcard__legend`,children:[(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`i`,{className:`hcard__dot hcard__dot--olive`}),`2 done`]}),(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`i`,{className:`hcard__dot hcard__dot--terra`}),`2 running`]}),(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`i`,{className:`hcard__dot hcard__dot--taupe`}),`1 planned`]})]})]})}function _l(){return(0,N.jsxs)(`div`,{className:`hcard hcard--side`,children:[(0,N.jsxs)(`header`,{className:`hcard__head`,children:[(0,N.jsx)(`span`,{className:`hcard__label`,children:`Budget`}),(0,N.jsx)(`span`,{className:`hcard__badge hcard__badge--terra`,children:`cap 200k`})]}),(0,N.jsxs)(`p`,{className:`hcard__value`,children:[`184k `,(0,N.jsx)(`span`,{children:`/ 200k tokens`})]}),(0,N.jsx)(`div`,{className:`hcard__bars`,"aria-hidden":!0,children:[34,48,30,56,42,62,88,52,38,46,28,40].map((e,t)=>(0,N.jsx)(`span`,{className:t===6?`hcard__bar hcard__bar--peak`:`hcard__bar`,style:{height:`${e}%`}},t))}),(0,N.jsxs)(`div`,{className:`hcard__ticks t-mono`,children:[(0,N.jsx)(`span`,{children:`plan`}),(0,N.jsx)(`span`,{children:`fan out`}),(0,N.jsx)(`span`,{children:`verify`})]})]})}function vl(){return(0,N.jsxs)(`div`,{className:`hero-cards`,children:[(0,N.jsx)($,{immediate:!0,delay:.55,className:`hero-cards__slot hero-cards__slot--side`,children:(0,N.jsx)(hl,{})}),(0,N.jsx)($,{immediate:!0,delay:.65,className:`hero-cards__slot`,children:(0,N.jsx)(gl,{})}),(0,N.jsx)($,{immediate:!0,delay:.75,className:`hero-cards__slot hero-cards__slot--side`,children:(0,N.jsx)(_l,{})})]})}var yl=`modulepreload`,bl=function(e){return`/`+e},xl={},Sl=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=bl(t,n),t=s(t),t in xl)return;xl[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:yl,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Cl=(0,l.lazy)(()=>Sl(()=>import(`./HeroScene-Cl_ooGaM.js`).then(e=>({default:e.HeroScene})),__vite__mapDeps([0,1]))),wl={unix:{cmd:`curl -fsSL https://kigicli.dev/install.sh | bash`,label:`macOS / Linux`,micro:`macOS and Linux (arm64, x86_64).`},windows:{cmd:`irm https://kigicli.dev/install.ps1 | iex`,label:`Windows`,micro:`Windows on x86_64, via PowerShell.`}};function Tl(){return navigator.userAgent.toLowerCase().includes(`win`)?`windows`:`unix`}function El(){let[e,t]=(0,l.useState)(`unix`);return(0,l.useEffect)(()=>{t(Tl())},[]),(0,N.jsxs)(`section`,{className:`hero`,id:`top`,children:[(0,N.jsx)(l.Suspense,{fallback:null,children:(0,N.jsx)(Cl,{})}),(0,N.jsx)(`div`,{className:`hero__scrim`,"aria-hidden":!0}),(0,N.jsxs)(`div`,{className:`hero__inner shell`,children:[(0,N.jsxs)(`div`,{className:`hero__content`,children:[(0,N.jsx)($,{immediate:!0,children:(0,N.jsx)(`p`,{className:`t-eyebrow hero__eyebrow`,children:`Open-source. Apache-2.0. Runs in your terminal.`})}),(0,N.jsx)($,{immediate:!0,delay:.1,children:(0,N.jsx)(`h1`,{className:`t-display hero__title`,children:`The world’s first CLI with built-in Graph Engineering.`})}),(0,N.jsxs)($,{immediate:!0,delay:.4,className:`hero__install`,children:[(0,N.jsx)(`div`,{className:`hero__switch`,role:`tablist`,"aria-label":`Choose your platform`,children:[`unix`,`windows`].map(n=>(0,N.jsxs)(`button`,{role:`tab`,"aria-selected":e===n,className:A(`hero__switch-btn`,e===n&&`hero__switch-btn--active`),onClick:()=>t(n),children:[(0,N.jsx)(F,{children:n===`unix`?(0,N.jsxs)(`span`,{className:`hero__os-pair`,children:[(0,N.jsx)(ne,{}),(0,N.jsx)(ie,{})]}):(0,N.jsx)(re,{})}),wl[n].label]},n))}),(0,N.jsx)(ue,{command:wl[e].cmd,label:`Copy ${wl[e].label} install command`}),(0,N.jsx)(`p`,{className:`t-small t-tertiary hero__micro`,children:wl[e].micro})]}),(0,N.jsxs)($,{immediate:!0,delay:.5,className:`hero__ctas`,children:[(0,N.jsx)(P,{href:`#install`,size:`lg`,children:`Install Kigi`}),(0,N.jsx)(P,{href:`https://github.com/ELY-Open-Source/Kigi-CLI`,external:!0,variant:`secondary`,size:`lg`,children:`Star on GitHub`}),(0,N.jsx)(P,{href:`#graph`,variant:`ghost`,size:`lg`,children:`See what /graph does`})]})]}),(0,N.jsx)(vl,{})]})]})}function Dl({src:e,srcSmall:t,poster:n,caption:r,ratio:i=`16 / 10`,dark:a,className:o}){let s=(0,l.useRef)(null),[c,u]=(0,l.useState)(!1),d=(0,l.useRef)(!1),f=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>{d.current||!f.current||!e.paused||e.play().then(()=>u(!0),e=>{if(u(!1),e.name!==`AbortError`&&e.name!==`NotAllowedError`)throw e})},n=new IntersectionObserver(([n])=>{f.current=n.isIntersecting,n.isIntersecting?t():e.paused||(e.pause(),u(!1))},{threshold:.15});n.observe(e);let r=()=>u(!0),i=()=>u(!1);return e.addEventListener(`loadeddata`,t),e.addEventListener(`canplay`,t),e.addEventListener(`play`,r),e.addEventListener(`pause`,i),e.readyState>=2&&t(),()=>{n.disconnect(),e.removeEventListener(`loadeddata`,t),e.removeEventListener(`canplay`,t),e.removeEventListener(`play`,r),e.removeEventListener(`pause`,i)}},[]),(0,N.jsxs)(`figure`,{className:A(`videowell`,a&&`videowell--dark`,o),children:[(0,N.jsxs)(`div`,{className:`videowell__frame`,style:{aspectRatio:i},children:[(0,N.jsxs)(`video`,{ref:s,poster:n,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,preload:`auto`,"aria-label":r??`Product recording`,children:[t&&(0,N.jsx)(`source`,{src:t,type:`video/mp4`,media:`(max-width: 640px)`}),(0,N.jsx)(`source`,{src:e,type:`video/mp4`})]}),(0,N.jsx)(`button`,{type:`button`,className:`videowell__control`,onClick:()=>{let e=s.current;e&&(e.paused?(d.current=!1,e.play()):(d.current=!0,e.pause()))},"aria-label":c?`Pause video`:`Play video`,children:(0,N.jsx)(F,{children:c?(0,N.jsx)(C,{size:18,strokeWidth:1.5}):(0,N.jsx)(w,{size:18,strokeWidth:1.5})})})]}),r&&(0,N.jsx)(`figcaption`,{className:`videowell__caption t-small t-tertiary`,children:r})]})}function Ol(){return(0,N.jsx)(`section`,{id:`demo`,className:`demo`,children:(0,N.jsx)(`div`,{className:`shell`,children:(0,N.jsx)($,{className:`demo__media`,children:(0,N.jsx)(Dl,{src:`/video/main.mp4`,srcSmall:`/video/main-sm.mp4`,poster:`/video/main-poster.jpg`,caption:`Actual output. No mockups.`,ratio:`16 / 9`,dark:!0})})})})}var kl=[{icon:(0,N.jsx)(p,{size:18,strokeWidth:1.5}),command:`kigi`,title:`Full-screen TUI`,body:`Watch the agent work and steer it. Run /graph and the DAG draws itself in box characters.`,visual:`tui`},{icon:(0,N.jsx)(v,{size:18,strokeWidth:1.5}),command:`kigi -p`,title:`Headless in CI`,body:`One prompt in, one answer out, no UI. Treat the agent like any other build step.`,visual:`ci`},{icon:(0,N.jsx)(g,{size:18,strokeWidth:1.5}),command:`ACP`,title:`Docked in your editor`,body:`Kigi speaks the Agent Client Protocol. Keep your editor. Add the agent.`,visual:`editor`}];function Al(){return(0,N.jsxs)(`div`,{className:`surface__visual surface__visual--dark t-mono`,"aria-hidden":!0,children:[(0,N.jsxs)(`div`,{className:`surface__term-line`,children:[(0,N.jsx)(`span`,{className:`surface__dim`,children:`❯`}),` /graph add user auth to this API`]}),(0,N.jsxs)(`div`,{className:`surface__dag`,children:[(0,N.jsx)(`span`,{children:`┌─ plan ────────┐`}),(0,N.jsx)(`span`,{children:`│ ┌─[done]────┐ │`}),(0,N.jsx)(`span`,{children:`│ │ routes │ │`}),(0,N.jsx)(`span`,{children:`│ └────┬──────┘ │`}),(0,N.jsx)(`span`,{children:`│ ┌────┴──────┐ │`}),(0,N.jsx)(`span`,{children:`│ │ tests ▶ │ │`}),(0,N.jsx)(`span`,{children:`│ └───────────┘ │`}),(0,N.jsx)(`span`,{children:`└───────────────┘`})]})]})}function jl(){return(0,N.jsxs)(`div`,{className:`surface__visual surface__visual--dark t-mono`,"aria-hidden":!0,children:[(0,N.jsx)(`div`,{className:`surface__term-line`,children:(0,N.jsx)(`span`,{className:`surface__dim`,children:`# ci.yml`})}),(0,N.jsxs)(`div`,{className:`surface__term-line`,children:[`- run: `,(0,N.jsx)(`span`,{className:`surface__accent`,children:`kigi -p`}),` \\`]}),(0,N.jsx)(`div`,{className:`surface__term-line surface__indent`,children:`"migrate users table to uuid" \\`}),(0,N.jsx)(`div`,{className:`surface__term-line surface__indent`,children:`--budget 200000`})]})}function Ml(){return(0,N.jsxs)(`div`,{className:`surface__visual surface__visual--editor`,"aria-hidden":!0,children:[(0,N.jsxs)(`div`,{className:`surface__editor-pane`,children:[(0,N.jsx)(`div`,{className:`surface__editor-line`}),(0,N.jsx)(`div`,{className:`surface__editor-line`}),(0,N.jsx)(`div`,{className:`surface__editor-line surface__editor-line--short`}),(0,N.jsx)(`div`,{className:`surface__editor-line`})]}),(0,N.jsxs)(`div`,{className:`surface__editor-side t-mono`,children:[(0,N.jsx)(`div`,{className:`surface__term-line`,children:(0,N.jsx)(`span`,{className:`surface__dim`,children:`kigi`})}),(0,N.jsx)(`div`,{className:`surface__term-line surface__small`,children:`3 nodes done`}),(0,N.jsx)(`div`,{className:`surface__term-line surface__small surface__accent`,children:`verify ▶`})]})]})}function Nl(){return(0,N.jsx)(`section`,{id:`surfaces`,className:`section`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Surfaces`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`One agent. Run it where you work.`}),(0,N.jsxs)(`p`,{className:`t-body t-secondary`,children:[`Three surfaces. Same agent, same config, same `,(0,N.jsx)(`code`,{className:`t-mono`,children:`~/.kigi`}),`.`]})]}),(0,N.jsx)(ml,{className:`surfaces__grid`,children:kl.map(e=>(0,N.jsxs)(`article`,{className:`surface`,children:[(0,N.jsxs)(`header`,{className:`surface__head`,children:[(0,N.jsx)(`span`,{className:`surface__icon`,children:(0,N.jsx)(F,{children:e.icon})}),(0,N.jsx)(`code`,{className:`surface__command t-mono`,children:e.command})]}),(0,N.jsx)(`h3`,{className:`t-h3`,children:e.title}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:e.body}),e.visual===`tui`&&(0,N.jsx)(Al,{}),e.visual===`ci`&&(0,N.jsx)(jl,{}),e.visual===`editor`&&(0,N.jsx)(Ml,{})]},e.title))})]})})}var Pl=[{n:`01`,title:`Plan`,body:`Your objective becomes a dependency graph, validated before anything runs.`},{n:`02`,title:`Fan out`,body:`Independent nodes run in parallel, each in its own git worktree.`},{n:`03`,title:`Verify`,body:`A node that can't prove itself to an adversarial verifier doesn't merge.`},{n:`04`,title:`Replan`,body:`A worker that finds unplanned work flags DISCOVERED: and the graph grows. Append-only.`},{n:`05`,title:`Tighten`,body:`A topology optimizer drops dependencies that were never real.`},{n:`06`,title:`Re-check`,body:`A final node re-checks the whole objective before the run calls itself done.`}],Fl=[{cmd:`/graph [--budget ]`,desc:`start a graph run`},{cmd:`/graph status`,desc:`where things stand`},{cmd:`/graph show`,desc:`the DAG, drawn in box characters`},{cmd:`/graph pause | resume [--budget ]`,desc:`stop and pick back up`},{cmd:`/graph clear`,desc:`wipe the graph`}];function Il(){return(0,N.jsx)(`section`,{id:`graph`,className:`section graph`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Graph Engineering`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`One objective in. Verified work out.`}),(0,N.jsxs)(`p`,{className:`t-body t-secondary`,children:[`Type `,(0,N.jsx)(`code`,{className:`t-mono`,children:`/graph`}),` and an objective. It becomes a dependency DAG of autonomous agent loops. Not a longer prompt — a different way of running an agent.`]})]}),(0,N.jsxs)(`div`,{className:`graph__grid`,children:[(0,N.jsx)(ml,{className:`graph__steps`,children:Pl.map(e=>(0,N.jsxs)(`article`,{className:`graph__step`,children:[(0,N.jsx)(`span`,{className:`graph__step-n`,children:e.n}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h3`,{className:`t-h3`,children:e.title}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:e.body})]})]},e.n))}),(0,N.jsx)($,{delay:.15,className:`graph__media`,children:(0,N.jsx)(Dl,{src:`/video/graph-engineering.mp4`,srcSmall:`/video/graph-engineering-sm.mp4`,poster:`/video/graph-engineering-poster.jpg`,caption:`Every worker in its own worktree. Every merge gated by a verifier.`,ratio:`16 / 9`,dark:!0})})]}),(0,N.jsxs)(`div`,{className:`graph__panels`,children:[(0,N.jsxs)($,{className:`graph__panel graph__panel--dark`,children:[(0,N.jsx)(`h3`,{className:`t-h3`,children:`Commands`}),(0,N.jsx)(`ul`,{className:`graph__cmds t-mono`,children:Fl.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsx)(`code`,{className:`graph__cmd`,children:e.cmd}),(0,N.jsx)(`span`,{className:`graph__cmd-desc`,children:e.desc})]},e.cmd))})]}),(0,N.jsxs)($,{delay:.1,className:`graph__panel`,children:[(0,N.jsx)(`h3`,{className:`t-h3`,children:`State`}),(0,N.jsxs)(`p`,{className:`t-small t-secondary`,children:[`State lives in `,(0,N.jsx)(`code`,{className:`t-mono`,children:`.kigi/graph.jsonl`}),`, next to your code. Close the laptop, come back tomorrow, `,(0,N.jsx)(`code`,{className:`t-mono`,children:`/graph resume`}),` — or hand the repo to a teammate, who resumes the same run from the same file.`]}),(0,N.jsx)(`h3`,{className:`t-h3 graph__panel-gap`,children:`Config`}),(0,N.jsxs)(`p`,{className:`t-small t-secondary`,children:[`On by default; `,(0,N.jsx)(`code`,{className:`t-mono`,children:`KIGI_GRAPH=0`}),` turns it off.`,` `,(0,N.jsx)(`code`,{className:`t-mono`,children:`KIGI_GRAPH_CONCURRENCY`}),` sets parallel nodes (default 3).`,` `,(0,N.jsx)(`code`,{className:`t-mono`,children:`--budget`}),` caps tokens per run.`]})]})]})]})})}var Ll=[.05,.15,.25,.35];function Rl(){return(0,N.jsxs)(`div`,{className:`tenet__inner`,children:[(0,N.jsx)(`p`,{className:`tenet__inner-title`,children:`.kigi/graph.jsonl`}),(0,N.jsx)(`p`,{className:`tenet__inner-sub`,children:`graph state, in your repo`}),(0,N.jsxs)(`div`,{className:`tenet__donut-wrap`,children:[(0,N.jsxs)(`svg`,{className:`tenet__donut`,viewBox:`0 0 36 36`,"aria-hidden":!0,children:[(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`#c46b2d`,strokeWidth:`5`,strokeDasharray:`26.4 61.56`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`#7a8c3e`,strokeWidth:`5`,strokeDasharray:`22 65.96`,strokeDashoffset:`-26.4`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`#a8b87a`,strokeWidth:`5`,strokeDasharray:`17.6 70.36`,strokeDashoffset:`-48.4`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`#b8afa4`,strokeWidth:`5`,strokeDasharray:`22 65.96`,strokeDashoffset:`-66`})]}),(0,N.jsxs)(`div`,{className:`tenet__donut-center`,children:[(0,N.jsx)(`span`,{className:`tenet__donut-n`,children:`12`}),(0,N.jsx)(`span`,{className:`tenet__donut-l`,children:`nodes`})]})]})]})}var zl=[{icon:(0,N.jsx)(D,{size:18,strokeWidth:1.5}),title:`Nothing merges unverified`,body:`Every node faces an adversarial verifier before its work reaches your tree, and a final node re-checks the whole objective. Done is a verdict the graph has to earn.`,image:`/img/tenet-verify.webp`},{icon:(0,N.jsx)(f,{size:18,strokeWidth:1.5}),title:`Parallel work, isolated work`,body:`Independent nodes run at the same time, each in its own git worktree. Workers never share a working directory, so concurrency costs you no merge chaos.`,image:`/img/tenet-parallel.webp`},{icon:(0,N.jsx)(y,{size:18,strokeWidth:1.5}),title:`State you can walk away from`,body:`The graph persists to .kigi/graph.jsonl as it runs. Interrupt it, reboot, resume tomorrow. Plain JSONL in your repo, so a teammate can pick up the run you started.`,image:null},{icon:(0,N.jsx)(T,{size:18,strokeWidth:1.5}),title:`Replan without rewriting`,body:`Real codebases surprise you. A worker that hits out-of-scope work flags DISCOVERED: and the graph grows to cover it. The plan is append-only: agreed work is never silently rewritten.`,image:`/img/tenet-replan.webp`}];function Bl(){return(0,N.jsx)(`section`,{id:`tenets`,className:`section`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Tenets`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`What the graph is built on`}),(0,N.jsx)(`p`,{className:`t-body t-secondary`,children:`Four rules. Each one is a mechanism, not a value statement.`})]}),(0,N.jsx)(`div`,{className:`tenets__grid`,children:zl.map((e,t)=>(0,N.jsx)($,{delay:Ll[t],as:`div`,children:(0,N.jsxs)(`article`,{className:e.image?`tenet tenet--image`:`tenet tenet--panel`,children:[e.image&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`img`,{className:`tenet__bg`,src:e.image,alt:``,loading:`lazy`}),(0,N.jsx)(`div`,{className:`tenet__overlay`,"aria-hidden":!0})]}),(0,N.jsxs)(`header`,{className:`tenet__top`,children:[(0,N.jsx)(F,{children:e.icon}),(0,N.jsx)(`h3`,{className:`tenet__title`,children:e.title})]}),!e.image&&(0,N.jsx)(Rl,{}),(0,N.jsx)(`p`,{className:`tenet__body`,children:e.body})]})},e.title))})]})})}var Vl=[{title:`One prompt, many items`,body:`A prompt template holding {{item}} plus a list. Each entry becomes a member, and the call returns when the last one lands.`},{title:`Paced like a fleet`,body:`Five start at once, the rest every 700ms. Rate limits shrink the fleet instead of failing it, and capacity comes back as the window clears.`},{title:`Disjoint scopes`,body:`Members share one working tree, so each needs its own files. Read-only scopes may overlap freely.`}];function Hl(){return(0,N.jsx)(`section`,{id:`swarm`,className:`section swarm`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Agent Swarm`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`Same prompt. Twelve files. One pass.`}),(0,N.jsxs)(`p`,{className:`t-body t-secondary`,children:[(0,N.jsx)(`code`,{className:`t-mono`,children:`/swarm`}),` fans one instruction across up to 128 subagents. Where`,` `,(0,N.jsx)(`code`,{className:`t-mono`,children:`/graph`}),` plans dependencies, a swarm is pure breadth.`]})]}),(0,N.jsxs)(`div`,{className:`swarm__grid`,children:[(0,N.jsx)($,{className:`swarm__demo`,children:(0,N.jsxs)(`div`,{className:`swarm__term t-mono`,"aria-hidden":!0,children:[(0,N.jsxs)(`p`,{className:`swarm__term-line`,children:[(0,N.jsx)(`span`,{className:`swarm__dim`,children:`>`}),` `,(0,N.jsx)(`span`,{className:`swarm__accent`,children:`/swarm`}),` add a doc comment to every crate`]}),(0,N.jsx)(`div`,{className:`swarm__fleet`,children:[{item:`kigi-agent`,state:`done`},{item:`kigi-tools`,state:`done`},{item:`kigi-shell`,state:`run`},{item:`kigi-tui`,state:`run`},{item:`kigi-hooks`,state:`wait`}].map(e=>(0,N.jsxs)(`p`,{className:`swarm__member swarm__member--${e.state}`,children:[(0,N.jsx)(`span`,{className:`swarm__dot`}),e.item]},e.item))}),(0,N.jsx)(`p`,{className:`swarm__term-line swarm__dim`,children:`5 members · 2 done · 2 running · 1 queued`})]})}),(0,N.jsx)(ml,{className:`swarm__traits`,children:Vl.map(e=>(0,N.jsxs)(`article`,{className:`swarm__trait`,children:[(0,N.jsx)(`h3`,{className:`t-h3`,children:e.title}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:e.body})]},e.title))})]})]})})}var Ul=[`Kimi Code`,`Claude Pro / Max`,`ChatGPT Plus / Pro (Codex)`,`GitHub Copilot`,`xAI Grok`],Wl=[`OpenAI`,`Anthropic`,`Google Gemini`,`DeepSeek`,`Groq`,`Mistral`,`Fireworks AI`,`OpenRouter`,`Together AI`,`Cerebras`,`NVIDIA NIM`,`Vercel AI Gateway`,`xAI (Grok)`,`Qwen Token Plan`,`Qwen Token Plan (China)`,`Z.AI`,`Z.AI Coding (China)`,`Xiaomi MiMo`,`Xiaomi Token Plan (China)`,`MiniMax`,`MiniMax (China)`,`Moonshot (cn)`,`Moonshot (ai)`,`Kimi For Coding`],Gl=[`Model lists sync at sign-in, so new models appear without a Kigi update.`,`/model switches mid-session. /effort sets the thinking level.`,`Each provider's token is stored under its own key and never sent to another.`,`web_search needs a Kimi Code sign-in; web_fetch works on any provider.`];function Kl(){return(0,N.jsx)(`section`,{id:`providers`,className:`section providers`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Providers`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`Already paying for Claude Max? Use it.`}),(0,N.jsx)(`p`,{className:`t-body t-secondary`,children:`29 platforms. Five sign in with a subscription you already have — no API key, no second bill.`})]}),(0,N.jsxs)(`div`,{className:`providers__grid`,children:[(0,N.jsxs)($,{className:`providers__panel providers__panel--accent`,children:[(0,N.jsxs)(`header`,{className:`providers__panel-head`,children:[(0,N.jsx)(F,{children:(0,N.jsx)(m,{size:18,strokeWidth:1.5})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:`Sign in with your subscription`})]}),(0,N.jsx)(`ul`,{className:`providers__list`,children:Ul.map(e=>(0,N.jsxs)(`li`,{className:`providers__item`,children:[(0,N.jsx)(`span`,{className:`providers__dot`,"aria-hidden":!0}),e]},e))})]}),(0,N.jsxs)($,{delay:.08,className:`providers__panel`,children:[(0,N.jsxs)(`header`,{className:`providers__panel-head`,children:[(0,N.jsx)(F,{children:(0,N.jsx)(b,{size:18,strokeWidth:1.5})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:`Bring your own key`})]}),(0,N.jsx)(`ul`,{className:`providers__list providers__list--compact`,children:Wl.map(e=>(0,N.jsx)(`li`,{className:`providers__item providers__item--compact t-small`,children:e},e))})]})]}),(0,N.jsx)($,{className:`providers__details`,children:Gl.map(e=>(0,N.jsx)(`p`,{className:`t-small t-secondary providers__detail`,children:e},e))})]})})}function ql(){return(0,N.jsx)(`section`,{id:`trust`,className:`section trust`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)(`div`,{className:`trust__grid`,children:[(0,N.jsxs)(`div`,{className:`trust__main`,children:[(0,N.jsxs)($,{children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Trust`}),(0,N.jsx)(`h2`,{className:`t-h2 trust__title`,children:`Zero telemetry. Your keys stay yours.`})]}),(0,N.jsx)($,{delay:.1,children:(0,N.jsx)(`p`,{className:`t-quote`,children:`Kigi talks to the APIs you configured, the Kigi release server, and your own MCP servers. Nothing else. There is no analytics endpoint to opt out of because there is no analytics endpoint.`})}),(0,N.jsx)($,{delay:.2,children:(0,N.jsx)(`p`,{className:`t-small t-secondary trust__fine`,children:`Apache-2.0, so you don't have to take that on faith. An independent project, not affiliated with Moonshot AI or xAI.`})})]}),(0,N.jsx)($,{delay:.15,className:`trust__figure`,as:`figure`,children:(0,N.jsx)(`img`,{src:`/img/trust-key.webp`,alt:`A single brass key resting on cream linen`,loading:`lazy`})})]}),(0,N.jsxs)(`div`,{className:`trust__cards`,children:[(0,N.jsxs)($,{className:`trust__card`,children:[(0,N.jsx)(`span`,{className:`trust__icon`,children:(0,N.jsx)(F,{children:(0,N.jsx)(D,{size:18,strokeWidth:1.5})})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:`Auditable`}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:`Every tenet above is a mechanism you can read in the source. Development in the open.`})]}),(0,N.jsxs)($,{delay:.1,className:`trust__card`,children:[(0,N.jsx)(`span`,{className:`trust__icon`,children:(0,N.jsx)(F,{children:(0,N.jsx)(x,{size:18,strokeWidth:1.5})})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:`Coexists with the official CLI`}),(0,N.jsxs)(`p`,{className:`t-small t-secondary`,children:[`Its own binary, its own `,(0,N.jsx)(`code`,{className:`t-mono`,children:`~/.kigi`}),`, keyring entries and`,` `,(0,N.jsx)(`code`,{className:`t-mono`,children:`KIGI_*`}),` env vars. `,(0,N.jsx)(`code`,{className:`t-mono`,children:`kigi import-kimi`}),` `,`copies your old config once, read-only.`]})]})]})]})})}var Jl=[{icon:(0,N.jsx)(p,{size:18,strokeWidth:1.5}),title:`You live in the terminal`,body:`Run kigi and stay there. Close the lid mid-run; the graph resumes from .kigi/graph.jsonl.`},{icon:(0,N.jsx)(E,{size:18,strokeWidth:1.5}),title:`You own the pipeline`,body:`kigi -p runs headless. Cap spend with --budget, match your runner with KIGI_GRAPH_CONCURRENCY.`},{icon:(0,N.jsx)(g,{size:18,strokeWidth:1.5}),title:`You stay in your editor`,body:`Kigi docks into any ACP editor. Same agent, same keys, same graphs. You stopped alt-tabbing.`}];function Yl(){return(0,N.jsx)(`section`,{id:`built-for`,className:`section`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Built for`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`Built for how you already work`})]}),(0,N.jsx)(ml,{className:`builtfor__grid`,children:Jl.map(e=>(0,N.jsxs)(`article`,{className:`builtfor__card`,children:[(0,N.jsx)(`span`,{className:`builtfor__icon`,children:(0,N.jsx)(F,{children:e.icon})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:e.title}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:e.body})]},e.title))})]})})}var Xl={unix:{label:`macOS / Linux`,cmd:`curl -fsSL https://kigicli.dev/install.sh | bash`},windows:{label:`Windows (PowerShell)`,cmd:`irm https://kigicli.dev/install.ps1 | iex`}},Zl=[`macOS and Linux on arm64 and x86_64. Windows on x86_64.`,`Downloads are checksummed against the release SHA256SUMS.`,`kigi update handles upgrades from then on.`,`Prefer source? Rust 1.97.0, then cargo build --profile release-dist -p kigi-bin.`];function Ql(){let[e,t]=(0,l.useState)(`unix`);return(0,N.jsx)(`section`,{id:`install`,className:`section install`,children:(0,N.jsxs)(`div`,{className:`shell install__inner`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Install`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`One file. No runtime. Thirty seconds.`})]}),(0,N.jsxs)($,{className:`install__flow`,children:[(0,N.jsx)(`div`,{className:`install__tabs`,role:`tablist`,"aria-label":`Platform`,children:[`unix`,`windows`].map(n=>(0,N.jsxs)(`button`,{role:`tab`,"aria-selected":e===n,className:A(`install__tab`,e===n&&`install__tab--active`),onClick:()=>t(n),children:[(0,N.jsx)(F,{children:n===`unix`?(0,N.jsxs)(`span`,{className:`install__os-pair`,children:[(0,N.jsx)(ne,{}),(0,N.jsx)(ie,{})]}):(0,N.jsx)(re,{})}),Xl[n].label]},n))}),(0,N.jsxs)(`div`,{className:`install__steps`,children:[(0,N.jsxs)(`div`,{className:`install__step`,children:[(0,N.jsx)(`span`,{className:`install__step-n t-mono`,children:`1`}),(0,N.jsx)(ue,{dark:!0,command:Xl[e].cmd,label:`Copy ${Xl[e].label} installer`})]}),(0,N.jsxs)(`div`,{className:`install__step`,children:[(0,N.jsx)(`span`,{className:`install__step-n t-mono`,children:`2`}),(0,N.jsx)(ue,{dark:!0,command:`kigi login`,label:`Copy kigi login`})]}),(0,N.jsxs)(`div`,{className:`install__step`,children:[(0,N.jsx)(`span`,{className:`install__step-n t-mono`,children:`3`}),(0,N.jsx)(ue,{dark:!0,command:`kigi`,label:`Copy kigi`})]})]})]}),(0,N.jsx)($,{className:`install__notes`,children:Zl.map(e=>(0,N.jsxs)(`p`,{className:`install__note t-small`,children:[(0,N.jsx)(F,{children:(0,N.jsx)(m,{size:18,strokeWidth:1.5,color:`var(--olive)`})}),(0,N.jsx)(`span`,{children:e})]},e))})]})})}var $l=[{q:`Do I need an API key?`,a:`Not if you already pay for Kimi Code, Claude Pro/Max, ChatGPT Plus/Pro, GitHub Copilot, or xAI Grok. Otherwise any of 24 API-key providers works.`},{q:`What does /graph do differently?`,a:`One agent loop becomes a dependency DAG. Independent nodes run in parallel, each in its own git worktree, and every node passes an adversarial verifier before it merges.`},{q:`How is a swarm different from a graph?`,a:`A swarm is one prompt over many items, fanned out and returned as one result. A graph plans dependencies and verifies each node. Swarm for breadth, graph for work that has to be right.`},{q:`Can I cap what a run costs?`,a:`--budget caps a graph run. KIGI_GRAPH_CONCURRENCY sets how many nodes run at once (default 3), KIGI_AGENT_SWARM_MAX_CONCURRENCY does the same for swarms.`},{q:`Can I turn graph mode off?`,a:`KIGI_GRAPH=0. Kigi works as a regular coding agent without it.`},{q:`What leaves my machine?`,a:`The provider APIs you configured, the Kigi release server, and your own MCP servers. No telemetry. No provider's key is ever sent to another.`},{q:`Does it have web search?`,a:`web_search runs on the Kimi search service, so it needs a Kimi Code sign-in. web_fetch reads a URL on any provider. --disable-web-search turns both off.`},{q:`How do I update?`,a:`kigi update. Installs are checksummed against the release SHA256SUMS.`}];function eu({q:e,a:t,open:n,onToggle:r}){return(0,N.jsxs)(`div`,{className:A(`faq__item`,n&&`faq__item--open`),children:[(0,N.jsxs)(`button`,{type:`button`,className:`faq__q`,"aria-expanded":n,onClick:r,children:[(0,N.jsx)(`span`,{className:`t-h3`,children:e}),(0,N.jsx)(`span`,{className:`faq__chevron`,"aria-hidden":!0,children:(0,N.jsx)(F,{children:(0,N.jsx)(h,{size:18,strokeWidth:1.5})})})]}),(0,N.jsx)(`div`,{className:`faq__a-wrap`,"aria-hidden":!n,children:(0,N.jsx)(`p`,{className:`faq__a t-body t-secondary`,children:t})})]})}function tu(){let[e,t]=(0,l.useState)(0);return(0,N.jsx)(`section`,{id:`faq`,className:`section`,children:(0,N.jsxs)(`div`,{className:`shell faq__inner`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`FAQ`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`Questions, answered`})]}),(0,N.jsx)($,{className:`faq__list`,children:$l.map((n,r)=>(0,N.jsx)(eu,{q:n.q,a:n.a,open:e===r,onToggle:()=>t(e===r?null:r)},n.q))})]})})}function nu(){return(0,N.jsx)(`section`,{id:`cta`,className:`section cta`,children:(0,N.jsxs)(`div`,{className:`shell cta__inner`,children:[(0,N.jsx)($,{children:(0,N.jsx)(`h2`,{className:`t-display cta__title`,children:`Your next feature is one command away.`})}),(0,N.jsx)($,{delay:.1,children:(0,N.jsx)(`p`,{className:`t-body cta__sub`,children:`Sign in with the subscription you already have and run your first graph.`})}),(0,N.jsx)($,{delay:.2,className:`cta__cmd`,children:(0,N.jsx)(ue,{command:`curl -fsSL https://kigicli.dev/install.sh | bash`,label:`Copy install command`})}),(0,N.jsxs)($,{delay:.3,className:`cta__actions`,children:[(0,N.jsx)(P,{href:`#install`,size:`lg`,className:`btn--invert`,children:`Install Kigi`}),(0,N.jsx)(P,{href:`https://github.com/ELY-Open-Source/Kigi-CLI`,external:!0,variant:`secondary`,size:`lg`,className:`btn--invert`,children:`Star on GitHub`}),(0,N.jsx)(P,{href:`#graph`,variant:`ghost`,size:`lg`,className:`btn--invert`,children:`Run your first graph`})]}),(0,N.jsx)($,{delay:.4,children:(0,N.jsx)(`p`,{className:`t-small cta__micro`,children:`Apache-2.0. Zero telemetry. Not affiliated with Moonshot AI or xAI.`})})]})})}var ru=`https://github.com/ELY-Open-Source/Kigi-CLI`,iu=`${ru}/blob/main/README.md`,au=[{title:`Product`,links:[{label:`Terminal UI`,href:`#surfaces`},{label:`Headless mode`,href:`#surfaces`},{label:`Editor integration`,href:`#surfaces`},{label:`Graph Engineering`,href:`#graph`},{label:`Agent Swarm`,href:`#swarm`},{label:`Providers`,href:`#providers`}]},{title:`Docs`,links:[{label:`Quickstart`,href:`${iu}#user-content-installation`},{label:`/graph commands`,href:`${iu}#user-content-graph-engineering`},{label:`Providers and sign-in`,href:`${iu}#user-content-providers-and-api-keys`},{label:`Configuration`,href:`${iu}#user-content-providers-and-api-keys`},{label:`Build from source`,href:`${iu}#user-content-building-from-source`}]},{title:`Project`,links:[{label:`GitHub`,href:ru},{label:`Releases`,href:`${ru}/releases`},{label:`Issues`,href:`${ru}/issues`},{label:`License: Apache-2.0`,href:`${ru}/src/branch/main/LICENSE`}]}];function ou(){return(0,N.jsx)(`footer`,{className:`footer`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)(`div`,{className:`footer__grid`,children:[(0,N.jsxs)(`div`,{className:`footer__brand`,children:[(0,N.jsx)(`a`,{className:`footer__logo`,href:`#top`,children:`kigi`}),(0,N.jsx)(`p`,{className:`t-small t-tertiary`,children:`The open-source CLI coding agent with built-in Graph Engineering.`}),(0,N.jsx)(`a`,{className:`footer__gh`,href:ru,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Kigi on GitHub`,children:(0,N.jsx)(F,{label:`GitHub`,children:(0,N.jsx)(te,{})})})]}),au.map(e=>(0,N.jsxs)(`nav`,{className:`footer__col`,"aria-label":e.title,children:[(0,N.jsx)(`h3`,{className:`footer__col-title t-small`,children:e.title}),(0,N.jsx)(`ul`,{children:e.links.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsx)(`a`,{className:`footer__link t-small`,href:e.href,children:e.label})},e.label))})]},e.title))]}),(0,N.jsx)(`div`,{className:`footer__bottom`,children:(0,N.jsx)(`p`,{className:`t-small t-tertiary`,children:`An independent open-source project, not affiliated with Moonshot AI or xAI. "Claude," "ChatGPT," "Copilot," and "Grok" belong to their respective owners.`})})]})})}var su=`1.3.25`;function cu(e,t,n){return Math.max(e,Math.min(t,n))}function lu(e,t,n){return(1-n)*e+n*t}function uu(e,t,n,r){return lu(e,t,1-Math.exp(-n*r))}function du(e,t){return(e%t+t)%t}var fu=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let n=cu(0,this.currentTime/this.duration,1);t=n>=1;let r=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=uu(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:i,onStart:a,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=o}};function pu(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,r)},t)}}var mu=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:n=!0,debounce:r=250}={}){this.wrapper=e,this.content=t,n&&(this.debouncedResize=pu(this.resize,r),this.wrapper instanceof Window?window.addEventListener(`resize`,this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener(`resize`,this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},hu=class{events={};emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},gu=100/6,_u={passive:!1};function vu(e,t){return e===1?gu:e===2?t:1}var yu=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new hu;constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener(`resize`,this.onWindowResize),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,_u),this.element.addEventListener(`touchstart`,this.onTouchStart,_u),this.element.addEventListener(`touchmove`,this.onTouchMove,_u),this.element.addEventListener(`touchend`,this.onTouchEnd,_u)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener(`resize`,this.onWindowResize),this.element.removeEventListener(`wheel`,this.onWheel,_u),this.element.removeEventListener(`touchstart`,this.onTouchStart,_u),this.element.removeEventListener(`touchmove`,this.onTouchMove,_u),this.element.removeEventListener(`touchend`,this.onTouchEnd,_u)}onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit(`scroll`,{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit(`scroll`,{deltaX:r,deltaY:i,event:e})};onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e,i=vu(r,this.window.width),a=vu(r,this.window.height);t*=i,n*=a,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},bu=e=>Math.min(1,1.001-2**(-10*e)),xu=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new fu;emitter=new hu;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaExponent:o=1.7,duration:s,easing:c,lerp:l=.1,infinite:u=!1,orientation:d=`vertical`,gestureOrientation:f=d===`horizontal`?`both`:`vertical`,touchMultiplier:p=1,wheelMultiplier:m=1,autoResize:h=!0,prevent:g,virtualScroll:_,overscroll:v=!0,autoRaf:y=!1,anchors:b=!1,autoToggle:x=!1,allowNestedScroll:S=!1,__experimental__naiveDimensions:C=!1,naiveDimensions:w=C,stopInertiaOnNavigate:T=!1}={}){window.lenisVersion=su,window.lenis||(window.lenis={}),window.lenis.version=su,d===`horizontal`&&(window.lenis.horizontal=!0),i===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!e||e===document.documentElement)&&(e=window),typeof s==`number`&&typeof c!=`function`?c=bu:typeof c==`function`&&typeof s!=`number`&&(s=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:a,touchInertiaExponent:o,duration:s,easing:c,lerp:l,infinite:u,gestureOrientation:f,orientation:d,touchMultiplier:p,wheelMultiplier:m,autoResize:h,prevent:g,virtualScroll:_,overscroll:v,autoRaf:y,anchors:b,autoToggle:x,allowNestedScroll:S,naiveDimensions:w,stopInertiaOnNavigate:T},this.dimensions=new mu(e,t,{autoResize:h}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.addEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener(`click`,this.onClick),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown),this.virtualScroll=new yu(n,{touchMultiplier:p,wheelMultiplier:m}),this.virtualScroll.on(`scroll`,this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener(`transitionend`,this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.removeEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener(`click`,this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling===`smooth`||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent(`scrollend`,{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?`overflow-x`:`overflow-y`;return getComputedStyle(this.rootElement)[e]}checkOverflow(){[`hidden`,`clip`].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName?.includes(`overflow`)&&e.target===this.rootElement&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:`instant`}):this.options.wrapper.scrollTo({top:e,behavior:`instant`})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),n=new URL(window.location.href);if(this.options.anchors){let e=t.find(e=>n.host===e.host&&n.pathname===e.pathname&&e.hash);if(e){let t=typeof this.options.anchors==`object`&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(e.hash);this.scrollTo(n,t);return}}if(this.options.stopInertiaOnNavigate&&t.some(e=>n.host===e.host&&n.pathname!==e.pathname)){this.reset();return}};onPointerDown=e=>{e.button===1&&this.reset()};isTouchOnSelectionHandle(e){let t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return!1;let n=e.targetTouches[0]??e.changedTouches[0];if(!n)return!1;let r=t.getRangeAt(0).getClientRects();if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=Math.hypot(n.clientX-i.left,n.clientY-i.top)<=40,s=Math.hypot(n.clientX-a.right,n.clientY-a.bottom)<=40;return o||s}onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);if(i&&this.isIos&&(r.type===`touchstart`&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(r)),this._isDraggingSelection)){r.type===`touchend`&&(this._isDraggingSelection=!1);return}this.isTouching=r.type===`touchstart`||r.type===`touchmove`;let o=t===0&&n===0;if(this.options.syncTouch&&i&&r.type===`touchstart`&&o&&!this.isStopped&&!this.isLocked){this.reset();return}let s=this.options.gestureOrientation===`vertical`&&n===0||this.options.gestureOrientation===`horizontal`&&t===0;if(o||s)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let l=this.options.prevent,u=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`;if(c.find(e=>e instanceof HTMLElement&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.(`data-lenis-prevent`)||u===`vertical`&&e.hasAttribute?.(`data-lenis-prevent-vertical`)||u===`horizontal`&&e.hasAttribute?.(`data-lenis-prevent-horizontal`)||i&&e.hasAttribute?.(`data-lenis-prevent-touch`)||a&&e.hasAttribute?.(`data-lenis-prevent-wheel`)||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){r.cancelable&&r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling=`native`,this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation===`both`?d=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(d=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();let f=i&&this.options.syncTouch,p=i&&r.type===`touchend`;p&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit(`scroll`,this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling===`native`){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling=`native`),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty(`overflow`);return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty(`overflow`,`clip`);return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,programmatic:i=!0,lerp:a=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:s=i?this.options.easing:void 0,onStart:c,onComplete:l,force:u=!1,userData:d}={}){if((this.isStopped||this.isLocked)&&!u)return;let f=e,p=t;if(typeof f==`string`&&[`top`,`left`,`start`,`#`].includes(f))f=0;else if(typeof f==`string`&&[`bottom`,`right`,`end`].includes(f))f=this.limit;else{let e=null;if(typeof f==`string`?(e=f.startsWith(`#`)?document.getElementById(f.slice(1)):document.querySelector(f),e||(f===`#top`?f=0:console.warn(`Lenis: Target not found`,f))):f instanceof HTMLElement&&f?.nodeType&&(e=f),e){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();p-=this.isHorizontal?e.left:e.top}let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=this.isHorizontal?Number.parseFloat(n.scrollMarginLeft):Number.parseFloat(n.scrollMarginTop),i=getComputedStyle(this.rootElement),a=this.isHorizontal?Number.parseFloat(i.scrollPaddingLeft):Number.parseFloat(i.scrollPaddingTop);f=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(r)?0:r)-(Number.isNaN(a)?0:a)}}if(typeof f==`number`){if(f+=p,this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let e=f-this.animatedScroll;e>this.limit/2?f-=this.limit:e<-this.limit/2&&(f+=this.limit)}}else f=cu(0,f,this.limit);if(f===this.targetScroll){c?.(this),l?.(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=f),typeof o==`number`&&typeof s!=`function`?s=bu:typeof s==`function`&&typeof o!=`number`&&(o=1),this.animate.fromTo(this.animatedScroll,f,{duration:o,easing:s,lerp:a,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling=`smooth`,c?.(this)},onUpdate:(e,t)=>{this.isScrolling=`smooth`,this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),i&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){let r=Date.now();e._lenis||={};let i=e._lenis,a,o,s,c,l,u,d,f,p,m;if(r-(i.time??0)>2e3){i.time=Date.now();let t=window.getComputedStyle(e);if(i.computedStyle=t,a=[`auto`,`overlay`,`scroll`].includes(t.overflowX),o=[`auto`,`overlay`,`scroll`].includes(t.overflowY),l=[`auto`].includes(t.overscrollBehaviorX),u=[`auto`].includes(t.overscrollBehaviorY),i.hasOverflowX=a,i.hasOverflowY=o,!(a||o))return!1;d=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,m=e.clientHeight,s=d>p,c=f>m,i.isScrollableX=s,i.isScrollableY=c,i.scrollWidth=d,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=m,i.hasOverscrollBehaviorX=l,i.hasOverscrollBehaviorY=u}else s=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,d=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,m=i.clientHeight,l=i.hasOverscrollBehaviorX,u=i.hasOverscrollBehaviorY;if(!(a&&s||o&&c))return!1;let h=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`,g,_,v,y,b,x;if(h===`horizontal`)g=Math.round(e.scrollLeft),_=d-p,v=t,y=a,b=s,x=l;else if(h===`vertical`)g=Math.round(e.scrollTop),_=f-m,v=n,y=o,b=c,x=u;else return!1;return!x&&(g>=_||g<=0)||(v>0?g<_:g>0)&&y&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?`x`:`y`]}get isHorizontal(){return this.options.orientation===`horizontal`}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?du(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling===`smooth`}get className(){let e=`lenis`;return this.options.autoToggle&&(e+=` lenis-autoToggle`),this.isStopped&&(e+=` lenis-stopped`),this.isLocked&&(e+=` lenis-locked`),this.isScrolling&&(e+=` lenis-scrolling`),this.isScrolling===`smooth`&&(e+=` lenis-smooth`),e}updateClassName(){this.cleanUpClassName(),this.className.split(` `).forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(let e of Array.from(this.rootElement.classList))(e===`lenis`||e.startsWith(`lenis-`))&&this.rootElement.classList.remove(e)}};da.registerPlugin(Q);var Su=`(prefers-reduced-motion: reduce)`;function Cu({children:e}){return(0,l.useEffect)(()=>{if(window.matchMedia(Su).matches)return;let e=new xu({duration:1,easing:e=>Math.min(1,1.001-2**(-10*e)),smoothWheel:!0,touchMultiplier:1.6});e.on(`scroll`,Q.update);let t=t=>{e.raf(t*1e3)};da.ticker.add(t),da.ticker.lagSmoothing(0);let n=()=>Q.refresh();window.addEventListener(`load`,n);let r=t=>{let n=t.target.closest(`a[href^="#"]`);if(!n)return;let r=n.getAttribute(`href`);if(!r||r===`#`)return;let i=document.querySelector(r);i&&(t.preventDefault(),e.scrollTo(i,{offset:-72}),history.pushState(null,``,r))};return document.addEventListener(`click`,r),()=>{da.ticker.remove(t),window.removeEventListener(`load`,n),document.removeEventListener(`click`,r),e.destroy()}},[]),(0,N.jsx)(N.Fragment,{children:e})}function wu(){return(0,N.jsx)(Cu,{children:(0,N.jsxs)(dl,{children:[(0,N.jsx)(le,{}),(0,N.jsxs)(`main`,{id:`main`,children:[(0,N.jsx)(El,{}),(0,N.jsx)(Ol,{}),(0,N.jsx)(Nl,{}),(0,N.jsx)(Il,{}),(0,N.jsx)(Bl,{}),(0,N.jsx)(Hl,{}),(0,N.jsx)(Kl,{}),(0,N.jsx)(ql,{}),(0,N.jsx)(Yl,{}),(0,N.jsx)(Ql,{}),(0,N.jsx)(tu,{}),(0,N.jsx)(nu,{})]}),(0,N.jsx)(ou,{})]})})}var Tu=document.getElementById(`root`);if(!Tu)throw Error(`Missing #root element`);(0,k.createRoot)(Tu).render((0,N.jsx)(l.StrictMode,{children:(0,N.jsx)(wu,{})}));export{n,M as t}; \ No newline at end of file +`}),m=d(`Check`,{O:``,F:``}),h=d(`ChevronDown`,{F:``,O:``}),g=d(`Code`,{O:``,F:``}),_=d(`Copy`,{O:``,F:``}),v=d(`Cpu`,{O:``,F:``}),y=d(`FolderCheck`,{O:``,F:``}),b=d(`Key`,{O:``,F:``}),x=d(`Lock`,{O:``,F:``}),S=d(`Menu`,{O:``,F:``}),C=d(`Pause`,{O:``,F:``}),w=d(`Play`,{O:``,F:``}),T=d(`Refresh`,{O:``,F:``}),E=d(`Server`,{O:``,F:``}),D=d(`ShieldCheck`,{O:``,F:``}),O=d(`X`,{O:``,F:``}),k=c();function A(...e){return e.filter(Boolean).join(` `)}var j=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),M=e(((e,t)=>{t.exports=j()})),N=M();function P({children:e,href:t,variant:n=`primary`,size:r=`md`,external:i,className:a,onClick:o,ariaLabel:s}){let c=A(`btn`,`btn--${n}`,r===`lg`&&`btn--lg`,a);return t?(0,N.jsx)(`a`,{className:c,href:t,"aria-label":s,...i?{target:`_blank`,rel:`noopener noreferrer`}:{},onClick:o,children:e}):(0,N.jsx)(`button`,{className:c,onClick:o,"aria-label":s,type:`button`,children:e})}var ee={width:24,height:24,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0};function F({children:e,label:t}){return(0,N.jsx)(`span`,{style:ee,role:t?`img`:void 0,"aria-label":t,"aria-hidden":!t||void 0,children:e})}var I={width:18,height:18,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":!0};function te(){return(0,N.jsx)(`svg`,{...I,children:(0,N.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})})}function ne(){return(0,N.jsx)(`svg`,{...I,children:(0,N.jsx)(`path`,{d:`M16.36 12.76c.03 2.89 2.53 3.85 2.56 3.86-.02.07-.4 1.37-1.32 2.71-.79 1.16-1.62 2.31-2.92 2.34-1.28.03-1.69-.76-3.15-.76-1.46 0-1.92.74-3.13.72-1.26-.02-2.22-1.26-3.02-2.41C3.74 17.02 2.5 13.06 4.18 10.2c.83-1.42 2.32-2.32 3.93-2.34 1.23-.02 2.39.83 3.14.83.75 0 2.16-1.03 3.65-.88.62.03 2.36.25 3.48 1.9-.09.06-2.08 1.22-2.02 3.05M14.16 5.9c.65-.79 1.09-1.89.97-2.99-.94.04-2.08.63-2.75 1.42-.6.7-1.13 1.82-.99 2.9 1.05.08 2.12-.54 2.77-1.33`})})}function re(){return(0,N.jsx)(`svg`,{...I,children:(0,N.jsx)(`path`,{d:`M3 5.5 10.5 4.4v7.1H3V5.5Zm0 13 7.5 1.1v-7.1H3V18.5Zm8.5 1.2L21 21v-8.5h-9.5v7.2Zm0-14.4v7.2H21V3l-9.5 2.3Z`})})}function ie(){return(0,N.jsx)(`svg`,{...I,children:(0,N.jsx)(`path`,{d:`M12.27 1.5c-.62 0-1.17.17-1.62.6-.9.86-1.09 2.2-1.19 3.4-.1 1.23-.3 2.56-.95 3.53-.33.49-.76.87-1.21 1.23-.54.44-1.1.89-1.5 1.49-.38.58-.6 1.25-.75 1.95-.13.63-.25 1.3-.55 1.86-.2.38-.47.7-.75 1-.28.3-.57.57-.8.9-.22.32-.4.7-.43 1.1-.04.44.16.88.47 1.2.3.3.7.49 1.1.63.78.28 1.63.42 2.46.5.55.06 1.11.1 1.66.2.44.08.87.2 1.28.39.42.2.81.47 1.24.62.72.25 1.5.15 2.2-.14.66-.27 1.25-.68 1.92-.87.5-.14 1.02-.16 1.53-.23.6-.09 1.2-.24 1.74-.55.45-.26.84-.62 1.06-1.1.18-.4.2-.85.08-1.26-.13-.45-.4-.84-.7-1.19-.33-.39-.68-.75-.95-1.18-.27-.44-.47-.93-.57-1.44-.08-.42-.1-.85-.15-1.27-.08-.72-.22-1.44-.5-2.1-.26-.63-.64-1.2-1.06-1.72-.4-.5-.85-.95-1.22-1.47-.35-.5-.62-1.06-.72-1.66-.08-.5-.06-1.01-.08-1.51-.03-.88-.1-1.78-.44-2.58-.32-.77-.87-1.44-1.6-1.83-.35-.19-.73-.28-1.11-.28h-.03Z`})})}function ae({size:e=24}){return(0,N.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 64 64`,"aria-hidden":`true`,children:[(0,N.jsx)(`rect`,{width:`64`,height:`64`,rx:`12`,fill:`#d7d7d0`}),(0,N.jsxs)(`g`,{fill:`#1a1614`,children:[(0,N.jsx)(`circle`,{cx:`18`,cy:`16`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`27`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`38`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`49`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`29`,cy:`32.5`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`38`,cy:`23`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`47`,cy:`14`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`38`,cy:`42`,r:`3.2`}),(0,N.jsx)(`circle`,{cx:`47`,cy:`51`,r:`3.2`})]}),(0,N.jsx)(`circle`,{cx:`53`,cy:`32.5`,r:`3.2`,fill:`#DE4E1A`})]})}var L=`https://github.com/ELY-Open-Source/Kigi-CLI`,oe=`https://github.com/ELY-Open-Source/Kigi-CLI/releases`,se=[{label:`Terminal UI`,href:`#surfaces`},{label:`Headless mode`,href:`#surfaces`},{label:`Editor integration`,href:`#surfaces`},{label:`Graph Engineering`,href:`#graph`},{label:`Agent Swarm`,href:`#swarm`}];function ce({label:e,items:t}){return(0,N.jsxs)(`div`,{className:`nav__dropdown`,"data-dropdown":!0,children:[(0,N.jsxs)(`button`,{type:`button`,className:`nav__link nav__link--btn`,"aria-haspopup":`true`,children:[e,(0,N.jsx)(F,{children:(0,N.jsx)(h,{size:18,strokeWidth:1.5})})]}),(0,N.jsx)(`div`,{className:`nav__menu`,children:t.map(e=>(0,N.jsx)(`a`,{className:`nav__menu-item t-small`,href:e.href,children:e.label},e.label))})]})}function le(){let[e,t]=(0,l.useState)(!1),[n,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(!1),o=(0,l.useRef)(0);return(0,l.useEffect)(()=>{let e=0,n=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{let e=window.scrollY;t(e>8),r(e>480&&e>o.current+4),(e{cancelAnimationFrame(e),window.removeEventListener(`scroll`,n)}},[]),(0,N.jsxs)(`header`,{className:A(`nav`,e&&`nav--scrolled`,n&&`nav--hidden`),children:[(0,N.jsxs)(`div`,{className:`nav__inner shell`,children:[(0,N.jsxs)(`a`,{className:`nav__logo`,href:`#main`,"aria-label":`Kigi home`,children:[(0,N.jsx)(ae,{size:28}),(0,N.jsx)(`span`,{className:`t-mono`,children:`kigi`})]}),(0,N.jsxs)(`nav`,{className:`nav__links`,"aria-label":`Primary`,children:[(0,N.jsx)(ce,{label:`Product`,items:se}),(0,N.jsx)(`a`,{className:`nav__link`,href:oe,target:`_blank`,rel:`noopener noreferrer`,children:`Releases`}),(0,N.jsx)(`a`,{className:`nav__link`,href:`#faq`,children:`FAQ`}),(0,N.jsx)(`a`,{className:`nav__link nav__link--icon`,href:L,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`GitHub`,children:(0,N.jsx)(F,{label:`GitHub`,children:(0,N.jsx)(te,{})})})]}),(0,N.jsx)(`div`,{className:`nav__cta`,children:(0,N.jsx)(P,{href:`#install`,size:`md`,children:`Install Kigi`})}),(0,N.jsx)(`button`,{type:`button`,className:`nav__burger`,"aria-label":i?`Close menu`:`Open menu`,"aria-expanded":i,onClick:()=>a(e=>!e),children:(0,N.jsx)(F,{children:i?(0,N.jsx)(O,{size:18,strokeWidth:1.5}):(0,N.jsx)(S,{size:18,strokeWidth:1.5})})})]}),(0,N.jsxs)(`div`,{className:A(`nav__mobile`,i&&`nav__mobile--open`),children:[se.map(e=>(0,N.jsx)(`a`,{className:`nav__mobile-link`,href:e.href,onClick:()=>a(!1),children:e.label},e.label)),(0,N.jsx)(`a`,{className:`nav__mobile-link`,href:oe,target:`_blank`,rel:`noopener noreferrer`,children:`Releases`}),(0,N.jsx)(`a`,{className:`nav__mobile-link`,href:`#faq`,onClick:()=>a(!1),children:`FAQ`}),(0,N.jsx)(`a`,{className:`nav__mobile-link`,href:L,target:`_blank`,rel:`noopener noreferrer`,children:`GitHub`}),(0,N.jsx)(P,{href:`#install`,className:`nav__mobile-cta`,onClick:()=>a(!1),children:`Install Kigi`})]})]})}function ue({command:e,label:t,dark:n,className:r}){let[i,a]=(0,l.useState)(!1),o=(0,l.useRef)(void 0);return(0,l.useEffect)(()=>()=>window.clearTimeout(o.current),[]),(0,N.jsxs)(`button`,{type:`button`,className:A(`copycmd`,n&&`copycmd--dark`,r),onClick:async()=>{await navigator.clipboard.writeText(e),a(!0),window.clearTimeout(o.current),o.current=window.setTimeout(()=>a(!1),1600)},"aria-label":t??`Copy: ${e}`,"data-copied":i||void 0,children:[(0,N.jsxs)(`code`,{className:`copycmd__code t-mono`,children:[(0,N.jsx)(`span`,{className:`copycmd__prompt`,"aria-hidden":!0,children:`$`}),` `,e]}),(0,N.jsx)(`span`,{className:`copycmd__action`,"aria-hidden":!0,children:(0,N.jsx)(F,{children:i?(0,N.jsx)(m,{size:18,strokeWidth:1.5,color:`var(--olive)`}):(0,N.jsx)(_,{size:18,strokeWidth:1.5})})}),(0,N.jsx)(`span`,{className:`copycmd__toast t-small`,"aria-hidden":!0,children:`Copied`})]})}function de(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function R(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var fe={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},pe={duration:.5,overwrite:!1,delay:0},me,he,z,ge=1e8,_e=1/ge,ve=Math.PI*2,ye=ve/4,B=0,be=Math.sqrt,xe=Math.cos,Se=Math.sin,V=function(e){return typeof e==`string`},H=function(e){return typeof e==`function`},Ce=function(e){return typeof e==`number`},we=function(e){return e===void 0},Te=function(e){return typeof e==`object`},Ee=function(e){return e!==!1},De=function(){return typeof window<`u`},Oe=function(e){return H(e)||V(e)},ke=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},U=Array.isArray,Ae=/random\([^)]+\)/g,je=/,\s*/g,Me=/(?:-?\.?\d|\.)+/gi,Ne=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Pe=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Fe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ie=/[+-]=-?[.\d]+/,Le=/[^,'"\[\]\s]+/gi,Re=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ze,Be,Ve,He,Ue={},We={},Ge,Ke=function(e){return(We=Ct(e,Ue))&&Hr},qe=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},Je=function(e,t){return!t&&console.warn(e)},Ye=function(e,t){return e&&(Ue[e]=t)&&We&&(We[e]=t)||Ue},Xe=function(){return 0},Ze={suppressEvents:!0,isStart:!0,kill:!1},Qe={suppressEvents:!0,kill:!1},$e={suppressEvents:!0},et={},tt=[],nt={},rt,it={},at={},ot=30,st=[],ct=``,lt=function(e){var t=e[0],n,r;if(Te(t)||H(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=st.length;r--&&!st[r].targetTest(t););n=st[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Qn(e[r],n)))||e.splice(r,1);return e},ut=function(e){return e._gsap||lt(sn(e))[0]._gsap},dt=function(e,t,n){return(n=e[t])&&H(n)?e[t]():we(n)&&e.getAttribute&&e.getAttribute(t)||n},ft=function(e,t){return(e=e.split(`,`)).forEach(t)||e},pt=function(e){return Math.round(e*1e5)/1e5||0},W=function(e){return Math.round(e*1e7)/1e7||0},mt=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},ht=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},kt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},At=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},jt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Mt=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Nt=function(e,t,n,r){return e._startAt&&(he?e._startAt.revert(Qe):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Pt=function e(t){return!t||t._ts&&e(t.parent)},Ft=function(e){return e._repeat?It(e._tTime,e=e.duration()+e._rDelay)*e:0},It=function(e,t){var n=Math.floor(e=W(e/t));return e&&n===e?n-1:n},Lt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Rt=function(e){return e._end=W(e._start+(e._tDur/Math.abs(e._ts||e._rts||_e)||0))},zt=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=W(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Rt(e),n._dirty||jt(n,e)),e},Bt=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start_e)&&t.render(n,!0)),jt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-_e}},Vt=function(e,t,n,r){return t.parent&&At(t),t._start=W((Ce(n)?n:n||e!==ze?Zt(e,n,t):e._time)+t._delay),t._end=W(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ot(e,t,`_first`,`_last`,e._sort?`_start`:0),Gt(t)||(e._recent=t),r||Bt(e,t),e._ts<0&&zt(e,e._tTime),e},Ht=function(e,t){return(Ue.ScrollTrigger||qe(`scrollTrigger`,t))&&Ue.ScrollTrigger.create(t,e)},Ut=function(e,t,n,r,i){if(sr(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!he&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&rt!==zn.frame)return tt.push(e),e._lazy=[i,r],1},Wt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Gt=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},Kt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&Wt(e)&&!(!e._initted&&Gt(e))||(e._ts<0||e._dp._ts<0)&&!Gt(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=en(0,e._tDur,t),l=It(s,o),e._yoyo&&l&1&&(a=1-a),l!==It(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||he||r||e._zTime===_e||!t&&e._zTime){if(!e._initted&&Ut(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?_e:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Nt(e,t,n,!0),e._onUpdate&&!n&&wn(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&wn(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&At(e,1),!n&&!he&&(wn(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},qt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&zt(e,e._tTime=e._tDur*o),e.parent&&Rt(e),n||jt(e.parent,e),e},Yt=function(e){return e instanceof er?jt(e):Jt(e,e._dur)},Xt={_start:0,endTime:Xe,totalDuration:Xe},Zt=function e(t,n,r){var i=t.labels,a=t._recent||Xt,o=t.duration()>=ge?a.endTime(!1):t._dur,s,c,l;return V(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(U(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Qt=function(e,t,n){var r=Ce(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=Ee(s.vars.inherit)&&s.parent;a.immediateRender=Ee(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new mr(t[0],a,t[i+1])},$t=function(e,t){return e||e===0?t(e):t},en=function(e,t,n){return nt?t:n},tn=function(e,t){return!V(e)||!(t=Re.exec(e))?``:t[1]},nn=function(e,t,n){return $t(n,function(n){return en(e,t,n)})},rn=[].slice,an=function(e,t){return e&&Te(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&Te(e[0]))&&!e.nodeType&&e!==Be},on=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return V(e)&&!t||an(e,1)?(r=n).push.apply(r,sn(e)):n.push(e)})||n},sn=function(e,t,n){return z&&!t&&z.selector?z.selector(e):V(e)&&!n&&(Ve||!Bn())?rn.call((t||He).querySelectorAll(e),0):U(e)?on(e,n):an(e)?rn.call(e,0):e?[e]:[]},cn=function(e){return e=sn(e)[0]||Je(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return sn(t,n.querySelectorAll?n:n===e?Je(`Invalid scope`)||He.createElement(`div`):e)}},ln=function(e){return e.sort(function(){return .5-Math.random()})},un=function(e){if(H(e))return e;var t=Te(e)?e:{each:e},n=qn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return V(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,ge])[1],!S){for(b=-ge;b<(b=d[S++].getBoundingClientRect().left)&&Sb&&(b=v),vf?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=tn(t.amount||t.each)||0,n=n&&f<0?Kn(n):n}return f=(p[e]-p.min)/p.max||0,W(p.b+(n?n(f):f)*p.v)+p.u}},dn=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=W(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Ce(n)?0:tn(n))}},fn=function(e,t){var n=U(e),r,i;return!n&&Te(e)&&(r=n=e.radius||ge,e.values?(e=sn(e.values),(i=!Ce(e[0]))&&(r*=r)):e=dn(e.increment)),$t(t,n?H(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=ge,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},bn=function(e){return e.replace(Ae,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(je);return pn(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},xn=function(e,t,n,r,i){var a=t-e,o=r-n;return $t(i,function(t){return n+((t-e)/a*o||0)})},Sn=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=V(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(U(t)&&!U(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},wn=function(e,t,n){var r=e.vars,i=r[t],a=z,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&tt.length&>(),o&&(z=o),l=s?i.apply(c,s):i.call(c),z=a,l},Tn=function(e){return At(e),e.scrollTrigger&&e.scrollTrigger.kill(!!he),e.progress()<1&&wn(e,`onInterrupt`),e},En,Dn=[],On=function(e){if(e)if(e=!e.name&&e.default||e,De()||e.headless){var t=e.name,n=H(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Xe,render:Cr,add:nr,kill:Tr,modifier:wr,rawVars:0},a={targetTest:0,get:0,getSetter:yr,aliases:{},register:0};if(Bn(),e!==r){if(it[t])return;xt(r,xt(Tt(e,i),a)),Ct(r.prototype,Ct(i,Tt(e,a))),it[r.prop=t]=r,e.targetTest&&(st.push(r),et[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}Ye(t,r),e.register&&e.register(Hr,r,Or)}else Dn.push(e)},kn=255,An={aqua:[0,kn,kn],lime:[0,kn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,kn],navy:[0,0,128],white:[kn,kn,kn],olive:[128,128,0],yellow:[kn,kn,0],orange:[kn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[kn,0,0],pink:[kn,192,203],cyan:[0,kn,kn],transparent:[kn,kn,kn,0]},jn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*kn+.5|0},Mn=function(e,t,n){var r=e?Ce(e)?[e>>16,e>>8&kn,e&kn]:0:An.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),An[e])r=An[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&kn,r&kn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&kn,e&kn]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(Me),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=jn(s+1/3,i,a),r[1]=jn(s,i,a),r[2]=jn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Ne),n&&r.length<4&&(r[3]=1),r}else r=e.match(Me)||An.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/kn,a=r[1]/kn,o=r[2]/kn,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),Bn=function(){return!Rn&&zn.wake()},G={},Vn=/^[\d.\-M][\d.\-,\s]/,Hn=/["']/g,Un=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Un(t[1])]:Wn(e).split(`,`).map(yt)):G._CE&&Vn.test(e)?G._CE(``,e):n},Kn=function(e){return function(t){return 1-e(1-t)}},qn=function(e,t){return e&&(H(e)?e:G[e]||Gn(e))||t},Jn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return ft(e,function(e){for(var t in G[e]=Ue[e]=i,G[a=e.toLowerCase()]=n,i)G[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=G[e+`.`+t]=i[t]}),i},Yn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Xn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/ve*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*Se((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Yn(s);return a=ve/a,c.config=function(n,r){return e(t,n,r)},c},Zn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:Yn(r);return i.config=function(n){return e(t,n)},i};ft(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Jn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),G.Linear.easeNone=G.none=G.Linear.easeIn,Jn(`Elastic`,Xn(`in`),Xn(`out`),Xn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Jt(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Bn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(zt(this,e),!n._dp||n.parent||Bt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===_e||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),vt(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Ft(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Ft(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?It(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-_e?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Lt(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-_e?0:this._rts,this.totalTime(en(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Rt(this),Mt(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Bn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_e&&(this._tTime-=_e)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=W(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Vt(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Ee(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Lt(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=$e);var t=he;return he=e,_t(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),he=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Yt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Yt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Zt(this,e),Ee(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Ee(t)),this._dur||(this._zTime=-_e),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-_e:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-_e,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=H(e)?e:bt,a=function(){var e=t.then;t.then=null,n&&n(),H(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Tn(this)},e}();xt($n.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_e,_prom:0,_ps:!1,_rts:1});var er=function(e){R(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=Ee(t.sortChildren),ze&&Vt(t.parent||ze,de(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Ht(de(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Qt(0,arguments,this),this},n.from=function(e,t,n){return Qt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Qt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Et(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new mr(e,t,Zt(this,n),1),this},n.call=function(e,t,n){return Vt(this,mr.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new mr(e,n,Zt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Et(n).immediateRender=Ee(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Et(r).immediateRender=Ee(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:W(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==ze&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=W(o%f),o===i?(d=this._repeat,c=a):(_=W(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=It(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:W(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&wn(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=qt(this,W(r),W(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(wn(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-_e);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||he&&_t(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-_e:_e);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-_e)._zTime=c>=r?1:-1,this._ts))return this._start=g,Rt(this),this.render(e,t,n);this._onUpdate&&!t&&wn(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&At(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(wn(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(Ce(t)||(t=Zt(this,t,e)),!(e instanceof $n)){if(U(e))return e.forEach(function(e){return n.add(e,t)}),this;if(V(e))return this.addLabel(e,t);if(H(e))e=mr.delayedCall(0,e);else return this}return this===e?this:Vt(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-ge);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof mr?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return V(e)?this.removeLabel(e):H(e)?this.killTweensOf(e):(e.parent===this&&kt(this,e),e===this._recent&&(this._recent=this._last),jt(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=W(zn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Zt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=mr.delayedCall(0,t||Xe,n);return r.data=`isPause`,this._hasPause=1,Vt(this,r,Zt(this,e))},n.removePause=function(e){var t=this._first;for(e=Zt(this,e);t;)t._start===e&&t.data===`isPause`&&At(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)ar!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=sn(e),i=this._first,a=Ce(t),o;i;)i instanceof mr?ht(i._targets,r)&&(a?(!ar||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=Zt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=mr.to(n,xt({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||_e,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&Jt(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,xt({startAt:{time:Zt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Cn(this,Zt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Cn(this,Zt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+_e)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=W(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return jt(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),jt(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=ge,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Vt(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=W(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;Jt(n,n===ze&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(ze._ts&&(vt(ze,Lt(e,ze)),rt=zn.frame),zn.frame>=ot){ot+=fe.autoSleep||120;var t=ze._first;if((!t||!t._ts)&&fe.autoSleep&&zn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||zn.sleep()}}},t}($n);xt(er.prototype,{_lock:0,_hasPause:0,_forcing:0});var tr=function(e,t,n,r,i,a,o){var s=new Or(this._pt,e,t,0,1,Sr,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=bn(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Fe)||[];u=Fe.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?mt(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Fe.lastIndex);return s.c=c`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||ur(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;vi-_e&&!o?i:e<_e?0:e,c,l,u,d,f,p,m,h;if(!a)Kt(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=W(s%d),s===i?(u=this._repeat,c=a):(f=W(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=It(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(W(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(Ut(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&At(this,1),!t&&!(o&&!r)&&(s||r||p)&&(wn(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){Rn||zn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||sr(this,a),o=this._ease(a/this._dur),cr(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(zt(this,0),this.parent||Ot(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Tn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!he),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,ar&&ar.vars.overwrite!==!0)._first||Tn(this),this.parent&&n!==this.timeline.totalDuration()&&Jt(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?sn(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Dt(r,i))return t===`all`&&(this._pt=0),Tn(this);for(s=this._op=this._op||[],t!==`all`&&(V(t)&&(d={},ft(t,function(e){return d[e]=1}),t=d),t=lr(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&kt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Tn(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Qt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return Qt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return ze.killTweensOf(e,t,n)},t}($n);xt(mr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ft(`staggerTo,staggerFrom,staggerFromTo`,function(e){mr[e]=function(){var t=new er,n=rn.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var hr=function(e,t,n){return e[t]=n},gr=function(e,t,n){return e[t](n)},_r=function(e,t,n,r){return e[t](r.fp,n)},vr=function(e,t,n){return e.setAttribute(t,n)},yr=function(e,t){return H(e[t])?gr:we(e[t])&&e.setAttribute?vr:hr},br=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},xr=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Sr=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Cr=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},wr=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Tr=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?kt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Er=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Dr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Or=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||br,this.d=o||this,this.set=s||hr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Er,this.m=e,this.mt=n,this.tween=t},e}();ft(ct+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return et[e]=1}),Ue.TweenMax=Ue.TweenLite=mr,Ue.TimelineLite=Ue.TimelineMax=er,ze=new er({sortChildren:!1,defaults:pe,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),fe.stringFilter=Ln;var kr=[],Ar={},jr=[],Mr=0,Nr=0,Pr=function(e){return(Ar[e]||jr).map(function(e){return e()})},Fr=function(){var e=Date.now(),t=[];e-Mr>2&&(Pr(`matchMediaInit`),kr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=Be.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Pr(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Mr=e,Pr(`matchMedia`))},Ir=function(){function e(e,t){this.selector=t&&cn(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Nr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){H(e)&&(n=t,t=e,e=H);var r=this,i=function(){var e=z,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=cn(n)),z=r,a=t.apply(r,arguments),H(a)&&r._r.push(a),z=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===H?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=z;z=null,e(this),z=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof mr&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof er?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof mr)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=kr.length;r--;)kr[r].id===this.id&&kr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Lr=function(){function e(e){this.contexts=[],this.scope=e,z&&z.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){Te(e)||(e={matches:e});var r=new Ir(0,n||this.scope),i=r.conditions={},a,o,s;for(o in z&&!r.selector&&(r.selector=z.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=Be.matchMedia(e[o]),a&&(kr.indexOf(r)<0&&kr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Fr):a.addEventListener(`change`,Fr)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Rr={registerPlugin:function(){[...arguments].forEach(function(e){return On(e)})},timeline:function(e){return new er(e)},getTweensOf:function(e,t){return ze.getTweensOf(e,t)},getProperty:function(e,t,n,r){V(e)&&(e=sn(e)[0]);var i=ut(e||{}).get,a=n?bt:yt;return n===`native`&&(n=``),e&&(t?a((it[t]&&it[t].get||i)(e,t,n,r)):function(t,n,r){return a((it[t]&&it[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=sn(e),e.length>1){var r=e.map(function(e){return Hr.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=it[t],o=ut(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;En._pt=0,r.init(e,n?t+n:t,En,0,[e]),r.render(1,r),En._pt&&Cr(1,En)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Hr.to(e,xt((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return ze.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=qn(e.ease,pe.ease)),wt(pe,e||{})},config:function(e){return wt(fe,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!it[e]&&!Ue[e]&&Je(t+` effect requires `+e+` plugin.`)}),at[t]=function(e,t,r){return n(sn(e),xt(t||{},i),r)},a&&(er.prototype[t]=function(e,n,r){return this.add(at[t](e,Te(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){G[e]=qn(t)},parseEase:function(e,t){return arguments.length?qn(e,t):G},getById:function(e){return ze.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new er(e),r,i;for(n.smoothChildTiming=Ee(e.smoothChildTiming),ze.remove(n),n._dp=0,n._time=n._tTime=ze._time,r=ze._first;r;)i=r._next,(t||!(!r._dur&&r instanceof mr&&r.vars.onComplete===r._targets[0]))&&Vt(n,r,r._start-r._delay),r=i;return Vt(ze,n,0),n},context:function(e,t){return e?new Ir(e,t):z},matchMedia:function(e){return new Lr(e)},matchMediaRefresh:function(){return kr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Fr()},addEventListener:function(e,t){var n=Ar[e]||(Ar[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Ar[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:vn,wrapYoyo:yn,distribute:un,random:pn,snap:fn,normalize:gn,getUnit:tn,clamp:nn,splitColor:Mn,toArray:sn,selector:cn,mapRange:xn,pipe:mn,unitize:hn,interpolate:Sn,shuffle:ln},install:Ke,effects:at,ticker:zn,updateRoot:er.updateRoot,plugins:it,globalTimeline:ze,core:{PropTween:Or,globals:Ye,Tween:mr,Timeline:er,Animation:$n,getCache:ut,_removeLinkedListItem:kt,reverting:function(){return he},context:function(e){return e&&z&&(z.data.push(e),e._ctx=z),z},suppressOverwrites:function(e){return me=e}}};ft(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return Rr[e]=mr[e]}),zn.add(er.updateRoot),En=Rr.to({},{duration:0});var zr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Br=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=zr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Vr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(V(n)&&(r={},ft(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Br(e,n)}}}},Hr=Rr.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)he?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Vr(`roundProps`,dn),Vr(`modifiers`),Vr(`snap`,fn))||Rr;mr.version=er.version=Hr.version=`3.15.0`,Ge=1,De()&&Bn(),G.Power0,G.Power1,G.Power2,G.Power3,G.Power4,G.Linear,G.Quad,G.Cubic,G.Quart,G.Quint,G.Strong,G.Elastic,G.Back,G.SteppedEase,G.Bounce,G.Sine,G.Expo,G.Circ;var Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr=function(){return typeof window<`u`},Zr={},Qr=180/Math.PI,$r=Math.PI/180,ei=Math.atan2,ti=1e8,ni=/([A-Z])/g,ri=/(left|right|width|margin|padding|x)/i,ii=/[\s,\(]\S/,ai={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},oi=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},si=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ci=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},li=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},ui=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},di=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},fi=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},pi=function(e,t,n){return e.style[t]=n},mi=function(e,t,n){return e.style.setProperty(t,n)},hi=function(e,t,n){return e._gsap[t]=n},gi=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},_i=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},vi=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},yi=`transform`,bi=yi+`Origin`,xi=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Zr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=ai[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Bi(i,e)}):this.tfm[t]=o.x?o[t]:Bi(i,t),t===bi&&(this.tfm.zOrigin=o.zOrigin);else return ai.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(yi)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(bi,n,``)),t=yi}(a||n)&&this.props.push(t,n,a[t])},Si=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ci=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?Oi[i]:``)+e},Ai=function(){Xr()&&window.document&&(Ur=window,Wr=Ur.document,Gr=Wr.documentElement,qr=Ei(`div`)||{style:{}},Ei(`div`),yi=ki(yi),bi=yi+`Origin`,qr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Ti=!!ki(`perspective`),Yr=Hr.core.reverting,Kr=1)},ji=function(e){var t=e.ownerSVGElement,n=Ei(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Gr.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Gr.removeChild(n),i},Mi=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Ni=function(e){var t,n;try{t=e.getBBox()}catch{t=ji(e),n=1}return t&&(t.width||t.height)||n||(t=ji(e)),t&&!t.width&&!t.x&&!t.y?{x:+Mi(e,[`x`,`cx`,`x1`])||0,y:+Mi(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},Pi=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ni(e))},Fi=function(e,t){if(t){var n=e.style,r;t in Zr&&t!==bi&&(t=yi),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(ni,`-$1`).toLowerCase())):n.removeAttribute(t)}},Ii=function(e,t,n,r,i,a){var o=new Or(e._pt,t,n,0,1,a?fi:di);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Li={deg:1,rad:1,turn:1},Ri={grid:1,flex:1},zi=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=qr.style,c=ri.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Li[i]||Li[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&Pi(t),(p||o===`%`)&&(Zr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],pt(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Wr||!h.appendChild)&&(h=Wr.body),g=h._gsap,g&&p&&g.width&&c&&g.time===zn.time&&!g.uncache)return pt(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Fi(t,n)}else(p||o===`%`)&&!Ri[Di(h,`display`)]&&(s.position=Di(t,`position`)),h===t&&(s.position=`static`),h.appendChild(qr),m=qr[u],h.removeChild(qr),s.position=`absolute`;return c&&p&&(g=ut(h),g.time=zn.time,g.width=h[u]),pt(f?m*a/d:m&&a?d/m*a:0)},Bi=function(e,t,n,r){var i;return Kr||Ai(),t in ai&&t!==`transform`&&(t=ai[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Zr[t]&&t!==`transform`?(i=Qi(e,r),i=t===`transformOrigin`?i.svg?i.origin:$i(Di(e,bi))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Gi[t]&&Gi[t](e,t,n)||Di(e,t)||dt(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?zi(e,t,i,n)+n:i},Vi=function(e,t,n,r){if(!n||n===`none`){var i=ki(t,e,1),a=i&&Di(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Di(e,`borderTopColor`))}var o=new Or(this._pt,e.style,t,0,1,Sr),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Di(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Di(e,t)||r,m?e.style[t]=m:Fi(e,t)),l=[n,r],Ln(l),n=l[0],r=l[1],d=n.match(Pe)||[],b=r.match(Pe)||[],b.length){for(;u=Pe.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=mt(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Pe.lastIndex-v.length,v||(v=v||fe.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=zi(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],Zr[o]&&(s=1,o=o===`transformOrigin`?bi:yi),Fi(n,o);s&&(Fi(n,yi),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Qi(n,1),a.uncache=1,Si(r)))}},Gi={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Or(e._pt,t,n,0,0,Wi);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Ki=[1,0,0,1,0,0],qi={},Ji=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Yi=function(e){var t=Di(e,yi);return Ji(t)?Ki:t.substr(7).match(Ne).map(pt)},Xi=function(e,t){var n=e._gsap||ut(e),r=e.style,i=Yi(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Ki:i):(i===Ki&&!e.offsetParent&&e!==Gr&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Gr.appendChild(e)),i=Yi(e),s?r.display=s:Fi(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Gr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Zi=function(e,t,n,r,i,a){var o=e._gsap,s=i||Xi(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Ki&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Ni(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[bi]=`0px 0px`,a&&(Ii(a,o,`xOrigin`,c,y),Ii(a,o,`yOrigin`,l,b),Ii(a,o,`xOffset`,u,o.xOffset),Ii(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Qi=function(e,t){var n=e._gsap||new Qn(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Di(e,bi)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,ee,F,I,te,ne,re;return n.svg=!!(e.getCTM&&Pi(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[yi]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[yi]===`none`?``:s[yi])),r.scale=r.rotate=r.translate=`none`),S=Xi(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Zi(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==Ki&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?ei(D,E)*Qr:0,_=O||k?ei(O,k)*Qr+m:0,_&&(p*=Math.abs(Math.cos(_*$r))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(re=S[6],te=S[7],ee=S[8],F=S[9],I=S[10],ne=S[11],l=S[12],u=S[13],d=S[14],C=ei(re,I),h=C*Qr,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+ee*T,N=j*w+F*T,P=re*w+I*T,ee=A*-T+ee*w,F=j*-T+F*w,I=re*-T+I*w,ne=te*-T+ne*w,A=M,j=N,re=P),C=ei(-O,I),g=C*Qr,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-ee*T,N=D*w-F*T,P=O*w-I*T,ne=k*T+ne*w,E=M,D=N,O=P),C=ei(D,E),m=C*Qr,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=pt(Math.sqrt(E*E+D*D+O*O)),p=pt(Math.sqrt(j*j+re*re)),C=ei(A,j),_=Math.abs(C)>2e-4?C*Qr:0,y=ne?1/(ne<0?-ne:ne):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Ji(Di(e,yi)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=pt(f),n.scaleY=pt(p),n.rotation=pt(m)+o,n.rotationX=pt(h)+o,n.rotationY=pt(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[bi]=$i(c)),n.xOffset=n.yOffset=0,n.force3D=fe.force3D,n.renderTransform=n.svg?oa:Ti?aa:ta,n.uncache=0,n},$i=function(e){return(e=e.split(` `))[0]+` `+e[1]},ea=function(e,t,n){var r=tn(t);return pt(parseFloat(t)+parseFloat(zi(e,`x`,n+`px`,r)))+r},ta=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,aa(e,t)},na=`0deg`,ra=`0px`,ia=`) `,aa=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==na||l!==na)){var x=parseFloat(l)*$r,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*$r,w=Math.cos(x),a=ea(_,a,S*w*-v),o=ea(_,o,-Math.sin(x)*-v),s=ea(_,s,C*w*-v+v)}h!==ra&&(y+=`perspective(`+h+ia),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ra||o!==ra||s!==ra)&&(y+=s!==ra||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+ia),c!==na&&(y+=`rotate(`+c+ia),l!==na&&(y+=`rotateY(`+l+ia),u!==na&&(y+=`rotateX(`+u+ia),(d!==na||f!==na)&&(y+=`skew(`+d+`, `+f+ia),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+ia),_.style[yi]=y||`translate(0, 0)`},oa=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=$r,c*=$r,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=$r,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=pt(b),x=pt(x),S=pt(S),C=pt(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=zi(f,`x`,a,`px`),y=zi(f,`y`,o,`px`)),(p||m||h||g)&&(v=pt(v+p-(p*b+m*S)+h),y=pt(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=pt(v+r/100*w.width),y=pt(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[yi]=w)},sa=function(e,t,n,r,i){var a=360,o=V(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Qr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*ti)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*ti)%a-~~(s/a)*a)),e._pt=u=new Or(e._pt,t,n,r,s,si),u.e=c,u.u=`deg`,e._props.push(n),u},ca=function(e,t){for(var n in t)e[n]=t[n];return e},la=function(e,t,n){var r=ca({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[yi]=t,o=Qi(n,1),Fi(n,yi),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[yi],a[yi]=t,o=Qi(n,1),a[yi]=c),Zr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=tn(c),p=tn(l),u=f===p?parseFloat(c):zi(n,s,c,p),d=parseFloat(l),e._pt=new Or(e._pt,o,s,u,d-u,oi),e._pt.u=p||0,e._props.push(s));ca(o,r)};ft(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});Gi[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return Bi(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var ua={name:`css`,register:Ai,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in Kr||Ai(),this.styles=this.styles||wi(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(it[m]&&ir(m,t,n,r,e,i)))){if(f=typeof l,p=Gi[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=bn(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,Fn.lastIndex=0,Fn.test(c)||(h=tn(c),g=tn(l),g?h!==g&&(c=zi(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],V(c)&&~c.indexOf(`random(`)&&(c=bn(c)),tn(c+``)||c===`auto`||(c+=fe.units[m]||tn(Bi(e,m))||``),(c+``).charAt(1)===`=`&&(c=Bi(e,m))):c=Bi(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in ai&&(m===`autoAlpha`&&(d===1&&Bi(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),Ii(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=ai[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Zr,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Di(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Di(e,`perspective`),T?e.style.perspective=T:Fi(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Qi(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Or(this._pt,o,yi,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Or(this._pt,b,`scaleY`,b.scaleY,(_?mt(b.scaleY,_+u):u)-b.scaleY||0,oi),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(bi,0,o[bi]),l=Ui(l),b.svg?Zi(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&Ii(this,b,`zOrigin`,b.zOrigin,g),Ii(this,o,m,$i(c),$i(l)));continue}else if(m===`svgOrigin`){Zi(e,l,1,x,0,this);continue}else if(m in qi){sa(this,b,m,d,_?mt(d,_+l):l);continue}else if(m===`smoothOrigin`){Ii(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){la(this,l,e);continue}}else m in o||(m=ki(m)||m);if(v||(u||u===0)&&(d||d===0)&&!ii.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=tn(l)||(m in fe.units?fe.units[m]:h),h!==g&&(d=zi(e,m,c,g)),this._pt=new Or(this._pt,v?b:o,m,d,(_?mt(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?ui:oi),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=li):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=ci);else if(m in o)Vi.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){qe(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&Dr(this)},render:function(e,t){if(t.tween._time||!Yr())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Bi,aliases:ai,getSetter:function(e,t,n){var r=ai[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Zr&&t!==bi&&(e._gsap.x||Bi(e,`x`))?n&&Jr===n?t===`scale`?gi:hi:(Jr=n||{})&&(t===`scale`?_i:vi):e.style&&!we(e.style[t])?pi:~t.indexOf(`-`)?mi:yr(e,t)},core:{_removeProperty:Fi,_getMatrix:Xi}};Hr.utils.checkPrefix=ki,Hr.core.getStyleSaver=wi,(function(e,t,n,r){var i=ft(e+`,`+t+`,`+n,function(e){Zr[e]=1});ft(t,function(e){fe.units[e]=`deg`,qi[e]=1}),ai[i[13]]=e+`,`+t,ft(r,function(e){var t=e.split(`:`);ai[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),ft(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){fe.units[e]=`px`}),Hr.registerPlugin(ua);var da=Hr.registerPlugin(ua)||Hr;da.core.Tween;function fa(e,t){for(var n=0;ns?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=ja();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},Ja=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Ya=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Xa=function(){Sa=ma.core.globals().ScrollTrigger,Sa&&Sa.core&&Na()},Za=function(e){return ma=e||Da(),!ha&&ma&&typeof document<`u`&&document.body&&(ga=window,_a=document,va=_a.documentElement,ya=_a.body,Ca=[ga,_a,va,ya],ma.utils.clamp,Ea=ma.core.context||function(){},xa=`onpointerenter`in ya?`pointer`:`mouse`,ba=Qa.isTouch=ga.matchMedia&&ga.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in ga||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ta=Qa.eventTypes=(`ontouchstart`in va?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in va?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return Oa=0},500),ha=1),Sa||Xa(),ha};Ha.op=Ua,K.cache=0;var Qa=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){ha||Za(ma)||console.warn(`Please gsap.registerPlugin(Observer)`),Sa||Xa();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,ee=e.onEnable,F=e.onDisable,I=e.onClick,te=e.scrollSpeed,ne=e.capture,re=e.allowClicks,ie=e.lockAxis,ae=e.onLockAxis;this.target=i=Wa(i)||va,this.vars=e,u&&=ma.utils.toArray(u),t||=1e-9,n||=0,d||=1,te||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(ga.getComputedStyle(ya).lineHeight)||22;var L,oe,se,ce,le,ue,de,R=this,fe=0,pe=0,me=e.passive||!s&&e.passive!==!1,he=Ka(i,Ha),z=Ka(i,Ua),ge=he(),_e=z(),ve=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Ta[0]===`pointerdown`,ye=Fa(i),B=i.ownerDocument||_a,be=[0,0,0],xe=[0,0,0],Se=0,V=function(){return Se=ja()},H=function(e,t){return(R.event=e)&&u&&Ga(e.target,u)||t&&ve&&e.pointerType!==`touch`||A&&A(e,t)},Ce=function(){R._vx.reset(),R._vy.reset(),oe.pause(),c&&c(R)},we=function(){var e=R.deltaX=Ya(be),n=R.deltaY=Ya(xe),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(R,e,n,be,xe),r&&(v&&R.deltaX>0&&v(R),y&&R.deltaX<0&&y(R),S&&S(R),T&&R.deltaX<0!=fe<0&&T(R),fe=R.deltaX,be[0]=be[1]=be[2]=0),i&&(x&&R.deltaY>0&&x(R),b&&R.deltaY<0&&b(R),C&&C(R),E&&R.deltaY<0!=pe<0&&E(R),pe=R.deltaY,xe[0]=xe[1]=xe[2]=0),(ce||se)&&(k&&k(R),se&&=(p&&se===1&&p(R),h&&h(R),0),ce=!1),ue&&!(ue=!1)&&ae&&ae(R),le&&=(P(R),!1),L=0},Te=function(e,t,n){be[n]+=e,xe[n]+=t,R._vx.update(e),R._vy.update(t),o?L||=requestAnimationFrame(we):we()},Ee=function(e,t){ie&&!de&&(R.axis=de=Math.abs(e)>Math.abs(t)?`x`:`y`,ue=!0),de!==`y`&&(be[2]+=e,R._vx.update(e,!0)),de!==`x`&&(xe[2]+=t,R._vy.update(t,!0)),o?L||=requestAnimationFrame(we):we()},De=function(e){if(!H(e,1)){e=Ja(e,s);var t=e.clientX,r=e.clientY,i=t-R.x,a=r-R.y,o=R.isDragging;R.x=t,R.y=r,(o||(i||a)&&(Math.abs(R.startX-t)>=n||Math.abs(R.startY-r)>=n))&&(se||=o?2:1,o||(R.isDragging=!0),Ee(i,a))}},Oe=R.onPress=function(e){H(e,1)||e&&e.button||(R.axis=de=null,oe.pause(),R.isPressed=!0,e=Ja(e),fe=pe=0,R.startX=R.x=e.clientX,R.startY=R.y=e.clientY,R._vx.reset(),R._vy.reset(),Ia(j?i:B,Ta[1],De,me,!0),R.deltaX=R.deltaY=0,g&&g(R))},ke=R.onRelease=function(e){if(!H(e,1)){La(j?i:B,Ta[1],De,!0);var t=!isNaN(R.y-R.startY),n=R.isDragging,r=n&&(Math.abs(R.x-R.startX)>3||Math.abs(R.y-R.startY)>3),a=Ja(e);!r&&t&&(R._vx.reset(),R._vy.reset(),s&&re&&ma.delayedCall(.08,function(){if(ja()-Se>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(B.createEvent){var t=B.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,ga,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),R.isDragging=R.isGesturing=R.isPressed=!1,c&&n&&!j&&oe.restart(!0),se&&we(),m&&n&&m(R),_&&_(R,r)}},U=function(e){return e.touches&&e.touches.length>1&&(R.isGesturing=!0)&&M(e,R.isDragging)},Ae=function(){return(R.isGesturing=!1)||N(R)},je=function(e){if(!H(e)){var t=he(),n=z();Te((t-ge)*te,(n-_e)*te,1),ge=t,_e=n,c&&oe.restart(!0)}},Me=function(e){if(!H(e)){e=Ja(e,s),P&&(le=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?ga.innerHeight:1)*d;Te(e.deltaX*t,e.deltaY*t,0),c&&!j&&oe.restart(!0)}},Ne=function(e){if(!H(e)){var t=e.clientX,n=e.clientY,r=t-R.x,i=n-R.y;R.x=t,R.y=n,ce=!0,c&&oe.restart(!0),(r||i)&&Ee(r,i)}},Pe=function(e){R.event=e,D(R)},Fe=function(e){R.event=e,O(R)},Ie=function(e){return H(e)||Ja(e,s)&&I(R)};oe=R._dc=ma.delayedCall(l||.25,Ce).pause(),R.deltaX=R.deltaY=0,R._vx=qa(0,50,!0),R._vy=qa(0,50,!0),R.scrollX=he,R.scrollY=z,R.isDragging=R.isGesturing=R.isPressed=!1,Ea(this),R.enable=function(e){return R.isEnabled||(Ia(ye?B:i,`scroll`,Ba),r.indexOf(`scroll`)>=0&&Ia(ye?B:i,`scroll`,je,me,ne),r.indexOf(`wheel`)>=0&&Ia(i,`wheel`,Me,me,ne),(r.indexOf(`touch`)>=0&&ba||r.indexOf(`pointer`)>=0)&&(Ia(i,Ta[0],Oe,me,ne),Ia(B,Ta[2],ke),Ia(B,Ta[3],ke),re&&Ia(i,`click`,V,!0,!0),I&&Ia(i,`click`,Ie),M&&Ia(B,`gesturestart`,U),N&&Ia(B,`gestureend`,Ae),D&&Ia(i,xa+`enter`,Pe),O&&Ia(i,xa+`leave`,Fe),k&&Ia(i,xa+`move`,Ne)),R.isEnabled=!0,R.isDragging=R.isGesturing=R.isPressed=ce=se=!1,R._vx.reset(),R._vy.reset(),ge=he(),_e=z(),e&&e.type&&Oe(e),ee&&ee(R)),R},R.disable=function(){R.isEnabled&&(ka.filter(function(e){return e!==R&&Fa(e.target)}).length||La(ye?B:i,`scroll`,Ba),R.isPressed&&(R._vx.reset(),R._vy.reset(),La(j?i:B,Ta[1],De,!0)),La(ye?B:i,`scroll`,je,ne),La(i,`wheel`,Me,ne),La(i,Ta[0],Oe,ne),La(B,Ta[2],ke),La(B,Ta[3],ke),La(i,`click`,V,!0),La(i,`click`,Ie),La(B,`gesturestart`,U),La(B,`gestureend`,Ae),La(i,xa+`enter`,Pe),La(i,xa+`leave`,Fe),La(i,xa+`move`,Ne),R.isEnabled=R.isPressed=R.isDragging=!1,F&&F(R))},R.kill=R.revert=function(){R.disable();var e=ka.indexOf(R);e>=0&&ka.splice(e,1),wa===R&&(wa=0)},ka.push(R),j&&Fa(i)&&(wa=R),R.enable(f)},pa(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();Qa.version=`3.15.0`,Qa.create=function(e){return new Qa(e)},Qa.register=Za,Qa.getAll=function(){return ka.slice()},Qa.getById=function(e){return ka.filter(function(t){return t.vars.id===e})[0]},Da()&&ma.registerPlugin(Qa);var q,$a,J,Y,eo,to,no,X,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao=1,jo=Date.now,Mo=jo(),No=0,Po=0,Fo=function(e,t,n){var r=Zo(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},Io=function(e,t){return t&&(!Zo(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},Lo=function e(){return Po&&requestAnimationFrame(e)},Ro=function(){return co=1},zo=function(){return co=0},Bo=function(e){return e},Vo=function(e){return Math.round(e*1e5)/1e5||0},Ho=function(){return typeof window<`u`},Uo=function(){return q||Ho()&&(q=window.gsap)&&q.registerPlugin&&q},Wo=function(e){return!!~no.indexOf(e)},Go=function(e){return(e===`Height`?Eo:J[`inner`+e])||eo[`client`+e]||to[`client`+e]},Ko=function(e){return Pa(e,`getBoundingClientRect`)||(Wo(e)?function(){return vc.width=J.innerWidth,vc.height=Eo,vc}:function(){return Ss(e)})},qo=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=Pa(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?Go(i):e[`client`+i])||0}},Jo=function(e,t){return!t||~Aa.indexOf(e)?Ko(e):function(){return vc}},Yo=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=Pa(e,n))?a()-Ko(e)()[i]:Wo(e)?(eo[n]||to[n])-Go(r):e[n]-e[`offset`+r])},Xo=function(e,t){for(var n=0;n0){for(e-=i,a=0;a=e)return n[a];return n[a-1]}else for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in Ps?Ps[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Is=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=Y.createElement(`div`),m=Wo(n)||Pa(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?to:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===Ua?os:ss)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],Ls(p,0,r,_),p},Ls=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+gs]=1,i[`border`+o+gs]=0,i[n.p]=t+`px`,q.set(e,i)},Z=[],Rs={},zs,Bs=function(){return jo()-No>34&&(zs||=requestAnimationFrame(lc))},Vs=function(){(!vo||!vo.isPressed||vo.startX>to.clientWidth)&&(K.cache++,vo?zs||=requestAnimationFrame(lc):lc(),No||qs(`scrollStart`),No=jo())},Hs=function(){xo=J.innerWidth,bo=J.innerHeight},Us=function(e){K.cache++,(e===!0||!so&&!_o&&!Y.fullscreenElement&&!Y.webkitFullscreenElement&&(!yo||xo!==J.innerWidth||Math.abs(J.innerHeight-bo)>J.innerHeight*.25))&&X.restart(!0)},Ws={},Gs=[],Ks=function e(){return As(Q,`scrollEnd`,e)||ac(!0)},qs=function(e){return Ws[e]&&Ws[e].map(function(e){return e()})||Gs},Js=[],Ys=function(e){for(var t=0;tt,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),ic(!1),Oo=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),K.forEach(function(e){Qo(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),Qs(wo,1),X.pause(),ec++,$s=2,lc(2),Z.forEach(function(e){return Qo(e.vars.onRefresh)&&e.vars.onRefresh(e)}),$s=Q.isRefreshing=!1,qs(`refresh`)},oc=0,sc=1,cc,lc=function(e){if(e===2||!$s&&!Do){Q.isUpdating=!0,cc&&cc.update(0);var t=Z.length,n=jo(),r=n-Mo>=50,i=t&&Z[0].scroll();if(sc=oc>i?-1:1,$s||(oc=i),r&&(No&&!co&&n-No>200&&(No=0,qs(`scrollEnd`)),ao=Mo,Mo=n),sc<0){for(uo=t;uo-->0;)Z[uo]&&Z[uo].update(0,r);sc=1}else for(uo=0;uo20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,Ls(a,C,r,w&&C>20||!w&&(u?Math.max(to[h],eo[h]):a.parentNode[h])<=C+1),u&&(c=Ss(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+vs))}return f&&_&&(h=Ss(_),f.seek(d),g=Ss(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},bc=/(webkit|moz|length|cssText|inset)/i,xc=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===to){for(a in e._stOrig=i.cssText,o=ys(e),o)!+a&&!bc.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;q.core.getCache(e).uncache=1,t.appendChild(e)}},Sc=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},Cc=function(e,t,n){var r={};r[t.p]=`+=`+n,q.set(e,r)},wc=function(e,t){var n=Ka(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=Sc(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){K.cache++,t.tween&&lc()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=q.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ks(e,`wheel`,n.wheelHandler),Q.isTouch&&ks(e,`touchmove`,n.wheelHandler),i},Q=function(){function e(t,n){$a||e.register(q)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),Co(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Po){this.update=this.refresh=this.kill=Bo;return}t=xs(Zo(t)||$o(t)||t.nodeType?{trigger:t}:t,Ns);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Ha:Ua,T=!l&&l!==0,E=Wa(t.scroller||J),D=q.core.getCache(E),O=Wo(E),k=(`pinType`in t?t.pinType:Pa(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:Ns.markers,N=O?0:parseFloat(ys(E)[`border`+w.p2+gs])||0,P=this,ee=t.onRefreshInit&&function(){return t.onRefreshInit(P)},F=qo(E,O,w),I=Jo(E,O),te=0,ne=0,re=0,ie=Ka(E,w),ae,L,oe,se,ce,le,ue,de,R,fe,pe,me,he,z,ge,_e,ve,ye,B,be,xe,Se,V,H,Ce,we,Te,Ee,De,Oe,ke,U,Ae,je,Me,Ne,Pe,Fe,Ie;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):ie,se=ie(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(ho=1,t.refreshPriority===-9999&&(cc=P)),D.tweenScroll=D.tweenScroll||{top:wc(E,Ua),left:wc(E,Ha)},P.tweenTo=ae=D.tweenScroll[w.p],P.scrubDuration=function(e){Ae=$o(e)&&e,Ae?U?U.duration(e):U=q.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:Ae,paused:!0,onComplete:function(){return h&&h(P)}}):(U&&U.progress(1).kill(),U=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Oe=0,o||=n.vars.id),v&&((!es(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in to.style&&q.set(O?[to,eo]:E,{scrollBehavior:`auto`}),K.forEach(function(e){return Qo(e)&&e.target===(O?Y.scrollingElement||eo:E)&&(e.smooth=!1)}),oe=Qo(v.snapTo)?v.snapTo:v.snapTo===`labels`?Ts(n):v.snapTo===`labelsDirectional`?Ds(n):v.directional===!1?q.utils.snap(v.snapTo):function(e,t){return Es(v.snapTo)(e,jo()-ne<500?0:t.direction)},je=v.duration||{min:.1,max:2},je=es(je)?io(je.min,je.max):io(je,je),Me=q.delayedCall(v.delay||Ae/2||.1,function(){var e=ie(),t=jo()-ne<500,r=ae.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!co&&te!==e){var i=(e-le)/z,a=n&&!T?n.totalProgress():i,o=t?0:(a-ke)/(jo()-ao)*1e3||0,s=q.utils.clamp(-i,1-i,rs(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=oe(c,P),$o(l)||(l=c),u=Math.max(0,Math.round(le+l*z)),e<=ue&&e>=le&&u!==e){if(r&&!r._initted&&r.data<=rs(u-e))return;v.inertia===!1&&(s=l-i),ae(u,{duration:je(rs(Math.max(rs(c-a),rs(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:rs(u-e),onInterrupt:function(){return Me.restart(!0)&&p&&ns(P,p)},onComplete:function(){P.update(),te=ie(),n&&!T&&(U?U.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Oe=ke=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&ns(P,m)}},e,s*z,u-e-s*z),f&&ns(P,f,ae.tween)}}else P.isActive&&te!==e&&Me.restart(!0)}).pause()),o&&(Rs[o]=P),u=P.trigger=Wa(u||d!==!0&&d),Ie=u&&u._gsap&&u._gsap.stRevert,Ie&&=Ie(P),d=d===!0?u:Wa(d),Zo(a)&&(a={targets:u,className:a}),d&&(f===!1||f===hs||(f=!f&&d.parentNode&&d.parentNode.style&&ys(d.parentNode).display===`flex`?!1:ms),P.pin=d,L=q.core.getCache(d),L.spacer?ge=L.pinState:(b&&(b=Wa(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),L.spacerIsNative=!!b,b&&(L.spacerState=gc(b))),L.spacer=ye=b||Y.createElement(`div`),ye.classList.add(`pin-spacer`),o&&ye.classList.add(`pin-spacer-`+o),L.pinState=ge=gc(d)),t.force3D!==!1&&q.set(d,{force3D:!0}),P.spacer=ye=L.spacer,De=ys(d),H=De[f+w.os2],be=q.getProperty(d),xe=q.quickSetter(d,w.a,vs),pc(d,ye,De),ve=gc(d)),M){me=es(M)?xs(M,Ms):Ms,fe=Is(`scroller-start`,o,E,w,me,0),pe=Is(`scroller-end`,o,E,w,me,0,fe),B=fe[`offset`+w.op.d2];var Le=Wa(Pa(E,`content`)||E);de=this.markerStart=Is(`start`,o,Le,w,me,B,0,x),R=this.markerEnd=Is(`end`,o,Le,w,me,B,0,x),x&&(Fe=q.quickSetter([de,R],w.a,vs)),!k&&!(Aa.length&&Pa(E,`fixedMarkers`)===!0)&&(bs(O?to:E),q.set([fe,pe],{force3D:!0}),we=q.quickSetter(fe,w.a,vs),Ee=q.quickSetter(pe,w.a,vs))}if(x){var Re=x.vars.onUpdate,ze=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),Re&&Re.apply(x,ze||[])})}if(P.previous=function(){return Z[Z.indexOf(P)-1]},P.next=function(){return Z[Z.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=so;r!==P.isReverted&&(r&&(Ne=Math.max(ie(),P.scroll.rec||0),re=P.progress,Pe=n&&n.progress()),de&&[de,R,fe,pe].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(so=P,P.update(r)),d&&(!y||!P.isActive)&&(r?fc(d,ye,ge):pc(d,ye,ys(d),Ce)),r||P.update(r),so=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!((so||!P.enabled)&&!i)){if(d&&r&&No){ks(e,`scrollEnd`,Ks);return}!$s&&ee&&ee(P),so=P,ae.tween&&!a&&(ae.tween.kill(),ae.tween=0),U&&U.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=F(),l=I(),m=x?x.duration():Yo(E,w),h=z<=.01||!z,g=0,_=o||0,v=es(a)?a.end:t.end,b=t.endTrigger||u,S=es(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&Wa(t.pinnedContainer,P),D=u&&Math.max(0,Z.indexOf(P))||0,A=D,j,L,oe,me,B,xe,H,we,Ee,De,Oe,ke,Ae;for(M&&es(a)&&(ke=q.getProperty(fe,w.p),Ae=q.getProperty(pe,w.p));A-->0;)xe=Z[A],xe.end||xe.refresh(0,1)||(so=P),H=xe.pin,H&&(H===u||H===d||H===C)&&!xe.isReverted&&(De||=[],De.unshift(xe),xe.revert(!0,!0)),xe!==Z[A]&&(D--,A--);for(Qo(S)&&(S=S(P)),S=Fo(S,`start`,P),le=yc(S,u,s,w,ie(),de,fe,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),Qo(v)&&(v=v(P)),Zo(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(Zo(S)?S.split(` `)[0]:``)+v:(g=Fs(v.substr(2),s),v=Zo(S)?S:(x?q.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,le):le)+g,b=u)),v=Fo(v,`end`,P),ue=Math.max(le,yc(v||(b?`100% 0`:m),b,s,w,ie()+g,R,pe,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)xe=Z[A]||{},H=xe.pin,H&&xe.start-xe._pinPush<=le&&!x&&xe.end>0&&(j=xe.end-(P._startClamp?Math.max(0,xe.start):xe.start),(H===u&&xe.start-xe._pinPush=Yo(E,w)))j=ys(d),me=w===Ua,oe=ie(),Se=parseFloat(be(w.a))+_,!m&&ue>1&&(Oe=(O?Y.scrollingElement||eo:E).style,Oe={style:Oe,value:Oe[`overflow`+w.a.toUpperCase()]},O&&ys(to)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Oe.style[`overflow`+w.a.toUpperCase()]=`scroll`)),pc(d,ye,j),ve=gc(d),L=Ss(d,!0),we=k&&Ka(E,me?Ha:Ua)(),f?(Ce=[f+w.os2,z+_+vs],Ce.t=ye,A=f===ms?Cs(d,w)+z+_:0,A&&(Ce.push(w.d,A+vs),ye.style.flexBasis!==`auto`&&(ye.style.flexBasis=A+vs)),hc(Ce),C&&Z.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&ie(Ne)):(A=Cs(d,w),A&&ye.style.flexBasis!==`auto`&&(ye.style.flexBasis=A+vs)),k&&(B={top:L.top+(me?oe-le:we)+vs,left:L.left+(me?we:oe-le)+vs,boxSizing:`border-box`,position:`fixed`},B[cs]=B[`max`+gs]=Math.ceil(L.width)+vs,B[ls]=B[`max`+_s]=Math.ceil(L.height)+vs,B[hs]=B[hs+fs]=B[hs+us]=B[hs+ps]=B[hs+ds]=`0`,B[ms]=j[ms],B[ms+fs]=j[ms+fs],B[ms+us]=j[ms+us],B[ms+ps]=j[ms+ps],B[ms+ds]=j[ms+ds],_e=_c(ge,B,y),$s&&ie(0)),n?(Ee=n._initted,go(1),n.render(n.duration(),!0,!0),V=be(w.a)-Se+z+_,Te=Math.abs(z-V)>1,k&&Te&&_e.splice(_e.length-2,2),n.render(0,!0,!0),Ee||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),go(0)):V=z,Oe&&(Oe.value?Oe.style[`overflow`+w.a.toUpperCase()]=Oe.value:Oe.style.removeProperty(`overflow-`+w.a));else if(u&&ie()&&!x)for(L=u.parentNode;L&&L!==to;)L._pinOffset&&(le-=L._pinOffset,ue-=L._pinOffset),L=L.parentNode;De&&De.forEach(function(e){return e.revert(!1,!0)}),P.start=le,P.end=ue,se=ce=$s?Ne:ie(),!x&&!$s&&(se0?Z.slice(0,t).reverse():Z.slice(t+1);return(Zo(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=le:e.start>=ue})},P.update=function(e,t,r){if(!(x&&!r&&!e)){var o=$s===!0?Ne:P.scroll(),c=e?0:(o-le)/z,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,ee;if(t&&(ce=se,se=x?ie():o,v&&(ke=Oe,Oe=n&&!T?n.totalProgress():u)),m&&d&&!so&&!Ao&&No&&(!u&&leo+(o-ce)/(jo()-ao)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!so&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],ee=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||ee)&&(ee||l||!n)&&(Qo(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(U&&!so&&!Ao?(U._dp._time-U._start!==U._time&&U.render(U._dp._time-U._start),U.resetTo?U.resetTo(`totalProgress`,u,n._tTime/n._tDur):(U.vars.totalProgress=u,U.invalidate().restart())):n&&n.totalProgress(u,!!(so&&(ne||e)))),d){if(e&&f&&(ye.style[f+w.os2]=H),!k)xe(Vo(Se+V*u));else if(O){if(N=!e&&u>p&&ue+1>o&&o+1>=Yo(E,w),y)if(!e&&(h||N)){var F=Ss(d,!0),I=o-le;xc(d,to,F.top+(w===Ua?I:0)+vs,F.left+(w===Ua?0:I)+vs)}else xc(d,ye);hc(h||N?_e:ve),Te&&u<1&&h||xe(Se+(u===1&&!N?V:0))}}v&&!ae.tween&&!so&&!Ao&&Me.restart(!0),a&&(M||_&&u&&(u<1||!ko))&&ro(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!so?(T&&(ee&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!ko)&&(s&&M&&ns(P,s),A[b]&&ns(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&ns(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>($o(S)?S:2500)&&(ts(P.callbackAnimation),U?U.progress(1):ts(n,D===`reverse`?1:!u,1))):T&&i&&!so&&i(P)}if(Ee){var te=x?o/x.duration()*(x._caScrollDist||0):o;we(te+ +!!fe._isFlipped),Ee(te)}Fe&&Fe(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,ks(E,`resize`,Us),O||ks(E,`scroll`,Vs),ee&&ks(e,`refreshInit`,ee),t!==!1&&(P.progress=re=0,se=ce=te=ie()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&ae?ae.tween:U},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:Io(e,n&&!!P._startClamp),end:Io(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(Ce&&e){var t=Ce.indexOf(w.d)+1;Ce[t]=parseFloat(Ce[t])+e+vs,Ce[1]=parseFloat(Ce[1])+e+vs,hc(Ce)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||U&&U.pause(),Ne=0,L&&(L.uncache=1),ee&&As(e,`refreshInit`,ee),Me&&(Me.pause(),ae.tween&&ae.tween.kill()&&(ae.tween=0)),!O)){for(var r=Z.length;r--;)if(Z[r].scroller===E&&Z[r]!==P)return;As(E,`resize`,Us),O||As(E,`scroll`,Vs)}},P.kill=function(e,r){P.disable(e,r),U&&!r&&U.kill(),o&&delete Rs[o];var i=Z.indexOf(P);i>=0&&Z.splice(i,1),i===uo&&sc>0&&uo--,i=0,Z.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||$s||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),de&&[de,R,fe,pe].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),cc===P&&(cc=0),d&&(L&&(L.uncache=1),i=0,Z.forEach(function(e){return e.pin===d&&i++}),i||(L.spacer=0)),t.onKill&&t.onKill(P)},Z.push(P),P.enable(!1,!1),Ie&&Ie(P),n&&n.add&&!z){var Be=P.update;P.update=function(){P.update=Be,K.cache++,le||ue||P.refresh()},q.delayedCall(.01,P.update),z=.01,le=ue=0}else P.refresh();d&&nc()},e.register=function(t){return $a||=(q=t||Uo(),Ho()&&window.document&&e.enable(),Po),$a},e.defaults=function(e){if(e)for(var t in e)Ns[t]=e[t];return Ns},e.disable=function(e,t){Po=0,Z.forEach(function(n){return n[t?`kill`:`disable`](e)}),As(J,`wheel`,Vs),As(Y,`scroll`,Vs),clearInterval(oo),As(Y,`touchcancel`,Bo),As(to,`touchstart`,Bo),Os(As,Y,`pointerdown,touchstart,mousedown`,Ro),Os(As,Y,`pointerup,touchend,mouseup`,zo),X.kill(),Xo(As);for(var n=0;n0&&r.left+i0&&r.top+i=0&&Js.splice(t,5),Js.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),q.core.getCache(e),Co())}}):Js},Q.revert=function(e,t){return Zs(!e,t)},Q.create=function(e,t){return new Q(e,t)},Q.refresh=function(e){return e?Us(!0):($a||Q.register())&&ac(!0)},Q.update=function(e){return++K.cache&&lc(e===!0?2:0)},Q.clearScrollMemory=Qs,Q.maxScroll=function(e,t){return Yo(e,t?Ha:Ua)},Q.getScrollFunc=function(e,t){return Ka(Wa(e),t?Ha:Ua)},Q.getById=function(e){return Rs[e]},Q.getAll=function(){return Z.filter(function(e){return e.vars.id!==`ScrollSmoother`})},Q.isScrolling=function(){return!!No},Q.snapDirectional=Es,Q.addEventListener=function(e,t){var n=Ws[e]||(Ws[e]=[]);~n.indexOf(t)||n.push(t)},Q.removeEventListener=function(e,t){var n=Ws[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},Q.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=q.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&Qo(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return Qo(a)&&(a=a(),ks(Q,`refresh`,function(){return a=t.batchMax()})),ro(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(Q.create(t))}),n};var Tc=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},Ec=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(Qa.isTouch?` pinch-zoom`:``):`none`,t===eo&&e(to,n)},Dc={auto:1,scroll:1},Oc=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||q.core.getCache(i),o=jo(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==to&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(Dc[(s=ys(i)).overflowY]||Dc[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!Wo(i)&&(Dc[(s=ys(i)).overflowY]||Dc[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},kc=function(e,t,n,r){return Qa.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=Oc,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&ks(Y,Qa.eventTypes[0],Mc,!1,!0)},onDisable:function(){return As(Y,Qa.eventTypes[0],Mc,!0)}})},Ac=/(input|label|select|textarea)/i,jc,Mc=function(e){var t=Ac.test(e.target.tagName);(t||jc)&&(e._gsapAllow=!0,jc=t)},Nc=function(e){es(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||=`wheel,touch`,e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=Wa(e.target)||eo,l=q.core.globals().ScrollSmoother,u=l&&l.get(),d=So&&(e.content&&Wa(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=Ka(c,Ua),p=Ka(c,Ha),m=1,h=(Qa.isTouch&&J.visualViewport?J.visualViewport.scale*J.visualViewport.width:J.outerWidth)/J.innerWidth,g=0,_=Qo(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=kc(c,e.type,!0,i),x=function(){return y=!1},S=Bo,C=Bo,w=function(){s=Yo(c,Ua),C=io(+!!So,s),n&&(S=io(0,Yo(c,Ha))),v=ec},T=function(){d._gsap.y=Vo(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=Vo(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=Vo((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=K.cache,lc()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&q.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return So&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=Vo((J.visualViewport&&J.visualViewport.scale||1)/h),D.pause(),e!==m&&Ec(c,m>1.01||!n&&`x`),O=p(),k=f(),w(),v=ec},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{K.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=Tc(p,i,o,Yo(c,Ha)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=Tc(f,i,o,Yo(c,Ua)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(So&&D.vars.scrollY>=s||i>=s-1)&&q.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),jo()-g>1e3&&(v=0,g=jo())},e.onChange=function(e,t,r,i,a){if(ec!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&lc()},e.onEnable=function(){Ec(c,!n&&`x`),Q.addEventListener(`refresh`,j),ks(J,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){Ec(c,!0),As(J,`resize`,j),Q.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new Qa(e),o.iOS=So,So&&!f()&&f(1),So&&q.ticker.add(Bo),A=o._dc,D=q.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:Sc(f,f(),function(){return D.pause()})},onUpdate:lc,onComplete:A.vars.onComplete}),o};Q.sort=function(e){if(Qo(e))return Z.sort(e);var t=J.pageYOffset||0;return Q.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+J.innerHeight}),Z.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},Q.observe=function(e){return new Qa(e)},Q.normalizeScroll=function(e){if(e===void 0)return vo;if(e===!0&&vo)return vo.enable();if(e===!1){vo&&vo.kill(),vo=e;return}var t=e instanceof Qa?e:Nc(e);return vo&&vo.target===t.target&&vo.kill(),Wo(t.target)&&(vo=t),t},Q.core={_getVelocityProp:qa,_inputObserver:kc,_scrollers:K,_proxies:Aa,bridge:{ss:function(){No||qs(`scrollStart`),No=jo()},ref:function(){return so}}},Uo()&&q.registerPlugin(Q);var Pc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Fc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Ic=Math.PI/180;180/Math.PI;var Lc=Math.sin,Rc=Math.cos,zc=Math.abs,Bc=Math.sqrt,Vc=function(e){return typeof e==`number`},Hc=1e5,Uc=function(e){return Math.round(e*Hc)/Hc||0},Wc=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function Gc(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u1&&(n=Bc(b)*n,r=Bc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*Bc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,N=(-g-T)/n,P=(-_-E)/r,ee=j*j+M*M,F=(M<0?-1:1)*Math.acos(j/Bc(ee)),I=(j*P-M*N<0?-1:1)*Math.acos((j*N+M*P)/Bc(ee*(N*N+P*P)));isNaN(I)&&(I=f),!o&&I>0?I-=p:o&&I<0&&(I+=p),F%=p,I%=p;var te=Math.ceil(zc(I)/(p/4)),ne=[],re=I/te,ie=4/3*Lc(re/2)/(1+Rc(re/2)),ae=u*n,L=d*n,oe=d*-r,se=u*r,ce;for(ce=0;ce-1e-4?0:t}).match(Pc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l.5||zc(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=Kc(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;ul*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},sl=function(){function e(e,t,n){Xc||Qc(),this.id=e,tl&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match(nl),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(rl.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=qc(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&al(n,t.height,t.originY),this.segment=n,d=2;dh.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cxh||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();sl.version=`3.15.0`,sl.headless=!0,Zc()&&Yc.registerPlugin(sl),da.registerPlugin(Q,sl);var cl=sl.create(`fadeUp`,`0.25,0.1,0.25,1`),ll=`(prefers-reduced-motion: reduce)`,ul=(0,l.createContext)({ready:!0});function dl({children:e}){return(0,N.jsx)(ul.Provider,{value:{ready:!0},children:e})}var fl={opacity:0,y:24,filter:`blur(8px)`},pl={opacity:1,y:0,filter:`blur(0px)`,duration:.7,ease:cl,clearProps:`filter`};function $({children:e,delay:t=0,immediate:n=!1,className:r,style:i,as:a=`div`}){let o=(0,l.useRef)(null);return(0,l.useContext)(ul),(0,l.useEffect)(()=>{let e=o.current;if(!e||window.matchMedia(ll).matches)return;da.set(e,fl);let r=da.to(e,{...pl,delay:t,...n?{}:{scrollTrigger:{trigger:e,start:`top bottom-=60`,once:!0}}});return()=>{r.scrollTrigger?.kill(),r.kill()}},[t,n]),(0,N.jsx)(a,{ref:o,className:r,style:i,children:e})}function ml({children:e,className:t,step:n=.1}){let r=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=r.current;if(!e||window.matchMedia(ll).matches)return;let t=Array.from(e.children);da.set(t,fl);let i=da.to(t,{...pl,stagger:n,scrollTrigger:{trigger:e,start:`top bottom-=60`,once:!0}});return()=>{i.scrollTrigger?.kill(),i.kill()}},[n]),(0,N.jsx)(`div`,{ref:r,className:t,children:e})}function hl(){return(0,N.jsxs)(`div`,{className:`hcard hcard--side`,children:[(0,N.jsxs)(`header`,{className:`hcard__head`,children:[(0,N.jsx)(`span`,{className:`hcard__label`,children:`Verifier`}),(0,N.jsx)(`span`,{className:`hcard__badge hcard__badge--sage`,children:`9/9 passed`})]}),(0,N.jsxs)(`svg`,{className:`hcard__chart`,viewBox:`0 0 200 72`,"aria-hidden":!0,children:[(0,N.jsx)(`defs`,{children:(0,N.jsxs)(`linearGradient`,{id:`hcard-fill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,N.jsx)(`stop`,{offset:`0%`,stopColor:`#7a8c3e`,stopOpacity:`0.25`}),(0,N.jsx)(`stop`,{offset:`100%`,stopColor:`#7a8c3e`,stopOpacity:`0`})]})}),(0,N.jsx)(`polygon`,{points:`0,60 34,48 68,52 102,34 136,38 170,18 200,12 200,72 0,72`,fill:`url(#hcard-fill)`}),(0,N.jsx)(`polyline`,{points:`0,60 34,48 68,52 102,34 136,38 170,18 200,12`,fill:`none`,stroke:`#7a8c3e`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),(0,N.jsxs)(`div`,{className:`hcard__ticks t-mono`,children:[(0,N.jsx)(`span`,{children:`n-01`}),(0,N.jsx)(`span`,{children:`n-03`}),(0,N.jsx)(`span`,{children:`n-05`}),(0,N.jsx)(`span`,{children:`n-07`})]})]})}function gl(){return(0,N.jsxs)(`div`,{className:`hcard hcard--main`,children:[(0,N.jsxs)(`header`,{className:`hcard__head`,children:[(0,N.jsx)(`span`,{className:`hcard__label t-mono`,children:`/graph show`}),(0,N.jsxs)(`span`,{className:`hcard__pill`,children:[`live`,(0,N.jsx)(`span`,{className:`hcard__live-dot`})]})]}),(0,N.jsxs)(`svg`,{className:`hcard__dag`,viewBox:`0 0 240 104`,"aria-hidden":!0,children:[(0,N.jsxs)(`g`,{stroke:`#08150c`,strokeOpacity:`0.16`,strokeWidth:`1.4`,children:[(0,N.jsx)(`path`,{d:`M38 28 C 74 28 84 24 118 24`,fill:`none`}),(0,N.jsx)(`path`,{d:`M38 28 C 74 32 84 74 118 76`,fill:`none`}),(0,N.jsx)(`path`,{d:`M38 78 C 74 78 84 78 118 76`,fill:`none`}),(0,N.jsx)(`path`,{d:`M118 24 C 158 24 168 48 202 50`,fill:`none`}),(0,N.jsx)(`path`,{d:`M118 76 C 158 74 168 52 202 50`,fill:`none`})]}),(0,N.jsxs)(`g`,{children:[(0,N.jsx)(`circle`,{cx:`38`,cy:`28`,r:`7`,fill:`#7a8c3e`}),(0,N.jsx)(`path`,{d:`M35 28 l2.2 2.2 4-4.4`,stroke:`#fdf5eb`,strokeWidth:`1.6`,fill:`none`,strokeLinecap:`round`}),(0,N.jsx)(`circle`,{cx:`38`,cy:`78`,r:`7`,fill:`#7a8c3e`}),(0,N.jsx)(`path`,{d:`M35 78 l2.2 2.2 4-4.4`,stroke:`#fdf5eb`,strokeWidth:`1.6`,fill:`none`,strokeLinecap:`round`}),(0,N.jsx)(`circle`,{cx:`118`,cy:`24`,r:`7`,fill:`#c46b2d`,className:`hcard__dag-run`}),(0,N.jsx)(`circle`,{cx:`118`,cy:`76`,r:`7`,fill:`#c46b2d`,className:`hcard__dag-run hcard__dag-run--late`}),(0,N.jsx)(`circle`,{cx:`202`,cy:`50`,r:`7`,fill:`none`,stroke:`#b8afa4`,strokeWidth:`1.6`,strokeDasharray:`3 3`})]})]}),(0,N.jsxs)(`div`,{className:`hcard__legend`,children:[(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`i`,{className:`hcard__dot hcard__dot--olive`}),`2 done`]}),(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`i`,{className:`hcard__dot hcard__dot--terra`}),`2 running`]}),(0,N.jsxs)(`span`,{children:[(0,N.jsx)(`i`,{className:`hcard__dot hcard__dot--taupe`}),`1 planned`]})]})]})}function _l(){return(0,N.jsxs)(`div`,{className:`hcard hcard--side`,children:[(0,N.jsxs)(`header`,{className:`hcard__head`,children:[(0,N.jsx)(`span`,{className:`hcard__label`,children:`Budget`}),(0,N.jsx)(`span`,{className:`hcard__badge hcard__badge--terra`,children:`cap 200k`})]}),(0,N.jsxs)(`p`,{className:`hcard__value`,children:[`184k `,(0,N.jsx)(`span`,{children:`/ 200k tokens`})]}),(0,N.jsx)(`div`,{className:`hcard__bars`,"aria-hidden":!0,children:[34,48,30,56,42,62,88,52,38,46,28,40].map((e,t)=>(0,N.jsx)(`span`,{className:t===6?`hcard__bar hcard__bar--peak`:`hcard__bar`,style:{height:`${e}%`}},t))}),(0,N.jsxs)(`div`,{className:`hcard__ticks t-mono`,children:[(0,N.jsx)(`span`,{children:`plan`}),(0,N.jsx)(`span`,{children:`fan out`}),(0,N.jsx)(`span`,{children:`verify`})]})]})}function vl(){return(0,N.jsxs)(`div`,{className:`hero-cards`,children:[(0,N.jsx)($,{immediate:!0,delay:.55,className:`hero-cards__slot hero-cards__slot--side`,children:(0,N.jsx)(hl,{})}),(0,N.jsx)($,{immediate:!0,delay:.65,className:`hero-cards__slot`,children:(0,N.jsx)(gl,{})}),(0,N.jsx)($,{immediate:!0,delay:.75,className:`hero-cards__slot hero-cards__slot--side`,children:(0,N.jsx)(_l,{})})]})}var yl=`modulepreload`,bl=function(e){return`/`+e},xl={},Sl=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=bl(t,n),t=s(t),t in xl)return;xl[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:yl,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Cl=(0,l.lazy)(()=>Sl(()=>import(`./HeroScene-Cl_ooGaM.js`).then(e=>({default:e.HeroScene})),__vite__mapDeps([0,1]))),wl={unix:{cmd:`curl -fsSL https://kigicli.dev/install.sh | bash`,label:`macOS / Linux`,micro:`macOS and Linux (arm64, x86_64).`},windows:{cmd:`irm https://kigicli.dev/install.ps1 | iex`,label:`Windows`,micro:`Windows on x86_64, via PowerShell.`}};function Tl(){return navigator.userAgent.toLowerCase().includes(`win`)?`windows`:`unix`}function El(){let[e,t]=(0,l.useState)(`unix`);return(0,l.useEffect)(()=>{t(Tl())},[]),(0,N.jsxs)(`section`,{className:`hero`,id:`top`,children:[(0,N.jsx)(l.Suspense,{fallback:null,children:(0,N.jsx)(Cl,{})}),(0,N.jsx)(`div`,{className:`hero__scrim`,"aria-hidden":!0}),(0,N.jsxs)(`div`,{className:`hero__inner shell`,children:[(0,N.jsxs)(`div`,{className:`hero__content`,children:[(0,N.jsx)($,{immediate:!0,children:(0,N.jsx)(`p`,{className:`t-eyebrow hero__eyebrow`,children:`Open-source. Apache-2.0. Runs in your terminal.`})}),(0,N.jsx)($,{immediate:!0,delay:.1,children:(0,N.jsx)(`h1`,{className:`t-display hero__title`,children:`The world’s first CLI with built-in Graph Engineering.`})}),(0,N.jsxs)($,{immediate:!0,delay:.4,className:`hero__install`,children:[(0,N.jsx)(`div`,{className:`hero__switch`,role:`tablist`,"aria-label":`Choose your platform`,children:[`unix`,`windows`].map(n=>(0,N.jsxs)(`button`,{role:`tab`,"aria-selected":e===n,className:A(`hero__switch-btn`,e===n&&`hero__switch-btn--active`),onClick:()=>t(n),children:[(0,N.jsx)(F,{children:n===`unix`?(0,N.jsxs)(`span`,{className:`hero__os-pair`,children:[(0,N.jsx)(ne,{}),(0,N.jsx)(ie,{})]}):(0,N.jsx)(re,{})}),wl[n].label]},n))}),(0,N.jsx)(ue,{command:wl[e].cmd,label:`Copy ${wl[e].label} install command`}),(0,N.jsx)(`p`,{className:`t-small t-tertiary hero__micro`,children:wl[e].micro})]}),(0,N.jsxs)($,{immediate:!0,delay:.5,className:`hero__ctas`,children:[(0,N.jsx)(P,{href:`#install`,size:`lg`,children:`Install Kigi`}),(0,N.jsx)(P,{href:`https://github.com/ELY-Open-Source/Kigi-CLI`,external:!0,variant:`secondary`,size:`lg`,children:`Star on GitHub`}),(0,N.jsx)(P,{href:`#graph`,variant:`ghost`,size:`lg`,children:`See what /graph does`})]})]}),(0,N.jsx)(vl,{})]})]})}function Dl({src:e,srcSmall:t,poster:n,caption:r,ratio:i=`16 / 10`,dark:a,className:o}){let s=(0,l.useRef)(null),[c,u]=(0,l.useState)(!1),d=(0,l.useRef)(!1),f=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>{d.current||!f.current||!e.paused||e.play().then(()=>u(!0),e=>{if(u(!1),e.name!==`AbortError`&&e.name!==`NotAllowedError`)throw e})},n=new IntersectionObserver(([n])=>{f.current=n.isIntersecting,n.isIntersecting?t():e.paused||(e.pause(),u(!1))},{threshold:.15});n.observe(e);let r=()=>u(!0),i=()=>u(!1);return e.addEventListener(`loadeddata`,t),e.addEventListener(`canplay`,t),e.addEventListener(`play`,r),e.addEventListener(`pause`,i),e.readyState>=2&&t(),()=>{n.disconnect(),e.removeEventListener(`loadeddata`,t),e.removeEventListener(`canplay`,t),e.removeEventListener(`play`,r),e.removeEventListener(`pause`,i)}},[]),(0,N.jsxs)(`figure`,{className:A(`videowell`,a&&`videowell--dark`,o),children:[(0,N.jsxs)(`div`,{className:`videowell__frame`,style:{aspectRatio:i},children:[(0,N.jsxs)(`video`,{ref:s,poster:n,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,preload:`auto`,"aria-label":r??`Product recording`,children:[t&&(0,N.jsx)(`source`,{src:t,type:`video/mp4`,media:`(max-width: 640px)`}),(0,N.jsx)(`source`,{src:e,type:`video/mp4`})]}),(0,N.jsx)(`button`,{type:`button`,className:`videowell__control`,onClick:()=>{let e=s.current;e&&(e.paused?(d.current=!1,e.play()):(d.current=!0,e.pause()))},"aria-label":c?`Pause video`:`Play video`,children:(0,N.jsx)(F,{children:c?(0,N.jsx)(C,{size:18,strokeWidth:1.5}):(0,N.jsx)(w,{size:18,strokeWidth:1.5})})})]}),r&&(0,N.jsx)(`figcaption`,{className:`videowell__caption t-small t-tertiary`,children:r})]})}function Ol(){return(0,N.jsx)(`section`,{id:`demo`,className:`demo`,children:(0,N.jsx)(`div`,{className:`shell`,children:(0,N.jsx)($,{className:`demo__media`,children:(0,N.jsx)(Dl,{src:`/video/main.mp4`,srcSmall:`/video/main-sm.mp4`,poster:`/video/main-poster.jpg`,caption:`Actual output. No mockups.`,ratio:`16 / 9`,dark:!0})})})})}var kl=[{icon:(0,N.jsx)(p,{size:18,strokeWidth:1.5}),command:`kigi`,title:`Full-screen TUI`,body:`Watch the agent work and steer it. Run /graph and the DAG draws itself in box characters.`,visual:`tui`},{icon:(0,N.jsx)(v,{size:18,strokeWidth:1.5}),command:`kigi -p`,title:`Headless in CI`,body:`One prompt in, one answer out, no UI. Treat the agent like any other build step.`,visual:`ci`},{icon:(0,N.jsx)(g,{size:18,strokeWidth:1.5}),command:`ACP`,title:`Docked in your editor`,body:`Kigi speaks the Agent Client Protocol. Keep your editor. Add the agent.`,visual:`editor`}];function Al(){return(0,N.jsxs)(`div`,{className:`surface__visual surface__visual--dark t-mono`,"aria-hidden":!0,children:[(0,N.jsxs)(`div`,{className:`surface__term-line`,children:[(0,N.jsx)(`span`,{className:`surface__dim`,children:`❯`}),` /graph add user auth to this API`]}),(0,N.jsxs)(`div`,{className:`surface__dag`,children:[(0,N.jsx)(`span`,{children:`┌─ plan ────────┐`}),(0,N.jsx)(`span`,{children:`│ ┌─[done]────┐ │`}),(0,N.jsx)(`span`,{children:`│ │ routes │ │`}),(0,N.jsx)(`span`,{children:`│ └────┬──────┘ │`}),(0,N.jsx)(`span`,{children:`│ ┌────┴──────┐ │`}),(0,N.jsx)(`span`,{children:`│ │ tests ▶ │ │`}),(0,N.jsx)(`span`,{children:`│ └───────────┘ │`}),(0,N.jsx)(`span`,{children:`└───────────────┘`})]})]})}function jl(){return(0,N.jsxs)(`div`,{className:`surface__visual surface__visual--dark t-mono`,"aria-hidden":!0,children:[(0,N.jsx)(`div`,{className:`surface__term-line`,children:(0,N.jsx)(`span`,{className:`surface__dim`,children:`# ci.yml`})}),(0,N.jsxs)(`div`,{className:`surface__term-line`,children:[`- run: `,(0,N.jsx)(`span`,{className:`surface__accent`,children:`kigi -p`}),` \\`]}),(0,N.jsx)(`div`,{className:`surface__term-line surface__indent`,children:`"migrate users table to uuid" \\`}),(0,N.jsx)(`div`,{className:`surface__term-line surface__indent`,children:`--budget 200000`})]})}function Ml(){return(0,N.jsxs)(`div`,{className:`surface__visual surface__visual--editor`,"aria-hidden":!0,children:[(0,N.jsxs)(`div`,{className:`surface__editor-pane`,children:[(0,N.jsx)(`div`,{className:`surface__editor-line`}),(0,N.jsx)(`div`,{className:`surface__editor-line`}),(0,N.jsx)(`div`,{className:`surface__editor-line surface__editor-line--short`}),(0,N.jsx)(`div`,{className:`surface__editor-line`})]}),(0,N.jsxs)(`div`,{className:`surface__editor-side t-mono`,children:[(0,N.jsx)(`div`,{className:`surface__term-line`,children:(0,N.jsx)(`span`,{className:`surface__dim`,children:`kigi`})}),(0,N.jsx)(`div`,{className:`surface__term-line surface__small`,children:`3 nodes done`}),(0,N.jsx)(`div`,{className:`surface__term-line surface__small surface__accent`,children:`verify ▶`})]})]})}function Nl(){return(0,N.jsx)(`section`,{id:`surfaces`,className:`section`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Surfaces`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`One agent. Run it where you work.`}),(0,N.jsxs)(`p`,{className:`t-body t-secondary`,children:[`Three surfaces. Same agent, same config, same `,(0,N.jsx)(`code`,{className:`t-mono`,children:`~/.kigi`}),`.`]})]}),(0,N.jsx)(ml,{className:`surfaces__grid`,children:kl.map(e=>(0,N.jsxs)(`article`,{className:`surface`,children:[(0,N.jsxs)(`header`,{className:`surface__head`,children:[(0,N.jsx)(`span`,{className:`surface__icon`,children:(0,N.jsx)(F,{children:e.icon})}),(0,N.jsx)(`code`,{className:`surface__command t-mono`,children:e.command})]}),(0,N.jsx)(`h3`,{className:`t-h3`,children:e.title}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:e.body}),e.visual===`tui`&&(0,N.jsx)(Al,{}),e.visual===`ci`&&(0,N.jsx)(jl,{}),e.visual===`editor`&&(0,N.jsx)(Ml,{})]},e.title))})]})})}var Pl=[{n:`01`,title:`Plan`,body:`Your objective becomes a dependency graph, validated before anything runs.`},{n:`02`,title:`Fan out`,body:`Independent nodes run in parallel, each in its own git worktree.`},{n:`03`,title:`Verify`,body:`A node that can't prove itself to an adversarial verifier doesn't merge.`},{n:`04`,title:`Replan`,body:`A worker that finds unplanned work flags DISCOVERED: and the graph grows. Append-only.`},{n:`05`,title:`Tighten`,body:`A topology optimizer drops dependencies that were never real.`},{n:`06`,title:`Re-check`,body:`A final node re-checks the whole objective before the run calls itself done.`}],Fl=[{cmd:`/graph [--budget ]`,desc:`start a graph run`},{cmd:`/graph status`,desc:`where things stand`},{cmd:`/graph show`,desc:`the DAG, drawn in box characters`},{cmd:`/graph pause | resume [--budget ]`,desc:`stop and pick back up`},{cmd:`/graph clear`,desc:`wipe the graph`}];function Il(){return(0,N.jsx)(`section`,{id:`graph`,className:`section graph`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Graph Engineering`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`One objective in. Verified work out.`}),(0,N.jsxs)(`p`,{className:`t-body t-secondary`,children:[`Type `,(0,N.jsx)(`code`,{className:`t-mono`,children:`/graph`}),` and an objective. It becomes a dependency DAG of autonomous agent loops. Not a longer prompt — a different way of running an agent.`]})]}),(0,N.jsxs)(`div`,{className:`graph__grid`,children:[(0,N.jsx)(ml,{className:`graph__steps`,children:Pl.map(e=>(0,N.jsxs)(`article`,{className:`graph__step`,children:[(0,N.jsx)(`span`,{className:`graph__step-n`,children:e.n}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h3`,{className:`t-h3`,children:e.title}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:e.body})]})]},e.n))}),(0,N.jsx)($,{delay:.15,className:`graph__media`,children:(0,N.jsx)(Dl,{src:`/video/graph-engineering.mp4`,srcSmall:`/video/graph-engineering-sm.mp4`,poster:`/video/graph-engineering-poster.jpg`,caption:`Every worker in its own worktree. Every merge gated by a verifier.`,ratio:`16 / 9`,dark:!0})})]}),(0,N.jsxs)(`div`,{className:`graph__panels`,children:[(0,N.jsxs)($,{className:`graph__panel graph__panel--dark`,children:[(0,N.jsx)(`h3`,{className:`t-h3`,children:`Commands`}),(0,N.jsx)(`ul`,{className:`graph__cmds t-mono`,children:Fl.map(e=>(0,N.jsxs)(`li`,{children:[(0,N.jsx)(`code`,{className:`graph__cmd`,children:e.cmd}),(0,N.jsx)(`span`,{className:`graph__cmd-desc`,children:e.desc})]},e.cmd))})]}),(0,N.jsxs)($,{delay:.1,className:`graph__panel`,children:[(0,N.jsx)(`h3`,{className:`t-h3`,children:`State`}),(0,N.jsxs)(`p`,{className:`t-small t-secondary`,children:[`State lives in `,(0,N.jsx)(`code`,{className:`t-mono`,children:`.kigi/graph.jsonl`}),`, next to your code. Close the laptop, come back tomorrow, `,(0,N.jsx)(`code`,{className:`t-mono`,children:`/graph resume`}),` — or hand the repo to a teammate, who resumes the same run from the same file.`]}),(0,N.jsx)(`h3`,{className:`t-h3 graph__panel-gap`,children:`Config`}),(0,N.jsxs)(`p`,{className:`t-small t-secondary`,children:[`On by default; `,(0,N.jsx)(`code`,{className:`t-mono`,children:`KIGI_GRAPH=0`}),` turns it off.`,` `,(0,N.jsx)(`code`,{className:`t-mono`,children:`KIGI_GRAPH_CONCURRENCY`}),` sets parallel nodes (default 3).`,` `,(0,N.jsx)(`code`,{className:`t-mono`,children:`--budget`}),` caps tokens per run.`]})]})]})]})})}var Ll=[.05,.15,.25,.35];function Rl(){return(0,N.jsxs)(`div`,{className:`tenet__inner`,children:[(0,N.jsx)(`p`,{className:`tenet__inner-title`,children:`.kigi/graph.jsonl`}),(0,N.jsx)(`p`,{className:`tenet__inner-sub`,children:`graph state, in your repo`}),(0,N.jsxs)(`div`,{className:`tenet__donut-wrap`,children:[(0,N.jsxs)(`svg`,{className:`tenet__donut`,viewBox:`0 0 36 36`,"aria-hidden":!0,children:[(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`#c46b2d`,strokeWidth:`5`,strokeDasharray:`26.4 61.56`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`#7a8c3e`,strokeWidth:`5`,strokeDasharray:`22 65.96`,strokeDashoffset:`-26.4`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`#a8b87a`,strokeWidth:`5`,strokeDasharray:`17.6 70.36`,strokeDashoffset:`-48.4`}),(0,N.jsx)(`circle`,{cx:`18`,cy:`18`,r:`14`,fill:`none`,stroke:`#b8afa4`,strokeWidth:`5`,strokeDasharray:`22 65.96`,strokeDashoffset:`-66`})]}),(0,N.jsxs)(`div`,{className:`tenet__donut-center`,children:[(0,N.jsx)(`span`,{className:`tenet__donut-n`,children:`12`}),(0,N.jsx)(`span`,{className:`tenet__donut-l`,children:`nodes`})]})]})]})}var zl=[{icon:(0,N.jsx)(D,{size:18,strokeWidth:1.5}),title:`Nothing merges unverified`,body:`Every node faces an adversarial verifier before its work reaches your tree, and a final node re-checks the whole objective. Done is a verdict the graph has to earn.`,image:`/img/tenet-verify.webp`},{icon:(0,N.jsx)(f,{size:18,strokeWidth:1.5}),title:`Parallel work, isolated work`,body:`Independent nodes run at the same time, each in its own git worktree. Workers never share a working directory, so concurrency costs you no merge chaos.`,image:`/img/tenet-parallel.webp`},{icon:(0,N.jsx)(y,{size:18,strokeWidth:1.5}),title:`State you can walk away from`,body:`The graph persists to .kigi/graph.jsonl as it runs. Interrupt it, reboot, resume tomorrow. Plain JSONL in your repo, so a teammate can pick up the run you started.`,image:null},{icon:(0,N.jsx)(T,{size:18,strokeWidth:1.5}),title:`Replan without rewriting`,body:`Real codebases surprise you. A worker that hits out-of-scope work flags DISCOVERED: and the graph grows to cover it. The plan is append-only: agreed work is never silently rewritten.`,image:`/img/tenet-replan.webp`}];function Bl(){return(0,N.jsx)(`section`,{id:`tenets`,className:`section`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Tenets`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`What the graph is built on`}),(0,N.jsx)(`p`,{className:`t-body t-secondary`,children:`Four rules. Each one is a mechanism, not a value statement.`})]}),(0,N.jsx)(`div`,{className:`tenets__grid`,children:zl.map((e,t)=>(0,N.jsx)($,{delay:Ll[t],as:`div`,children:(0,N.jsxs)(`article`,{className:e.image?`tenet tenet--image`:`tenet tenet--panel`,children:[e.image&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`img`,{className:`tenet__bg`,src:e.image,alt:``,loading:`lazy`}),(0,N.jsx)(`div`,{className:`tenet__overlay`,"aria-hidden":!0})]}),(0,N.jsxs)(`header`,{className:`tenet__top`,children:[(0,N.jsx)(F,{children:e.icon}),(0,N.jsx)(`h3`,{className:`tenet__title`,children:e.title})]}),!e.image&&(0,N.jsx)(Rl,{}),(0,N.jsx)(`p`,{className:`tenet__body`,children:e.body})]})},e.title))})]})})}var Vl=[{title:`One prompt, many items`,body:`A prompt template holding {{item}} plus a list. Each entry becomes a member, and the call returns when the last one lands.`},{title:`Paced like a fleet`,body:`Five start at once, the rest every 700ms. Rate limits shrink the fleet instead of failing it, and capacity comes back as the window clears.`},{title:`Disjoint scopes`,body:`Members share one working tree, so each needs its own files. Read-only scopes may overlap freely.`}];function Hl(){return(0,N.jsx)(`section`,{id:`swarm`,className:`section swarm`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Agent Swarm`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`Same prompt. Twelve files. One pass.`}),(0,N.jsxs)(`p`,{className:`t-body t-secondary`,children:[(0,N.jsx)(`code`,{className:`t-mono`,children:`/swarm`}),` fans one instruction across up to 128 subagents. Where`,` `,(0,N.jsx)(`code`,{className:`t-mono`,children:`/graph`}),` plans dependencies, a swarm is pure breadth.`]})]}),(0,N.jsxs)(`div`,{className:`swarm__grid`,children:[(0,N.jsx)($,{className:`swarm__demo`,children:(0,N.jsxs)(`div`,{className:`swarm__term t-mono`,"aria-hidden":!0,children:[(0,N.jsxs)(`p`,{className:`swarm__term-line`,children:[(0,N.jsx)(`span`,{className:`swarm__dim`,children:`>`}),` `,(0,N.jsx)(`span`,{className:`swarm__accent`,children:`/swarm`}),` add a doc comment to every crate`]}),(0,N.jsx)(`div`,{className:`swarm__fleet`,children:[{item:`kigi-agent`,state:`done`},{item:`kigi-tools`,state:`done`},{item:`kigi-shell`,state:`run`},{item:`kigi-tui`,state:`run`},{item:`kigi-hooks`,state:`wait`}].map(e=>(0,N.jsxs)(`p`,{className:`swarm__member swarm__member--${e.state}`,children:[(0,N.jsx)(`span`,{className:`swarm__dot`}),e.item]},e.item))}),(0,N.jsx)(`p`,{className:`swarm__term-line swarm__dim`,children:`5 members · 2 done · 2 running · 1 queued`})]})}),(0,N.jsx)(ml,{className:`swarm__traits`,children:Vl.map(e=>(0,N.jsxs)(`article`,{className:`swarm__trait`,children:[(0,N.jsx)(`h3`,{className:`t-h3`,children:e.title}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:e.body})]},e.title))})]})]})})}var Ul=[`Kimi Code`,`Claude Pro / Max`,`ChatGPT Plus / Pro (Codex)`,`GitHub Copilot`,`xAI Grok`],Wl=[`OpenAI`,`Anthropic`,`Google Gemini`,`DeepSeek`,`Groq`,`Mistral`,`Fireworks AI`,`OpenRouter`,`Together AI`,`Cerebras`,`NVIDIA NIM`,`Vercel AI Gateway`,`xAI (Grok)`,`Qwen Token Plan`,`Qwen Token Plan (China)`,`Z.AI`,`Z.AI Coding (China)`,`Xiaomi MiMo`,`Xiaomi Token Plan (China)`,`MiniMax`,`MiniMax (China)`,`Moonshot (cn)`,`Moonshot (ai)`,`Kimi For Coding`],Gl=[`Model lists sync at sign-in, so new models appear without a Kigi update.`,`/model switches mid-session. /effort sets the thinking level.`,`Each provider's token is stored under its own key and never sent to another.`,`web_search needs a Kimi Code sign-in; web_fetch works on any provider.`];function Kl(){return(0,N.jsx)(`section`,{id:`providers`,className:`section providers`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Providers`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`Already paying for Claude Max? Use it.`}),(0,N.jsx)(`p`,{className:`t-body t-secondary`,children:`29 platforms. Five sign in with a subscription you already have — no API key, no second bill.`})]}),(0,N.jsxs)(`div`,{className:`providers__grid`,children:[(0,N.jsxs)($,{className:`providers__panel providers__panel--accent`,children:[(0,N.jsxs)(`header`,{className:`providers__panel-head`,children:[(0,N.jsx)(F,{children:(0,N.jsx)(m,{size:18,strokeWidth:1.5})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:`Sign in with your subscription`})]}),(0,N.jsx)(`ul`,{className:`providers__list`,children:Ul.map(e=>(0,N.jsxs)(`li`,{className:`providers__item`,children:[(0,N.jsx)(`span`,{className:`providers__dot`,"aria-hidden":!0}),e]},e))})]}),(0,N.jsxs)($,{delay:.08,className:`providers__panel`,children:[(0,N.jsxs)(`header`,{className:`providers__panel-head`,children:[(0,N.jsx)(F,{children:(0,N.jsx)(b,{size:18,strokeWidth:1.5})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:`Bring your own key`})]}),(0,N.jsx)(`ul`,{className:`providers__list providers__list--compact`,children:Wl.map(e=>(0,N.jsx)(`li`,{className:`providers__item providers__item--compact t-small`,children:e},e))})]})]}),(0,N.jsx)($,{className:`providers__details`,children:Gl.map(e=>(0,N.jsx)(`p`,{className:`t-small t-secondary providers__detail`,children:e},e))})]})})}function ql(){return(0,N.jsx)(`section`,{id:`trust`,className:`section trust`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)(`div`,{className:`trust__grid`,children:[(0,N.jsxs)(`div`,{className:`trust__main`,children:[(0,N.jsxs)($,{children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Trust`}),(0,N.jsx)(`h2`,{className:`t-h2 trust__title`,children:`Zero telemetry. Your keys stay yours.`})]}),(0,N.jsx)($,{delay:.1,children:(0,N.jsx)(`p`,{className:`t-quote`,children:`Kigi talks to the APIs you configured, the Kigi release server, and your own MCP servers. Nothing else. There is no analytics endpoint to opt out of because there is no analytics endpoint.`})}),(0,N.jsx)($,{delay:.2,children:(0,N.jsx)(`p`,{className:`t-small t-secondary trust__fine`,children:`Apache-2.0, so you don't have to take that on faith. An independent project, not affiliated with Moonshot AI or xAI.`})})]}),(0,N.jsx)($,{delay:.15,className:`trust__figure`,as:`figure`,children:(0,N.jsx)(`img`,{src:`/img/trust-key.webp`,alt:`A single brass key resting on cream linen`,loading:`lazy`})})]}),(0,N.jsxs)(`div`,{className:`trust__cards`,children:[(0,N.jsxs)($,{className:`trust__card`,children:[(0,N.jsx)(`span`,{className:`trust__icon`,children:(0,N.jsx)(F,{children:(0,N.jsx)(D,{size:18,strokeWidth:1.5})})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:`Auditable`}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:`Every tenet above is a mechanism you can read in the source. Development in the open.`})]}),(0,N.jsxs)($,{delay:.1,className:`trust__card`,children:[(0,N.jsx)(`span`,{className:`trust__icon`,children:(0,N.jsx)(F,{children:(0,N.jsx)(x,{size:18,strokeWidth:1.5})})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:`Coexists with the official CLI`}),(0,N.jsxs)(`p`,{className:`t-small t-secondary`,children:[`Its own binary, its own `,(0,N.jsx)(`code`,{className:`t-mono`,children:`~/.kigi`}),`, keyring entries and`,` `,(0,N.jsx)(`code`,{className:`t-mono`,children:`KIGI_*`}),` env vars. `,(0,N.jsx)(`code`,{className:`t-mono`,children:`kigi import-kimi`}),` `,`copies your old config once, read-only.`]})]})]})]})})}var Jl=[{icon:(0,N.jsx)(p,{size:18,strokeWidth:1.5}),title:`You live in the terminal`,body:`Run kigi and stay there. Close the lid mid-run; the graph resumes from .kigi/graph.jsonl.`},{icon:(0,N.jsx)(E,{size:18,strokeWidth:1.5}),title:`You own the pipeline`,body:`kigi -p runs headless. Cap spend with --budget, match your runner with KIGI_GRAPH_CONCURRENCY.`},{icon:(0,N.jsx)(g,{size:18,strokeWidth:1.5}),title:`You stay in your editor`,body:`Kigi docks into any ACP editor. Same agent, same keys, same graphs. You stopped alt-tabbing.`}];function Yl(){return(0,N.jsx)(`section`,{id:`built-for`,className:`section`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Built for`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`Built for how you already work`})]}),(0,N.jsx)(ml,{className:`builtfor__grid`,children:Jl.map(e=>(0,N.jsxs)(`article`,{className:`builtfor__card`,children:[(0,N.jsx)(`span`,{className:`builtfor__icon`,children:(0,N.jsx)(F,{children:e.icon})}),(0,N.jsx)(`h3`,{className:`t-h3`,children:e.title}),(0,N.jsx)(`p`,{className:`t-small t-secondary`,children:e.body})]},e.title))})]})})}var Xl={unix:{label:`macOS / Linux`,cmd:`curl -fsSL https://kigicli.dev/install.sh | bash`},windows:{label:`Windows (PowerShell)`,cmd:`irm https://kigicli.dev/install.ps1 | iex`}},Zl=[`macOS and Linux on arm64 and x86_64. Windows on x86_64.`,`Downloads are checksummed against the release SHA256SUMS.`,`kigi update handles upgrades from then on.`,`Prefer source? Rust 1.97.0, then cargo build --profile release-dist -p kigi-bin.`];function Ql(){let[e,t]=(0,l.useState)(`unix`);return(0,N.jsx)(`section`,{id:`install`,className:`section install`,children:(0,N.jsxs)(`div`,{className:`shell install__inner`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`Install`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`One file. No runtime. Thirty seconds.`})]}),(0,N.jsxs)($,{className:`install__flow`,children:[(0,N.jsx)(`div`,{className:`install__tabs`,role:`tablist`,"aria-label":`Platform`,children:[`unix`,`windows`].map(n=>(0,N.jsxs)(`button`,{role:`tab`,"aria-selected":e===n,className:A(`install__tab`,e===n&&`install__tab--active`),onClick:()=>t(n),children:[(0,N.jsx)(F,{children:n===`unix`?(0,N.jsxs)(`span`,{className:`install__os-pair`,children:[(0,N.jsx)(ne,{}),(0,N.jsx)(ie,{})]}):(0,N.jsx)(re,{})}),Xl[n].label]},n))}),(0,N.jsxs)(`div`,{className:`install__steps`,children:[(0,N.jsxs)(`div`,{className:`install__step`,children:[(0,N.jsx)(`span`,{className:`install__step-n t-mono`,children:`1`}),(0,N.jsx)(ue,{dark:!0,command:Xl[e].cmd,label:`Copy ${Xl[e].label} installer`})]}),(0,N.jsxs)(`div`,{className:`install__step`,children:[(0,N.jsx)(`span`,{className:`install__step-n t-mono`,children:`2`}),(0,N.jsx)(ue,{dark:!0,command:`kigi login`,label:`Copy kigi login`})]}),(0,N.jsxs)(`div`,{className:`install__step`,children:[(0,N.jsx)(`span`,{className:`install__step-n t-mono`,children:`3`}),(0,N.jsx)(ue,{dark:!0,command:`kigi`,label:`Copy kigi`})]})]})]}),(0,N.jsx)($,{className:`install__notes`,children:Zl.map(e=>(0,N.jsxs)(`p`,{className:`install__note t-small`,children:[(0,N.jsx)(F,{children:(0,N.jsx)(m,{size:18,strokeWidth:1.5,color:`var(--olive)`})}),(0,N.jsx)(`span`,{children:e})]},e))})]})})}var $l=[{q:`Do I need an API key?`,a:`Not if you already pay for Kimi Code, Claude Pro/Max, ChatGPT Plus/Pro, GitHub Copilot, or xAI Grok. Otherwise any of 24 API-key providers works.`},{q:`What does /graph do differently?`,a:`One agent loop becomes a dependency DAG. Independent nodes run in parallel, each in its own git worktree, and every node passes an adversarial verifier before it merges.`},{q:`How is a swarm different from a graph?`,a:`A swarm is one prompt over many items, fanned out and returned as one result. A graph plans dependencies and verifies each node. Swarm for breadth, graph for work that has to be right.`},{q:`Can I cap what a run costs?`,a:`--budget caps a graph run. KIGI_GRAPH_CONCURRENCY sets how many nodes run at once (default 3), KIGI_AGENT_SWARM_MAX_CONCURRENCY does the same for swarms.`},{q:`Can I turn graph mode off?`,a:`KIGI_GRAPH=0. Kigi works as a regular coding agent without it.`},{q:`What leaves my machine?`,a:`The provider APIs you configured, the Kigi release server, and your own MCP servers. No telemetry. No provider's key is ever sent to another.`},{q:`Does it have web search?`,a:`web_search runs on the Kimi search service, so it needs a Kimi Code sign-in. web_fetch reads a URL on any provider. --disable-web-search turns both off.`},{q:`How do I update?`,a:`kigi update. Installs are checksummed against the release SHA256SUMS.`}];function eu({q:e,a:t,open:n,onToggle:r}){return(0,N.jsxs)(`div`,{className:A(`faq__item`,n&&`faq__item--open`),children:[(0,N.jsxs)(`button`,{type:`button`,className:`faq__q`,"aria-expanded":n,onClick:r,children:[(0,N.jsx)(`span`,{className:`t-h3`,children:e}),(0,N.jsx)(`span`,{className:`faq__chevron`,"aria-hidden":!0,children:(0,N.jsx)(F,{children:(0,N.jsx)(h,{size:18,strokeWidth:1.5})})})]}),(0,N.jsx)(`div`,{className:`faq__a-wrap`,"aria-hidden":!n,children:(0,N.jsx)(`p`,{className:`faq__a t-body t-secondary`,children:t})})]})}function tu(){let[e,t]=(0,l.useState)(0);return(0,N.jsx)(`section`,{id:`faq`,className:`section`,children:(0,N.jsxs)(`div`,{className:`shell faq__inner`,children:[(0,N.jsxs)($,{className:`section__head`,children:[(0,N.jsx)(`p`,{className:`t-eyebrow`,children:`FAQ`}),(0,N.jsx)(`h2`,{className:`t-h2`,children:`Questions, answered`})]}),(0,N.jsx)($,{className:`faq__list`,children:$l.map((n,r)=>(0,N.jsx)(eu,{q:n.q,a:n.a,open:e===r,onToggle:()=>t(e===r?null:r)},n.q))})]})})}function nu(){return(0,N.jsx)(`section`,{id:`cta`,className:`section cta`,children:(0,N.jsxs)(`div`,{className:`shell cta__inner`,children:[(0,N.jsx)($,{children:(0,N.jsx)(`h2`,{className:`t-display cta__title`,children:`Your next feature is one command away.`})}),(0,N.jsx)($,{delay:.1,children:(0,N.jsx)(`p`,{className:`t-body cta__sub`,children:`Sign in with the subscription you already have and run your first graph.`})}),(0,N.jsx)($,{delay:.2,className:`cta__cmd`,children:(0,N.jsx)(ue,{command:`curl -fsSL https://kigicli.dev/install.sh | bash`,label:`Copy install command`})}),(0,N.jsxs)($,{delay:.3,className:`cta__actions`,children:[(0,N.jsx)(P,{href:`#install`,size:`lg`,className:`btn--invert`,children:`Install Kigi`}),(0,N.jsx)(P,{href:`https://github.com/ELY-Open-Source/Kigi-CLI`,external:!0,variant:`secondary`,size:`lg`,className:`btn--invert`,children:`Star on GitHub`}),(0,N.jsx)(P,{href:`#graph`,variant:`ghost`,size:`lg`,className:`btn--invert`,children:`Run your first graph`})]}),(0,N.jsx)($,{delay:.4,children:(0,N.jsx)(`p`,{className:`t-small cta__micro`,children:`Apache-2.0. Zero telemetry. Not affiliated with Moonshot AI or xAI.`})})]})})}var ru=`https://github.com/ELY-Open-Source/Kigi-CLI`,iu=`${ru}/blob/main/README.md`,au=[{title:`Product`,links:[{label:`Terminal UI`,href:`#surfaces`},{label:`Headless mode`,href:`#surfaces`},{label:`Editor integration`,href:`#surfaces`},{label:`Graph Engineering`,href:`#graph`},{label:`Agent Swarm`,href:`#swarm`},{label:`Providers`,href:`#providers`}]},{title:`Docs`,links:[{label:`Quickstart`,href:`${iu}#user-content-installation`},{label:`/graph commands`,href:`${iu}#user-content-graph-engineering`},{label:`Providers and sign-in`,href:`${iu}#user-content-providers-and-api-keys`},{label:`Configuration`,href:`${iu}#user-content-providers-and-api-keys`},{label:`Build from source`,href:`${iu}#user-content-building-from-source`}]},{title:`Project`,links:[{label:`GitHub`,href:ru},{label:`Releases`,href:`${ru}/releases`},{label:`Issues`,href:`${ru}/issues`},{label:`License: Apache-2.0`,href:`${ru}/blob/main/LICENSE`}]}];function ou(){return(0,N.jsx)(`footer`,{className:`footer`,children:(0,N.jsxs)(`div`,{className:`shell`,children:[(0,N.jsxs)(`div`,{className:`footer__grid`,children:[(0,N.jsxs)(`div`,{className:`footer__brand`,children:[(0,N.jsx)(`a`,{className:`footer__logo`,href:`#top`,children:`kigi`}),(0,N.jsx)(`p`,{className:`t-small t-tertiary`,children:`The open-source CLI coding agent with built-in Graph Engineering.`}),(0,N.jsx)(`a`,{className:`footer__gh`,href:ru,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Kigi on GitHub`,children:(0,N.jsx)(F,{label:`GitHub`,children:(0,N.jsx)(te,{})})})]}),au.map(e=>(0,N.jsxs)(`nav`,{className:`footer__col`,"aria-label":e.title,children:[(0,N.jsx)(`h3`,{className:`footer__col-title t-small`,children:e.title}),(0,N.jsx)(`ul`,{children:e.links.map(e=>(0,N.jsx)(`li`,{children:(0,N.jsx)(`a`,{className:`footer__link t-small`,href:e.href,children:e.label})},e.label))})]},e.title))]}),(0,N.jsx)(`div`,{className:`footer__bottom`,children:(0,N.jsx)(`p`,{className:`t-small t-tertiary`,children:`An independent open-source project, not affiliated with Moonshot AI or xAI. "Claude," "ChatGPT," "Copilot," and "Grok" belong to their respective owners.`})})]})})}var su=`1.3.25`;function cu(e,t,n){return Math.max(e,Math.min(t,n))}function lu(e,t,n){return(1-n)*e+n*t}function uu(e,t,n,r){return lu(e,t,1-Math.exp(-n*r))}function du(e,t){return(e%t+t)%t}var fu=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let n=cu(0,this.currentTime/this.duration,1);t=n>=1;let r=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=uu(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:i,onStart:a,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=o}};function pu(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,r)},t)}}var mu=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:n=!0,debounce:r=250}={}){this.wrapper=e,this.content=t,n&&(this.debouncedResize=pu(this.resize,r),this.wrapper instanceof Window?window.addEventListener(`resize`,this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener(`resize`,this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},hu=class{events={};emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},gu=100/6,_u={passive:!1};function vu(e,t){return e===1?gu:e===2?t:1}var yu=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new hu;constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener(`resize`,this.onWindowResize),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,_u),this.element.addEventListener(`touchstart`,this.onTouchStart,_u),this.element.addEventListener(`touchmove`,this.onTouchMove,_u),this.element.addEventListener(`touchend`,this.onTouchEnd,_u)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener(`resize`,this.onWindowResize),this.element.removeEventListener(`wheel`,this.onWheel,_u),this.element.removeEventListener(`touchstart`,this.onTouchStart,_u),this.element.removeEventListener(`touchmove`,this.onTouchMove,_u),this.element.removeEventListener(`touchend`,this.onTouchEnd,_u)}onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit(`scroll`,{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit(`scroll`,{deltaX:r,deltaY:i,event:e})};onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e,i=vu(r,this.window.width),a=vu(r,this.window.height);t*=i,n*=a,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},bu=e=>Math.min(1,1.001-2**(-10*e)),xu=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new fu;emitter=new hu;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaExponent:o=1.7,duration:s,easing:c,lerp:l=.1,infinite:u=!1,orientation:d=`vertical`,gestureOrientation:f=d===`horizontal`?`both`:`vertical`,touchMultiplier:p=1,wheelMultiplier:m=1,autoResize:h=!0,prevent:g,virtualScroll:_,overscroll:v=!0,autoRaf:y=!1,anchors:b=!1,autoToggle:x=!1,allowNestedScroll:S=!1,__experimental__naiveDimensions:C=!1,naiveDimensions:w=C,stopInertiaOnNavigate:T=!1}={}){window.lenisVersion=su,window.lenis||(window.lenis={}),window.lenis.version=su,d===`horizontal`&&(window.lenis.horizontal=!0),i===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!e||e===document.documentElement)&&(e=window),typeof s==`number`&&typeof c!=`function`?c=bu:typeof c==`function`&&typeof s!=`number`&&(s=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:a,touchInertiaExponent:o,duration:s,easing:c,lerp:l,infinite:u,gestureOrientation:f,orientation:d,touchMultiplier:p,wheelMultiplier:m,autoResize:h,prevent:g,virtualScroll:_,overscroll:v,autoRaf:y,anchors:b,autoToggle:x,allowNestedScroll:S,naiveDimensions:w,stopInertiaOnNavigate:T},this.dimensions=new mu(e,t,{autoResize:h}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.addEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener(`click`,this.onClick),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown),this.virtualScroll=new yu(n,{touchMultiplier:p,wheelMultiplier:m}),this.virtualScroll.on(`scroll`,this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener(`transitionend`,this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.removeEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener(`click`,this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling===`smooth`||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent(`scrollend`,{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?`overflow-x`:`overflow-y`;return getComputedStyle(this.rootElement)[e]}checkOverflow(){[`hidden`,`clip`].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName?.includes(`overflow`)&&e.target===this.rootElement&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:`instant`}):this.options.wrapper.scrollTo({top:e,behavior:`instant`})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),n=new URL(window.location.href);if(this.options.anchors){let e=t.find(e=>n.host===e.host&&n.pathname===e.pathname&&e.hash);if(e){let t=typeof this.options.anchors==`object`&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(e.hash);this.scrollTo(n,t);return}}if(this.options.stopInertiaOnNavigate&&t.some(e=>n.host===e.host&&n.pathname!==e.pathname)){this.reset();return}};onPointerDown=e=>{e.button===1&&this.reset()};isTouchOnSelectionHandle(e){let t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return!1;let n=e.targetTouches[0]??e.changedTouches[0];if(!n)return!1;let r=t.getRangeAt(0).getClientRects();if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=Math.hypot(n.clientX-i.left,n.clientY-i.top)<=40,s=Math.hypot(n.clientX-a.right,n.clientY-a.bottom)<=40;return o||s}onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);if(i&&this.isIos&&(r.type===`touchstart`&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(r)),this._isDraggingSelection)){r.type===`touchend`&&(this._isDraggingSelection=!1);return}this.isTouching=r.type===`touchstart`||r.type===`touchmove`;let o=t===0&&n===0;if(this.options.syncTouch&&i&&r.type===`touchstart`&&o&&!this.isStopped&&!this.isLocked){this.reset();return}let s=this.options.gestureOrientation===`vertical`&&n===0||this.options.gestureOrientation===`horizontal`&&t===0;if(o||s)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let l=this.options.prevent,u=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`;if(c.find(e=>e instanceof HTMLElement&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.(`data-lenis-prevent`)||u===`vertical`&&e.hasAttribute?.(`data-lenis-prevent-vertical`)||u===`horizontal`&&e.hasAttribute?.(`data-lenis-prevent-horizontal`)||i&&e.hasAttribute?.(`data-lenis-prevent-touch`)||a&&e.hasAttribute?.(`data-lenis-prevent-wheel`)||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){r.cancelable&&r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling=`native`,this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation===`both`?d=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(d=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();let f=i&&this.options.syncTouch,p=i&&r.type===`touchend`;p&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit(`scroll`,this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling===`native`){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling=`native`),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty(`overflow`);return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty(`overflow`,`clip`);return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,programmatic:i=!0,lerp:a=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:s=i?this.options.easing:void 0,onStart:c,onComplete:l,force:u=!1,userData:d}={}){if((this.isStopped||this.isLocked)&&!u)return;let f=e,p=t;if(typeof f==`string`&&[`top`,`left`,`start`,`#`].includes(f))f=0;else if(typeof f==`string`&&[`bottom`,`right`,`end`].includes(f))f=this.limit;else{let e=null;if(typeof f==`string`?(e=f.startsWith(`#`)?document.getElementById(f.slice(1)):document.querySelector(f),e||(f===`#top`?f=0:console.warn(`Lenis: Target not found`,f))):f instanceof HTMLElement&&f?.nodeType&&(e=f),e){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();p-=this.isHorizontal?e.left:e.top}let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=this.isHorizontal?Number.parseFloat(n.scrollMarginLeft):Number.parseFloat(n.scrollMarginTop),i=getComputedStyle(this.rootElement),a=this.isHorizontal?Number.parseFloat(i.scrollPaddingLeft):Number.parseFloat(i.scrollPaddingTop);f=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(r)?0:r)-(Number.isNaN(a)?0:a)}}if(typeof f==`number`){if(f+=p,this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let e=f-this.animatedScroll;e>this.limit/2?f-=this.limit:e<-this.limit/2&&(f+=this.limit)}}else f=cu(0,f,this.limit);if(f===this.targetScroll){c?.(this),l?.(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=f),typeof o==`number`&&typeof s!=`function`?s=bu:typeof s==`function`&&typeof o!=`number`&&(o=1),this.animate.fromTo(this.animatedScroll,f,{duration:o,easing:s,lerp:a,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling=`smooth`,c?.(this)},onUpdate:(e,t)=>{this.isScrolling=`smooth`,this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),i&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){let r=Date.now();e._lenis||={};let i=e._lenis,a,o,s,c,l,u,d,f,p,m;if(r-(i.time??0)>2e3){i.time=Date.now();let t=window.getComputedStyle(e);if(i.computedStyle=t,a=[`auto`,`overlay`,`scroll`].includes(t.overflowX),o=[`auto`,`overlay`,`scroll`].includes(t.overflowY),l=[`auto`].includes(t.overscrollBehaviorX),u=[`auto`].includes(t.overscrollBehaviorY),i.hasOverflowX=a,i.hasOverflowY=o,!(a||o))return!1;d=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,m=e.clientHeight,s=d>p,c=f>m,i.isScrollableX=s,i.isScrollableY=c,i.scrollWidth=d,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=m,i.hasOverscrollBehaviorX=l,i.hasOverscrollBehaviorY=u}else s=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,d=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,m=i.clientHeight,l=i.hasOverscrollBehaviorX,u=i.hasOverscrollBehaviorY;if(!(a&&s||o&&c))return!1;let h=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`,g,_,v,y,b,x;if(h===`horizontal`)g=Math.round(e.scrollLeft),_=d-p,v=t,y=a,b=s,x=l;else if(h===`vertical`)g=Math.round(e.scrollTop),_=f-m,v=n,y=o,b=c,x=u;else return!1;return!x&&(g>=_||g<=0)||(v>0?g<_:g>0)&&y&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?`x`:`y`]}get isHorizontal(){return this.options.orientation===`horizontal`}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?du(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling===`smooth`}get className(){let e=`lenis`;return this.options.autoToggle&&(e+=` lenis-autoToggle`),this.isStopped&&(e+=` lenis-stopped`),this.isLocked&&(e+=` lenis-locked`),this.isScrolling&&(e+=` lenis-scrolling`),this.isScrolling===`smooth`&&(e+=` lenis-smooth`),e}updateClassName(){this.cleanUpClassName(),this.className.split(` `).forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(let e of Array.from(this.rootElement.classList))(e===`lenis`||e.startsWith(`lenis-`))&&this.rootElement.classList.remove(e)}};da.registerPlugin(Q);var Su=`(prefers-reduced-motion: reduce)`;function Cu({children:e}){return(0,l.useEffect)(()=>{if(window.matchMedia(Su).matches)return;let e=new xu({duration:1,easing:e=>Math.min(1,1.001-2**(-10*e)),smoothWheel:!0,touchMultiplier:1.6});e.on(`scroll`,Q.update);let t=t=>{e.raf(t*1e3)};da.ticker.add(t),da.ticker.lagSmoothing(0);let n=()=>Q.refresh();window.addEventListener(`load`,n);let r=t=>{let n=t.target.closest(`a[href^="#"]`);if(!n)return;let r=n.getAttribute(`href`);if(!r||r===`#`)return;let i=document.querySelector(r);i&&(t.preventDefault(),e.scrollTo(i,{offset:-72}),history.pushState(null,``,r))};return document.addEventListener(`click`,r),()=>{da.ticker.remove(t),window.removeEventListener(`load`,n),document.removeEventListener(`click`,r),e.destroy()}},[]),(0,N.jsx)(N.Fragment,{children:e})}function wu(){return(0,N.jsx)(Cu,{children:(0,N.jsxs)(dl,{children:[(0,N.jsx)(le,{}),(0,N.jsxs)(`main`,{id:`main`,children:[(0,N.jsx)(El,{}),(0,N.jsx)(Ol,{}),(0,N.jsx)(Nl,{}),(0,N.jsx)(Il,{}),(0,N.jsx)(Bl,{}),(0,N.jsx)(Hl,{}),(0,N.jsx)(Kl,{}),(0,N.jsx)(ql,{}),(0,N.jsx)(Yl,{}),(0,N.jsx)(Ql,{}),(0,N.jsx)(tu,{}),(0,N.jsx)(nu,{})]}),(0,N.jsx)(ou,{})]})})}var Tu=document.getElementById(`root`);if(!Tu)throw Error(`Missing #root element`);(0,k.createRoot)(Tu).render((0,N.jsx)(l.StrictMode,{children:(0,N.jsx)(wu,{})}));export{n,M as t}; \ No newline at end of file