PageSourceSearch

https://apexkit-omega.vercel.app/assets/routes-C_8p5UDY.js

js apexkit-omega.vercel.app collected 2026-10-03 06:06:19 UTC 191,980 bytes, 43 lines download raw bytes

1import{t as e}from"./arrow-right-B1RPdjxM.js";import{t}from"./arrow-up-right-zgwQYA68.js";import{t as n}from"./book-text-BJUoEWN3.js";import{t as r}from"./calendar-clock-CHfKMiYc.js";import{t as i}from"./chevron-up-C8V7iLP7.js";import{t as a}from"./chevrons-up-down-BPwRPlwt.js";import{t as o}from"./clock-BJK0bZBt.js";import{n as s,t as c}from"./list-filter-BIdQe-3s.js";import{t as l}from"./ellipsis-DZBtYLKq.js";import{t as u}from"./loader-circle-qbMHrjSZ.js";import{t as d}from"./panel-left-B50RxDX0.js";import{t as f}from"./plus-B1ISeNtM.js";import{t as p}from"./user-plus-BUhTKffp.js";import{i as m,n as h,r as g,t as _}from"./accordion-CzN6lRVm.js";import{Cn as v,E as y,En as b,Fn as x,Ft as S,Hn as C,Ht as w,K as T,Lt as E,Pn as D,Qt as O,Ut as k,Vt as A,Wt as j,an as M,bn as ee,in as N,ln as te,mn as ne,nn as re,qt as ie,rn as ae,sn as oe,tn as se,tt as P}from"./index-CS07MC4I.js";import{t as F}from"./input-DTtLEnjZ.js";import{A as ce,C as le,D as ue,E as I,F as de,I as fe,L,M as pe,N as me,O as he,P as ge,R as _e,S as ve,T as ye,_ as be,a as xe,b as R,c as Se,d as z,f as Ce,g as we,h as Te,i as B,j as Ee,k as De,l as Oe,m as ke,n as Ae,o as je,p as V,r as Me,s as Ne,t as Pe,u as Fe,v as Ie,w as Le,x as Re,y as ze,z as Be}from"./LandingShell-C6-w5z56.js";var Ve=oe(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),He=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function Ue(e,t){return De(e)?e[He(0,e.length,t)]:e}var We=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Ge(this.animations,`duration`)}get iterationDuration(){return Ge(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Ge(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Ke=class extends We{then(e,t){return this.finished.finally(e).then(()=>{})}};function qe(e,t){return e in t}var Je=class extends Fe{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(qe(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Te()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},H=C(x(),1);function Ye(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Xe(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ye(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Ye(e[t],null)}}}}function Ze(...e){return H.useCallback(Xe(...e),e)}var U=D(),Qe=class extends H.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Ie(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ie(e)&&e.offsetWidth||0,r=Ie(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function $e({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,H.useId)(),s=(0,H.useRef)(null),c=(0,H.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,H.useContext)(je),u=Ze(s,e.props?.ref??e?.ref);return(0,H.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
2          [data-motion-pop-id="${o}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${u}px !important;
6            ${_}px !important;
7            ${v}px !important;
8          }
9        `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,U.jsx)(Qe,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:H.cloneElement(e,{ref:u})})}var et=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=_e(tt),d=(0,H.useId)(),f=!0,p=(0,H.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[n,u,r]);return a&&f&&(p={...p}),(0,H.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),H.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,U.jsx)($e,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,U.jsx)(fe.Provider,{value:p,children:e})};function tt(){return new Map}var nt=e=>e.key||``;function rt(e){let t=[];
9return H.Children.forEach(e,e=>{(0,H.isValidElement)(e)&&t.push(e)}),t}var it=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=xe(o),f=(0,H.useMemo)(()=>rt(e),[e]),p=o&&!u?[]:f.map(nt),m=(0,H.useRef)(!0),h=(0,H.useRef)(f),g=_e(()=>new Map),_=(0,H.useRef)(new Set),[v,y]=(0,H.useState)(f),[b,x]=(0,H.useState)(f);L(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=nt(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=nt(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(rt(e)),y(f),null}let{forceRender:C}=(0,H.useContext)(Be);return(0,U.jsx)(U.Fragment,{children:b.map(e=>{let v=nt(e),y=o&&!u?!1:f===b||p.includes(v);return(0,U.jsx)(et,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})};function at(){!Ce.current&&z();let[e]=(0,H.useState)(V.current);return e}function ot(e){return typeof e==`object`&&!Array.isArray(e)}function st(e,t,n,r){return e==null?[]:typeof e==`string`&&ot(t)?ze(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function ct(e,t,n){return e*(t+1)+n*t}function lt(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function ut(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(de(e,i),r--)}}function dt(e,t,n,r,i,a){ut(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:he(i,a,r[o]),easing:Ue(n,o)})}function ft(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function pt(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var mt=`easeInOut`,ht=20;function gt(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,lt(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=lt(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=yt(e),{delay:l=0,times:u=Le(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=le(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&St(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=Ee(b));let r=ue(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&ye(u,T),c.length===1&&c.unshift(null),m&&ge(m<ht,`Sequence segments can't repeat ${m} times — ignoring repeat option. Use a value below ${ht} or apply repeat at the sequence level instead.`),m&&m<ht){let e=b>0?_/b:0;b=ct(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?ce(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:Ue(f,e-1))}ft(u,m,e)}let E=w+b;dt(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(Re(p)){let e=_t(p,s);_(m,h,vt(`default`,e))}else{let e=st(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=_t(r,s);for(let e in m)_(m[e],bt(h,e),vt(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(pt);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(pe(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(mt)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function _t(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function vt(e,t){return t[e]||(t[e]=[]),t[e]}function yt(e){return Array.isArray(e)?e:[e]}function bt(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var xt=e=>typeof e==`number`,St=e=>e.every(xt);function Ct(e){let t={presenceContext:null,props:{}
9,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=be(e)&&!we(e)?new Se(t):new Oe(t);n.mount(e),ke.set(e,n)}function wt(e){let t=new Je({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),ke.set(e,t)}function Tt(e,t){return Re(e)||typeof e==`number`||typeof e==`string`&&!ot(t)}function Et(e,t,n,r){let i=[];if(Tt(e,t))i.push(Ne(e,ot(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=st(e,t,r),o=a.length;me(!!o,`No valid elements provided.`,`no-valid-elements`);for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?Ct:wt;ke.has(r)||s(r);let c=ke.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...R(c,{...t,transition:l},{}))}}return i}function Dt(e,t,n){let r=[];return gt(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=ve(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:I}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Et(n,e,t))}),r}function Ot(e){return Array.isArray(e)&&e.some(Array.isArray)}function kt(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Ot(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Dt(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Et(e,i,{...c,...r},t)}let l=new Ke(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{de(t.animations,l)})),l}return i}var At=kt(),jt={some:0,all:1};function Mt(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=ze(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:jt[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Nt(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,H.useState)(a);return(0,H.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return Mt(e.current,a,c)},[t,e,n,i,r]),o}function Pt({url:e,className:t,innerClassName:n,children:r}){return(0,U.jsxs)(`div`,{className:P(`border-border bg-card relative overflow-hidden rounded-xl border shadow-2xl shadow-black/40`,t),children:[(0,U.jsxs)(`div`,{className:`border-border bg-background/60 flex items-center gap-3 border-b px-4 py-2.5`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`bg-muted-foreground/30 size-2.5 rounded-full`}),(0,U.jsx)(`span`,{className:`bg-muted-foreground/30 size-2.5 rounded-full`}),(0,U.jsx)(`span`,{className:`bg-muted-foreground/30 size-2.5 rounded-full`})]}),e?(0,U.jsx)(`div`,{className:`bg-background border-border text-muted-foreground mx-auto inline-flex max-w-[280px] flex-1 items-center justify-center truncate rounded-md border px-3 py-1 font-mono text-[11px]`,children:e}):null,(0,U.jsx)(`div`,{className:`size-2.5`,"aria-hidden":`true`})]}),(0,U.jsx)(`div`,{className:P(`bg-background`,n),children:r})]})}function Ft(e,t,n){let r=t>0?Number(e.toFixed(t)):Math.round(e);return n?r.toLocaleString(`en-US`,{minimumFractionDigits:t,maximumFractionDigits:t}):r.toFixed(t)}function It({to:e,from:t=0,duration:n=1.8,decimals:r=0,separator:i=!1,prefix:a=``,suffix:o=``,className:s}){let c=at(),l=(0,H.useRef)(null),u=Nt(l,{once:!0,margin:`-60px`}),d=Me(t),f=Ae(d,e=>`${a}${Ft(e,r,i)}${o}`);return(0,H.useEffect)(()=>{if(c||!u)return;let t=At(d,e,{duration:n,ease:[.16,1,.3,1]});return()=>t.stop()},[u,e,n,d,c]),c?(0,U.jsx)(`span`,{ref:l,className:P(s),children:`${a}${Ft(e,r,i)}${o}`}):(0,U.jsx)(B.span,{ref:l,className:P(s),children:f})}function Lt({variant:e=`overview`,className:t}){return(0,U.jsxs)(`div`,{className:P(`bg-background flex h-[508px] w-full overflow-hidden text-left`,t),children:[(0,U.jsx)(Vt,{variant:e}),(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,U.jsx)(Wt,{variant:e}),(0,U.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden p-2.5`,children:e===`articles`?(0,U.jsx)(an,{}):e===`users`?(0,U.jsx)(cn,{}):e===`billing`?(0,U.jsx)(un,{}):(0,U.jsx)(tn,{})})]})]})}var Rt=[{icon:O,label:`Dashboard`,key:`dashboard`},{icon:n,label:`Blog`,key:`blog`}],zt=[{icon:E,label:`Users`,key:`users`},{icon:w,label:`Roles`,key:`roles`},{icon:M,label:`Organizations`,key:`organizations`},{icon:ie,label:`Campaigns`,key:`campaigns`},{icon:j,label:`Articles`,key:`articles`}];function Bt(e){return e===`articles`?`articles`:e===`users`?`users`:e===`billing`?`organizations`:`dashboard`}function Vt({variant:e}){let t=Bt(e);return(0,U.jsxs)(`aside`,{className:`border-border bg-card flex w-[148px] shrink-0 flex-col border-r`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col gap-1.5 p-2`,children:[(0,U.jsxs)(`div`,{className:`border-border flex items-center gap-1.5 rounded-md border p-1.5`,children:[(0,U.jsx)(`span`,{className:`bg-foreground text-background grid size-5 shrink-0 place-items-center rounded text-[8px] font-bold`,children:`A`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col leading-tight`,children:[(0,U.jsx)(`span`,{className:`text-foreground truncate text-[9px] font-semibold`,children:`Acme Studio`}),(0,U.jsx)(`span`,{className:`text-muted-foreground truncate text-[7px]`,children:`Workspace`})]}),(0,U.jsx)(a,{className:`text-muted-foreground size-3 shrink-0`})]}),(0,U.jsxs)(`div`,{className:`border-border bg-background flex items-center gap-1.5 rounded-md border px-2 py-1`,children:[(0,U.jsx)(k,{className:`text-muted-foreground size-3 shrink-0`}),(0,U.jsx)(`span`,{className:`text-muted-foreground flex-1 text-[9px]`,children:`Search…`}),(0,U.jsx)(`span`,{className:`border-border text-muted-foreground rounded border px-1 font-mono text-[7px]`,children:`⌘K`})]})]}),(0,U.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2 px-2 py-1`,children:[(0,U.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:Rt.map(e=>(0,U.jsx)(Ht,{item:e,active:t===e.key},e.key))}),(0,U.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,U.jsx)(`span`,{className:`text-muted-foreground px-2 pb-0.5 text-[7px] font-medium uppercase tracking-wider`,children:`Administration`}),zt.map(e=>(0,U.jsx)(Ht,{item:e,active:t===e.key},e.key))]})]}),(0,U.jsx)(`div`,{className:`border-border border-t p-2`,children:(0,U.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`bg-muted text-foreground grid size-5 shrink-0 place-items-center rounded-full text-[7px] font-semibold`,children:`SR`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col leading-tight`,children:[(0,U.jsx)(`span`,{className:`text-foreground truncate text-[9px] font-semibold`,children:`Sofia Reyes`}),(0,U.jsx)(`span`,{className:`text-muted-foreground truncate text-[7px]`,children:`[email protected]`})]}),(0,U.jsx)(i,{className:`text-muted-foreground size-3 shrink-0`})]})})]})}function Ht({item:e,active:t}){let n=e.icon;return(0,U.jsxs)(`div`,{className:P(`flex items-center gap-1.5 rounded-md px-2 py-1 text-[9px]`,t?`bg-accent text-foreground font-medium`:`text-muted-foreground`),children:[(0,U.jsx)(n,{className:P(`size-3 shrink-0`,t&&`text-foreground`)}),(0,U.jsx)(`span`,{className:`truncate`,children:e.label})]})}var Ut={overview:[`Dashboard`],articles:[`Dashboard`,`Articles`],users:[`Dashboard`,`Users`],billing:[`Organizations`,`Acme Studio`,`Billing`]};function Wt({variant:e}){let t=Ut[e];return(0,U.jsxs)(`div`,{className:`border-border flex h-8 shrink-0 items-center gap-1.5 border-b px-2.5`,children:[(0,U.jsx)(d,{className:`text-muted-foreground size-3`}),(0,U.jsx)(`span`,{className:`bg-border h-3 w-px`}),(0,U.jsx)(`div`,{className:`flex items-center gap-1 text-[9px]`,children:t.map((e,n)=>(0,U.jsxs)(`span`,{className:`flex items-center gap-1`,children:[n>
90?(0,U.jsx)(`span`,{className:`text-muted-foreground/50`,children:`/`}):null,(0,U.jsx)(`span`,{className:n===t.length-1?`text-foreground`:`text-muted-foreground`,children:e})]},e))})]})}function Gt({title:e,subtitle:t,action:n}){return(0,U.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`div`,{className:`text-foreground text-[13px] font-semibold tracking-tight`,children:e}),(0,U.jsx)(`div`,{className:`text-muted-foreground text-[8.5px]`,children:t})]}),n?(0,U.jsxs)(`span`,{className:`bg-foreground text-background inline-flex items-center gap-1 rounded-md px-2 py-1 text-[8.5px] font-medium`,children:[(0,U.jsx)(n.icon,{className:`size-2.5`}),n.label]}):null]})}function Kt({initials:e}){return(0,U.jsx)(`span`,{className:`bg-muted text-foreground grid size-5 shrink-0 place-items-center rounded-full text-[7px] font-semibold`,children:e})}var qt={published:`bg-emerald-500/15 text-emerald-400`,scheduled:`bg-foreground/10 text-foreground`,draft:`bg-muted text-muted-foreground`,archived:`bg-zinc-500/15 text-zinc-400`,active:`bg-emerald-500/15 text-emerald-400`,suspended:`bg-amber-500/15 text-amber-400`};function Jt({status:e}){return(0,U.jsx)(`span`,{className:P(`inline-flex rounded px-1.5 py-0.5 text-[7.5px] font-medium capitalize`,qt[e]??`bg-muted text-muted-foreground`),children:e})}function Yt({children:e,className:t}){return(0,U.jsx)(`div`,{className:P(`border-border bg-card rounded-md border p-2.5`,t),children:e})}function Xt({title:e,subtitle:t}){return(0,U.jsxs)(`div`,{className:`mb-2 flex flex-col`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-[9.5px] font-semibold`,children:e}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-[7.5px]`,children:t})]})}var Zt=[{icon:E,label:`Users`,value:1248,separator:!0},{icon:M,label:`Organizations`,value:36,separator:!1},{icon:w,label:`Roles`,value:7,separator:!1},{icon:ie,label:`Active campaigns`,value:4,separator:!1}],Qt=[{message:`Sofia Reyes invited a new user`,time:`2m ago`},{message:`Article “Shipping a SaaS in a week” published`,time:`1h ago`},{message:`Role “Editor” permissions updated`,time:`3h ago`},{message:`Organization “Volt Inc.” created`,time:`5h ago`},{message:`Campaign “Pro plan launch” activated`,time:`8h ago`},{message:`Tomas Krause changed their email`,time:`1d ago`}],$t=[{initials:`LM`,name:`Liam Mercer`,email:`[email protected]`,time:`1d ago`},{initials:`AÏ`,name:`Aïcha Ndiaye`,email:`[email protected]`,time:`2d ago`},{initials:`TK`,name:`Tomas Krause`,email:`[email protected]`,time:`4d ago`},{initials:`RC`,name:`Rosa Conti`,email:`[email protected]`,time:`6d ago`}],en=[{name:`Spring onboarding`,key:`spring_onboarding`,range:`May 2 → Jun 1`},{name:`Pro plan launch`,key:`pro_launch`,range:`May 14 → Jun 14`}];function tn(){return(0,U.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,U.jsx)(Gt,{title:`Dashboard`,subtitle:`Overview of your workspace.`}),(0,U.jsx)(`div`,{className:`grid grid-cols-4 gap-2`,children:Zt.map(e=>{let t=e.icon;return(0,U.jsxs)(`div`,{className:`border-border bg-card flex flex-col gap-1.5 rounded-md border p-2.5`,children:[(0,U.jsxs)(`div`,{className:`text-muted-foreground flex items-center gap-1 text-[8px]`,children:[(0,U.jsx)(t,{className:`size-2.5`}),(0,U.jsx)(`span`,{className:`truncate`,children:e.label})]}),(0,U.jsx)(It,{to:e.value,separator:e.separator,duration:1.6,className:`text-foreground text-[16px] font-semibold tracking-tight`})]},e.label)})}),(0,U.jsxs)(`div`,{className:`grid grid-cols-3 gap-2`,children:[(0,U.jsxs)(Yt,{className:`col-span-2`,children:[(0,U.jsx)(Xt,{title:`Recent activity`,subtitle:`Latest actions across the workspace.`}),(0,U.jsx)(`ul`,{className:`flex flex-col`,children:Qt.map((e,t)=>(0,U.jsxs)(`li`,{className:P(`flex items-center justify-between gap-2 py-1.5`,t>0&&`border-border border-t`),children:[(0,U.jsx)(`span`,{className:`text-foreground truncate text-[8.5px]`,children:e.message}),(0,U.jsx)(`span`,{className:`text-muted-foreground shrink-0 text-[7.5px]`,children:e.time})]},e.message))})]}),(0,U.jsxs)(Yt,{children:[(0,U.jsx)(Xt,{title:`Recent users`,subtitle:`Last 7 days.`}),(0,U.jsx)(`ul`,{className:`flex flex-col gap-2`,children:$t.map(e=>(0,U.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(Kt,{initials:e.initials}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col leading-tight`,children:[(0,U.jsx)(`span`,{className:`text-foreground truncate text-[8px] font-medium`,children:e.name}),(0,U.jsx)(`span`,{className:`text-muted-foreground truncate text-[7px]`,children:e.email})]}),(0,U.jsx)(`span`,{className:`text-muted-foreground shrink-0 text-[7px]`,children:e.time})]},e.email))})]})]}),(0,U.jsxs)(Yt,{children:[(0,U.jsx)(Xt,{title:`Active campaigns`,subtitle:`Currently running campaigns.`}),(0,U.jsx)(`ul`,{className:`flex flex-col`,children:en.map((e,t)=>(0,U.jsxs)(`li`,{className:P(`flex items-center justify-between gap-2 py-1.5`,t>0&&`border-border border-t`),children:[(0,U.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,U.jsx)(ie,{className:`text-muted-foreground size-3 shrink-0`}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-col leading-tight`,children:[(0,U.jsx)(`span`,{className:`text-foreground truncate text-[8.5px] font-medium`,children:e.name}),(0,U.jsx)(`span`,{className:`text-muted-foreground truncate font-mono text-[7px]`,children:e.key})]})]}),(0,U.jsxs)(`span`,{className:`text-muted-foreground flex shrink-0 items-center gap-1 text-[7.5px]`,children:[(0,U.jsx)(r,{className:`size-2.5`}),e.range]})]},e.key))})]})]})}var nn=[{label:`All`,count:24,active:!0},{label:`Draft`,count:5,active:!1},{label:`Scheduled`,count:2,active:!1},{label:`Published`,count:14,active:!1},{label:`Archived`,count:3,active:!1}],rn=[{title:`Shipping a SaaS in a week`,status:`published`,locale:`EN`,pub:`May 12`,upd:`May 14`,views:`1,248`},{title:`Why we picked Convex`,status:`published`,locale:`EN`,pub:`May 8`,upd:`May 9`,views:`832`},{title:`Better Auth, magic links`,status:`scheduled`,locale:`FR`,pub:`May 20`,upd:`May 13`,views:`—`},{title:`Stripe webhooks on Convex`,status:`draft`,locale:`EN`,pub:`—`,upd:`May 11`,views:`—`},{title:`TipTap autosave patterns`,status:`archived`,locale:`EN`,pub:`Apr 28`,upd:`May 2`,views:`445`},{title:`Multi-tenant from day one`,status:`published`,locale:`EN`,pub:`Apr 22`,upd:`Apr 25`,views:`1,034`}];function an(){return(0,U.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,U.jsx)(Gt,{title:`Articles`,subt
9itle:`Write and publish posts optimized for SEO and LLM crawlers.`,action:{icon:f,label:`Create article`}}),(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,U.jsx)(`div`,{className:`bg-muted inline-flex items-center gap-0.5 rounded-md p-0.5`,children:nn.map(e=>(0,U.jsxs)(`span`,{className:P(`rounded px-1.5 py-0.5 text-[8px]`,e.active?`bg-background text-foreground font-medium shadow-sm`:`text-muted-foreground`),children:[e.label,` `,(0,U.jsxs)(`span`,{className:`text-muted-foreground/70`,children:[`(`,e.count,`)`]})]},e.label))}),(0,U.jsxs)(`div`,{className:`border-border bg-background flex w-36 items-center gap-1.5 rounded-md border px-2 py-1`,children:[(0,U.jsx)(k,{className:`text-muted-foreground size-2.5`}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-[8px]`,children:`Search by title…`})]})]}),(0,U.jsxs)(`div`,{className:`border-border bg-card flex flex-col overflow-hidden rounded-md border`,children:[(0,U.jsxs)(`div`,{className:`border-border text-muted-foreground bg-muted/40 grid grid-cols-[2.4fr_0.9fr_0.6fr_0.8fr_0.8fr_0.6fr_0.3fr] gap-2 border-b px-3 py-2 text-[7.5px] font-medium uppercase tracking-wide`,children:[(0,U.jsx)(`span`,{children:`Title`}),(0,U.jsx)(`span`,{children:`Status`}),(0,U.jsx)(`span`,{children:`Locale`}),(0,U.jsx)(`span`,{children:`Published`}),(0,U.jsx)(`span`,{children:`Updated`}),(0,U.jsx)(`span`,{className:`text-right`,children:`Views`}),(0,U.jsx)(`span`,{})]}),rn.map((e,t)=>(0,U.jsxs)(`div`,{className:P(`grid grid-cols-[2.4fr_0.9fr_0.6fr_0.8fr_0.8fr_0.6fr_0.3fr] items-center gap-2 px-3 py-2 text-[8.5px]`,t>0&&`border-border border-t`),children:[(0,U.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`bg-muted grid size-5 shrink-0 place-items-center rounded`,children:(0,U.jsx)(j,{className:`text-muted-foreground size-2.5`})}),(0,U.jsx)(`span`,{className:`text-foreground truncate font-medium`,children:e.title})]}),(0,U.jsx)(`span`,{children:(0,U.jsx)(Jt,{status:e.status})}),(0,U.jsx)(`span`,{className:`text-muted-foreground font-mono text-[7.5px]`,children:e.locale}),(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:e.pub}),(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:e.upd}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-right`,children:e.views}),(0,U.jsx)(l,{className:`text-muted-foreground size-3 justify-self-end`})]},e.title))]})]})}var on=[{initials:`LM`,name:`Liam Mercer`,email:`[email protected]`,role:`Admin`,roleColor:`primary`,orgs:2,status:`active`,created:`May 12`,login:`2h ago`},{initials:`AÏ`,name:`Aïcha Ndiaye`,email:`[email protected]`,role:`Editor`,roleColor:`muted`,orgs:1,status:`active`,created:`May 8`,login:`1d ago`},{initials:`TK`,name:`Tomas Krause`,email:`[email protected]`,role:`Member`,roleColor:`secondary`,orgs:1,status:`active`,created:`May 3`,login:`5d ago`},{initials:`RC`,name:`Rosa Conti`,email:`[email protected]`,role:`Member`,roleColor:`secondary`,orgs:3,status:`suspended`,created:`Apr 27`,login:`3w ago`},{initials:`JP`,name:`Jonas Park`,email:`[email protected]`,role:`Admin`,roleColor:`primary`,orgs:1,status:`active`,created:`Apr 21`,login:`6h ago`},{initials:`MO`,name:`Maya Okafor`,email:`[email protected]`,role:`Editor`,roleColor:`muted`,orgs:2,status:`active`,created:`Apr 16`,login:`2d ago`}];function sn({role:e,color:t}){return(0,U.jsx)(`span`,{className:P(`inline-flex rounded px-1.5 py-0.5 text-[7.5px] font-medium`,t===`primary`?`bg-foreground text-background`:t===`muted`?`bg-muted text-muted-foreground`:`bg-accent text-accent-foreground`),children:e})}function cn(){return(0,U.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,U.jsx)(Gt,{title:`Users`,subtitle:`Manage every signed-up user: assign roles, suspend access.`,action:{icon:p,label:`Invite user`}}),(0,U.jsxs)(`div`,{className:`border-border bg-card flex items-center justify-between gap-2 rounded-md border p-1.5`,children:[(0,U.jsxs)(`div`,{className:`border-border bg-background flex flex-1 items-center gap-1.5 rounded-md border px-2 py-1`,children:[(0,U.jsx)(k,{className:`text-muted-foreground size-2.5`}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-[8px]`,children:`Search by email or name`})]}),(0,U.jsxs)(`span`,{className:`border-border text-foreground inline-flex items-center gap-1 rounded-md border px-2 py-1 text-[8px]`,children:[(0,U.jsx)(c,{className:`size-2.5`}),`Filters`]}),(0,U.jsxs)(`span`,{className:`border-border text-foreground inline-flex items-center gap-1 rounded-md border px-2 py-1 text-[8px]`,children:[(0,U.jsx)(s,{className:`size-2.5`}),`Columns`]})]}),(0,U.jsxs)(`div`,{className:`border-border bg-card flex flex-col overflow-hidden rounded-md border`,children:[(0,U.jsxs)(`div`,{className:`border-border text-muted-foreground bg-muted/40 grid grid-cols-[1.6fr_1.6fr_0.9fr_0.6fr_0.8fr_0.7fr_0.8fr] gap-2 border-b px-3 py-2 text-[7.5px] font-medium uppercase tracking-wide`,children:[(0,U.jsx)(`span`,{children:`User`}),(0,U.jsx)(`span`,{children:`Email`}),(0,U.jsx)(`span`,{children:`Roles`}),(0,U.jsx)(`span`,{className:`text-center`,children:`Orgs`}),(0,U.jsx)(`span`,{children:`Status`}),(0,U.jsx)(`span`,{children:`Created`}),(0,U.jsx)(`span`,{children:`Last login`})]}),on.map(e=>(0,U.jsxs)(`div`,{className:`border-border grid grid-cols-[1.6fr_1.6fr_0.9fr_0.6fr_0.8fr_0.7fr_0.8fr] items-center gap-2 border-t px-3 py-2 text-[8.5px] first:border-t-0`,children:[(0,U.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,U.jsx)(Kt,{initials:e.initials}),(0,U.jsx)(`span`,{className:`text-foreground truncate font-medium`,children:e.name})]}),(0,U.jsx)(`span`,{className:`text-muted-foreground truncate`,children:e.email}),(0,U.jsx)(`span`,{children:(0,U.jsx)(sn,{role:e.role,color:e.roleColor})}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-center`,children:e.orgs}),(0,U.jsx)(`span`,{children:(0,U.jsx)(Jt,{status:e.status})}),(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:e.created}),(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:e.login})]},e.email))]})]})}var ln=[{name:`Free`,price:`$0`,current:!1,features:[`5 Testimonial Forms`,`10 GB Video Storage`,`3 Team Members`]},{name:`Pro`,price:`$49`,current:!0,features:[`20 Testimonial Forms`,`50 GB Video Storage`,`10 Team Members`]},{name:`Ultra`,price:`$100`,current:!1,features:[`100 Testimonial Forms`,`1000 GB Video Storage`,`100 Team Members`]}];function un(){return(0,U.jsxs)(`div`,{className:`border-border bg-card flex flex-col gap-3 rounded-md border p-3.5`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-[10px] font-semibold`,children:`Subscription`}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-[8px]`,children:`Review and update the billing plan for this organization.`})]}),(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-[14px] font-semibold`,children:`Pro Plan`}),(0,U.jsx)(`span`,{className:`text-muted-foreground font-mono text-[7.5px]`,children:`Stripe customer · cus_Qk82Lp4eXa`})]}),(0,U.jsx)(`div`,{className:`bg-border h-px w-full`}),(0,U.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-[10px] font-semibold`,children:`Change Plan`}),(0,U.jsxs)(`div`,{className:`bg-muted inline-flex items-center rounded p-0.5 text-[7.5px]`,children:[(0,U.jsx)(`span`,{className:`bg-background text-foreground rounded px-2 py-0.5 font-medium shadow-sm`,children:`Monthly`}),(0,U.jsx)(`span`,{className:`text-muted-foreground px-2 py-0.5`,children:`Yearly`})]})]}),(0,U.jsx)(`div`,{className:`grid grid-cols-3 gap-2.5`,children:ln.map(e=>(0,U.jsxs)(`div`,{className:P(`bg-background flex flex-col gap-2 rounded-lg border p-3`,e.current?`border-foreground
9/45 ring-foreground/15 ring-2`:`border-border`),children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-[11px] font-semibold`,children:e.name}),e.current?(0,U.jsx)(`span`,{className:`bg-foreground text-background grid size-4 place-items-center rounded-full`,children:(0,U.jsx)(N,{className:`size-2.5`})}):(0,U.jsx)(`span`,{className:`border-border size-4 rounded-full border`})]}),(0,U.jsxs)(`div`,{className:`flex items-baseline gap-0.5`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-[18px] font-bold`,children:e.price}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-[7.5px]`,children:`/mo`})]}),(0,U.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:e.features.map(e=>(0,U.jsxs)(`li`,{className:`text-muted-foreground flex items-start gap-1 text-[7.5px]`,children:[(0,U.jsx)(N,{className:`text-foreground mt-px size-2.5 shrink-0`}),(0,U.jsx)(`span`,{children:e})]},e))})]},e.name))})]})}function dn({variant:e=`overview`,className:t}){return(0,U.jsxs)(`div`,{className:P(`bg-background flex min-h-[420px] flex-col text-left`,t),children:[(0,U.jsx)(pn,{variant:e}),(0,U.jsx)(`div`,{className:`flex flex-1 flex-col gap-3 p-3`,children:e===`articles`?(0,U.jsx)(Sn,{}):e===`users`?(0,U.jsx)(wn,{}):e===`billing`?(0,U.jsx)(En,{}):(0,U.jsx)(_n,{})})]})}var fn={overview:`Dashboard`,articles:`Articles`,users:`Users`,billing:`Billing`};function pn({variant:e}){return(0,U.jsxs)(`div`,{className:`border-border flex h-10 shrink-0 items-center gap-2 border-b px-3`,children:[(0,U.jsx)(d,{className:`text-muted-foreground size-4`}),(0,U.jsx)(`span`,{className:`bg-border h-4 w-px`}),(0,U.jsx)(`span`,{className:`text-foreground text-xs font-medium`,children:fn[e]}),(0,U.jsx)(`span`,{className:`bg-muted text-foreground ml-auto grid size-6 place-items-center rounded-full text-[9px] font-semibold`,children:`SR`})]})}function mn({title:e,subtitle:t,action:n}){return(0,U.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`div`,{className:`text-foreground text-base font-semibold tracking-tight`,children:e}),t?(0,U.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:t}):null]}),n?(0,U.jsxs)(`span`,{className:`bg-foreground text-background inline-flex shrink-0 items-center gap-1 rounded-md px-2 py-1 text-[10px] font-medium`,children:[(0,U.jsx)(n.icon,{className:`size-3`}),n.label]}):null]})}var hn=[{icon:E,label:`Users`,value:`1,248`},{icon:M,label:`Organizations`,value:`36`},{icon:w,label:`Roles`,value:`7`},{icon:ie,label:`Active campaigns`,value:`4`}],gn=[{message:`Sofia Reyes invited a new user`,time:`2m`},{message:`Article “Shipping a SaaS” published`,time:`1h`},{message:`Role “Editor” permissions updated`,time:`3h`},{message:`Organization “Volt Inc.” created`,time:`5h`}];function _n(){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(mn,{title:`Dashboard`,subtitle:`Overview of your workspace.`}),(0,U.jsx)(`div`,{className:`grid grid-cols-2 gap-2`,children:hn.map(e=>(0,U.jsxs)(`div`,{className:`border-border bg-card flex flex-col gap-1.5 rounded-lg border p-3`,children:[(0,U.jsxs)(`div`,{className:`text-muted-foreground flex items-center gap-1.5 text-[10px]`,children:[(0,U.jsx)(e.icon,{className:`size-3`}),(0,U.jsx)(`span`,{className:`truncate`,children:e.label})]}),(0,U.jsx)(`span`,{className:`text-foreground text-lg font-semibold tracking-tight`,children:e.value})]},e.label))}),(0,U.jsxs)(`div`,{className:`border-border bg-card rounded-lg border p-3`,children:[(0,U.jsx)(`div`,{className:`text-foreground text-xs font-semibold`,children:`Recent activity`}),(0,U.jsx)(`div`,{className:`text-muted-foreground mb-1 text-[10px]`,children:`Latest actions.`}),(0,U.jsx)(`ul`,{className:`flex flex-col`,children:gn.map((e,t)=>(0,U.jsxs)(`li`,{className:P(`flex items-center justify-between gap-2 py-1.5`,t>0&&`border-border border-t`),children:[(0,U.jsx)(`span`,{className:`text-foreground truncate text-[11px]`,children:e.message}),(0,U.jsx)(`span`,{className:`text-muted-foreground shrink-0 text-[10px]`,children:e.time})]},e.message))})]})]})}var vn=[`All`,`Draft`,`Published`],yn=[{title:`Shipping a SaaS in a week`,status:`published`},{title:`Why we picked Convex`,status:`published`},{title:`Better Auth, magic links`,status:`scheduled`},{title:`Stripe webhooks on Convex`,status:`draft`},{title:`Multi-tenant from day one`,status:`published`}],bn={published:`bg-emerald-500/15 text-emerald-400`,scheduled:`bg-foreground
9/10 text-foreground`,draft:`bg-muted text-muted-foreground`};function xn({status:e}){return(0,U.jsx)(`span`,{className:P(`inline-flex shrink-0 rounded px-1.5 py-0.5 text-[9px] font-medium capitalize`,bn[e]??`bg-muted text-muted-foreground`),children:e})}function Sn(){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(mn,{title:`Articles`,subtitle:`Posts optimized for SEO.`,action:{icon:f,label:`New`}}),(0,U.jsx)(`div`,{className:`flex items-center gap-1`,children:vn.map((e,t)=>(0,U.jsx)(`span`,{className:P(`rounded-md px-2 py-1 text-[10px]`,t===0?`bg-muted text-foreground font-medium`:`text-muted-foreground`),children:e},e))}),(0,U.jsx)(`div`,{className:`border-border bg-card flex flex-col overflow-hidden rounded-lg border`,children:yn.map((e,t)=>(0,U.jsxs)(`div`,{className:P(`flex items-center gap-2 px-3 py-2.5`,t>0&&`border-border border-t`),children:[(0,U.jsx)(`span`,{className:`bg-muted grid size-6 shrink-0 place-items-center rounded`,children:(0,U.jsx)(j,{className:`text-muted-foreground size-3`})}),(0,U.jsx)(`span`,{className:`text-foreground min-w-0 flex-1 truncate text-[11px] font-medium`,children:e.title}),(0,U.jsx)(xn,{status:e.status})]},e.title))})]})}var Cn=[{initials:`LM`,name:`Liam Mercer`,email:`[email protected]`,role:`Admin`,accent:!0},{initials:`AÏ`,name:`Aïcha Ndiaye`,email:`[email protected]`,role:`Editor`,accent:!1},{initials:`TK`,name:`Tomas Krause`,email:`[email protected]`,role:`Member`,accent:!1},{initials:`RC`,name:`Rosa Conti`,email:`[email protected]`,role:`Member`,accent:!1}];function wn(){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(mn,{title:`Users`,subtitle:`Manage signed-up users.`,action:{icon:p,label:`Invite`}}),(0,U.jsxs)(`div`,{className:`border-border bg-background flex items-center gap-2 rounded-md border px-2.5 py-1.5`,children:[(0,U.jsx)(k,{className:`text-muted-foreground size-3`}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:`Search by email or name`})]}),(0,U.jsx)(`div`,{className:`border-border bg-card flex flex-col overflow-hidden rounded-lg border`,children:Cn.map((e,t)=>(0,U.jsxs)(`div`,{className:P(`flex items-center gap-2.5 px-3 py-2.5`,t>0&&`border-border border-t`),children:[(0,U.jsx)(`span`,{className:`bg-muted text-foreground grid size-7 shrink-0 place-items-center rounded-full text-[9px] font-semibold`,children:e.initials}),(0,U.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col leading-tight`,children:[(0,U.jsx)(`span`,{className:`text-foreground truncate text-[11px] font-medium`,children:e.name}),(0,U.jsx)(`span`,{className:`text-muted-foreground truncate text-[10px]`,children:e.email})]}),(0,U.jsx)(`span`,{className:P(`shrink-0 rounded px-1.5 py-0.5 text-[9px] font-medium`,e.accent?`bg-foreground text-background`:`bg-muted text-muted-foreground`),children:e.role})]},e.email))})]})}var Tn=[{name:`Free`,price:`$0`,current:!1},{name:`Pro`,price:`$49`,current:!0},{name:`Ultra`,price:`$100`,current:!1}];function En(){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(mn,{title:`Subscription`,subtitle:`Billing for this organization.`}),(0,U.jsxs)(`div`,{className:`border-border bg-card flex flex-col gap-0.5 rounded-lg border p-3`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-sm font-semibold`,children:`Pro Plan`}),(0,U.jsx)(`span`,{className:`text-muted-foreground font-mono text-[10px]`,children:`cus_Qk82Lp4eXa`})]}),(0,U.jsx)(`div`,{className:`flex flex-col gap-2`,children:Tn.map(e=>(0,U.jsxs)(`div`,{className:P(`bg-card flex items-center justify-between rounded-lg border p-3`,e.current?`border-foreground
9/45 ring-foreground/15 ring-2`:`border-border`),children:[(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-xs font-semibold`,children:e.name}),(0,U.jsxs)(`span`,{className:`text-muted-foreground text-[10px]`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-sm font-bold`,children:e.price}),` /mo`]})]}),e.current?(0,U.jsxs)(`span`,{className:`bg-foreground text-background inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[9px] font-medium`,children:[(0,U.jsx)(N,{className:`size-2.5`}),`Current`]}):(0,U.jsx)(`span`,{className:`border-border text-muted-foreground rounded-md border px-2 py-1 text-[9px] font-medium`,children:`Switch`})]},e.name))})]})}var Dn=typeof window<`u`?H.useLayoutEffect:H.useEffect;function On({designWidth:e=600,className:t,children:n}){let r=(0,H.useRef)(null),i=(0,H.useRef)(null),[a,o]=(0,H.useState)(1),[s,c]=(0,H.useState)();Dn(()=>{let t=r.current,n=i.current;if(!t||!n)return;let a=()=>{let r=t.clientWidth,i=r>=e?1:r/e;o(i),c(i<1?n.offsetHeight*i:void 0)};a();let s=new ResizeObserver(a);return s.observe(t),s.observe(n),()=>s.disconnect()},[e]);let l=a<1;return(0,U.jsx)(`div`,{ref:r,className:P(`w-full`,t),style:l?{height:s}:void 0,children:(0,U.jsx)(`div`,{ref:i,style:l?{width:e,transformOrigin:`top left`,transform:`scale(${a})`}:void 0,children:n})})}function kn(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function An(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var jn={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},Mn={duration:.5,overwrite:!1,delay:0},Nn,Pn,Fn,In=1e8,W=1/In,Ln=Math.PI*2,Rn=Ln/4,zn=0,Bn=Math.sqrt,Vn=Math.cos,Hn=Math.sin,Un=function(e){return typeof e==`string`},Wn=function(e){return typeof e==`function`},Gn=function(e){return typeof e==`number`},Kn=function(e){return e===void 0},qn=function(e){return typeof e==`object`},Jn=function(e){return e!==!1},Yn=function(){return typeof window<`u`},Xn=function(e){return Wn(e)||Un(e)},Zn=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},Qn=Array.isArray,$n=/random\([^)]+\)/g,er=/,\s*/g,tr=/(?:-?\.?\d|\.)+/gi,nr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ir=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ar=/[+-]=-?[.\d]+/,or=/[^,'"\[\]\s]+/gi,sr=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,cr,lr,ur,dr,fr={},pr={},mr,hr=function(e){return(pr=qr(e,fr))&&uo},gr=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},_r=function(e,t){return!t&&console.warn(e)},vr=function(e,t){return e&&(fr[e]=t)&&pr&&(pr[e]=t)||fr},yr=function(){return 0},br={suppressEvents:!0,isStart:!0,kill:!1},xr={suppressEvents:!0,kill:!1},Sr={suppressEvents:!0},Cr={},wr=[],Tr={},Er,Dr={},Or={},kr=30,Ar=[],jr=``,Mr=function(e){var t=e[0],n,r;if(qn(t)||Wn(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Ar.length;r--&&!Ar[r].targetTest(t););n=Ar[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new ba(e[r],n)))||e.splice(r,1);return e},Nr=function(e){return e._gsap||Mr(Ai(e))[0]._gsap},Pr=function(e,t,n){return(n=e[t])&&Wn(n)?e[t]():Kn(n)&&e.getAttribute&&e.getAttribute(t)||n},Fr=function(e,t){return(e=e.split(`,`)).forEach(t)||e},Ir=function(e){return Math.round(e*1e5)/1e5||0},Lr=function(e){return Math.round(e*1e7)/1e7||0},Rr=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},zr=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},Br=function(){var e=wr.length,t=wr.slice(0),n,r;for(Tr={},wr.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Vr=function(e){return!!(e._initted||e._startAt||e.add)},Hr=function(e,t,n,r){wr.length&&!Pn&&Br(),e.render(t,n,r||!!(Pn&&t<0&&Vr(e))),wr.length&&!Pn&&Br()},Ur=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(or).length<2?t:Un(e)?e.trim():e},Wr=function(e){return e},Gr=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Kr=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},qr=function(e,t){for(var n in t)e[n]=t[n];return e},Jr=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=qn(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Yr=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Xr=function(e){var t=e.parent||cr,n=e.keyframes?Kr(Qn(e.keyframes)):Gr;if(Jn(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},Zr=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},Qr=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)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},$r=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},ei=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ti=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},ni=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},ri=function(e,t,n,r){return e._startAt&&(Pn?e._startAt.revert(xr):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},ii=function e(t){return!t||t._ts&&e(t.parent)},ai=function(e){return e._repeat?oi(e._tTime,e=e.duration()+e._rDelay)*e:0},oi=function(e,t){var n=Math.floor(e=Lr(e/t));return e&&n===e?n-1:n},si=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},ci=function(e){return e._end=Lr(e._start+(e._tDur/Math.abs(e._ts||e._rts||W)||0))},li=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Lr(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),ci(e),n._dirty||ti(n,e)),e},ui=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=si(e.rawTime(),t),(!t._dur||wi(0,t.totalDuration(),n)-t._tTime>W)&&t.render(n,!0)),ti(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-W}},di=function(e,t,n,r){return t.parent&&ei(t),t._start=Lr((Gn(n)?n:n||e!==cr?xi(e,n,t):e._time)+t._delay),t._end=Lr(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Qr(e,t,`_first`,`_last`,e._sort?`_start`:0),hi(t)||(e._recent=t),r||ui(e,t),e._ts<0&&li(e,e._tTime),e},fi=function(e,t){return(fr.ScrollTrigger||gr(`scrollTrigger`,t))&&fr.ScrollTrigger.create(t,e)},pi=function(e,t,n,r,i){if(ka(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!Pn&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Er!==sa.frame)return wr.push(e),e._lazy=[i,r],1},mi=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},hi=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},gi=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&mi(e)&&!(!e._initted&&hi(e))||(e._ts<0||e._dp._ts<0)&&!hi(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=wi(0,e._tDur,t),l=oi(s,o),e._yoyo&&l&1&&(a=1-a),l!==oi(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 5,818 bytes, line 9
9date())),a!==i||Pn||r||e._zTime===W||!t&&e._zTime){if(!e._initted&&pi(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?W: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&&ri(e,t,n,!0),e._onUpdate&&!n&&qi(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&qi(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&ei(e,1),!n&&!Pn&&(qi(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},_i=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._start<t)return r;r=r._prev}},vi=function(e,t,n,r){var i=e._repeat,a=Lr(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:Lr(a*(i+1)+e._rDelay*i):a,o>0&&!r&&li(e,e._tTime=e._tDur*o),e.parent&&ci(e),n||ti(e.parent,e),e},yi=function(e){return e instanceof Sa?ti(e):vi(e,e._dur)},bi={_start:0,endTime:yr,totalDuration:yr},xi=function e(t,n,r){var i=t.labels,a=t._recent||bi,o=t.duration()>=In?a.endTime(!1):t._dur,s,c,l;return Un(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*(Qn(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Si=function(e,t,n){var r=Gn(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=Jn(s.vars.inherit)&&s.parent;a.immediateRender=Jn(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Ia(t[0],a,t[i+1])},Ci=function(e,t){return e||e===0?t(e):t},wi=function(e,t,n){return n<e?e:n>t?t:n},Ti=function(e,t){return!Un(e)||!(t=sr.exec(e))?``:t[1]},Ei=function(e,t,n){return Ci(n,function(n){return wi(e,t,n)})},Di=[].slice,Oi=function(e,t){return e&&qn(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&qn(e[0]))&&!e.nodeType&&e!==lr},ki=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return Un(e)&&!t||Oi(e,1)?(r=n).push.apply(r,Ai(e)):n.push(e)})||n},Ai=function(e,t,n){return Fn&&!t&&Fn.selector?Fn.selector(e):Un(e)&&!n&&(ur||!ca())?Di.call((t||dr).querySelectorAll(e),0):Qn(e)?ki(e,n):Oi(e)?Di.call(e,0):e?[e]:[]},ji=function(e){return e=Ai(e)[0]||_r(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Ai(t,n.querySelectorAll?n:n===e?_r(`Invalid scope`)||dr.createElement(`div`):e)}},Mi=function(e){return e.sort(function(){return .5-Math.random()})},Ni=function(e){if(Wn(e))return e;var t=qn(e)?e:{each:e},n=ha(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 Un(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,In])[1],!S){for(b=-In;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===In?0:s?f*u/S-.5:r/S|0,b=0,x=In,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):Bn(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&Mi(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?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=Ti(t.amount||t.each)||0,n=n&&f<0?ma(n):n}return f=(p[e]-p.min)/p.max||0,Lr(p.b+(n?n(f):f)*p.v)+p.u}},Pi=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=Lr(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Gn(n)?0:Ti(n))}},Fi=function(e,t){var n=Qn(e),r,i;return!n&&qn(e)&&(r=n=e.radius||In,e.values?(e=Ai(e.values),(i=!Gn(e[0]))&&(r*=r)):e=Pi(e.increment)),Ci(t,n?Wn(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=In,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),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||Gn(t)?s:s+Ti(t)}:Pi(e))},Ii=function(e,t,n,r){return Ci(Qn(e)?!t:n===!0?!!(n=0):!r,function(){return Qn(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},Li=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},Ri=function(e,t){return function(n){return e(parseFloat(n))+(t||Ti(n))}},zi=function(e,t,n){return Wi(e,t,0,1,n)},Bi=function(e,t,n){return Ci(n,function(n){return e[~~t(n)]})},Vi=function e(t,n,r){var i=n-t;return Qn(t)?Bi(t,e(0,t.length),n):Ci(r,function(e){return(i+(e-t)%i)%i+t})},Hi=function e(t,n,r){var i=n-t,a=i*2;return Qn(t)?Bi(t,e(0,t.length-1),n):Ci(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},Ui=function(e){return e.replace($n,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(er);return Ii(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Wi=function(e,t,n,r,i){var a=t-e,o=r-n;return Ci(i,function(t){return n+((t-e)/a*o||0)})},Gi=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=Un(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(Qn(t)&&!Qn(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=qr(Qn(t)?[]:{},t));if(!u){for(c in n)wa.call(s,t,c,`get`,n[c]);a=function(e){return Ga(e,s)||(o?t.p:t)}}}return Ci(r,a)},Ki=function(e,t,n){var r=e.labels,i=In,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},qi=function(e,t,n){var r=e.vars,i=r[t],a=Fn,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&wr.length&&Br(),o&&(Fn=o),l=s?
vendor: 6,178 bytes, line 9
9i.apply(c,s):i.call(c),Fn=a,l},Ji=function(e){return ei(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Pn),e.progress()<1&&qi(e,`onInterrupt`),e},Yi,Xi=[],Zi=function(e){if(e)if(e=!e.name&&e.default||e,Yn()||e.headless){var t=e.name,n=Wn(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:yr,render:Ga,add:wa,kill:qa,modifier:Ka,rawVars:0},a={targetTest:0,get:0,getSetter:Va,aliases:{},register:0};if(ca(),e!==r){if(Dr[t])return;Gr(r,Gr(Yr(e,i),a)),qr(r.prototype,qr(i,Yr(e,a))),Dr[r.prop=t]=r,e.targetTest&&(Ar.push(r),Cr[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}vr(t,r),e.register&&e.register(uo,r,Xa)}else Xi.push(e)},G=255,Qi={aqua:[0,G,G],lime:[0,G,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,G],navy:[0,0,128],white:[G,G,G],olive:[128,128,0],yellow:[G,G,0],orange:[G,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[G,0,0],pink:[G,192,203],cyan:[0,G,G],transparent:[G,G,G,0]},$i=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)*G+.5|0},ea=function(e,t,n){var r=e?Gn(e)?[e>>16,e>>8&G,e&G]:0:Qi.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Qi[e])r=Qi[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&G,r&G,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&G,e&G]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(tr),!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]=$i(s+1/3,i,a),r[1]=$i(s,i,a),r[2]=$i(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(nr),n&&r.length<4&&(r[3]=1),r}else r=e.match(tr)||Qi.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/G,a=r[1]/G,o=r[2]/G,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+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},ta=function(e){var t=[],n=[],r=-1;return e.split(ra).forEach(function(e){var i=e.match(rr)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},na=function(e,t,n){var r=``,i=(e+r).match(ra),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=ea(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=ta(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(ra,`1`).split(rr),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(ra),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},ra=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in Qi)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),ia=/hsl[a]?\(/,aa=function(e){var t=e.join(` `),n;if(ra.lastIndex=0,ra.test(t))return n=ia.test(t),e[1]=na(e[1],n),e[0]=na(e[0],n,ta(e[1])),!0},oa,sa=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||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<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){mr&&(!ur&&Yn()&&(lr=ur=window,dr=lr.document||{},fr.gsap=uo,(lr.gsapVersions||=[]).push(uo.version),hr(pr||lr.GreenSockGlobals||!lr.gsap&&lr||{}),Xi.forEach(Zi)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},oa=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),oa=0,l=yr},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),ca(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),ca=function(){return!oa&&sa.wake()},K={},la=/^[\d.\-M][\d.\-,\s]/,ua=/["']/g,da=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(ua,``).trim():+c,r=s.substr(o+1).trim();return t},fa=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},pa=function(e){var t=(e+``).split(`(`),n=K[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[da(t[1])]:fa(e).split(`,`).map(Ur)):K._CE&&la.test(e)?K._CE(``,e):n},ma=function(e){return function(t){return 1-e(1-t)}},ha=function(e,t){return e&&(Wn(e)?e:K[e]||pa(e))||t},ga=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 Fr(e,function(e){for(var t in K[e]=fr[e]=i,K[a=e.toLowerCase()]=n,i)K[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=K[e+`.`+t]=i[t]}),i},_a=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},va=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/Ln*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*Hn((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:_a(s);return a=Ln/a,c.config=function(n,r){return e(t,n,r)},c},ya=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)}:_a(r);return i.config=function(n){return e(t,n)},i};Fr(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;ga(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})}),K.Linear.easeNone=K.none=K.Linear.easeIn,ga(`Elastic`,va(`in`),va(`out`),va()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};ga(`Bounce`,function(e){return 1-a(1-e)},a)}
vendor: 22,730 bytes, line 9
9)(7.5625,2.75),ga(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),ga(`Circ`,function(e){return-(Bn(1-e*e)-1)}),ga(`Sine`,function(e){return e===1?1:-Vn(e*Rn)+1}),ga(`Back`,ya(`in`),ya(`out`),ya()),K.SteppedEase=K.steps=fr.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-W;return function(e){return((r*wi(0,a,e)|0)+i)*n}}},Mn.ease=K[`quad.out`],Fr(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return jr+=e+`,`+e+`Params,`});var ba=function(e,t){this.id=zn++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Pr,this.set=t?t.getSetter:Va},xa=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,vi(this,+e.duration,1,1),this.data=e.data,Fn&&(this._ctx=Fn,Fn.data.push(this)),oa||sa.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,vi(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(ca(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(li(this,e),!n._dp||n.parent||ui(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&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&di(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===W||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Hr(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+ai(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)+ai(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?oi(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-W?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?si(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-W?0:this._rts,this.totalTime(wi(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),ci(this),ni(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):(ca(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==W&&(this._tTime-=W)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=Lr(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&di(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Jn(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?si(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Sr);var t=Pn;return Pn=e,Vr(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),Pn=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,yi(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,yi(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(xi(this,e),Jn(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Jn(t)),this._dur||(this._zTime=-W),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?-W:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-W,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&&n<this.endTime(!0)-W)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(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=Wn(e)?e:Wr,a=function(){var e=t.then;t.then=null,n&&n(),Wn(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(){Ji(this)},e}();Gr(xa.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:-W,_prom:0,_ps:!1,_rts:1});var Sa=function(e){An(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=Jn(t.sortChildren),cr&&di(t.parent||cr,kn(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&fi(kn(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Si(0,arguments,this),this},n.from=function(e,t,n){return Si(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Si(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Xr(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Ia(e,t,xi(this,n),1),this},n.call=function(e,t,n){return di(this,Ia.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 Ia(e,n,xi(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Xr(n).immediateRender=Jn(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,Xr(r).immediateRender=Jn(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:Lr(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==cr&&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=Lr(o%f),o===i?(d=this._repeat,c=a):(_=Lr(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=oi(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:Lr(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&qi(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=_i(this,Lr(r),Lr(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&&!_&&(qi(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=-W);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||Pn&&Vr(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-W:W);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-W)._zTime=c>=r?1:-1,this._ts))return this._start=g,ci(this),this.render(e,t,n);this._onUpdate&&!t&&qi(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)&&ei(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(qi(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(Gn(t)||(t=xi(this,t,e)),!(e instanceof xa)){if(Qn(e))return e.forEach(function(e){return n.add(e,t)}),this;if(Un(e))return this.addLabel(e,t);if(Wn(e))e=Ia.delayedCall(0,e);else return this}return this===e?this:di(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=-In);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Ia?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 Un(e)?this.removeLabel(e):Wn(e)?this.killTweensOf(e):(e.parent===this&&$r(this,e),e===this._recent&&(this._recent=this._last),ti(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Lr(sa.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]=xi(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Ia.delayedCall(0,t||yr,n);return r.data=`isPause`,this._hasPause=1,di(this,r,xi(this,e))},n.removePause=function(e){var t=this._first;for(e=xi(this,e);t;)t._start===e&&t.data===`isPause`&&ei(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Da!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Ai(e),i=this._first,a=Gn(t),o;i;)i instanceof Ia?zr(i._targets,r)&&(a?(!Da||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=xi(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Ia.to(n,Gr({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())||W,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&&vi(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,Gr({startAt:{time:xi(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Ki(this,xi(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Ki(this,xi(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+W)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=Lr(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 ti(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={}),ti(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=In,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,di(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=Lr(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;vi(n,n===cr&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(cr._ts&&(Hr(cr,si(e,cr)),Er=sa.frame),sa.frame>=kr){kr+=jn.autoSleep||120;var t=cr._first;if((!t||!t._ts)&&jn.autoSleep&&sa._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||sa.sleep()}}},t}(xa);Gr(Sa.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ca=function(e,t,n,r,i,a,o){var s=new Xa(this._pt,e,t,0,1,Wa,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=Ui(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(ir)||[];u=ir.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)===`=`?Rr(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=ir.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(ar.test(r)||g)&&(s.e=0),this._pt=s,s},wa=function(e,t,n,r,i,a,o,s,c,l){Wn(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?Wn(u)?c?e[t.indexOf(`set`)||!Wn(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=Wn(u)?c?za:Ra:La,p;if(Un(r)&&(~r.indexOf(`random(`)&&(r=Ui(r)),r.charAt(1)===`=`&&(p=Rr(d,r)+(Ti(d)||0),(p||p===0)&&(r=p))),!l||d!==r||Oa)return!isNaN(d*r)&&r!==``?(p=new Xa(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?Ua:Ha,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&gr(t,r),Ca.call(this,e,t,d,r,f,s||jn.stringFilter,c))},Ta=function(e,t,n,r,i){if(Wn(e)&&(e=Na(e,i,t,n,r)),!qn(e)||e.style&&e.nodeType||Qn(e)||Zn(e))return Un(e)?Na(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=Na(e[o],i,t,n,r);return a},Ea=function(e,t,n,r,i,a){var o,s,c,l;if(Dr[e]&&(o=new Dr[e]).init(i,o.rawVars?t[e]:Ta(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new Xa(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Yi))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},Da,Oa,ka=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!Nn,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,ee,N;if(b&&(!f||!a)&&(a=`none`),t._ease=ha(a,Mn.ease),t._rEase=x&&(ha(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?Nr(g[0]).harness:0,ee=k&&i[k.prop],S=Yr(i,Cr),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?xr:br),h._lazy=0),o){if(ei(t._startAt=Ia.set(g,Gr({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&Jn(c),startAt:null,delay:0,onUpdate:l&&function(){return qi(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Pn||!s&&!p)&&t._startAt.revert(xr),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=Gr({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&Jn(c),immediateRender:s,stagger:0,parent:_},S),ee&&(w[k.prop]=ee),ei(t._startAt=Ia.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Pn?t._startAt.revert(xr):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,W,W);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&Jn(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||Mr(g)[C]._gsap,t._ptLookup[C]=j={},Tr[O.id]&&wr.length&&Br(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,ee||S,t,M,v)!==!1&&(t._pt=T=new Xa(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||ee)for(w in S)Dr[w]&&(A=Ea(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=wa.call(t,E,w,`get`,S[w],M,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(E,t._op[C]),y&&t._pt&&(Da=t,cr.killTweensOf(E,j,t.globalTime(n)),N=!t.parent,Da=0),t._pt&&c&&(Tr[O.id]=1)}D&&Ya(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!N,f&&n<=0&&b.render(In,!0,!0)},Aa=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Oa=1,e.vars[t]=`+=0`,ka(e,o),Oa=0,s?_r(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&=Ir(n)+Ti(u.e),u.b&&=l.s+Ti(u.b)},ja=function(e,t){var n=e[0]?Nr(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=qr({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},Ma=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(Qn(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},Na=function(e,t,n,r,i){return Wn(e)?e.call(t,n,r,i):Un(e)&&~e.indexOf(`random(`)?Ui(e):e},Pa=jr+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,Fa={};Fr(Pa+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return Fa[e]=1});var Ia=function(e){An(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:Xr(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||cr,g=(Qn(t)||Zn(t)?Gn(t[0]):`length`in n)?[t]:Ai(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?Mr(g):_r(`GSAP target `+t+` not found. https://gsap.com`,!jn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||Xn(s)||Xn(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new Sa({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=kn(a),_._start=0,u||Xn(s)||Xn(c)){if(b=g.length,C=u&&Ni(u),qn(u))for(x in u)~Pa.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=Yr(n,Fa),y.stagger=0,T&&(y.easeReverse=T),w&&qr(y,w),S=g[v],y.duration=+Na(s,kn(a),v,S,g),y.delay=(+Na(c,kn(a),v,S,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(S,y,C?C(v,S,g):0),_._ease=K.none;_.duration()?s=c=0:a.timeline=0}else if(f){Xr(Gr(_.vars.defaults,{ease:`none`})),_._ease=ha(f.ease||n.ease||`none`);var E=0,D,O,k;if(Qn(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||Ma(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;v<D.length;v++)O=D[v],k={ease:O.e,duration:(O.t-(v?D[v-1].t:0))/100*s},k[x]=O.v,_.to(g,k,E),E+=k.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!Nn&&(Da=kn(a),cr.killTweensOf(g),Da=0),di(h,kn(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===Lr(h._time)&&Jn(l)&&ii(kn(a))&&h.data!==`nested`)&&(a._tTime=-W,a.render(Math.max(0,-c)||0)),m&&fi(kn(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-W&&!o?i:e<W?0:e,c,l,u,d,f,p,m,h;if(!a)gi(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=Lr(s%d),s===i?(u=this._repeat,c=a):(f=Lr(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=oi(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(Lr(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(pi(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=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(qi(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&ri(this,e,t,n),qi(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&qi(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&ri(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&ei(this,1),!t&&!(o&&!r)&&(s||r||p)&&(qi(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&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){oa||sa.wake(),this._ts||this.play();
vendor: 3,832 bytes, line 9
9var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||ka(this,a),o=this._ease(a/this._dur),Aa(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(li(this,0),this.parent||Qr(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?Ji(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Pn),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Da&&Da.vars.overwrite!==!0)._first||Ji(this),this.parent&&n!==this.timeline.totalDuration()&&vi(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Ai(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Zr(r,i))return t===`all`&&(this._pt=0),Ji(this);for(s=this._op=this._op||[],t!==`all`&&(Un(t)&&(d={},Fr(t,function(e){return d[e]=1}),t=d),t=ja(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)&&$r(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Ji(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Si(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 Si(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 cr.killTweensOf(e,t,n)},t}(xa);Gr(Ia.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Fr(`staggerTo,staggerFrom,staggerFromTo`,function(e){Ia[e]=function(){var t=new Sa,n=Di.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var La=function(e,t,n){return e[t]=n},Ra=function(e,t,n){return e[t](n)},za=function(e,t,n,r){return e[t](r.fp,n)},Ba=function(e,t,n){return e.setAttribute(t,n)},Va=function(e,t){return Wn(e[t])?Ra:Kn(e[t])&&e.setAttribute?Ba:La},Ha=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Ua=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Wa=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)},Ga=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Ka=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},qa=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?$r(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Ja=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Ya=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},Xa=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||Ha,this.d=o||this,this.set=s||La,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=Ja,this.m=e,this.mt=n,this.tween=t},e}();Fr(jr+`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 Cr[e]=1}),fr.TweenMax=fr.TweenLite=Ia,fr.TimelineLite=fr.TimelineMax=Sa,cr=new Sa({sortChildren:!1,defaults:Mn,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),jn.stringFilter=aa;var Za=[],Qa={},$a=[],eo=0,to=0,no=function(e){return(Qa[e]||$a).map(function(e){return e()})},ro=function(){var e=Date.now(),t=[];e-eo>
vendor: 2,450 bytes, line 9
92&&(no(`matchMediaInit`),Za.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=lr.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),no(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),eo=e,no(`matchMedia`))},io=function(){function e(e,t){this.selector=t&&ji(t),this.data=[],this._r=[],this.isReverted=!1,this.id=to++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){Wn(e)&&(n=t,t=e,e=Wn);var r=this,i=function(){var e=Fn,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=ji(n)),Fn=r,a=t.apply(r,arguments),Wn(a)&&r._r.push(a),Fn=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===Wn?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=Fn;Fn=null,e(this),Fn=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Ia&&!(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 Sa?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Ia)&&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=Za.length;r--;)Za[r].id===this.id&&Za.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),ao=function(){function e(e){this.contexts=[],this.scope=e,Fn&&Fn.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){qn(e)||(e={matches:e});var r=new io(0,n||this.scope),i=r.conditions={},a,o,s;for(o in Fn&&!r.selector&&(r.selector=Fn.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=lr.matchMedia(e[o]),a&&(Za.indexOf(r)<0&&Za.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(ro):a.addEventListener(`change`,ro)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})}
vendor: 8,134 bytes, line 9
9,t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),oo={registerPlugin:function(){[...arguments].forEach(function(e){return Zi(e)})},timeline:function(e){return new Sa(e)},getTweensOf:function(e,t){return cr.getTweensOf(e,t)},getProperty:function(e,t,n,r){Un(e)&&(e=Ai(e)[0]);var i=Nr(e||{}).get,a=n?Wr:Ur;return n===`native`&&(n=``),e&&(t?a((Dr[t]&&Dr[t].get||i)(e,t,n,r)):function(t,n,r){return a((Dr[t]&&Dr[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Ai(e),e.length>1){var r=e.map(function(e){return uo.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Dr[t],o=Nr(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Yi._pt=0,r.init(e,n?t+n:t,Yi,0,[e]),r.render(1,r),Yi._pt&&Ga(1,Yi)}: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=uo.to(e,Gr((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 cr.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ha(e.ease,Mn.ease)),Jr(Mn,e||{})},config:function(e){return Jr(jn,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&&!Dr[e]&&!fr[e]&&_r(t+` effect requires `+e+` plugin.`)}),Or[t]=function(e,t,r){return n(Ai(e),Gr(t||{},i),r)},a&&(Sa.prototype[t]=function(e,n,r){return this.add(Or[t](e,qn(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){K[e]=ha(t)},parseEase:function(e,t){return arguments.length?ha(e,t):K},getById:function(e){return cr.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Sa(e),r,i;for(n.smoothChildTiming=Jn(e.smoothChildTiming),cr.remove(n),n._dp=0,n._time=n._tTime=cr._time,r=cr._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Ia&&r.vars.onComplete===r._targets[0]))&&di(n,r,r._start-r._delay),r=i;return di(cr,n,0),n},context:function(e,t){return e?new io(e,t):Fn},matchMedia:function(e){return new ao(e)},matchMediaRefresh:function(){return Za.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||ro()},addEventListener:function(e,t){var n=Qa[e]||(Qa[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Qa[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Vi,wrapYoyo:Hi,distribute:Ni,random:Ii,snap:Fi,normalize:zi,getUnit:Ti,clamp:Ei,splitColor:ea,toArray:Ai,selector:ji,mapRange:Wi,pipe:Li,unitize:Ri,interpolate:Gi,shuffle:Mi},install:hr,effects:Or,ticker:sa,updateRoot:Sa.updateRoot,plugins:Dr,globalTimeline:cr,core:{PropTween:Xa,globals:vr,Tween:Ia,Timeline:Sa,Animation:xa,getCache:Nr,_removeLinkedListItem:$r,reverting:function(){return Pn},context:function(e){return e&&Fn&&(Fn.data.push(e),e._ctx=Fn),Fn},suppressOverwrites:function(e){return Nn=e}}};Fr(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return oo[e]=Ia[e]}),sa.add(Sa.updateRoot),Yi=oo.to({},{duration:0});var so=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},co=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=so(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},lo=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(Un(n)&&(r={},Fr(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}co(e,n)}}}},uo=oo.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;)Pn?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)}},lo(`roundProps`,Pi),lo(`modifiers`),lo(`snap`,Fi))||oo;Ia.version=Sa.version=uo.version=`3.15.0`,mr=1,Yn()&&ca(),K.Power0,K.Power1,K.Power2,K.Power3,K.Power4,K.Linear,K.Quad,K.Cubic,K.Quart,K.Quint,K.Strong,K.Elastic,K.Back,K.SteppedEase,K.Bounce,K.Sine,K.Expo,K.Circ;var fo,po,mo,ho,go,_o,vo,yo=function(){return typeof window<`u`},bo={},xo=180/Math.PI,So=Math.PI/180,Co=Math.atan2,wo=1e8,To=/([A-Z])/g,Eo=/(left|right|width|margin|padding|x)/i,Do=/[\s,\(]\S/,Oo={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},ko=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Ao=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)},jo=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)},Mo=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)},No=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Po=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Fo=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Io=function(e,t,n){return e.style[t]=n},Lo=function(e,t,n){return e.style.setProperty(t,n)},Ro=function(e,t,n){return e._gsap[t]=n},zo=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Bo=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Vo=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},Ho=`transform`,Uo=Ho+`Origin`,Wo=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in bo&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=Oo[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=ls(i,e)}):this.tfm[t]=o.x?o[t]:ls(i,t),t===Uo&&(this.tfm.zOrigin=o.zOrigin);else return Oo.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(Ho)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Uo,n,``)),t=Ho}(a||n)&&this.props.push(t,n,a[t])},Go=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ko=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(To,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=vo(),(!i||!i.isStart)&&!n[Ho]&&(Go(n),r.zOrigin&&n[Uo]&&(n[Uo]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},qo=function(e,t){var n={target:e,props:[],revert:Ko,save:Wo};return e._gsap||uo.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},Jo,Yo=function(e,t){var n=po.createElementNS?po.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):po.createElement(e);return n&&n.style?n:po.createElement(e)},Xo=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(To,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,Qo(n)||n,1)||``},Zo=`O,Moz,ms,Ms,Webkit`.split(`,`),Qo=function(e,t,n){var r=(t||go).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Zo[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?Zo[i]:``)+e},$o=function(){yo()&&window.document&&(fo=window,po=fo.document,mo=po.documentElement,go=Yo(`div`)||{style:{}},Yo(`div`),Ho=Qo(Ho),Uo=Ho+`Origin`,go.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Jo=!!Qo(`perspective`),vo=uo.core.reverting,ho=1)},es=function(e){var t=e.ownerSVGElement,n=Yo(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),mo.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),mo.removeChild(n),i},ts=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},ns=function(e){var t,n;try{t=e.getBBox()}catch{t=es(e),n=1}return t&&(t.width||t.height)||n||(t=es(e)),t&&!t.width&&!t.x&&!t.y?{x:+ts(e,[`x`,`cx`,`x1`])||0,y:+ts(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},rs=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ns(e))},is=function(e,t){if(t){var n=e.style,r;
vendor: 5,532 bytes, line 9
9t in bo&&t!==Uo&&(t=Ho),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(To,`-$1`).toLowerCase())):n.removeAttribute(t)}},as=function(e,t,n,r,i,a){var o=new Xa(e._pt,t,n,0,1,a?Fo:Po);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},os={deg:1,rad:1,turn:1},ss={grid:1,flex:1},cs=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=go.style,c=Eo.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||os[i]||os[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&rs(t),(p||o===`%`)&&(bo[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],Ir(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===po||!h.appendChild)&&(h=po.body),g=h._gsap,g&&p&&g.width&&c&&g.time===sa.time&&!g.uncache)return Ir(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:is(t,n)}else (p||o===`%`)&&!ss[Xo(h,`display`)]&&(s.position=Xo(t,`position`)),h===t&&(s.position=`static`),h.appendChild(go),m=go[u],h.removeChild(go),s.position=`absolute`;return c&&p&&(g=Nr(h),g.time=sa.time,g.width=h[u]),Ir(f?m*a/d:m&&a?d/m*a:0)},ls=function(e,t,n,r){var i;return ho||$o(),t in Oo&&t!==`transform`&&(t=Oo[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),bo[t]&&t!==`transform`?(i=xs(e,r),i=t===`transformOrigin`?i.svg?i.origin:Ss(Xo(e,Uo))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=ms[t]&&ms[t](e,t,n)||Xo(e,t)||Pr(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?cs(e,t,i,n)+n:i},us=function(e,t,n,r){if(!n||n===`none`){var i=Qo(t,e,1),a=i&&Xo(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Xo(e,`borderTopColor`))}var o=new Xa(this._pt,e.style,t,0,1,Wa),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=Xo(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Xo(e,t)||r,m?e.style[t]=m:is(e,t)),l=[n,r],aa(l),n=l[0],r=l[1],d=n.match(rr)||[],b=r.match(rr)||[],b.length){for(;u=rr.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=Rr(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=rr.lastIndex-v.length,v||(v=v||jn.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=cs(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<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?Fo:Po;return ar.test(r)&&(o.e=0),this._pt=o,o},ds={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},fs=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=ds[n]||n,t[1]=ds[r]||r,t.join(` `)},ps=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],bo[o]&&(s=1,o=o===`transformOrigin`?Uo:Ho),is(n,o);s&&(is(n,Ho),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,xs(n,1),a.uncache=1,Go(r)))}},ms={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Xa(e._pt,t,n,0,0,ps);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},hs=[1,0,0,1,0,0],gs={},_s=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},vs=function(e){var t=Xo(e,Ho);return _s(t)?hs:t.substr(7).match(nr).map(Ir)},ys=function(e,t){var n=e._gsap||Nr(e),r=e.style,i=vs(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`?hs:i):(i===hs&&!e.offsetParent&&e!==mo&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,mo.appendChild(e)),i=vs(e),s?r.display=s:is(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):mo.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},bs=function(e,t,n,r,i,a){var o=e._gsap,s=i||ys(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!==hs&&(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=ns(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[Uo]=`0px 0px`,a&&(as(a,o,`xOrigin`,c,y),as(a,o,`yOrigin`,l,b),as(a,o,`xOffset`,u,o.xOffset),as(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},xs=function(e,t){var n=e._gsap||new ba(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=Xo(e,Uo)||`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,ee,N,te,ne,re,ie,ae,oe;return n.svg=!!(e.getCTM&&rs(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[Ho]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`
9none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[Ho]===`none`?``:s[Ho])),r.scale=r.rotate=r.translate=`none`),S=ys(e,n.svg),n.svg&&(n.uncache?(ee=e.getBBox(),c=n.xOrigin-ee.x+`px `+(n.yOrigin-ee.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),bs(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==hs&&(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?Co(D,E)*xo:0,_=O||k?Co(O,k)*xo+m:0,_&&(p*=Math.abs(Math.cos(_*So))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(oe=S[6],ie=S[7],te=S[8],ne=S[9],re=S[10],ae=S[11],l=S[12],u=S[13],d=S[14],C=Co(oe,re),h=C*xo,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+te*T,ee=j*w+ne*T,N=oe*w+re*T,te=A*-T+te*w,ne=j*-T+ne*w,re=oe*-T+re*w,ae=ie*-T+ae*w,A=M,j=ee,oe=N),C=Co(-O,re),g=C*xo,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-te*T,ee=D*w-ne*T,N=O*w-re*T,ae=k*T+ae*w,E=M,D=ee,O=N),C=Co(D,E),m=C*xo,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,ee=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=ee),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=Ir(Math.sqrt(E*E+D*D+O*O)),p=Ir(Math.sqrt(j*j+oe*oe)),C=Co(A,j),_=Math.abs(C)>2e-4?C*xo:0,y=ae?1/(ae<0?-ae:ae):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!_s(Xo(e,Ho)),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=Ir(f),n.scaleY=Ir(p),n.rotation=Ir(m)+o,n.rotationX=Ir(h)+o,n.rotationY=Ir(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Uo]=Ss(c)),n.xOffset=n.yOffset=0,n.force3D=jn.force3D,n.renderTransform=n.svg?ks:Jo?Os:ws,n.uncache=0,n},Ss=function(e){return(e=e.split(` `))[0]+` `+e[1]},Cs=function(e,t,n){var r=Ti(t);return Ir(parseFloat(t)+parseFloat(cs(e,`x`,n+`px`,r)))+r},ws=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,Os(e,t)},Ts=`0deg`,Es=`0px`,Ds=`) `,Os=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!==Ts||l!==Ts)){var x=parseFloat(l)*So,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*So,w=Math.cos(x),a=Cs(_,a,S*w*-v),o=Cs(_,o,-Math.sin(x)*-v),s=Cs(_,s,C*w*-v+v)}h!==Es&&(y+=`perspective(`+h+Ds),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==Es||o!==Es||s!==Es)&&(y+=s!==Es||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Ds),c!==Ts&&(y+=`rotate(`+c+Ds),l!==Ts&&(y+=`rotateY(`+l+Ds),u!==Ts&&(y+=`rotateX(`+u+Ds),(d!==Ts||f!==Ts)&&(y+=`skew(`+d+`, `+f+Ds),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Ds),_.style[Ho]=y||`translate(0, 0)`},ks=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;
vendor: 4,091 bytes, line 9
9s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=So,c*=So,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=So,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=Ir(b),x=Ir(x),S=Ir(S),C=Ir(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=cs(f,`x`,a,`px`),y=cs(f,`y`,o,`px`)),(p||m||h||g)&&(v=Ir(v+p-(p*b+m*S)+h),y=Ir(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=Ir(v+r/100*w.width),y=Ir(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[Ho]=w)},As=function(e,t,n,r,i){var a=360,o=Un(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?xo: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*wo)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*wo)%a-~~(s/a)*a)),e._pt=u=new Xa(e._pt,t,n,r,s,Ao),u.e=c,u.u=`deg`,e._props.push(n),u},js=function(e,t){for(var n in t)e[n]=t[n];return e},Ms=function(e,t,n){var r=js({},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[Ho]=t,o=xs(n,1),is(n,Ho),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[Ho],a[Ho]=t,o=xs(n,1),a[Ho]=c),bo)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=Ti(c),p=Ti(l),u=f===p?parseFloat(c):cs(n,s,c,p),d=parseFloat(l),e._pt=new Xa(e._pt,o,s,u,d-u,ko),e._pt.u=p||0,e._props.push(s));js(o,r)};Fr(`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});ms[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 ls(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 Ns={name:`css`,register:$o,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 ho||$o(),this.styles=this.styles||qo(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Dr[m]&&Ea(m,t,n,r,e,i)))){if(f=typeof l,p=ms[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=Ui(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,ra.lastIndex=0,ra.test(c)||(h=Ti(c),g=Ti(l),g?h!==g&&(c=cs(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],Un(c)&&~c.indexOf(`random(`)&&(c=Ui(c)),Ti(c+``)||c===`auto`||(c+=jn.units[m]||Ti(ls(e,m))||``),(c+``).charAt(1)===`=`&&(c=ls(e,m))):c=ls(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in Oo&&(m===`autoAlpha`&&(d===1&&ls(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),as(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=Oo[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in bo,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Xo(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=Xo(e,`perspective`),T?e.style.perspective=T:is(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||xs(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Xa(this._pt,o,Ho,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Xa(this._pt,b,`scaleY`,b.scaleY,(_?Rr(b.scaleY,_+u):u)-b.scaleY||0,ko),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(Uo,0,o[Uo]),l=fs(l),b.svg?bs(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&as(this,b,`zOrigin`,b.zOrigin,g),as(this,o,m,Ss(c),Ss(l)));continue}else if(m===`svgOrigin`){bs(e,l,1,x,0,this);continue}
vendor: 5,877 bytes, line 9
9else if(m in gs){As(this,b,m,d,_?Rr(d,_+l):l);continue}else if(m===`smoothOrigin`){as(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Ms(this,l,e);continue}}else m in o||(m=Qo(m)||m);if(v||(u||u===0)&&(d||d===0)&&!Do.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=Ti(l)||(m in jn.units?jn.units[m]:h),h!==g&&(d=cs(e,m,c,g)),this._pt=new Xa(this._pt,v?b:o,m,d,(_?Rr(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?No:ko),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=Mo):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=jo);else if(m in o)us.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`){gr(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&&Ya(this)},render:function(e,t){if(t.tween._time||!vo())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:ls,aliases:Oo,getSetter:function(e,t,n){var r=Oo[t];return r&&r.indexOf(`,`)<0&&(t=r),t in bo&&t!==Uo&&(e._gsap.x||ls(e,`x`))?n&&_o===n?t===`scale`?zo:Ro:(_o=n||{})&&(t===`scale`?Bo:Vo):e.style&&!Kn(e.style[t])?Io:~t.indexOf(`-`)?Lo:Va(e,t)},core:{_removeProperty:is,_getMatrix:ys}};uo.utils.checkPrefix=Qo,uo.core.getStyleSaver=qo,(function(e,t,n,r){var i=Fr(e+`,`+t+`,`+n,function(e){bo[e]=1});Fr(t,function(e){jn.units[e]=`deg`,gs[e]=1}),Oo[i[13]]=e+`,`+t,Fr(r,function(e){var t=e.split(`:`);Oo[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`),Fr(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){jn.units[e]=`px`}),uo.registerPlugin(Ns);var Ps=uo.registerPlugin(Ns)||uo;Ps.core.Tween;function Fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Is(e,t,n){return t&&Fs(e.prototype,t),n&&Fs(e,n),e}var Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs=function(){return Ls||typeof window<`u`&&(Ls=window.gsap)&&Ls.registerPlugin&&Ls},Zs=1,Qs=[],q=[],$s=[],ec=Date.now,tc=function(e,t){return t},nc=function(){var e=Gs.core,t=e.bridge||{},n=e._scrollers,r=e._proxies;n.push.apply(n,q),r.push.apply(r,$s),q=n,$s=r,tc=function(e,n){return t[e](n)}},rc=function(e,t){return~$s.indexOf(e)&&$s[$s.indexOf(e)+1][t]},ic=function(e){return!!~Ks.indexOf(e)},ac=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:r!==!1,capture:!!i})},oc=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},sc=`scrollLeft`,cc=`scrollTop`,lc=function(){return qs&&qs.isPressed||q.cache++},uc=function(e,t){var n=function n(r){if(r||r===0){Zs&&(zs.history.scrollRestoration=`manual`);var i=qs&&qs.isPressed;r=n.v=Math.round(r)||(qs&&qs.iOS?1:0),e(r),n.cacheID=q.cache,i&&tc(`ss`,r)}else (t||q.cache!==n.cacheID||tc(`ref`))&&(n.cacheID=q.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},dc={s:sc,p:`left`,p2:`Left`,os:`right`,os2:`Right`,d:`width`,d2:`Width`,a:`x`,sc:uc(function(e){return arguments.length?zs.scrollTo(e,fc.sc()):zs.pageXOffset||Bs[sc]||Vs[sc]||Hs[sc]||0})},fc={s:cc,p:`top`,p2:`Top`,os:`bottom`,os2:`Bottom`,d:`height`,d2:`Height`,a:`y`,op:dc,sc:uc(function(e){return arguments.length?zs.scrollTo(dc.sc(),e):zs.pageYOffset||Bs[cc]||Vs[cc]||Hs[cc]||0})},pc=function(e,t){return(t&&t._ctx&&t._ctx.selector||Ls.utils.toArray)(e)[0]||(typeof e==`string`&&Ls.config().nullTargetWarn!==!1?console.warn(`Element not found:`,e):null)},mc=function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1},hc=function(e,t){var n=t.s,r=t.sc;ic(e)&&(e=Bs.scrollingElement||Vs);var i=q.indexOf(e),a=r===fc.sc?1:2;!~i&&(i=q.push(e)-1),q[i+a]||ac(e,`scroll`,lc);var o=q[i+a],s=o||(q[i+a]=uc(rc(e,n),!0)||(ic(e)?r:uc(function(t){return arguments.length?e[n]=t:e[n]})));return s.target=e,o||(s.smooth=Ls.getProperty(e,`scrollBehavior`)===`smooth`),s},gc=function(e,t,n){var r=e,i=e,a=ec(),o=a,s=t||50,c=Math.max(500,s*3),l=function(e,t){var c=ec();t||c-a>s?(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=ec();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},_c=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},vc=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},yc=function(){Gs=Ls.core.globals().ScrollTrigger,Gs&&Gs.core&&nc()},bc=function(e){return Ls=e||Xs(),!Rs&&Ls&&typeof document<`u`&&document.body&&(zs=window,Bs=document,Vs=Bs.documentElement,Hs=Bs.body,Ks=[zs,Bs,Vs,Hs],Ls.utils.clamp,Ys=Ls.core.context||function(){},Ws=`onpointerenter`in Hs?`pointer`:`mouse`,Us=xc.isTouch=zs.matchMedia&&zs.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in zs||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Js=xc.eventTypes=(`ontouchstart`in Vs?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in Vs?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return Zs=0},500),Rs=1),Gs||yc(),Rs};dc.op=fc,q.cache=0;var xc=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){Rs||bc(Ls)||console.warn(`Please gsap.registerPlugin(Observer)`),Gs||yc();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.onCh
vendor: 6,741 bytes, line 9
9angeX,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,ee=e.onGestureEnd,N=e.onWheel,te=e.onEnable,ne=e.onDisable,re=e.onClick,ie=e.scrollSpeed,ae=e.capture,oe=e.allowClicks,se=e.lockAxis,P=e.onLockAxis;this.target=i=pc(i)||Vs,this.vars=e,u&&=Ls.utils.toArray(u),t||=1e-9,n||=0,d||=1,ie||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(zs.getComputedStyle(Hs).lineHeight)||22;var F,ce,le,ue,I,de,fe,L=this,pe=0,me=0,he=e.passive||!s&&e.passive!==!1,ge=hc(i,dc),_e=hc(i,fc),ve=ge(),ye=_e(),be=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Js[0]===`pointerdown`,xe=ic(i),R=i.ownerDocument||Bs,Se=[0,0,0],z=[0,0,0],Ce=0,we=function(){return Ce=ec()},Te=function(e,t){return(L.event=e)&&u&&mc(e.target,u)||t&&be&&e.pointerType!==`touch`||A&&A(e,t)},B=function(){L._vx.reset(),L._vy.reset(),ce.pause(),c&&c(L)},Ee=function(){var e=L.deltaX=vc(Se),n=L.deltaY=vc(z),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(L,e,n,Se,z),r&&(v&&L.deltaX>0&&v(L),y&&L.deltaX<0&&y(L),S&&S(L),T&&L.deltaX<0!=pe<0&&T(L),pe=L.deltaX,Se[0]=Se[1]=Se[2]=0),i&&(x&&L.deltaY>0&&x(L),b&&L.deltaY<0&&b(L),C&&C(L),E&&L.deltaY<0!=me<0&&E(L),me=L.deltaY,z[0]=z[1]=z[2]=0),(ue||le)&&(k&&k(L),le&&=(p&&le===1&&p(L),h&&h(L),0),ue=!1),de&&!(de=!1)&&P&&P(L),I&&=(N(L),!1),F=0},De=function(e,t,n){Se[n]+=e,z[n]+=t,L._vx.update(e),L._vy.update(t),o?F||=requestAnimationFrame(Ee):Ee()},Oe=function(e,t){se&&!fe&&(L.axis=fe=Math.abs(e)>Math.abs(t)?`x`:`y`,de=!0),fe!==`y`&&(Se[2]+=e,L._vx.update(e,!0)),fe!==`x`&&(z[2]+=t,L._vy.update(t,!0)),o?F||=requestAnimationFrame(Ee):Ee()},ke=function(e){if(!Te(e,1)){e=_c(e,s);var t=e.clientX,r=e.clientY,i=t-L.x,a=r-L.y,o=L.isDragging;L.x=t,L.y=r,(o||(i||a)&&(Math.abs(L.startX-t)>=n||Math.abs(L.startY-r)>=n))&&(le||=o?2:1,o||(L.isDragging=!0),Oe(i,a))}},Ae=L.onPress=function(e){Te(e,1)||e&&e.button||(L.axis=fe=null,ce.pause(),L.isPressed=!0,e=_c(e),pe=me=0,L.startX=L.x=e.clientX,L.startY=L.y=e.clientY,L._vx.reset(),L._vy.reset(),ac(j?i:R,Js[1],ke,he,!0),L.deltaX=L.deltaY=0,g&&g(L))},je=L.onRelease=function(e){if(!Te(e,1)){oc(j?i:R,Js[1],ke,!0);var t=!isNaN(L.y-L.startY),n=L.isDragging,r=n&&(Math.abs(L.x-L.startX)>3||Math.abs(L.y-L.startY)>3),a=_c(e);!r&&t&&(L._vx.reset(),L._vy.reset(),s&&oe&&Ls.delayedCall(.08,function(){if(ec()-Ce>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(R.createEvent){var t=R.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,zs,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),L.isDragging=L.isGesturing=L.isPressed=!1,c&&n&&!j&&ce.restart(!0),le&&Ee(),m&&n&&m(L),_&&_(L,r)}},V=function(e){return e.touches&&e.touches.length>1&&(L.isGesturing=!0)&&M(e,L.isDragging)},Me=function(){return(L.isGesturing=!1)||ee(L)},Ne=function(e){if(!Te(e)){var t=ge(),n=_e();De((t-ve)*ie,(n-ye)*ie,1),ve=t,ye=n,c&&ce.restart(!0)}},Pe=function(e){if(!Te(e)){e=_c(e,s),N&&(I=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?zs.innerHeight:1)*d;De(e.deltaX*t,e.deltaY*t,0),c&&!j&&ce.restart(!0)}},Fe=function(e){if(!Te(e)){var t=e.clientX,n=e.clientY,r=t-L.x,i=n-L.y;L.x=t,L.y=n,ue=!0,c&&ce.restart(!0),(r||i)&&Oe(r,i)}},Ie=function(e){L.event=e,D(L)},Le=function(e){L.event=e,O(L)},Re=function(e){return Te(e)||_c(e,s)&&re(L)};ce=L._dc=Ls.delayedCall(l||.25,B).pause(),L.deltaX=L.deltaY=0,L._vx=gc(0,50,!0),L._vy=gc(0,50,!0),L.scrollX=ge,L.scrollY=_e,L.isDragging=L.isGesturing=L.isPressed=!1,Ys(this),L.enable=function(e){return L.isEnabled||(ac(xe?R:i,`scroll`,lc),r.indexOf(`scroll`)>=0&&ac(xe?R:i,`scroll`,Ne,he,ae),r.indexOf(`wheel`)>=0&&ac(i,`wheel`,Pe,he,ae),(r.indexOf(`touch`)>=0&&Us||r.indexOf(`pointer`)>=0)&&(ac(i,Js[0],Ae,he,ae),ac(R,Js[2],je),ac(R,Js[3],je),oe&&ac(i,`click`,we,!0,!0),re&&ac(i,`click`,Re),M&&ac(R,`gesturestart`,V),ee&&ac(R,`gestureend`,Me),D&&ac(i,Ws+`enter`,Ie),O&&ac(i,Ws+`leave`,Le),k&&ac(i,Ws+`move`,Fe)),L.isEnabled=!0,L.isDragging=L.isGesturing=L.isPressed=ue=le=!1,L._vx.reset(),L._vy.reset(),ve=ge(),ye=_e(),e&&e.type&&Ae(e),te&&te(L)),L},L.disable=function(){L.isEnabled&&(Qs.filter(function(e){return e!==L&&ic(e.target)}).length||oc(xe?R:i,`scroll`,lc),L.isPressed&&(L._vx.reset(),L._vy.reset(),oc(j?i:R,Js[1],ke,!0)),oc(xe?R:i,`scroll`,Ne,ae),oc(i,`wheel`,Pe,ae),oc(i,Js[0],Ae,ae),oc(R,Js[2],je),oc(R,Js[3],je),oc(i,`click`,we,!0),oc(i,`click`,Re),oc(R,`gesturestart`,V),oc(R,`gestureend`,Me),oc(i,Ws+`enter`,Ie),oc(i,Ws+`leave`,Le),oc(i,Ws+`move`,Fe),L.isEnabled=L.isPressed=L.isDragging=!1,ne&&ne(L))},L.kill=L.revert=function(){L.disable();var e=Qs.indexOf(L);e>=0&&Qs.splice(e,1),qs===L&&(qs=0)},Qs.push(L),j&&ic(i)&&(qs=L),L.enable(f)},Is(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();xc.version=`3.15.0`,xc.create=function(e){return new xc(e)},xc.register=bc,xc.getAll=function(){return Qs.slice()},xc.getById=function(e){return Qs.filter(function(t){return t.vars.id===e})[0]},Xs()&&Ls.registerPlugin(xc);var J,Sc,Y,X,Cc,Z,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc=1,$c=Date.now,el=$c(),tl=0,nl=0,rl=function(e,t,n){var r=yl(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},il=function(e,t){return t&&(!yl(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},al=function e(){return nl&&requestAnimationFrame(e)},ol=function(){return jc=1},sl=function(){return jc=0},cl=function(e){return e},ll=function(e){return Math.round(e*1e5)/1e5||0},ul=function(){return typeof window<`u`},dl=function(){return J||ul()&&(J=window.gsap)&&J.registerPlugin&&J},fl=function(e){return!!~wc.indexOf(e)},pl=function(e){return(e===`Height`?Jc:Y[`inner`+e])||Cc[`client`+e]||Z[`client`+e]},ml=function(e){return rc(e,`getBoundingClientRect`)||(fl(e)?function(){return Bu.width=Y.innerWidth,Bu.height=Jc,Bu}:function(){return Wl(e)})},hl=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=rc(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?pl(i):e[`client`+i])||0}},gl=function(e,t){return!t||~$s.indexOf(e)?ml(e):function(){return Bu}},_l=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=rc(e,n))?a()-ml(e)()[i]:fl(e)?(Cc[n]||Z[n])-pl(r):e[n]-e[`offset`+r])},vl=function(e,t){for(var n=0;n<Ic.length;n+=3)(!t||~t.indexOf(Ic[n+1]))&&e(Ic[n],Ic[n+1],Ic[n+2])},yl=function(e){return typeof e==`string`},bl=function(e){return typeof e==`function`},xl=function(e){return typeof e==`number`},Sl=function(e){return typeof e==`object`},Cl=function(e,t,n){return e&&e.progress(+!t)&&n&&e.pause()},wl=function(e,t,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e,n)}):t(e,n);
vendor: 10,197 bytes, line 9
9r&&r.totalTime&&(e.callbackAnimation=r)}},Tl=Math.abs,El=`left`,Dl=`top`,Ol=`right`,kl=`bottom`,Al=`width`,jl=`height`,Ml=`Right`,Nl=`Left`,Pl=`Top`,Fl=`Bottom`,Il=`padding`,Ll=`margin`,Rl=`Width`,zl=`Height`,Bl=`px`,Vl=function(e){return Y.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},Hl=function(e){var t=Vl(e).position;e.style.position=t===`absolute`||t===`fixed`?t:`relative`},Ul=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Wl=function(e,t){var n=t&&Vl(e)[Mc]!==`matrix(1, 0, 0, 1, 0, 0)`&&J.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return n&&n.progress(0).kill(),r},Gl=function(e,t){var n=t.d2;return e[`offset`+n]||e[`client`+n]||0},Kl=function(e){var t=[],n=e.labels,r=e.duration(),i;for(i in n)t.push(n[i]/r);return t},ql=function(e){return function(t){return J.utils.snap(Kl(e),t)}},Jl=function(e){var t=J.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return n?function(e,r,i){i===void 0&&(i=.001);var a;if(!r)return t(e);if(r>0){for(e-=i,a=0;a<n.length;a++)if(n[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)<i||a-n<0==r<0?a:t(r<0?n-e:n+e)}},Yl=function(e){return function(t,n){return Jl(Kl(e))(t,n.direction)}},Xl=function(e,t,n,r){return n.split(`,`).forEach(function(n){return e(t,n,r)})},Zl=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:!r,capture:!!i})},Ql=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},$l=function(e,t,n){n&&=n.wheelHandler,n&&(e(t,`wheel`,n),e(t,`touchmove`,n))},eu={startColor:`green`,endColor:`red`,indent:0,fontSize:`16px`,fontWeight:`normal`},tu={toggleActions:`play`,anticipatePin:0},nu={top:0,left:0,center:.5,bottom:1,right:1},ru=function(e,t){if(yl(e)){var n=e.indexOf(`=`),r=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf(`%`)>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in nu?nu[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},iu=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=X.createElement(`div`),m=fl(n)||rc(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?Z: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===fc?Ol:kl)+`:`+(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],au(p,0,r,_),p},au=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+Rl]=1,i[`border`+o+Rl]=0,i[n.p]=t+`px`,J.set(e,i)},Q=[],ou={},su,cu=function(){return $c()-tl>34&&(su||=requestAnimationFrame(ju))},lu=function(){(!Bc||!Bc.isPressed||Bc.startX>Z.clientWidth)&&(q.cache++,Bc?su||=requestAnimationFrame(ju):ju(),tl||hu(`scrollStart`),tl=$c())},uu=function(){Uc=Y.innerWidth,Hc=Y.innerHeight},du=function(e){q.cache++,(e===!0||!Ac&&!zc&&!X.fullscreenElement&&!X.webkitFullscreenElement&&(!Vc||Uc!==Y.innerWidth||Math.abs(Y.innerHeight-Hc)>Y.innerHeight*.25))&&Tc.restart(!0)},fu={},pu=[],mu=function e(){return Ql($,`scrollEnd`,e)||Du(!0)},hu=function(e){return fu[e]&&fu[e].map(function(e){return e()})||pu},gu=[],_u=function(e){for(var t=0;t<gu.length;t+=5)(!e||gu[t+4]&&gu[t+4].query===e)&&(gu[t].style.cssText=gu[t+1],gu[t].getBBox&&gu[t].setAttribute(`transform`,gu[t+2]||``),gu[t+3].uncache=1)},vu=function(){return q.forEach(function(e){return bl(e)&&++e.cacheID&&(e.rec=e())})},yu=function(e,t){var n;for(Nc=0;Nc<Q.length;Nc++)n=Q[Nc],n&&(!t||n._ctx===t)&&(e?n.kill(1):n.revert(!0,!0));Yc=!0,t&&_u(t),t||hu(`revert`)},bu=function(e,t){q.cache++,(t||!xu)&&q.forEach(function(e){return bl(e)&&e.cacheID++&&(e.rec=0)}),yl(e)&&(Y.history.scrollRestoration=Kc=e)},xu,Su=0,Cu,wu=function(){if(Cu!==Su){var e=Cu=Su;requestAnimationFrame(function(){return e===Su&&Du(!0)})}},Tu=function(){Z.appendChild(qc),Jc=!Bc&&qc.offsetHeight||Y.innerHeight,Z.removeChild(qc)},Eu=function(e){return Ec(`.gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end`).forEach(function(t){return t.style.display=e?`none`:`block`})},Du=function(e,t){if(Cc=X.documentElement,Z=X.body,wc=[Y,X,Cc,Z],tl&&!e&&!Yc){Zl($,`scrollEnd`,mu);return}Tu(),xu=$.isRefreshing=!0,Yc||vu();var n=hu(`refreshInit`);Lc&&$.sort(),t||yu(),q.forEach(function(e){bl(e)&&(e.smooth&&(e.target.style.scrollBehavior=`auto`),e(0))}),Q.slice(0).forEach(function(e){return e.refresh()}),Yc=!1,Q.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?`offsetWidth`:`offsetHeight`,n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}}),Xc=1,Eu(!0),Q.forEach(function(e){var t=_l(e.scroller,e._dir),n=e.vars.end===`max`||e._endClamp&&e.end>t,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)}),Eu(!1),Xc=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),q.forEach(function(e){bl(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),bu(Kc,1),Tc.pause(),Su++,xu=2,ju(2),Q.forEach(function(e){return bl(e.vars.onRefresh)&&e.vars.onRefresh(e)}),xu=$.isRefreshing=!1,hu(`refresh`)},Ou=0,ku=1,Au,ju=function(e){if(e===2||!xu&&!Yc){$.isUpdating=!0,Au&&Au.update(0);var t=Q.length,n=$c(),r=n-el>=50,i=t&&Q[0].scroll();if(ku=Ou>i?-1:1,xu||(Ou=i),r&&(tl&&!jc&&n-tl>200&&(tl=0,hu(`scrollEnd`)),Oc=el,el=n),ku<0){for(Nc=t;Nc-- >0;)Q[Nc]&&Q[Nc].update(0,r);ku=1}else for(Nc=0;Nc<t;Nc++)Q[Nc]&&Q[Nc].update(0,r);$.isUpdating=!1}su=0},Mu=[El,Dl,kl,Ol,Ll+Fl,Ll+Ml,Ll+Pl,Ll+Nl,`display`,`flexShrink`,`float`,`zIndex`,`gridColumnStart`,`gridColumnEnd`,`gridRowStart`,`gridRowEnd`,`gridArea`,`justifySelf`,`alignSelf`,`placeSelf`,`order`],Nu=Mu.concat([Al,jl,`boxSizing`,`max`+Rl,`max`+zl,`position`,Ll,Il,Il+Pl,Il+Ml,Il+Fl,Il+Nl]),Pu=function(e,t,n){Lu(n);var r=e._gsap;if(r.spacerIsNative)Lu(r.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1},Fu=function(e,t,n,r){if(!e._gsap.swappedIn){for(var i=Mu.length,a=t.style,o=e.style,s;i--;)s=Mu[i],a[s]=n[s];a.position=n.position===`absolute`?`absolute`:`relative`,n.display===`inline`&&(a.display=`inline-block`),o[kl]=o[Ol]=`auto`,a.flexBasis=n.flexBasis||`auto`,a.overflow=`visible`,a.boxSizing=`border-box`,a[Al]=Gl(e,dc)+Bl,a[jl]=Gl(e,fc)+Bl,a[Il]=o[Ll]=o[Dl]=o[El]=`0`,Lu(r),o[Al]=o[`max`+Rl]=n[Al],o[jl]=o[`max`+zl]=n[jl],o[Il]=n[Il],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Iu=/([A-Z])/g,Lu=function(e){if(e){var t=e.t.style,n=e.length,r=0,i,a;for((e.t._gsap||J.core.getCache(e.t)).uncache=1;r<n;r+=2)a=e[r+1],i=e[r],a?t[i]=a:t[i]&&t.removeProperty(i.replace(Iu,`-$1`).toLowerCase())}},Ru=function(e){for(var t=Nu.length,n=e.style,r=[],i=0;i<t;i++)r.push(Nu[i],n[Nu[i]]);return r.t=e,r},zu=function(e,t,n){for(var r=[],i=e.length,a=n?8:0,o;a<i;a+=2)o=e[a],r.push(o,o in t?t[o]:e[a+1]);return r.t=e.t,r},Bu={left:0,top:0},Vu=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){bl(e)&&(e=e(s)),yl(e)&&e.substr(0,3)===`max`&&(e=d+(e.charAt(4)===`=`?ru(`0`+e.substr(3),n):0));var m=f?f.time():0,h,g,_;if(f&&f.seek(0),isNaN(e)||(e=+e),xl(e))f&&(e=J.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,d,e)),o&&au(o,n,r,!0);else{bl(t)&&(t=t(s));var v=(e||`0`).split(` `),y,b,x,S;_=pc(t,s)||Z,y=Wl(_)||{},(!y||!y.left&&!y.top)&&Vl(_).display===`none`&&(S=_.style.display,_.style.display=`block`,y=Wl(_),S?_.style.display=S:_.style.removeProperty(`display`)),b=ru(v[0],y[r.d]),x=ru(v[1]||`0`,n),e=y[r.p]-c[r.p]-l+b+i-x,o&&au(o,x,r,n-x<20||o._isStart&&x>20),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,au(a,C,r,w&&C>20||!w&&(u?Math.max(Z[h],Cc[h]):a.parentNode[h])<=C+1),u&&(c=Wl(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+Bl))}return f&&_&&(h=Wl(_),f.seek(d),g=Wl(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},Hu=/(webkit|moz|length|cssText|inset)/i,Uu=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===Z){for(a in e._stOrig=i.cssText,o=Vl(e),o)!+a&&!Hu.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;J.core.getCache(e).uncache=1,t.appendChild(e)}},Wu=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}},Gu=function(e,t,n){var r={};r[t.p]=`+=`+n,J.set(e,r)},Ku=function(e,t){var n=hc(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=Wu(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(){q.cache++,t.tween&&ju()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=J.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Zl(e,`wheel`,n.wheelHandler),$.isTouch&&Zl(e,`touchmove`,n.wheelHandler),i},$=function(){function e(t,n){Sc||e.register(J)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),Gc(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),!nl){this.update=this.refresh=this.kill=cl;return}t=Ul(yl(t)||xl(t)||t.nodeType?{trigger:t}:t,tu);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.invali
vendor: 4,479 bytes, line 9
9dateOnRefresh,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?dc:fc,T=!l&&l!==0,E=pc(t.scroller||Y),D=J.core.getCache(E),O=fl(E),k=(`pinType`in t?t.pinType:rc(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:tu.markers,ee=O?0:parseFloat(Vl(E)[`border`+w.p2+Rl])||0,N=this,te=t.onRefreshInit&&function(){return t.onRefreshInit(N)},ne=hl(E,O,w),re=gl(E,O),ie=0,ae=0,oe=0,se=hc(E,w),P,F,ce,le,ue,I,de,fe,L,pe,me,he,ge,_e,ve,ye,be,xe,R,Se,z,Ce,we,Te,B,Ee,De,Oe,ke,Ae,je,V,Me,Ne,Pe,Fe,Ie,Le,Re;if(N._startClamp=N._endClamp=!1,N._dir=w,m*=45,N.scroller=E,N.scroll=x?x.time.bind(x):se,le=se(),N.vars=t,n||=t.animation,`refreshPriority`in t&&(Lc=1,t.refreshPriority===-9999&&(Au=N)),D.tweenScroll=D.tweenScroll||{top:Ku(E,fc),left:Ku(E,dc)},N.tweenTo=P=D.tweenScroll[w.p],N.scrubDuration=function(e){Me=xl(e)&&e,Me?V?V.duration(e):V=J.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:Me,paused:!0,onComplete:function(){return h&&h(N)}}):(V&&V.progress(1).kill(),V=0)},n&&(n.vars.lazy=!1,n._initted&&!N.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),N.animation=n.pause(),n.scrollTrigger=N,N.scrubDuration(l),Ae=0,o||=n.vars.id),v&&((!Sl(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in Z.style&&J.set(O?[Z,Cc]:E,{scrollBehavior:`auto`}),q.forEach(function(e){return bl(e)&&e.target===(O?X.scrollingElement||Cc:E)&&(e.smooth=!1)}),ce=bl(v.snapTo)?v.snapTo:v.snapTo===`labels`?ql(n):v.snapTo===`labelsDirectional`?Yl(n):v.directional===!1?J.utils.snap(v.snapTo):function(e,t){return Jl(v.snapTo)(e,$c()-ae<500?0:t.direction)},Ne=v.duration||{min:.1,max:2},Ne=Sl(Ne)?Dc(Ne.min,Ne.max):Dc(Ne,Ne),Pe=J.delayedCall(v.delay||Me/2||.1,function(){var e=se(),t=$c()-ae<500,r=P.tween;if((t||Math.abs(N.getVelocity())<10)&&!r&&!jc&&ie!==e){var i=(e-I)/_e,a=n&&!T?n.totalProgress():i,o=t?0:(a-je)/($c()-Oc)*1e3||0,s=J.utils.clamp(-i,1-i,Tl(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=ce(c,N),xl(l)||(l=c),u=Math.max(0,Math.round(I+l*_e)),e<=de&&e>=I&&u!==e){if(r&&!r._initted&&r.data<=Tl(u-e))return;v.inertia===!1&&(s=l-i),P(u,{duration:Ne(Tl(Math.max(Tl(c-a),Tl(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:Tl(u-e),onInterrupt:function(){return Pe.restart(!0)&&p&&wl(N,p)},onComplete:function(){N.update(),ie=se(),n&&!T&&(V?V.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Ae=je=n&&!T?n.totalProgress():N.progress,g&&g(N),m&&wl(N,m)}},e,s*_e,u-e-s*_e),f&&wl(N,f,P.tween)}}else N.isActive&&ie!==e&&Pe.restart(!0)}).pause()),o&&(ou[o]=N),u=N.trigger=pc(u||d!==!0&&d),Re=u&&u._gsap&&u._gsap.stRevert,Re&&=Re(N),d=d===!0?u:pc(d),yl(a)&&(a={targets:u,className:a}),d&&(f===!1||f===Ll||(f=!f&&d.parentNode&&d.parentNode.style&&Vl(d.parentNode).display===`flex`?!1:Il),N.pin=d,F=J.core.getCache(d),F.spacer?ve=F.pinState:(b&&(b=pc(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),F.spacerIsNative=!!b,b&&(F.spacerState=Ru(b))),F.spacer=xe=b||X.createElement(`div`),xe.classList.add(`pin-spacer`),o&&xe.classList.add(`pin-spacer-`+o),F.pinState=ve=Ru(d)),t.force3D!==!1&&J.set(d,{force3D:!0}),N.spacer=xe=F.spacer,ke=Vl(d),Te=ke[f+w.os2],Se=J.getProperty(d),z=J.quickSetter(d,w.a,Bl),Fu(d,xe,ke),be=Ru(d)),M){he=Sl(M)?Ul(M,eu):eu,pe=iu(`scroller-start`,o,E,w,he,0),me=iu(`scroller-end`,o,E,w,he,0,pe),R=pe[`offset`+w.op.d2];var ze=pc(rc(E,`content`)||E);fe=this.markerStart=iu(`start`,o,ze,w,he,R,0,x),L=this.markerEnd=iu(`end`,o,ze,w,he,R,0,x),x&&(Le=J.quickSetter([fe,L],w.a,Bl)),!k&&!($s.length&&rc(E,`fixedMarkers`)===!0)&&(Hl(O?Z:E),J.set([pe,me],{force3D:!0}),Ee=J.quickSetter(pe,w.a,Bl),Oe=J.quickSetter(me,w.a,Bl))}if(x){var Be=x.vars.onUpdate,Ve=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){N.update(0,0,1),Be&&Be.apply(x,Ve||[])})}if(N.previous=function(){return Q[Q.indexOf(N)-1]},N.next=function(){return Q[Q.indexOf(N)+1]},N.revert=function(e,t){if(!t)return N.kill(!0);var r=e!==!1||!N.enabled,i=Ac;r!==N.isReverted&&(r&&(Fe=Math.max(se(),N.scroll.rec||0),oe=N.progress,Ie=n&&n.progress()),fe&&[fe,L,pe,me].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(Ac=N,N.update(r)),d&&(!y||!N.isActive)&&(r?Pu(d,xe,ve):Fu(d,xe,Vl(d),B)),r||N.update(r),Ac=i,N.isReverted=r)}
vendor: 5,101 bytes, line 9
9,N.refresh=function(r,i,a,o){if(!((Ac||!N.enabled)&&!i)){if(d&&r&&tl){Zl(e,`scrollEnd`,mu);return}!xu&&te&&te(N),Ac=N,P.tween&&!a&&(P.tween.kill(),P.tween=0),V&&V.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)),N.isReverted||N.revert(!0,!0),N._subPinOffset=!1;var s=ne(),l=re(),m=x?x.duration():_l(E,w),h=_e<=.01||!_e,g=0,_=o||0,v=Sl(a)?a.end:t.end,b=t.endTrigger||u,S=Sl(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=N.pinnedContainer=t.pinnedContainer&&pc(t.pinnedContainer,N),D=u&&Math.max(0,Q.indexOf(N))||0,A=D,j,F,ce,he,R,z,Te,Ee,Oe,ke,Ae,je,Me;for(M&&Sl(a)&&(je=J.getProperty(pe,w.p),Me=J.getProperty(me,w.p));A-- >0;)z=Q[A],z.end||z.refresh(0,1)||(Ac=N),Te=z.pin,Te&&(Te===u||Te===d||Te===C)&&!z.isReverted&&(ke||=[],ke.unshift(z),z.revert(!0,!0)),z!==Q[A]&&(D--,A--);for(bl(S)&&(S=S(N)),S=rl(S,`start`,N),I=Vu(S,u,s,w,se(),fe,pe,N,l,ee,k,m,x,N._startClamp&&`_startClamp`)||(d?-.001:0),bl(v)&&(v=v(N)),yl(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(yl(S)?S.split(` `)[0]:``)+v:(g=ru(v.substr(2),s),v=yl(S)?S:(x?J.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,I):I)+g,b=u)),v=rl(v,`end`,N),de=Math.max(I,Vu(v||(b?`100% 0`:m),b,s,w,se()+g,L,me,N,l,ee,k,m,x,N._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)z=Q[A]||{},Te=z.pin,Te&&z.start-z._pinPush<=I&&!x&&z.end>0&&(j=z.end-(N._startClamp?Math.max(0,z.start):z.start),(Te===u&&z.start-z._pinPush<I||Te===C)&&isNaN(S)&&(g+=j*(1-z.progress)),Te===d&&(_+=j));if(I+=g,de+=g,N._startClamp&&(N._startClamp+=g),N._endClamp&&!xu&&(N._endClamp=de||-.001,de=Math.min(de,_l(E,w))),_e=de-I||(I-=.01)&&.001,h&&(oe=J.utils.clamp(0,1,J.utils.normalize(I,de,Fe))),N._pinPush=_,fe&&g&&(j={},j[w.a]=`+=`+g,C&&(j[w.p]=`-=`+se()),J.set([fe,L],j)),d&&!(Xc&&N.end>=_l(E,w)))j=Vl(d),he=w===fc,ce=se(),Ce=parseFloat(Se(w.a))+_,!m&&de>1&&(Ae=(O?X.scrollingElement||Cc:E).style,Ae={style:Ae,value:Ae[`overflow`+w.a.toUpperCase()]},O&&Vl(Z)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Ae.style[`overflow`+w.a.toUpperCase()]=`scroll`)),Fu(d,xe,j),be=Ru(d),F=Wl(d,!0),Ee=k&&hc(E,he?dc:fc)(),f?(B=[f+w.os2,_e+_+Bl],B.t=xe,A=f===Il?Gl(d,w)+_e+_:0,A&&(B.push(w.d,A+Bl),xe.style.flexBasis!==`auto`&&(xe.style.flexBasis=A+Bl)),Lu(B),C&&Q.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&se(Fe)):(A=Gl(d,w),A&&xe.style.flexBasis!==`auto`&&(xe.style.flexBasis=A+Bl)),k&&(R={top:F.top+(he?ce-I:Ee)+Bl,left:F.left+(he?Ee:ce-I)+Bl,boxSizing:`border-box`,position:`fixed`},R[Al]=R[`max`+Rl]=Math.ceil(F.width)+Bl,R[jl]=R[`max`+zl]=Math.ceil(F.height)+Bl,R[Ll]=R[Ll+Pl]=R[Ll+Ml]=R[Ll+Fl]=R[Ll+Nl]=`0`,R[Il]=j[Il],R[Il+Pl]=j[Il+Pl],R[Il+Ml]=j[Il+Ml],R[Il+Fl]=j[Il+Fl],R[Il+Nl]=j[Il+Nl],ye=zu(ve,R,y),xu&&se(0)),n?(Oe=n._initted,Rc(1),n.render(n.duration(),!0,!0),we=Se(w.a)-Ce+_e+_,De=Math.abs(_e-we)>1,k&&De&&ye.splice(ye.length-2,2),n.render(0,!0,!0),Oe||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Rc(0)):we=_e,Ae&&(Ae.value?Ae.style[`overflow`+w.a.toUpperCase()]=Ae.value:Ae.style.removeProperty(`overflow-`+w.a));else if(u&&se()&&!x)for(F=u.parentNode;F&&F!==Z;)F._pinOffset&&(I-=F._pinOffset,de-=F._pinOffset),F=F.parentNode;ke&&ke.forEach(function(e){return e.revert(!1,!0)}),N.start=I,N.end=de,le=ue=xu?Fe:se(),!x&&!xu&&(le<Fe&&se(Fe),N.scroll.rec=0),N.revert(!1,!0),ae=$c(),Pe&&(ie=-1,Pe.restart(!0)),Ac=0,n&&T&&(n._initted||Ie)&&n.progress()!==Ie&&n.progress(Ie||0,!0).render(n.time(),!0,!0),(h||oe!==N.progress||x||p||n&&!n._initted)&&(n&&!T&&(n._initted||oe||n.vars.immediateRender!==!1)&&n.totalProgress(x&&I<-.001&&!oe?J.utils.normalize(I,de,0):oe,!0),N.progress=h||(le-I)/_e===oe?0:oe),d&&f&&(xe._pinOffset=Math.round(N.progress*we)),V&&V.invalidate(),isNaN(je)||(je-=J.getProperty(pe,w.p),Me-=J.getProperty(me,w.p),Gu(pe,w,je),Gu(fe,w,je-(o||0)),Gu(me,w,Me),Gu(L,w,Me-(o||0))),h&&!xu&&N.update(),c&&!xu&&!ge&&(ge=!0,c(N),ge=!1)}},N.getVelocity=function(){return(se()-ue)/($c()-Oc)*1e3||0},N.endAnimation=function(){Cl(N.callbackAnimation),n&&(V?V.progress(1):n.paused()?T||Cl(n,N.direction<0,1):Cl(n,n.reversed()))},N.labelToScroll=function(e){return n&&n.labels&&(I||N.refresh()||I)+n.labels[e]/n.duration()*_e||0},N.getTrailing=function(e){var t=Q.indexOf(N),n=N.direction>0?Q.slice(0,t).reverse():Q.slice(t+1);return(yl(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return N.direction>0?e.end<=I:e.start>=de})},N.update=function(e,t,r){if(!(x&&!r&&!e)){var o=xu===!0?Fe:N.scroll(),c=e?0:(o-I)/_e,u=c<0?0:c>1?1:c||0,p=N.progress,h,g,b,D,O,M,ee,te;if(t&&(ue=le,le=x?se():o,v&&(je=Ae,Ae=n&&!T?n.totalProgress():u)),m&&d&&!Ac&&!Qc&&tl&&(!u&&I<o+(o-ue)/($c()-Oc)*m?u=1e-4:u===1&&de>o+(o-ue)/($c()-Oc)*m&&(u=.9999)),u!==p&&N.enabled){if(h=N.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,N.direction=u>p?1:-1,N.progress=u,O&&!Ac&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],te=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||te)&&(te||l||!n)&&(bl(C)?C(N):N.getTrailing(C).forEac
vendor: 4,994 bytes, line 9
9h(function(e){return e.endAnimation()})),T||(V&&!Ac&&!Qc?(V._dp._time-V._start!==V._time&&V.render(V._dp._time-V._start),V.resetTo?V.resetTo(`totalProgress`,u,n._tTime/n._tDur):(V.vars.totalProgress=u,V.invalidate().restart())):n&&n.totalProgress(u,!!(Ac&&(ae||e)))),d){if(e&&f&&(xe.style[f+w.os2]=Te),!k)z(ll(Ce+we*u));else if(O){if(ee=!e&&u>p&&de+1>o&&o+1>=_l(E,w),y)if(!e&&(h||ee)){var ne=Wl(d,!0),re=o-I;Uu(d,Z,ne.top+(w===fc?re:0)+Bl,ne.left+(w===fc?0:re)+Bl)}else Uu(d,xe);Lu(h||ee?ye:be),De&&u<1&&h||z(Ce+(u===1&&!ee?we:0))}}v&&!P.tween&&!Ac&&!Qc&&Pe.restart(!0),a&&(M||_&&u&&(u<1||!Zc))&&Ec(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(N),O&&!Ac?(T&&(te&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(N)),(M||!Zc)&&(s&&M&&wl(N,s),A[b]&&wl(N,A[b]),_&&(u===1?N.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&wl(N,A[b]))),S&&!h&&Math.abs(N.getVelocity())>(xl(S)?S:2500)&&(Cl(N.callbackAnimation),V?V.progress(1):Cl(n,D===`reverse`?1:!u,1))):T&&i&&!Ac&&i(N)}if(Oe){var ie=x?o/x.duration()*(x._caScrollDist||0):o;Ee(ie+ +!!pe._isFlipped),Oe(ie)}Le&&Le(-o/x.duration()*(x._caScrollDist||0))}},N.enable=function(t,n){N.enabled||(N.enabled=!0,Zl(E,`resize`,du),O||Zl(E,`scroll`,lu),te&&Zl(e,`refreshInit`,te),t!==!1&&(N.progress=oe=0,le=ue=ie=se()),n!==!1&&N.refresh())},N.getTween=function(e){return e&&P?P.tween:V},N.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}N.refresh(!1,!1,{start:il(e,n&&!!N._startClamp),end:il(t,n&&!!N._endClamp)},r),N.update()},N.adjustPinSpacing=function(e){if(B&&e){var t=B.indexOf(w.d)+1;B[t]=parseFloat(B[t])+e+Bl,B[1]=parseFloat(B[1])+e+Bl,Lu(B)}},N.disable=function(t,n){if(t!==!1&&N.revert(!0,!0),N.enabled&&(N.enabled=N.isActive=!1,n||V&&V.pause(),Fe=0,F&&(F.uncache=1),te&&Ql(e,`refreshInit`,te),Pe&&(Pe.pause(),P.tween&&P.tween.kill()&&(P.tween=0)),!O)){for(var r=Q.length;r--;)if(Q[r].scroller===E&&Q[r]!==N)return;Ql(E,`resize`,du),O||Ql(E,`scroll`,lu)}},N.kill=function(e,r){N.disable(e,r),V&&!r&&V.kill(),o&&delete ou[o];var i=Q.indexOf(N);i>=0&&Q.splice(i,1),i===Nc&&ku>0&&Nc--,i=0,Q.forEach(function(e){return e.scroller===N.scroller&&(i=1)}),i||xu||(N.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),fe&&[fe,L,pe,me].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),Au===N&&(Au=0),d&&(F&&(F.uncache=1),i=0,Q.forEach(function(e){return e.pin===d&&i++}),i||(F.spacer=0)),t.onKill&&t.onKill(N)},Q.push(N),N.enable(!1,!1),Re&&Re(N),n&&n.add&&!_e){var He=N.update;N.update=function(){N.update=He,q.cache++,I||de||N.refresh()},J.delayedCall(.01,N.update),_e=.01,I=de=0}else N.refresh();d&&wu()},e.register=function(t){return Sc||=(J=t||dl(),ul()&&window.document&&e.enable(),nl),Sc},e.defaults=function(e){if(e)for(var t in e)tu[t]=e[t];return tu},e.disable=function(e,t){nl=0,Q.forEach(function(n){return n[t?`kill`:`disable`](e)}),Ql(Y,`wheel`,lu),Ql(X,`scroll`,lu),clearInterval(kc),Ql(X,`touchcancel`,cl),Ql(Z,`touchstart`,cl),Xl(Ql,X,`pointerdown,touchstart,mousedown`,ol),Xl(Ql,X,`pointerup,touchend,mouseup`,sl),Tc.kill(),vl(Ql);for(var n=0;n<q.length;n+=3)$l(Ql,q[n],q[n+1]),$l(Ql,q[n],q[n+2])},e.enable=function(){if(Y=window,X=document,Cc=X.documentElement,Z=X.body,J)if(Ec=J.utils.toArray,Dc=J.utils.clamp,Gc=J.core.context||cl,Rc=J.core.suppressOverwrites||cl,Kc=Y.history.scrollRestoration||`auto`,Ou=Y.pageYOffset||0,J.core.globals(`ScrollTrigger`,e),Z){nl=1,qc=document.createElement(`div`),qc.style.height=`100vh`,qc.style.position=`absolute`,Tu(),al(),xc.register(J),e.isTouch=xc.isTouch,Wc=xc.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Vc=xc.isTouch===1,Zl(Y,`wheel`,lu),wc=[Y,X,Cc,Z],J.matchMedia?(e.matchMedia=function(e){var t=J.matchMedia(),n;for(n in e)t.add(n,e[n]);return t},J.addEventListener(`matchMediaInit`,function(){vu(),yu()}),J.addEventListener(`matchMediaRevert`,function(){return _u()}),J.addEventListener(`matchMedia`,function(){Du(0,1),hu(`matchMedia`)}),J.matchMedia().add(`(orientation: portrait)`,function(){return uu(),uu})):console.warn(`Requires GSAP 3.11.0 or later`),uu(),Zl(X,`scroll`,lu);var t=Z.hasAttribute(`style`),n=Z.style,r=n.borderTopStyle,i=J.core.Animation.prototype,a,o;for(i.revert||Object.defineProperty(i,`revert`,{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle=`solid`,a=Wl(Z),fc.m=Math.round(a.top+fc.sc())||0,dc.m=Math.round(a.left+dc.sc())||0,r?n.borderTopStyle=r:n.removeProperty(`border-top-style`),t||(Z.setAttribute(`style`,``),Z.removeAttribute(`style`)),kc=setInterval(cu,250),J.delayedCall(.5,function(){return Qc=0}),Zl(X,`touchcancel`,cl),Zl(Z,`touchstart`,cl),Xl(Zl,X,`pointerdown,touchstart,mousedown`,ol),Xl(Zl,X,`pointerup,touchend,mouseup`,sl),Mc=J.utils.checkPrefix(`transform`),Nu.push(Mc),Sc=$c(),Tc=J.delayedCall(.2,Du).pause(),Ic=[X,`visibilitychange`,function(){var e=Y.innerWidth,t=Y.innerHe
vendor: 4,451 bytes, line 9
9ight;X.hidden?(Pc=e,Fc=t):(Pc!==e||Fc!==t)&&du()},X,`DOMContentLoaded`,Du,Y,`load`,Du,Y,`resize`,du],vl(Zl),Q.forEach(function(e){return e.enable(0,1)}),o=0;o<q.length;o+=3)$l(Ql,q[o],q[o+1]),$l(Ql,q[o],q[o+2])}else X&&X.addEventListener(`DOMContentLoaded`,function t(){e.enable(),X.removeEventListener(`DOMContentLoaded`,t)})},e.config=function(t){`limitCallbacks`in t&&(Zc=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(kc)||(kc=n)&&setInterval(cu,n),`ignoreMobileResize`in t&&(Vc=e.isTouch===1&&t.ignoreMobileResize),`autoRefreshEvents`in t&&(vl(Ql)||vl(Zl,t.autoRefreshEvents||`none`),zc=(t.autoRefreshEvents+``).indexOf(`resize`)===-1)},e.scrollerProxy=function(e,t){var n=pc(e),r=q.indexOf(n),i=fl(n);~r&&q.splice(r,i?6:2),t&&(i?$s.unshift(Y,t,Z,t,Cc,t):$s.unshift(n,t))},e.clearMatchMedia=function(e){Q.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,n){var r=(yl(e)?pc(e):e).getBoundingClientRect(),i=r[n?Al:jl]*t||0;return n?r.right-i>0&&r.left+i<Y.innerWidth:r.bottom-i>0&&r.top+i<Y.innerHeight},e.positionInViewport=function(e,t,n){yl(e)&&(e=pc(e));var r=e.getBoundingClientRect(),i=r[n?Al:jl],a=t==null?i/2:t in nu?nu[t]*i:~t.indexOf(`%`)?parseFloat(t)*i/100:parseFloat(t)||0;return n?(r.left+a)/Y.innerWidth:(r.top+a)/Y.innerHeight},e.killAll=function(e){if(Q.slice(0).forEach(function(e){return e.vars.id!==`ScrollSmoother`&&e.kill()}),e!==!0){var t=fu.killAll||[];fu={},t.forEach(function(e){return e()})}},e}();$.version=`3.15.0`,$.saveStyles=function(e){return e?Ec(e).forEach(function(e){if(e&&e.style){var t=gu.indexOf(e);t>=0&&gu.splice(t,5),gu.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),J.core.getCache(e),Gc())}}):gu},$.revert=function(e,t){return yu(!e,t)},$.create=function(e,t){return new $(e,t)},$.refresh=function(e){return e?du(!0):(Sc||$.register())&&Du(!0)},$.update=function(e){return++q.cache&&ju(e===!0?2:0)},$.clearScrollMemory=bu,$.maxScroll=function(e,t){return _l(e,t?dc:fc)},$.getScrollFunc=function(e,t){return hc(pc(e),t?dc:fc)},$.getById=function(e){return ou[e]},$.getAll=function(){return Q.filter(function(e){return e.vars.id!==`ScrollSmoother`})},$.isScrolling=function(){return!!tl},$.snapDirectional=Jl,$.addEventListener=function(e,t){var n=fu[e]||(fu[e]=[]);~n.indexOf(t)||n.push(t)},$.removeEventListener=function(e,t){var n=fu[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},$.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=J.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`&&bl(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return bl(a)&&(a=a(),Zl($,`refresh`,function(){return a=t.batchMax()})),Ec(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push($.create(t))}),n};var qu=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},Ju=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(xc.isTouch?` pinch-zoom`:``):`none`,t===Cc&&e(Z,n)},Yu={auto:1,scroll:1},Xu=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||J.core.getCache(i),o=$c(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==Z&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(Yu[(s=Vl(i)).overflowY]||Yu[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!fl(i)&&(Yu[(s=Vl(i)).overflowY]||Yu[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},Zu=function(e,t,n,r){return xc.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=Xu,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&Zl(X,xc.eventTypes[0],ed,!1,!0)},onDisable:function(){return Ql(X,xc.eventTypes[0],ed,!0)}})},Qu=/(input|label|select|textarea)/i,$u,ed=function(e){var t=Qu.test(e.target.tagName);(t||$u)&&(e._gsapAllow=!0,$u=t)},td=function(e){Sl(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=pc(e.target)||Cc,l=J.core.globals().ScrollSmoother,u=l&&l.get(),d=Wc&&(e.content&&pc(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=hc(c,fc),p=hc(c,dc),m=1,h=(xc.isTouch&&Y.visualVie
9wport?Y.visualViewport.scale*Y.visualViewport.width:Y.outerWidth)/Y.innerWidth,g=0,_=bl(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=Zu(c,e.type,!0,i),x=function(){return y=!1},S=cl,C=cl,w=function(){s=_l(c,fc),C=Dc(+!!Wc,s),n&&(S=Dc(0,_l(c,dc))),v=Su},T=function(){d._gsap.y=ll(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=ll(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=ll((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=q.cache,ju()}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&&J.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return Wc&&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=ll((Y.visualViewport&&Y.visualViewport.scale||1)/h),D.pause(),e!==m&&Ju(c,m>1.01?!0:n?!1:`x`),O=p(),k=f(),w(),v=Su},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{q.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=qu(p,i,o,_l(c,dc)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=qu(f,i,o,_l(c,fc)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(Wc&&D.vars.scrollY>=s||i>=s-1)&&J.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),$c()-g>1e3&&(v=0,g=$c())},e.onChange=function(e,t,r,i,a){if(Su!==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)&&ju()},e.onEnable=function(){Ju(c,n?!1:`x`),$.addEventListener(`refresh`,j),Zl(Y,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){Ju(c,!0),Ql(Y,`resize`,j),$.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new xc(e),o.iOS=Wc,Wc&&!f()&&f(1),Wc&&J.ticker.add(cl),A=o._dc,D=J.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:Wu(f,f(),function(){return D.pause()})},onUpdate:ju,onComplete:A.vars.onComplete}),o};$.sort=function(e){if(bl(e))return Q.sort(e);var t=Y.pageYOffset||0;return $.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Y.innerHeight}),Q.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)})},$.observe=function(e){return new xc(e)},$.normalizeScroll=function(e){if(e===void 0)return Bc;if(e===!0&&Bc)return Bc.enable();if(e===!1){Bc&&Bc.kill(),Bc=e;return}var t=e instanceof xc?e:td(e);return Bc&&Bc.target===t.target&&Bc.kill(),fl(t.target)&&(Bc=t),t},$.core={_getVelocityProp:gc,_inputObserver:Zu,_scrollers:q,_proxies:$s,bridge:{ss:function(){tl||hu(`scrollStart`),tl=$c()},ref:function(){return Ac}}},dl()&&J.registerPlugin($);var nd=typeof document<`u`?H.useLayoutEffect:H.useEffect,rd=e=>e&&!Array.isArray(e)&&typeof e==`object`,id=[],ad={},od=Ps,sd=(e,t=id)=>{let n=ad;rd(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:id):rd(t)&&(n=t,t=`dependencies`in n?n.dependencies:id),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,H.useRef)(!1),o=(0,H.useRef)(od.context(()=>{},r)),s=(0,H.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&nd(()=>(a.current=!0,()=>o.current.revert()),id),nd(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};sd.register=e=>{od=e},sd.headless=!0,typeof window<`u`&&Ps.registerPlugin($);var cd=()=>typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;function ld({children:e,className:t,y:n=28,delay:r=0,duration:i=.7,stagger:a,start:o=`top 95%`,id:s}){let c=(0,H.useRef)(null);return sd(()=>
9{if(cd())return;let e=c.current;if(!e)return;let t=a==null?e:Array.from(e.children);Ps.from(t,{y:n,opacity:0,duration:i,delay:r,ease:`power3.out`,stagger:a??0,scrollTrigger:{trigger:e,start:o,once:!0}})},{scope:c}),(0,U.jsx)(`div`,{ref:c,id:s,className:P(t),children:e})}function ud(){let{t:e}=ne(),t=e(`landing.preview.tabs`,{returnObjects:!0})??[],n=(0,H.useRef)(null),r=(0,H.useRef)(null);return sd(()=>{let e=n.current,t=r.current;!e||!t||Ps.matchMedia().add(`(min-width: 768px) and (prefers-reduced-motion: no-preference)`,()=>{let n=()=>t.scrollWidth-window.innerWidth,r=Ps.to(t,{x:()=>-n(),ease:`none`,scrollTrigger:{trigger:e,start:`top top`,end:`bottom bottom`,scrub:.6,invalidateOnRefresh:!0}}),i=Ps.fromTo(`.dp-progress`,{scaleX:0},{scaleX:1,ease:`none`,scrollTrigger:{trigger:e,start:`top top`,end:`bottom bottom`,scrub:.6}});return()=>{r.kill(),i.kill()}})},{scope:n}),(0,U.jsxs)(`section`,{id:`preview`,className:`relative`,children:[(0,U.jsxs)(ld,{className:`mx-auto max-w-7xl px-6 pb-2 pt-24 md:px-10 md:pb-6 md:pt-32`,children:[(0,U.jsx)(`h2`,{className:`text-foreground text-4xl font-bold tracking-tight md:text-5xl`,children:e(`landing.preview.title`)}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-4 max-w-2xl text-base leading-relaxed md:text-lg`,children:e(`landing.preview.subtitle`)})]}),(0,U.jsx)(`div`,{ref:n,className:`md:h-[360vh] motion-reduce:md:h-auto`,children:(0,U.jsxs)(`div`,{className:`flex flex-col gap-12 py-6 md:sticky md:top-0 md:h-screen md:justify-center md:gap-0 md:overflow-hidden md:py-0 motion-reduce:md:static motion-reduce:md:h-auto motion-reduce:md:gap-12 motion-reduce:md:overflow-visible motion-reduce:md:py-6`,children:[(0,U.jsx)(`div`,{ref:r,className:`flex flex-col gap-12 md:flex-row md:flex-nowrap md:gap-0 motion-reduce:md:flex-col motion-reduce:md:gap-12`,children:t.map((e,n)=>(0,U.jsx)(`div`,{className:`flex w-full shrink-0 items-center md:h-screen md:w-screen motion-reduce:md:h-auto motion-reduce:md:w-full`,children:(0,U.jsxs)(`div`,{className:`mx-auto grid w-full max-w-7xl items-center gap-8 px-6 md:grid-cols-12 md:gap-10 md:px-10`,children:[(0,U.jsxs)(`div`,{className:`min-w-0 md:col-span-4`,children:[(0,U.jsxs)(`span`,{className:`text-primary font-mono text-sm font-semibold`,children:[String(n+1).padStart(2,`0`),` / `,String(t.length).padStart(2,`0`)]}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-3 text-xs uppercase tracking-[0.22em]`,children:e.label}),(0,U.jsx)(`p`,{className:`text-foreground mt-3 text-xl font-medium leading-snug md:text-2xl`,children:e.description})]}),(0,U.jsxs)(`div`,{className:`min-w-0 md:col-span-8`,children:[(0,U.jsx)(`div`,{className:`md:hidden`,children:(0,U.jsx)(Pt,{url:`apexkit.dev/dashboard/${e.key}`,children:(0,U.jsx)(dn,{variant:e.key})})}),(0,U.jsx)(`div`,{className:`hidden md:block`,children:(0,U.jsx)(On,{children:(0,U.jsx)(Pt,{url:`apexkit.dev/dashboard/${e.key}`,children:(0,U.jsx)(Lt,{variant:e.key})})})})]})]})},e.key))}),(0,U.jsx)(`div`,{className:`bg-border absolute bottom-0 left-0 hidden h-0.5 w-full md:block`,children:(0,U.jsx)(`div`,{className:`dp-progress bg-primary h-full w-full origin-left`})})]})})]})}function dd(){let{t:e}=ne(),t=e(`landing.faq.items`,{returnObjects:!0})??[];return(0,U.jsx)(`section`,{className:`relative py-24 md:py-32`,children:(0,U.jsxs)(`div`,{className:`mx-auto grid max-w-7xl gap-12 px-6 md:grid-cols-12 md:px-10`,children:[(0,U.jsx)(ld,{className:`md:col-span-5`,children:(0,U.jsx)(`h2`,{className:`text-foreground text-4xl font-bold tracking-tight md:text-5xl`,children:e(`landing.faq.title`)})}),(0,U.jsx)(ld,{className:`md:col-span-7`,children:(0,U.jsx)(_,{type:`single`,collapsible:!0,className:`w-full`,children:t.map((e,t)=>(0,U.jsxs)(g,{value:`item-${t}`,className:`border-border`,children:[(0,U.jsx)(m,{className:`text-foreground text-left text-base font-medium hover:no-underline md:text-lg`,children:e.q}),(0,U.jsx)(h,{className:`text-muted-foreground text-sm leading-relaxed md:text-base`,children:e.a})]},e.q))})})]})})}var fd=[{key:`auth`,icon:Ve,illustration:_d,span:`sm:col-span-2 lg:col-span-7`,big:!0},{key:`multitenant`,icon:M,illustration:yd,span:`lg:col-span-5`},{key:`billing`,icon:ae,illustration:xd,span:`lg:col-span-3`},{key:`blog`,icon:re,illustration:Cd,span:`lg:col-span-3`},{key:`rbac`,icon:A,illustration:Dd,span:`lg:col-span-3`},{key:`i18nPwa`,icon:se,illustration:kd,span:`sm:col-span-2 lg:col-span-3`}];function pd({id:e}){let{t}=ne();return(0,U.jsx)(`section`,{id:e,className:`relative py-24 md:py-32`,children:(0,U.jsxs)(`div`,{className:`mx-auto max-w-7xl px-6 md:px-10`,children:[(0,U.jsxs)(ld,{className:`max-w-2xl`,children:[(0,U.jsx)(`h2`,{className:`text-foreground text-3xl font-bold tracking-tight md:text-4xl`,children:t(`landing.features.title`)}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-3 text-sm leading-relaxed md:text-base`,children:t(`landing.features.subtitle`)})]}),(0,U.jsx)(`div`,{className:`mt-14 grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-12`,children:fd.map((e,t)=>(0,U.jsx)(md,{feature:e,index:t},e.key))})]})})}function md({feature:e,index:t}){let{t:n}=ne(),r=at(),i=(0,H.useRef)(null),a=Nt(i,{margin:`-80px`}
9)&&!r,o=n(`landing.features.items.${e.key}`,{returnObjects:!0}),s=e.icon,c=e.illustration;return(0,U.jsxs)(B.article,{ref:i,initial:r?!1:{opacity:0,y:28},whileInView:r?void 0:{opacity:1,y:0},whileHover:r?void 0:{y:-6,transition:{duration:.2}},viewport:{once:!0,margin:`0px 0px 80px 0px`},transition:{duration:.5,ease:[.16,1,.3,1],delay:t%3*.05},className:P(`border-border bg-card hover:border-foreground/25 relative isolate flex min-h-[17rem] flex-col gap-4 overflow-hidden rounded-xl border p-6 transition-colors duration-300 lg:min-h-0`,e.span),children:[(0,U.jsx)(`span`,{className:`pointer-events-none absolute inset-x-0 top-0 -z-10 h-px bg-gradient-to-r from-transparent via-white/15 to-transparent`}),e.big?(0,U.jsx)(`span`,{className:`pointer-events-none absolute -right-24 -top-24 -z-10 size-72 rounded-full opacity-30 blur-3xl`,style:{background:`radial-gradient(circle at center, var(--glow-indigo), transparent 70%)`}}):null,(0,U.jsxs)(`header`,{className:`flex flex-col gap-2.5`,children:[(0,U.jsx)(`span`,{className:`from-primary text-primary-foreground shadow-primary/30 flex size-9 items-center justify-center rounded-md bg-gradient-to-br to-[var(--accent-sky)] shadow-lg ring-1 ring-inset ring-white/15`,children:(0,U.jsx)(s,{className:`size-4`})}),(0,U.jsx)(`h3`,{className:P(`text-foreground font-semibold tracking-tight`,e.big?`text-xl md:text-2xl`:`text-base`),children:o.title}),(0,U.jsx)(`p`,{className:P(`text-muted-foreground leading-relaxed`,e.big?`max-w-md text-sm`:`line-clamp-2 text-[13px]`),children:o.description})]}),(0,U.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,U.jsx)(c,{active:a})}),e.big?(0,U.jsx)(`ul`,{className:`flex flex-wrap gap-x-5 gap-y-1.5`,children:o.bullets.map(e=>(0,U.jsxs)(`li`,{className:`text-muted-foreground flex items-center gap-1.5 text-xs`,children:[(0,U.jsx)(N,{className:`text-primary size-3.5 shrink-0`}),(0,U.jsx)(`span`,{children:e})]},e))}):null]})}function hd({className:e,children:t}){return(0,U.jsx)(`div`,{className:P(`border-border bg-background flex h-full min-h-[9.5rem] flex-col justify-center gap-3 rounded-lg border p-4`,e),children:t})}var gd=[`7`,`2`,`9`,`4`,`6`,`1`];function _d({active:t}){let[n,r]=(0,H.useState)(7),i=(0,H.useRef)(7);(0,H.useEffect)(()=>{if(!t)return;i.current=-1;let e,n=()=>{let t=i.current>=7?0:i.current+1;i.current=t,r(t);let a=t===0?650:t===7?1300:360;e=window.setTimeout(n,a)};return e=window.setTimeout(n,120),()=>window.clearTimeout(e)},[t]);let a=Math.min(n,gd.length),o=n>=7;return(0,U.jsxs)(hd,{className:`justify-between gap-4 p-5 md:p-6`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,U.jsxs)(`div`,{className:`text-muted-foreground flex items-center gap-2 text-[10px] uppercase tracking-wide`,children:[(0,U.jsx)(`span`,{className:`size-1.5 animate-pulse rounded-full bg-emerald-500`}),`Magic link delivered`]}),(0,U.jsxs)(`div`,{className:`text-foreground flex items-center gap-2 font-mono text-xs`,children:[`[email protected]`,(0,U.jsx)(e,{className:`text-muted-foreground size-3`}),(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`inbox`})]})]}),(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsx)(`div`,{className:`flex items-center gap-1.5 sm:gap-2`,children:gd.map((e,t)=>{let n=a>t;return(0,U.jsx)(B.span,{animate:{scale:n?[1,1.14,1]:1,borderColor:n?`var(--primary)`:`var(--border)`},transition:{duration:.3},className:P(`bg-card flex h-11 flex-1 items-center justify-center rounded-md border-2 font-mono text-base font-semibold sm:h-12 sm:text-lg lg:h-14`,n?`text-foreground`:`text-muted-foreground/20`),children:n?e:`•`},e)})}),(0,U.jsx)(`div`,{className:`bg-muted h-1 overflow-hidden rounded-full`,children:(0,U.jsx)(B.div,{className:`from-primary h-full rounded-full bg-gradient-to-r to-[var(--accent-sky)]`,animate:{width:`${a/gd.length*100}%`},transition:{duration:.35,ease:[.16,1,.3,1]}})})]}),(0,U.jsxs)(`div`,{className:`text-muted-foreground flex h-5 items-center justify-between text-[11px]`,children:[(0,U.jsx)(`span`,{children:`Better Auth · session signed`}),(0,U.jsx)(it,{children:o?(0,U.jsxs)(B.span,{initial:{opacity:0,x:8}
9,animate:{opacity:1,x:0},exit:{opacity:0,x:8},className:`inline-flex items-center gap-1 font-medium text-emerald-500`,children:[(0,U.jsx)(N,{className:`size-3`}),`redirecting to /dashboard`]},`done`):null})]})]})}var vd=[{name:`Acme Studio`,role:`owner`,initial:`A`,accent:!0},{name:`Scale Co`,role:`admin`,initial:`S`,accent:!1},{name:`Beta Labs`,role:`member`,initial:`B`,accent:!1}];function yd({active:e}){let[t,n]=(0,H.useState)(0);return(0,H.useEffect)(()=>{if(!e)return;let t=window.setInterval(()=>{n(e=>(e+1)%vd.length)},1700);return()=>window.clearInterval(t)},[e]),(0,U.jsx)(hd,{className:`gap-1.5 p-3`,children:vd.map((e,n)=>(0,U.jsxs)(`div`,{className:`relative flex items-center justify-between rounded-md px-2.5 py-2 text-[12px]`,children:[t===n?(0,U.jsx)(B.span,{layoutId:`org-highlight`,className:`border-primary absolute inset-0 rounded-md border bg-gradient-to-r from-primary/25 to-[var(--accent-sky)]/10`,transition:{type:`spring`,stiffness:320,damping:30}}):null,(0,U.jsxs)(`span`,{className:`relative flex items-center gap-2.5`,children:[(0,U.jsx)(`span`,{className:P(`flex size-6 items-center justify-center rounded-sm font-mono text-[10px] font-bold`,e.accent?`bg-primary text-primary-foreground`:`bg-muted-foreground text-background`),children:e.initial}),(0,U.jsx)(`span`,{className:`text-foreground font-medium`,children:e.name})]}),(0,U.jsx)(`span`,{className:`text-muted-foreground relative font-mono uppercase tracking-wider text-[9px]`,children:e.role})]},e.name))})}var bd=[{label:`Free`,price:`$0`},{label:`Starter`,price:`$29`},{label:`Pro`,price:`$79`}];function xd({active:e}){let[t,n]=(0,H.useState)(bd.length-1);return(0,H.useEffect)(()=>{if(!e)return;let t=window.setInterval(()=>{n(e=>(e+1)%bd.length)},1500);return()=>window.clearInterval(t)},[e]),(0,U.jsxs)(hd,{children:[(0,U.jsxs)(`div`,{className:`border-border bg-card flex items-center gap-2 rounded-md border p-3 font-mono text-[11px]`,children:[(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`$`}),(0,U.jsxs)(`span`,{className:`text-foreground truncate`,children:[`convex env set `,(0,U.jsx)(`span`,{className:`text-primary`,children:`STRIPE_SECRET_KEY`})]}),(0,U.jsx)(B.span,{animate:{opacity:[1,0,1]},transition:{duration:1,repeat:1/0},className:`bg-foreground inline-block h-3 w-1.5`})]}),(0,U.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:bd.map((e,n)=>{let r=t===n;return(0,U.jsxs)(B.div,{animate:{y:r?-2:0},transition:{duration:.3,ease:[.16,1,.3,1]},className:P(`bg-card rounded-md border p-2.5 text-center transition-colors duration-300`,r?`border-primary`:`border-border`),children:[(0,U.jsx)(`div`,{className:`text-muted-foreground text-[9px] uppercase tracking-wider`,children:e.label}),(0,U.jsx)(`div`,{className:P(`text-base font-bold transition-colors duration-300`,r?`text-primary`:`text-foreground`),children:e.price})]},e.label)})})]})}var Sd=`Shipping a SaaS in a week`;function Cd({active:e}){let[t,n]=(0,H.useState)(Sd);return(0,H.useEffect)(()=>{if(!e)return;let t=25,r=-1,i,a=()=>{if(t+=r,t>=25){t=25,r=-1,n(Sd),i=window.setTimeout(a,1600);return}if(t<=0){t=0,r=1,n(``),i=window.setTimeout(a,500);return}n(Sd.slice(0,t)),i=window.setTimeout(a,r>0?55:30)};return i=window.setTimeout(a,1600),()=>window.clearTimeout(i)},[e]),(0,U.jsxs)(hd,{className:`gap-2`,children:[(0,U.jsxs)(`div`,{className:`text-muted-foreground flex items-center gap-1.5 text-[9px] uppercase tracking-wide`,children:[(0,U.jsx)(`span`,{className:`rounded-sm bg-emerald-500/15 px-1.5 py-0.5 text-emerald-400`,children:`Published`}),(0,U.jsx)(`span`,{children:`EN · 5 min`})]}),(0,U.jsxs)(`div`,{className:`text-foreground min-h-[20px] text-sm font-semibold leading-snug`,children:[t,(0,U.jsx)(B.span,{animate:{opacity:[1,0,1]},transition:{duration:.8,repeat:1/0},className:`bg-foreground ml-0.5 inline-block h-3.5 w-px align-middle`})]}),(0,U.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:[`seo`,`rss`,`llms.txt`].map(e=>(0,U.jsxs)(`span`,{className:`border-border text-muted-foreground rounded-full border px-1.5 py-0.5 font-mono text-[9px]`,children:[`#`,e]},e))})]})}var wd=[[!0,!0,!0],[!0,!0,!1],[!0,!1,!1]],Td=[`read`,`edit`,`admin`],Ed=[`owner`,`editor`,`viewer`];function Dd({active:e}){let[t,n]=(0,H.useState)(wd),[r,i]=(0,H.useState)(-1);(0,H.useEffect)(()=>
9{if(!e)return;let t=window.setInterval(()=>{i(e=>(e+1)%9)},220);return()=>window.clearInterval(t)},[e]);let a=(e,t)=>{n(n=>n.map((n,r)=>n.map((n,i)=>r===e&&i===t?!n:n)))};return(0,U.jsxs)(hd,{className:`justify-center gap-0 font-mono text-[10px]`,children:[(0,U.jsxs)(`div`,{className:`text-muted-foreground grid grid-cols-[58px_repeat(3,1fr)] gap-1.5 pb-1`,children:[(0,U.jsx)(`span`,{}),Td.map(e=>(0,U.jsx)(`span`,{className:`text-center uppercase`,children:e},e))]}),t.map((e,t)=>(0,U.jsxs)(`div`,{className:`grid grid-cols-[58px_repeat(3,1fr)] items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`text-foreground`,children:Ed[t]}),e.map((e,n)=>{let i=r===t*3+n&&e;return(0,U.jsx)(`button`,{type:`button`,onClick:()=>a(t,n),className:`hover:bg-muted/50 flex justify-center rounded py-1 transition-colors`,"aria-label":`Toggle ${Ed[t]} ${Td[n]}`,children:(0,U.jsx)(B.span,{animate:{scale:i?[1,1.25,1]:e?1:.4,opacity:e?1:.25},transition:{duration:i?.4:.3,ease:[.16,1,.3,1]},children:e?(0,U.jsx)(N,{className:`size-3.5 text-emerald-500`}):(0,U.jsx)(`span`,{className:`text-muted-foreground/40`,children:`·`})})},Td[n])})]},Ed[t]))]})}var Od={en:`Welcome back, Apex.`,fr:`Bon retour, Apex.`};function kd({active:e}){let[t,n]=(0,H.useState)(`en`);return(0,H.useEffect)(()=>{if(!e)return;let t=window.setInterval(()=>{n(e=>e===`en`?`fr`:`en`)},2100);return()=>window.clearInterval(t)},[e]),(0,U.jsxs)(hd,{className:`gap-0 p-0`,children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between p-3 text-[11px]`,children:[(0,U.jsx)(`div`,{className:`flex items-center gap-1.5`,children:[`en`,`fr`].map(e=>(0,U.jsx)(`span`,{className:P(`rounded-sm border px-2 py-0.5 font-mono uppercase transition-colors`,t===e?`border-primary text-primary-foreground bg-gradient-to-br from-primary to-[var(--accent-sky)]`:`border-border text-muted-foreground`),children:e},e))}),(0,U.jsxs)(`span`,{className:`text-muted-foreground inline-flex items-center gap-1 text-[9px]`,children:[(0,U.jsx)(`span`,{className:`size-1.5 rounded-full bg-emerald-500`}),`installable PWA`]})]}),(0,U.jsxs)(`div`,{className:`border-border border-t p-3`,children:[(0,U.jsx)(`div`,{className:`text-muted-foreground mb-1 font-mono text-[9px]`,children:`t("dashboard.welcome")`}),(0,U.jsx)(it,{mode:`wait`,children:(0,U.jsx)(B.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2},className:`text-foreground text-sm font-semibold`,children:Od[t]},t)})]})]})}function Ad(){let{t}=ne();return(0,U.jsx)(`section`,{className:`px-6 pb-24 md:px-10 md:pb-32`,children:(0,U.jsx)(ld,{className:`mx-auto max-w-7xl`,children:(0,U.jsxs)(`div`,{className:`border-border bg-card relative overflow-hidden rounded-2xl border p-10 text-center md:p-20`,children:[(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0`,style:{backgroundImage:`linear-gradient(var(--foreground) 1px, transparent 1px), linear-gradient(90deg, var(--foreground) 1px, transparent 1px)`,backgroundSize:`48px 48px`,opacity:.03,maskImage:`radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent)`,WebkitMaskImage:`radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent)`}}),(0,U.jsxs)(`div`,{className:`relative`,children:[(0,U.jsx)(`h2`,{className:`text-foreground mx-auto max-w-3xl text-4xl font-bold tracking-tight md:text-6xl`,children:t(`landing.cta.title`)}),(0,U.jsx)(`p`,{className:`text-muted-foreground mx-auto mt-5 max-w-xl text-base leading-relaxed md:text-lg`,children:t(`landing.cta.subtitle`)}),(0,U.jsxs)(`div`,{className:`mt-10 flex flex-wrap items-center justify-center gap-3`,children:[(0,U.jsx)(T,{asChild:!0,size:`lg`,className:`h-12 px-6 text-base`,children:(0,U.jsxs)(b,{to:`/auth`,children:[t(`landing.cta.primary`),(0,U.jsx)(e,{className:`size-4`})]})}),(0,U.jsx)(T,{asChild:!0,size:`lg`,variant:`outline`,className:`bg-background h-12 px-6 text-base`,children:(0,U.jsx)(b,{to:`/docs`,children:t(`landing.cta.secondary`)})})]})]})]})})})}function jd(e,t){let n=(e,t)=>e.trim().split(/\s+/).filter(Boolean).map(e=>({text:e,accent:t}));if(t&&e.includes(t)){let[r,i]=e.split(t);return[...n(r,!1),...n(t,!0),...n(i,!1)]}return n(e,!1)}function Md(){let{t}=ne(),n=(0,H.useRef)(null),r=jd(t(`landing.hero.title`),t(`landing.hero.titleAccent`)),i=t(`landing.hero.stats`,{returnObjects:!0})??[];return sd(()=>{cd()||(Ps.set(`.hero-mockup`,{rotateX:14,transformPerspective:1400,transformOrigin:`center top`}),Ps.to(`.hero-mockup`,{rotateX:0,ease:`none`,scrollTrigger:{trigger:`.hero-mockup-wrap`,start:`top 78%`,end:`top 18%`,scrub:1}}))},{scope:n}),(0,U.jsxs)(`section`,{ref:n,className:`relative overflow-hidden px-6 pt-16 md:px-10 md:pt-24`,children:[(0,U.jsx)(Nd,{}),(0,U.jsxs)(`div`,{className:`relative z-10 mx-auto max-w-3xl text-center`,children:[(0,U.jsxs)(`span`,{className:`hero-eyebrow border-border bg-card text-muted-foreground inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-[11px] leading-snug sm:gap-2 sm:px-3 sm:py-1 sm:text-xs`,children:[(0,U.jsx)(`span`,{className:`bg-primary size-1.5 shrink-0 rounded-full`,"aria-hidden":`true`}),(0,U.jsx)(`span`,{className:`text-foreground font-medium`,children:t(`landing.hero.pill`)}),(0,U.jsxs)(b,{to:`/docs/$`,params:{_splat:`changelog`},className:`text-primary inline-flex shrink-0 items-center gap-0.5 font-medium underline-offset-4 hover:underline`,children:[t(`landing.hero.pillCta`),(0,U.jsx)(e,{className:`size-3`})]})]}),(0,U.jsx)(`h1`,{className:`mt-7 flex flex-wrap justify-center gap-x-[0.28em] gap-y-1 text-5xl font-bold leading-[1.04] tracking-tight md:text-7xl`,children:r.map((e,t)=>(0,U.jsx)(`span`,{className:`inline-block overflow-hidden pb-[0.12em]`,children:(0,U.jsx)(`span`,{className:`hero-word inline-block ${e.accent?`text-primary`:`text-foreground`}`,children:e.text})},`${e.text}-${t}`))}),(0,U.jsx)(`p`,{className:`hero-sub text-muted-foreground mx-auto mt-6 max-w-xl text-base leading-relaxed md:text-lg`,children:t(`landing.hero.subtitle`)}),(0,U.jsxs)(`div`,{className:`mt-9 flex flex-wrap items-center justify-center gap-3`,children:[(0,U.jsx)(T,{asChild:!0,size:`lg`,className:`h-12 px-6 text-base`,children:(0,U.jsxs)(b,{to:`/auth`,children:[t(`landing.hero.ctaPrimary`),(0,U.jsx)(e,{className:`size-4`})]})}),(0,U.jsx)(T,{asChild:!0,size:`lg`,variant:`outline`,className:`bg-card h-12 px-6 text-base`,children:(0,U.jsx)(b,{to:`/dashboard`,children:t(`landing.hero.ctaSecondary`)})})]}),(0,U.jsx)(`p`,{className:`hero-trust text-muted-foreground mt-7 text-xs`,children:t(`landing.hero.trustline`)})]}),(0,U.jsx)(`div`,{className:`hero-mockup-wrap relative z-10 mx-auto mt-16 max-w-6xl md:mt-20`,children:(0,U.jsx)(`div`,{className:`hero-mockup`,children:(0,U.jsxs)(Pt,{url:t(`landing.hero.mockupUrl`),children:[(0,U.jsx)(`div`,{className:`md:hidden`,children:(0,U.jsx)(dn,{variant:`overview`})}),(0,U.jsx)(`div`,{className:`hidden md:block`,children:(0,U.jsx)(Lt,{variant:`overview`})})]})})}),(0,U.jsx)(`div`,{className:`border-border relative z-10 mx-auto mt-16 grid max-w-4xl grid-cols-1 divide-y border-y sm:grid-cols-3 sm:divide-x sm:divide-y-0 md:mt-20`,children:i.map(e=>(0,U.jsxs)(`div`,{className:`hero-stat flex flex-col items-center px-6 py-7`,children:[(0,U.jsx)(It,{to:e.value,suffix:e.suffix,className:`text-foreground text-4xl font-bold tracking-tight md:text-5xl`}),(0,U.jsx)(`span`,{className:`text-muted-foreground mt-1.5 text-sm`,children:e.label})]},e.label))})]})}function Nd(){return(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-0`,style:{backgroundImage:`linear-gradient(var(--foreground) 1px, transparent 1px), linear-gradient(90deg, var(--foreground) 1px, transparent 1px)`,backgroundSize:`56px 56px`,opacity:.07,maskImage:`radial-gradient(ellipse 95% 65% at 50% 18%, black, transparent 78%)`,WebkitMaskImage:`radial-gradient(ellipse 95% 65% at 50% 18%, black, transparent 78%)`}})}var Pd={slow:`animate-marquee-slow`,normal:`animate-marquee`,fast:`animate-marquee-fast`};function Fd({children:e,className:t,pauseOnHover:n=!0,direction:r=`left`,speed:i=`normal`}){let a=r===`right`?`reverse`:`normal`;return(0,U.jsx)(`div`,{className:P(`group relative overflow-hidden`,`[mask-image:linear-gradient(to_right,transparent,black_8%,black_92%,transparent)]`,t),children:(0,U.jsxs)(`div`,{className:P(`flex w-max gap-12 motion-reduce:animate-none`,Pd[i],n&&`group-hover:[animation-play-state:paused]`),style:{animationDirection:a},children:[(0,U.jsx)(`div`,{className:`flex shrink-0 items-center gap-12`,children:e}),(0,U.jsx)(`div`,{className:`flex shrink-0 items-center gap-12`,"aria-hidden":`true`,children:e})]})})}
9var Id=[`TanStack`,`Convex`,`Better Auth`,`Stripe`,`Resend`,`shadcn/ui`,`Tailwind`,`Sentry`,`Vite`,`Radix`,`TipTap`,`Lucide`];function Ld(){let{t:e}=ne();return(0,U.jsx)(`section`,{className:`border-border border-y py-10`,children:(0,U.jsxs)(`div`,{className:`mx-auto max-w-7xl px-6 md:px-10`,children:[(0,U.jsx)(`p`,{className:`text-muted-foreground mb-7 text-center text-xs uppercase tracking-[0.22em]`,children:e(`landing.marquee.label`)}),(0,U.jsx)(Fd,{speed:`slow`,children:Id.map(e=>(0,U.jsx)(`span`,{className:`text-muted-foreground/60 hover:text-foreground inline-flex shrink-0 items-center font-mono text-lg font-semibold tracking-tight transition-colors`,children:e},e))})]})})}var Rd=`\xA0`;function zd(e){return e?.toLowerCase().startsWith(`fr`)?`eur`:`usd`}function Bd(e,t){return t===`eur`?`${e}${Rd}€`:`$${e}`}function Vd({id:e}){let{t,i18n:n}=ne(),r=zd(n.language);return(0,U.jsx)(`section`,{id:e,className:`relative py-24 md:py-32`,children:(0,U.jsxs)(`div`,{className:`mx-auto max-w-7xl px-6 md:px-10`,children:[(0,U.jsxs)(ld,{className:`max-w-2xl`,children:[(0,U.jsx)(`h2`,{className:`text-foreground text-4xl font-bold tracking-tight md:text-5xl`,children:t(`landing.pricing.title`)}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-4 text-base leading-relaxed md:text-lg`,children:t(`landing.pricing.subtitle`)})]}),(0,U.jsx)(ld,{stagger:.1,className:`mx-auto mt-14 grid max-w-4xl grid-cols-1 gap-6 md:grid-cols-2`,children:y.offers.items.map(e=>(0,U.jsx)(Hd,{offer:e,currency:r},e.key))})]})})}function Hd({offer:t,currency:n}){let{t:r}=ne(),i=`landing.pricing.offers.${t.key}`,a=r(`${i}.features`,{returnObjects:!0})??[],s=y.offers.launchPromo?t.promoPrice:void 0,c=(s??t.price)[n],l=s?t.price[n]:void 0;return(0,U.jsxs)(`div`,{className:P(`relative flex h-full flex-col rounded-xl border p-8`,t.featured?`border-primary ring-primary/20 bg-card ring-4`:`border-border bg-card`),children:[t.featured?(0,U.jsx)(`span`,{className:`bg-primary text-primary-foreground absolute -top-3 left-8 inline-flex items-center rounded-full px-3 py-1 text-[10px] font-semibold uppercase tracking-wide`,children:r(`landing.pricing.featured`)}):null,(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(`h3`,{className:`text-foreground text-xl font-semibold tracking-tight`,children:r(`${i}.name`)}),t.comingSoon?(0,U.jsxs)(`span`,{className:`border-border text-muted-foreground inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide`,children:[(0,U.jsx)(o,{className:`size-3`}),r(`${i}.comingSoon`)]}):null]}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-2 text-sm leading-relaxed`,children:r(`${i}.description`)})]}),(0,U.jsxs)(`div`,{className:`mt-6 flex items-baseline gap-2`,children:[(0,U.jsx)(`span`,{className:`text-foreground text-5xl font-bold tracking-tight`,children:Bd(c,n)}),(0,U.jsx)(`span`,{className:`text-muted-foreground text-sm`,children:r(`landing.pricing.oneTime`)})]}),l===void 0?null:(0,U.jsxs)(`p`,{className:`text-muted-foreground mt-1 text-xs`,children:[r(`landing.pricing.promoLabel`),` · `,r(`landing.pricing.priceAnchorLabel`),` `,(0,U.jsx)(`span`,{className:`line-through`,children:Bd(l,n)})]}),(0,U.jsx)(`ul`,{className:`mt-8 flex flex-1 flex-col gap-2.5`,children:a.map(e=>(0,U.jsxs)(`li`,{className:`text-muted-foreground flex items-start gap-2 text-sm leading-relaxed`,children:[(0,U.jsx)(N,{className:`text-primary mt-0.5 size-4 shrink-0`}),(0,U.jsx)(`span`,{children:e})]},e))}),t.comingSoon?(0,U.jsx)(Ud,{offerKey:t.key,className:`mt-8`}):(0,U.jsx)(T,{asChild:!0,variant:t.featured?`default`:`outline`,size:`lg`,className:`mt-8`,children:t.checkoutUrl?(0,U.jsxs)(`a`,{href:t.checkoutUrl,children:[r(`${i}.cta`),(0,U.jsx)(e,{className:`size-4`})]}):(0,U.jsxs)(b,{to:`/auth`,children:[r(`${i}.cta`),(0,U.jsx)(e,{className:`size-4`})]})})]})}function Ud({offerKey:e,className:t}){let{t:n}=ne(),r=ee(S.leads.capture),[i,a]=(0,H.useState)(``),[o,s]=(0,H.useState)(!1),[c,l]=(0,H.useState)(!1),d=`landing.pricing.offers.${e}.waitlist`;async function f(t){if(t.preventDefault(),!o){s(!0);try{await r({email:i,source:`${e}_waitlist`}),l(!0),te.success(n(`${d}.success`))}catch(e){e instanceof v&&e.data?.code===`DUPLICATE`?(l(!0),te.success(n(`${d}.duplicate`))):te.error(n(`${d}.error`))}finally{s(!1)}}}return c?(0,U.jsxs)(`p`,{className:P(`text-primary flex items-center gap-2 text-sm font-medium`,t),children:[(0,U.jsx)(N,{className:`size-4 shrink-0`}),n(`${d}.success`)]}):(0,U.jsxs)(`form`,{onSubmit:f,className:P(`flex flex-col gap-2 sm:flex-row`,t),children:[(0,U.jsx)(`label`,{htmlFor:`waitlist-${e}`,className:`sr-only`,children:n(`${d}.placeholder`)}),(0,U.jsx)(F,{id:`waitlist-${e}`,type:`email`,required:!0,value:i,onChange:e=>a(e.target.value),placeholder:n(`${d}.placeholder`),disabled:o,className:`flex-1`}),(0,U.jsxs)(T,{type:`submit`,size:`lg`,disabled:o,children:[o?(0,U.jsx)(u,{className:`size-4 animate-spin`}):null,n(`${d}.cta`)]})]})}var Wd={"TanStack Start":{lang:`tsx`,code:`export const Route = createFileRoute("/")({
10  head: () => getSeoHead({ path: "/" }),
11  component: HomePage,
12});`},Convex:{lang:`ts`,code:`export const list = query({
13  args: { limit: v.optional(v.number()) },
14  handler: async (ctx, { limit = 20 }) => {
15    return await ctx.db.query("articles").take(limit);
16  },
17});`},"Better Auth":{lang:`ts`,code:`await authClient.emailOtp.sendVerificationOtp({
18  email,
19  type: "sign-in",
20});`}
20,Stripe:{lang:`ts`,code:`await stripe.checkout.sessions.create({
21  mode: "subscription",
22  line_items: [{ price: priceId, quantity: 1 }],
23  customer: stripeCustomerId,
24});`},Resend:{lang:`ts`,code:`await resend.emails.send({
25  from: config.resend.fromNoReply,
26  to: email,
27  subject: "Welcome",
28  react: <WelcomeEmail name={name} />,
29});`},"shadcn/ui":{lang:`bash`,code:`pnpm dlx shadcn@latest add button card dialog
30pnpm dlx shadcn@latest add accordion tabs sheet`},"Tailwind CSS v4":{lang:`css`,code:`@theme inline {
31  --color-primary: var(--primary);
32  --color-background: var(--background);
33  --radius-md: 2px;
34}`},Sentry:{lang:`ts`,code:`Sentry.init({
35  dsn: import.meta.env.VITE_SENTRY_DSN,
36  tracesSampleRate: 1.0,
37  integrations: [Sentry.browserTracingIntegration()],
38});`},"PWA + i18n":{lang:`ts`,code:`i18n.use(initReactI18next).init({
39  resources: { en, fr },
40  lng: getLocale(),
41  fallbackLng: "en",
42});`}};function Gd({id:e}){let{t}=ne(),n=t(`landing.stack.items`,{returnObjects:!0})??[],r=n.length,i=(0,H.useRef)(null),[a,o]=(0,H.useState)(0),s=n[a];return sd(()=>{let e=i.current;!e||r===0||Ps.matchMedia().add(`(min-width: 768px) and (prefers-reduced-motion: no-preference)`,()=>{let t=$.create({trigger:e,start:`top top`,end:`bottom bottom`,onUpdate:e=>{o(Math.min(r-1,Math.max(0,Math.floor(e.progress*r))))}});return()=>t.kill()})},{scope:i,dependencies:[r]}),(0,U.jsx)(`section`,{id:e,className:`relative`,children:(0,U.jsx)(`div`,{ref:i,className:`md:h-[400vh] motion-reduce:md:h-auto`,children:(0,U.jsx)(`div`,{className:`flex flex-col justify-center py-24 md:sticky md:top-0 md:h-screen md:py-0 motion-reduce:md:static motion-reduce:md:h-auto motion-reduce:md:py-24`,children:(0,U.jsxs)(`div`,{className:`mx-auto w-full max-w-7xl px-6 md:px-10`,children:[(0,U.jsxs)(ld,{className:`max-w-2xl`,children:[(0,U.jsx)(`h2`,{className:`text-foreground text-4xl font-bold tracking-tight md:text-5xl`,children:t(`landing.stack.title`)}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-4 text-base leading-relaxed md:text-lg`,children:t(`landing.stack.subtitle`)})]}),(0,U.jsxs)(`div`,{className:`mt-10 grid gap-6 md:grid-cols-12`,children:[(0,U.jsx)(`div`,{className:`grid min-w-0 grid-cols-2 gap-2 md:col-span-5 md:flex md:flex-col`,children:n.map((e,t)=>(0,U.jsx)(Kd,{item:e,index:t,isActive:a===t,onSelect:()=>o(t)},e.name))}),(0,U.jsx)(`div`,{className:`min-w-0 md:col-span-7`,children:(0,U.jsx)(it,{mode:`wait`,children:s?(0,U.jsx)(qd,{item:s,index:a,total:r},s.name):null})})]})]})})})})}function Kd({item:e,index:t,isActive:n,onSelect:r}){return(0,U.jsxs)(`button`,{type:`button`,onClick:r,"aria-pressed":n,className:P(`relative flex w-full items-center gap-3 overflow-hidden rounded-lg border px-3 py-2.5 text-left transition-colors`,n?`border-primary bg-primary/10`:`border-border bg-card hover:border-foreground
42/25`),children:[(0,U.jsx)(`span`,{className:P(`flex size-7 shrink-0 items-center justify-center rounded-md font-mono text-[10px] font-semibold transition-colors`,n?`bg-primary text-primary-foreground`:`border-border text-muted-foreground border`),children:String(t+1).padStart(2,`0`)}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1`,children:(0,U.jsx)(`span`,{className:`text-foreground block truncate text-sm font-semibold`,children:e.name})}),n?(0,U.jsx)(`span`,{className:`bg-primary size-1.5 shrink-0 rounded-full`}):null]})}function qd({item:e,index:n,total:r}){let i=Wd[e.name];return(0,U.jsxs)(B.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},exit:{opacity:0,y:-14},transition:{duration:.3,ease:[.16,1,.3,1]},className:`border-border bg-card flex h-full min-h-[420px] flex-col gap-6 rounded-xl border p-6 md:p-8`,children:[(0,U.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(`span`,{className:`text-muted-foreground font-mono text-xs font-medium`,children:[String(n+1).padStart(2,`0`),` / `,String(r).padStart(2,`0`)]}),(0,U.jsx)(`h3`,{className:`text-foreground mt-1 text-2xl font-semibold tracking-tight md:text-3xl`,children:e.name}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-2 text-sm leading-relaxed md:text-base`,children:e.pitch})]}),(0,U.jsxs)(`a`,{href:e.docHref,target:`_blank`,rel:`noopener noreferrer`,className:`border-border bg-background text-muted-foreground hover:border-primary hover:text-foreground inline-flex shrink-0 items-center gap-1.5 rounded-md border px-3 py-1.5 text-xs font-medium transition-colors`,children:[`Docs`,(0,U.jsx)(t,{className:`size-3`})]})]}),i?(0,U.jsx)(Jd,{lang:i.lang,code:i.code}):null,(0,U.jsx)(`ul`,{className:`mt-auto flex flex-col gap-1.5`,children:[`Pre-wired in the template`,`Type-safe end-to-end`,`Production-ready defaults`].map(e=>(0,U.jsxs)(`li`,{className:`text-muted-foreground flex items-center gap-2 text-xs`,children:[(0,U.jsx)(N,{className:`text-primary size-3.5 shrink-0`}),(0,U.jsx)(`span`,{children:e})]},e))})]})}function Jd({lang:e,code:t}){return(0,U.jsxs)(`div`,{className:`border-border bg-background flex flex-col overflow-hidden rounded-md border`,children:[(0,U.jsxs)(`div`,{className:`border-border text-muted-foreground flex items-center justify-between border-b px-3 py-1.5`,children:[(0,U.jsx)(`span`,{className:`font-mono text-[10px] uppercase tracking-wider`,children:e}),(0,U.jsxs)(`div`,{className:`flex gap-1`,children:[(0,U.jsx)(`span`,{className:`bg-muted-foreground/30 size-2 rounded-full`}),(0,U.jsx)(`span`,{className:`bg-muted-foreground/30 size-2 rounded-full`}),(0,U.jsx)(`span`,{className:`bg-muted-foreground/30 size-2 rounded-full`})]})]}),(0,U.jsx)(`pre`,{className:`text-foreground overflow-x-auto p-4 font-mono text-[12px] leading-relaxed`,children:(0,U.jsx)(`code`,{children:t})})]})}function Yd(){let{t:e}=ne(),t=e(`landing.workflow.steps`,{returnObjects:!0})??[];return(0,U.jsx)(`section`,{className:`border-border bg-card/30 relative border-y py-24 md:py-32`,children:(0,U.jsxs)(`div`,{className:`mx-auto max-w-7xl px-6 md:px-10`,children:[(0,U.jsxs)(ld,{className:`max-w-2xl`,children:[(0,U.jsx)(`h2`,{className:`text-foreground text-4xl font-bold tracking-tight md:text-5xl`,children:e(`landing.workflow.title`)}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-4 text-base leading-relaxed md:text-lg`,children:e(`landing.workflow.subtitle`)})]}),(0,U.jsxs)(`div`,{className:`relative mt-16`,children:[(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`bg-border absolute left-0 right-0 top-7 hidden h-px md:block`}),(0,U.jsx)(ld,{stagger:.12,className:`grid gap-10 md:grid-cols-3 md:gap-6`,children:t.map(e=>(0,U.jsxs)(`div`,{className:`relative flex flex-col`,children:[(0,U.jsx)(`div`,{className:`bg-background border-border text-foreground relative z-10 flex size-14 items-center justify-center rounded-full border font-mono text-sm font-semibold`,children:e.index}),(0,U.jsx)(`h3`,{className:`text-foreground mt-6 text-2xl font-semibold tracking-tight`,children:e.title}),(0,U.jsx)(`p`,{className:`text-muted-foreground mt-2 text-sm leading-relaxed`,children:e.description}),(0,U.jsxs)(`div`,{className:`border-border bg-background text-foreground mt-5 inline-flex items-center gap-2 self
42-start rounded-md border px-3 py-2 font-mono text-xs`,children:[(0,U.jsx)(`span`,{className:`text-primary`,children:`$`}),(0,U.jsx)(`span`,{className:`truncate`,children:e.code})]})]},e.index))})]})]})})}function Xd(){return(0,U.jsxs)(Pe,{children:[(0,U.jsx)(Md,{}),(0,U.jsx)(Ld,{}),(0,U.jsx)(Gd,{id:`stack`}),(0,U.jsx)(pd,{id:`features`}),(0,U.jsx)(Yd,{}),(0,U.jsx)(ud,{}),(0,U.jsx)(Vd,{id:`pricing`}),(0,U.jsx)(dd,{}),(0,U.jsx)(Ad,{})]})}export{Xd as component};
43//# sourceMappingURL=routes-C_8p5UDY.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.