PageSourceSearch

https://nextcap.ai/_next/static/chunks/21817484205ab3d4.js?dpl=build-mutkh7hj

js nextcap.ai collected 2026-10-05 12:18:10 UTC 339,722 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,544638,e=>{"use strict";var t=e.i(135003),i=e.i(503013),a=e.i(617571),r=e.i(659152),n=e.i(761266),s=e.i(161701),l=e.i(254945),o=e.i(417184),c=e.i(986448),d=e.i(341925),u=e.i(703546),p=e.i(433432),x=e.i(135981);function f(){var e;let t=(0,d.useConstant)(()=>({current:null,animations:[]})),i=function(){let e=(0,p.useReducedMotion)(),{reducedMotion:t}=(0,a.useContext)(u.MotionConfigContext);return"never"!==t&&("always"===t||e)}()??void 0,r=(0,a.useMemo)(()=>(0,x.createScopedAnimate)({scope:t,reduceMotion:i}),[t,i]);return e=()=>{t.animations.forEach(e=>e.stop()),t.animations.length=0},(0,a.useEffect)(()=>()=>e(),[]),[t,r]}e.i(665143);var m=e.i(702915);e.i(823864);var h=e.i(236585),g=e.i(967682),b=e.i(753942),v=e.i(134174);e.i(498920);var y=e.i(736986),j=e.i(807464);let w=(0,a.createContext)(null),N=e=>!e.isLayoutDirty&&e.willUpdate(!1),k=({children:e,id:i,inherit:r=!0})=>{let n=(0,a.useContext)(j.LayoutGroupContext),s=(0,a.useContext)(w),[l,o]=function(){let e,t=(e=(0,a.useRef)(!1),(0,y.useIsomorphicLayoutEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e),[i,r]=(0,a.useState)(0),n=(0,a.useCallback)(()=>{t.current&&r(i+1)},[i]);return[(0,a.useCallback)(()=>g.frame.postRender(n),[n]),i]}(),c=(0,a.useRef)(null),d=n.id||s;if(null===c.current){let e,t,a,s;(!0==(!0===(s=r))||"id"===s)&&d&&(i=i?d+"-"+i:d),c.current={id:i,group:!0===r&&n.group||(e=new Set,t=new WeakMap,{add:i=>{e.add(i),t.set(i,i.addEventListener("willUpdate",a))},remove:i=>{e.delete(i);let r=t.get(i);r&&(r(),t.delete(i)),a()},dirty:a=()=>e.forEach(N)})}}let u=(0,a.useMemo)(()=>({...c.current,forceRender:l}),[o]);return(0,t.jsx)(j.LayoutGroupContext.Provider,{value:u,children:e})};var _=e.i(256192),C=e.i(842070);function T({children:e,isValidProp:i,...r}){i&&(0,C.loadExternalIsValidProp)(i);let n=(0,a.useContext)(b.MotionConfigContext);(r={...n,...r}).transition=(0,_.resolveTransition)(r.transition,n.transition),r.isStatic=(0,v.useConstant)(()=>r.isStatic);let s=(0,a.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion,r.skipAnimations]);return(0,t.jsx)(b.MotionConfigContext.Provider,{value:s,children:e})}var R=e.i(112086),S=e.i(140802);e.i(661670),e.i(92727);class A{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 i=0;i<this.animations.length;i++)this.animations[i][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 M(this.animations,"duration")}get iterationDuration(){return M(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 M(e,t){let i=0;for(let a=0;a<e.length;a++){let r=e[a][t];null!==r&&r>i&&(i=r)}return i}class L extends A{then(e,t){return this.finished.finally(e).then(()=>{})}}var P=e.i(57307),E=e.i(512065),$=e.i(805639),I=e.i(181142),O=e.i(620117),z=e.i(659056),D=e.i(241058),B=e.i(182865),F=e.i(26809),W=e.i(633191);function H(e,t){var i;let a;return(0,W.isEasingArray)(e)?e[i=e.length,((t-0)%(a=i-0)+a)%a+0]:e}var q=e.i(427772);function V(e){return"object"==typeof e&&!Array.isArray(e)}function Y(e,t,i,a){return null==e?[]:"string"==typeof e&&V(t)?(0,q.resolveElements)(e,i,a):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>null!=e):[e]}function U(e,t,i,a){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?i:t.startsWith("<")?Math.max(0,i+parseFloat(t.slice(1))):a.get(t)??e}var X=e.i(870820);function G(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function Q(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function Z(e,t){return t[e]||(t[e]=[]),t[e]}let K=e=>"number"==typeof e,J=e=>e.every(K);var ee=e.i(597849),et=e.i(499737),ei=e.i(771788),ea=e.i(838752),er=e.i(497474),en=e.i(141577),es=e.i(597157),el=e.i(427684),eo=e.i(96819);class ec extends eo.VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let i=e[t];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,el.createBox)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function ed(e){let t={presenceContext:null,props:{}
1,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,ea.isSVGElement)(e)&&!(0,er.isSVGSVGElement)(e)?new en.SVGVisualElement(t):new es.HTMLVisualElement(t);i.mount(e),et.visualElementStore.set(e,i)}function eu(e){let t=new ec({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),et.visualElementStore.set(e,t)}function ep(e,t,i,a){let r=[];if((0,h.isMotionValue)(e)||"number"==typeof e||"string"==typeof e&&!V(t))r.push((0,ee.animateSingleValue)(e,V(t)&&t.default||t,i&&i.default||i));else{if(null==e)return r;let n=Y(e,t,a),s=n.length;(0,F.invariant)(!!s,"No valid elements provided.","no-valid-elements");for(let e=0;e<s;e++){let a=n[e],l=a instanceof Element?ed:eu;et.visualElementStore.has(a)||l(a);let o=et.visualElementStore.get(a),c={...i};"delay"in c&&"function"==typeof c.delay&&(c.delay=c.delay(e,s)),r.push(...(0,ei.animateTarget)(o,{...t,transition:c},{}))}}return r}let ex=function(e={}){let{scope:t,reduceMotion:i}=e;return function(e,a,r){var n;let s,l=[];if(Array.isArray(e)&&e.some(Array.isArray)){let r,{onComplete:o,...c}=a||{};"function"==typeof o&&(s=o),n=void 0!==i?{reduceMotion:i,...c}:c,r=[],(function(e,{defaultTransition:t={},...i}={},a,r){let n=t.duration||.3,s=new Map,l=new Map,o={},c=new Map,d=0,u=0,p=0;for(let i=0;i<e.length;i++){let s=e[i];if("string"==typeof s){c.set(s,u);continue}if(!Array.isArray(s)){c.set(s.name,U(u,s.at,d,c));continue}let[m,g,b={}]=s;void 0!==b.at&&(u=U(u,b.at,d,c));let v=0,y=(e,i,a,s=0,l=0)=>{var o;let c=Array.isArray(o=e)?o:[o],{delay:d=0,times:x=(0,$.defaultOffset)(c),type:f=t.type||"ke
1yframes",repeat:m,repeatType:h,repeatDelay:g=0,...b}=i,{ease:y=t.ease||"easeOut",duration:j}=i,w="function"==typeof d?d(s,l):d,N=c.length,k=(0,I.isGenerator)(f)?f:r?.[f||"keyframes"];if(N<=2&&k){let e=100;2===N&&J(c)&&(e=Math.abs(c[1]-c[0]));let i={...t,...b};void 0!==j&&(i.duration=(0,B.secondsToMilliseconds)(j));let a=(0,O.createGeneratorEasing)(i,e,k);y=a.ease,j=a.duration}j??(j=n);let _=u+w;1===x.length&&0===x[0]&&(x[1]=1);let C=x.length-c.length;if(C>0&&(0,z.fillOffset)(x,C),1===c.length&&c.unshift(null),m){(0,F.invariant)(m<20,"Repeat count too high, must be less than 20","repeat-count-high");j*=m+1;let e=[...c],t=[...x],i=[...y=Array.isArray(y)?[...y]:[y]];for(let a=0;a<m;a++){c.push(...e);for(let r=0;r<e.length;r++)x.push(t[r]+(a+1)),y.push(0===r?"linear":H(i,r-1))}for(let e=0;e<x.length;e++)x[e]=x[e]/(m+1)}let T=_+j;!function(e,t,i,a,r,n){for(let t=0;t<e.length;t++){let i=e[t];i.at>r&&i.at<n&&((0,P.removeItem)(e,i),t--)}for(let s=0;s<t.length;s++)e.push({value:t[s],at:(0,X.mixNumber)(r,n,a[s]),easing:H(i,s)})}(a,c,y,x,_,T),v=Math.max(w+j,v),p=Math.max(T,p)};if((0,h.isMotionValue)(m))y(g,b,Z("default",Q(m,l)));else{let e=Y(m,g,a,o),t=e.length;for(let i=0;i<t;i++){let a=Q(e[i],l);for(let e in g){var x,f;
1y(g[e],(x=b,f=e,x&&x[f]?{...x,...x[f]}:{...x}),Z(e,a),i,t)}}}d=u,u+=v}return l.forEach((e,a)=>{for(let r in e){let n=e[r];n.sort(G);let l=[],o=[],c=[];for(let e=0;e<n.length;e++){let{at:t,value:i,easing:a}=n[e];l.push(i),o.push((0,D.progress)(0,p,t)),c.push(a||"easeOut")}0!==o[0]&&(o.unshift(0),l.unshift(l[0]),c.unshift("easeInOut")),1!==o[o.length-1]&&(o.push(1),l.push(null)),s.has(a)||s.set(a,{keyframes:{},transition:{}});let d=s.get(a);d.keyframes[r]=l;let{type:u,...x}=t;d.transition[r]={...x,duration:p,ease:c,times:o,...i}}}),s})(e.map(e=>{if(Array.isArray(e)&&"function"==typeof e[0]){let t=e[0],i=(0,m.motionValue)(0);return(i.on("change",t),1===e.length)?[i,[0,1]]:2===e.length?[i,[0,1],e[1]]:[i,e[1],e[2]]}return e}),n,t,{spring:E.spring}).forEach(({keyframes:e,transition:t},i)=>{r.push(...ep(i,e,t))}),l=r}else{let{onComplete:n,...o}=r||{};"function"==typeof n&&(s=n),l=ep(e,a,void 0!==i?{reduceMotion:i,...o}:o,t)}let o=new L(l);return s&&o.finished.then(s),t&&(t.animations.push(o),o.finished.then(()=>{(0,P.removeItem)(t.animations,o)})),o}}();e.i(422430),e.i(176061);var ef=e.i(858674),em=e.i(639068);let eh="var(--mask-height, 0.15em)",eg="var(--mask-width, 0.5em)",eb=`calc(${eg} / var(--invert-x, 1))`,ev="#000 0, transparent 71%",ey=`linear-gradient(to right, transparent 0, #000 ${eb}, #000 calc(100% - ${eb}), transparent),linear-gradient(to bottom, transparent 0, #000 ${eh}, #000 calc(100% - ${eh}), transparent 100%),radial-gradient(at bottom right, ${ev}),radial-gradient(at bottom left, ${ev}), radial-gradient(at top left, ${ev}), radial-gradient(at top right, ${ev})`,ej=`100% calc(100% - ${eh} * 2),calc(100% - ${eb} * 2) 100%,${eb} ${eh},${eb} ${eh},${eb} ${eh},${eb} ${eh}`;function ew({children:e,layoutDependency:i}){return(0,t.jsx)(R.motion.span,{layout:!0,layoutDependency:i,"aria-hidden":!0,style:{display:"inline-flex","--invert-x":1,margin:`0 calc(-1*${eg})`,padding:`calc(${eh}/2) ${eg}`,position:"relative",zIndex:-1,overflow:"clip",WebkitMaskImage:ey,WebkitMaskSize:ej,WebkitMaskPosition:"center, center, top left, top right, bottom right, bottom left",WebkitMaskRepeat:"no-repeat"},children:e})}function eN(){let e=(0,a.useRef)(!0);return(0,a.useEffect)(()=>{e.current=!1},[]),e.current}(0,em.addScaleCorrector)({"--invert-x":{correct:(e,{treeScale:t,projectionDelta:i})=>i.x.scale*t.x}});var ek=e.i(718015);function e_(e){let{width:t,fontSize:i}=getComputedStyle(e);return`${parseFloat(t)/parseFloat(i)}em`}let eC=new WeakMap,eT=(0,a.forwardRef)(function({value:e,initialValue:i=e,...r},n){let{transition:s}=(0,a.useContext)(b.MotionConfigContext),l=(0,a.useRef)(i).current,o=eN(),c=(0,a.useRef)(null),d=(0,a.useRef)(null);(0,a.useImperativeHandle)(n,()=>d.current,[]);let u=(0,a.useRef)(Array(10)),p=(0,ek.useIsPresent)(),x=p?e:0;(0,a.useLayoutEffect)(()=>{c.current&&u.current[l]&&(c.current.style.width=e_(u.current[l]))},[]);let f=(0,a.useRef)(i);(0,a.useLayoutEffect)(()=>{if(!c.current||x===f.current)return;let e=c.current.getBoundingClientRect(),t=d.current?.getBoundingClientRect(),i=e.height*(x-f.current)+(e.top-(t?t.top||0:e.top));return ex(c.current,{y:[i,0]},s),()=>{f.current=x}},[x]);let[m,h]=(0,a.useState)();(0,a.useEffect)(()=>{if(o&&l===x||!u.current[x])return;let e=e_(u.current[x]);d.current&&eC.set(d.current,e),h(e)},[x]);let g=e=>(0,t.jsx)("span",{style:{display:"inline-block",padding:`calc(${eh}/2) 0`},ref:t=>void(u.current[e]=t),children:e},e);return(0,t.jsx)(R.motion.span,{...r,ref:d,layout:"position","data-state":p?void 0:"exiting",style:{display:"inline-flex",justifyContent:"center",width:m},children:(0,t.jsxs)("span",{ref:c,style:{display:"inline-flex",justifyContent:"center",flexDirection:"column",alignItems:"center",position:"relative"},children:[0!==x&&(0,t.jsx)("span",{style:{...eR,bottom:"100%",left:0},children:Array(x).fill(null).map((e,t)=>g(t))}),g(x),9!==x&&(0,t.jsx)("span",{style:{...eR,top:"100%",left:0},children:Array(9-x).fill(null).map((e,t)=>g(x+t+1))})]})})}),eR={display:"flex",flexDirection:"column",alignItems:"center",position:"absolute",width:"100%"},eS=(0,a.createContext)({justify:"left"}),eA=(0,a.forwardRef)(function({partKey:e,type:i,children:r,layoutDependency:n,...s},l){let o=(0,ek.useIsPresent)(),{justify:c}=(0,a.useContext)(eS);return(0,t.jsx)(R.motion.span,{...s,"data-state":o?void 0:"exiting",style:{display:"inline-flex",justifyContent:c,padding:`calc(${eh}/2) 0`,position:"relative"},layout:"position",layoutDependency:n,ref:l,children:(0,t.jsx)(S.AnimatePresence,{mode:"popLayout",anchorX:c,initial:!1,children:(0,t.jsx)(R.motion.span,{layout:"right"===c&&"position",layoutDependency:n,initial:{opacity:0}
1,animate:{opacity:[null,1]},exit:{opacity:[null,0]},style:{display:"inline-block",whiteSpace:"pre"},children:r},r)})})}),eM=(0,a.forwardRef)(function({parts:e,justify:i="left",mode:r,style:n,name:s,layoutDependency:l,...o},c){let d=(0,a.useRef)(null);(0,a.useImperativeHandle)(c,()=>d.current,[]);let u=(0,a.useMemo)(()=>({justify:i}),[i]),p=(0,a.useRef)(null),x=eN(),[f,m]=(0,a.useState)();return(0,a.useEffect)(()=>{if(!p.current)return;if(x){d.current&&(d.current.style.width=e_(p.current));return}let e=Array.from(p.current.children).map(e=>{if(!(e instanceof HTMLElement))return;if("exiting"===e.dataset.state){let t=e.nextSibling;return e.remove(),()=>{p.current&&p.current.insertBefore(e,t)}}let t=eC.get(e);if(!t)return;let i=e.style.width;return e.style.width=t,()=>{e.style.width=i}});m(e_(p.current));for(let t=e.length-1;t>=0;t--){let i=e[t];i&&i()}},[e.map(e=>e.value).join("")]),(0,t.jsx)(eS.Provider,{value:u,children:(0,t.jsx)(R.motion.span,{layoutDependency:l,...o,ref:d,className:`number-section-${s}`,style:{...n,display:"inline-flex",justifyContent:i,width:f},children:(0,t.jsxs)("span",{ref:p,style:{display:"inline-flex",justifyContent:"inherit",position:"relative"},children:["​",(0,t.jsx)(S.AnimatePresence,{mode:r,anchorX:i,initial:!1,children:e.map(e=>"integer"===e.type||"fraction"===e.type?(0,t.jsx)(eT,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},value:e.value,initialValue:x?void 0:0,layoutDependency:l},e.key):(0,t.jsx)(eA,{type:e.type,partKey:e.key,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},layoutDependency:l,children:e.value},"literal"===e.type?`${e.key}:${e.value}`:e.key))})]})})})}),eL={opacity:{duration:1,ease:ef.easeOut},layout:{type:"spring",duration:1,bounce:0},y:{type:"spring",duration:1,bounce:0}},eP=(0,a.forwardRef)(function({children:e,locales:i,format:r,transition:n,style:s,suffix:l,prefix:o,...c},d){let{pre:u,integer:p,fraction:x,post:f,formatted:m}=(0,a.useMemo)(()=>((e,{locales:t,format:i},a,r)=>{let n=new Intl.NumberFormat(t,i).formatToParts(Number(e));a&&n.unshift({type:"prefix",value:a}),r&&n.push({type:"suffix",value:r});let s=[],l=[],o=[],c=[],d={},u=e=>`${e}:${d[e]=(d[e]??-1)+1}`,p="",x=!1,f=!1;for(let e of n){p+=e.value;let t="minusSign"===e.type||"plusSign"===e.type?"sign":e.type;switch(t){case"integer":x=!0,l.push(...e.value.split("").map(e=>({type:t,value:parseInt(e)})));break;case"group":l.push({type:t,value:e.value});break;case"decimal":f=!0,o.push({type:t,value:e.value,key:u(t)});break;case"fraction":o.push(...e.value.split("").map(e=>({type:t,value:parseInt(e),key:u(t)})));break;default:(x||f?c:s).push({type:t,value:e.value,key:u(t)})}}let m=[];for(let e=l.length-1;e>=0;e--)m.unshift({...l[e],key:u(l[e].type)});return{pre:s,integer:m,fraction:o,post:c,formatted:p}})(e,{locales:i,format:r},o,l),[e,i,r]),h=(0,a.useContext)(b.MotionConfigContext).transition;n=n??h??eL;let{layoutDependency:g}=c,v=(0,a.useMemo)(()=>{if(void 0!==g)return{layoutDependency:g,value:e}},[g,e]);return(0,t.jsx)(k,{children:(0,t.jsx)(T,{transition:n,children:(0,t.jsx)(R.motion.div,{...c,ref:d,layout:!0,layoutDependency:v,style:{lineHeight:1,...s,display:"inline-flex",isolation:"isolate",whiteSpace:"nowrap"},children:(0,t.jsxs)(R.motion.div,{layout:!0,layoutDependency:v,"aria-label":m,style:{display:"inline-flex",direction:"ltr",isolation:"isolate",position:"relative",zIndex:-1},children:[(0,t.jsx)(eM,{style:{padding:`calc(${eh}/2) 0`},layoutDependency:v,"aria-hidden":!0,justify:"right",mode:"popLayout",parts:u,name:"pre"}),(0,t.jsxs)(ew,{layoutDependency:v,children:[(0,t.jsx)(eM,{layoutDependency:v,justify:"right",parts:p,name:"integer"}),(0,t.jsx)(eM,{layout:"position",layoutDependency:v,parts:x,name:"fraction"})]}),(0,t.jsx)(eM,{style:{padding:`calc(${eh}/2) 0`},"aria-hidden":!0,layout:"position",layoutDependency:v,mode:"popLayout",parts:f,name:"post"})]})})})})});R.motion.create(a.Fragment),e.i(460208),e.i(470919),(0,a.createContext)(void 0),e.i(250438),e.i(918699),e.i(461358);var eE=e.i(596168),e$=e.i(885010),eI=e.i(430056);let eO={slow:130,normal:75,fast:30};(0,a.forwardRef)(function({children:e="",as:i,speed:r="normal",variance:n="natural",cursorClassName:s="motion-typewriter-cursor",cursorStyle:l,cursorBlinkDuration:o=.5,onComplete:c,play:d=!0,"aria-label":u,textClassName:p,textStyle:x,replace:f="type",backspace:h="character",backspaceFactor:g=.2,...y},j){let w=(0,a.useRef)(e),N=function(e){let t=(0,v.useConstant)(()=>(0,m.motionValue)("")),{isStatic:i}=(0,a.useContext)(b.MotionConfigContext);if(i){let[,e]=(0,a.useState)("");(0,a.useEffect)(()=>t.on("change",e),[])}return t}(0),k=(0,a.useRef)(null),_=(0,a.useRef)(null),C=(0,a.useRef)(null),T="number"==typeof r?r:eO[r],S=()=>{k.current?.(),k.current=null},A=()=>{_.current=ex(C.current,{opacity:[1,1,0,0]},{duration:o,times:[0,.5,.5,1],ease:"linear",repeat:1/0,repeatType:"reverse"})};return(0,a.useEffect)(()=>{"all"===f&&e!==w.current&&N.set(""),w.current=e},[e,f]),(0,a.useEffect)(()=>{if(!d){A(),S();return}_.current?.cancel();let t=()=>{let t=(0,e$.getNextText)(N.get(),e,f,h);N.set(t),t!==e?i():(A(),c?.())},i=()=>{k.current=(0,eI.delay)(t,(0,eE.getTypewriterDelay)(e,N.get(),T,n,g))};return k.current||i(),S},[d,c,e,T,n,g,h]),(0,t.jsxs)(i||"span",{ref:j,...y,"aria-label":u||e,children:[(0,t.jsx)(R.motion.span,{className:p,style:x,children:N}),(0,t.jsx)(R.motion.span,{ref:C,className:s,style:{display:"inline-block",width:"2px",height:"1em",backgroundColor:"currentColor",position:"relative",top:"0.1em",left:"0.2em",...l}})]})}),e.s([],315532),e.i(315532);var ez=e.i(869931),eD=e.i(741173),eB=e.i(583979),eF=e.i(9413),eW=e.i(987099),eH=e.i(922353),eq=e.i(291967),eV=e.i(136567),eY=e.i(285565),eU=e.i(18731),eX=e.i(690816),eG=e.i(411207),eQ="Collapsible",[eZ,eK]=(0,eF.createContextScope)(eQ),[eJ,e0]=eZ(eQ),e1=a.forwardRef((e,i)=>{let{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:l,onOpenChange:o,...c}=e,[d,u]=(0,eV.useControllableState)({prop:n,defaultProp:s??!1,onChange:o,caller:eQ});return(0,t.jsx)(eJ,{scope:r,disabled:l,contentId:(0,eG.useId)(),open:d,onOpenToggle:a.useCallback(()=>u(e=>!e),[u]),children:(0,t.jsx)(eY.Primitive.div,{"data-state":e8(d),"data-disabled":l?"":void 0,...c,ref:i})})});e1.displayName=eQ;var e5="CollapsibleTrigger",e2=a.forwardRef((e,i)=>{let{__scopeCollapsible:a,...r}=e,n=e0(e5,a);return(0,t.jsx)(eY.Primitive.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":e8(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:i,onClick:(0,eq.composeEventHandlers)(e.onClick,n.onOpenToggle)})});e2.displayName=e5;var e3="CollapsibleContent",e6=a.forwardRef((e,i)=>{let{forceMount:a,...r}=e,n=e0(e3,e.__scopeCollapsible);return(0,t.jsx)(eX.Presence,{present:a||n.open,children:({present:e})=>(0,t.jsx)(e4,{...r,ref:i,present:e})})});e6.displayName=e3;var e4=a.forwardRef((e,i)=>{let{__scopeCollapsible:r,present:n,children:s,...l}
1=e,o=e0(e3,r),[c,d]=a.useState(n),u=a.useRef(null),p=(0,eH.useComposedRefs)(i,u),x=a.useRef(0),f=x.current,m=a.useRef(0),h=m.current,g=o.open||c,b=a.useRef(g),v=a.useRef(void 0);return a.useEffect(()=>{let e=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eU.useLayoutEffect)(()=>{let e=u.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();x.current=t.height,m.current=t.width,b.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),d(n)}},[o.open,n]),(0,t.jsx)(eY.Primitive.div,{"data-state":e8(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...l,ref:p,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&s})});function e8(e){return e?"open":"closed"}var e7=e.i(775649),e9="Accordion",te=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[tt,ti,ta]=(0,eW.createCollection)(e9),[tr,tn]=(0,eF.createContextScope)(e9,[ta,eK]),ts=eK(),tl=a.default.forwardRef((e,i)=>{let{type:a,...r}=e;return(0,t.jsx)(tt.Provider,{scope:e.__scopeAccordion,children:"multiple"===a?(0,t.jsx)(tx,{...r,ref:i}):(0,t.jsx)(tp,{...r,ref:i})})});tl.displayName=e9;var[to,tc]=tr(e9),[td,tu]=tr(e9,{collapsible:!1}),tp=a.default.forwardRef((e,i)=>{let{value:r,defaultValue:n,onValueChange:s=()=>{},collapsible:l=!1,...o}=e,[c,d]=(0,eV.useControllableState)({prop:r,defaultProp:n??"",onChange:s,caller:e9});return(0,t.jsx)(to,{scope:e.__scopeAccordion,value:a.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:a.default.useCallback(()=>l&&d(""),[l,d]),children:(0,t.jsx)(td,{scope:e.__scopeAccordion,collapsible:l,children:(0,t.jsx)(th,{...o,ref:i}
1)})})}),tx=a.default.forwardRef((e,i)=>{let{value:r,defaultValue:n,onValueChange:s=()=>{},...l}=e,[o,c]=(0,eV.useControllableState)({prop:r,defaultProp:n??[],onChange:s,caller:e9}),d=a.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=a.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(to,{scope:e.__scopeAccordion,value:o,onItemOpen:d,onItemClose:u,children:(0,t.jsx)(td,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(th,{...l,ref:i})})})}),[tf,tm]=tr(e9),th=a.default.forwardRef((e,i)=>{let{__scopeAccordion:r,disabled:n,dir:s,orientation:l="vertical",...o}=e,c=a.default.useRef(null),d=(0,eH.useComposedRefs)(c,i),u=ti(r),p="ltr"===(0,e7.useDirection)(s),x=(0,eq.composeEventHandlers)(e.onKeyDown,e=>{if(!te.includes(e.key))return;let t=e.target,i=u().filter(e=>!e.ref.current?.disabled),a=i.findIndex(e=>e.ref.current===t),r=i.length;if(-1===a)return;e.preventDefault();let n=a,s=r-1,o=()=>{(n=a+1)>s&&(n=0)},c=()=>{(n=a-1)<0&&(n=s)};switch(e.key){case"Home":n=0;break;case"End":n=s;break;case"ArrowRight":"horizontal"===l&&(p?o():c());break;case"ArrowDown":"vertical"===l&&o();break;case"ArrowLeft":"horizontal"===l&&(p?c():o());break;case"ArrowUp":"vertical"===l&&c()}let d=n%r;i[d].ref.current?.focus()});return(0,t.jsx)(tf,{scope:r,disabled:n,direction:s,orientation:l,children:(0,t.jsx)(tt.Slot,{scope:r,children:(0,t.jsx)(eY.Primitive.div,{...o,"data-orientation":l,ref:d,onKeyDown:n?void 0:x})})})}),tg="AccordionItem",[tb,tv]=tr(tg),ty=a.default.forwardRef((e,i)=>{let{__scopeAccordion:a,value:r,...n}=e,s=tm(tg,a),l=tc(tg,a),o=ts(a),c=(0,eG.useId)(),d=r&&l.value.includes(r)||!1,u=s.disabled||e.disabled;return(0,t.jsx)(tb,{scope:a,open:d,disabled:u,triggerId:c,children:(0,t.jsx)(e1,{"data-orientation":s.orientation,"data-state":tT(d),...o,...n,ref:i,disabled:u,open:d,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});ty.displayName=tg;var tj="AccordionHeader",tw=a.default.forwardRef((e,i)=>{let{__scopeAccordion:a,...r}=e,n=tm(e9,a),s=tv(tj,a);return(0,t.jsx)(eY.Primitive.h3,{"data-orientation":n.orientation,"data-state":tT(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:i})});tw.displayName=tj;var tN="AccordionTrigger",tk=a.default.forwardRef((e,i)=>{let{__scopeAccordion:a,...r}=e,n=tm(e9,a),s=tv(tN,a),l=tu(tN,a),o=ts(a);return(0,t.jsx)(tt.ItemSlot,{scope:a,children:(0,t.jsx)(e2,{"aria-disabled":s.open&&!l.collapsible||void 0,"data-orientation":n.orientation,id:s.triggerId,...o,...r,ref:i})})});tk.displayName=tN;var t_="AccordionContent",tC=a.default.forwardRef((e,i)=>{let{__scopeAccordion:a,...r}=e,n=tm(e9,a),s=tv(t_,a),l=ts(a);return(0,t.jsx)(e6,{role:"region","aria-labelledby":s.triggerId,"data-orientation":n.orientation,...l,...r,ref:i,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function tT(e){return e?"open":"closed"}tC.displayName=t_;var tR=e.i(21106),tS=e.i(153065);function tA({children:e,isValidProp:i,...r}){i&&(0,tS.loadExternalIsValidProp)(i);let n=(0,a.useContext)(u.MotionConfigContext);(r={...n,...r}).transition=(0,tR.resolveTransition)(r.transition,n.transition),r.isStatic=(0,d.useConstant)(()=>r.isStatic);let s=(0,a.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion,r.skipAnimations]);return(0,t.jsx)(u.MotionConfigContext.Provider,{value:s,children:e})}var tM=e.i(544052);function tL({items:e,className:i,defaultValue:r}){let[n,s]=(0,a.useState)(r??""),l=(0,a.useId)();return(0,t.jsx)(tA,{transition:{type:"spring",bounce:.15,visualDuration:.35},children:(0,t.jsx)(tl,{type:"single",value:n,onValueChange:s,className:(0,tM.cn)("w-full",i),id:l,children:e.map((i,a)=>(0,t.jsx)(tP,{item:i,value:`item-${a}`,isOpen:n===`item-${a}`,setValue:s,isLast:a===e.length-1},a))})})}function tP({item:e,value:i,isOpen:a,setValue:r,isLast:l}){return(0,t.jsxs)(ty,{value:i,className:"relative",children:[(0,t.jsx)(tw,{children:(0,t.jsx)(tk,{asChild:!0,children:(0,t.jsxs)(n.motion.button,{className:"flex w-full cursor-pointer items-center justify-between py-5 text-left text-[14px] font-medium text-foreground",whileTap:{scale:.995},onClick:()=>r(a?"":i),children:[(0,t.jsx)("span",{className:"pr-4",children:e.question}),(0,t.jsx)(n.motion.div,{animate:{rotate:180*!!a},transition:{type:"spring",bounce:.15,visualDuration:.3},children:(0,t.jsx)(ez.RiArrowDownSLine,{size:16,className:"shrink-0 text-foreground
vendor: 13,052 bytes, line 1
1/30"})})]})})}),(0,t.jsx)(s.AnimatePresence,{initial:!1,children:a&&(0,t.jsx)(tC,{forceMount:!0,asChild:!0,children:(0,t.jsx)(n.motion.div,{className:"overflow-hidden",variants:{open:{height:"auto",maskImage:"linear-gradient(to bottom, black 100%, transparent 100%)"},closed:{height:0,maskImage:"linear-gradient(to bottom, black 50%, transparent 100%)"}},initial:"closed",animate:"open",exit:"closed",children:(0,t.jsx)(n.motion.div,{variants:{open:{filter:"blur(0px)",opacity:1},closed:{filter:"blur(2px)",opacity:0}},children:(0,t.jsx)("p",{className:"pb-5 text-[13px] leading-[22px] text-foreground/46",children:e.answer})})})})}),!l&&(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-px bg-foreground/[0.06]"})]})}function tE(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var tI,tO,tz,tD,tB,tF,tW,tH,tq,tV,tY,tU,tX,tG,tQ,tZ,tK,tJ,t0,t1,t5,t2,t3,t6,t4,t8,t7={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},t9={duration:.5,overwrite:!1,delay:0},ie=2*Math.PI,it=ie/4,ii=0,ia=Math.sqrt,ir=Math.cos,is=Math.sin,il=function(e){return"string"==typeof e},io=function(e){return"function"==typeof e},ic=function(e){return"number"==typeof e},id=function(e){return void 0===e},iu=function(e){return"object"==typeof e},ip=function(e){return!1!==e},ix=function(){return"u">typeof window},im=function(e){return io(e)||il(e)},ih="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},ig=Array.isArray,ib=/random\([^)]+\)/g,iv=/,\s*/g,iy=/(?:-?\.?\d|\.)+/gi,ij=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,iw=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,iN=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ik=/[+-]=-?[.\d]+/,i_=/[^,'"\[\]\s]+/gi,iC=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,iT={},iR={},iS=function(e){return(iR=i6(e,iT))&&rZ},iA=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},iM=function(e,t){return!t&&console.warn(e)},iL=function(e,t){return e&&(iT[e]=t)&&iR&&(iR[e]=t)||iT},iP=function(){return 0},iE={suppressEvents:!0,isStart:!0,kill:!1},i$={suppressEvents:!0,kill:!1},iI={suppressEvents:!0},iO={},iz=[],iD={},iB={},iF={},iW=30,iH=[],iq="",iV=function(e){var t,i,a=e[0];if(iu(a)||io(a)||(e=[e]),!(t=(a._gsap||{}).harness)){for(i=iH.length;i--&&!iH[i].targetTest(a););t=iH[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new ra(e[i],t)))||e.splice(i,1);return e},iY=function(e){return e._gsap||iV(aS(e))[0]._gsap},iU=function(e,t,i){return(i=e[t])&&io(i)?e[t]():id(i)&&e.getAttribute&&e.getAttribute(t)||i},iX=function(e,t){return(e=e.split(",")).forEach(t)||e},iG=function(e){return Math.round(1e5*e)/1e5||0},iQ=function(e){return Math.round(1e7*e)/1e7||0},iZ=function(e,t){var i=t.charAt(0),a=parseFloat(t.substr(2));return e=parseFloat(e),"+"===i?e+a:"-"===i?e-a:"*"===i?e*a:e/a},iK=function(e,t){for(var i=t.length,a=0;0>e.indexOf(t[a])&&++a<i;);return a<i},iJ=function(){var e,t,i=iz.length,a=iz.slice(0);for(e=0,iD={},iz.length=0;e<i;e++)(t=a[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},i0=function(e){return!!(e._initted||e._startAt||e.add)},i1=function(e,t,i,a){iz.length&&!tK&&iJ(),e.render(t,i,a||!!(tK&&t<0&&i0(e))),iz.length&&!tK&&iJ()},i5=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(i_).length<2?t:il(e)?e.trim():e},i2=function(e){return e},i3=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},i6=function(e,t){for(var i in t)e[i]=t[i];return e},i4=function e(t,i){for(var a in i)"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&(t[a]=iu(i[a])?e(t[a]||(t[a]={}),i[a]):i[a]);return t},i8=function(e,t){var i,a={};for(i in e)i in t||(a[i]=e[i]);return a},i7=function(e){var t,i=e.parent||t0,a=e.keyframes?(t=ig(e.keyframes),function(e,i){for(var a in i)a in e||"duration"===a&&t||"ease"===a||(e[a]=i[a])}):i3;if(ip(e.inherit))for(;i;)a(e,i.vars.defaults),i=i.parent||i._dp;return e},i9=function(e,t){for(var i=e.length,a=i===t.length;a&&i--&&e[i]===t[i];);return i<0},ae=function(e,t,i,a,r){void 0===i&&(i="_first"),void 0===a&&(a="_last");var n,s=e[a];if(r)for(n=t[r];s&&s[r]>n;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[a]=t,t._prev=s,t.parent=t._dp=e,t},at=function(e,t,i,a){void 0===i&&(i="_first"),void 0===a&&(a="_last");var r=t._prev,n=t._next;r?r._next=n:e[i]===t&&(e[i]=n),n?n._prev=r:e[a]===t&&(e[a]=r),t._next=t._prev=t.parent=null},ai=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},aa=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},ar=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},an=function(e,t,i,a){return e._startAt&&(tK?e._startAt.revert(i$):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,a))},as=function(e){return e._repeat?al(e._tTime,e=e.duration()+e._rDelay)*e:0},al=function(e,t){var i=Math.floor(e=iQ(e/t));return e&&i===e?i-1:i},ao=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},ac=function(e){return e._end=iQ(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},ad=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=iQ(i._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),ac(e),i._dirty||aa(i,e)),e},au=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(i=ao(e.rawTime(),t),(!t._dur||a_(0,t.totalDuration(),i)-t._tTime>1e-8)&&t.render(i,!0)),aa(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(i=e;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-1e-8}},ap=function(e,t,i,a){return t.parent&&ai(t),t._start=iQ((ic(i)?i:i||e!==t0?aw(e,i,t):e._time)+t._delay),t._end=iQ(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),ae(e,t,"_first","_last",e._sort?"_start":0),ah(t)||(e._recent=t),a||au(e,t),e._ts<0&&ad(e,e._tTime),e},ax=function(e,t){return(iT.ScrollTrigger||iA("scrollTrigger",t))&&iT.ScrollTrigger.create(t,e)},af=function(e,t,i,a,r){return(rh(e,t,r),e._initted)?!i&&e._pt&&!tK&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&t6!==aK.frame?(iz.push(e),e._lazy=[r,a],1):void 0:1},am=function e(t){var i=t.parent;return i&&i._ts&&i._initted&&!i._lock&&(0>i.rawTime()||e(i))},ah=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},ag=function(e,t,i,a){var r,n,s,l=e.ratio,o=t<0||!t&&(!e._start&&am(e)&&!(!e._initted&&ah(e))||(e._ts<0||e._dp._ts<0)&&!ah(e))?0:1,c=e._rDelay,d=0;if(c&&e._repeat&&(n=al(d=a_(0,e._tDur,t),c),e._yoyo&&1&n&&(o=1-o),n!==al(e._tTime,c)&&(l=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==l||tK||a||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&af(e,t,a,i,d))return;for(s=e._zTime,e._zTime=t||1e-8*!!i,i||(i=t&&!s),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=d,r=e._pt;r;)r.r(o,r.d),r=r._next;t<0&&an(e,t,i,!0),e._onUpdate&&!i&&aB(e,"onUpdate"),d&&e._repeat&&!i&&e.parent&&aB(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&ai(e,1),i||tK||(aB(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},ab=function(e,t,i){var a;if(i>t)for(a=e._first;a&&a._start<=i;){if("isPause"===a.data&&a._start>t)return a;a=a._next}else for(a=e._last;a&&a._start>=i;){if("isPause"===a.data&&a._start<t)return a;a=a._prev}},av=function(e,t,i,a){var r=e._repeat,n=iQ(t)||0,s=e._tTime/e._tDur;return s&&!a&&(e._time*=n/e._dur),e._dur=n,e._tDur=r?r<0?1e10:iQ(n*(r+1)+e._rDelay*r):n,s>0&&!a&&ad(e,e._tTime=e._tDur*s),e.parent&&ac(e),i||aa(e.parent,e),e},ay=function(e){return e instanceof rn?aa(e):av(e,e._dur)},aj={_start:0,endTime:iP,totalDuration:iP},aw=function e(t,i,a){var r,n,s,l=t.labels,o=t._recent||aj,c=t.duration()>=1e8?o.endTime(!1):t._dur;return il(i)&&(isNaN(i)||i in l)?(n=i.charAt(0),s="%"===i.substr(-1),r=i.indexOf("="),"<"===n||">"===n)?(r>=0&&(i=i.replace(/=/,"")),("<"===n?o._start:o.endTime(o._repeat>=0))+(parseFloat(i.substr(1))||0)*(s?(r<0?o:a).totalDuration()/100:1)):r<0?(i in l||(l[i]=c),l[i]):(n=parseFloat(i.charAt(r-1)+i.substr(r+1)),s&&a&&(n=n/100*(ig(a)?a[0]:a).totalDuration()),r>1?e(t,i.substr(0,r-1),a)+n:c+n):null==i?c:+i},aN=function(e,t,i){var a,r,n=ic(t[1]),s=(n?2:1)+(e<2?0:1),l=t[s];if(n&&(l.duration=t[1]),l.parent=i,e){for(a=l,r=i;r&&!("immediateRender"in a);)a=r.vars.defaults||{},r=ip(r.vars.inherit)&&r.parent;l.immediateRender=ip(a.immediateRender),e<2?l.runBackwards=1:l.startAt=t[s-1]}return new rN(t[0],l,t[s+1])},ak=function(e,t){return e||0===e?t(e):t},a_=function(e,t,i){return i<e?e:i>t?t:i},aC=function(e,t){return il(e)&&(t=iC.exec(e))?t[1]:""},aT=[].slice,aR=function(e,t){return e&&iu(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&iu(e[0]))&&!e.nodeType&&e!==t1},aS=function(e,t,i){var a;return tJ&&!t&&tJ.selector?tJ.selector(e):il(e)&&!i&&(t5||!aJ())?aT.call((t||t2).querySelectorAll(e),0):ig(e)?(void 0===a&&(a=[]),e.forEach(function(e){var t;return il(e)&&!i||aR(e,1)?(t=a).push.apply(t,aS(e)):a.push(e)})||a):aR(e)?aT.call(e,0):e?[e]:[]},aA=function(e){return e=aS(e)[0]||iM("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return aS(t,i.querySelectorAll?i:i===e?iM("Invalid scope")||t2.createElement("div"):e)}},aM=function(e){return e.sort(function(){return .5-Math.random()})},aL=function(e){if(io(e))return e;var t=iu(e)?e:{each:e},i=a7(t.ease),a=t.from||0,r=parseFloat(t.base)||0,n={},s=a>0&&a<1,l=isNaN(a)||s,o=t.axis,c=a,d=a;return il(a)?c=d=({center:.5,edges:.5,end:1})[a]||0:!s&&l&&(c=a[0],d=a[1]),function(e,s,u){var p,x,f,m,h,g,b,v,y,j=(u||t).length,w=n[j];if(!w){if(!(y="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(b=-1e8;b<(b=u[y++].getBoundingClientRect().left)&&y<j;);y<j&&y--}for(g=0,w=n[j]=[],p=l?Math.min(y,j)*c-.5:a%y,x=1e8===y?0:l?j*d/y-.5:a/y|0,b=0,v=1e8;g<j;g++)f=g%y-p,m=x-(g/y|0),w[g]=h=o?Math.abs("y"===o?m:f):ia(f*f+m*m),h>b&&(b=h),h<v&&(v=h);"random"===a&&aM(w),w.max=b-v,w.min=v,w.v=j=(parseFloat(t.amount)||parseFloat(t.each)*(y>j?j-1:o?"y"===o?j/y:y:Math.max(y,j/y))||0)*("edges"===a?-1:1),w.b=j<0?r-j:r,w.u=aC(t.amount||t.each)||0,i=i&&j<0?a4(i):i}return j=(w[e]-w.min)/w.max||0,iQ(w.b+(i?i(j):j)*w.v)+w.u}},aP=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var a=iQ(Math.round(parseFloat(i)/e)*e*t);return(a-a%1)/t+(ic(i)?0:aC(i))}},aE=function(e,t){var i,a,r=ig(e);return!r&&iu(e)&&(i=r=e.radius||1e8,e.values?(a=!ic((e=aS(e.values))[0]))&&(i*=i):e=aP(e.increment)),ak(t,r?io(e)?function(t){return Math.abs((a=e(t))-t)<=i?a:t}:function(t){for(var r,n,s=parseFloat(a?t.x:t),l=parseFloat(a?t.y:0),o=1e8,c=0,d=e.length;d--;)(r=a?(r=e[d].x-s)*r+(n=e[d].y-l)*n:Math.abs(e[d]-s))<o&&(o=r,c=d);return c=!i||o<=i?e[c]:t,a||c===t||ic(t)?c:c+aC(t)}:aP(e))},a$=function(e,t,i,a){return ak(ig(e)?!t:!0===i?(i=0,!1):!a,function(){return ig(e)?e[~~(Math.random()*e.length)]:(a=(i=i||1e-5)<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e-i/2+Math.random()*(t-e+.99*i))/i)*i*a)/a})},aI=function(e,t,i){return ak(i,function(i){return e[~~t(i)]})},aO=function(e){return e.replace(ib,function(e){var t=e.indexOf("[")+1,i=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(iv);return a$(t?i:+i[0],t?0:+i[1],+i[2]||1e-5)})},az=function(e,t,i,a,r){var n=t-e,s=a-i;return ak(r,function(t){return i+((t-e)/n*s||0)})},aD=function(e,t,i){var a,r,n,s=e.labels,l=1e8;for(a in s)(r=s[a]-t)<0==!!i&&r&&l>(r=Math.abs(r))&&(n=a,l=r);return n},aB=function(e,t,i){var a,r,n,s=e.vars,l=s[t],o=tJ,c=e._ctx;if(l)return a=s[t+"Params"],r=s.callbackScope||e,i&&iz.length&&iJ(),c&&(tJ=c),n=a?l.apply(r,a):l.call(r),tJ=o,n},aF=function(e){return ai(e),e.scrollTrigger&&e.scrollTrigger.kill(!!tK),1>e.progress()&&aB(e,"onInterrupt"),e},aW=[],aH=function(e){if(e)if(e=!e.name&&e.default||e,ix()||e.headless){var t=e.name,i=io(e),a=t&&!i&&e.init?function(){this._props=[]}:e,r={init:iP,render:rL,add:rx,kill:rE,modifier:rP,rawVars:0},n={targetTest:0,get:0,getSetter:rR,aliases:{},register:0};if(aJ(),e!==a){if(iB[t])return;i3(a,i3(i8(e,r),n)),i6(a.prototype,i6(r,i8(e,n))),iB[a.prop=t]=a,e.targetTest&&(iH.push(a),iO[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}iL(t,a),e.register&&e.register(rZ,a,rO)}else aW.push(e)},aq={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},aV=function(e,t,i){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(i-t)*e*6:e<.5?i:3*e<2?t+(i-t)*(2/3-e)*6:t)*255+.5|0},aY=function(e,t,i){var a,r,n,s,l,o,c,d,u,p,x=e?ic(e)?[e>>16,e>>8&255,255&e]:0:aq.black;if(!x){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),aq[e])x=aq[e];else if("#"===e.charAt(0)){if(e.length<6&&(a=e.charAt(1),e="#"+a+a+(r=e.charAt(2))+r+(n=e.charAt(3))+n+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(x=p
vendor: 10,746 bytes, line 1
1arseInt(e.substr(1,6),16))>>16,x>>8&255,255&x,parseInt(e.substr(7),16)/255];x=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(x=p=e.match(iy),t){if(~e.indexOf("="))return x=e.match(ij),i&&x.length<4&&(x[3]=1),x}else s=x[0]%360/360,l=x[1]/100,r=(o=x[2]/100)<=.5?o*(l+1):o+l-o*l,a=2*o-r,x.length>3&&(x[3]*=1),x[0]=aV(s+1/3,a,r),x[1]=aV(s,a,r),x[2]=aV(s-1/3,a,r);else x=e.match(iy)||aq.transparent;x=x.map(Number)}return t&&!p&&(a=x[0]/255,o=((c=Math.max(a,r=x[1]/255,n=x[2]/255))+(d=Math.min(a,r,n)))/2,c===d?s=l=0:(u=c-d,l=o>.5?u/(2-c-d):u/(c+d),s=(c===a?(r-n)/u+6*(r<n):c===r?(n-a)/u+2:(a-r)/u+4)*60),x[0]=~~(s+.5),x[1]=~~(100*l+.5),x[2]=~~(100*o+.5)),i&&x.length<4&&(x[3]=1),x},aU=function(e){var t=[],i=[],a=-1;return e.split(aG).forEach(function(e){var r=e.match(iw)||[];t.push.apply(t,r),i.push(a+=r.length+1)}),t.c=i,t},aX=function(e,t,i){var a,r,n,s,l="",o=(e+l).match(aG),c=t?"hsla(":"rgba(",d=0;if(!o)return e;if(o=o.map(function(e){return(e=aY(e,t,1))&&c+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),i&&(n=aU(e),(a=i.c).join(l)!==n.c.join(l)))for(s=(r=e.replace(aG,"1").split(iw)).length-1;d<s;d++)l+=r[d]+(~a.indexOf(d)?o.shift()||c+"0,0,0,0)":(n.length?n:o.length?o:i).shift());if(!r)for(s=(r=e.split(aG)).length-1;d<s;d++)l+=r[d]+o[d];return l+r[s]},aG=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in aq)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),aQ=/hsl[a]?\(/,aZ=function(e){var t,i=e.join(" ");if(aG.lastIndex=0,aG.test(i))return t=aQ.test(i),e[1]=aX(e[1],t),e[0]=aX(e[0],t,aU(e[1])),!0},aK=(tW=Date.now,tH=500,tq=33,tY=tV=tW(),tU=1e3/240,tX=1e3/240,tG=[],tQ=function e(t){var i,a,r,n,s=tW()-tY,l=!0===t;if((s>tH||s<0)&&(tV+=s-tq),tY+=s,((i=(r=tY-tV)-tX)>0||l)&&(n=++tD.frame,tB=r-1e3*tD.time,tD.time=r/=1e3,tX+=i+(i>=tU?4:tU-i),a=1),l||(tI=tO(e)),a)for(tF=0;tF<tG.length;tF++)tG[tF](r,tB,n,t)},tD={time:0,frame:0,tick:function(){tQ(!0)},deltaRatio:function(e){return tB/(1e3/(e||60))},wake:function(){t3&&(!t5&&ix()&&(t2=(t1=t5=window).document||{},iT.gsap=rZ,(t1.gsapVersions||(t1.gsapVersions=[])).push(rZ.version),iS(iR||t1.GreenSockGlobals||!t1.gsap&&t1||{}),aW.forEach(aH)),tz="u">typeof requestAnimationFrame&&requestAnimationFrame,tI&&tD.sleep(),tO=tz||function(e){return setTimeout(e,tX-1e3*tD.time+1|0)},t8=1,tQ(2))},sleep:function(){(tz?cancelAnimationFrame:clearTimeout)(tI),t8=0,tO=iP},lagSmoothing:function(e,t){tq=Math.min(t||33,tH=e||1/0)},fps:function(e){tU=1e3/(e||240),tX=1e3*tD.time+tU},add:function(e,t,i){var a=t?function(t,i,r,n){e(t,i,r,n),tD.remove(a)}:e;return tD.remove(e),tG[i?"unshift":"push"](a),aJ(),a},remove:function(e,t){~(t=tG.indexOf(e))&&tG.splice(t,1)&&tF>=t&&tF--},_listeners:tG}),aJ=function(){return!t8&&aK.wake()},a0={},a1=/^[\d.\-M][\d.\-,\s]/,a5=/["']/g,a2=function(e){for(var t,i,a,r={},n=e.substr(1,e.length-3).split(":"),s=n[0],l=1,o=n.length;l<o;l++)i=n[l],t=l!==o-1?i.lastIndexOf(","):i.length,a=i.substr(0,t),r[s]=isNaN(a)?a.replace(a5,"").trim():+a,s=i.substr(t+1).trim();return r},a3=function(e){var t=e.indexOf("(")+1,i=e.indexOf(")"),a=e.indexOf("(",t);return e.substring(t,~a&&a<i?e.indexOf(")",i+1):i)},a6=function(e){var t=(e+"").split("("),i=a0[t[0]];return i&&t.length>1&&i.config?i.config.apply(null,~e.indexOf("{")?[a2(t[1])]:a3(e).split(",").map(i5)):a0._CE&&a1.test(e)?a0._CE("",e):i},a4=function(e){return function(t){return 1-e(1-t)}},a8=function e(t,i){for(var a,r=t._first;r;)r instanceof rn?e(r,i):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===i||(r.timeline?e(r.timeline,i):(a=r._ease,r._ease=r._yEase,r._yEase=a,r._yoyo=i)),r=r._next},a7=function(e,t){return e&&(io(e)?e:a0[e]||a6(e))||t},a9=function(e,t,i,a){void 0===i&&(i=function(e){return 1-t(1-e)}),void 0===a&&(a=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var r,n={easeIn:t,easeOut:i,easeInOut:a};return iX(e,function(e){for(var t in a0[e]=iT[e]=n,a0[r=e.toLowerCase()]=i,n)a0[r+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=a0[e+"."+t]=n[t]}),n},re=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},rt=function e(t,i,a){var r=i>=1?i:1,n=(a||(t?.3:.45))/(i<1?i:1),s=n/ie*(Math.asin(1/r)||0),l=function(e){return 1===e?1:r*Math.pow(2,-10*e)*is((e-s)*n)+1},o="out"===t?l:"in"===t?function(e){return 1-l(1-e)}:re(l);return n=ie/n,o.config=function(i,a){return e(t,i,a)},o},ri=function e(t,i){void 0===i&&(i=1.70158);var a=function(e){return e?--e*e*((i+1)*e+i)+1:0},r="out"===t?a:"in"===t?function(e){return 1-a(1-e)}:re(a);return r.config=function(i){return e(t,i)},r};iX("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var i=t<5?t+1:t;a9(e+",Power"+(i-1),t?function(e){return Math.pow(e,i)}:function(e){return e},function(e){return 1-Math.pow(1-e,i)},function(e){return e<.5?Math.pow(2*e,i)/2:1-Math.pow((1-e)*2,i)/2})}),a0.Linear.easeNone=a0.none=a0.Linear.easeIn,a9("Elastic",rt("in"),rt("out"),rt()),rl=2*(rs=1/2.75),ro=2.5*rs,a9("Bounce",function(e){return 1-rc(1-e)},rc=function(e){return e<rs?7.5625*e*e:e<rl?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<ro?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),a9("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),a9("Circ",function(e){return-(ia(1-e*e)-1)}),a9("Sine",function(e){return 1===e?1:-ir(e*it)+1}),a9("Back",ri("in"),ri("out"),ri()),a0.SteppedEase=a0.steps=iT.SteppedEase={config:function(e,t){void 0===e&&(e=1);var i=1/e,a=e+ +!t,r=+!!t,n=.99999999;return function(e){return((a*a_(0,n,e)|0)+r)*i}}},t9.ease=a0["quad.out"],iX("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return iq+=e+","+e+"Params,"});var ra=function(e,t){this.id=ii++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:iU,this.set=t?t.getSetter:rR},rr=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,av(this,+e.duration,1,1),this.data=e.data,tJ&&(this._ctx=tJ,tJ.data.push(this)),t8||aK.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(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,av(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(aJ(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(ad(this,e),!i._dp||i.parent||au(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:-((i.totalDuration()-i._tTime)/i._ts))&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&ap(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),i1(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+as(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&&!(1&this.iteration())?1-e:e)+as(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*i,t):this._repeat?al(this._tTime,i)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var i=this.parent&&this._ts?ao(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(a_(-Math.abs(this._delay),this.totalDuration(),i),!1!==t),ac(this),ar(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):(aJ(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=iQ(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&ap(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(ip(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&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?ao(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=iI);var t=tK;return tK=e,i0(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),tK=t,this},t.globalTime=function(e){for(var t=this,i=arguments.length?e:t.rawTime();t;)i=t._start+i/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):i},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,ay(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,ay(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(aw(this,e),ip(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,ip(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&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?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,i=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=i&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,i){var a=this.vars;return arguments.length>
vendor: 4,116 bytes, line 1
11?(t?(a[e]=t,i&&(a[e+"Params"]=i),"onUpdate"===e&&(this._onUpdate=t)):delete a[e],this):a[e]},t.then=function(e){var t=this,i=t._prom;return new Promise(function(a){var r=io(e)?e:i2,n=function(){var e=t.then;t.then=null,i&&i(),io(r)&&(r=r(t))&&(r.then||r===t)&&(t.then=e),a(r),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?n():t._prom=n})},t.kill=function(){aF(this)},e}();i3(rr.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:-1e-8,_prom:0,_ps:!1,_rts:1});var rn=function(e){function t(t,i){var a;return void 0===t&&(t={}),(a=e.call(this,t)||this).labels={},a.smoothChildTiming=!!t.smoothChildTiming,a.autoRemoveChildren=!!t.autoRemoveChildren,a._sort=ip(t.sortChildren),t0&&ap(t.parent||t0,tE(a),i),t.reversed&&a.reverse(),t.paused&&a.paused(!0),t.scrollTrigger&&ax(tE(a),t.scrollTrigger),a}t$(t,e);var i=t.prototype;return i.to=function(e,t,i){return aN(0,arguments,this),this},i.from=function(e,t,i){return aN(1,arguments,this),this},i.fromTo=function(e,t,i,a){return aN(2,arguments,this),this},i.set=function(e,t,i){return t.duration=0,t.parent=this,i7(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new rN(e,t,aw(this,i),1),this},i.call=function(e,t,i){return ap(this,rN.delayedCall(0,e,t),i)},i.staggerTo=function(e,t,i,a,r,n,s){return i.duration=t,i.stagger=i.stagger||a,i.onComplete=n,i.onCompleteParams=s,i.parent=this,new rN(e,i,aw(this,r)),this},i.staggerFrom=function(e,t,i,a,r,n,s){return i.runBackwards=1,i7(i).immediateRender=ip(i.immediateRender),this.staggerTo(e,t,i,a,r,n,s)},i.staggerFromTo=function(e,t,i,a,r,n,s,l){return a.startAt=i,i7(a).immediateRender=ip(a.immediateRender),this.staggerTo(e,t,a,r,n,s,l)},i.render=function(e,t,i){var a,r,n,s,l,o,c,d,u,p,x,f,m=this._time,h=this._dirty?this.totalDuration():this._tDur,g=this._dur,b=e<=0?0:iQ(e),v=this._zTime<0!=e<0&&(this._initted||!g);if(this!==t0&&b>h&&e>=0&&(b=h),b!==this._tTime||i||v){if(m!==this._time&&g&&(b+=this._time-m,e+=this._time-m),a=b,u=this._start,o=!(d=this._ts),v&&(g||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(x=this._yoyo,l=g+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*l+e,t,i);if(a=iQ(b%l),b===h?(s=this._repeat,a=g):((s=~~(p=iQ(b/l)))&&s===p&&(a=g,s--),a>g&&(a=g)),p=al(this._tTime,l),!m&&this._tTime&&p!==s&&this._tTime-p*l-this._dur<=0&&(p=s),x&&1&s&&(a=g-a,f=1),s!==p&&!this._lock){var y=x&&1&p,j=y===(x&&1&s);if(s<p&&(y=!y),m=y?0:b%g?g:b,this._lock=1,this.render(m||(f?0:iQ(s*l)),t,!g)._lock=0,this._tTime=b,!t&&this.parent&&aB(this,"onRepeat"),this.vars.repeatRefresh&&!f&&(this.invalidate()._lock=1,p=s),m&&m!==this._time||!this._ts!==o||this.vars.onRepeat&&!this.parent&&!this._act||(g=this._dur,h=this._tDur,j&&(this._lock=2,m=y?g:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!f&&this.invalidate()),this._lock=0,!this._ts&&!o))return this;a8(this,f)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=ab(this,iQ(m),iQ(a)))&&(b-=a-(a=c._start)),this._tTime=b,this._time=a,this._act=!d,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&b&&g&&!t&&!p&&(aB(this,"onStart"),this._tTime!==b))return this;if(a>=m&&e>=0)for(r=this._first;r;){if(n=r._next,(r._act||a>=r._start)&&r._ts&&c!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(a-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(a-r._start)*r._ts,t,i),a!==this._time||!this._ts&&!o){c=0,n&&(b+=this._zTime=-1e-8);break}}r=n}else{r=this._last;for(var w=e<0?e:a;r;){if(n=r._prev,(r._act||w<=r._end)&&r._ts&&c!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(w-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(w-r._start)*r._ts,t,i||tK&&i0(r)),a!==this._time||!this._ts&&!o){c=0,n&&(b+=this._zTime=w?-1e-8:1e-8);break}}r=n}}if(c&&!t&&(this.pause(),c.render(a>=m?0:-1e-8)._zTime=a>=m?1:-1,this._ts))return this._start=u,ac(this),this.render(e,t,i);this._onUpdate&&!t&&aB(this,"onUpdate",!0),(b===h&&this._tTime>=this.totalDuration()||!b&&m)&&(u===this._start||Math.abs(d)!==Math.abs(this._ts
1))&&!this._lock&&((e||!g)&&(b===h&&this._ts>0||!b&&this._ts<0)&&ai(this,1),t||e<0&&!m||!b&&!m&&h||(aB(this,b===h&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<h&&this.timeScale()>0)&&this._prom()))}return this},i.add=function(e,t){var i=this;if(ic(t)||(t=aw(this,t,e)),!(e instanceof rr)){if(ig(e))return e.forEach(function(e){return i.add(e,t)}),this;if(il(e))return this.addLabel(e,t);if(!io(e))return this;e=rN.delayedCall(0,e)}return this!==e?ap(this,e,t):this},i.getChildren=function(e,t,i,a){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===a&&(a=-1e8);for(var r=[],n=this._first;n;)n._start>=a&&(n instanceof rN?t&&r.push(n):(i&&r.push(n),e&&r.push.apply(r,n.getChildren(!0,t,i)))),n=n._next;return r},i.getById=function(e){for(var t=this.getChildren(1,1,1),i=t.length;i--;)if(t[i].vars.id===e)return t[i]},i.remove=function(e){return il(e)?this.removeLabel(e):io(e)?this.killTweensOf(e):(e.parent===this&&at(this,e),e===this._recent&&(this._recent=this._last),aa(this))},i.totalTime=function(t,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=iQ(aK.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,i),this._forcing=0,this):this._tTime},i.addLabel=function(e,t){return this.labels[e]=aw(this,t),this},i.removeLabel=function(e){return delete this.labels[e],this},i.addPause=function(e,t,i){var a=rN.delayedCall(0,t||iP,i);return a.data="isPause",this._hasPause=1,ap(this,a,aw(this,e))},i.removePause=function(e){var t=this._first;for(e=aw(this,e);t;)t._start===e&&"isPause"===t.data&&ai(t),t=t._next},i.killTweensOf=function(e,t,i){for(var a=this.getTweensOf(e,i),r=a.length;r--;)rd!==a[r]&&a[r].kill(e,t);return this},i.getTweensOf=function(e,t){for(var i,a=[],r=aS(e),n=this._first,s=ic(t);n;)n instanceof rN?iK(n._targets,r)&&(s?(!rd||n._initted&&n._ts)&&n.globalTime(0)<=t&&n.globalTime(n.totalDuration())>t:!t||n.isActive())&&a.push(n):(i=n.getTweensOf(r,t)).length&&a.push.apply(a,i),n=n._next;return a},i.tweenTo=function(e,t){t=t||{};var i,a=this,r=aw(a,e),n=t,s=n.startAt,l=n.onStart,o=n.onStartParams,c=n.immediateRender,d=rN.to(a,i3({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:t.duration||Math.abs((r-(s&&"time"in s?s.time:a._time))/a.timeScale())||1e-8,onStart:function(){if(a.pause(),!i){var e=t.duration||Math.abs((r-(s&&"time"in s?s.time:a._time))/a.timeScale());d._dur!==e&&av(d,e,0,1).render(d._time,!0,!0),i=1}l&&l.apply(d,o||[])}},t));return c?d.render(0):d},i.tweenFromTo=function(e,t,i){return this.tweenTo(t,i3({startAt:{time:aw(this,e)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(e){return void 0===e&&(e=this._time),aD(this,aw(this,e))},i.previousLabel=function(e){return void 0===e&&(e=this._time),aD(this,aw(this,e),1)},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},i.shiftChildren=function(e,t,i){void 0===i&&(i=0);var a,r=this._first,n=this.labels;for(e=iQ(e);r;)r._start>=i&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in n)n[a]>=i&&(n[a]+=e);return aa(this)},i.invalidate=function(t){var i=this._first;for(this._lock=0;i;)i.invalidate(t),i=i._next;return e.prototype.invalidate.call(this,t)},i.clear=function(e){void 0===e&&(e=!0);for(var t,i=this._first;i;)t=i._next,this.remove(i),i=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),aa(this)},i.totalDuration=function(e){var t,i,a,r=0,n=this._last,s=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(a=this.parent;n;)t=n._prev,n._dirty&&n.totalDuration(),(i=n._start)>s&&this._sort&&n._ts&&!this._lock?(this._lock=1,ap(this,n,i-n._delay,1)._lock=0):s=i,i<0&&n._ts&&(r-=i,(!a&&!this._dp||a&&a.smoothChildTiming)&&(this._start+=iQ(i/this._ts),this._time-=i,this._tTime-=i),this.shiftChildren(-i,!1,-Infinity),s=0),n._end>r&&n._ts&&(r=n._end),n=t;av(this,this===t0&&this._time>r?this._time:r,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(t0._ts&&(i1(t0,ao(e,t0)),t6=aK.frame),aK.frame>=iW){iW+=t7.autoSleep||120;
vendor: 4,116 bytes, line 1
1var t=t0._first;if((!t||!t._ts)&&t7.autoSleep&&aK._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||aK.sleep()}}},t}(rr);i3(rn.prototype,{_lock:0,_hasPause:0,_forcing:0});var rs,rl,ro,rc,rd,ru,rp=function(e,t,i,a,r,n,s){var l,o,c,d,u,p,x,f,m=new rO(this._pt,e,t,0,1,rM,null,r),h=0,g=0;for(m.b=i,m.e=a,i+="",a+="",(x=~a.indexOf("random("))&&(a=aO(a)),n&&(n(f=[i,a],e,t),i=f[0],a=f[1]),o=i.match(iN)||[];l=iN.exec(a);)d=l[0],u=a.substring(h,l.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),d!==o[g++]&&(p=parseFloat(o[g-1])||0,m._pt={_next:m._pt,p:u||1===g?u:",",s:p,c:"="===d.charAt(1)?iZ(p,d)-p:parseFloat(d)-p,m:c&&c<4?Math.round:0},h=iN.lastIndex);return m.c=h<a.length?a.substring(h,a.length):"",m.fp=s,(ik.test(a)||x)&&(m.e=0),this._pt=m,m},rx=function(e,t,i,a,r,n,s,l,o,c){io(a)&&(a=a(r||0,e,n));var d,u=e[t],p="get"!==i?i:io(u)?o?e[t.indexOf("set")||!io(e["get"+t.substr(3)])?t:"get"+t.substr(3)](o):e[t]():u,x=io(u)?o?rC:r_:rk;if(il(a)&&(~a.indexOf("random(")&&(a=aO(a)),"="===a.charAt(1)&&((d=iZ(p,a)+(aC(p)||0))||0===d)&&(a=d)),!c||p!==a||ru)return isNaN(p*a)||""===a?(u||t in e||iA(t,a),rp.call(this,e,t,p,a,x,l||t7.stringFilter,o)):(d=new rO(this._pt,e,t,+p||0,a-(p||0),"boolean"==typeof u?rA:rS,0,x),o&&(d.fp=o),s&&d.modifier(s,this,e),this._pt=d)},rf=function(e,t,i,a,r){if(io(e)&&(e=ry(e,r,t,i,a)),!iu(e)||e.style&&e.nodeType||ig(e)||ih(e))return il(e)?ry(e,r,t,i,a):e;var n,s={};for(n in e)s[n]=ry(e[n],r,t,i,a);return s},rm=function(e,t,i,a,r,n){var s,l,o,c;if(iB[e]&&!1!==(s=new iB[e]).init(r,s.rawVars?t[e]:rf(t[e],a,r,n,i),i,a,n)&&(i._pt=l=new rO(i._pt,r,e,0,1,s.render,s,0,s.priority),i!==t4))for(o=i._ptLookup[i._targets.indexOf(r)],c=s._props.length;c--;)o[s._props[c]]=l;return s},rh=function e(t,i,a){var r,n,s,l,o,c,d,u,p,x,f,m,h,g=t.vars,b=g.ease,v=g.startAt,y=g.immediateRender,j=g.lazy,w=g.onUpdate,N=g.runBackwards,k=g.yoyoEase,_=g.keyframes,C=g.autoRevert,T=t._dur,R=t._startAt,S=t._targets,A=t.parent,M=A&&"nested"===A.data?A.vars.targets:S,L="auto"===t._overwrite&&!tZ,P=t.timeline;if(!P||_&&b||(b="none"),t._ease=a7(b,t9.ease),t._yEase=k?a4(a7(!0===k?b:k,t9.ease)):0,k&&t._yoyo&&!t._repeat&&(k=t._yEase,t._yEase=t._ease,t._ease=k),t._from=!P&&!!g.runBackwards,!P||_&&!g.stagger){if(m=(u=S[0]?iY(S[0]).harness:0)&&g[u.prop],r=i8(g,iO),R&&(R._zTime<0&&R.progress(1),i<0&&N&&y&&!C?R.render(-1,!0):R.revert(N&&T?i$:iE),R._lazy=0),v){if(ai(t._startAt=rN.set(S,i3({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:!R&&ip(j),startAt:null,delay:0,onUpdate:w&&function(){return aB(t,"onUpdate")},stagger:0},v))),t._startAt._dp=0,t._startAt._sat=t,i<0&&(tK||!y&&!C)&&t._startAt.revert(i$),y&&T&&i<=0&&a<=0){i&&(t._zTime=i);return}}else if(N&&T&&!R)if(i&&(y=!1),s=i3({overwrite:!1,data:"isFromStart",lazy:y&&!R&&ip(j),immediateRender:y,stagger:0,parent:A},r),m&&(s[u.prop]=m),ai(t._startAt=rN.set(S,s)),t._startAt._dp=0,t._startAt._sat=t,i<0&&(tK?t._startAt.revert(i$):t._startAt.render(-1,!0)),t._zTime=i,y){if(!i)return}else e(t._startAt,1e-8,1e-8);for(n=0,t._pt=t._ptCache=0,j=T&&ip(j)||j&&!T;n<S.length;n++){if(d=(o=S[n])._gsap||iV(S)[n]._gsap,t._ptLookup[n]=x={},iD[d.id]&&iz.length&&iJ(),f=M===S?n:M.indexOf(o),u&&!1!==(p=new u).init(o,m||r,t,f,M)&&(t._pt=l=new rO(t._pt,o,p.name,0,1,p.render,p,0,p.priority),p._props.forEach(function(e){x[e]=l}),p.priority&&(c=1)),!u||m)for(s in r)iB[s]&&(p=rm(s,r,t,f,o,M))?p.priority&&(c=1):x[s]=l=rx.call(t,o,s,"get",r[s],f,M,0,g.stringFilter);t._op&&t._op[n]&&t.kill(o,t._op[n]),L&&t._pt&&(rd=t,t0.killTweensOf(o,x,t.globalTime(i)),h=!t.parent,rd=0),t._pt&&j&&(iD[d.id]=1)}c&&rI(t),t._onInit&&t._onInit(t)}t._onUpdate=w,t._initted=(!t._op||t._pt)&&!h,_&&i<=0&&P.render(1e8,!0,!0)},rg=function(e,t,i,a,r,n,s,l){var o,c,d,u,p=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!p)for(p=e._ptCache[t]=[],d=e._ptLookup,u=e._targets.length;u--;){if((o=d[u][t])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==t&&o.fp!==t;)o=o._next;if(!o)return ru=1,e.vars[t]="+=0",rh(e,s),ru=0,l?iM(t+" not eligible for reset"):1;p.push(o)}for(u=p.length;u--;)(o=(c=p[u])._pt||c).s=(a||0===a)&&!r?a:o.s+(a||0)+n*o.c,o.c=i-o.s,c.e&&(c.e=iG(i)+aC(c.e)),c.b&&(c.b=o.s+aC(c.b))}
vendor: 2,856 bytes, line 1
1,rb=function(e,t){var i,a,r,n,s=e[0]?iY(e[0]).harness:0,l=s&&s.aliases;if(!l)return t;for(a in i=i6({},t),l)if(a in i)for(r=(n=l[a].split(",")).length;r--;)i[n[r]]=i[a];return i},rv=function(e,t,i,a){var r,n,s=t.ease||a||"power1.inOut";if(ig(t))n=i[e]||(i[e]=[]),t.forEach(function(e,i){return n.push({t:i/(t.length-1)*100,v:e,e:s})});else for(r in t)n=i[r]||(i[r]=[]),"ease"===r||n.push({t:parseFloat(e),v:t[r],e:s})},ry=function(e,t,i,a,r){return io(e)?e.call(t,i,a,r):il(e)&&~e.indexOf("random(")?aO(e):e},rj=iq+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",rw={};iX(rj+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return rw[e]=1});var rN=function(e){function t(t,i,a,r){"number"==typeof i&&(a.duration=i,i=a,a=null);var n,s,l,o,c,d,u,p,x=e.call(this,r?i:i7(i))||this,f=x.vars,m=f.duration,h=f.delay,g=f.immediateRender,b=f.stagger,v=f.overwrite,y=f.keyframes,j=f.defaults,w=f.scrollTrigger,N=f.yoyoEase,k=i.parent||t0,_=(ig(t)||ih(t)?ic(t[0]):"length"in i)?[t]:aS(t);if(x._targets=_.length?iV(_):iM("GSAP target "+t+" not found. https://gsap.com",!t7.nullTargetWarn)||[],x._ptLookup=[],x._overwrite=v,y||b||im(m)||im(h)){if(i=x.vars,(n=x.timeline=new rn({data:"nested",defaults:j||{},targets:k&&"nested"===k.data?k.vars.targets:_})).kill(),n.parent=n._dp=tE(x),n._start=0,b||im(m)||im(h)){if(o=_.length,u=b&&aL(b),iu(b))for(c in b)~rj.indexOf(c)&&(p||(p={}),p[c]=b[c]);for(s=0;s<o;s++)(l=i8(i,rw)).stagger=0,N&&(l.yoyoEase=N),p&&i6(l,p),d=_[s],l.duration=+ry(m,tE(x),s,d,_),l.delay=(+ry(h,tE(x),s,d,_)||0)-x._delay,!b&&1===o&&l.delay&&(x._delay=h=l.delay,x._start+=h,l.delay=0),n.to(d,l,u?u(s,d,_):0),n._ease=a0.none;n.duration()?m=h=0:x.timeline=0}else if(y){i7(i3(n.vars.defaults,{ease:"none"})),n._ease=a7(y.ease||i.ease||"none");var C,T,R,S=0;if(ig(y))y.forEach(function(e){return n.to(_,e,">")}),n.duration();else{for(c in l={},y)"ease"===c||"easeEach"===c||rv(c,y[c],l,y.easeEach);for(c in l)for(s=0,C=l[c].sort(function(e,t){return e.t-t.t}),S=0;s<C.length;s++)(R={ease:(T=C[s]).e,duration:(T.t-(s?C[s-1].t:0))/100*m})[c]=T.v,n.to(_,R,S),S+=R.duration;n.duration()<m&&n.to({},{duration:m-n.duration()})}}m||x.duration(m=n.duration())}else x.timeline=0;return!0!==v||tZ||(rd=tE(x),t0.killTweensOf(_),rd=0),ap(k,tE(x),a),i.reversed&&x.reverse(),i.paused&&x.paused(!0),(g||!m&&!y&&x._start===iQ(k._time)&&ip(g)&&function e(t){return!t||t._ts&&e(t.parent)}(tE(x))&&"nested"!==k.data)&&(x._tTime=-1e-8,x.render(Math.max(0,-h)||0)),w&&ax(tE(x),w),x}t$(t,e);var i=t.prototype;return i.render=function(e,t,i){var a,r,n,s,l,o,c,d,u,p=this._time,x=this._tDur,f=this._dur,m=e<0,h=e>x-1e-8&&!m?x:e<1e-8?0:e;if(f){if(h!==this._tTime||!e||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(a=h,d=this.timeline,this._repeat){if(s=f+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*s+e,t,i);
1if(a=iQ(h%s),h===x?(n=this._repeat,a=f):(n=~~(l=iQ(h/s)))&&n===l?(a=f,n--):a>f&&(a=f),(o=this._yoyo&&1&n)&&(u=this._yEase,a=f-a),l=al(this._tTime,s),a===p&&!i&&this._initted&&n===l)return this._tTime=h,this;n!==l&&(d&&this._yEase&&a8(d,o),this.vars.repeatRefresh&&!o&&!this._lock&&a!==s&&this._initted&&(this._lock=i=1,this.render(iQ(s*n),!0).invalidate()._lock=0))}if(!this._initted){if(af(this,m?e:a,i,t,h))return this._tTime=0,this;if(p!==this._time&&!(i&&this.vars.repeatRefresh&&n!==l))return this;if(f!==this._dur)return this.render(e,t,i)}if(this._tTime=h,this._time=a,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(u||this._ease)(a/f),this._from&&(this.ratio=c=1-c),!p&&h&&!t&&!l&&(aB(this,"onStart"),this._tTime!==h))return this;for(r=this._pt;r;)r.r(c,r.d),r=r._next;d&&d.render(e<0?e:d._dur*d._ease(a/this._dur),t,i)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(m&&an(this,e,t,i),aB(this,"onUpdate")),this._repeat&&n!==l&&this.vars.onRepeat&&!t&&this.parent&&aB(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(m&&!this._onUpdate&&an(this,e,!0,!0),(e||!f)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&ai(this,1),!t&&!(m&&!p)&&(h||p||o)&&(aB(this,h===x?"onComplete":"onReverseComplete",!0),this._prom&&!(h<x&&this.timeScale()>0)&&this._prom()))}}else ag(this,e,t,i);return this},i.targets=function(){return this._targets},i.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)},i.resetTo=function(e,t,i,a,r){t8||aK.wake(),this._ts||this.play();var n=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||rh(this,n),rg(this,e,t,i,a,this._ease(n/this._dur),n,r))?this.resetTo(e,t,i,a,1):(ad(this,0),this.parent||ae(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?aF(this):this.scrollTrigger&&this.scrollTrigger.kill(!!tK),this;if(this.timeline){var i=this.timeline.totalDuration();
vendor: 4,533 bytes, line 1
1return this.timeline.killTweensOf(e,t,rd&&!0!==rd.vars.overwrite)._first||aF(this),this.parent&&i!==this.timeline.totalDuration()&&av(this,this._dur*this.timeline._tDur/i,0,1),this}var a,r,n,s,l,o,c,d=this._targets,u=e?aS(e):d,p=this._ptLookup,x=this._pt;if((!t||"all"===t)&&i9(d,u))return"all"===t&&(this._pt=0),aF(this);for(a=this._op=this._op||[],"all"!==t&&(il(t)&&(l={},iX(t,function(e){return l[e]=1}),t=l),t=rb(d,t)),c=d.length;c--;)if(~u.indexOf(d[c]))for(l in r=p[c],"all"===t?(a[c]=t,s=r,n={}):(n=a[c]=a[c]||{},s=t),s)(o=r&&r[l])&&("kill"in o.d&&!0!==o.d.kill(l)||at(this,o,"_pt"),delete r[l]),"all"!==n&&(n[l]=1);return this._initted&&!this._pt&&x&&aF(this),this},t.to=function(e,i){return new t(e,i,arguments[2])},t.from=function(e,t){return aN(1,arguments)},t.delayedCall=function(e,i,a,r){return new t(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:i,onReverseComplete:i,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:r})},t.fromTo=function(e,t,i){return aN(2,arguments)},t.set=function(e,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new t(e,i)},t.killTweensOf=function(e,t,i){return t0.killTweensOf(e,t,i)},t}(rr);i3(rN.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),iX("staggerTo,staggerFrom,staggerFromTo",function(e){rN[e]=function(){var t=new rn,i=aT.call(arguments,0);return i.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,i)}});var rk=function(e,t,i){return e[t]=i},r_=function(e,t,i){return e[t](i)},rC=function(e,t,i,a){return e[t](a.fp,i)},rT=function(e,t,i){return e.setAttribute(t,i)},rR=function(e,t){return io(e[t])?r_:id(e[t])&&e.setAttribute?rT:rk},rS=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},rA=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},rM=function(e,t){var i=t._pt,a="";if(!e&&t.b)a=t.b;else if(1===e&&t.e)a=t.e;else{for(;i;)a=i.p+(i.m?i.m(i.s+i.c*e):Math.round((i.s+i.c*e)*1e4)/1e4)+a,i=i._next;a+=t.c}t.set(t.t,t.p,a,t)},rL=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},rP=function(e,t,i,a){for(var r,n=this._pt;n;)r=n._next,n.p===a&&n.modifier(e,t,i),n=r},rE=function(e){for(var t,i,a=this._pt;a;)i=a._next,(a.p!==e||a.op)&&a.op!==e?a.dep||(t=1):at(this,a,"_pt"),a=i;return!t},r$=function(e,t,i,a){a.mSet(e,t,a.m.call(a.tween,i,a.mt),a)},rI=function(e){for(var t,i,a,r,n=e._pt;n;){for(t=n._next,i=a;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:r)?n._prev._next=n:a=n,(n._next=i)?i._prev=n:r=n,n=t}e._pt=a},rO=function(){function e(e,t,i,a,r,n,s,l,o){this.t=t,this.s=a,this.c=r,this.p=i,this.r=n||rS,this.d=s||this,this.set=l||rk,this.pr=o||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,i){this.mSet=this.mSet||this.set,this.set=r$,this.m=e,this.mt=i,this.tween=t},e}();iX(iq+"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",function(e){return iO[e]=1}),iT.TweenMax=iT.TweenLite=rN,iT.TimelineLite=iT.TimelineMax=rn,t0=new rn({sortChildren:!1,defaults:t9,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),t7.stringFilter=aZ;var rz=[],rD={},rB=[],rF=0,rW=0,rH=function(e){return(rD[e]||rB).map(function(e){return e()})},rq=function(){var e=Date.now(),t=[];e-rF>2&&(rH("matchMediaInit"),rz.forEach(function(e){var i,a,r,n,s=e.queries,l=e.conditions;for(a in s)(i=t1.matchMedia(s[a]).matches)&&(r=1),i!==l[a]&&(l[a]=i,n=1);n&&(e.revert(),r&&t.push(e))}),rH("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),rF=e,rH("matchMedia"))},rV=function(){function e(e,t){this.selector=t&&aA(t),this.data=[],this._r=[],this.isReverted=!1,this.id=rW++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,i){io(e)&&(i=t,t=e,e=io);var a=this,r=function(){var e,r=tJ,n=a.selector;return r&&r!==a&&r.data.push(a),i&&(a.selector=aA(i)),tJ=a,e=t.apply(a,arguments),io(e)&&a._r.push(e),tJ=r,a.selector=n,a.isReverted=!1,e};return a.last=r,e===io?r(a,function(e){return a.add(null,e)}):e?a[e]=r:r},t.ignore=function(e){var t=tJ;tJ=null,e(this),tJ=t},t.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof e?t.push.apply(t,i.getTweens()):i instanceof rN&&!(i.parent&&"nested"===i.parent.data)&&t.push(i)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var i=this;if(e){for(var a,r=i.getTweens(),n=i.data.length;n--;)"isFlip"===(a=i.data[n]).data&&(a.revert(),a.getChildren(!0,!0,!1).forEac
1h(function(e){return r.splice(r.indexOf(e),1)}));for(r.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)}),n=i.data.length;n--;)(a=i.data[n])instanceof rn?"nested"!==a.data&&(a.scrollTrigger&&a.scrollTrigger.revert(),a.kill()):a instanceof rN||!a.revert||a.revert(e);i._r.forEach(function(t){return t(e,i)}),i.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var s=rz.length;s--;)rz[s].id===this.id&&rz.splice(s,1)},t.revert=function(e){this.kill(e||{})},e}(),rY=function(){function e(e){this.contexts=[],this.scope=e,tJ&&tJ.data.push(this)}var t=e.prototype;return t.add=function(e,t,i){iu(e)||(e={matches:e});var a,r,n,s=new rV(0,i||this.scope),l=s.conditions={};for(r in tJ&&!s.selector&&(s.selector=tJ.selector),this.contexts.push(s),t=s.add("onMatch",t),s.queries=e,e)"all"===r?n=1:(a=t1.matchMedia(e[r]))&&(0>rz.indexOf(s)&&rz.push(s),(l[r]=a.matches)&&(n=1),a.addListener?a.addListener(rq):a.addEventListener("change",rq));return n&&t(s,function(e){return s.add(null,e)}),this},t.revert=function(e){this.kill(e||{})}
vendor: 14,461 bytes, line 1
1,t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),rU={registerPlugin:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];t.forEach(function(e){return aH(e)})},timeline:function(e){return new rn(e)},getTweensOf:function(e,t){return t0.getTweensOf(e,t)},getProperty:function(e,t,i,a){il(e)&&(e=aS(e)[0]);var r=iY(e||{}).get,n=i?i2:i5;return"native"===i&&(i=""),e?t?n((iB[t]&&iB[t].get||r)(e,t,i,a)):function(t,i,a){return n((iB[t]&&iB[t].get||r)(e,t,i,a))}:e},quickSetter:function(e,t,i){if((e=aS(e)).length>1){var a=e.map(function(e){return rZ.quickSetter(e,t,i)}),r=a.length;return function(e){for(var t=r;t--;)a[t](e)}}e=e[0]||{};var n=iB[t],s=iY(e),l=s.harness&&(s.harness.aliases||{})[t]||t,o=n?function(t){var a=new n;t4._pt=0,a.init(e,i?t+i:t,t4,0,[e]),a.render(1,a),t4._pt&&rL(1,t4)}:s.set(e,l);return n?o:function(t){return o(e,l,i?t+i:t,s,1)}},quickTo:function(e,t,i){var a,r=rZ.to(e,i3(((a={})[t]="+=0.1",a.paused=!0,a.stagger=0,a),i||{})),n=function(e,i,a){return r.resetTo(t,e,i,a)};return n.tween=r,n},isTweening:function(e){return t0.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=a7(e.ease,t9.ease)),i4(t9,e||{})},config:function(e){return i4(t7,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,a=e.plugins,r=e.defaults,n=e.extendTimeline;(a||"").split(",").forEach(function(e){return e&&!iB[e]&&!iT[e]&&iM(t+" effect requires "+e+" plugin.")}),iF[t]=function(e,t,a){return i(aS(e),i3(t||{},r),a)},n&&(rn.prototype[t]=function(e,i,a){return this.add(iF[t](e,iu(i)?i:(a=i)&&{},this),a)})},registerEase:function(e,t){a0[e]=a7(t)},parseEase:function(e,t){return arguments.length?a7(e,t):a0},getById:function(e){return t0.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var i,a,r=new rn(e);for(r.smoothChildTiming=ip(e.smoothChildTiming),t0.remove(r),r._dp=0,r._time=r._tTime=t0._time,i=t0._first;i;)a=i._next,(t||!(!i._dur&&i instanceof rN&&i.vars.onComplete===i._targets[0]))&&ap(r,i,i._start-i._delay),i=a;return ap(t0,r,0),r},context:function(e,t){return e?new rV(e,t):tJ},matchMedia:function(e){return new rY(e)},matchMediaRefresh:function(){return rz.forEach(function(e){var t,i,a=e.conditions;for(i in a)a[i]&&(a[i]=!1,t=1);t&&e.revert()})||rq()},addEventListener:function(e,t){var i=rD[e]||(rD[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=rD[e],a=i&&i.indexOf(t);a>=0&&i.splice(a,1)},utils:{wrap:function e(t,i,a){var r=i-t;return ig(t)?aI(t,e(0,t.length),i):ak(a,function(e){return(r+(e-t)%r)%r+t})},wrapYoyo:function e(t,i,a){var r=i-t,n=2*r;return ig(t)?aI(t,e(0,t.length-1),i):ak(a,function(e){return e=(n+(e-t)%n)%n||0,t+(e>r?n-e:e)})},distribute:aL,random:a$,snap:aE,normalize:function(e,t,i){return az(e,t,0,1,i)},getUnit:aC,clamp:function(e,t,i){return ak(i,function(i){return a_(e,t,i)})},splitColor:aY,toArray:aS,selector:aA,mapRange:az,pipe:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(i){return e(parseFloat(i))+(t||aC(i))}},interpolate:function e(t,i,a,r){var n=isNaN(t+i)?0:function(e){return(1-e)*t+e*i};if(!n){var s,l,o,c,d,u=il(t),p={};if(!0===a&&(r=1)&&(a=null),u)t={p:t},i={p:i};else if(ig(t)&&!ig(i)){for(l=1,o=[],d=(c=t.length)-2;l<c;l++)o.push(e(t[l-1],t[l]));c--,n=function(e){var t=Math.min(d,~~(e*=c));return o[t](e-t)},a=i}else r||(t=i6(ig(t)?[]:{},t));if(!o){for(s in i)rx.call(p,t,s,"get",i[s]);n=function(e){return rL(e,p)||(u?t.p:t)}}}return ak(a,n)},shuffle:aM},install:iS,effects:iF,ticker:aK,updateRoot:rn.updateRoot,plugins:iB,globalTimeline:t0,core:{PropTween:rO,globals:iL,Tween:rN,Timeline:rn,Animation:rr,getCache:iY,_removeLinkedListItem:at,reverting:function(){return tK},context:function(e){return e&&tJ&&(tJ.data.push(e),e._ctx=tJ),tJ},suppressOverwrites:function(e){return tZ=e}}};iX("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return rU[e]=rN[e]}),aK.add(rn.updateRoot),t4=rU.to({},{duration:0});var rX=function(e,t){for(var i=e._pt;i&&i.p!==t&&i.op!==t&&i.fp!==t;)i=i._next;return i},rG=function(e,t){var i,a,r,n=e._targets;for(i in t)for(a=n.length;a--;)(r=e._ptLookup[a][i])&&(r=r.d)&&(r._pt&&(r=rX(r,i)),r&&r.modifier&&r.modifier(t[i],e,n[a],i))},rQ=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,i,a){a._onInit=function(e){var a,r;if(il(i)&&(a={},iX(i,function(e){return a[e]=1}),i=a),t){for(r in a={},i)a[r]=t(i[r]);i=a}rG(e,i)}}}},rZ=rU.registerPlugin({name:"attr",init:function(e,t,i,a,r){var n,s,l;for(n in this.tween=i,t)l=e.getAttribute(n)||"",(s=this.add(e,"setAttribute",(l||0)+"",t[n],a,r,0,0,n)).op=n,s.b=l,this._props.push(n)},render:function(e,t){for(var i=t._pt;i;)tK?i.set(i.t,i.p,i.b,i):i.r(e,i.d),i=i._next}},{name:"endArray",headless:1,init:function(e,t){for(var i=t.length;i--;)this.add(e,i,e[i]||0,t[i],0,0,0,0,0,1)}},rQ("roundProps",aP),rQ("modifiers"),rQ("snap",aE))||rU;rN.version=rn.version=rZ.version="3.14.2",t3=1,ix()&&aJ(),a0.Power0,a0.Power1,a0.Power2,a0.Power3,a0.Power4,a0.Linear,a0.Quad,a0.Cubic,a0.Quart,a0.Quint,a0.Strong,a0.Elastic,a0.Back,a0.SteppedEase,a0.Bounce,a0.Sine,a0.Expo,a0.Circ;var rK,rJ,r0,r1,r5,r2,r3,r6={},r4=180/Math.PI,r8=Math.PI/180,r7=Math.atan2,r9=/([A-Z])/g,ne=/(left|right|width|margin|padding|x)/i,nt=/[\s,\(]\S/,ni={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},na=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},nr=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},nn=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)},ns=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},nl=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},no=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},nc=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},nd=function(e,t,i){return e.style[t]=i},nu=function(e,t,i){return e.style.setProperty(t,i)},np=function(e,t,i){return e._gsap[t]=i},nx=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},nf=function(e,t,i,a,r){var n=e._gsap;n.scaleX=n.scaleY=i,n.renderTransform(r,n)},nm=function(e,t,i,a,r){var n=e._gsap;n[t]=i,n.renderTransform(r,n)},nh="transform",ng=nh+"Origin",nb=function e(t,i){var a=this,r=this.target,n=r.style,s=r._gsap;if(t in r6&&n){if(this.tfm=this.tfm||{},"transform"===t)return ni.transform.split(",").forEach(function(t){return e.call(a,t,i)});if(~(t=ni[t]||t).indexOf(",")?t.split(",").forEach(function(e){return a.tfm[e]=nI(r,e)}):this.tfm[t]=s.x?s[t]:nI(r,t),t===ng&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(nh)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(ng,i,"")),t=nh}(n||i)&&this.props.push(t,i,n[t])},nv=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ny=function(){var e,t,i=this.props,a=this.target,r=a.style,n=a._gsap;for(e=0;e<i.length;e+=3)i[e+1]?2===i[e+1]?a[i[e]](i[e+2]):a[i[e]]=i[e+2]:i[e+2]?r[i[e]]=i[e+2]:r.removeProperty("--"===i[e].substr(0,2)?i[e]:i[e].replace(r9,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)n[t]=this.tfm[t];n.svg&&(n.renderTransform(),a.setAttribute("data-svg-origin",this.svgo||"")),(e=r2())&&e.isStart||r[nh]||(nv(r),n.zOrigin&&r[ng]&&(r[ng]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},nj=function(e,t){var i={target:e,props:[],revert:ny,save:nb};return e._gsap||rZ.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return i.save(e)}),i},nw=function(e,t){var i=rK.createElementNS?rK.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):rK.createElement(e);return i&&i.style?i:rK.createElement(e)},nN=function e(t,i,a){var r=getComputedStyle(t);return r[i]||r.getPropertyValue(i.replace(r9,"-$1").toLowerCase())||r.getPropertyValue(i)||!a&&e(t,n_(i)||i,1)||""},nk="O,Moz,ms,Ms,Webkit".split(","),n_=function(e,t,i){var a=(t||r1).style,r=5;if(e in a&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);r--&&!(nk[r]+e in a););return r<0?null:(3===r?"ms":r>=0?nk[r]:"")+e},nC=function(){"u">typeof window&&window.document&&(rJ=(rK=window.document).documentElement,r1=nw("div")||{style:{}},nw("div"),ng=(nh=n_(nh))+"Origin",r1.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",r3=!!n_("perspective"),r2=rZ.core.reverting,r0=1)},nT=function(e){var t,i=e.ownerSVGElement,a=nw("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0);r.style.display="block",a.appendChild(r),rJ.appendChild(a);try{t=r.getBBox()}catch(e){}return a.removeChild(r),rJ.removeChild(a),t},nR=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},nS=function(e){var t,i;try{t=e.getBBox()}catch(a){t=nT(e),i=1}return t&&(t.width||t.height)||i||(t=nT(e)),!t||t.width||t.x||t.y?t:{x:+nR(e,["x","cx","x1"])||0,y:+nR(e,["y","cy","y1"])||0,width:0,height:0}},nA=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&nS(e))},nM=function(e,t){if(t){var i,a=e.style;t in r6&&t!==ng&&(t=nh),a.removeProperty?(("ms"===(i=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),a.removeProperty("--"===i?t:t.replace(r9,"-$1").toLowerCase())):a.removeAttribute(t)}},nL=function(e,t,i,a,r,n){var s=new rO(e._pt,t,i,0,1,n?nc:no);return e._pt=s,s.b=a,s.e=r,e._props.push(i),s},nP={deg:1,rad:1,turn:1},nE={grid:1,flex:1},n$=function e(t,i,a,r){var n,s,l,o,c=parseFloat(a)||0,d=(a+"").trim().substr((c+"").length)||"px",u=r1.style,p=ne.test(i),x="svg"===t.tagName.toLowerCase(),f=(x?"client":"offset")+(p?"Width":"Height"),m="px"===r,h="%"===r;if(r===d||!c||nP[r]||nP[d])return c;if("px"===d||m||(c=e(t,i,a,"px")),o=t.getCTM&&nA(t),(h||"%"===d)&&(r6[i]||~i.indexOf("adius")))return n=o?t.getBBox()[p?"width":"height"]:t[f],iG(h?c/n*100:c/100*n);if(u[p?"width":"height"]=100+(m?d:r),s="rem"!==r&&~i.indexOf("adius")||"em"===r&&t.appendChild&&!x?t:t.parentNode,o&&(s=(t.ownerSVGElement||{}).parentNode),s&&s!==rK&&s.appendChild||(s=rK.body),(l=s._gsap)&&h&&l.width&&p&&l.time===aK.time&&!l.uncache)return iG(c/l.width*100);if(h&&("height"===i||"width"===i)){var g=t.style[i];t.style[i]=100+r,n=t[f],g?t.style[i]=g:nM(t,i)}else(h||"%"===d)&&!nE[nN(s,"display")]&&(u.position=nN(t,"position")),s===t&&(u.position="static"),s.appendChild(r1),n=r1[f],s.removeChild(r1),u.position="absolute";return p&&h&&((l=iY(s)).time=aK.time,l.width=s[f]),iG(m?n*c/100:n&&c?100/n*c:0)},nI=function(e,t,i,a){var r;return r0||nC(),t in ni&&"transform"!==t&&~(t=ni[t]).indexOf(",")&&(t=t.split(",")[0]),r6[t]&&"transform"!==t?(r=nX(e,a),r="transformOrigin"!==t?r[t]:r.svg?r.origin:nG(nN(e,ng))+" "+r.zOrigin+"px"):(!(r=e.style[t])||"auto"===r||a||~(r+"").indexOf("calc("))&&(r=nF[t]&&nF[t](e,t,i)||nN(e,t)||iU(e,t)||+("opacity"===t)),i&&!~(r+"").trim().indexOf(" ")?n$(e,t,r,i)+i:r},nO=function(e,t,i,a){if(!i||"none"===i){var r=n_(t,e,1),n=r&&nN(e,r,1);n&&n!==i?(t=r,i=n):"borderColor"===t&&(i=nN(e,"borderTopColor"))}var s,l,o,c,d,u,p,x,f,m,h,g=new rO(this._pt,e.style,t,0,1,rM),b=0,v=0;if(g.b=i,g.e=a,i+="","var(--"===(a+="").substring(0,6)&&(a=nN(e,a.substring(4,a.indexOf(")")))),"auto"===a&&(u=e.style[t],e.style[t]=a,a=nN(e,t)||a,u?e.style[t]=u:nM(e,t)),aZ(s=[i,a]),i=s[0],a=s[1],o=i.match(iw)||[],(a.match(iw)||[]).length){for(;l=iw.exec(a);)p=l[0],f=a.substring(b,l.index),d?d=(d+1)%5:("rgba("===f.substr(-5)||"hsla("===f.substr(-5))&&(d=1),p!==(u=o[v++]||"")&&(c=parseFloat(u)||0,h=u.substr((c+"").length),"="===p.charAt(1)&&(p=iZ(c,p)+h),x=parseFloat(p),m=p.substr((x+"").length),b=iw.lastIndex-m.length,m||(m=m||t7.units[t]||h,b===a.length&&(a+=m,g.e+=m)),h!==m&&(c=n$(e,t,u,m)||0),g._pt={_next:g._pt,p:f||1===v?f:",",s:c,c:x-c,m:d&&d<4||"zIndex"===t?Math.round:0});g.c=b<a.length?a.substring(b,a.length):""}else g.r="display"===t&&"none"===a?nc:no;return ik.test(a)&&(g.e=0),this._pt=g,g},nz={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},nD=function(e){var t=e.split(" "),i=t[0],a=t[1]||"50%";return("top"===i||"bottom"===i||"left"===a||"right"===a)&&(e=i,i=a,a=e),t[0]=nz[i]||i,t[1]=nz[a]||a,t.join(" ")},nB=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var i,a,r,n=t.t,s=n.style,l=t.u,o=n._gsap;if("all"===l||!0===l)s.cssText="",a=1;else for(r=(l=l.split(",")).length;--r>-1;)r6[i=l[r]]&&(a=1,i="transformOrigin"===i?ng:nh),nM(n,i);a&&(nM(n,nh),o&&(o.svg&&n.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",nX(n,1),o.uncache=1,nv(s)))}},nF={clearProps:function(e,t,i,a,r){if("isFromStart"!==r.data){var n=e._pt=new rO(e._pt,t,i,0,0,nB);return n.u=a,n.pr=-10,n.tween=r,e._props.push(i),1}}},nW=[1,0,0,1,0,0],nH={},nq=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},nV=function(e){var t=nN(e,nh);return nq(t)?nW:t.substr(7).match(ij).map(iG)},nY=function(e,t){var i,a,r,n,s=e._gsap||iY(e),l=e.style,o=nV(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(o=[(r=e.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?nW:o:(o!==nW||e.offsetParent||e===rJ||s.svg||(r=l.display,l.display="block",(i=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(n=1,a=e.nextElementSibling,rJ.appendChild(e)),o=nV(e),r?l.display=r:nM(e,"display"),n&&(a?i.insertBefore(e,a):i?i.appendChild(e):rJ.removeChild(e))),t&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},nU=function(e,t,i,a,r,n){var s,l,o,c,d=e._gsap,u=r||nY(e,!0),p=d.xOrigin||0,x=d.yOrigin||0,f=d.xOffset||0,m=d.yOffset||0,h=u[0],g=u[1],b=u[2],v=u[3],y=u[4],j=u[5],w=t.split(" "),N=parseFloat(w[0])||0,k=parseFloat(w[1])||0;i?u!==nW&&(l=h*v-g*b)&&(o=v/l*N+-b/l*k+(b*j-v*y)/l,c=-g/l*N+h/l*k-(h*j-g*y)/l,N=o,k=c):(N=(s=nS(e)).x+(~w[0].indexOf("%")?N/100*s.width:N),k=s.y+(~(w[1]||w[0]).indexOf("%")?k/100*s.height:k)),a||!1!==a&&d.smooth?(d.xOffset=f+((y=N-p)*h+(j=k-x)*b)-y,d.yOffset=m+(y*g+j*v)-j):d.xOffset=d.yOffset=0,d.xOrigin=N,d.yOrigin=k,d.smooth=!!a,d.origin=t,d.originIsAbsolute=!!i,e.style[ng]="0px 0px",n&&(nL(n,d,"xOrigin",p,N),nL(n,d,"yOrigin",x,k),nL(n,d,"xOffset",f,d.xOffset),nL(n,d,"yOffset",m,d.yOffset)),e.setAttribute("data-svg-origin",N+" "+k)},nX=function(e,t){var i=e._gsap||new ra(e);if("x"in i&&!t&&!i.uncache)return i;var a,r,n,s,l,o,c,d,u,p,x,f,m,h,g,b,v,y,j,w,N,k,_,C,T,R,S,A,M,L,P,E,$=e.style,I=i.scaleX<0,O=getComputedStyle(e),z=nN(e,ng)||"0";return a=r=n=o=c=d=u=p=x=0,s=l=1,i.svg=!!(e.getCTM&&nA(e)),O.translate&&(("none"!==O.translate||"none"!==O.
1scale||"none"!==O.rotate)&&($[nh]=("none"!==O.translate?"translate3d("+(O.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==O.rotate?"rotate("+O.rotate+") ":"")+("none"!==O.scale?"scale("+O.scale.split(" ").join(",")+") ":"")+("none"!==O[nh]?O[nh]:"")),$.scale=$.rotate=$.translate="none"),h=nY(e,i.svg),i.svg&&(i.uncache?(T=e.getBBox(),z=i.xOrigin-T.x+"px "+(i.yOrigin-T.y)+"px",C=""):C=!t&&e.getAttribute("data-svg-origin"),nU(e,C||z,!!C||i.originIsAbsolute,!1!==i.smooth,h)),f=i.xOrigin||0,m=i.yOrigin||0,h!==nW&&(y=h[0],j=h[1],w=h[2],N=h[3],a=k=h[4],r=_=h[5],6===h.length?(s=Math.sqrt(y*y+j*j),l=Math.sqrt(N*N+w*w),o=y||j?r7(j,y)*r4:0,(u=w||N?r7(w,N)*r4+o:0)&&(l*=Math.abs(Math.cos(u*r8))),i.svg&&(a-=f-(f*y+m*w),r-=m-(f*j+m*N))):(E=h[6],L=h[7],S=h[8],A=h[9],M=h[10],P=h[11],a=h[12],r=h[13],n=h[14],c=(g=r7(E,M))*r4,g&&(C=k*(b=Math.cos(-g))+S*(v=Math.sin(-g)),T=_*b+A*v,R=E*b+M*v,S=-(k*v)+S*b,A=-(_*v)+A*b,M=-(E*v)+M*b,P=-(L*v)+P*b,k=C,_=T,E=R),d=(g=r7(-w,M))*r4,g&&(C=y*(b=Math.cos(-g))-S*(v=Math.sin(-g)),T=j*b-A*v,R=w*b-M*v,P=N*v+P*b,y=C,j=T,w=R),o=(g=r7(j,y))*r4,g&&(C=y*(b=Math.cos(g))+j*(v=Math.sin(g)),T=k*b+_*v,j=j*b-y*v,_=_*b-k*v,y=C,k=T),c&&Math.abs(c)+Math.abs(o)>359.9&&(c=o=0,d=180-d),s=iG(Math.sqrt(y*y+j*j+w*w)),l=iG(Math.sqrt(_*_+E*E)),u=Math.abs(g=r7(k,_))>2e-4?g*r4:0,x=P?1/(P<0?-P:P):0),i.svg&&(C=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!nq(nN(e,nh)),C&&e.setAttribute("transform",C))),Math.abs(u)>90&&270>Math.abs(u)&&(I?(s*=-1,u+=o<=0?180:-180,o+=o<=0?180:-180):(l*=-1,u+=u<=0?180:-180)),t=t||i.uncache,i.x=a-((i.xPercent=a&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-a)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+"px",i.y=r-((i.yPercent=r&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-r)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+"px",i.z=n+"px",i.scaleX=iG(s),i.scaleY=iG(l),i.rotation=iG(o)+"deg",i.rotationX=iG(c)+"deg",i.rotationY=iG(d)+"deg",i.skewX=u+"deg",i.skewY=p+"deg",i.transformPerspective=x+"px",(i.zOrigin=parseFloat(z.split(" ")[2])||!t&&i.zOrigin||0)&&($[ng]=nG(z)),i.xOffset=i.yOffset=0,i.force3D=t7.force3D,i.renderTransform=i.svg?n0:r3?nJ:nZ,i.uncache=0,i},nG=function(e){return(e=e.split(" "))[0]+" "+e[1]},nQ=function(e,t,i){var a=aC(t);return iG(parseFloat(t)+parseFloat(n$(e,"x",i+"px",a)))+a},nZ=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,nJ(e,t)},nK="0deg",nJ=function(e,t){var i=t||this,a=i.xPercent,r=i.yPercent,n=i.x,s=i.y,l=i.z,o=i.rotation,c=i.rotationY,d=i.rotationX,u=i.skewX,p=i.skewY,x=i.scaleX,f=i.scaleY,m=i.transformPerspective,h=i.force3D,g=i.target,b=i.zOrigin,v="",y="auto"===h&&e&&1!==e||!0===h;if(b&&(d!==nK||c!==nK)){var j,w=parseFloat(c)*r8,N=Math.sin(w),k=Math.cos(w);n=nQ(g,n,-(N*(j=Math.cos(w=parseFloat(d)*r8))*b)),s=nQ(g,s,-(-Math.sin(w)*b)),l=nQ(g,l,-(k*j*b)+b)}"0px"!==m&&(v+="perspective("+m+") "),(a||r)&&(v+="translate("+a+"%, "+r+"%) "),(y||"0px"!==n||"0px"!==s||"0px"!==l)&&(v+="0px"!==l||y?"translate3d("+n+", "+s+", "+l+") ":"translate("+n+", "+s+") "),o!==nK&&(v+="rotate("+o+") "),c!==nK&&(v+="rotateY("+c+") "),d!==nK&&(v+="rotateX("+d+") "),(u!==nK||p!==nK)&&(v+="skew("+u+", "+p+") "),(1!==x||1!==f)&&(v+="scale("+x+", "+f+") "),g.style[nh]=v||"translate(0, 0)"},n0=function(e,t){var i,a,r,n,s,l=t||this,o=l.xPercent,c=l.yPercent,d=l.x,u=l.y,p=l.rotation,x=l.skewX,f=l.skewY,m=l.scaleX,h=l.scaleY,g=l.target,b=l.xOrigin,v=l.yOrigin,y=l.xOffset,j=l.yOffset,w=l.forceCSS,N=parseFloat(d),k=parseFloat(u);p=parseFloat(p),x=parseFloat(x),(f=parseFloat(f))&&(x+=f=parseFloat(f),p+=f),p||x?(p*=r8,x*=r8,i=Math.cos(p)*m,a=Math.sin(p)*m,r=-(Math.sin(p-x)*h),n=Math.cos(p-x)*h,x&&(f*=r8,r*=s=Math.sqrt(1+(s=Math.tan(x-f))*s),n*=s,f&&(i*=s=Math.sqrt(1+(s=Math.tan(f))*s),a*=s)),i=iG(i),a=iG(a),r=iG(r),n=iG(n)):(i=m,n=h,a=r=0),(N&&!~(d+"").indexOf("px")||k&&!~(u+"").indexOf("px"))&&(N=n$(g,"x",d,"px"),k=n$(g,"y",u,"px")),(b||v||y||j)&&(N=iG(N+b-(b*i+v*r)+y),k=iG(k+v-(b*a+v*n)+j)),(o||c)&&(N=iG(N+o/100*(s=g.getBBox()).width),k=iG(k+c/100*s.height)),s="matrix("+i+","+a+","+r+","+n+","+N+","+k+")",g.setAttribute("transform",s),w&&(g.style[nh]=s)},n1=function(e,t,i,a,r){var n,s,l=il(r),o=parseFloat(r)*(l&&~r.indexOf("rad")?r4:1)-a,c=a+o+"deg";return l&&("short"===(n=r.split("_")[1])&&(o%=360)!=o%180&&(o+=o<0?360:-360),"cw"===n&&o<0?o=(o+36e9)%360-360*~~(o/360):"ccw"===n&&o>0&&(o=(o-36e9)%360-360*~~(o/360))),e._pt=s=new rO(e._pt,t,i,a,o,nr),s.e=c,s.u="deg",e._props.push(i),s},n5=function(e,t){for(var i in t)e[i]=t[i];return e},n2=function(e,t,i){var a,r,n,s,l,o,c,d=n5({},i._gsap),u=i.style;for(r in d.svg?(n=i.getAttribute("transform"),i.setAttribute("transform",""),u[nh]=t,a=nX(i,1),nM(i,nh),i.setAttribute("transform",n)):(n=getComputedStyle(i)[nh],u[nh]=t,a=nX(i,1),u[nh]=n),r6)(n=d[r])!==(s=a[r])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)&&(l=aC(n)!==(c=aC(s))?n$(i,r,n,c):parseFloat(n),o=parseFloat(s),e._pt=new rO(e._pt,a,r,l,o-l,na),e._pt.u=c||0,e._props.push(r));n5(a,d)};iX("padding,margin,Width,Radius",function(e,t){var i="Right",a="Bottom",r="Left",n=(t<3?["Top",i,a,r]:["Top"+r,"Top"+i,a+i,a+r]).map(function(i){return t<2?e+i:"border"+i+e});nF[t>1?"border"+e:e]=function(e,t,i,a,r){var s,l;if(arguments.length<4)return 5===(l=(s=n.map(function(t){return nI(e,t,i)})).join(" ")).split(s[0]).length?s[0]:l;s=(a+"").split(" "),l={}
1,n.forEach(function(e,t){return l[e]=s[t]=s[t]||s[(t-1)/2|0]}),e.init(t,l,r)}});var n3={name:"css",register:nC,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,a,r){var n,s,l,o,c,d,u,p,x,f,m,h,g,b,v,y,j,w=this._props,N=e.style,k=i.vars.startAt;for(u in r0||nC(),this.styles=this.styles||nj(e),y=this.styles.props,this.tween=i,t)if("autoRound"!==u&&(s=t[u],!(iB[u]&&rm(u,t,i,a,e,r)))){if(c=typeof s,d=nF[u],"function"===c&&(c=typeof(s=s.call(i,a,e,r))),"string"===c&&~s.indexOf("random(")&&(s=aO(s)),d)d(this,e,u,s,i)&&(v=1);else if("--"===u.substr(0,2))n=(getComputedStyle(e).getPropertyValue(u)+"").trim(),s+="",aG.lastIndex=0,!aG.test(n)&&(p=aC(n),(x=aC(s))?p!==x&&(n=n$(e,u,n,x)+x):p&&(s+=p)),this.add(N,"setProperty",n,s,a,r,0,0,u),w.push(u),y.push(u,0,N[u]);else if("undefined"!==c){if(k&&u in k?(il(n="function"==typeof k[u]?k[u].call(i,a,e,r):k[u])&&~n.indexOf("random(")&&(n=aO(n)),aC(n+"")||"auto"===n||(n+=t7.units[u]||aC(nI(e,u))||""),"="===(n+"").charAt(1)&&(n=nI(e,u))):n=nI(e,u),o=parseFloat(n),(f="string"===c&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),l=parseFloat(s),u in ni&&("autoAlpha"===u&&(1===o&&"hidden"===nI(e,"visibility")&&l&&(o=0),y.push("visibility",0,N.visibility),nL(this,N,"visibility",o?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==u&&"transform"!==u&&~(u=ni[u]).indexOf(",")&&(u=u.split(",")[0])),m=u in r6){if(this.styles.save(u),j=s,"string"===c&&"var(--"===s.substring(0,6)){if("calc("===(s=nN(e,s.substring(4,s.indexOf(")")))).substring(0,5)){var _=e.style.perspective;e.style.perspective=s,s=nN(e,"perspective"),_?e.style.perspective=_:nM(e,"perspective")}l=parseFloat(s)}if(h||((g=e._gsap).renderTransform&&!t.parseTransform||nX(e,t.parseTransform),b=!1!==t.smoothOrigin&&g.smooth,(h=this._pt=new rO(this._pt,N,nh,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===u)this._pt=new rO(this._pt,g,"scaleY",g.scaleY,(f?iZ(g.scaleY,f+l):l)-g.scaleY||0,na),this._pt.u=0,w.push("scaleY",u),u+="X";else if("transformOrigin"===u){y.push(ng,0,N[ng]),s=nD(s),g.svg?nU(e,s,0,b,0,this):((x=parseFloat(s.split(" ")[2])||0)!==g.zOrigin&&nL(this,g,"zOrigin",g.zOrigin,x),nL(this,N,u,nG(n),nG(s)));continue}else if("svgOrigin"===u){nU(e,s,1,b,0,this);continue}else if(u in nH){n1(this,g,u,o,f?iZ(o,f+s):s);continue}else if("smoothOrigin"===u){nL(this,g,"smooth",g.smooth,s);continue}else if("force3D"===u){g[u]=s;continue}else if("transform"===u){n2(this,s,e);continue}}else u in N||(u=n_(u)||u);if(m||(l||0===l)&&(o||0===o)&&!nt.test(s)&&u in N)p=(n+"").substr((o+"").length),l||(l=0),x=aC(s)||(u in t7.units?t7.units[u]:p),p!==x&&(o=n$(e,u,n,x)),this._pt=new rO(this._pt,m?g:N,u,o,(f?iZ(o,f+l):l)-o,!m&&("px"===x||"zIndex"===u)&&!1!==t.autoRound?nl:na),this._pt.u=x||0,m&&j!==s?(this._pt.b=n,this._pt.e=j,this._pt.r=ns):p!==x&&"%"!==x&&(this._pt.b=n,this._pt.r=nn);else if(u in N)nO.call(this,e,u,n,f?f+s:s);else if(u in e)this.add(e,u,n||e[u],f?f+s:s,a,r);else if("parseTransform"!==u){iA(u,s);continue}m||(u in N?y.push(u,0,N[u]):"function"==typeof e[u]?y.push(u,2,e[u]()):y.push(u,1,n||e[u])),w.push(u)}}v&&rI(this)},render:function(e,t){if(t.tween._time||!r2())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:nI,aliases:ni,getSetter:function(e,t,i){var a=ni[t];return a&&0>a.indexOf(",")&&(t=a),t in r6&&t!==ng&&(e._gsap.x||nI(e,"x"))?i&&r5===i?"scale"===t?nx:np:(r5=i||{},"scale"===t?nf:nm):e.style&&!id(e.style[t])?nd:~t.indexOf("-")?nu:rR(e,t)},core:{_removeProperty:nM,_getMatrix:nY}};rZ.utils.checkPrefix=n_,rZ.core.getStyleSaver=nj,n8=iX("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(n4="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){r6[e]=1}),iX(n4,function(e){t7.units[e]="deg",nH[e]=1}),ni[n8[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+n4,iX("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");ni[t[1]]=n8[t[0]]}),iX("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){t7.units[e]="px"}),rZ.registerPlugin(n3);var n6=rZ.registerPlugin(n3)||rZ;n6.core.Tween;var n4,n8,n7,n9,se,st,si,sa,sr,sn,ss,sl,so,sc,sd,su=function(){return n7||"u">typeof window&&(n7=window.gsap)&&n7.registerPlugin&&n7},sp=1,sx=[],sf=[],sm=[],sh=Date.now,sg=function(e,t){return t},sb=function(){var e=ss.core,t=e.bridge||{},i=e._scrollers,a=e._proxies;i.push.apply(i,sf),a.push.apply(a,sm),sf=i,sm=a,sg=function(e,i){return t[e](i)}},sv=function(e,t){return~sm.indexOf(e)&&sm[sm.indexOf(e)+1][t]},sy=function(e){return!!~sl.indexOf(e)},sj=function(e,t,i,a,r){return e.addEventListener(t,i,{passive:!1!==a,capture:!!r})},sw=function(e,t,i,a){return e.removeEventListener(t,i,!!a)},sN="scrollLeft",sk="scrollTop",s_=function(){return so&&so.isPressed||sf.cache++},sC=function(e,t){var i=function i(a){if(a||0===a){sp&&(se.history.scrollRestoration="manual");var r=so&&so.isPressed;e(a=i.v=Math.round(a)||(so&&so.iOS?1:0)),i.cacheID=sf.cache,r&&sg("ss",a)}else(t||sf.cache!==i.cacheID||sg("ref"))&&(i.cacheID=sf.cache,i.v=e());return i.v+i.offset};return i.offset=0,e&&i},sT={s:sN,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:sC(function(e){return arguments.length?se.scrollTo(e,sR.sc()):se.pageXOffset||st[sN]||si[sN]||sa[sN]||0})},sR={s:sk,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:sT,sc:sC(function(e){return arguments.length?se.scrollTo(sT.sc(),e):se.pageYOffset||st[sk]||si[sk]||sa[sk]||0})},sS=function(e,t){return(t&&t._ctx&&t._ctx.selector||n7.utils.toArray)(e)[0]||("string"==typeof e&&!1!==n7.config().nullTargetWarn?console.warn("Element not found:",e):null)},sA=function(e,t){for(var i=t.length;i--;)if(t[i]===e||t[i].contains(e))return!0;return!1},sM=function(e,t){var i=t.s,a=t.sc;sy(e)&&(e=st.scrollingElement||si);var r=sf.indexOf(e),n=a===sR.sc?1:2;~r||(r=sf.push(e)-1),sf[r+n]||sj(e,"scroll",s_);var s=sf[r+n],l=s||(sf[r+n]=sC(sv(e,i),!0)||(sy(e)?a:sC(function(t){return arguments.length?e[i]=t:e[i]})));return l.target=e,s||(l.smooth="smooth"===n7.getProperty(e,"scrollBehavior")),l},sL=function(e,t,i){var a=e,r=e,n=sh(),s=n,l=t||50,o=Math.max(500,3*l),c=function(e,t){var o=sh();t||o-n>
1l?(r=a,a=e,s=n,n=o):i?a+=e:a=r+(e-r)/(o-s)*(n-s)};return{update:c,reset:function(){r=a=i?0:a,s=n=0},getVelocity:function(e){var t=s,l=r,d=sh();return(e||0===e)&&e!==a&&c(e),n===s||d-s>o?0:(a+(i?l:-l))/((i?d:n)-t)*1e3}}},sP=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},sE=function(e){var t=Math.max.apply(Math,e),i=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(i)?t:i},s$=function(){(ss=n7.core.globals().ScrollTrigger)&&ss.core&&sb()},sI=function(e){return n7=e||su(),!n9&&n7&&"u">typeof document&&document.body&&(se=window,si=(st=document).documentElement,sa=st.body,sl=[se,st,si,sa],n7.utils.clamp,sd=n7.core.context||function(){},sn="onpointerenter"in sa?"pointer":"mouse",sr=sO.isTouch=se.matchMedia&&se.matchMedia("(hover: none), (pointer: coarse)").matches?1:2*("ontouchstart"in se||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),sc=sO.eventTypes=("ontouchstart"in si?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in si)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return sp=0},500),s$(),n9=1),n9};sT.op=sR,sf.cache=0;var sO=function(){var e;function t(e){this.init(e)}return t.prototype.init=function(e){n9||sI(n7)||console.warn("Please gsap.registerPlugin(Observer)"),ss||s$();var t=e.tolerance,i=e.dragMinimum,a=e.type,r=e.target,n=e.lineHeight,s=e.debounce,l=e.preventDefault,o=e.onStop,c=e.onStopDelay,d=e.ignore,u=e.wheelSpeed,p=e.event,x=e.onDragStart,f=e.onDragEnd,m=e.onDrag,h=e.onPress,g=e.onRelease,b=e.onRight,v=e.onLeft,y=e.onUp,j=e.onDown,w=e.onCh
vendor: 16,159 bytes, line 1
1angeX,N=e.onChangeY,k=e.onChange,_=e.onToggleX,C=e.onToggleY,T=e.onHover,R=e.onHoverEnd,S=e.onMove,A=e.ignoreCheck,M=e.isNormalizer,L=e.onGestureStart,P=e.onGestureEnd,E=e.onWheel,$=e.onEnable,I=e.onDisable,O=e.onClick,z=e.scrollSpeed,D=e.capture,B=e.allowClicks,F=e.lockAxis,W=e.onLockAxis;this.target=r=sS(r)||si,this.vars=e,d&&(d=n7.utils.toArray(d)),t=t||1e-9,i=i||0,u=u||1,z=z||1,a=a||"wheel,touch,pointer",s=!1!==s,n||(n=parseFloat(se.getComputedStyle(sa).lineHeight)||22);var H,q,V,Y,U,X,G,Q=this,Z=0,K=0,J=e.passive||!l&&!1!==e.passive,ee=sM(r,sT),et=sM(r,sR),ei=ee(),ea=et(),er=~a.indexOf("touch")&&!~a.indexOf("pointer")&&"pointerdown"===sc[0],en=sy(r),es=r.ownerDocument||st,el=[0,0,0],eo=[0,0,0],ec=0,ed=function(){return ec=sh()},eu=function(e,t){return(Q.event=e)&&d&&sA(e.target,d)||t&&er&&"touch"!==e.pointerType||A&&A(e,t)},ep=function(){var e=Q.deltaX=sE(el),i=Q.deltaY=sE(eo),a=Math.abs(e)>=t,r=Math.abs(i)>=t;k&&(a||r)&&k(Q,e,i,el,eo),a&&(b&&Q.deltaX>0&&b(Q),v&&Q.deltaX<0&&v(Q),w&&w(Q),_&&Q.deltaX<0!=Z<0&&_(Q),Z=Q.deltaX,el[0]=el[1]=el[2]=0),r&&(j&&Q.deltaY>0&&j(Q),y&&Q.deltaY<0&&y(Q),N&&N(Q),C&&Q.deltaY<0!=K<0&&C(Q),K=Q.deltaY,eo[0]=eo[1]=eo[2]=0),(Y||V)&&(S&&S(Q),V&&(x&&1===V&&x(Q),m&&m(Q),V=0),Y=!1),X&&(X=!1,1)&&W&&W(Q),U&&(E(Q),U=!1),H=0},ex=function(e,t,i){el[i]+=e,eo[i]+=t,Q._vx.update(e),Q._vy.update(t),s?H||(H=requestAnimationFrame(ep)):ep()},ef=function(e,t){F&&!G&&(Q.axis=G=Math.abs(e)>Math.abs(t)?"x":"y",X=!0),"y"!==G&&(el[2]+=e,Q._vx.update(e,!0)),"x"!==G&&(eo[2]+=t,Q._vy.update(t,!0)),s?H||(H=requestAnimationFrame(ep)):ep()},em=function(e){if(!eu(e,1)){var t=(e=sP(e,l)).clientX,a=e.clientY,r=t-Q.x,n=a-Q.y,s=Q.isDragging;Q.x=t,Q.y=a,(s||(r||n)&&(Math.abs(Q.startX-t)>=i||Math.abs(Q.startY-a)>=i))&&(V||(V=s?2:1),s||(Q.isDragging=!0),ef(r,n))}},eh=Q.onPress=function(e){eu(e,1)||e&&e.button||(Q.axis=G=null,q.pause(),Q.isPressed=!0,e=sP(e),Z=K=0,Q.startX=Q.x=e.clientX,Q.startY=Q.y=e.clientY,Q._vx.reset(),Q._vy.reset(),sj(M?r:es,sc[1],em,J,!0),Q.deltaX=Q.deltaY=0,h&&h(Q))},eg=Q.onRelease=function(e){if(!eu(e,1)){sw(M?r:es,sc[1],em,!0);var t=!isNaN(Q.y-Q.startY),i=Q.isDragging,a=i&&(Math.abs(Q.x-Q.startX)>3||Math.abs(Q.y-Q.startY)>3),n=sP(e);!a&&t&&(Q._vx.reset(),Q._vy.reset(),l&&B&&n7.delayedCall(.08,function(){if(sh()-ec>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(es.createEvent){var t=es.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,se,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),Q.isDragging=Q.isGesturing=Q.isPressed=!1,o&&i&&!M&&q.restart(!0),V&&ep(),f&&i&&f(Q),g&&g(Q,a)}},eb=function(e){return e.touches&&e.touches.length>1&&(Q.isGesturing=!0)&&L(e,Q.isDragging)},ev=function(){return Q.isGesturing=!1,P(Q)},ey=function(e){if(!eu(e)){var t=ee(),i=et();ex((t-ei)*z,(i-ea)*z,1),ei=t,ea=i,o&&q.restart(!0)}},ej=function(e){if(!eu(e)){e=sP(e,l),E&&(U=!0);var t=(1===e.deltaMode?n:2===e.deltaMode?se.innerHeight:1)*u;ex(e.deltaX*t,e.deltaY*t,0),o&&!M&&q.restart(!0)}},ew=function(e){if(!eu(e)){var t=e.clientX,i=e.clientY,a=t-Q.x,r=i-Q.y;Q.x=t,Q.y=i,Y=!0,o&&q.restart(!0),(a||r)&&ef(a,r)}},eN=function(e){Q.event=e,T(Q)},ek=function(e){Q.event=e,R(Q)},e_=function(e){return eu(e)||sP(e,l)&&O(Q)};q=Q._dc=n7.delayedCall(c||.25,function(){Q._vx.reset(),Q._vy.reset(),q.pause(),o&&o(Q)}).pause(),Q.deltaX=Q.deltaY=0,Q._vx=sL(0,50,!0),Q._vy=sL(0,50,!0),Q.scrollX=ee,Q.scrollY=et,Q.isDragging=Q.isGesturing=Q.isPressed=!1,sd(this),Q.enable=function(e){return!Q.isEnabled&&(sj(en?es:r,"scroll",s_),a.indexOf("scroll")>=0&&sj(en?es:r,"scroll",ey,J,D),a.indexOf("wheel")>=0&&sj(r,"wheel",ej,J,D),(a.indexOf("touch")>=0&&sr||a.indexOf("pointer")>=0)&&(sj(r,sc[0],eh,J,D),sj(es,sc[2],eg),sj(es,sc[3],eg),B&&sj(r,"click",ed,!0,!0),O&&sj(r,"click",e_),L&&sj(es,"gesturestart",eb),P&&sj(es,"gestureend",ev),T&&sj(r,sn+"enter",eN),R&&sj(r,sn+"leave",ek),S&&sj(r,sn+"move",ew)),Q.isEnabled=!0,Q.isDragging=Q.isGesturing=Q.isPressed=Y=V=!1,Q._vx.reset(),Q._vy.reset(),ei=ee(),ea=et(),e&&e.type&&eh(e),$&&$(Q)),Q},Q.disable=function(){Q.isEnabled&&(sx.filter(function(e){return e!==Q&&sy(e.target)}).length||sw(en?es:r,"scroll",s_),Q.isPressed&&(Q._vx.reset(),Q._vy.reset(),sw(M?r:es,sc[1],em,!0)),sw(en?es:r,"scroll",ey,D),sw(r,"wheel",ej,D),sw(r,sc[0],eh,D),sw(es,sc[2],eg),sw(es,sc[3],eg),sw(r,"click",ed,!0),sw(r,"click",e_),sw(es,"gesturestart",eb),sw(es,"gestureend",ev),sw(r,sn+"enter",eN),sw(r,sn+"leave",ek),sw(r,sn+"move",ew),Q.isEnabled=Q.isPressed=Q.isDragging=!1,I&&I(Q))},Q.kill=Q.revert=function(){Q.disable();var e=sx.indexOf(Q);e>=0&&sx.splice(e,1),so===Q&&(so=0)},sx.push(Q),M&&sy(r)&&(so=Q),Q.enable(p)},e=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}],function(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(t.prototype,e),t}();sO.version="3.14.2",sO.create=function(e){return new sO(e)},sO.register=sI,sO.getAll=function(){return sx.slice()},sO.getById=function(e){return sx.filter(function(t){return t.vars.id===e})[0]},su()&&n7.registerPlugin(sO);var sz,sD,sB,sF,sW,sH,sq,sV,sY,sU,sX,sG,sQ,sZ,sK,sJ,s0,s1,s5,s2,s3,s6,s4,s8,s7,s9,le,lt,li,la,lr,ln,ls,ll,lo,lc,ld,lu,lp=1,lx=Date.now,lf=lx(),lm=0,lh=0,lg=function(e,t,i){var a=lM(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return i["_"+t+"Clamp"]=a,a?e.substr(6,e.length-7):e},lb=function(e,t){return t&&(!lM(e)||"clamp("!==e.substr(0,6))?"clamp("+e+")":e},lv=function(){return sZ=1},ly=function(){return sZ=0},lj=function(e){return e},lw=function(e){return Math.round(1e5*e)/1e5||0},lN=function(){return"u">typeof window},lk=function(){return sz||lN()&&(sz=window.gsap)&&sz.registerPlugin&&sz},l_=function(e){return!!~sq.indexOf(e)},lC=function(e){return("Height"===e?lr:sB["inner"+e])||sW["client"+e]||sH["client"+e]},lT=function(e){return sv(e,"getBoundingClientRect")||(l_(e)?function(){return oE.width=sB.innerWidth,oE.height=lr,oE}:function(){return lJ(e)})},lR=function(e,t,i){var a=i.d,r=i.d2,n=i.a;return(n=sv(e,"getBoundingClientRect"))?function(){return n()[a]}:function(){return(t?lC(r):e["client"+r])||0}},lS=function(e,t){var i=t.s,a=t.d2,r=t.d,n=t.a;return Math.max(0,(n=sv(e,i="scroll"+a))?n()-lT(e)()[r]:l_(e)?(sW[i]||sH[i])-lC(a):e[i]-e["offset"+a])},lA=function(e,t){for(var i=0;i<s5.length;i+=3)(!t||~t.indexOf(s5[i+1]))&&e(s5[i],s5[i+1],s5[i+2])},lM=function(e){return"string"==typeof e},lL=function(e){return"function"==typeof e},lP=function(e){return"number"==typeof e},lE=function(e){return"object"==typeof e},l$=function(e,t,i){return e&&e.progress(+!t)&&i&&e.pause()},lI=function(e,t){if(e.enabled){var i=e._ctx?e._ctx.add(function(){return t(e)}):t(e);i&&i.totalTime&&(e.callbackAnimation=i)}},lO=Math.abs,lz="left",lD="right",lB="bottom",lF="width",lW="height",lH="Right",lq="Left",lV="Bottom",lY="padding",lU="margin",lX="Width",lG="Height",lQ=function(e){return sB.getComputedStyle(e)},lZ=function(e){var t=lQ(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"},lK=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},lJ=function(e,t){var i=t&&"matrix(1, 0, 0, 1, 0, 0)"!==lQ(e)[sK]&&sz.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),a=e.getBoundingClientRect();return i&&i.progress(0).kill(),a},l0=function(e,t){var i=t.d2;return e["offset"+i]||e["client"+i]||0},l1=function(e){var t,i=[],a=e.labels,r=e.duration();for(t in a)i.push(a[t]/r);return i},l5=function(e){var t=sz.utils.snap(e),i=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return i?function(e,a,r){var n;if(void 0===r&&(r=.001),!a)return t(e);if(a>0){for(e-=r,n=0;n<i.length;n++)if(i[n]>=e)return i[n];return i[n-1]}for(n=i.length,e+=r;n--;)if(i[n]<=e)return i[n];return i[0]}:function(i,a,r){void 0===r&&(r=.001);var n=t(i);return!a||Math.abs(n-i)<r||n-i<0==a<0?n:t(a<0?i-e:i+e)}},l2=function(e,t,i,a){return i.split(",").forEach(function(i){return e(t,i,a)})},l3=function(e,t,i,a,r){return e.addEventListener(t,i,{passive:!a,capture:!!r})},l6=function(e,t,i,a){return e.removeEventListener(t,i,!!a)},l4=function(e,t,i){(i=i&&i.wheelHandler)&&(e(t,"wheel",i),e(t,"touchmove",i))},l8={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},l7={toggleActions:"play",anticipatePin:0},l9={top:0,left:0,center:.5,bottom:1,right:1},oe=function(e,t){if(lM(e)){var i=e.indexOf("="),a=~i?(e.charAt(i-1)+1)*parseFloat(e.substr(i+1)):0;~i&&(e.indexOf("%")>i&&(a*=t/100),e=e.substr(0,i-1)),e=a+(e in l9?l9[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},ot=function(e,t,i,a,r,n,s,l){var o=r.startColor,c=r.endColor,d=r.fontSize,u=r.indent,p=r.fontWeight,x=sF.createElement("div"),f=l_(i)||"fixed"===sv(i,"pinType"),m=-1!==e.indexOf("scroller"),h=f?sH:i,g=-1!==e.indexOf("start"),b=g?o:c,v="border-color:"+b+";font-size:"+d+";color:"+b+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return v+="position:"+((m||l)&&f?"fixed;":"absolute;"),(m||l||!f)&&(v+=(a===sR?lD:lB)+":"+(n+parseFloat(u))+"px;"),s&&(v+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),x._isStart=g,x.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),x.style.cssText=v,x.innerText=t||0===t?e+"-"+t:e,h.children[0]?h.insertBefore(x,h.children[0]):h.appendChild(x),x._offset=x["offset"+a.op.d2],oi(x,0,a,g),x},oi=function(e,t,i,a){var r={display:"block"},n=i[a?"os2":"p2"],s=i[a?"p2":"os2"];e._isFlipped=a,r[i.a+"Percent"]=a?-100:0,r[i.a]=a?"1px":0,r["border"+n+lX]=1,r["border"+s+lX]=0,r[i.p]=t+"px",sz.set(e,r)},oa=[],or={},on=function(){return lx()-lm>34&&(lo||(lo=requestAnimationFrame(o_)))},os=function(){s4&&s4.isPressed&&!(s4.startX>sH.clientWidth)||(sf.cache++,s4?lo||(lo=requestAnimationFrame(o_)):o_(),lm||op("scrollStart"),lm=lx())},ol=function(){s9=sB.innerWidth,s7=sB.innerHeight},oo=function(e){sf.cache++,(!0===e||!sQ&&!s6&&!sF.fullscreenElement&&!sF.webkitFullscreenElement&&(!s8||s9!==sB.innerWidth||Math.abs(sB.innerHeight-s7)>.25*sB.innerHeight))&&sV.restart(!0)},oc={},od=[],ou=function e(){return l6(oF,"scrollEnd",e)||ow(!0)},op=function(e){return oc[e]&&oc[e].map(function(e){return e()})||od},ox=[],of=function(e){for(var t=0;t<ox.length;t+=5)(!e||ox[t+4]&&ox[t+4].query===e)&&(ox[t].style.cssText=ox[t+1],ox[t].getBBox&&ox[t].setAttribute("transform",ox[t+2]||""),ox[t+3].uncache=1)},om=function(){return sf.forEach(function(e){return lL(e)&&++e.cacheID&&(e.rec=e())})},oh=function(e,t){var i;for(sJ=0;sJ<oa.length;sJ++)(i=oa[sJ])&&(!t||i._ctx===t)&&(e?i.kill(1):i.revert(!0,!0));ln=!0,t&&of(t),t||op("revert")},og=function(e,t){sf.cache++,(t||!lc)&&sf.forEach(function(e){return lL(e)&&e.cacheID++&&(e.rec=0)}),lM(e)&&(sB.history.scrollRestoration=li=e)},ob=0,ov=function(){if(ld!==ob){var e=ld=ob;requestAnimationFrame(function(){return e===ob&&ow(!0)})}},oy=function(){sH.appendChild(la),lr=!s4&&la.offsetHeight||sB.innerHeight,sH.removeChild(la)},oj=function(e){return sY(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},ow=function(e,t){if(sW=sF.documentElement,sH=sF.body,sq=[sB,sF,sW,sH],lm&&!e&&!ln)return void l3(oF,"scrollEnd",ou);oy(),lc=oF.isRefreshing=!0,ln||om();var i=op("refreshInit");s2&&oF.sort(),t||oh(),sf.forEach(function(e){lL(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),oa.slice(0).forEach(function(e){return e.refresh()}),ln=!1,oa.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",i=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-i),e.refresh()}}),ls=1,oj(!0),oa.forEach(function(e){var t=lS(e.scroller,e._dir),i="max"===e.vars.end||e._endClamp&&e.end>t,a=e._startClamp&&e.start>=t;(i||a)&&e.setPositions(a?t-1:e.start,i?Math.max(a?t:e.start+1,t):e.end,!0)}),oj(!1),ls=0,i.forEach(function(e){return e&&e.render&&e.render(-1)}),sf.forEach(function(e){lL(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),og(li,1),sV.pause(),ob++,lc=2,o_(2),oa.forEach(function(e){return lL(e.vars.onRefresh)&&e.vars.onRefresh(e)}),lc=oF.isRefreshing=!1,op("refresh")},oN=0,ok=1,o_=function(e){if(2===e||!lc&&!ln){oF.isUpdating=!0,lu&&lu.update(0);var t=oa.length,i=lx(),a=i-lf>=50,r=t&&oa[0].scroll();if(ok=oN>r?-1:1,lc||(oN=r),a&&(lm&&!sZ&&i-lm>200&&(lm=0,op("scrollEnd")),sX=lf,lf=i),ok<0){for(sJ=t;sJ-- >0;)oa[sJ]&&oa[sJ].update(0,a);ok=1}else for(sJ=0;sJ<t;sJ++)oa[sJ]&&oa[sJ].update(0,a);oF.isUpdating=!1}lo=0},oC=[lz,"top",lB,lD,lU+lV,lU+lH,lU+"Top",lU+lq,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],oT=oC.concat([lF,lW,"boxSizing","max"+lX,"max"+lG,"position",lU,lY,lY+"Top",lY+lH,lY+lV,lY+lq]),oR=function(e,t,i){oM(i);var a=e._gsap;if(a.spacerIsNative)oM(a.spacerState);else if(e._gsap.swappedIn){var r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}e._gsap.swappedIn=!1},oS=function(e,t,i,a){if(!e._gsap.swappedIn){for(var r,n=oC.length,s=t.style,l=e.style;n--;)s[r=oC[n]]=i[r];s.position="absolute"===i.position?"absolute":"relative","inline"===i.display&&(s.display="inline-block"),l[lB]=l[lD]="auto",s.flexBasis=i.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[lF]=l0(e,sT)+"px",s[lW]=l0(e,sR)+"px",s[lY]=l[lU]=l.top=l[lz]="0",oM(a),l[lF]=l["max"+lX]=i[lF],l[lW]=l["max"+lG]=i[lW],l[lY]=i[lY],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},oA=/([A-Z])/g,oM=function(e){if(e){var t,i,a=e.t.style,r=e.length,n=0;for((e.t._gsap||sz.core.getCache(e.t)).uncache=1;n<r;n+=2)i=e[n+1],t=e[n],i?a[t]=i:a[t]&&a.removeProperty(t.replace(oA,"-$1").toLowerCase())}},oL=function(e){for(var t=oT.length,i=e.style,a=[],r=0;r<t;r++)a.push(oT[r],i[oT[r]]);return a.t=e,a},oP=function(e,t,i){for(var a,r=[],n=e.length,s=8*!!i;s<n;s+=2)a=e[s],r.push(a,a in t?t[a]:e[s+1]);return r.t=e.t,r},oE={left:0,top:0},o$=function(e,t,i,a,r,n,s,l,o,c,d,u,p,x){lL(e)&&(e=e(l)),lM(e)&&"max"===e.substr(0,3)&&(e=u+("="===e.charAt(4)?oe("0"+e.substr(3),i):0));var f,m,h,g=p?p.time():0;if(p&&p.seek(0),isNaN(e)||(e*=1),lP(e))p&&(e=sz.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,u,e)),s&&oi(s,i,a,!0);else{lL(t)&&(t=t(l));var b,v,y,j,w=(e||"0").split(" ");(b=lJ(h=sS(t,l)||sH)||{}).left||b.top||"none"!==lQ(h).display||(j=h.style.display,h.style.display="block",b=lJ(h),j?h.style.display=j:h.style.removeProperty("display")),v=oe(w[0],b[a.d]),y=oe(w[1]||"0",i),e=b[a.p]-o[a.p]-c+v+r-y,s&&oi(s,y,a,i-y<20||s._isStart&&y>20),i-=i-y}if(x&&(l[x]=e||-.001,e<0&&(e=0)),n){var N=e+i,k=n._isStart;f="scroll"+a.d2,oi(n,N,a,k&&N>20||!k&&(d?Math.max(sH[f],sW[f]):n.parentNode[f])<=N+1),d&&(o=lJ(s),d&&(n.style[a.op.p]=o[a.op.p]-a.op.m-n._offset+"px"))}return p&&h&&(f=lJ(h),p.seek(u),m=lJ(h),p._caScrollDist=f[a.p]-m[a.p],e=e/p._caScrollDist*u),p&&p.seek(g),p?e:Math.round(e)},oI=/(webkit|moz|length|cssText|inset)/i,oO=function(e,t,i,a){if(e.parentNode!==t){var r,n,s=e.style;if(t===sH){for(r in e._stOrig=s.cssText,n=lQ(e))+r||oI.test(r)||!n[r]||"string"!=typeof s[r]||"0"===r||(s[r]=n[r]);s.top=i,s.left=a}else s.cssText=e._stOrig;sz.core.getCache(e).uncache=1,t.appendChild(e)}},oz=function(e,t,i){var a=t,r=a;return function(t){var n=Math.round(e());return n!==a&&n!==r&&Math.abs(n-a)>3&&Math.abs(n-r)>3&&(t=n,i&&i()),r=a,a=Math.round(t)}},oD=function(e,t,i){var a={};a[t.p]="+="+i,sz.set(e,a)},oB=function(e,t){var i=sM(e,t),a="_scroll"+t.p2,r=function t(r,n,s,l,o){var c=t.tween,d=n.onComplete,u={};s=s||i();var p=oz(i,s,function(){c.kill(),t.tween=0});return o=l&&o||0,l=l||r-s,c&&c.kill(),n[a]=r,n.inherit=!1,n.modifiers=u,u[a]=function(){return p(s+l*c.ratio+o*c.ratio*c.ratio)},n.onUpdate=function(){sf.cache++,t.tween&&o_()},n.onComplete=function(){t.tween=0,d&&d.call(c)},c=t.tween=sz.to(e,n)};return e[a]=i,i.wheelHandler=function(){return r.tween&&r.tween.kill()&&(r.t
1ween=0)},l3(e,"wheel",i.wheelHandler),oF.isTouch&&l3(e,"touchmove",i.wheelHandler),r},oF=function(){function e(t,i){sD||e.register(sz)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),lt(this),this.init(t,i)}return e.prototype.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!lh){this.update=this.refresh=this.kill=lj;return}var a,r,n,s,l,o,c,d,u,p,x,f,m,h,g,b,v,y,j,w,N,k,_,C,T,R,S,A,M,L,P,E,$,I,O,z,D,B,F,W,H,q=t=lK(lM(t)||lP(t)||t.nodeType?{trigger:t}:t,l7),V=q.onUpdate,Y=q.toggleClass,U=q.id,X=q.onToggle,G=q.onRefresh,Q=q.scrub,Z=q.trigger,K=q.pin,J=q.pinSpacing,ee=q.invalidateOnRefresh,et=q.anticipatePin,ei=q.onScrubComplete,ea=q.onSnapComplete,er=q.once,en=q.snap,es=q.pinReparent,el=q.pinSpacer,eo=q.containerAnimation,ec=q.fastScrollEnd,ed=q.preventOverlaps,eu=t.horizontal||t.containerAnimation&&!1!==t.horizontal?sT:sR,ep=!Q&&0!==Q,ex=sS(t.scroller||sB),ef=sz.core.getCache(ex),em=l_(ex),eh=("pinType"in t?t.pinType:sv(ex,"pinType")||em&&"fixed")==="fixed",eg=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],eb=ep&&t.toggleActions.split(" "),ev="markers"in t?t.markers:l7.markers,ey=em?0:parseFloat(lQ(ex)["border"+eu.p2+lX])||0,ej=this,ew=t.onRefreshInit&&function(){return t.onRefreshInit(ej)},eN=lR(ex,em,eu),ek=!em||~sm.indexOf(ex)?lT(ex):function(){return oE},e_=0,eC=0,eT=0,eR=sM(ex,eu);if(ej._startClamp=ej._endClamp=!1,ej._dir=eu,et*=45,ej.scroller=ex,ej.scroll=eo?eo.time.bind(eo):eR,o=eR(),ej.vars=t,i=i||t.animation,"refreshPriority"in t&&(s2=1,-9999===t.refreshPriority&&(lu=ej)),ef.tweenScroll=ef.tweenScroll||{top:oB(ex,sR),left:oB(ex,sT)},ej.tweenTo=n=ef.tweenScroll[eu.p],ej.scrubDuration=function(e){(O=lP(e)&&e)?I?I.duration(e):I=sz.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:O,paused:!0,onComplete:function(){return ei&&ei(ej)}}):(I&&I.progress(1).kill(),I=0)},i&&(i.vars.lazy=!1,i._initted&&!ej.isReverted||!1!==i.vars.immediateRender&&!1!==t.immediateRender&&i.duration()&&i.render(0,!0,!0),ej.animation=i.pause(),i.scrollTrigger=ej,ej.scrubDuration(Q),E=0,U||(U=i.vars.id)),en&&((!lE(en)||en.push)&&(en={snapTo:en}),"scrollBehavior"in sH.style&&sz.set(em?[sH,sW]:ex,{scrollBehavior:"auto"}),sf.forEach(function(e){return lL(e)&&e.target===(em?sF.scrollingElement||sW:ex)&&(e.smooth=!1)}),l=lL(en.snapTo)?en.snapTo:"labels"===en.snapTo?(a=i,function(e){return sz.utils.snap(l1(a),e)}):"labelsDirectional"===en.snapTo?(r=i,function(e,t){return l5(l1(r))(e,t.direction)}):!1!==en.directional?function(e,t){return l5(en.snapTo)(e,lx()-eC<500?0:t.direction)}:sz.utils.snap(en.snapTo),z=lE(z=en.duration||{min:.1,max:2})?sU(z.min,z.max):sU(z,z),D=sz.delayedCall(en.delay||O/2||.1,function(){var e=eR(),t=lx()-eC<500,a=n.tween;if((t||10>Math.abs(ej.getVelocity()))&&!a&&!sZ&&e_!==e){var r,s,o=(e-d)/b,c=i&&!ep?i.totalProgress():o,p=t?0:(c-$)/(lx()-sX)*1e3||0,x=sz.utils.clamp(-o,1-o,lO(p/2)*p/.185),f=o+(!1===en.inertia?0:x),m=en,h=m.onStart,g=m.onInterrupt,v=m.onComplete;if(lP(r=l(f,ej))||(r=f),s=Math.max(0,Math.round(d+r*b)),e<=u&&e>=d&&s!==e){if(a&&!a._initted&&a.data<=lO(s-e))return;!1===en.inertia&&(x=r-o),n(s,{duration:z(lO(.185*Math.max(lO(f-c),lO(r-c))/p/.05||0)),ease:en.ease||"power3",data:lO(s-e),onInterrupt:function(){return D.restart(!0)&&g&&g(ej)},onComplete:function(){ej.update(),e_=eR(),i&&!ep&&(I?I.resetTo("totalProgress",r,i._tTime/i._tDur):i.progress(r)),E=$=i&&!ep?i.totalProgress():ej.progress,ea&&ea(ej),v&&v(ej)}},e,x*b,s-e-x*b),h&&h(ej,n.tween)}}else ej.isActive&&e_!==e&&D.restart(!0)}).pause()),U&&(or[U]=ej),(H=(Z=ej.trigger=sS(Z||!0!==K&&K))&&Z._gsap&&Z._gsap.stRevert)&&(H=H(ej)),K=!0===K?Z:sS(K),lM(Y)&&(Y={targets:Z,className:Y}),K&&(!1===J||J===lU||(J=(!!J||!K.parentNode||!K.parentNode.style||"flex"!==lQ(K.parentNode).display)&&lY),ej.pin=K,(s=sz.core.getCache(K)).spacer?v=s.pinState:(el&&((el=sS(el))&&!el.nodeType&&(el=el.current||el.nativeElement),s.spacerIsNative=!!el,el&&(s.spacerState=oL(el))),s.spacer=w=el||sF.createElement("div"),w.classList.add("pin-spacer"),U&&w.classList.add("pin-spacer-"+U),s.pinState=v=oL(K)),!1!==t.force3D&&sz.set(K,{force3D:!0}),ej.spacer=w=s.spacer,R=(P=lQ(K))[J+eu.os2],k=sz.getProperty(K),_=sz.quickSetter(K,eu.a,"px"),oS(K,w,P),j=oL(K)),ev){h=lE(ev)?lK(ev,l8):l8,f=ot("scroller-start",U,ex,eu,h,0),m=ot("scroller-end",U,ex,eu,h,0,f),N=f["offset"+eu.op.d2];var eS=sS(sv(ex,"content")||ex);
1p=this.markerStart=ot("start",U,eS,eu,h,N,0,eo),x=this.markerEnd=ot("end",U,eS,eu,h,N,0,eo),eo&&(W=sz.quickSetter([p,x],eu.a,"px")),eh||sm.length&&!0===sv(ex,"fixedMarkers")||(lZ(em?sH:ex),sz.set([f,m],{force3D:!0}),A=sz.quickSetter(f,eu.a,"px"),L=sz.quickSetter(m,eu.a,"px"))}if(eo){var eA=eo.vars.onUpdate,eM=eo.vars.onUpdateParams;eo.eventCallback("onUpdate",function(){ej.update(0,0,1),eA&&eA.apply(eo,eM||[])})}if(ej.previous=function(){return oa[oa.indexOf(ej)-1]},ej.next=function(){return oa[oa.indexOf(ej)+1]},ej.revert=function(e,t){if(!t)return ej.kill(!0);var a=!1!==e||!ej.enabled,r=sQ;a!==ej.isReverted&&(a&&(B=Math.max(eR(),ej.scroll.rec||0),eT=ej.progress,F=i&&i.progress()),p&&[p,x,f,m].forEach(function(e){return e.style.display=a?"none":"block"}),a&&(sQ=ej,ej.update(a)),!K||es&&ej.isActive||(a?oR(K,w,v):oS(K,w,lQ(K),S)),a||ej.update(a),sQ=r,ej.isReverted=a)},ej.refresh=function(a,r,s,l){if(!sQ&&ej.enabled||r){if(K&&a&&lm)return void l3(e,"scrollEnd",ou);!lc&&ew&&ew(ej),sQ=ej,n.tween&&!s&&(n.tween.kill(),n.tween=0),I&&I.pause(),ee&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),ej.isReverted||ej.revert(!0,!0),ej._subPinOffset=!1;var h,N,_,R,A,L,P,E,$,O,z,W,H,q=eN(),V=ek(),Y=eo?eo.duration():lS(ex,eu),U=b<=.01||!b,X=0,Q=l||0,et=lE(s)?s.end:t.end,ei=t.endTrigger||Z,ea=lE(s)?s.start:t.start||(0!==t.start&&Z?K?"0 0":"0 100%":0),er=ej.pinnedContainer=t.pinnedContainer&&sS(t.pinnedContainer,ej),en=Z&&Math.max(0,oa.indexOf(ej))||0,el=en;for(ev&&lE(s)&&(W=sz.getProperty(f,eu.p),H=sz.getProperty(m,eu.p));el-- >0;)(L=oa[el]).end||L.refresh(0,1)||(sQ=ej),(P=L.pin)&&(P===Z||P===K||P===er)&&!L.isReverted&&(O||(O=[]),O.unshift(L),L.revert(!0,!0)),L!==oa[el]&&(en--,el--);for(lL(ea)&&(ea=ea(ej)),d=o$(ea=lg(ea,"start",ej),Z,q,eu,eR(),p,f,ej,V,ey,eh,Y,eo,ej._startClamp&&"_startClamp")||(K?-.001:0),lL(et)&&(et=et(ej)),lM(et)&&!et.indexOf("+=")&&(~et.indexOf(" ")?et=(lM(ea)?ea.split(" ")[0]:"")+et:(X=oe(et.substr(2),q),et=lM(ea)?ea:(eo?sz.utils.mapRange(0,eo.duration(),eo.scrollTrigger.start,eo.scrollTrigger.end,d):d)+X,ei=Z)),et=lg(et,"end",ej),u=Math.max(d,o$(et||(ei?"100% 0":Y),ei,q,eu,eR()+X,x,m,ej,V,ey,eh,Y,eo,ej._endClamp&&"_endClamp"))||-.001,X=0,el=en;el--;)(P=(L=oa[el]||{}).pin)&&L.start-L._pinPush<=d&&!eo&&L.end>0&&(h=L.end-(ej._startClamp?Math.max(0,L.start):L.start),(P===Z&&L.start-L._pinPush<d||P===er)&&isNaN(ea)&&(X+=h*(1-L.progress)),P===K&&(Q+=h));if(d+=X,u+=X,ej._startClamp&&(ej._startClamp+=X),ej._endClamp&&!lc&&(ej._endClamp=u||-.001,u=Math.min(u,lS(ex,eu))),b=u-d||(d-=.01)&&.001,U&&(eT=sz.utils.clamp(0,1,sz.utils.normalize(d,u,B))),ej._pinPush=Q,p&&X&&((h={})[eu.a]="+="+X,er&&(h[eu.p]="-="+eR()),sz.set([p,x],h)),K&&!(ls&&ej.end>=lS(ex,eu)))h=lQ(K),R=eu===sR,_=eR(),C=parseFloat(k(eu.a))+Q,!Y&&u>1&&(z={style:z=(em?sF.scrollingElement||sW:ex).style,value:z["overflow"+eu.a.toUpperCase()]},em&&"scroll"!==lQ(sH)["overflow"+eu.a.toUpperCase()]&&(z.style["overflow"+eu.a.toUpperCase()]="scroll")),oS(K,w,h),j=oL(K),N=lJ(K,!0),E=eh&&sM(ex,R?sT:sR)(),J?((S=[J+eu.os2,b+Q+"px"]).t=w,(el=J===lY?l0(K,eu)+b+Q:0)&&(S.push(eu.d,el+"px"),"auto"!==w.style.flexBasis&&(w.style.flexBasis=el+"px")),oM(S),er&&oa.forEach(function(e){e.pin===er&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),eh&&eR(B)):(el=l0(K,eu))&&"auto"!==w.style.flexBasis&&(w.style.flexBasis=el+"px"),eh&&((A={top:N.top+(R?_-d:E)+"px",left:N.left+(R?E:_-d)+"px",boxSizing:"border-box",position:"fixed"})[lF]=A["max"+lX]=Math.ceil(N.width)+"px",A[lW]=A["max"+lG]=Math.ceil(N.height)+"px",A[lU]=A[lU+"Top"]=A[lU+lH]=A[lU+lV]=A[lU+lq]="0",A[lY]=h[lY],A[lY+"Top"]=h[lY+"Top"],A[lY+lH]=h[lY+lH],A[lY+lV]=h[lY+lV],A[lY+lq]=h[lY+lq],y=oP(v,A,es),lc&&eR(0)),i?($=i._initted,s3(1),i.render(i.duration(),!0,!0),T=k(eu.a)-C+b+Q,M=Math.abs(b-T)>1,eh&&M&&y.splice(y.length-2,2),i.render(0,!0,!0),$||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),s3(0)):T=b,z&&(z.value?z.style["overflow"+eu.a.toUpperCase()]=z.value:z.style.removeProperty("overflow-"+eu.a));else if(Z&&eR()&&!eo)for(N=Z.parentNode;N&&N!==sH;)N._pinOffset&&(d-=N._pinOffset,u-=N._pinOffset),N=N.parentNode;O&&O.forEach(function(e){return e.revert(!1,!0)}
vendor: 14,611 bytes, line 1
1),ej.start=d,ej.end=u,o=c=lc?B:eR(),eo||lc||(o<B&&eR(B),ej.scroll.rec=0),ej.revert(!1,!0),eC=lx(),D&&(e_=-1,D.restart(!0)),sQ=0,i&&ep&&(i._initted||F)&&i.progress()!==F&&i.progress(F||0,!0).render(i.time(),!0,!0),(U||eT!==ej.progress||eo||ee||i&&!i._initted)&&(i&&!ep&&(i._initted||eT||!1!==i.vars.immediateRender)&&i.totalProgress(eo&&d<-.001&&!eT?sz.utils.normalize(d,u,0):eT,!0),ej.progress=U||(o-d)/b===eT?0:eT),K&&J&&(w._pinOffset=Math.round(ej.progress*T)),I&&I.invalidate(),isNaN(W)||(W-=sz.getProperty(f,eu.p),H-=sz.getProperty(m,eu.p),oD(f,eu,W),oD(p,eu,W-(l||0)),oD(m,eu,H),oD(x,eu,H-(l||0))),U&&!lc&&ej.update(),!G||lc||g||(g=!0,G(ej),g=!1)}},ej.getVelocity=function(){return(eR()-c)/(lx()-sX)*1e3||0},ej.endAnimation=function(){l$(ej.callbackAnimation),i&&(I?I.progress(1):i.paused()?ep||l$(i,ej.direction<0,1):l$(i,i.reversed()))},ej.labelToScroll=function(e){return i&&i.labels&&(d||ej.refresh()||d)+i.labels[e]/i.duration()*b||0},ej.getTrailing=function(e){var t=oa.indexOf(ej),i=ej.direction>0?oa.slice(0,t).reverse():oa.slice(t+1);return(lM(e)?i.filter(function(t){return t.vars.preventOverlaps===e}):i).filter(function(e){return ej.direction>0?e.end<=d:e.start>=u})},ej.update=function(e,t,a){if(!eo||a||e){var r,s,l,p,x,m,h,g=!0===lc?B:ej.scroll(),v=e?0:(g-d)/b,N=v<0?0:v>1?1:v||0,k=ej.progress;if(t&&(c=o,o=eo?eR():g,en&&($=E,E=i&&!ep?i.totalProgress():N)),et&&K&&!sQ&&!lp&&lm&&(!N&&d<g+(g-c)/(lx()-sX)*et?N=1e-4:1===N&&u>g+(g-c)/(lx()-sX)*et&&(N=.9999)),N!==k&&ej.enabled){if(p=(x=(r=ej.isActive=!!N&&N<1)!=(!!k&&k<1))||!!N!=!!k,ej.direction=N>k?1:-1,ej.progress=N,p&&!sQ&&(s=N&&!k?0:1===N?1:1===k?2:3,ep&&(l=!x&&"none"!==eb[s+1]&&eb[s+1]||eb[s],h=i&&("complete"===l||"reset"===l||l in i))),ed&&(x||h)&&(h||Q||!i)&&(lL(ed)?ed(ej):ej.getTrailing(ed).forEach(function(e){return e.endAnimation()})),!ep&&(!I||sQ||lp?i&&i.totalProgress(N,!!(sQ&&(eC||e))):(I._dp._time-I._start!==I._time&&I.render(I._dp._time-I._start),I.resetTo?I.resetTo("totalProgress",N,i._tTime/i._tDur):(I.vars.totalProgress=N,I.invalidate().restart()))),K)if(e&&J&&(w.style[J+eu.os2]=R),eh){if(p){if(m=!e&&N>k&&u+1>g&&g+1>=lS(ex,eu),es)if(!e&&(r||m)){var S=lJ(K,!0),P=g-d;oO(K,sH,S.top+(eu===sR?P:0)+"px",S.left+(eu===sR?0:P)+"px")}else oO(K,w);oM(r||m?y:j),M&&N<1&&r||_(C+(1!==N||m?0:T))}}else _(lw(C+T*N));!en||n.tween||sQ||lp||D.restart(!0),Y&&(x||er&&N&&(N<1||!ll))&&sY(Y.targets).forEach(function(e){return e.classList[r||er?"add":"remove"](Y.className)}),!V||ep||e||V(ej),p&&!sQ?(ep&&(h&&("complete"===l?i.pause().totalProgress(1):"reset"===l?i.restart(!0).pause():"restart"===l?i.restart(!0):i[l]()),V&&V(ej)),(x||!ll)&&(X&&x&&lI(ej,X),eg[s]&&lI(ej,eg[s]),er&&(1===N?ej.kill(!1,1):eg[s]=0),!x&&eg[s=1===N?1:3]&&lI(ej,eg[s])),ec&&!r&&Math.abs(ej.getVelocity())>(lP(ec)?ec:2500)&&(l$(ej.callbackAnimation),I?I.progress(1):l$(i,"reverse"===l?1:!N,1))):ep&&V&&!sQ&&V(ej)}if(L){var O=eo?g/eo.duration()*(eo._caScrollDist||0):g;A(O+ +!!f._isFlipped),L(O)}W&&W(-g/eo.duration()*(eo._caScrollDist||0))}},ej.enable=function(t,i){ej.enabled||(ej.enabled=!0,l3(ex,"resize",oo),em||l3(ex,"scroll",os),ew&&l3(e,"refreshInit",ew),!1!==t&&(ej.progress=eT=0,o=c=e_=eR()),!1!==i&&ej.refresh())},ej.getTween=function(e){return e&&n?n.tween:I},ej.setPositions=function(e,t,i,a){if(eo){var r=eo.scrollTrigger,n=eo.duration(),s=r.end-r.start;e=r.start+s*e/n,t=r.start+s*t/n}ej.refresh(!1,!1,{start:lb(e,i&&!!ej._startClamp),end:lb(t,i&&!!ej._endClamp)},a),ej.update()},ej.adjustPinSpacing=function(e){if(S&&e){var t=S.indexOf(eu.d)+1;S[t]=parseFloat(S[t])+e+"px",S[1]=parseFloat(S[1])+e+"px",oM(S)}},ej.disable=function(t,i){if(!1!==t&&ej.revert(!0,!0),ej.enabled&&(ej.enabled=ej.isActive=!1,i||I&&I.pause(),B=0,s&&(s.uncache=1),ew&&l6(e,"refreshInit",ew),D&&(D.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!em)){for(var a=oa.length;a--;)if(oa[a].scroller===ex&&oa[a]!==ej)return;l6(ex,"resize",oo),em||l6(ex,"scroll",os)}},ej.kill=function(e,a){ej.disable(e,a),I&&!a&&I.kill(),U&&delete or[U];var r=oa.indexOf(ej);r>=0&&oa.splice(r,1),r===sJ&&ok>0&&sJ--,r=0,oa.forEach(function(e){return e.scroller===ej.scroller&&(r=1)}),r||lc||(ej.scroll.rec=0),i&&(i.scrollTrigger=null,e&&i.revert({kill:!1}),a||i.kill()),p&&[p,x,f,m].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),lu===ej&&(lu=0),K&&(s&&(s.uncache=1),r=0,oa.forEach(function(e){return e.pin===K&&r++}),r||(s.spacer=0)),t.onKill&&t.onKill(ej)},oa.push(ej),ej.enable(!1,!1),H&&H(ej),i&&i.add&&!b){var eL=ej.update;ej.update=function(){ej.update=eL,sf.cache++,d||u||ej.refresh()},sz.delayedCall(.01,ej.update),b=.01,d=u=0}else ej.refresh();K&&ov()},e.register=function(t){return sD||(sz=t||lk(),lN()&&window.document&&e.enable(),sD=lh),sD},e.defaults=function(e){if(e)for(var t in e)l7[t]=e[t];return l7},e.disable=function(e,t){lh=0,oa.forEach(function(i){return i[t?"kill":"disable"](e)}),l6(sB,"wheel",os),l6(sF,"scroll",os),clearInterval(sG),l6(sF,"touchcancel",lj),l6(sH,"touchstart",lj),l2(l6,sF,"pointerdown,touchstart,mousedown",lv),l2(l6,sF,"pointerup,touchend,mouseup",ly),sV.kill(),lA(l6);for(var i=0;i<sf.length;i+=3)l4(l6,sf[i],sf[i+1]),l4(l6,sf[i],sf[i+2])},e.enable=function(){if(sB=window,sW=(sF=document).documentElement,sH=sF.body,sz&&(sY=sz.utils.toArray,sU=sz.utils.clamp,lt=sz.core.context||lj,s3=sz.core.suppressOverwrites||lj,li=sB.history.scrollRestoration||"auto",oN=sB.pageYOffset||0,sz.core.globals("ScrollTrigger",e),sH)){lh=1,(la=document.createElement("div")).style.height="100vh",la.style.position="absolute",oy(),function e(){return lh&&requestAnimationFrame(e)}(),sO.register(sz),e.isTouch=sO.isTouch,le=sO.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),s8=1===sO.isTouch,l3(sB,"wheel",os),sq=[sB,sF,sW,sH],sz.matchMedia?(e.matchMedia=function(e){var t,i=sz.matchMedia();for(t in e)i.add(t,e[t]);return i},sz.addEventListener("matchMediaInit",function(){om(),oh()}),sz.addEventListener("matchMediaRevert",function(){return of()}),sz.addEventListener("matchMedia",function(){ow(0,1),op("matchMedia")}),sz.matchMedia().add("(orientation: portrait)",function(){return ol(),ol})):console.warn("Requires GSAP 3.11.0 or later"),ol(),l3(sF,"scroll",os);var t,i,a=sH.hasAttribute("style"),r=sH.style,n=r.borderTopStyle,s=sz.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",sR.m=Math.round((t=lJ(sH)).top+sR.sc())||0,sT.m=Math.round(t.left+sT.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),a||(sH.setAttribute("style",""),sH.removeAttribute("style")),sG=setInterval(on,250),sz.delayedCall(.5,function(){return lp=0}),l3(sF,"touchcancel",lj),l3(sH,"touchstart",lj),l2(l3,sF,"pointerdown,touchstart,mousedown",lv),l2(l3,sF,"pointerup,touchend,mouseup",ly),sK=sz.utils.checkPrefix("transform"),oT.push(sK),sD=lx(),sV=sz.delayedCall(.2,ow).pause(),s5=[sF,"visibilitychange",function(){var e=sB.innerWidth,t=sB.innerHeight;sF.hidden?(s0=e,s1=t):(s0!==e||s1!==t)&&oo()},sF,"DOMContentLoaded",ow,sB,"load",ow,sB,"resize",oo],lA(l3),oa.forEach(function(e){return e.enable(0,1)}),i=0;i<sf.length;i+=3)l4(l6,sf[i],sf[i+1]),l4(l6,sf[i],sf[i+2])}},e.config=function(t){"limitCallbacks"in t&&(ll=!!t.limitCallbacks);var i=t.syncInterval;i&&clearInterval(sG)||(sG=i)&&setInterval(on,i),"ignoreMobileResize"in t&&(s8=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(lA(l6)||lA(l3,t.autoRefreshEvents||"none"),s6=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var i=sS(e),a=sf.indexOf(i),r=l_(i);~a&&sf.splice(a,r?6:2),t&&(r?sm.unshift(sB,t,sH,t,sW,t):sm.unshift(i,t))},e.clearMatchMedia=function(e){oa.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,i){var a=(lM(e)?sS(e):e).getBoundingClientRect(),r=a[i?lF:lW]*t||0;return i?a.right-r>0&&a.left+r<sB.innerWidth:a.bottom-r>0&&a.top+r<sB.innerHeight},e.positionInViewport=function(e,t,i){lM(e)&&(e=sS(e));var a=e.getBoundingClientRect(),r=a[i?lF:lW],n=null==t?r/2:t in l9?l9[t]*r:~t.indexOf("%")?parseFloat(t)*r/100:parseFloat(t)||0;return i?(a.left+n)/sB.innerWidth:(a.top+n)/sB.innerHeight},e.killAll=function(e){if(oa.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=oc.killAll||[];oc={},t.forEach(function(e){return e()})}},e}();oF.version="3.14.2",oF.saveStyles=function(e){return e?sY(e).forEach(function(e){if(e&&e.style){var t=ox.indexOf(e);t>=0&&ox.splice(t,5),ox.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),sz.core.getCache(e),lt())}}):ox},oF.revert=function(e,t){return oh(!e,t)},oF.create=function(e,t){return new oF(e,t)},oF.refresh=function(e){return e?oo(!0):(sD||oF.register())&&ow(!0)},oF.update=function(e){return++sf.cache&&o_(2*(!0===e))},oF.clearScrollMemory=og,oF.maxScroll=function(e,t){return lS(e,t?sT:sR)},oF.getScrollFunc=function(e,t){return sM(sS(e),t?sT:sR)},oF.getById=function(e){return or[e]},oF.getAll=function(){return oa.filter(function(e){return"ScrollSmoother"!==e.vars.id})},oF.isScrolling=function(){return!!lm},oF.snapDirectional=l5,oF.addEventListener=function(e,t){var i=oc[e]||(oc[e]=[]);~i.indexOf(t)||i.push(t)},oF.removeEventListener=function(e,t){var i=oc[e],a=i&&i.indexOf(t);a>=0&&i.splice(a,1)},oF.batch=function(e,t){var i,a=[],r={},n=t.interval||.016,s=t.batchMax||1e9,l=function(e,t){var i=[],a=[],r=sz.delayedCall(n,function(){t(i,a),i=[],a=[]}).pause();return function(e){i.length||r.restart(!0),i.push(e.trigger),a.push(e),s<=i.length&&r.progress(1)}};for(i in t)r[i]="on"===i.substr(0,2)&&lL(t[i])&&"onRefreshInit"!==i?l(i,t[i]):t[i];return lL(s)&&(s=s(),l3(oF,"refresh",function(){return s=t.batchMax()})),sY(e).forEach(function(e){var t={};for(i in r)t[i]=r[i];t.trigger=e,a.push(oF.create(t))}),a};var oW,oH=function(e,t,i,a){return t>a?e(a):t<0&&e(0),i>a?(a-t)/(i-t):i<0?t/(t-i):1},oq=function e(t,i){!0===i?t.style.removeProperty("touch-action"):t.style.touchAction=!0===i?"auto":i?"pan-"+i+(sO.isTouch?" pinch-zoom":""):"none",t===sW&&e(sH,i)},oV={auto:1,scroll:1},oY=function(e){var t,i=e.event,a=e.target,r=e.axis,n=(i.changedTouches?i.changedTouches[0]:i).target,s=n._gsap||sz.core.getCache(n),l=lx();if(!s._isScrollT||l-s._isScrollT>2e3){for(;n&&n!==sH&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(oV[(t=lQ(n)).overflowY]||oV[t.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==a&&!l_(n)&&(oV[(t=lQ(n)).overflowY]||oV[t.overflowX]),s._isScrollT=l}(s._isScroll||"x"===r)&&(i.stopPropagation(),i._gsapAllow=!0)},oU=function(e,t,i,a){return sO.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:a=a&&oY,onPress:a,onDrag:a,onScroll:a,onEnable:function(){return i&&l3(sF,sO.eventTypes[0],oG,!1,!0)},onDisable:function(){return l6(sF,sO.eventTypes[0],oG,!0)}})},oX=/(input|label|select|textarea)/i,oG=function(e){var t=oX.test(e.target.tagName);(t||oW)&&(e._gsapAllow=!0,oW=t)},oQ=function(e){lE(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,i,a,r,n,s,l,o,c=e,d=c.normalizeScrollX,u=c.momentum,p=c.allowNestedScroll,x=c.onRelease,f=sS(e.target)||sW,m=sz.core.globals().ScrollSmoother,h=m&&m.get(),g=le&&(e.content&&sS(e.content)||h&&!1!==e.content&&!h.smooth()&&h.content()),b=sM(f,sR),v=sM(f,sT),y=1,j=(sO.isTouch&&sB.visualViewport?sB.visualViewport.scale*sB.visualViewport.width:sB.outerWidth)/sB.innerWidth,w=0,N=lL(u)?function(){return u(t)}:function(){return u||2.8},k=oU(f,e.type,!0,p),_=function(){return r=!1},C=lj,T=lj,R=function(){i=lS(f,sR),T=sU(+!!le,i),d&&(C=sU(0,lS(f,sT))),a=ob},S=function(){g._gsap.y=lw(parseFloat(g._gsap.y)+b.offset)+"px",g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(g._gsap.y)+", 0, 1)",b.offset=b.cacheID=0},A=function(){if(r){requestAnimationFrame(_);var e=lw(t.deltaY/2),i=T(b.v-e);if(g&&i!==b.v+b.offset){b.offset=i-b.v;var a=lw((parseFloat(g&&g._gsap.y)||0)-b.offset);g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+a+", 0, 1)",g._gsap.y=a+"px",b.cacheID=sf.cache,o_()}return!0}b.offset&&S(),r=!0},M=function(){R(),n.isActive()&&n.vars.scrollY>i&&(b()>i?n.progress(1)&&b(i):n.resetTo("scrollY",i))};return g&&sz.set(g,{y:"+=0"}),e.ignoreCheck=function(e){return le&&"touchmove"===e.type&&A(e)||y>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){r=!1;var e=y;y=lw((sB.visualViewport&&sB.visualViewport.scale||1)/j),n.pause(),e!==y&&oq(f,y>1.01||!d&&"x"),s=v(),l=b(),R(),a=ob},e.onRelease=e.onGestureStart=function(e,t){if(b.offset&&S(),t){sf.cache++;var a,r,s=N();d&&(r=(a=v())+-(.05*s*e.velocityX)/.227,s*=oH(v,a,r,lS(f,sT)),n.vars.scrollX=C(r)),r=(a=b())+-(.05*s*e.velocityY)/.227,s*=oH(b,a,r,lS(f,sR)),n.vars.scrollY=T(r),n.invalidate().duration(s).play(.01),(le&&n.vars.scrollY>=i||a>=i-1)&&sz.to({},{onUpdate:M,duration:s})}else o.restart(!0);x&&x(e)},e.onWheel=function(){n._ts&&n.pause(),lx()-w>1e3&&(a=0,w=lx())},e.onChange=function(e,t,i,r,n){if(ob!==a&&R(),t&&d&&v(C(r[2]===t?s+(e.startX-e.x):v()+t-r[1])),i){b.offset&&S();var o=n[2]===i,c=o?l+e.startY-e.y:b()+i-n[1],u=T(c);o&&c!==u&&(l+=u-c),b(u)}(i||t)&&o_()},e.onEnable=function(){oq(f,!d&&"x"),oF.addEventListener("refresh",M),l3(sB,"resize",M),b.smooth&&(b.target.style.scrollBehavior="auto",b.smooth=v.smooth=!1),k.enable()},e.onDisable=function(){oq(f,!0),l6(sB,"resize",M),oF.removeEventListener("refresh",M),k.kill()},e.lockAxis=!1!==e.lockAxis,(t=new sO(e)).iOS=le,le&&!b()&&b(1),le&&sz.ticker.add(lj),o=t._dc,n=sz.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:d?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:oz(b,b(),function(){return n.pause()})},onUpdate:o_,onComplete:o.vars.onComplete}),t};oF.sort=function(e){if(lL(e))return oa.sort(e);var t=sB.pageYOffset||0;return oF.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+sB.innerHeight}),oa.sort(e||function(e,t){return -1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},oF.observe=function(e){return new sO(e)},oF.normalizeScroll=function(e){if(void 0===e)return s4;if(!0===e&&s4)return s4.enable();if(!1===e){s4&&s4.kill(),s4=e;return}var t=e instanceof sO?e:oQ(e);return s4&&s4.target===t.target&&s4.kill(),l_(t.target)&&(s4=t),t},oF.core={_getVelocityProp:sL,_inputObserver:oU,_scrollers:sf,_proxies:sm,bridge:{ss:function(){lm||op("scrollStart"),lm=lx()},ref:function(){return sQ}}},lk()&&sz.registerPlugin(oF);let oZ,oK,oJ="function"==typeof Symbol?Symbol():"_split",o0,o1="u">
1typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,o5=e=>"string"==typeof e?o5(document.querySelectorAll(e)):"length"in e?Array.from(e).reduce((e,t)=>("string"==typeof t?e.push(...o5(t)):e.push(t),e),[]):[e],o2=e=>o5(e).filter(e=>e instanceof HTMLElement),o3=[],o6=function(){},o4={add:e=>e()},o8=/\s+/g,o7=RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),o9={left:0,top:0,width:0,height:0},ce=(e,t)=>{for(;++t<e.length&&e[t]===o9;);return e[t]||o9},ct=({element:e,html:t,ariaL:i,ariaH:a})=>{e.innerHTML=t,i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label"),a?e.setAttribute("aria-hidden",a):e.removeAttribute("aria-hidden")},ci=(e,t)=>{if(t){let i=new Set(e.join("").match(t)||o3),a=e.length,r,n,s,l;if(i.size){for(;--a>-1;)for(s of(n=e[a],i))if(s.startsWith(n)&&s.length>n.length){for(r=0,l=n;s.startsWith(l+=e[a+ ++r])&&l.length<s.length;);if(r&&l.length===s.length){e[a]=s,e.splice(a+1,r);break}}}}return e},ca=e=>"inline"===window.getComputedStyle(e).display&&(e.style.display="inline-block"),cr=(e,t,i)=>t.insertBefore("string"==typeof e?document.createTextNode(e):e,i),cn=(e,t,i)=>{let a=t[e+"sClass"]||"",{tag:r="div",aria:n="auto",propIndex:s=!1}=t,l="line"===e?"block":"inline-block",o=a.indexOf("++")>-1,c=t=>{let c=document.createElement(r),d=i.length+1;return a&&(c.className=a+(o?" "+a+d:"")),s&&c.style.setProperty("--"+e,d+""),"none"!==n&&c.setAttribute("aria-hidden","true"),"span"!==r&&(c.style.position="relative",c.style.display=l),c.textContent=t,i.push(c),c};return o&&(a=a.replace("++","")),c.collection=i,c},cs=(e,t,i,a,r,n,s,l,o,c)=>{var d;let u=Array.from(e.childNodes),p=0,{wordDelimiter:x,reduceWhiteSpace:f=!0,prepareText:m}=t,h=e.getBoundingClientRect(),g=h,b=!f&&"pre"===window.getComputedStyle(e).whiteSpace.substring(0,3),v=0,y=i.collection,j,w,N,k,_,C,T,R,S,A,M,L,P,E,$,I,O,z;for("object"==typeof x?(N=x.delimiter||x,w=x.replaceWith||""):w=""===x?"":x||" ",j=" "!==w;p<u.length;p++)if(3===(k=u[p]).nodeType){for($=k.textContent||"",f?$=$.replace(o8," "):b&&($=$.replace(/\n/g,w+"\n")),m&&($=m($,e)),k.textContent=$,O=(_=w||N?$.split(N||w):$.match(l)||o3)[_.length-1],R=j?" "===O.slice(-1):!O,O||_.pop(),g=h,(T=j?" "===_[0].charAt(0):!_[0])&&cr(" ",e,k),_[0]||_.shift(),ci(_,o),n&&c||(k.textContent=""),S=1;S<=_.length;S++)if(I=_[S-1],!f&&b&&"\n"===I.charAt(0)&&(null==(d=k.previousSibling)||d.remove(),cr(document.createElement("br"),e,k),I=I.slice(1)),f||""!==I)if(" "===I)e.insertBefore(document.createTextNode(" "),k);else{if(j&&" "===I.charAt(0)&&cr(" ",e,k),v&&1===S&&!T&&y.indexOf(v.parentNode)>-1?(C=y[y.length-1]).appendChild(document.createTextNode(a?"":I)):(cr(C=i(a?"":I),e,k),v&&1===S&&!T&&C.insertBefore(v,C.firstChild)),a)for(z=0,M=o1?ci([...o1.segment(I)].map(e=>e.segment),o):I.match(l)||o3;z<M.length;z++)C.appendChild(" "===M[z]?document.createTextNode(" "):a(M[z]));if(n&&c){if($=k.textContent=$.substring(I.length+1,$.length),(A=C.getBoundingClientRect()).top>g.top&&A.left<=g.left){for(L=e.cloneNode(),P=e.childNodes[0];P&&P!==C;)E=P,P=P.nextSibling,L.appendChild(E);e.parentNode.insertBefore(L,e),r&&ca(L)}g=A}(S<_.length||R)&&cr(S>=_.length?" ":j&&" "===I.slice(-1)?" "+w:w,e,k)}else cr(w,e,k);e.removeChild(k),v=0}else 1===k.nodeType&&(s&&s.indexOf(k)>-1?(y.indexOf(k.previousSibling)>-1&&y[y.length-1].appendChild(k),v=k):(cs(k,t,i,a,r,n,s,l,o,!0),v=0),r&&c
1a(k))},cl=class e{constructor(e,t){this.isSplit=!1,o0||co.register(window.gsap),this.elements=o2(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this.elements.forEach(e=>{var i;!1!==t.overwrite&&(null==(i=e[oJ])||i._data.orig.filter(({element:t})=>t===e).forEach(ct)),e[oJ]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let i=[],a,r=()=>{let e=i.length,t;for(;e--;){let a=(t=i[e]).element.offsetWidth;if(a!==t.width){t.width=a,this._split();return}}};this._data={orig:i,obs:"u">typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(a),a=setTimeout(r,200)})},o6(this),this.split(t)}split(e){return(this._ctx||o4).add(()=>{this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t="chars,words,lines",aria:i="auto",deepSlice:a=!0,smartWrap:r,onSplit:n,autoSplit:s=!1,specialChars:l,mask:o}=this.vars,c=t.indexOf("lines")>-1,d=t.indexOf("chars")>-1,u=t.indexOf("words")>-1,p=d&&!u&&!c,x=l&&("push"in l?RegExp("(?:"+l.join("|")+")","gu"):l),f=x?RegExp(x.source+"|"+o7.source,"gu"):o7,m=!!e.ignore&&o2(e.ignore),{orig:h,animTime:g,obs:b}=this._data,v;(d||u||c)&&(this.elements.forEach((t,n)=>{h[n]={element:t,html:t.innerHTML,ariaL:t.getAttribute("aria-label"),ariaH:t.getAttribute("aria-hidden")},"auto"===i?t.setAttribute("aria-label",(t.textContent||"").trim()):"hidden"===i&&t.setAttribute("aria-hidden","true");let s=[],l=[],o=[],g=d?cn("char",e,s):null,b=cn("word",e,l),v,y,j,w;if(cs(t,e,b,g,p,a&&(c||p),m,f,x,!1),c){let i,a,r=o5(t.childNodes),n=(i=cn("line",e,o),a=window.getComputedStyle(t).textAlign||"left",(e,n)=>{let s=i("");for(s.style.textAlign=a,t.insertBefore(s,r[e]);e<n;e++)s.appendChild(r[e]);s.normalize()}),s,l=[],c=0,d=r.map(e=>1===e.nodeType?e.getBoundingClientRect():o9),u=o9,p;for(v=0;v<r.length;v++)1===(s=r[v]).nodeType&&("BR"===s.nodeName?(v&&"BR"===r[v-1].nodeName||(l.push(s),n(c,v+1)),c=v+1,u=ce(d,v)):(p=d[v],v&&p.top>u.top&&p.left<u.left+u.width-1&&(n(c,v),c=v),u=p));c<v&&n(c,v),l.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})}if(!u){for(v=0;v<l.length;v++)if(y=l[v],d||!y.nextSibling||3!==y.nextSibling.nodeType)if(r&&!c){for((j=document.createElement("span")).style.whiteSpace="nowrap";y.firstChild;)j.appendChild(y.firstChild);y.replaceWith(j)}else y.replaceWith(...y.childNodes);else(w=y.nextSibling)&&3===w.nodeType&&(w.textContent=(y.textContent||"")+(w.textContent||""),y.remove());l.length=0,t.normalize()}this.lines.push(...o),this.words.push(...l),this.chars.push(...s)}),o&&this[o]&&this.masks.push(...this[o].map(e=>{let t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.trim()+"-mask"),t.style.overflow="clip",t}))),this.isSplit=!0,oK&&c&&(s?oK.addEventListener("loadingdone",this._split):"loading"===oK.status&&console.warn("SplitText c
1alled before fonts loaded")),(v=n&&n(this))&&v.totalTime&&(this._data.anim=g?v.totalTime(g):v),c&&s&&this.elements.forEach((e,t)=>{h[t].width=e.offsetWidth,b&&b.observe(e)})}),this}kill(){let{obs:e}=this._data;e&&e.disconnect(),null==oK||oK.removeEventListener("loadingdone",this._split)}revert(){var e,t;if(this.isSplit){let{orig:i,anim:a}=this._data;this.kill(),i.forEach(ct),this.chars.length=this.words.length=this.lines.length=i.length=this.masks.length=0,this.isSplit=!1,a&&(this._data.animTime=a.totalTime(),a.revert()),null==(t=(e=this.vars).onRevert)||t.call(e,this)}return this}static create(t,i){return new e(t,i)}static register(e){(oZ=oZ||e||window.gsap)&&(o5=oZ.utils.toArray,o6=oZ.core.context||o6),!o0&&window.innerWidth>0&&(oK=document.fonts,o0=!0)}};cl.version="3.14.2";let co=cl,cc="u">typeof document?a.useLayoutEffect:a.useEffect,cd=e=>e&&!Array.isArray(e)&&"object"==typeof e,cu=[],cp={},cx=n6,cf=(e,t=cu)=>{let i=cp;cd(e)?(i=e,e=null,t="dependencies"in i?i.dependencies:cu):cd(t)&&(t="dependencies"in(i=t)?i.dependencies:cu),e&&"function"!=typeof e&&console.warn("First parameter must be a function or config object");let{scope:r,revertOnUpdate:n}=i,s=(0,a.useRef)(!1),l=(0,a.useRef)(cx.context(()=>{},r)),o=(0,a.useRef)(e=>l.current.add(null,e)),c=t&&t.length&&!n;return c&&cc(()=>(s.current=!0,()=>l.current.revert()),cu),cc(()=>{if(e&&l.current.add(e,r),!c||!s.current)return()=>l.current.revert()},t),{context:l.current,contextSafe:o.current}};cf.register=e=>{cx=e},cf.headless=!0,n6.registerPlugin(oF,co,cf);let cm=({text:e,className:i="",delay:r=50,duration:n=1.25,ease:s="power3.out",splitType:l="chars",from:o={opacity:0,y:40},to:c={opacity:1,y:0},threshold:d=.1,rootMargin:u="-100px",textAlign:p="center",tag:x="p",onLetterAnimationComplete:f})=>{let m=(0,a.useRef)(null),h=(0,a.useRef)(!1),g=(0,a.useRef)(f),[b,v]=(0,a.useState)(!1);(0,a.useEffect)(()=>{g.current=f},[f]),(0,a.useEffect)(()=>{"loaded"===document.fonts.status?v(!0):document.fonts.ready.then(()=>{v(!0)})},[]),cf(()=>{let t;if(!m.current||!e||!b||h.current)return;let i=m.current;if(i._rbsplitInstance){try{i._rbsplitInstance.revert()}catch(e){}i._rbsplitInstance=void 0}let a=(1-d)*100,p=/^(-?\d+(?:\.\d+)?)(px|em|rem|%)?$/.exec(u),x=p?parseFloat(p[1]):0,f=p&&p[2]||"px",v=0===x?"":x<0?`-=${Math.abs(x)}${f}`:`+=${x}${f}`,y=`top ${a}%${v}`,j=new co(i,{type:l,smartWrap:!0,autoSplit:"lines"===l,linesClass:"split-line",wordsClass:"split-word",charsClass:"split-char",reduceWhiteSpace:!1,onSplit:e=>(l.includes("chars")&&e.chars.length&&(t=e.chars),!t&&l.includes("words")&&e.words.length&&(t=e.words),!t&&l.includes("lines")&&e.lines.length&&(t=e.lines),t||(t=e.chars||e.words||e.lines),n6.fromTo(t,{...o},{...c,duration:n,ease:s,stagger:r/1e3,scrollTrigger:{trigger:i,start:y,once:!0,fastScrollEnd:!0,anticipatePin:.4},onComplete:()=>{h.current=!0,g.current?.()},willChange:"transform, opacity",force3D:!0}))});return i._rbsplitInstance=j,()=>{oF.getAll().forEach(e=>{e.trigger===i&&e.kill()});try{j.revert()}catch(e){}i._rbsplitInstance=void 0}},{dependencies:[e,r,n,s,l,JSON.stringify(o),JSON.stringify(c),d,u,b],scope:m});let y=`split-parent ${i}`;return(0,t.jsx)(x||"p",{ref:m,style:{textAlign:p,whiteSpace:"normal",wordWrap:"break-word"},className:y,children:e})};function ch({children:e,enableBlur:i=!0,baseOpacity:r=.1,baseRotation:n=3,blurStrength:s=4,containerClassName:l="",textClassName:o="",rotationEnd:c="bottom bottom",wordAnimationEnd:d="bottom bottom"}){let u=(0,a.useRef)(null),p=(0,a.useMemo)(()=>("string"==typeof e?e:"").split(/(\s+)/).map((e,t)=>/^\s+$/.test(e)?{type:"space",text:e,key:t}:{type:"word",text:e,key:t}),[e]);return(0,a.useEffect)(()=>{let e=u.current;if(!e)return;let t=setTimeout(()=>oF.refresh(),200),a=n6.context(()=>{n6.fromTo(e,{transformOrigin:"0% 50%",rotate:n},{ease:"none",rotate:0,scrollTrigger:{trigger:e,start:"top bottom",end:c,scrub:!0}});let t=e.querySelectorAll(".sr-word");n6.fromTo(t,{opacity:r,willChange:"opacity"},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:e,start:"top bottom-=20%",end:d,scrub:!0}}),i&&n6.fromTo(t,{filter:`blur(${s}px)`},{ease:"none",filter:"blur(0px)",stagger:.05,scrollTrigger:{trigger:e,start:"top bottom-=20%",end:d,scrub:!0}})},e);return()=>{clearTimeout(t),a.revert()}},[i,n,r,c,d,s]),(0,t.jsx)("div",{ref:u,className:`my-5 ${l}`,children:(0,t.jsx)("p",{className:`text-[clamp(1.6rem,4vw,3rem)] font-semibold leading-[1.5] ${o}`,style:{textWrap:"balance"},children:p.map(e=>
1"space"===e.type?e.text:(0,t.jsx)("span",{className:"sr-word inline-block",children:e.text},e.key))})})}n6.registerPlugin(oF);let cg=["80% 55%","69% 34%","8% 6%","41% 38%","86% 85%","82% 18%","51% 4%"],cb=["--gradient-one","--gradient-two","--gradient-three","--gradient-four","--gradient-five","--gradient-six","--gradient-seven"],cv=[0,1,2,0,1,2,1];function cy(e){return 1-Math.pow(1-e,3)}function cj(e){return e*e*e}function cw({start:e=0,end:t=100,duration:i=1e3,delay:a=0,ease:r=cy,onUpdate:n,onEnd:s}){let l=performance.now()+a;function o(){let a=Math.min((performance.now()-l)/i,1);n(e+(t-e)*r(a)),a<1?requestAnimationFrame(o):s&&s()}setTimeout(()=>requestAnimationFrame(o),a)}function cN({children:e,className:i="",edgeSensitivity:r=30,glowColor:n="40 80 80",backgroundColor:s="#060010",borderRadius:l=28,glowRadius:o=40,glowIntensity:c=1,coneSpread:d=25,animated:u=!1,colors:p=["#c084fc","#f472b6","#38bdf8"],fillOpacity:x=.5}){let f=(0,a.useRef)(null),m=(0,a.useCallback)(e=>{let{width:t,height:i}=e.getBoundingClientRect();return[t/2,i/2]},[]),h=(0,a.useCallback)((e,t,i)=>{let[a,r]=m(e),n=t-a,s=i-r,l=1/0,o=1/0;return 0!==n&&(l=a/Math.abs(n)),0!==s&&(o=r/Math.abs(s)),Math.min(Math.max(1/Math.min(l,o),0),1)},[m]),g=(0,a.useCallback)((e,t,i)=>{let[a,r]=m(e),n=t-a,s=i-r;if(0===n&&0===s)return 0;let l=180/Math.PI*Math.atan2(s,n)+90;return l<0&&(l+=360),l},[m]),b=(0,a.useCallback)(e=>{let t=f.current;if(!t)return;let i=t.getBoundingClientRect(),a=e.clientX-i.left,r=e.clientY-i.top,n=h(t,a,r),s=g(t,a,r);t.style.setProperty("--edge-proximity",`${(100*n).toFixed(3)}`),t.style.setProperty("--cursor-angle",`${s.toFixed(3)}deg`)},[h,g]);(0,a.useEffect)(()=>{if(!u||!f.current)return;let e=f.current;e.classList.add("sweep-active"),e.style.setProperty("--cursor-angle","110deg"),cw({duration:500,onUpdate:t=>e.style.setProperty("--edge-proximity",`${t}`)}),cw({ease:cj,duration:1500,end:50,onUpdate:t=>{e.style.setProperty("--cursor-angle",`${t/100*355+110}deg`)}}),cw({ease:cy,delay:1500,duration:2250,start:50,end:100,onUpdate:t=>{e.style.setProperty("--cursor-angle",`${t/100*355+110}deg`)}}),cw({ease:cj,delay:2500,duration:1500,start:100,end:0,onUpdate:t=>e.style.setProperty("--edge-proximity",`${t}`),onEnd:()=>e.classList.remove("sweep-active")})},[u]);let v=function(e,t){let i,{h:a,s:r,l:n}=(i=e.match(/([\d.]+)\s*([\d.]+)%?\s*([\d.]+)%?/))?{h:parseFloat(i[1]),s:parseFloat(i[2]),l:parseFloat(i[3])}:{h:40,s:80,l:80},s=`${a}deg ${r}% ${n}%`,l=[100,60,50,40,30,20,10],o=["","-60","-50","-40","-30","-20","-10"],c={};for(let e=0;e<l.length;e++)c[`--glow-color${o[e]}`]=`hsl(${s} / ${Math.min(l[e]*t,100)}%)`;return c}(n,c);return(0,t.jsxs)("div",{ref:f,onPointerMove:b,className:`border-glow-card ${i}`,style:{"--card-bg":s,"--edge-sensitivity":r,"--border-radius":`${l}px`,"--glow-padding":`${o}px`,"--cone-spread":d,"--fill-opacity":x,...v,...function(e){let t={};for(let i=0;i<7;i++){let a=e[Math.min(cv[i],e.length-1)];t[cb[i]]=`radial-gradient(at ${cg[i]}, ${a} 0px, transparent 50%)`}return t["--gradient-base"]=`linear-gradient(${e[0]} 0 100%)`,t}(p)},children:[(0,t.jsx)("span",{className:"edge-light"}),(0,t.jsx)("div",{className:"border-glow-inner",children:e})]})}var ck=e.i(179036),c_=e.i(321059),cC=e.i(495531);e.i(295204);var cT=e.i(260057),cR=e.i(516286),cS=e.i(525214),cA=e.i(966438),cM=e.i(461388);function cL({springX:e,springY:i,gradientColor:a,opacity:r,multiplier:s}){let l=(0,c.useTransform)(e,e=>e*s),o=(0,c.useTransform)(i,e=>e*s),d=cS.useMotionTemplate`radial-gradient(circle at ${l}px ${o}px, ${a} 0%, transparent 70%)`;return(0,t.jsx)(n.motion.div,{className:"absolute inset-0",style:{opacity:r,background:d}})}let cP=({children:e,className:i,containerClassName:r,gradientColors:s=["rgb(255, 100, 150)","rgb(100, 150, 255)","rgb(255, 200, 100)"],noiseIntensity:l=.2,speed:o=.1,backdropBlur:d=!1,animating:u=!0,layersOpacity:p=1})=>{let x=(0,a.useRef)(null),f=(0,cA.useMotionValue)(0),m=(0,cA.useMotionValue)(0),h=(0,cM.useSpring)(f,{stiffness:100,damping:30}),g=(0,cM.useSpring)(m,{stiffness:100,damping:30}),b=(0,c.useTransform)(h,e=>.1*e-50),v=(0,a.useRef)({x:0,y:0}),y=(0,a.useRef)(0);(0,a.useEffect)(()=>
1{if(!x.current)return;let e=x.current.getBoundingClientRect();f.set(e.width/2),m.set(e.height/2)},[f,m]);let j=(0,a.useRef)(()=>{let e=Math.random()*Math.PI*2,t=o*(.5+.5*Math.random());return{x:Math.cos(e)*t,y:Math.sin(e)*t}});return(0,a.useEffect)(()=>{j.current=()=>{let e=Math.random()*Math.PI*2,t=o*(.5+.5*Math.random());return{x:Math.cos(e)*t,y:Math.sin(e)*t}},v.current=j.current()},[o]),(0,cR.useAnimationFrame)(e=>{if(!u||!x.current)return;let t=x.current.getBoundingClientRect(),i=t.width,a=t.height;e-y.current>1500+1500*Math.random()&&(v.current=j.current(),y.current=e);let r=f.get(),n=m.get(),s=r+16*v.current.x,l=n+16*v.current.y;if(s<20||s>i-20||l<20||l>a-20){let t=Math.random()*Math.PI*2,r=o*(.5+.5*Math.random());v.current={x:Math.cos(t)*r,y:Math.sin(t)*r},y.current=e,s=Math.max(20,Math.min(i-20,s)),l=Math.max(20,Math.min(a-20,l))}f.set(s),m.set(l)}),(0,t.jsxs)("div",{ref:x,className:(0,tM.cn)("group relative overflow-hidden rounded-2xl bg-neutral-200 p-[2px] dark:bg-neutral-800",d&&"after:absolute after:inset-0 after:h-full after:w-full after:backdrop-blur-lg after:content-['']",r),style:{"--noise-opacity":l},children:[(0,t.jsxs)(n.motion.div,{className:"absolute inset-0",style:{opacity:p,transition:"opacity 0.6s ease"},children:[(0,t.jsx)(cL,{springX:h,springY:g,gradientColor:s[0],opacity:.8,multiplier:1}),(0,t.jsx)(cL,{springX:h,springY:g,gradientColor:s[1],opacity:.65,multiplier:.7}),(0,t.jsx)(cL,{springX:h,springY:g,gradientColor:s[2]||s[0],opacity:.55,multiplier:1.2})]}),(0,t.jsx)(n.motion.div,{className:"absolute inset-x-0 top-0 h-[2px] rounded-t-2xl blur-sm",style:{background:`linear-gradient(to right, ${s.join(", ")})`,x:u?b:0,opacity:p,transition:"opacity 0.6s ease"}}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",style:{opacity:p,transition:"opacity 0.6s ease"},children:(0,t.jsx)("img",{src:"https://assets.aceternity.com/noise.webp",alt:"",className:"h-full w-full object-cover opacity-[var(--noise-opacity)]",style:{mixBlendMode:"overlay"}})}),(0,t.jsx)("div",{className:(0,tM.cn)("relative z-10",i),children:e})]})};var cE=e.i(506856),c$=e.i(386485),cI=e.i(314917);let cO=[.16,1,.3,1],cz=[.33,1,.68,1],cD={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.8,ease:cO}}},cB={visible:{transition:{staggerChildren:.1}}};function cF({children:e,className:i=""}){let r=(0,a.useRef)(null),s=(0,l.useInView)(r,{once:!0,margin:"-80px"});return(0,t.jsx)(n.motion.div,{ref:r,initial:"hidden",animate:s?"visible":"hidden",variants:cB,className:i,children:e})}function cW(){let{setTheme:e}=(0,cT.useTheme)();return(0,a.useEffect)(()=>{document.documentElement.classList.remove("dark"),e("light")},[]),(0,t.jsxs)("div",{className:"bg-[#f5f2ed] text-foreground",children:[(0,t.jsx)(c$.ImagePrefetch,{}),(0,t.jsx)(cC.Navbar,{}),(0,t.jsxs)("main",{children:[(0,t.jsx)(cH,{}),(0,t.jsx)(cU,{}),(0,t.jsx)(cV,{}),(0,t.jsx)(cY,{}),(0,t.jsx)(cX,{}),(0,t.jsx)(c9,{}),(0,t.jsx)(da,{}),(0,t.jsx)(du,{}),(0,t.jsx)(dp,{}),(0,t.jsx)(dx,{}),(0,t.jsx)(df,{})]}),(0,t.jsx)(dm,{})]})}function cH(){let e=(0,eD.useTranslations)("hero"),i=(0,eB.useLocale)(),r="fa"===i||"ar"===i?"clamp(1.8rem, 6vw, 5rem)":"clamp(2.5rem, 8vw, 7rem)",s=(0,a.useRef)(null),{scrollYProgress:l}=(0,o.useScroll)({target:s,offset:["start start","end start"]}),d=(0,c.useTransform)(l,[.1,.5],[0,1],{ease:e=>e*e*(3-2*e)}),u=(0,c.useTransform)(l,[0,.6],[1,1.08]),p=(0,c.useTransform)(l,[.1,.5],[-50,150],{clamp:!0}),x=(0,c.useTransform)(p,e=>`linear-gradient(to right, transparent ${e-12}%, black ${e+12}%)`),f=(0,c.useTransform)(p,e=>`linear-gradient(to right, black ${e-12}%, transparent ${e+12}%)`),m=(0,c.useTransform)(l,[.1,.5],[8,0],{clamp:!0});return(0,t.jsx)("section",{ref:s,className:"relative h-[200vh]",children:(0,t.jsxs)("div",{className:"sticky top-0 h-screen overflow-hidden",children:[(0,t.jsx)(n.motion.div,{className:"absolute inset-0",style:{scale:u},children:(0,t.jsx)(cE.FadeImg,{src:"/hero1.webp",alt:"Next Cap — night scene",className:"h-full w-full object-cover"})}),(0,t.jsx)(n.motion.div,{className:"absolute inset-0",style:{opacity:d,scale:u},children:(0,t.jsx)(cE.FadeImg,{src:"/hero2.webp",alt:"Next Cap — day scene",className:"h-full w-full object-cover"})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/40"}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none z-[1] opacity-[0.35] mix-blend-overlay hidden lg:block",children:(0,t.jsxs)("svg",{className:"absolute inset-0 w-full h-full",children:[(0,t.jsxs)("filter",{id:"hero-grain",children:[(0,t.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.65",numOctaves:"3",stitchTiles:"stitch"}),(0,t.jsx)("feColorMatrix",{type:"saturate",values:"0"})]}
1),(0,t.jsx)("rect",{width:"100%",height:"100%",filter:"url(#hero-grain)"})]})}),(0,t.jsx)("div",{className:"relative z-10 flex min-h-screen flex-col items-center justify-center px-6 text-center",children:(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,ease:cO},style:{display:"grid"},children:[(0,t.jsxs)(n.motion.h1,{style:{gridArea:"1 / 1",maskImage:x,WebkitMaskImage:x,fontSize:r,textWrap:"balance"},className:"font-serif leading-[0.92] tracking-[-0.03em] text-white",children:[(0,t.jsx)("span",{className:"font-normal",children:e("title")})," ",(0,t.jsx)("span",{className:"font-bold",children:e("titleHighlight")})]}),(0,t.jsxs)(n.motion.h1,{style:{gridArea:"1 / 1",maskImage:f,WebkitMaskImage:f,y:m,fontSize:r,textWrap:"balance"},className:"font-serif leading-[0.92] tracking-[-0.03em] text-white",children:[(0,t.jsx)("span",{className:"font-normal",children:e("title2")})," ",(0,t.jsx)("span",{className:"font-bold",children:e("title2Highlight")})]})]})})]})})}function cq(){let e=(0,eD.useTranslations)("demo.chat");return[{role:"agent",text:e("msg0")},{role:"user",text:e("msg1")},{role:"agent",text:e("msg2")},{role:"user",text:e("msg3")},{role:"agent",text:e("msg4")},{role:"user",text:e("msg5")},{role:"agent",text:e("msg6")},{role:"user",text:e("msg7")},{role:"agent",text:e("msg8")}]}function cV(){let e=(0,eD.useTranslations)("demo"),i=(0,eD.useTranslations)("demo.cards"),r=cq(),o=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(null),p=(0,a.useRef)(null),x=(0,a.useRef)(null),m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,a.useRef)(null),y=(0,l.useInView)(o,{once:!0,margin:"-100px"}),[j,w]=f(),[N,k]=(0,a.useState)(0),[_,C]=(0,a.useState)(""),[T,R]=(0,a.useState)([]),[S,A]=(0,a.useState)(""),[M,L]=(0,a.useState)(!1),[P,E]=(0,a.useState)(!0),[$,I]=(0,a.useState)(-1),[O,z]=(0,a.useState)([]),[D,B]=(0,a.useState)(!1),[F,W]=(0,a.useState)(""),[H,q]=(0,a.useState)(!1),[V,Y]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=setInterval(()=>E(e=>!e),520);return()=>clearInterval(e)},[]),(0,a.useEffect)(()=>{if(N<1)return;let e=c.current,t=d.current,i=u.current;if(!e||!t||!i)return;let a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=i.getBoundingClientRect(),s=r.left-a.left,l=(r.top+r.bottom)/2-a.top,o=n.right-a.left,p=(n.top+n.bottom)/2-a.top,x=(s+o)/2;C(`M ${s} ${l} C ${x} ${l}, ${x} ${p}, ${o} ${p}`)},[N]),(0,a.useEffect)(()=>{if(!y)return;let e=!1,t=e=>new Promise(t=>setTimeout(t,e)),i=e=>{let t=d.current;if(!e||!t)return{x:0,y:0};let i=t.getBoundingClientRect(),a=e.getBoundingClientRect();return{x:a.left-i.left+a.width/2,y:a.top-i.top+a.height/2}},a=()=>{requestAnimationFrame(()=>{let e=m.current;e&&e.scrollHeight>e.clientHeight&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})})},n=async t=>{let i=0;await new Promise(r=>{let n=setInterval(()=>{if(e){clearInterval(n),r();return}i++,A(t.slice(0,i)),i%15==0&&a(),i>=t.length&&(clearInterval(n),r())},38)})},s=(e,t)=>{let i=c.current,a=d.current;if(!i||!a||!e)return"";let r=i.getBoundingClientRect(),n=a.getBoundingClientRect(),s=e.getBoundingClientRect(),l=(n.left+n.right)/2-r.left,o=(s.left+s.right)/2-r.left;if(o<l-50){let e=s.right-r.left,i=n.left-r.left,a="bottom-right"===t?s.bottom-r.top-12:(s.top+s.bottom)/2-r.top;return`M ${e} ${a} L ${i} ${a}`}if(o>l+50){let e=s.left-r.left,t=n.right-r.left,i=(s.top+s.bottom)/2-r.top;return`M ${t} ${i} L ${e} ${i}`}{let e=n.bottom-r.top,t=s.top-r.top;return`M ${l} ${e} L ${o} ${t}`}};return(async()=>{if(R([]),A(""),L(!1),I(-1),z([]),B(!1),W(""),q(!1),Y(!1),k(0),j.current&&(await w(j.current,{opacity:0,scale:1,x:0,y:0},{duration:0}),await t(600),!e)&&(k(1),await t(800),!e)&&(k(2),await t(1e3),!e)&&(k(3),await t(1800),!e)&&(k(4),await t(900),!e)){if(k(5),await t(500),!e){k(6);for(let l=0;l<r.length;l++){if(e)return;let o=r[l];if("agent"===o.role){if(I(l),a(),2===l){if(await t(800),e||(z([s(h.current,"bottom-right"),s(g.current),s(b.current)].filter(Boolean)),B(!0),await t(3e3),e)||(B(!1),await t(900),e))return;z([])}else if(6===l){if(await t(600),e)return;let i=c.current,a=d.current,r=v.current;if(i&&a&&r){let e=i.getBoundingClientRect(),t=a.getBoundingClientRect(),n=r.getBoundingClientRect(),s=n.right-e.left,l=(n.top+n.bottom)/2-e.top,o=t.left-e.left;W(`M ${s} ${l} L ${o} ${l}`)}if(q(!0),await t(2200),e||(q(!1),await t(700),e))return;W("")}else await t(0===l?1800:2e3);if(e||(I(-1),await t(300),e))return;R(e=>[...e,l]),a(),await t(800)}else{let r=i(p.current),s=i(x.current);if(await w(j.current,{x:r.x-40,y:r.y+20,opacity:0}
1,{duration:0}),e||(await w(j.current,{opacity:1},{duration:.35}),e)||(await w(j.current,{x:r.x-20,y:r.y},{duration:.6,ease:[.33,1,.68,1]}),e)||(await w(j.current,{scale:.78},{duration:.09}),await w(j.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(L(!0),await t(300),e)||(await n(o.text),e)||(await t(400),e)||(await w(j.current,{x:s.x,y:s.y},{duration:.5,ease:[.33,1,.68,1]}),e)||(await w(j.current,{scale:.78},{duration:.09}),await w(j.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(A(""),L(!1),R(e=>[...e,l]),a(),await t(200),e)||(await w(j.current,{opacity:0},{duration:.7,ease:[.4,0,.2,1]}),e))return;await t(400)}}e||(await t(800),Y(!0),a())}}})(),()=>{e=!0}},[y]);let U="opacity-[0.45]",X="rounded-xl border border-black/[0.06] bg-foreground/[0.02] p-3.5";return(0,t.jsx)("section",{ref:o,dir:"ltr",className:"relative hidden overflow-hidden bg-[#f5f2ed] lg:block",children:(0,t.jsxs)("div",{className:"relative w-full overflow-hidden",style:{height:"max(100vh, 700px)"},children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 z-10",style:{background:"radial-gradient(55% 55% at 50% 50%, transparent 55%, rgba(245,242,237,0.6) 80%, #f5f2ed 100%)"}}),(0,t.jsxs)("div",{ref:c,className:"absolute inset-[-4%] hidden grid-cols-5 gap-4 p-4 lg:grid",children:[(0,t.jsxs)("svg",{className:"pointer-events-none absolute inset-0",width:"100%",height:"100%",children:[_&&(0,t.jsx)(n.motion.path,{d:_,fill:"none",stroke:"rgba(249,115,22,0.6)",strokeWidth:"1.5",initial:{pathLength:0,opacity:0},animate:{pathLength:N>=4?0:+(N>=2),opacity:N>=5?0:+(N>=2)},transition:{pathLength:{duration:N>=4?.85:.75,ease:[.16,1,.3,1]},opacity:{duration:.4}}}),O.map((e,i)=>e&&(0,t.jsx)(n.motion.path,{d:e,fill:"none",stroke:"rgba(249,115,22,0.6)",strokeWidth:"1.5",initial:{pathLength:0,opacity:0},animate:{pathLength:+!!D,opacity:+!!D},transition:{pathLength:{duration:D?.75:.85,ease:[.16,1,.3,1],delay:D?.12*i:0},opacity:{duration:.4,delay:D?.12*i:0}}},`proc-${i}`)),F&&(0,t.jsx)(n.motion.path,{d:F,fill:"none",stroke:"rgba(249,115,22,0.6)",strokeWidth:"1.5",initial:{pathLength:0,opacity:0},animate:{pathLength:+!!H,opacity:+!!H},transition:{pathLength:{duration:.65,ease:[.16,1,.3,1]},opacity:{duration:.35}}})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("billingBank")}),(0,t.jsx)("p",{className:"font-mono text-[8px] text-black/30",children:"**** 7582299372"})]}),(0,t.jsx)("div",{className:`${X} ${U}`,children:(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-black/[0.06] text-[10px] font-medium text-black/30",children:"A"}),(0,t.jsx)("p",{className:"text-[8px] text-black/25",children:"00:00"})]})}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("intentRate")}),(0,t.jsx)("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-black/[0.05]",children:(0,t.jsx)("div",{className:"h-full w-[67%] rounded-full bg-black/10"})})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-3 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("cxRatings")}),(0,t.jsx)("div",{className:"flex items-end gap-[3px]",children:[25,40,55,35,60,45,70,50,80,65].map((e,i)=>(0,t.jsx)("div",{className:"flex-1 rounded-t-sm bg-black/[0.06]",style:{height:.5*e}},i))})]}),(0,t.jsx)("div",{className:`${X} ${U}`,children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"font-mono text-[12px] text-black/25",children:"50.93%"}),(0,t.jsx)("p",{className:"font-mono text-[12px] text-black/25",children:"38.62%"}),(0,t.jsx)("p",{className:"font-mono text-[12px] text-black/25",children:"10.29%"})]})}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("tokenUsage")}),(0,t.jsx)("p",{className:"text-[18px] font-semibold text-black/15",children:"1.2M"}),(0,t.jsx)("p",{className:"mt-1 text-[7px] text-black/20",children:i("tokensThisCycle")})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("avgResponseTime")}),(0,t.jsx)("div",{className:"flex items-end gap-[3px]",children:[18,12,22,15,10,20,14,8,16,11,19,13].map((e,i)=>(0,t.jsx)("div",{className:"flex-1 rounded-t-sm bg-black/[0.06]",style:{height:1.5*e}},i))})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("escalationQueue")}),(0,t.jsx)("div",{className:"space-y-1.5",children:[i("billingDispute"),i("refundRequest"),i("accountAccess")].map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between text-[8px]",children:[(0,t.jsx)("span",{className:"text-black/30",children:e}),(0,t.jsx)("span",{className:"rounded-full bg-orange-500/10 px-1.5 py-0.5 text-[7px] text-orange-600",children:i("pending")})]},e))})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("resolutionRate")}),(0,t.jsx)("p",{className:"text-[14px] font-semibold text-black/15",children:"91.4%"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,t.jsx)(n.motion.div,{ref:h,"data-cid":"reading-instructions",animate:{o
1pacity:D?1:.45},transition:{duration:.6,ease:[.33,1,.68,1]},children:(0,t.jsx)(cP,{containerClassName:"rounded-xl border border-black/[0.06] bg-transparent p-0",gradientColors:["rgb(249,115,22)","rgb(255,165,50)","rgb(230,80,0)"],noiseIntensity:.12,speed:.08,animating:D,layersOpacity:+!!D,children:(0,t.jsxs)("div",{className:"rounded-[10px] bg-foreground/[0.02] p-3.5",children:[(0,t.jsx)("p",{className:"mb-3 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("readingInstructions")}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"rounded-lg bg-black/[0.03] px-3 py-2 text-[8px] text-black/40",children:[(0,t.jsx)("span",{className:"mr-1.5 text-black/50",children:"1."}),"Use ",(0,t.jsx)("span",{className:"rounded bg-orange-500/10 px-1 text-orange-600",children:i("instruction1Action")})," to get the customer's subscription."]}),(0,t.jsxs)("div",{className:"px-3 text-[8px] text-black/40",children:[(0,t.jsx)("span",{className:"mr-1.5 text-black/50",children:"2."}),i("instruction2")]}),(0,t.jsxs)("div",{className:"px-3 text-[8px] text-black/40",children:[(0,t.jsx)("span",{className:"mr-1.5 text-black/50",children:"3."}),i("instruction3")]})]})]})})}),(0,t.jsx)(n.motion.div,{ref:v,"data-cid":"update-subscription",animate:{opacity:H?1:.45},transition:{duration:.6,ease:[.33,1,.68,1]},children:(0,t.jsx)(cP,{containerClassName:"rounded-xl border border-black/[0.06] bg-transparent p-0",gradientColors:["rgb(249,115,22)","rgb(255,165,50)","rgb(230,80,0)"],noiseIntensity:.12,speed:.08,animating:H,layersOpacity:+!!H,children:(0,t.jsx)("div",{className:"rounded-[10px] bg-foreground
1/[0.02] p-3.5",children:(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-black/[0.06] text-[9px] font-medium text-black/30",children:"S"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-mono text-[8px] uppercase text-black/35",children:i("updateSubscription")}),(0,t.jsx)("p",{className:"text-[7px] text-black/20",children:i("updateSubscriptionDesc")})]})]})})})}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2.5 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("channelId")}),(0,t.jsx)("div",{className:"flex gap-2",children:["W","M","C","P","S","I"].map(e=>(0,t.jsx)("div",{className:"flex h-7 w-7 items-center justify-center rounded-lg bg-black/[0.04] text-[8px] text-black/25",children:e},e))})]}),(0,t.jsx)(n.motion.div,{ref:u,"data-cid":"user-info",animate:{opacity:N>=3&&N<5?1:.45},transition:{duration:.6,ease:[.33,1,.68,1]},children:(0,t.jsx)(cP,{containerClassName:"rounded-xl border border-black/[0.06] bg-transparent p-0",gradientColors:["rgb(249,115,22)","rgb(255,165,50)","rgb(230,80,0)"],noiseIntensity:.12,speed:.08,animating:N>=3&&N<5,layersOpacity:+(N>=3&&N<5),children:(0,t.jsxs)("div",{className:"rounded-[10px] bg-foreground
1/[0.02] p-3.5",children:[(0,t.jsx)("p",{className:"mb-2.5 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("userInformation")}),(0,t.jsx)("div",{className:"space-y-1.5",children:[[i("userName"),i("userNameValue")],[i("userCompany"),i("userCompanyValue")],[i("userLocation"),i("userLocationValue")],[i("userLanguage"),i("userLanguageValue")],[i("userPlan"),i("userPlanValue")]].map(([e,i])=>(0,t.jsxs)("div",{className:"flex justify-between text-[8px]",children:[(0,t.jsx)("span",{className:"text-black/25",children:e}),(0,t.jsx)("span",{className:"text-black/45",children:i})]},e))})]})})}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("conversationManagement")}),(0,t.jsxs)("p",{className:"mt-1 text-[8px] text-black/25",children:["23% ",i("cxScore")]}),(0,t.jsxs)("p",{className:"text-[8px] text-black/25",children:["1,748 ",i("conversations")]})]}),(0,t.jsxs)("div",{"data-cid":"knowledge-sources",className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("knowledgeSources")}),(0,t.jsx)("div",{className:"space-y-1.5",children:[[i("faqDatabase"),i("faqArticles")],[i("productDocs"),i("productPages")],[i("apiReference"),i("apiEndpoints")]].map(([e,i])=>(0,t.jsxs)("div",{className:"flex justify-between text-[8px]",children:[(0,t.jsx)("span",{className:"text-black/25",children:e}),(0,t.jsx)("span",{className:"text-black/40",children:i})]},e))})]}),(0,t.jsxs)("div",{"data-cid":"vector-search",className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("vectorSearch")}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-black/[0.05]",children:(0,t.jsx)("div",{className:"h-full w-[89%] rounded-full bg-black/10"})}),(0,t.jsx)("p",{className:"text-[7px] text-black/20",children:i("relevance")})]})]}),(0,t.jsxs)("div",{"data-cid":"chunk-retrieval",className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("chunkRetrieval")}),(0,t.jsx)("div",{className:"space-y-1.5",children:["pricing-plans.md #3","upgrade-flow.md #1","billing-faq.md #7"].map(e=>(0,t.jsx)("div",{className:"rounded-lg bg-black/[0.03] px-2.5 py-1.5 font-mono text-[7px] text-black/30",children:e},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("messenger")}),(0,t.jsx)("div",{className:"flex items-end justify-center gap-[2px]",children:[9,14,7,18,11,16,6,21,13,8,17,10,22,15,9,12,19,7,14,20,11,23,8,16,13,18,6,21,10,15].map((e,i)=>(0,t.jsx)("div",{className:"w-[3px] rounded-t-sm bg-black/[0.08]",style:{height:e}},i))}),(0,t.jsxs)("div",{className:"mt-1.5 flex justify-between font-mono text-[7px] text-black/15",children:[(0,t.jsx)("span",{children:"Mar 1"}),(0,t.jsx)("span",{children:"Mar 14"}),(0,t.jsx)("span",{children:"Mar 28"})]})]}),(0,t.jsxs)(n.motion.div,{ref:d,"data-cid":"chat-widget",className:"relative rounded-3xl",initial:{opacity:0,y:40},animate:{opacity:+!!y,y:40*!y},transition:{opacity:{duration:.8,ease:[.16,1,.3,1]},y:{duration:.8,ease:[.16,1,.3,1]}},style:{boxShadow:"0 25px 50px -12px rgba(0,0,0,0.25)"},children:[(0,t.jsx)(cP,{containerClassName:"rounded-3xl bg-black/[0.06]",gradientColors:["rgb(249,115,22)","rgb(255,165,50)","rgb(230,80,0)"],noiseIntensity:.12,speed:.08,animating:N>=1&&N<5,layersOpacity:+(N>=1&&N<5),children:(0,t.jsxs)("div",{className:"mockup-ui flex h-[580px] flex-col overflow-hidden rounded-[calc(1.5rem-2px)] bg-white",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between px-4 py-3.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiArrowLeftSLine,{size:16,className:"text-black/40"})}),(0,t.jsx)(cI.Logo,{variant:"black",size:34,quality:"medium"}),(0,t.jsx)("p",{className:"font-serif text-[17px] font-medium tracking-[-0.01em] text-black",children:"Next Cap"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiMore2Line,{size:15,className:"text-black/35"})}),(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiClose
1Line,{size:15,className:"text-black/35"})})]})]}),(0,t.jsx)("div",{ref:m,className:"min-h-0 flex-1 overflow-y-auto px-4 pt-4 pb-6",style:{scrollbarWidth:"none"},children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[r.map((i,a)=>T.includes(a)?(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:"agent"===i.role?(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"inline-block max-w-[88%] rounded-2xl rounded-tl-md bg-black/[0.05] px-4 py-3 text-[12px] leading-[18px] text-black/80",children:i.text}),(0,t.jsxs)("p",{className:"mt-1.5 pl-1 text-[10px] text-black/30",children:[e("brandName")," · ",e("aiAgent")," · ",e("justNow")]})]}):(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("div",{className:"inline-block max-w-[82%] rounded-2xl rounded-tr-md bg-black px-4 py-3 text-left text-[12px] leading-[18px] text-white",children:i.text})})},a):null),(0,t.jsx)(s.AnimatePresence,{children:$>=0&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.35,ease:[.16,1,.3,1]},children:(0,t.jsx)("div",{className:"inline-flex items-center gap-[5px] rounded-2xl rounded-tl-md bg-black/[0.05] px-4 py-3.5",children:[0,1,2].map(e=>(0,t.jsx)(n.motion.span,{className:"block h-[6px] w-[6px] rounded-full bg-orange-500",animate:{scale:[1,1.4,1]},transition:{duration:1.2,repeat:1/0,ease:"easeInOut",delay:.15*e}},e))})},"loading")}),(0,t.jsx)(s.AnimatePresence,{children:V&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.16,1,.3,1]},className:"mx-auto mt-2 w-full max-w-[88%]",children:(0,t.jsxs)("div",{className:"rounded-2xl border border-black/[0.06] bg-black/[0.02] px-4 py-3.5 text-center",children:[(0,t.jsx)("p",{className:"text-[11px] font-medium text-black/50",children:e("ratingPrompt")}),(0,t.jsx)("div",{className:"mt-2.5 flex items-center justify-center gap-1.5",children:["😡","😠","😐","😊","🥰"].map((e,i)=>(0,t.jsx)(n.motion.button,{className:"flex h-8 w-8 items-center justify-center rounded-full text-[16px] transition-colors hover:bg-black/[0.04]",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:.35,ease:[.16,1,.3,1],delay:.1+.06*i},children:e},i))})]})},"rating")})]})}),(0,t.jsx)("div",{className:"shrink-0 px-4 pb-3",children:(0,t.jsxs)("div",{ref:p,className:"rounded-2xl border bg-white px-4 pt-3 pb-2.5 transition-colors duration-200",style:{borderColor:M?"rgba(249,115,22,0.5)":"rgba(0,0,0,0.08)"},children:[(0,t.jsx)("div",{className:"min-h-[18px]",children:S?(0,t.jsxs)("p",{className:"text-[12px] text-black/80",children:[S,(0,t.jsx)("span",{className:"ml-px inline-block h-[13px] w-px translate-y-[1px] bg-black/60",style:{opacity:+!!P}})]}):(0,t.jsx)("p",{className:"text-[12px] text-black/25",children:e("askQuestion")})}),(0,t.jsxs)("div",{className:"mt-2.5 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiAttachmentLine,{size:15,className:"text-black/30"})}),(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiEmotionLine,{size:15,className:"text-black/30"})})]}),(0,t.jsx)("button",{ref:x,className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors",style:{backgroundColor:S?"rgb(249,115,22)":"rgba(0,0,0,0.06)"},children:(0,t.jsx)(ez.RiArrowUpLine,{size:14,className:S?"text-white":"text-black/40"})})]})]})})]})}),(0,t.jsx)("div",{ref:j,className:"pointer-events-none absolute left-0 top-0 z-20",style:{opacity:0},children:(0,t.jsx)("svg",{width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",children:(0,t.jsx)("path",{d:"M1 1L1 14.5L4.5 11L6.5 16.5L8.5 15.5L6.5 10L11 10L1 1Z",fill:"rgba(0,0,0,0.72)",stroke:"white",strokeWidth:"0.9"})})})]}),(0,t.jsx)(n.motion.div,{ref:b,"data-cid":"suggested-items",animate:{o
1pacity:D?1:.45},transition:{duration:.6,ease:[.33,1,.68,1]},children:(0,t.jsx)(cP,{containerClassName:"rounded-xl border border-black/[0.06] bg-transparent p-0",gradientColors:["rgb(249,115,22)","rgb(255,165,50)","rgb(230,80,0)"],noiseIntensity:.12,speed:.08,animating:D,layersOpacity:+!!D,children:(0,t.jsxs)("div",{className:"rounded-[10px] bg-foreground/[0.02] p-3.5",children:[(0,t.jsx)("p",{className:"mb-2.5 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("suggestedItems")}),(0,t.jsx)("div",{className:"space-y-1.5",children:[[i("proOverview"),i("proOverviewSrc")],[i("upgradeFlow"),i("upgradeFlowSrc")],[i("billingFaq"),i("billingFaqSrc")],[i("featureComparison"),i("featureComparisonSrc")]].map(([e,i])=>(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-lg bg-black/[0.03] px-2.5 py-2",children:[(0,t.jsx)("span",{className:"text-[8px] text-black/35",children:e}),(0,t.jsx)("span",{className:"font-mono text-[7px] text-black/20",children:i})]},e))})]})})})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,t.jsx)(n.motion.div,{ref:g,"data-cid":"applying-guidance",animate:{opacity:D?1:.45},transition:{duration:.6,ease:[.33,1,.68,1]},children:(0,t.jsx)(cP,{containerClassName:"rounded-xl border border-black/[0.06] bg-transparent p-0",gradientColors:["rgb(249,115,22)","rgb(255,165,50)","rgb(230,80,0)"],noiseIntensity:.12,speed:.08,animating:D,layersOpacity:+!!D,children:(0,t.jsxs)("div",{className:"rounded-[10px] bg-foreground
1/[0.02] p-3.5",children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("applyingGuidance")}),(0,t.jsx)("p",{className:"mb-2 font-mono text-[8px] uppercase tracking-wider text-black/25",children:i("basics")}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[8px] text-black/40",children:[(0,t.jsx)("span",{className:"text-black/25",children:i("toneOfVoice")}),(0,t.jsx)("span",{className:"rounded-full bg-black/[0.05] px-2 py-0.5 text-[7px]",children:i("professional")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[8px] text-black/40",children:[(0,t.jsx)("span",{className:"text-black/25",children:i("answerLength")}),(0,t.jsx)("span",{className:"rounded-full bg-black/[0.05] px-2 py-0.5 text-[7px]",children:i("standard")})]})]})]})})}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2.5 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("communicationStyle")}),(0,t.jsx)("div",{className:"space-y-1.5",children:[i("commRule1"),i("commRule2"),i("commRule3")].map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-lg bg-black/[0.03] px-3 py-2 text-[7px] text-black/30",children:[(0,t.jsx)("span",{children:e.toUpperCase()}),(0,t.jsx)(ez.RiArrowRightLine,{size:8,className:"flex-shrink-0 text-black/15"})]},e))})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-3 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("aiAgentPerformance")}),(0,t.jsxs)("div",{className:"relative h-[100px]",children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 text-[7px] text-black/15",children:"90%"}),(0,t.jsx)("div",{className:"absolute left-0 top-[25%] text-[7px] text-black/15",children:"80%"}),(0,t.jsx)("div",{className:"absolute left-0 top-[50%] text-[7px] text-black/15",children:"70%"}),(0,t.jsx)("div",{className:"absolute left-0 top-[75%] text-[7px] text-black/15",children:"60%"}),(0,t.jsx)("svg",{className:"absolute inset-0 ml-6",viewBox:"0 0 200 100",preserveAspectRatio:"none",children:(0,t.jsx)("polyline",{points:"0,80 20,72 40,75 60,60 80,55 100,48 120,42 140,38 160,30 180,25 200,20",fill:"none",stroke:"rgba(0,0,0,0.12)",strokeWidth:"1.5"})})]}),(0,t.jsxs)("div",{className:"mt-1 flex justify-between font-mono text-[7px] text-black/15",children:[(0,t.jsx)("span",{children:"April 1"}),(0,t.jsx)("span",{children:"April 14"}),(0,t.jsx)("span",{children:"April 30"}),(0,t.jsx)("span",{children:"May 14"})]})]}),(0,t.jsxs)("div",{"data-cid":"action-queue",className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("actionQueue")}),(0,t.jsx)("div",{className:"space-y-1.5",children:[["GET_PLAN",i("completed")],["CHECK_ELIGIBILITY",i("running")],["UPDATE_SUB",i("pending")]].map(([e,a])=>(0,t.jsxs)("div",{className:"flex items-center justify-between text-[8px]",children:[(0,t.jsx)("span",{className:"font-mono text-black/30",children:e}),(0,t.jsx)("span",{className:`rounded-full px-1.5 py-0.5 text-[7px] ${a===i("completed")?"bg-green-500/10 text-green-600":a===i("running")?"bg-blue-500/10 text-blue-600":"bg-black/[0.04] text-black/25"}`,children:a})]},e))})]}),(0,t.jsxs)("div",{"data-cid":"confidence-score",className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("confidenceScore")}),(0,t.jsx)("p",{className:"text-[18px] font-semibold text-black/15",children:"0.96"}),(0,t.jsx)("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-black/[0.05]",children:(0,t.jsx)("div",{className:"h-full w-[96%] rounded-full bg-black/10"})})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("sentimentAnalysis")}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[7px]",children:[(0,t.jsx)("span",{className:"text-black/25",children:i("positive")}),(0,t.jsx)("span",{className:"text-black/35",children:"72%"})]}),(0,t.jsxs)("div",{className:"flex justify-between text-[7px]",children:[(0,t.jsx)("span",{className:"text-black/25",children:i("neutral")}),(0,t.jsx)("span",{className:"text-black/35",children:"24%"})]}),(0,t.jsxs)("div",{className:"flex justify-between text-[7px]",children:[(0,t.jsx)("span",{className:"text-black/25",children:i("negative")}),(0,t.jsx)("span",{className:"text-black/35",children:"4%"})]})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,t.jsx)("div",{className:`${X} ${U}`,children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"h-3 w-3 rounded-sm bg-black/[0.08]"}),(0,t.jsx)("p",{className:"text-[8px] text-black/30",children:i("latePaymentQuestion")}),(0,t.jsx)("span",{className:"ml-auto rounded-full bg-orange-500/10 px-2 py-0.5 text-[7px] font-medium text-orange-600",children:i("unrated")})]})}),(0,t.jsx)("div",{className:`${X} ${U}`,children:(0,t.jsx)("p",{className:"font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("performance")})}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"font-mono text-[8px] text-black/25",children:i("chatConversations")}),(0,t.jsx)("p",{className:"mt-1 text-[14px] font-semibold text-orange-500/50",children:"28,456"})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"font-mono text-[8px] text-black/25",children:i("phoneCalls")}),(0,t.jsx)("p",{className:"mt-1 text-[14px] font-semibold text-orange-500/50",children:"8,910"})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("customerExperience")}),(0,t.jsxs)("p",{className:"mt-1 text-[8px] text-black/20",children:["23% ",i("cxScore")]}),(0,t.jsxs)("p",{className:"text-[8px] text-black/20",children:["1,748 ",i("conversations")]})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"font-mono text-[8px] text-black/25",children:i("email")}),(0,t.jsxs)("p",{className:"mt-1 text-[8px] text-black/20",children:["23% ",i("cxScore")]}),(0,t.jsxs)("p",{className:"text-[8px] text-black/20",children:["1,748 ",i("conversations")]})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("activeSessions")}),(0,t.jsx)("div",{className:"space-y-1.5",children:[[i("web"),"1,204"],[i("mobile"),"892"],[i("api"),"347"]].map(([e,i])=>(0,t.jsxs)("div",{className:"flex justify-between text-[8px]",children:[(0,t.jsx)("span",{className:"text-black/25",children:e}),(0,t.jsx)("span",{className:"text-black/40",children:i})]},e))})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("handoffRate")}),(0,t.jsx)("p",{className:"text-[14px] font-semibold text-black/15",children:"8.6%"}),(0,t.jsx)("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-black/[0.05]",children:(0,t.jsx)("div",{className:"h-full w-[8.6%] rounded-full bg-black/10"})})]}),(0,t.jsxs)("div",{className:`${X} ${U}`,children:[(0,t.jsx)("p",{className:"mb-2 font-mono text-[9px] uppercase tracking-wider text-black/35",children:i("languageDistribution")}),(0,t.jsx)("div",{className:"space-y-1",children:[[i("english"),"68%"],[i("spanish"),"14%"],[i("french"),"9%"],[i("other"),"9%"]].map(([e,i])=>(0,t.jsxs)("div",{className:"flex justify-between text-[7px]",children:[(0,t.jsx)("span",{className:"text-black/25",children:e}),(0,t.jsx)("span",{className:"text-black/35",children:i})]},e))})]})]})]})]})})}function cY(){let e=(0,eD.useTranslations)("demo"),i=cq(),r=(0,a.useRef)(null),o=(0,a.useRef)(null),c=(0,l.useInView)(r,{once:!0,margin:"-60px"}),[d,u]=(0,a.useState)([]),[p,x]=(0,a.useState)(""),[f,m]=(0,a.useState)(!1),[h,g]=(0,a.useState)(!0),[b,v]=(0,a.useState)(-1),[y,j]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=setInterval(()=>g(e=>!e),520);return()=>clearInterval(e)},[]),(0,a.useEffect)(()=>
1{if(!c)return;let e=!1,t=e=>new Promise(t=>setTimeout(t,e)),a=()=>{requestAnimationFrame(()=>{let e=o.current;e&&e.scrollHeight>e.clientHeight&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})})},r=async t=>{let i=0;await new Promise(r=>{let n=setInterval(()=>{if(e){clearInterval(n),r();return}i++,x(t.slice(0,i)),i%15==0&&a(),i>=t.length&&(clearInterval(n),r())},38)})};return(async()=>{if(u([]),x(""),m(!1),v(-1),j(!1),await t(800),!e){for(let n=0;n<i.length;n++){if(e)return;let s=i[n];if("agent"===s.role){if(v(n),a(),await t(0===n?1500:2e3),e||(v(-1),await t(250),e))return;u(e=>[...e,n]),a(),await t(600)}else{if(m(!0),await t(200),e||(await r(s.text),e)||(await t(350),e))return;x(""),m(!1),u(e=>[...e,n]),a(),await t(400)}}e||(await t(800),j(!0),a())}})(),()=>{e=!0}},[c]),(0,t.jsx)("section",{ref:r,dir:"ltr",className:"relative bg-[#f5f2ed] px-4 py-12 lg:hidden",children:(0,t.jsx)(n.motion.div,{className:"mx-auto max-w-sm",initial:{opacity:0,y:30},animate:c?{opacity:1,y:0}:{},transition:{duration:.8,ease:[.16,1,.3,1]},children:(0,t.jsxs)("div",{className:"mockup-ui flex flex-col overflow-hidden rounded-3xl bg-white",style:{boxShadow:"0 25px 50px -12px rgba(0,0,0,0.15)",height:556},children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between px-4 py-3.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiArrowLeftSLine,{size:16,className:"text-black/40"})}),(0,t.jsx)(cI.Logo,{variant:"black",size:34,quality:"medium"}),(0,t.jsx)("p",{className:"font-serif text-[17px] font-medium tracking-[-0.01em] text-black",children:"Next Cap"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiMore2Line,{size:15,className:"text-black/35"})}),(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiCloseLine,{size:15,className:"text-black/35"})})]})]}),(0,t.jsx)("div",{ref:o,className:"min-h-0 flex-1 overflow-y-auto px-4 pt-4 pb-6",style:{scrollbarWidth:"none"},children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[i.map((i,a)=>d.includes(a)?(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:"agent"===i.role?(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"inline-block max-w-[88%] rounded-2xl rounded-tl-md bg-black/[0.05] px-4 py-3 text-[13px] leading-[19px] text-black/80",children:i.text}),(0,t.jsxs)("p",{className:"mt-1.5 pl-1 text-[10px] text-black/30",children:[e("brandName")," · ",e("aiAgent")," · ",e("justNow")]})]}):(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("div",{className:"inline-block max-w-[82%] rounded-2xl rounded-tr-md bg-black px-4 py-3 text-left text-[13px] leading-[19px] text-white",children:i.text})})},a):null),(0,t.jsx)(s.AnimatePresence,{children:b>=0&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.35,ease:[.16,1,.3,1]},children:(0,t.jsx)("div",{className:"inline-flex items-center gap-[5px] rounded-2xl rounded-tl-md bg-black/[0.05] px-4 py-3.5",children:[0,1,2].map(e=>(0,t.jsx)(n.motion.span,{className:"block h-[6px] w-[6px] rounded-full bg-orange-500",animate:{scale:[1,1.4,1]},transition:{duration:1.2,repeat:1/0,ease:"easeInOut",delay:.15*e}},e))})},"loading")}),(0,t.jsx)(s.AnimatePresence,{children:y&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.16,1,.3,1]},className:"mx-auto mt-2 w-full",children:(0,t.jsxs)("div",{className:"rounded-2xl border border-black/[0.06] bg-black/[0.02] px-4 py-3.5 text-center",children:[(0,t.jsx)("p",{className:"text-[11px] font-medium text-black/50",children:e("ratingPrompt")}),(0,t.jsx)("div",{className:"mt-2.5 flex items-center justify-center gap-1.5",children:["😡","😠","😐","😊","🥰"].map((e,i)=>(0,t.jsx)(n.motion.button,{className:"flex h-8 w-8 items-center justify-center rounded-full text-[16px] transition-colors hover:bg-black/[0.04]",initial:{opacity:0,scale:.5}
1,animate:{opacity:1,scale:1},transition:{duration:.35,ease:[.16,1,.3,1],delay:.1+.06*i},children:e},i))})]})},"rating")})]})}),(0,t.jsx)("div",{className:"shrink-0 px-4 pb-3",children:(0,t.jsxs)("div",{className:"rounded-2xl border bg-white px-4 pt-3 pb-2.5 transition-colors duration-200",style:{borderColor:f?"rgba(249,115,22,0.5)":"rgba(0,0,0,0.08)"},children:[(0,t.jsx)("div",{className:"h-[18px] overflow-hidden",children:p?(0,t.jsxs)("p",{className:"truncate text-[13px] text-black/80",children:[p,(0,t.jsx)("span",{className:"ml-px inline-block h-[13px] w-px translate-y-[1px] bg-black/60",style:{opacity:+!!h}})]}):(0,t.jsx)("p",{className:"text-[13px] text-black/25",children:e("askQuestion")})}),(0,t.jsxs)("div",{className:"mt-2.5 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiAttachmentLine,{size:15,className:"text-black/30"})}),(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiEmotionLine,{size:15,className:"text-black/30"})})]}),(0,t.jsx)("button",{className:"flex h-7 w-7 items-center justify-center rounded-full transition-colors",style:{backgroundColor:p?"rgb(249,115,22)":"rgba(0,0,0,0.06)"},children:(0,t.jsx)(ez.RiArrowUpLine,{size:14,className:p?"text-white":"text-black/40"})})]})]})})]})})})}function cU(){let e=(0,eD.useTranslations)("trustedBy"),i=[{value:100,suffix:"+",label:e("stat1Label")},{value:500,suffix:"K+",label:e("stat2Label")},{value:99.9,suffix:"%",label:e("stat3Label")}],r=(0,a.useRef)(null),s=(0,l.useInView)(r,{once:!0,amount:.4});return(0,t.jsx)("section",{ref:r,dir:"ltr",className:"relative z-10 bg-[#f5f2ed] pt-12 pb-20 sm:pt-20 sm:pb-36",children:(0,t.jsx)("div",{className:"mx-auto max-w-4xl flex items-center justify-center gap-6 px-4 sm:gap-16 md:gap-28",children:i.map((e,i)=>(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:24},animate:s?{opacity:1,y:0}:{opacity:0,y:24},transition:{duration:.7,ease:cO,delay:.12*i},className:"flex flex-col items-center text-center",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-0.5 sm:gap-1",children:[(0,t.jsx)(eP,{locales:"en-US",className:"font-serif text-[28px] font-light tracking-[-0.03em] text-foreground sm:text-[48px] md:text-[68px]",transition:{visualDuration:.6,type:"spring",bounce:.25,opacity:{duration:.3,ease:"linear"}},children:s?e.value:0}),(0,t.jsx)("span",{className:"font-serif text-[16px] font-light text-foreground/50 sm:text-[28px] md:text-[40px]",children:e.suffix})]}),(0,t.jsx)("p",{className:"mt-1.5 font-serif text-[12px] text-foreground/80 sm:mt-3 sm:text-[15px] md:text-[16px]",children:e.label})]},e.label))})})}function cX(){let e=(0,eD.useTranslations)("capabilities");return(0,t.jsx)("section",{id:"capabilities",className:"px-6 py-24 bg-[#f5f2ed]",children:(0,t.jsx)("div",{className:"mx-auto max-w-[1440px]",children:(0,t.jsx)(cF,{children:(0,t.jsxs)(n.motion.div,{variants:cD,className:"overflow-hidden rounded-[3rem] shadow-[0_8px_80px_rgba(0,0,0,0.12)]",children:[(0,t.jsxs)("div",{className:"relative h-[360px] sm:h-[440px] lg:h-[520px]",children:[(0,t.jsx)(cE.FadeImg,{src:"/ast2.webp",alt:"",className:"absolute inset-0 h-full w-full object-cover object-center"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent via-40% to-black/70"}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 p-8 sm:p-10 lg:p-14",children:[(0,t.jsxs)("h2",{className:"font-serif text-[30px] font-light leading-[0.95] tracking-[-0.03em] text-white sm:text-[40px] lg:text-[52px]",style:{textWrap:"balance"},children:[e("heroTitle1")," ",(0,t.jsx)("span",{className:"font-bold",children:e("heroTitleBold")})," ",e("heroTitle2")]}),(0,t.jsx)("p",{className:"mt-3 text-[14px] leading-[22px] text-white/80 font-medium lg:mt-4 lg:text-[15px] lg:leading-[24px]",children:e("heroSubtitle")})]})]}),(0,t.jsxs)("div",{className:"bg-white",children:[(0,t.jsx)(cG,{title:e("train.title"),description:e("train.description"),bottomAlign:!0,children:(0,t.jsx)(c1,{})}),(0,t.jsx)(cG,{title:e("test.title"),description:e("test.description"),bottomAlign:!0,children:(0,t.jsx)(c5,{})}),(0,t.jsx)(cG,{title:e("deploy.title"),description:e("deploy.description"),bottomAlign:!0,children:(0,t.jsx)(c2,{})}),(0,t.jsx)(cG,{title:e("liveChat.title"),description:e("liveChat.description"),bottomAlign:!0,children:(0,t.jsx)(c3,{})}),(0,t.jsx)(cG,{title:e("tickets.title"),description:e("tickets.description"),bottomAlign:!0,children:(0,t.jsx)(c6,{})}),(0,t.jsx)(cG,{title:e("analyze.title"),description:e("analyze.description"),bottomAlign:!0,children:(0,t.jsx)(c7,{})})]})]})})})})}function cG({title:e,description:i,children:r,bottomAlign:s}){let o=(0,a.useRef)(null),c=(0,l.useInView)(o,{once:!0,amount:.15});return(0,t.jsxs)("div",{ref:o,className:"grid grid-cols-1 border-t border-black/[0.05] lg:grid-cols-[0.4fr_0.6fr]",children:[(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:20},animate:c?{opacity:1,y:0}:{},transition:{duration:.6,ease:[.16,1,.3,1]},className:"flex flex-col justify-center p-8 sm:p-10 lg:p-14",children:[(0,t.jsx)("h3",{className:"font-serif text-[28px] font-bold leading-tight tracking-[-0.03em] text-black/80 sm:text-[34px] lg:text-[38px]",children:e}),(0,t.jsx)("p",{className:"mt-3 max-w-[360px] text-[14px] leading-[22px] text-black/50 sm:mt-4 sm:text-[15px] sm:leading-[24px]",children:i})]}),(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:16},animate:c?{opacity:1,y:0}:{},transition:{duration:.7,delay:.1,ease:[.16,1,.3,1]},className:`relative flex min-h-[480px] sm:min-h-[540px] lg:min-h-[580px] lg:border-l border-black/[0.05] bg-white ${s?"flex-col pt-6 px-4 pb-0 sm:pt-8 sm:px-6 lg:pt-12 lg:px-12":"items-center p-4 sm:p-8 lg:p-12"}`,children:[(0,t.jsx)("div",{dir:"ltr",className:`w-full ${s?"mt-auto":""}`,children:r}),s&&(0,t.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 h-56 bg-gradient-to-t from-white from-50% via-white/95 to-transparent z-50"})]})]})}let cQ=[{id:"a1",name:"Support Bot",dotColor:"bg-indigo-500",x:25,y:24},{id:"a2",name:"Sales Agent",dotColor:"bg-orange-500",x:75,y:24}],cZ=[{id:"prompt",label:"AI Personality",sub:"Prompt & model",color:"violet",x:50,y:12,badge:"Custom"},{id:"guardrails",label:"Guardrails",sub:"Safety rules",color:"emerald",x:82,y:32,badge:"3 rules"},{id:"appearance",label:"Appearance",sub:"Colors & layout",color:"pink",x:74,y:68,badge:"Custom"},{id:"kb",label:"Product Docs",sub:"Knowledge base",color:"cyan",x:26,y:68,badge:"12 docs"},{id:"content",label:"Home Content",sub:"Greeting & CTA",color:"rose",x:18,y:32,badge:"3 cards"}],cK={prompt:ez.RiSparklingLine,guardrails:ez.RiShieldCheckLine,appearance:ez.RiPaletteLine,kb:ez.RiBookOpenLine,content:ez.RiHomeLine}
1,cJ={violet:{bg:"bg-violet-500/10",text:"text-violet-500",border:"border-violet-400/50",ring:"ring-violet-400/20"},emerald:{bg:"bg-emerald-500/10",text:"text-emerald-500",border:"border-emerald-400/50",ring:"ring-emerald-400/20"},pink:{bg:"bg-pink-500/10",text:"text-pink-500",border:"border-pink-400/50",ring:"ring-pink-400/20"},cyan:{bg:"bg-cyan-500/10",text:"text-cyan-500",border:"border-cyan-400/50",ring:"ring-cyan-400/20"},rose:{bg:"bg-rose-500/10",text:"text-rose-500",border:"border-rose-400/50",ring:"ring-rose-400/20"}},c0=[{first:"appearance",second:"kb"},{first:"prompt",second:"content"}];function c1(){let e=(0,eD.useTranslations)("trainMockup"),i=(0,eD.useTranslations)("demo"),r=(0,a.useRef)(null),o=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)({}),u=(0,a.useRef)(null),p=(0,a.useRef)(null),x=(0,a.useRef)(null),m=(0,a.useRef)({}),h=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,a.useRef)(null),y=(0,l.useInView)(r,{once:!1,amount:.3}),[j,w]=f(),[N,k]=(0,a.useState)(0),[_,C]=(0,a.useState)("agents"),[T,R]=(0,a.useState)(!1),[S,A]=(0,a.useState)(2),[M,L]=(0,a.useState)(null),[P,E]=(0,a.useState)(null),[$,I]=(0,a.useState)(!1),[O,z]=(0,a.useState)("appearance"),[D,B]=(0,a.useState)(!1),[F,W]=(0,a.useState)(!1),[H,q]=(0,a.useState)({primary:"#f97316",bg:"#ffffff",name:"Light"}),[V,Y]=(0,a.useState)(!1),[U,X]=(0,a.useState)([]),[G,Q]=(0,a.useState)([]),Z=e=>{if(!e||!r.current)return{x:200,y:200};let t=r.current.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-t.left+i.width/2,y:i.top-t.top+i.height/2}},K=(e,t,i)=>{let a,r,n,s,l=e.getBoundingClientRect(),o=t.getBoundingClientRect(),c=i.getBoundingClientRect(),d=(o.left+o.right)/2-l.left,u=(o.top+o.bottom)/2-l.top,p=(c.left+c.right)/2-l.left,x=(c.top+c.bottom)/2-l.top,f=p-d,m=x-u,h=.4*Math.sqrt(f*f+m*m);if(Math.abs(f)>Math.abs(m)){let e=f>0?1:-1;a=d+e*h,r=u,n=p-e*h,s=x}else{let e=m>0?1:-1;a=d,r=u+e*h,n=p,s=x-e*h}return`M ${d} ${u} C ${a} ${r}, ${n} ${s}, ${p} ${x}`};return(0,a.useEffect)(()=>{let e=requestAnimationFrame(()=>{let e=o.current,t=c.current;e&&t&&X(cQ.map(i=>{let a=d.current[i.id];return a?K(e,t,a):""}));let i=x.current;e&&i&&Q(cZ.map(t=>{let a=m.current[t.id];return a?K(e,i,a):""}))});return()=>cancelAnimationFrame(e)},[]),(0,a.useEffect)(()=>{if(!y)return;let e=!1;c0[N%c0.length];let t=e=>new Promise(t=>setTimeout(t,e)),i=()=>{let e=o.current,t=c.current;if(!e||!t)return;let i=cQ.map(i=>{let a=d.current[i.id];return a?K(e,t,a):""});u.current&&i.push(K(e,t,u.current)),X(i)};return(async()=>{if(C("agents"),R(!1),A(2),L(null),E(null),I(!1),B(!1),W(!1),q({primary:"#f97316",bg:"#ffffff",name:"Light"}),Y(!1),X([]),!j.current||(await w(j.current,{opacity:0,scale:1,x:200,y:300},{duration:0}),await t(500),e)||(requestAnimationFrame(()=>requestAnimationFrame(i)),await t(300),e)||(await w(j.current,{opacity:1},{duration:.35}),e)||(await t(400),e))return;let a=Z(p.current);if(await w(j.current,{x:a.x,y:a.y},{duration:.8,ease:[.33,1,.68,1]}),e||(await t(200),e)||(await w(j.current,{scale:.78},{duration:.09}),await w(j.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(R(!0),A(3),await t(600),e)||(requestAnimationFrame(()=>{requestAnimationFrame(()=>{i()})}),await t(800),e))return;let r=Z(u.current);if(await w(j.current,{x:r.x,y:r.y},{duration:.7,ease:[.33,1,.68,1]}),e||(await t(300),e)||(await w(j.current,{scale:.78},{duration:.06}),await w(j.current,{scale:1},{duration:.1}),await t(120),await w(j.current,{scale:.78},{duration:.06}),await w(j.current,{scale:1},{duration:.1}),e)||(await w(j.current,{opacity:0},{duration:.25}),e)||(C("builder"),await t(600),e)||(await t(700),e)||(await w(j.current,{opacity:0,x:200,y:250},{duration:0}),await w(j.current,{opacity:1},{duration:.35}),e)||(await t(300),e))return;let n=async()=>{await w(j.current,{scale:.78},{duration:.09}),await w(j.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]})},s=async(e,t=.6)=>{let i=Z(e);await w(j.current,{x:i.x,y:i.y},{duration:t,ease:[.33,1,.68,1]})},l=async()=>{await s(v.current,.4),e||(await n(),e||(I(!1),L(null),await t(400)))};if(await s(m.current.appearance,.7),e||(E("appearance"),await t(250),e)||(await n(),e)||(E(null),L("appearance"),z("appearance"),I(!0),B(!0),await t(600),e)||(await s(g.current),e)||(await n(),e)||(q({primary:"#6366f1",bg:"#0f172a",name:"Midnight"}),await t(800),e)||(await l(),e)||(await s(m.current.kb,.8),e)||(E("kb"),await t(250),e)||(await n(),e)||(E(null),L("kb"),z("kb"),Y(!1),I(!0),await t(600),e)||(await s(g.current),e)||(await n(),e)||(Y(!0),await t(700),e)||(await s(b.current,.5),e)||(await t(400),e)||(await l(),e))return;let o=Z(h.current);await w(j.current,{x:o.x,y:o.y},{duration:.9,ease:[.33,1,.68,1]}),e||(await w(j.current,{scale:.78},{duration:.09}),await w(j.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}
1),e||(W(!0),B(!1),await t(1100),e||(W(!1),await t(300),e||(await w(j.current,{opacity:0},{duration:.5,ease:[.16,1,.3,1]}),e||(await t(500),e||k(e=>e+1))))))})(),()=>{e=!0}},[y,N]),(0,t.jsxs)("div",{ref:r,className:"mockup-ui relative w-full overflow-hidden rounded-t-2xl rounded-b-none border border-b-0 border-black/[0.07] bg-white shadow-[0_-2px_16px_0_rgba(0,0,0,0.06)] min-h-[480px] sm:min-h-[540px] lg:min-h-[600px]",children:[(0,t.jsx)(s.AnimatePresence,{children:F&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:-6,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.96},transition:{duration:.22,ease:[.33,1,.68,1]},className:"absolute right-3 top-[42px] z-30 flex items-center gap-1.5 rounded-lg border border-green-500/20 bg-green-50 px-2.5 py-1.5 shadow-md shadow-green-500/10",children:(0,t.jsxs)("span",{className:"text-[9.5px] font-semibold text-green-600",children:["✓ ",e("savedSuccessfully")]})},"save-toast")}),(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 hidden w-9 flex-col items-center gap-2 border-r border-black/[0.05] bg-black/[0.015] py-3 sm:flex",children:[{Icon:ez.RiHome4Line,active:!1},{Icon:ez.RiBookOpenLine,active:!1},{Icon:ez.RiRobot2Line,active:!0},{Icon:ez.RiChat3Line,active:!1},{Icon:ez.RiBarChart2Line,active:!1}].map(({Icon:e,active:i},a)=>(0,t.jsx)("div",{className:`flex h-6 w-6 items-center justify-center rounded ${i?"bg-black/10":""}`,children:(0,t.jsx)(e,{size:13,className:i?"text-black/60":"text-black/25"})},a))}),(0,t.jsxs)("div",{className:"sm:ml-9 flex h-full flex-col",children:[(0,t.jsx)("div",{className:"flex items-center justify-between border-b border-black/[0.06] px-4 py-2.5",children:(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:"agents"===_?(0,t.jsxs)(n.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-medium text-black/65",children:e("yourAgents")}),(0,t.jsx)("span",{className:"rounded-full bg-black/[0.05] px-1.5 py-px text-[8px] font-mono text-black/35",children:S})]},"agents-header"):(0,t.jsxs)(n.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"flex items-center gap-2",children:[(0,t.jsx)(ez.RiArrowLeftSLine,{size:14,className:"text-black/30"}),(0,t.jsx)("span",{className:"text-[11px] font-medium text-black/65",children:e("newAgent")}),(0,t.jsx)("span",{className:"text-[8px] text-black/20",children:"·"}),(0,t.jsx)("span",{className:"text-[8px] text-black/30",children:e("clickNodeToConfigure")})]},"builder-header")})}),(0,t.jsx)(s.AnimatePresence,{children:D&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:-8,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.95},transition:{duration:.3,ease:[.16,1,.3,1]},className:"absolute top-[42px] left-1/2 sm:left-[calc(50%+18px)] -translate-x-1/2 z-30 flex items-center gap-1 sm:gap-1.5 rounded-full border border-black/[0.08] bg-white px-2 sm:px-2.5 py-1 shadow-md",children:[(0,t.jsx)("span",{className:"text-[8px] text-black/50",children:e("unsavedChanges")}),(0,t.jsx)("button",{className:"rounded-full border border-black/[0.08] px-1.5 py-0.5 text-[7px] text-black/40",children:e("cancel")}),(0,t.jsx)("button",{ref:h,className:"rounded-full bg-black px-2 py-0.5 text-[7px] font-medium text-white",children:e("save")})]})}),(0,t.jsxs)("div",{ref:o,className:"relative flex-1 min-h-[420px] sm:min-h-[480px] lg:min-h-[555px]",style:{backgroundImage:"radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px)",backgroundSize:"14px 14px"},children:[(0,t.jsxs)(n.motion.div,{animate:{opacity:+("agents"===_)},transition:{duration:.4,ease:[.16,1,.3,1]},className:`absolute inset-0 ${"agents"!==_?"pointer-events-none":""}`,children:[(0,t.jsx)("svg",{className:"absolute inset-0 h-full w-full pointer-events-none",children:U.map((e,i)=>{if(!e)return null;let a=i>=cQ.length;return(0,t.jsxs)("g",{children:[a?(0,t.jsx)(n.motion.path,{d:e,fill:"none",stroke:"rgba(0,0,0,0.08)",strokeWidth:1.5,initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{pathLength:{duration:.8,ease:[.16,1,.3,1]},opacity:{duration:.3}}}):(0,t.jsx)("path",{d:e,fill:"none",stroke:"rgba(0,0,0,0.08)",strokeWidth:"1.5"}),(0,t.jsx)("circle",{r:"2.5",fill:"rgba(0,0,0,0.2)",children:(0,t.jsx)("animateMotion",{dur:"3s",repeatCount:"indefinite",path:e})})]},i)})}),(0,t.jsxs)("div",{ref:c,className:"absolute",style:{left:"50%",top:"44%",transform:"translate(-50%, -50%)"},children:[(0,t.jsx)(n.motion.div,{className:"absolute -inset-3 rounded-2xl border border-primary/15",animate:{opacity:[.3,.7,.3],scale:[1,1.03,1]},transition:{duration:3.5,repeat:1/0,ease:[.16,1,.3,1]}}),(0,t.jsxs)("div",{className:"flex h-[50px] w-[85px] sm:h-[58px] sm:w-[95px] lg:h-[65px] lg:w-[110px] flex-col items-center justify-center rounded-2xl border border-black/[0.06] bg-white shadow-sm",children:[(0,t.jsx)(cI.Logo,{size:22,quality:"medium"}),(0,t.jsx)("p",{className:"mt-1 text-[10px] font-semibold text-black/70",children:e("aiAgents")}),(0,t.jsxs)("p",{className:"text-[7px] text-black/35",children:[S," ",e("agents")]})]})]}),cQ.map(i=>(0,t.jsx)("div",{ref:e=>{d.current[i.id]=e},className:"absolute",style:{left:`${i.x}%`,top:`${i.y}%`,transform:"translate(-50%, -50%)"},children:(0,t.jsxs)("div",{className:"flex w-[85px] sm:w-[100px] lg:w-[120px] items-center gap-1.5 sm:gap-2 rounded-xl border border-black/[0.06] bg-white p-2.5 shadow-sm",children:[(0,t.jsx)("span",{className:`h-5 w-5 shrink-0 rounded-lg ${i.dotColor} flex items-center justify-center text-[8px] font-bold text-white`,children:i.name[0]}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-[9px] font-medium text-black/70 truncate",children:i.name}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"h-1 w-1 rounded-full bg-emerald-500"}),(0,t.jsx)("span",{className:"text-[7px] text-black/35",children:e("active")})]})]})]})},i.id)),(0,t.jsx)(s.AnimatePresence,{children:T&&(0,t.jsx)(n.motion.div,{ref:u,initial:{opacity:0,scale:.5}
1,animate:{opacity:1,scale:1},transition:{type:"spring",stiffness:350,damping:22},className:"absolute",style:{left:"18%",top:"44%",transform:"translate(-50%, -50%)"},children:(0,t.jsxs)("div",{className:"flex w-[85px] sm:w-[100px] lg:w-[120px] items-center gap-1.5 sm:gap-2 rounded-xl border border-emerald-400/50 ring-2 ring-emerald-400/20 bg-white p-2.5 shadow-md",children:[(0,t.jsx)("span",{className:"h-5 w-5 shrink-0 rounded-lg bg-emerald-500 flex items-center justify-center text-[8px] font-bold text-white",children:"N"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-[9px] font-medium text-black/70 truncate",children:e("newAgent")}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"h-1 w-1 rounded-full bg-amber-500"}),(0,t.jsx)("span",{className:"text-[7px] text-black/35",children:e("draft")})]})]})]})})}),(0,t.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2",style:{top:"4%"},children:(0,t.jsx)("button",{ref:p,className:"rounded-full bg-black px-4 py-1.5 text-[9px] font-medium text-white shadow-sm",children:e("createAgent")})})]}),(0,t.jsxs)(n.motion.div,{animate:{opacity:+("builder"===_)},transition:{duration:.7,ease:[.16,1,.3,1]},className:`absolute inset-0 ${"builder"!==_?"pointer-events-none":""}`,children:[(0,t.jsx)("svg",{className:"absolute inset-0 h-full w-full pointer-events-none",children:G.map((e,i)=>e&&(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:e,fill:"none",stroke:"rgba(0,0,0,0.08)",strokeWidth:"1.5"}),(0,t.jsx)("circle",{r:"2.5",fill:"rgba(0,0,0,0.2)",children:(0,t.jsx)("animateMotion",{dur:"3s",repeatCount:"indefinite",path:e})})]},i))}),(0,t.jsxs)("div",{ref:x,className:"absolute",style:{left:"50%",top:"46%",transform:"translate(-50%, -50%)"},children:[(0,t.jsx)(n.motion.div,{className:"absolute -inset-2 rounded-2xl border",style:{borderColor:`${H.primary}25`},animate:{opacity:[.3,.6,.3],scale:[1,1.02,1]},transition:{duration:4,repeat:1/0,ease:[.16,1,.3,1]}}),(0,t.jsxs)(n.motion.div,{className:"w-[70px] sm:w-[85px] lg:w-[100px] rounded-2xl border border-black/[0.06] shadow-md overflow-hidden",animate:{backgroundColor:H.bg},transition:{duration:.5,ease:[.16,1,.3,1]},children:[(0,t.jsxs)(n.motion.div,{className:"flex items-center gap-1 px-2 py-1.5",animate:{backgroundColor:H.primary},transition:{duration:.5,ease:[.16,1,.3,1]},children:[(0,t.jsx)(cI.Logo,{size:10,variant:"white",quality:"medium"}),(0,t.jsx)("span",{className:"text-[7px] font-medium text-white",children:"Next Cap"})]}),(0,t.jsxs)("div",{className:"px-2 py-3 space-y-1.5",children:[(0,t.jsx)(n.motion.div,{className:"h-2 w-[75%] rounded-full",animate:{backgroundColor:"#ffffff"===H.bg?"rgba(0,0,0,0.05)":"rgba(255,255,255,0.08)"},transition:{duration:.5}}),(0,t.jsx)(n.motion.div,{className:"h-2 w-[50%] rounded-full ml-auto",animate:{backgroundColor:H.primary+"30"},transition:{duration:.5}}),(0,t.jsx)(n.motion.div,{className:"h-2 w-[65%] rounded-full",animate:{backgroundColor:"#ffffff"===H.bg?"rgba(0,0,0,0.05)":"rgba(255,255,255,0.08)"},transition:{duration:.5}}),(0,t.jsx)(n.motion.div,{className:"h-2 w-[45%] rounded-full ml-auto",animate:{backgroundColor:H.primary+"30"},transition:{duration:.5}})]}),(0,t.jsx)("div",{className:"px-2 pb-1.5",children:(0,t.jsx)(n.motion.div,{className:"rounded-lg border px-1.5 py-1 text-[6px]",animate:{borderColor:"#ffffff"===H.bg?"rgba(0,0,0,0.06)":"rgba(255,255,255,0.1)",color:"#ffffff"===H.bg?"rgba(0,0,0,0.2)":"rgba(255,255,255,0.3)"},transition:{duration:.5},children:i("askQuestion")})})]})]}),cZ.map(e=>{let i=cJ[e.color],a=cK[e.id],r=M===e.id,s=P===e.id;return(0,t.jsx)("div",{ref:t=>{m.current[e.id]=t},className:"absolute",style:{left:`${e.x}%`,top:`${e.y}%`,transform:"translate(-50%, -50%)"},children:(0,t.jsx)(n.motion.div,{animate:{y:s?-3:0,scale:s?1.02:1},transition:{type:"spring",stiffness:400,damping:25},children:(0,t.jsxs)("div",{className:`w-[90px] sm:w-[110px] lg:w-[135px] rounded-xl border p-1.5 sm:p-2 lg:p-2.5 bg-white shadow-sm transition-all duration-200 ${r?`${i.border} ring-2 ${i.ring} shadow-md`:"border-black/[0.06]"}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-lg ${i.bg}`,children:(0,t.jsx)(a,{size:12,className:i.text})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-[9px] font-medium leading-tight text-black/70 truncate",children:e.label}),(0,t.jsx)("p",{className:"text-[7px] text-black/30 truncate",children:e.sub})]})]}),(0,t.jsx)("p",{className:"mt-1.5 text-[8px] font-mono text-black/25 truncate",children:e.badge})]})})},e.id)}),(0,t.jsx)(n.motion.div,{initial:!1,animate:{x:$?0:"100%"},transition:{duration:.5,ease:[.16,1,.3,1]},className:"absolute inset-y-0 right-0 w-[55%] sm:w-[45%] lg:w-[40%] border-l border-black/[0.06] bg-white overflow-y-auto z-20",style:{scrollbarWidth:"none"},children:(0,t.jsxs)("div",{className:"px-3.5 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("span",{className:"text-[8px] uppercase tracking-wider text-black/30",children:e("configure")}),(0,t.jsx)("button",{ref:v,className:"flex h-5 w-5 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiClose
1Line,{size:12,className:"text-black/30"})})]}),"appearance"===O&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-lg bg-pink-500/10",children:(0,t.jsx)(ez.RiPaletteLine,{size:12,className:"text-pink-500"})}),(0,t.jsx)("span",{className:"text-[10px] font-semibold text-black/60",children:e("appearance")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[8px] uppercase tracking-wider text-black/30 mb-1.5",children:e("themePresets")}),(0,t.jsx)("div",{className:"space-y-1.5 mb-3",children:[{name:"Light",primary:"#f97316",bg:"#ffffff"},{name:"Midnight",primary:"#6366f1",bg:"#0f172a"},{name:"Ocean",primary:"#0ea5e9",bg:"#0c1222"},{name:"Forest",primary:"#22c55e",bg:"#0a1a0f"}].map((e,i)=>(0,t.jsxs)("div",{ref:1===i?g:void 0,className:`flex items-center gap-2 rounded-lg border p-1.5 transition-all duration-200 ${H.name===e.name?"border-black/20 shadow-sm":"border-black/[0.06]"}`,children:[(0,t.jsx)("div",{className:"h-5 w-8 shrink-0 overflow-hidden rounded-md",style:{backgroundColor:e.bg},children:(0,t.jsx)("div",{className:"h-2 w-full",style:{backgroundColor:e.primary}})}),(0,t.jsx)("span",{className:"text-[8px] font-medium text-black/50",children:e.name})]},e.name))})]})]}),"content"===O&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-lg bg-rose-500/10",children:(0,t.jsx)(ez.RiHomeLine,{size:12,className:"text-rose-500"})}),(0,t.jsx)("span",{className:"text-[10px] font-semibold text-black/60",children:"Home Content"})]}),(0,t.jsxs)("div",{ref:g,className:"mb-3",children:[(0,t.jsx)("p",{className:"text-[8px] uppercase tracking-wider text-black/30 mb-1.5",children:"Greeting"}),(0,t.jsx)("div",{className:"rounded-lg border border-black/[0.08] px-2.5 py-1.5 text-[9px] text-black/50",children:"Hi there! How can I help you today?"})]}),(0,t.jsxs)("div",{ref:b,children:[(0,t.jsx)("p",{className:"text-[8px] uppercase tracking-wider text-black/30 mb-1.5",children:"Suggested Questions"}),(0,t.jsx)("div",{className:"space-y-1",children:["How do I get started?","What plans do you offer?","Contact support"].map(e=>(0,t.jsx)("div",{className:"rounded-lg bg-black/[0.03] px-2.5 py-1.5 text-[8px] text-black/40",children:e},e))})]})]}),"prompt"===O&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-lg bg-violet-500/10",children:(0,t.jsx)(ez.RiSparklingLine,{size:12,className:"text-violet-500"})}),(0,t.jsx)("span",{className:"text-[10px] font-semibold text-black/60",children:"AI Personality"})]}),(0,t.jsxs)("div",{ref:g,className:"mb-3",children:[(0,t.jsx)("p",{className:"text-[8px] uppercase tracking-wider text-black/30 mb-1.5",children:"Language Model"}),(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-black/[0.08] px-2.5 py-1.5 text-[9px] text-black/60",children:[(0,t.jsx)("span",{children:"Select model"}),(0,t.jsx)(ez.RiArrowDownSLine,{size:10,className:"text-black/30"})]})]}),(0,t.jsxs)("div",{ref:b,className:"mb-3",children:[(0,t.jsx)("p",{className:"text-[8px] uppercase tracking-wider text-black/30 mb-1.5",children:"Response Style"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[7px] text-black/25",children:"Precise"}),(0,t.jsxs)("div",{className:"relative h-1 flex-1 rounded-full bg-black/[0.06]",children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 h-full w-[60%] rounded-full bg-violet-500"}),(0,t.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 h-2.5 w-2.5 rounded-full border-2 border-white bg-violet-500 shadow-sm",style:{left:"60%"}})]}),(0,t.jsx)("span",{className:"text-[7px] text-black/25",children:"Creative"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[8px] uppercase tracking-wider text-black/30 mb-1.5",children:"System Prompt"}),(0,t.jsx)("div",{className:"rounded-lg border border-black/[0.08] bg-black/[0.015] p-2.5 text-[8px] leading-[12px] text-black/25 italic min-h-[60
1px]",children:"Define your AI agent's personality, tone, and instructions..."})]})]}),"kb"===O&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-lg bg-cyan-500/10",children:(0,t.jsx)(ez.RiBookOpenLine,{size:12,className:"text-cyan-500"})}),(0,t.jsx)("span",{className:"text-[10px] font-semibold text-black/60",children:e("knowledgeBases")})]}),V?(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.4,ease:[.16,1,.3,1]},children:[(0,t.jsxs)("div",{className:"rounded-xl border border-cyan-200 bg-cyan-50/50 p-2.5 mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("p",{className:"text-[9px] font-semibold text-black/70",children:e("productDocumentation")}),(0,t.jsx)("span",{className:"rounded-full bg-emerald-500/10 px-1.5 py-px text-[7px] text-emerald-600",children:e("connected")})]}),(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-2 text-[8px] text-black/40",children:[(0,t.jsx)("span",{className:"font-mono",children:e("docs")}),(0,t.jsx)("span",{className:"text-black/15",children:"·"}),(0,t.jsx)("span",{className:"font-mono",children:e("chunks")})]})]}),(0,t.jsx)("p",{className:"text-[8px] uppercase tracking-wider text-black/30 mb-1.5",children:e("documents")}),(0,t.jsx)("div",{ref:b,className:"space-y-1",children:[e("gettingStarted"),e("apiRefDoc"),e("faqDb")].map(i=>(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-lg bg-black/[0.03] px-2.5 py-1.5",children:[(0,t.jsx)("span",{className:"text-[8px] text-black/50",children:i}),(0,t.jsx)("span",{className:"rounded-full bg-emerald-500/10 px-1.5 py-px text-[7px] text-emerald-600",children:e("ready")})]},i))})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-[8px] text-black/35 mb-2",children:e("noKbConnected")}),(0,t.jsx)("div",{ref:g,className:"w-full cursor-pointer rounded-lg border border-dashed border-cyan-300 bg-cyan-50/30 px-2.5 py-2 text-center text-[8px] font-medium text-cyan-600 transition-colors hover:bg-cyan-50",children:e("connectKb")})]})]})]})})]})]})]}),(0,t.jsx)("div",{ref:j,className:"pointer-events-none absolute left-0 top-0 z-40",style:{opacity:0},children:(0,t.jsx)("svg",{width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",children:(0,t.jsx)("path",{d:"M1 1L1 14.5L4.5 11L6.5 16.5L8.5 15.5L6.5 10L11 10L1 1Z",fill:"rgba(0,0,0,0.72)",stroke:"white",strokeWidth:"0.9"})})})]})}function c5(){let e=(0,eD.useTranslations)("testMockup"),i=(0,eD.useTranslations)("demo"),r=[{name:e("supportBot"),color:"#6366f1",bg:"#ffffff",greeting:e("supportGreeting")},{name:e("salesAgent"),color:"#f97316",bg:"#1c1210",greeting:e("salesGreeting")},{name:e("faqBot"),color:"#22c55e",bg:"#0a1a0f",greeting:e("faqGreeting")}],o=[{role:"user",text:e("convo1")},{role:"agent",text:e("convo2")},{role:"user",text:e("convo3")},{role:"agent",text:e("convo4")}],c=(0,a.useRef)(null),d=(0,l.useInView)(c,{once:!1,amount:.3}),[u,p]=f(),x=(0,a.useRef)(null),m=(0,a.useRef)([]),h=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(null),[v,y]=(0,a.useState)(0),[j,w]=(0,a.useState)(0),[N,k]=(0,a.useState)(!1),[_,C]=(0,a.useState)([]),[T,R]=(0,a.useState)(""),[S,A]=(0,a.useState)(!1),[M,L]=(0,a.useState)(null),[P,E]=(0,a.useState)(!0),[$,I]=(0,a.useState)(!0);(0,a.useEffect)(()=>{let e=setInterval(()=>I(e=>!e),520);return()=>clearInterval(e)},[]);let O=()=>{requestAnimationFrame(()=>{let e=b.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})})};(0,a.useEffect)(()=>{if(!d)return;let e=!1,t=e=>new Promise(t=>setTimeout(t,e)),i=async()=>{await p(u.current,{scale:.78},{duration:.09}),await p(u.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]})},a=async(e,t=.6)=>{let i=(e=>{if(!e||!c.current)return{x:200,y:200};let t=c.current.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-t.left+i.width/2,y:i.top-t.top+i.height/2}})(e);await p(u.current,{x:i.x,y:i.y},{duration:t,ease:[.33,1,.68,1]})},r=async t=>{let i=0;await new Promise(a=>{let r=setInterval(()=>{if(e){clearInterval(r),a();return}i++,R(t.slice(0,i)),i>=t.length&&(clearInterval(r),a())},38)})};return(async()=>
1{if(w(0),k(!1),C([]),R(""),A(!1),L(null),u.current&&(await p(u.current,{opacity:0,scale:1,x:200,y:100},{duration:0}),await t(600),!e)&&(await p(u.current,{opacity:1},{duration:.35}),!e)&&(await t(300),!e)&&(await a(x.current,.7),!e)&&(await i(),!e)&&(k(!0),await t(400),!e)&&(await a(m.current[1],.5),!e)&&(await i(),!e)&&(w(1),k(!1),await t(800),!e)&&(await a(x.current,.5),!e)&&(await i(),!e)&&(k(!0),await t(400),!e)&&(await a(m.current[2],.5),!e)&&(await i(),!e)&&(w(2),k(!1),await t(600),!e)&&(await a(x.current,.5),!e)&&(await i(),!e)&&(k(!0),await t(300),!e)&&(await a(m.current[0],.4),!e)&&(await i(),!e)){if(w(0),k(!1),await t(600),!e){for(let n=0;n<o.length;n++){if(e)return;let s=o[n];if("user"===s.role){if(await a(h.current,.6),e||(await i(),e)||(A(!0),await t(200),e)||(await r(s.text),e)||(await t(300),e)||(await a(g.current,.4),e)||(await i(),e)||(R(""),A(!1),C(e=>[...e,n]),O(),await t(400),e))return}else{if(L(n),C(e=>[...e,n]),O(),await t(1200),e)return;L(null),O();let i=s.text.split(" ").length;if(await t(50*i+600),e)return}}e||(await t(1200),e||(await p(u.current,{opacity:0},{duration:.5,ease:[.16,1,.3,1]}),e||(E(!1),await t(600),e||(C([]),R(""),A(!1),L(null),w(0),await t(200),e||(E(!0),await t(400),e||y(e=>e+1))))))}}})(),()=>{e=!0}},[d,v]);let z=r[j];return(0,t.jsxs)("div",{ref:c,className:"mockup-ui relative w-full overflow-hidden rounded-t-2xl rounded-b-none border border-b-0 border-black/[0.07] bg-white shadow-[0_-2px_16px_0_rgba(0,0,0,0.06)] min-h-[480px] sm:min-h-[540px] lg:min-h-[600px]",children:[(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 hidden w-9 flex-col items-center gap-2 border-r border-black/[0.05] bg-black/[0.015] py-3 sm:flex",children:[{Icon:ez.RiHome4Line,active:!1},{Icon:ez.RiBookOpenLine,active:!1},{Icon:ez.RiRobot2Line,active:!1},{Icon:ez.RiChat3Line,active:!0},{Icon:ez.RiBarChart2Line,active:!1}].map(({Icon:e,active:i},a)=>(0,t.jsx)("div",{className:`flex h-6 w-6 items-center justify-center rounded ${i?"bg-black/10":""}`,children:(0,t.jsx)(e,{size:13,className:i?"text-black/60":"text-black/25"})},a))}),(0,t.jsxs)("div",{className:"sm:ml-9 flex h-full flex-col",children:[(0,t.jsx)("div",{className:"border-b border-black/[0.06] px-5 py-3",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[8px] font-medium uppercase tracking-[0.12em] text-black/30",children:e("playground")}),(0,t.jsx)("p",{className:"text-[13px] font-semibold text-black/75",children:e("testYourAgent")}),(0,t.jsx)("p",{className:"mt-0.5 text-[8px] text-black/35",children:e("selectAgentPreview")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{ref:x,className:"flex items-center gap-2 rounded-full border border-black/[0.08] px-3 py-1.5 cursor-pointer transition-colors hover:border-black/[0.15]",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:z.color}}),(0,t.jsx)("span",{className:"text-[9px] font-medium text-black/60",children:z.name}),(0,t.jsx)(ez.RiArrowDownSLine,{size:10,className:"text-black/30"})]}),(0,t.jsx)(s.AnimatePresence,{children:N&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:-4,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.96},transition:{duration:.2,ease:[.16,1,.3,1]},className:"absolute right-0 top-full mt-1 w-[150px] rounded-xl border border-black/[0.08] bg-white py-1 shadow-lg z-30",children:[(0,t.jsx)("p",{className:"px-3 py-1 text-[7px] font-medium uppercase tracking-wider text-black/25",children:e("yourAgents")}),r.map((e,i)=>(0,t.jsxs)("div",{ref:e=>{m.current[i]=e},className:`flex items-center gap-2 px-3 py-1.5 transition-colors ${j===i?"bg-black/[0.03]":"hover:bg-black/[0.02]"}`,children:[(0,t.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e.color}}),(0,t.jsx)("span",{className:"text-[8px] text-black/60 truncate flex-1",children:e.name}),j===i&&(0,t.jsx)("span",{className:"text-[8px] text-black/30",children:"✓"})]},e.name))]})})]}),(0,t.jsxs)("div",{className:"flex items-center rounded-full border border-black/[0.06] bg-black/[0.02] p-0.5",children:[(0,t.jsx)("div",{className:"rounded-full bg-black px-2 py-0.5 text-[8px] font-medium text-white",children:e("widget")}),(0,t.jsx)("div",{className:"px-2 py-0.5 text-[8px] text-black/35",children:e("simple")})]})]})]})}),(0,t.jsx)(n.motion.div,{className:"flex flex-1 items-start justify-center pt-4 pb-8 px-6",animate:{o
1pacity:+!!P},transition:{duration:.4,ease:[.16,1,.3,1]},children:(0,t.jsxs)(n.motion.div,{className:"mockup-ui w-full max-w-[200px] sm:max-w-[220px] lg:max-w-[240px] rounded-2xl border shadow-lg overflow-hidden flex flex-col",style:{height:"clamp(280px, 55vw, 400px)"},animate:{borderColor:z.color+"30"},transition:{duration:.4},children:[(0,t.jsxs)(n.motion.div,{className:"flex shrink-0 items-center justify-between border-b px-2.5 py-1.5",animate:{backgroundColor:z.bg,borderColor:"#ffffff"===z.bg?"rgba(0,0,0,0.06)":"rgba(255,255,255,0.08)"},transition:{duration:.4,ease:[.16,1,.3,1]},children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{className:"flex h-5 w-5 items-center justify-center rounded-full",style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.3)":"rgba(255,255,255,0.4)"},children:(0,t.jsx)(ez.RiArrowLeftSLine,{size:11})}),(0,t.jsx)(cI.Logo,{size:18,quality:"medium",variant:"#ffffff"===z.bg?"black":"white"}),(0,t.jsx)("span",{className:"font-serif text-[9px] font-medium",style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.7)":"rgba(255,255,255,0.85)"},children:"Next Cap"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsx)("button",{className:"flex h-5 w-5 items-center justify-center rounded-full",style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.25)":"rgba(255,255,255,0.3)"},children:(0,t.jsx)(ez.RiMore2Line,{size:10})}),(0,t.jsx)("button",{className:"flex h-5 w-5 items-center justify-center rounded-full",style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.25)":"rgba(255,255,255,0.3)"},children:(0,t.jsx)(ez.RiCloseLine,{size:10})})]})]}),(0,t.jsx)(n.motion.div,{ref:b,className:"min-h-0 flex-1 overflow-y-auto px-2.5 pt-2 pb-2",animate:{backgroundColor:z.bg},transition:{duration:.4,ease:[.16,1,.3,1]},style:{scrollbarWidth:"none"},children:(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.4,ease:[.16,1,.3,1]},children:[(0,t.jsx)("div",{className:"inline-block max-w-[88%] rounded-xl rounded-tl-sm px-2.5 py-1.5",style:{backgroundColor:"#ffffff"===z.bg?"rgba(0,0,0,0.05)":"rgba(255,255,255,0.08)"},children:(0,t.jsx)("p",{className:"text-[8px] leading-[12px]",style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.7)":"rgba(255,255,255,0.8)"},children:z.greeting})}),(0,t.jsxs)("p",{className:"mt-0.5 pl-0.5 text-[6px]",style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.25)":"rgba(255,255,255,0.25)"},children:[i("brandName")," · ",i("aiAgent")," · ",i("justNow")]})]},`greeting-${j}`)}),o.map((e,a)=>{if(!_.includes(a))return null;let r=M===a,s="#ffffff"===z.bg?"rgba(0,0,0,0.05)":"rgba(255,255,255,0.08)";z.bg;let l="#ffffff"===z.bg?"rgba(0,0,0,0.25)":"rgba(255,255,255,0.25)";return(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.4,ease:[.16,1,.3,1]},children:"user"===e.role?(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("div",{className:"inline-block max-w-[82%] rounded-xl rounded-tr-sm px-2.5 py-1.5 text-left",style:{backgroundColor:z.color},children:(0,t.jsx)("p",{className:"text-[8px] leading-[12px] text-white",children:e.text})})}):(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"inline-block max-w-[88%] rounded-xl rounded-tl-sm px-2.5 py-1.5 overflow-hidden",style:{backgroundColor:s},children:r?(0,t.jsx)("div",{className:"flex items-center gap-[3px] py-0.5",children:[0,1,2].map(e=>(0,t.jsx)(n.motion.span,{className:"block h-[4px] w-[4px] rounded-full",style:{backgroundColor:z.color},animate:{scale:[1,1.4,1]},transition:{duration:1.2,repeat:1/0,ease:"easeInOut",delay:.15*e}},e))}):(0,t.jsx)(cm,{text:e.text,className:`text-[8px] leading-[12px] ${"#ffffff"===z.bg?"text-black/70":"text-white/80"}`,tag:"p",splitType:"words",delay:40,duration:.5,ease:"power3.out",from:{opacity:0,y:5},to:{opacity:1,y:0},threshold:0,rootMargin:"0px",textAlign:"left"})}),!r&&(0,t.jsxs)("p",{className:"mt-0.5 pl-0.5 text-[6px]",style:{color:l},children:[i("brandName")," · ",i("aiAgent")," · ",i("justNow")]})]})},`msg-${v}-${a}`)})]})}),(0,t.jsx)(n.motion.div,{className:"shrink-0 px-2 pb-2 pt-1",animate:{backgroundColor:z.bg},transition:{duration:.4},children:(0,t.jsxs)("div",{ref:h,className:"rounded-xl border px-2.5 pt-1.5 pb-1.5 transition-colors duration-200",style:{borderColor:S?z.color+"80":"#ffffff"===z.bg?"rgba(0,0,0,0.08)":"rgba(255,255,255,0.1)",backgroundColor:"#ffffff"===z.bg?"#ffffff"
1:"rgba(255,255,255,0.05)"},children:[(0,t.jsx)("div",{className:"min-h-[12px]",children:T?(0,t.jsxs)("p",{className:"text-[8px]",style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.7)":"rgba(255,255,255,0.8)"},children:[T,(0,t.jsx)("span",{className:"ml-px inline-block h-[12px] w-px translate-y-[1px]",style:{backgroundColor:"#ffffff"===z.bg?"rgba(0,0,0,0.5)":"rgba(255,255,255,0.5)",opacity:+!!$}})]}):(0,t.jsx)("p",{className:"text-[8px]",style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.2)":"rgba(255,255,255,0.25)"},children:i("askQuestion")})}),(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{className:"flex h-6 w-6 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiAttachmentLine,{size:13,style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.25)":"rgba(255,255,255,0.3)"}})}),(0,t.jsx)("button",{className:"flex h-6 w-6 items-center justify-center rounded-full transition-colors hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiEmotionLine,{size:13,style:{color:"#ffffff"===z.bg?"rgba(0,0,0,0.25)":"rgba(255,255,255,0.3)"}})})]}),(0,t.jsx)("button",{ref:g,className:"flex h-6 w-6 items-center justify-center rounded-full transition-colors",style:{backgroundColor:T?z.color:"#ffffff"===z.bg?"rgba(0,0,0,0.06)":"rgba(255,255,255,0.1)"},children:(0,t.jsx)(ez.RiArrowUpLine,{size:13,className:T?"text-white":"",style:{color:T?"#fff":"#ffffff"===z.bg?"rgba(0,0,0,0.3)":"rgba(255,255,255,0.3)"}})})]})]})})]})})]}),(0,t.jsx)("div",{ref:u,className:"pointer-events-none absolute left-0 top-0 z-40",style:{opacity:0},children:(0,t.jsx)("svg",{width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",children:(0,t.jsx)("path",{d:"M1 1L1 14.5L4.5 11L6.5 16.5L8.5 15.5L6.5 10L11 10L1 1Z",fill:"rgba(0,0,0,0.72)",stroke:"white",strokeWidth:"0.9"})})})]})}function c2(){let e=(0,eD.useTranslations)("deployMockup"),i=(0,eD.useTranslations)("demo"),r=[{agentName:e("scenario1Agent"),chatMessages:[{from:"agent",text:e("scenario1Msg0")},{from:"user",text:e("scenario1Msg1")},{from:"agent",text:e("scenario1Msg2")},{from:"user",text:e("scenario1Msg3")},{from:"agent",text:e("scenario1Msg4")}]},{agentName:e("scenario2Agent"),chatMessages:[{from:"agent",text:e("scenario2Msg0")},{from:"user",text:e("scenario2Msg1")},{from:"agent",text:e("scenario2Msg2")},{from:"user",text:e("scenario2Msg3")},{from:"agent",text:e("scenario2Msg4")}]}],o=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(null),p=(0,a.useRef)(null),x=(0,a.useRef)(null),m=(0,a.useRef)(null),h=(0,l.useInView)(o,{once:!1,amount:.3}),[g,b]=f(),[v,y]=(0,a.useState)(0),[j,w]=(0,a.useState)(null),[N,k]=(0,a.useState)(!1),[_,C]=(0,a.useState)(!1),[T,R]=(0,a.useState)(!1),[S,A]=(0,a.useState)([]),[M,L]=(0,a.useState)(""),[P,E]=(0,a.useState)(!1),[$,I]=(0,a.useState)(!0),[O,z]=(0,a.useState)(null),[D,B]=(0,a.useState)(!1),[F,W]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=setInterval(()=>I(e=>!e),520);return()=>clearInterval(e)},[]);let H=e=>{if(!e||!o.current)return{x:200,y:200};let t=o.current.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-t.left+i.width/2,y:i.top-t.top+i.height/2}},q=()=>{requestAnimationFrame(()=>{let e=m.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})})};(0,a.useEffect)(()=>{if(!h)return;let e=!1,t=r[v%r.length],i=e=>new Promise(t=>setTimeout(t,e)),a=async t=>{let i=0;await new Promise(a=>{let r=setInterval(()=>{if(e){clearInterval(r),a();return}i++,L(t.slice(0,i)),i>=t.length&&(clearInterval(r),a())},38)})};return(async()=>{if(await i(450),e||(w(null),k(!1),C(!1),R(!1),A([]),L(""),E(!1),z(null),B(!1),W(!1),!g.current)||(await b(g.current,{opacity:0,scale:1,x:100,y:140},{duration:0}),await i(800),e)||(await b(g.current,{opacity:1},{duration:.35}),e)||(await i(300),e))return;let r=H(c.current);if(await b(g.current,{x:r.x,y:r.y},{duration:.9,ease:[.33,1,.68,1]}),e||(w("setlive"),await b(g.current,{scale:.78},{duration:.09}),await b(g.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}
1),e)||(await i(300),e)||(k(!0),await i(400),e)||(C(!0),await i(900),e))return;let n=e=>new Promise(t=>{let i=()=>{e.current?t(H(e.current)):setTimeout(i,50)};i()}),s=await n(d);if(e||(await b(g.current,{x:s.x,y:s.y},{duration:.8,ease:[.33,1,.68,1]}),e)||(await i(200),e)||(await b(g.current,{scale:.78},{duration:.09}),await b(g.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(R(!0),W(!0),await i(1e3),e))return;let l=await n(x);if(e||(await b(g.current,{x:l.x,y:l.y},{duration:.6,ease:[.33,1,.68,1]}),e)||(await i(200),e)||(await b(g.current,{scale:.78},{duration:.09}),await b(g.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(B(!0),await i(400),e)||(z(0),A([0]),q(),await i(1200),e))return;z(null),q();let o=t.chatMessages[0].text.split(" ").length;if(await i(50*o+600),!e){for(let r=1;r<t.chatMessages.length;r++){if(e)return;let s=t.chatMessages[r];if("user"===s.from){let t=await n(u);if(e||(await b(g.current,{x:t.x,y:t.y},{duration:.6,ease:[.33,1,.68,1]}),e)||(await b(g.current,{scale:.78},{duration:.09}),await b(g.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(E(!0),await i(200),e)||(await a(s.text),e)||(await i(300),e))return;let l=await n(p);if(e||(await b(g.current,{x:l.x,y:l.y},{duration:.4,ease:[.33,1,.68,1]}),e)||(await b(g.current,{scale:.78},{duration:.09}),await b(g.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(L(""),E(!1),A(e=>[...e,r]),q(),await i(400),e))return}else{if(z(r),A(e=>[...e,r]),q(),await i(1200),e)return;z(null),q();let t=s.text.split(" ").length;if(await i(50*t+600),e)return}}await i(1500),e||(await b(g.current,{opacity:0},{duration:.35,ease:[.16,1,.3,1]}),e||(W(!1),await i(1e3),e||(R(!1),await i(500),e||(C(!1),await i(400),e||(k(!1),w(null),await i(600),e||y(e=>e+1))))))}})(),()=>{e=!0}},[h,v]);let V=r[v%r.length];return(0,t.jsxs)("div",{ref:o,className:"mockup-ui relative flex w-full overflow-hidden rounded-t-2xl rounded-b-none border border-b-0 border-black/[0.07] bg-white shadow-[0_-2px_16px_0_rgba(0,0,0,0.06)] min-h-[480px] sm:min-h-[540px] lg:min-h-[600px]",children:[(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 hidden w-9 flex-col items-center gap-2 border-r border-black/[0.05] bg-black/[0.015] py-3 sm:flex",children:[{Icon:ez.RiHome4Line,active:!1},{Icon:ez.RiBookOpenLine,active:!1},{Icon:ez.RiRobot2Line,active:!0},{Icon:ez.RiChat3Line,active:!1},{Icon:ez.RiBarChart2Line,active:!1}].map(({Icon:e,active:i},a)=>(0,t.jsx)("div",{className:`flex h-6 w-6 items-center justify-center rounded ${i?"bg-black/10":""}`,children:(0,t.jsx)(e,{size:13,className:i?"text-black/60":"text-black/25"})},a))}),(0,t.jsxs)("div",{className:"sm:ml-9 flex flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-black/[0.06] px-4 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(ez.RiArrowLeftSLine,{size:14,className:"text-black/30"}),(0,t.jsx)("span",{className:"text-[11px] font-medium text-black/65",children:V.agentName}),(0,t.jsx)("span",{className:"text-[8px] text-black/20",children:"·"}),(0,t.jsx)("span",{className:"text-[8px] text-black/30",children:e("readyToDeploy")})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)("button",{className:"rounded-full border border-black/[0.08] px-2 py-0.5 text-[9px] whitespace-nowrap text-black/35",children:e("save")}),(0,t.jsx)("button",{ref:c,className:`rounded-full px-3 py-0.5 text-[9px] whitespace-nowrap font-semibold text-white transition-colors duration-100 ${"setlive"===j?"bg-orange-600":"bg-orange-500"}`,children:e("setLive")})]})]}),(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)(n.motion.div,{animate:{opacity:N?.1:1,y:30*!!N,scale:N?.97:1},transition:{duration:.8,ease:[.16,1,.3,1]},className:"flex items-start justify-center pt-6 px-6",children:(0,t.jsxs)("div",{className:"w-full max-w-[180px] sm:max-w-[200px] lg:max-w-[220px] rounded-2xl border border-black/[0.06] bg-white shadow-md overflow-hidden",style:{height:"clamp(260px, 50vw, 340px)"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-black/[0.04] px-3 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(ez.RiArrowLeftSLine,{size:11,className:"text-black/30"}),(0,t.jsx)(cI.Logo,{size:14,quality:"medium"}),(0,t.jsx)("span",{className:"font-serif text-[9px] font-medium text-black/70",children:"Next Cap"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(ez.RiMore2Line,{size:9,className:"text-black/25"}
1),(0,t.jsx)(ez.RiCloseLine,{size:9,className:"text-black/25"})]})]}),(0,t.jsxs)("div",{className:"px-3 py-4 space-y-2",children:[(0,t.jsx)("div",{className:"h-2 w-[70%] rounded-full bg-black/[0.05]"}),(0,t.jsx)("div",{className:"h-2 w-[50%] rounded-full bg-black/[0.08] ml-auto"}),(0,t.jsx)("div",{className:"h-2 w-[60%] rounded-full bg-black/[0.05]"}),(0,t.jsx)("div",{className:"h-2 w-[40%] rounded-full bg-black/[0.08] ml-auto"}),(0,t.jsx)("div",{className:"h-2 w-[55%] rounded-full bg-black/[0.05]"})]}),(0,t.jsx)("div",{className:"px-3 pb-2",children:(0,t.jsx)("div",{className:"rounded-xl border border-black/[0.06] px-2.5 py-1.5 text-[7px] text-black/20",children:i("askQuestion")})})]})}),(0,t.jsx)(s.AnimatePresence,{children:_&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:20,scale:.96},animate:{opacity:1,y:30*!!F,x:60*!!F,scale:F?1.5:1},exit:{opacity:0,y:20,scale:.96},transition:{duration:F?1.2:.6,ease:[.45,0,.55,1]},style:{transformOrigin:"25% 40%"},className:"absolute inset-x-3 -top-8 bottom-3 rounded-xl border border-black/[0.08] bg-[#fafafa] shadow-[0_8px_40px_rgba(0,0,0,0.1)] overflow-hidden z-10",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-black/[0.06] px-4 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"h-2.5 w-2.5 rounded-full bg-black/10"}),(0,t.jsx)("div",{className:"h-2 w-16 rounded-full bg-black/[0.08]"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-2 w-10 rounded-full bg-black/[0.06]"}),(0,t.jsx)("div",{className:"h-2 w-10 rounded-full bg-black/[0.06]"}),(0,t.jsx)("div",{className:"h-2 w-10 rounded-full bg-black/[0.06]"}),(0,t.jsx)("div",{className:"h-5 w-14 rounded-full bg-black/[0.08]"})]})]}),(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsxs)("div",{className:"mb-4 flex flex-col items-center gap-2 py-6",children:[(0,t.jsx)("div",{className:"h-3 w-48 rounded-full bg-black/[0.07]"}),(0,t.jsx)("div",{className:"h-2 w-36 rounded-full bg-black/[0.04]"}),(0,t.jsx)("div",{className:"mt-2 h-6 w-20 rounded-full bg-black/[0.08]"})]}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[1,2,3].map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-black/[0.05] bg-white p-3",children:[(0,t.jsx)("div",{className:"mb-2 h-16 rounded-lg bg-black/[0.03]"}),(0,t.jsx)("div",{className:"mb-1 h-2 w-3/4 rounded-full bg-black/[0.07]"}
1),(0,t.jsx)("div",{className:"h-2 w-1/2 rounded-full bg-black/[0.04]"})]},e))}),(0,t.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"rounded-xl border border-black/[0.05] bg-white p-3",children:[(0,t.jsx)("div",{className:"mb-2 h-2 w-24 rounded-full bg-black/[0.07]"}),(0,t.jsx)("div",{className:"h-20 rounded-lg bg-black/[0.03]"})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-black/[0.05] bg-white p-3",children:[(0,t.jsx)("div",{className:"mb-2 h-2 w-20 rounded-full bg-black/[0.07]"}),(0,t.jsx)("div",{className:"h-20 rounded-lg bg-black/[0.03]"})]})]})]}),(0,t.jsx)(n.motion.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.3,duration:.4,ease:[.16,1,.3,1]},className:"absolute left-4",style:{bottom:"28%"},children:(0,t.jsx)("div",{ref:d,className:"flex h-10 w-10 items-center justify-center rounded-full bg-orange-500 shadow-lg shadow-orange-500/25 overflow-hidden",children:(0,t.jsx)(cI.Logo,{variant:"white",size:22,quality:"medium"})})}),(0,t.jsx)(s.AnimatePresence,{children:T&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:20,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.9},transition:{duration:.4,ease:[.16,1,.3,1]},className:"mockup-ui absolute left-4 w-[230px] rounded-2xl border border-black/[0.08] bg-white shadow-[0_8px_40px_rgba(0,0,0,0.12)] overflow-hidden flex flex-col",style:{bottom:"calc(28% + 48px)",height:"320px"},children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-black/[0.06] px-2.5 py-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{className:"flex h-5 w-5 items-center justify-center rounded-full hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiArrowLeftSLine,{size:11,className:"text-black/40"})}),(0,t.jsx)(cI.Logo,{variant:"black",size:18,quality:"medium"}),(0,t.jsx)("span",{className:"font-serif text-[9px] font-medium text-black/70",children:"Next Cap"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsx)("button",{className:"flex h-5 w-5 items-center justify-center rounded-full hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiMore2Line,{size:10,className:"text-black/35"})}),(0,t.jsx)("button",{className:"flex h-5 w-5 items-center justify-center rounded-full hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiCloseLine,{size:10,className:"text-black/35"})})]})]}),(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:D?(0,t.jsxs)(n.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.3},className:"flex flex-1 flex-col min-h-0",children:[(0,t.jsx)("div",{ref:m,className:"min-h-0 flex-1 overflow-y-auto px-2.5 pt-2 pb-2",style:{scrollbarWidth:"none"},children:(0,t.jsx)("div",{className:"flex flex-col gap-2",children:V.chatMessages.map((e,a)=>{if(!S.includes(a))return null;let r=O===a;return(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.4,ease:[.16,1,.3,1]},children:"agent"===e.from?(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"inline-block max-w-[88%] rounded-xl rounded-tl-sm bg-black/[0.05] px-2.5 py-1.5 overflow-hidden",children:r?(0,t.jsx)("div",{className:"flex items-center gap-[3px] py-0.5",children:[0,1,2].map(e=>(0,t.jsx)(n.motion.span,{className:"block h-[4px] w-[4px] rounded-full bg-orange-500",animate:{scale:[1,1.4,1]},transition:{duration:1.2,repeat:1/0,ease:"easeInOut",delay:.15*e}},e))}):(0,t.jsx)(cm,{text:e.text,className:"text-[8px] leading-[12px] text-black/80",tag:"p",splitType:"words",delay:40,duration:.5,ease:"power3.out",from:{opacity:0,y:5},to:{opacity:1,y:0},threshold:0,rootMargin:"0px",textAlign:"left"})}),!r&&(0,t.jsxs)("p",{className:"mt-0.5 pl-0.5 text-[6px] text-black/30",children:[i("brandName")," · ",i("aiAgent")," · ",i("justNow")]})]}):(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("div",{className:"inline-block max-w-[82%] rounded-xl rounded-tr-sm bg-black px-2.5 py-1.5 text-left text-[8px] leading-[12px] text-white",children:e.text})})},`chat-${v}-${a}`)})})}),(0,t.jsx)("div",{className:"shrink-0 px-2 pb-2",children:(0,t.jsxs)("div",{ref:u,className:"rounded-xl border bg-white px-2.5 pt-1.5 pb-1.5 transition-colors duration-200",style:{borderColor:P?"rgba(249,115,22,0.5)":"rgba(0,0,0,0.08)"},children:[(0,t.jsx)("div",{className:"min-h-[12px]",children:M?(0,t.jsxs)("p",{className:"text-[8px] leading-[12px] text-black/80",children:[M,(0,t.jsx)("span",{className:"ml-px inline-block h-[9px] w-px translate-y-[1px] bg-black/60",style:{opacity:+!!$}})]}):(0,t.jsx)("p",{className:"text-[8px] text-black/25",children:i("askQuestion")})}),(0,t.jsxs)("div",{className:"mt-1 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsx)("button",{className:"flex h-4 w-4 items-center justify-center rounded-full hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiAttachmentLine,{size:9,className:"text-black/30"})}),(0,t.jsx)("button",{className:"flex h-4 w-4 items-center justify-center rounded-full hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiEmotionLine,{size:9,className:"text-black/30"})})]}),(0,t.jsx)("button",{ref:p,className:"flex h-4 w-4 items-center justify-center rounded-full transition-colors",style:{backgroundColor:M?"rgb(249,115,22)":"rgba(0,0,0,0.06)"},children:(0,t.jsx)(ez.RiArrowUpLine,{size:9,className:M?"text-white":"text-black/40"})})]})]})})]},"chat-view"):(0,t.jsxs)(n.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"flex flex-1 flex-col items-center justify-center px-4 py-6",children:[(0,t.jsx)(cI.Logo,{variant:"black",size:28,quality:"medium"}),(0,t.jsx)("p",{className:"mt-2 font-serif text-[11px] font-medium text-black/70",children:"Next Cap"}),(0,t.jsx)("p",{className:"mt-1.5 text-center text-[7px] leading-[11px] text-black/40",children:e("assistantReady")}),(0,t.jsx)("button",{ref:x,className:"mt-4 rounded-full bg-black px-4 py-1.5 text-[8px] font-medium text-white transition-opacity hover:opacity-90",children:e("startConversation")})]},"start-screen")})]})})]})})]})]}),(0,t.jsx)("div",{ref:g,className:"pointer-events-none absolute left-0 top-0 z-30",style:{opacity:0},children:(0,t.jsx)("svg",{width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",children:(0,t.jsx)("path",{d:"M1 1L1 14.5L4.5 11L6.5 16.5L8.5 15.5L6.5 10L11 10L1 1Z",fill:"rgba(0,0,0,0.72)",stroke:"white",strokeWidth:"0.9"})})})]})}function c3(){let e=(0,eD.useTranslations)("liveChatMockup"),i=(0,a.useRef)(null),r=(0,l.useInView)(i,{once:!1,amount:.3}),[o,c]=f(),d=(0,a.useRef)(null),u=(0,a.useRef)(null),p=(0,a.useRef)(null),x=(0,a.useRef)(null),[m,h]=(0,a.useState)(0),[g,b]=(0,a.useState)(!1),[v,y]=(0,a.useState)([]),[j,w]=(0,a.useState)(!1),[N,k]=(0,a.useState)(""),[_,C]=(0,a.useState)(!1),[T,R]=(0,a.useState)(!0),[S,A]=(0,a.useState)(!1),M=[{name:e("customer1"),initials:"SM",msgCount:3,time:e("time1"),isTelegram:!1,preview:e("preview1")},{name:e("customer2"),initials:"AK",msgCount:1,time:e("time2"),isTelegram:!0,preview:e("preview2")},{name:e("customer3"),initials:"ML",msgCount:2,time:e("time3"),isTelegram:!1,preview:e("preview3")}],L=[{role:"system",text:e("handedOff")},{role:"user",text:e("msg0")},{role:"user",text:e("msg1")},{role:"agent",text:e("agentMsg0")},{role:"user",text:e("msg2")},{role:"agent",text:e("agentMsg1")}];return(0,a.useEffect)(()=>{let e=setInterval(()=>R(e=>!e),520);return()=>clearInterval(e)},[]),(0,a.useEffect)(()=>{if(!r)return;let e=!1,t=e=>new Promise(t=>setTimeout(t,e)),a=async t=>{let i=0;await new Promise(a=>{let r=setInterval(()=>{if(e){clearInterval(r),a();return}i++,k(t.slice(0,i)),i>=t.length&&(clearInterval(r),a())},38)})},n=async()=>{await c(o.current,{scale:.78},{duration:.09}),await c(o.current,{scale:1},{duration:.18,ease:cz})},s=async(e,t=.7)=>{let a=(e=>{if(!e||!i.current)return{x:200,y:200};let t=i.current.getBoundingClientRect(),a=e.getBoundingClientRect();return{x:a.left-t.left+a.width/2,y:a.top-t.top+a.height/2}})(e);await c(o.current,{x:a.x,y:a.y},{duration:t,ease:cz})};return(async()=>{b(!1),y([]),w(!1),k(""),C(!1),A(!1),!o.current||(await c(o.current,{opacity:0,scale:1,x:60,y:200},{duration:0}),await t(800),e||(await c(o.current,{opacity:1},{duration:.35}),e||(await t(400),e||(await s(d.current,.9),e||(await t(250),e||(await n(),e||(b(!0),await t(600),e||(y([0]),await t(600),e||(y([0,1]),await t(700),e||(y([0,1,2]),await t(900),e||(await s(u.current,.6),e||(await n(),e||(C(!0),await t(200),e||(await a(L[3].text),e||(await t(300),e||(await s(p.current,.4),e||(await n(),e||(k(""),C(!1),y([0,1,2,3]),await t(1e3),e||(w(!0),await t(1e3),e||(w(!1),y([0,1,2,3,4]),await t(900),e||(await s(u.current,.5),e||(await n(),e||(C(!0),await t(200),e||(await a(L[5].text),e||(await t(300),e||(await s(p.current,.4),e||(await n(),e||(k(""),C(!1),y([0,1,2,3,4,5]),await t(1e3),e||(await s(x.current,.7),e||(await t(250),e||(await n(),e||(A(!0),await t(2500),e||(await c(o.current,{opacity:0},{duration:.5,ease:cO}),e||(await t(800),e||h(e=>e+1)))))))))))))))))))))))))))))))))))})(),()=>{e=!0}},[r,m]),(0,t.jsxs)("div",{ref:i,className:"mockup-ui relative w-full overflow-hidden rounded-t-2xl rounded-b-none border border-b-0 border-black/[0.07] bg-white shadow-[0_-2px_16px_0_rgba(0,0,0,0.06)] min-h-[480px] sm:min-h-[540px] lg:min-h-[600px]",children:[(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 hidden w-9 flex-col items-center gap-2 border-r border-black/[0.05] bg-black/[0.015] py-3 sm:flex",children:[{Icon:ez.RiHome4Line,active:!1},{Icon:ez.RiBookOpenLine,active:!1},{Icon:ez.RiRobot2Line,active:!1},{Icon:ez.RiChat3Line,active:!0},{Icon:ez.RiBarChart2Line,active:!1}].map(({Icon:e,active:i},a)=>(0,t.jsx)("div",{className:`flex h-6 w-6 items-center justify-center rounded ${i?"bg-black/10":""}`,children:(0,t.jsx)(e,{size:13,className:i?"text-black/60":"text-black/25"})},a))}),(0,t.jsxs)("div",{className:"sm:ml-9 flex h-full min-h-[480px] sm:min-h-[540px] lg:min-h-[600px]",children:[(0,t.jsxs)("div",{className:"w-[35%] border-r border-black/[0.05] flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-black/[0.06] px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-[10px] font-semibold text-black/65",children:e("queue")}),(0,t.jsx)("span",{className:"flex h-[16px] min-w-[16px] items-center justify-center rounded-full bg-[#f97316] px-1 text-[8px] font-bold text-white",children:g?2:3})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-0.5 text-[8px] text-black/30",children:[(0,t.jsx)(ez.RiArrowDownSLine,{size:8}),(0,t.jsx)("span",{children:e("newest")}
1)]}),(0,t.jsx)(ez.RiWifiLine,{size:10,className:"text-emerald-500"})]})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-1.5 space-y-0.5",children:M.map((i,a)=>{if(0===a&&g)return null;let r=0!==a||!g;return(0,t.jsx)("div",{className:`rounded-xl px-2.5 py-2 transition-all duration-150 ${0===a&&!g?"bg-[#f97316]/[0.06] ring-1 ring-[#f97316]/20":"hover:bg-black/[0.02]"}`,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("div",{className:"relative shrink-0 pt-0.5",children:[(0,t.jsx)("div",{className:`flex h-8 w-8 items-center justify-center rounded-full ${i.isTelegram?"bg-sky-500/10":"bg-black/[0.05]"}`,children:(0,t.jsx)("span",{className:`text-[9px] font-semibold uppercase ${i.isTelegram?"text-sky-600":"text-black/35"}`,children:i.initials})}),i.msgCount>0&&(0,t.jsx)("span",{className:"absolute -end-1 -top-1 flex h-[14px] min-w-[14px] items-center justify-center rounded-full bg-[#f97316] px-0.5 text-[7px] font-bold text-white ring-2 ring-white",children:i.msgCount})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,t.jsx)("p",{className:"truncate text-[10px] font-semibold text-black/75",children:i.name}),(0,t.jsx)("span",{className:"shrink-0 text-[7px] tabular-nums text-black/25",children:i.time})]}),i.preview&&(0,t.jsx)("p",{className:"mt-0.5 line-clamp-1 text-[8px] leading-[12px] text-black/40",children:i.preview}),(0,t.jsxs)("div",{className:"mt-1.5 flex items-center gap-1 flex-wrap",children:[i.isTelegram&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-0.5 rounded-full bg-sky-500/10 px-1.5 py-[2px] text-[7px] font-medium text-sky-600",children:[(0,t.jsx)(ez.RiTelegramLine,{size:8}),"Telegram"]}),r&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-0.5 rounded-full bg-amber-500/10 px-1.5 py-[2px] text-[7px] font-medium text-amber-600",children:[(0,t.jsx)(ez.RiTimeLine,{size:8}),e("waiting")]}),0===a&&r&&(0,t.jsx)("span",{ref:d,"aria-hidden":"true",className:"ms-auto inline-flex h-5 items-center rounded-full border border-[#f97316]/20 px-2 text-[7px] font-semibold text-[#f97316]",children:e("takeOver")})]})]})]})},a)})})]}),(0,t.jsx)("div",{className:"flex-1 flex flex-col",children:(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:g?(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.25,ease:cO},className:"flex flex-1 flex-col min-h-0 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-black/[0.06] px-4 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-black/[0.05]",children:(0,t.jsx)("span",{className:"text-[9px] font-semibold uppercase text-black/35",children:M[0].initials})}),(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("p",{className:"text-[10px] font-medium text-black/75",children:M[0].name}),(0,t.jsxs)("span",{className:`inline-flex items-center gap-0.5 rounded-full px-1.5 py-[2px] text-[7px] font-medium ${S?"bg-emerald-500/10 text-emerald-600":"bg-amber-500/10 text-amber-600"}`,children:[(0,t.jsx)("span",{className:`h-1 w-1 rounded-full ${S?"bg-emerald-500":"bg-amber-500"}`}),S?e("resolved"):e("handedOffBadge")]})]})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[!S&&(0,t.jsxs)("span",{"aria-hidden":"true",className:"flex items-center gap-1 rounded-full border border-black/[0.06] px-2 py-1 text-[8px] font-medium text-black/50",children:[(0,t.jsx)(ez.RiTicket2Line,{size:9}),e("createTicket")]}),(0,t.jsxs)("span",{ref:x,"aria-hidden":"true",className:`flex items-center gap-1 rounded-full border px-2 py-1 text-[8px] font-medium ${S?"border-emerald-500/30 bg-emerald-500/5 text-emerald-600":"border-black/[0.06] text-black/50"}`,children:[(0,t.jsx)(ez.RiCheckLine,{size:9}),e("resolve")]})]})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 space-y-2 overflow-y-auto px-4 py-3",children:[L.map((i,a)=>
1{if(!v.includes(a))return null;if("system"===i.role)return(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.3,ease:cO},className:"flex justify-center",children:(0,t.jsx)("span",{className:"rounded-full bg-black/[0.04] px-2.5 py-0.5 text-[7px] text-black/35",children:i.text})},a);let r="agent"===i.role;return(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.3,ease:cO},className:`flex ${r?"justify-end":"justify-start"}`,children:(0,t.jsxs)("div",{className:`flex max-w-[75%] items-end gap-1.5 ${r?"flex-row-reverse":"flex-row"}`,children:[(0,t.jsx)("div",{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-full ${r?"bg-[#f97316] text-white":"bg-black/[0.05]"}`,children:(0,t.jsx)(ez.RiUserLine,{size:9,className:r?"":"text-black/35"})}),(0,t.jsxs)("div",{className:`rounded-2xl px-3 py-2 ${r?"bg-[#f97316] text-white":"border border-black/[0.06] bg-black/[0.015] text-black/80"}`,children:[(0,t.jsx)("p",{className:"mb-0.5 text-[7px] font-medium tracking-wider opacity-50",children:r?e("you"):M[0].name}),(0,t.jsx)("p",{className:"text-[9px] leading-[14px]",children:i.text})]})]})},a)}),(0,t.jsx)(s.AnimatePresence,{children:j&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.25},className:"flex justify-start",children:(0,t.jsxs)("div",{className:"flex items-end gap-1.5",children:[(0,t.jsx)("div",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-black/[0.05]",children:(0,t.jsx)(ez.RiUserLine,{size:9,className:"text-black/35"})}),(0,t.jsx)("div",{className:"rounded-2xl border border-black/[0.06] bg-black/[0.015] px-3 py-2 flex items-center gap-1",children:[0,1,2].map(e=>(0,t.jsx)(n.motion.span,{className:"h-1 w-1 rounded-full bg-black/25",animate:{opacity:[.3,1,.3]},transition:{duration:1,repeat:1/0,delay:.2*e}},e))})]})})})]}),(0,t.jsx)("div",{className:"shrink-0 border-t border-black/[0.06] px-3 py-2",children:(0,t.jsxs)("div",{className:"flex items-end gap-1.5",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"mb-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-black/25",children:(0,t.jsx)(ez.RiFlashlightLine,{size:11})}),(0,t.jsx)("span",{"aria-hidden":"true",className:"mb-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-black/25",children:(0,t.jsx)(ez.RiAttachmentLine,{size:11})}),(0,t.jsx)("div",{ref:u,className:`flex-1 min-h-[32px] rounded-2xl border px-3 py-1.5 text-[9px] transition-all duration-200 ${_?"border-black/15":"border-black/[0.06]"}`,children:(0,t.jsxs)("span",{className:N?"text-black/70":"text-black/25",children:[N||e("typeMessage"),_&&(0,t.jsx)("span",{className:`inline-block w-[1px] h-[10px] bg-black/40 ml-px align-middle ${T?"opacity-100":"opacity-0"}`})]})}),(0,t.jsx)("span",{ref:p,"aria-hidden":"true",className:"mb-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#f97316] text-white",children:(0,t.jsx)(ez.RiSendPlaneLine,{size:11})})]})})]},"chat-active"):(0,t.jsxs)(n.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"flex flex-1 flex-col items-center justify-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-black/[0.03]",children:(0,t.jsx)(ez.RiChat3Line,{size:18,className:"text-black/15"})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-[10px] font-medium text-black/35",children:e("selectConversation")}),(0,t.jsx)("p",{className:"mt-0.5 text-[8px] text-black/20",children:e("selectToStart")})]})]},"empty")})})]}),(0,t.jsx)("div",{ref:o,className:"pointer-events-none absolute left-0 top-0 z-40",style:{opacity:0},children:(0,t.jsx)("svg",{width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",children:(0,t.jsx)("path",{d:"M1 1L1 14.5L4.5 11L6.5 16.5L8.5 15.5L6.5 10L11 10L1 1Z",fill:"rgba(0,0,0,0.72)",stroke:"white",strokeWidth:"0.9"})})})]})}function c6(){let e=(0,eD.useTranslations)("ticketMockup"),i=(0,eD.useTranslations)("demo"),r=(0,eB.useLocale)(),o="fa"===r||"ar"===r,c=o?"rtl":"ltr",d=(0,a.useRef)(null),u=(0,l.useInView)(d,{once:!1,amount:.3}),[p,x]=f(),m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,a.useRef)(null),y=(0,a.useRef)(null),j=(0,a.useRef)(null),w=(0,a.useRef)(null),N=(0,a.useRef)(null),k=(0,a.useRef)(null),_=(0,a.useRef)([]),C=(0,a.useRef)(null),[T,R]=(0,a.useState)(0),[S,A]=(0,a.useState)(!1),[M,L]=(0,a.useState)(!1),[P,E]=(0,a.useState)(!1),[$,I]=(0,a.useState)([]),[O,z]=(0,a.useState)(null),[D,B]=(0,a.useState)(!1),[F,W]=(0,a.useState)(!1),[H,q]=(0,a.useState)(""),[V,Y]=(0,a.useState)(!1),[U,X]=(0,a.useState)(""),[G,Q]=(0,a.useState)(!1),[Z,K]=(0,a.useState)(!1),[J,ee]=(0,a.useState)("messages"),[et,ei]=(0,a.useState)(!1),[ea,er]=(0,a.useState)(!1),[en,es]=(0,a.useState)(!0),[el,eo]=(0,a.useState)(""),[ec,ed]=(0,a.useState)(!1),[eu,ep]=(0,a.useState)(!1),[ex,ef]=(0,a.useState)(!1),[em,eh]=(0,a.useState)(!1),[eg,eb]=(0,a.useState)(null),[ev,ey]=(0,a.useState)(null),ej=[{name:e("deptBilling"),color:"bg-blue-500"},{name:e("deptTechnical"),color:"bg-green-500"},{name:e("deptSales"),color:"bg-purple-500"},{name:e("deptShipping"),color:"bg-amber-500"}];(0,a.useEffect)(()=>{let e=setInterval(()=>es(e=>!e),520);return()=>clearInterval(e)},[]);let ew=e=>{if(!e||!d.current)return{x:200,y:200};let t=d.current.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-t.left+i.width/2,y:i.top-t.top+i.height/2}},eN=()=>{requestAnimationFrame(()=>{let e=j.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})})},ek=e=>new Promise(t=>{let i=()=>{e.current?t(ew(e.current)):setTimeout(i,50)};i()});(0,a.useEffect)(()=>{if(!u)return;let t=!1,i=e=>new Promise(t=>setTimeout(t,e)),a=async(e,i,a=38)=>{let r=0;await new Promise(n=>{let s=setInterval(()=>{if(t){clearInterval(s),n();return}r++,e(i.slice(0,r)),r>=i.length&&(clearInterval(s),n())},a)})},r=async()=>{await x(p.current,{scale:.78},{duration:.09}),await x(p.current,{scale:1},{duration:.18,ease:cz})},n=async(e,t=.6)=>{await x(p.current,{x:e.x,y:e.y},{duration:t,ease:cz})};return(async()=>{if(A(!1),L(!1),E(!1),I([]),z(null),B(!1),W(!1),q(""),Y(!1),X(""),Q(!1),K(!1),ee("messages"),ei(!1),er(!1),eo(""),ed(!1),ep(!1),ef(!1),eh(!1),eb(null),ey(null),!p.current||(await x(p.current,{opacity:0,scale:1,x:100,y:300},{duration:0}),await i(800),t)||(await x(p.current,{opacity:1},{duration:.35}),t)||(await i(300),t))return;let s=await ek(m);if(t||(await n(s,.8),t)||(await r(),t)||(A(!0),E(!0),await i(400),t)||(L(!0),await i(1e3),t)||(z(0),I([0]),eN(),await i(1e3),t))return;z(null),eN();let l=e("msg0").split(" ").length;if(await i(50*l+600),t)return;let o=await ek(w);if(t||(await n(o,.6),t)||(await r(),t)||(ed(!0),await i(200),t)||(await a(eo,e("msg1")),t)||(await i(300),t))return;let c=await ek(N);if(t||(await n(c,.4),t)||(await r(),t)||(eo(""),ed(!1),I(e=>[...e,1]),eN(),await i(600),t)||(z(2),I(e=>[...e,2]),eN(),await i(1200),t))return;z(null),eN();let d=e("msg2").split(" ").length;if(await i(50*d+500),t||(B(!0),eN(),await i(800),t))return;let u=await ek(h);if(t||(await n(u),t)||(await i(200),t)||(await r(),t)||(B(!1),W(!0),eN(),await i(700),t))return;let f=await ek(g);if(t||(await n(f,.5),t)||(await r(),t)||(Y(!0),await i(200),t)||(await a(q,e("formSubject")),t)||(eN(),await i(4
100),t))return;Y(!1);let j=await ek(k);if(t||(await n(j,.5),t)||(await r(),t)||(eh(!0),eN(),await i(500),t))return;let T=_.current[1];if(T&&(await n(ew(T),.35),t||(ey(1),await i(350),t)))return;let S=_.current[3];if(S&&(await n(ew(S),.3),t||(ey(3),await i(300),t)))return;if(await r(),t||(eb(3),eh(!1),ey(null),eN(),await i(400),t))return;let M=await ek(b);if(t||(await n(M,.5),t)||(await r(),t)||(Q(!0),await i(200),t)||(await a(X,"[email protected]",32),t)||(eN(),await i(400),t))return;Q(!1);let P=await ek(v);if(t||(await n(P,.5),t)||(await i(250),t)||(await r(),t)||(K(!0),eN(),await i(1200),t))return;let $=await ek(y);if(t||(await n($,.5),t)||(await i(200),t)||(await r(),t)||(ee("tickets"),ei(!0),await i(1200),t)||(await x(p.current,{opacity:0},{duration:.35,ease:cO}),t)||(L(!1),await i(800),t)||(E(!1),await i(400),t)||(er(!0),await i(1500),t)||(A(!1),await i(600),t)||(await x(p.current,{opacity:1},{duration:.35}),t))return;let O=await ek(C);t||(await n(O,.7),t||(await i(300),t||(await r(),t||(ep(!0),await i(3500),t||(await x(p.current,{opacity:0},{duration:.35,ease:cO}),t||(ef(!0),await i(1200),t||R(e=>e+1)))))))})(),()=>{t=!0}},[u,T]);let e_=[{from:"agent",text:e("msg0")},{from:"user",text:e("msg1")},{from:"agent",text:e("msg2")}];return(0,t.jsxs)("div",{ref:d,className:"mockup-ui relative flex w-full overflow-hidden rounded-t-2xl rounded-b-none border border-b-0 border-black/[0.07] bg-white shadow-[0_-2px_16px_0_rgba(0,0,0,0.06)] min-h-[480px] sm:min-h-[540px] lg:min-h-[600px]",children:[(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 hidden w-9 flex-col items-center gap-2 border-r border-black/[0.05] bg-black/[0.015] py-3 sm:flex z-[1]",children:[{Icon:ez.RiHome4Line,active:!1},{Icon:ez.RiBookOpenLine,active:!1},{Icon:ez.RiRobot2Line,active:!1},{Icon:ez.RiChat3Line,active:!1},{Icon:ez.RiTicket2Line,active:!0}].map(({Icon:e,active:i},a)=>(0,t.jsx)("div",{className:`flex h-6 w-6 items-center justify-center rounded ${i?"bg-black/10":""}`,children:(0,t.jsx)(e,{size:13,className:i?"text-black/60":"text-black/25"})},a))}),(0,t.jsxs)("div",{className:"sm:ml-9 flex flex-1 flex-col relative",children:[(0,t.jsxs)(n.motion.div,{animate:{opacity:P?.15:1,y:8*!!P,scale:P?.98:1},transition:{duration:.8,ease:cO},className:"flex flex-1 flex-col",children:[(0,t.jsx)("div",{className:"px-4 pt-2.5 pb-2 border-b border-black/[0.06]",children:(0,t.jsxs)("div",{className:"flex items-end justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{dir:c,className:"text-[5px] font-medium uppercase tracking-[0.15em] text-black/30",children:e("supportTickets")}),(0,t.jsx)("h2",{dir:c,className:"text-[12px] font-semibold tracking-tight text-black/80",children:e("ticketsTitle")})]}),(0,t.jsxs)("button",{className:"rounded-full bg-black px-2 py-0.5 text-[7px] font-medium text-white flex items-center gap-0.5 whitespace-nowrap",children:[(0,t.jsx)(ez.RiAddLine,{size:7}),(0,t.jsx)("span",{dir:c,children:e("newTicket")})]})]})}),(0,t.jsx)("div",{className:"grid grid-cols-4 gap-1.5 px-3 py-2 border-b border-black/[0.06]",children:[{label:e("statNew"),count:ea?"5":"4",dot:"bg-blue-500"},{label:e("statOpen"),count:"12",dot:"bg-blue-400"},{label:e("statInProgress"),count:"8",dot:"bg-amber-500"},{label:e("statResolved"),count:"156",dot:"bg-emerald-500"}].map((i,a)=>(0,t.jsxs)("div",{className:"rounded-lg border border-black/[0.06] px-1.5 py-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 mb-0.5",children:[(0,t.jsx)("span",{className:`h-[3px] w-[3px] rounded-full ${i.dot}`}),(0,t.jsx)("span",{dir:c,className:"text-[5px] font-medium uppercase tracking-[0.08em] text-black/30",children:i.label})]}),(0,t.jsx)("p",{className:"text-[10px] font-semibold tracking-tight text-black/70",children:i.label===e("statNew")?(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsx)(n.motion.span,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.3,ease:cO},children:i.count},i.count)}):i.count})]},a))}),(0,t.jsx)("div",{className:"flex items-center gap-1 px-3 py-1.5 border-b border-black/[0.06]",children:[{Icon:ez.RiTicket2Line,label:e("allTickets"),active:!0},{Icon:ez.RiUser3Line,label:e("tabMyTickets"),active:!1},{Icon:ez.RiInboxLine,label:e("tabUnassigned"),active:!1}].map((e,i)=>(0,t.jsxs)("div",{className:`flex items-center gap-[3px] rounded-full px-1.5 py-[3px] text-[6px] font-medium ${e.active?"bg-black/90 text-white":"text-black/30"}`,children:[(0,t.jsx)(e.Icon,{size:7}),(0,t.jsx)("span",{dir:c,children:e.label})]},i))}),(0,t.jsx)("div",{className:"flex-1 px-3 py-2 overflow-hidden",children:(0,t.jsxs)("div",{className:"rounded-xl border border-black/[0.06] overflow-hidden h-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center bg-black/[0.015] border-b border-black/[0.06] px-2 py-1",children:[(0,t.jsx)("span",{className:"w-[13%] text-[5px] font-medium uppercase tracking-[0.1em] text-black/30",children:"#"}),(0,t.jsx)("span",{dir:c,className:"flex-1 text-[5px] font-medium uppercase tracking-[0.1em] text-black/30",children:e("subject")}),(0,t.jsx)("span",{dir:c,className:"w-[18%] text-[5px] font-medium uppercase tracking-[0.1em] text-black/30",children:e("statusCol")}),(0,t.jsx)("span",{dir:c,className:"w-[17%] text-[5px] font-medium uppercase tracking-[0.1em] text-black/30",children:e("priorityCol")})]}),(0,t.jsx)(s.AnimatePresence,{children:ea&&(0,t.jsxs)(n.motion.div,{ref:C,initial:{opacity:0,height:0}
1,animate:{opacity:1,height:"auto"},transition:{duration:.5,ease:cO},className:`flex items-center py-1.5 px-2 border-b border-black/[0.06] transition-colors duration-200 ${eu?"bg-black/[0.05]":"bg-orange-50/60"}`,children:[(0,t.jsx)("span",{className:"w-[13%] text-[6px] font-mono text-orange-500 font-semibold",children:"NC-89"}),(0,t.jsx)("span",{dir:c,className:"flex-1 text-[6px] font-medium text-black/70 truncate pr-1",children:e("formSubject")}),(0,t.jsx)("span",{className:"w-[18%]",children:(0,t.jsx)("span",{dir:c,className:"rounded-full bg-blue-100 px-1 py-[1px] text-[5px] font-medium text-blue-600",children:e("statusNew")})}),(0,t.jsx)("span",{className:"w-[17%]",children:(0,t.jsx)("span",{dir:c,className:"rounded-full bg-amber-100 px-1 py-[1px] text-[5px] font-medium text-amber-600",children:e("priorityHigh")})})]})}),[{id:"NC-88",subject:e("existingTicket1"),status:e("statusOpen"),sc:"bg-green-100 text-green-600",priority:e("priorityNormal"),pc:"bg-blue-100 text-blue-600"},{id:"NC-87",subject:e("existingTicket2"),status:e("statusInProgress"),sc:"bg-amber-100 text-amber-600",priority:e("priorityHigh"),pc:"bg-amber-100 text-amber-600"},{id:"NC-86",subject:e("existingTicket3"),status:e("statusOpen"),sc:"bg-green-100 text-green-600",priority:e("priorityLow"),pc:"bg-black/[0.06] text-black/40"},{id:"NC-85",subject:e("existingTicket4"),status:e("statusWaiting"),sc:"bg-purple-100 text-purple-600",priority:e("priorityNormal"),pc:"bg-blue-100 text-blue-600"},{id:"NC-84",subject:e("existingTicket5"),status:e("statusResolved"),sc:"bg-emerald-100 text-emerald-600",priority:e("priorityUrgent"),pc:"bg-red-100 text-red-600"}].map((e,i)=>(0,t.jsxs)("div",{className:"flex items-center py-1.5 px-2 border-b border-black/[0.04] hover:bg-black/[0.02]",children:[(0,t.jsx)("span",{className:"w-[13%] text-[6px] font-mono text-black/30",children:e.id}),(0,t.jsx)("span",{dir:c,className:"flex-1 text-[6px] text-black/50 truncate pr-1",children:e.subject}),(0,t.jsx)("span",{className:"w-[18%]",children:(0,t.jsx)("span",{dir:c,className:`rounded-full px-1 py-[1px] text-[5px] font-medium ${e.sc}`,children:e.status})}),(0,t.jsx)("span",{className:"w-[17%]",children:(0,t.jsx)("span",{dir:c,className:`rounded-full px-1 py-[1px] text-[5px] font-medium ${e.pc}`,children:e.priority})})]},i))]})})]}),(0,t.jsx)(s.AnimatePresence,{children:eu&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:30},transition:{duration:.4,ease:cO},className:"absolute inset-0 bg-white flex flex-col z-[2]",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b border-black/[0.06]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(ez.RiArrowLeftSLine,{size:10,className:"text-black/30"}),(0,t.jsx)("span",{className:"text-[7px] font-mono text-black/40",children:"NC-89"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{dir:c,className:"rounded-full bg-blue-100 px-1.5 py-[2px] text-[5px] font-medium text-blue-600",children:e("statusNew")}),(0,t.jsx)("span",{dir:c,className:"rounded-full bg-amber-100 px-1.5 py-[2px] text-[5px] font-medium text-amber-600",children:e("priorityHigh")})]})]}),(0,t.jsxs)("div",{className:"px-4 py-3 border-b border-black/[0.06]",children:[(0,t.jsx)("p",{dir:c,className:"text-[9px] font-semibold text-black/80 mb-2",children:e("formSubject")}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-x-3 gap-y-1.5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{dir:c,className:"text-[5px] font-medium uppercase tracking-[0.1em] text-black/25 mb-0.5",children:e("department")}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"h-[4px] w-[4px] rounded-full bg-amber-500"}),(0,t.jsx)("span",{dir:c,className:"text-[6px] text-black/60",children:e("deptShipping")})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{dir:c,className:"text-[5px] font-medium uppercase tracking-[0.1em] text-black/25 mb-0.5",children:e("email")}),(0,t.jsx)("span",{className:"text-[6px] text-black/60",children:"[email protected]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{dir:c,className:"text-[5px] font-medium uppercase tracking-[0.1em] text-black/25 mb-0.5",children:e("statusCol")}),(0,t.jsx)("span",{dir:c,className:"text-[6px] text-black/60",children:e("statusNew")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{dir:c,className:"text-[5px] font-medium uppercase tracking-[0.1em] text-black/25 mb-0.5",children:e("priorityCol")}),(0,t.jsx)("span",{dir:c,className:"text-[6px] text-black/60",children:e("priorityHigh")})]})]})]}),(0,t.jsxs)("div",{className:"px-4 py-2.5 flex-1",children:[(0,t.jsx)("p",{dir:c,className:"text-[6px] font-semibold uppercase tracking-[0.1em] text-black/30 mb-2",children:e("detailActivity")}),(0,t.jsx)("div",{className:"space-y-2.5",children:[{dot:"bg-blue-400",text:e("activityCreated"),time:e("justNow")},{dot:"bg-green-400",text:e("activityAssigned"),time:e("justNow")},{dot:"bg-orange-400",text:e("activitySla"),time:e("activitySlaStarted")}].map((e,i)=>(0,t.jsxs)(n.motion.div,{initial:{opacity:0,x:-8}
1,animate:{opacity:1,x:0},transition:{duration:.35,ease:cO,delay:.15+.15*i},className:"flex items-start gap-1.5",children:[(0,t.jsx)("span",{className:`mt-[2px] h-[5px] w-[5px] rounded-full ${e.dot} shrink-0`}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{dir:c,className:"text-[6px] text-black/60",children:e.text}),(0,t.jsx)("p",{dir:c,className:"text-[5px] text-black/25",children:e.time})]})]},i))})]}),(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsxs)("div",{className:"rounded-xl border border-black/[0.08] px-2.5 py-1.5 flex items-center justify-between",children:[(0,t.jsx)("p",{dir:c,className:"text-[7px] text-black/20",children:e("replyPlaceholder")}),(0,t.jsx)(ez.RiSendPlaneLine,{size:9,className:"text-black/15"})]})})]})}),(0,t.jsx)(n.motion.div,{animate:{opacity:+!!ex},transition:{duration:1,ease:cO},className:"absolute inset-0 bg-white z-[8] pointer-events-none"}),(0,t.jsx)("div",{className:"absolute right-4 z-10",style:{bottom:"28%"},children:(0,t.jsx)("div",{ref:m,className:"flex h-9 w-9 items-center justify-center rounded-full bg-orange-500 shadow-lg shadow-orange-500/25 overflow-hidden",children:(0,t.jsx)(cI.Logo,{variant:"white",size:20,quality:"medium"})})}),(0,t.jsx)(s.AnimatePresence,{children:S&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:20,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.9},transition:{duration:.4,ease:cO},className:"mockup-ui absolute right-4 w-[240px] rounded-2xl border border-black/[0.08] bg-white shadow-[0_8px_40px_rgba(0,0,0,0.15)] overflow-hidden flex flex-col z-20",style:{bottom:"calc(28% + 44px)",height:"340px"},children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-black/[0.06] px-2.5 py-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(cI.Logo,{variant:"black",size:16,quality:"medium"}),(0,t.jsx)("span",{className:"font-serif text-[9px] font-medium text-black/70",children:"Next Cap"})]}),(0,t.jsx)("button",{className:"flex h-5 w-5 items-center justify-center rounded-full hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiCloseLine,{size:10,className:"text-black/35"})})]}),(0,t.jsx)("div",{className:"flex-1 flex flex-col min-h-0",children:(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:"messages"===J?(0,t.jsxs)(n.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0,x:-10},transition:{duration:.25},className:"flex flex-1 flex-col min-h-0",children:[(0,t.jsx)("div",{ref:j,className:"min-h-0 flex-1 overflow-y-auto px-2.5 pt-2 pb-2",style:{scrollbarWidth:"none"},children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[e_.map((e,i)=>{if(!$.includes(i))return null;let a=O===i;return(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.4,ease:cO},children:"agent"===e.from?(0,t.jsx)("div",{className:"text-left",children:(0,t.jsx)("div",{dir:c,className:"inline-block max-w-[88%] rounded-xl rounded-tl-sm bg-black/[0.05] px-2.5 py-1.5 overflow-hidden",children:a?(0,t.jsx)("div",{className:"flex items-center gap-[3px] py-0.5",children:[0,1,2].map(e=>(0,t.jsx)(n.motion.span,{className:"block h-[4px] w-[4px] rounded-full bg-orange-500",animate:{scale:[1,1.4,1]},transition:{duration:1.2,repeat:1/0,ease:"easeInOut",delay:.15*e}},e))}):(0,t.jsx)(cm,{text:e.text,className:"text-[8px] leading-[12px] text-black/80",tag:"p",splitType:"words",delay:40,duration:.5,ease:"power3.out",from:{opacity:0,y:5},to:{opacity:1,y:0},threshold:0,rootMargin:"0px",textAlign:o?"right":"left"})})}):(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("div",{dir:c,className:"inline-block max-w-[82%] rounded-xl rounded-tr-sm bg-black px-2.5 py-1.5 text-[8px] leading-[12px] text-white text-left",children:e.text})})},`chat-${T}-${i}`)}),(0,t.jsx)(s.AnimatePresence,{children:D&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.3,ease:cO},className:"flex gap-1.5",children:[(0,t.jsx)("button",{ref:h,dir:c,className:"rounded-full bg-orange-500 px-3 py-1 text-[7px] font-semibold text-white",children:e("openTicket")}),(0,t.jsx)("button",{dir:c,className:"rounded-full border border-black/[0.08] px-3 py-1 text-[7px] text-black/40",children:e("noThanks")})]})}),(0,t.jsx)(s.AnimatePresence,{children:(F||Z)&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0,borderColor:Z?"rgb(167,243,208)":"rgba(0,0,0,0.08)",backgroundColor:Z?"rgba(236,253,245,0.5)":"rgb(255,255,255)"},exit:{opacity:0,scale:.95},transition:{duration:.4,ease:cO},className:"rounded-xl border shadow-sm relative",children:[(0,t.jsxs)(n.motion.div,{animate:{opacity:+!Z},transition:{duration:.35,ease:cO},className:"p-2.5",children:[(0,t.jsx)("p",{dir:c,className:"text-[8px] font-semibold text-black/70 mb-2",children:e("createTicket")}),(0,t.jsxs)("div",{className:"mb-1.5",children:[(0,t.jsx)("label",{dir:c,className:"text-[6px] font-semibold uppercase tracking-wider text-black/35 mb-0.5 block",children:e("subject")}),(0,t.jsx)("div",{ref:g,dir:c,className:"rounded-full border px-2 py-1 min-h-[16px] flex items-center transition-colors duration-200",style:{borderColor:V?"rgba(249,115,22,0.5)":"rgba(0,0,0,0.08)"},children:H?(0,t.jsxs)("p",{className:"text-[7px] text-black/70",children:[H,V&&(0,t.jsx)("span",{className:`${o?"mr-px":"ml-px"} inline-block h-[8px] w-px translate-y-[1px] bg-black/60`,style:{opacity:+!!en}})]}):(0,t.jsx)("p",{className:"text-[7px] text-black/20",children:e("subjectPlaceholder")})})]}),(0,t.jsxs)("div",{className:"mb-1.5 relative",children:[(0,t.jsx)("label",{dir:c,className:"text-[6px] font-semibold uppercase tracking-wider text-black/35 mb-0.5 block",children:e("department")}),(0,t.jsxs)("div",{ref:k,className:"rounded-full border px-2 py-1 flex items-center justify-between transition-colors duration-200 cursor-pointer",style:{borderColor:em?"rgba(249,115,22,0.5)":"rgba(0,0,0,0.08)"},children:[(0,t.jsx)("div",{className:"flex items-center gap-1",children:null!==eg?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:`h-[5px] w-[5px] rounded-full ${ej[eg].color}`}),(0,t.jsx)("span",{dir:c,className:"text-[7px] text-black/50",children:ej[eg].name})]}):(0,t.jsx)("span",{dir:c,className:"text-[7px] text-black/20",children:e("selectDepartment")})}),(0,t.jsx)(n.motion.div,{animate:{rotate:180*!!em},transition:{duration:.2},children:(0,t.jsx)(ez.RiArrowDownSLine,{size:7,className:"text-black/25"})})]}),(0,t.jsx)(s.AnimatePresence,{children:em&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:-4}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2,ease:cO},className:"absolute left-0 right-0 top-full mt-0.5 z-20 rounded-lg border border-black/[0.08] bg-white shadow-lg overflow-hidden",children:ej.map((e,i)=>(0,t.jsxs)("div",{ref:e=>{_.current[i]=e},className:`flex items-center gap-1.5 px-2 py-[5px] transition-colors duration-150 ${ev===i?"bg-orange-50":""}`,children:[(0,t.jsx)("span",{className:`h-[5px] w-[5px] shrink-0 rounded-full ${e.color}`}),(0,t.jsx)("span",{dir:c,className:`text-[7px] ${ev===i?"text-black/70 font-medium":"text-black/50"}`,children:e.name})]},i))})})]}),(0,t.jsxs)("div",{className:"mb-2",children:[(0,t.jsx)("label",{dir:c,className:"text-[6px] font-semibold uppercase tracking-wider text-black/35 mb-0.5 block",children:e("email")}),(0,t.jsx)("div",{ref:b,className:"rounded-full border px-2 py-1 min-h-[16px] flex items-center transition-colors duration-200",style:{borderColor:G?"rgba(249,115,22,0.5)":"rgba(0,0,0,0.08)"},children:U?(0,t.jsxs)("p",{className:"text-[7px] text-black/70",children:[U,G&&(0,t.jsx)("span",{className:`${o?"mr-px":"ml-px"} inline-block h-[8px] w-px translate-y-[1px] bg-black/60`,style:{opacity:+!!en}})]}):(0,t.jsx)("p",{className:"text-[7px] text-black/20",children:"[email protected]"})})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,t.jsx)("button",{dir:c,className:"rounded-full border border-black/[0.08] px-2 py-0.5 text-[7px] text-black/35",children:e("cancel")}),(0,t.jsx)("button",{ref:v,dir:c,className:"rounded-full bg-orange-500 px-2.5 py-0.5 text-[7px] font-semibold text-white",children:e("submitTicket")})]})]}),(0,t.jsxs)(n.motion.div,{initial:!1,animate:{opacity:+!!Z},transition:{duration:.4,ease:cO},className:"absolute inset-0 flex flex-col items-center justify-center p-3",style:{pointerEvents:Z?"auto":"none"},children:[(0,t.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-emerald-100 mb-1.5",children:(0,t.jsx)(ez.RiCheckLine,{size:12,className:"text-emerald-600"})}),(0,t.jsx)("p",{dir:c,className:"text-[9px] font-semibold text-black/80",children:e("ticketCreated")}),(0,t.jsx)("p",{className:"text-[7px] font-mono text-black/40 mt-0.5",children:"NC-0089"}),(0,t.jsx)("p",{dir:c,className:"text-[7px] text-black/40 mt-1",children:e("confirmMessage")})]})]})})]})}),(0,t.jsx)("div",{className:"shrink-0 px-2 pb-2",children:(0,t.jsxs)("div",{ref:w,className:"rounded-xl border bg-white px-2.5 pt-1.5 pb-1.5 transition-colors duration-200",style:{borderColor:ec?"rgba(249,115,22,0.5)":"rgba(0,0,0,0.08)"},children:[(0,t.jsx)("div",{dir:c,className:"min-h-[12px]",children:el?(0,t.jsxs)("p",{className:"text-[8px] leading-[12px] text-black/80",children:[el,(0,t.jsx)("span",{className:`${o?"mr-px":"ml-px"} inline-block h-[9px] w-px translate-y-[1px] bg-black/60`,style:{opacity:+!!en}})]}):(0,t.jsx)("p",{className:"text-[8px] text-black/25",children:i("askQuestion")})}),(0,t.jsxs)("div",{className:"mt-1 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsx)("button",{className:"flex h-4 w-4 items-center justify-center rounded-full hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiAttachmentLine,{size:9,className:"text-black/30"})}),(0,t.jsx)("button",{className:"flex h-4 w-4 items-center justify-center rounded-full hover:bg-black/[0.04]",children:(0,t.jsx)(ez.RiEmotionLine,{size:9,className:"text-black/30"})})]}),(0,t.jsx)("button",{ref:N,className:"flex h-4 w-4 items-center justify-center rounded-full transition-colors",style:{backgroundColor:el?"rgb(249,115,22)":"rgba(0,0,0,0.06)"},children:(0,t.jsx)(ez.RiArrowUpLine,{size:9,className:el?"text-white":"text-black/40"})})]})]})})]},"messages-tab"):(0,t.jsx)(n.motion.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0},transition:{duration:.3,ease:cO},className:"flex-1 flex flex-col min-h-0",children:(0,t.jsx)("div",{className:"px-2.5 pt-3 pb-2 flex-1 overflow-y-auto",style:{scrollbarWidth:"none"},children:et&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.4,ease:cO},children:[(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-xl border border-black/[0.06] p-2.5 mb-2 bg-orange-50/30",children:[(0,t.jsxs)("div",{className:"relative flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-black/[0.05]",children:[(0,t.jsx)(ez.RiTicket2Line,{size:12,className:"text-black/40"}),(0,t.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 h-[7px] w-[7px] rounded-full bg-blue-500 border border-white"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{dir:c,className:"text-[8px] font-semibold text-black/70 truncate",children:e("formSubject")}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mt-1",children:[(0,t.jsx)("span",{dir:c,className:"rounded-full bg-blue-100 px-1.5 py-0.5 text-[6px] font-medium text-blue-600",children:e("statusNew")}),(0,t.jsx)("span",{className:"text-[6px] font-mono text-black/30",children:"NC-0089"}),(0,t.jsx)("span",{dir:c,className:"text-[6px] text-black/25",children:e("justNow")})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-6 opacity-40",children:[(0,t.jsx)(ez.RiTicket2Line,{size:20,className:"text-black/15 mb-1.5"}),(0,t.jsx)("p",{dir:c,className:"text-[7px] text-black/25",children:e("ticketsAppearHere")})]})]})})},"tickets-tab")})}),(0,t.jsxs)("div",{className:"shrink-0 flex border-t border-black/[0.06]",children:[(0,t.jsxs)("button",{className:`flex-1 flex flex-col items-center gap-0.5 py-1.5 transition-colors duration-300 ${"messages"===J?"text-orange-500":"text-black/25"}`,children:[(0,t.jsx)(ez.RiChat3Line,{size:11}),(0,t.jsx)("span",{dir:c,className:"text-[6px]",children:e("tabMessages")})]}),(0,t.jsxs)("button",{ref:y,className:`flex-1 flex flex-col items-center gap-0.5 py-1.5 transition-colors duration-300 ${"tickets"===J?"text-orange-500":"text-black/25"}`,children:[(0,t.jsx)(ez.RiTicket2Line,{size:11}),(0,t.jsx)("span",{dir:c,className:"text-[6px]",children:e("tabTickets")})]})]})]})})]}),(0,t.jsx)("div",{ref:p,className:"pointer-events-none absolute left-0 top-0 z-30",style:{opacity:0}
1,children:(0,t.jsx)("svg",{width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",children:(0,t.jsx)("path",{d:"M1 1L1 14.5L4.5 11L6.5 16.5L8.5 15.5L6.5 10L11 10L1 1Z",fill:"rgba(0,0,0,0.72)",stroke:"white",strokeWidth:"0.9"})})})]})}let c4=[{category:"Card Management",breadcrumb:"10 Highest-volume topics",dateRange:"Nov 20, 2024 – Feb 11, 2025",topics:[{name:"Activating a new card",conversations:243,score:55.8,chartData:[2,4,3,6,5,8,6,4,7,5,3,6,8,5,4]},{name:"Lost or stolen cards",conversations:239,score:60.1,chartData:[3,5,7,9,8,12,10,14,11,13,15,12,10,8,11]},{name:"Replacing expired card",conversations:76,score:51.4,chartData:[1,2,3,2,4,3,2,5,3,4,2,3,4,3,2]},{name:"Card not working",conversations:24,score:36.4,chartData:[1,1,2,1,2,3,2,1,2,1,3,2,1,2,1]}],drillTopic:0,topicDescription:"This subtopic captures conversations where a customer is trying to activate a new card — physical or virtual — but encounters issues.",chartHoverIdx:9,chartHoverDate:"Jan 15",drillDate:"May 13th, 2025",drillConvCount:18,conversations:[{name:"Emily Novak",initial:"E",color:"bg-emerald-500",message:"I activated my new card yesterday, but it's still not working"},{name:"Ryan Ishida",initial:"R",color:"bg-indigo-500",message:"Just received my new card in the mail. How do I set it up?"},{name:"Dana Patel",initial:"D",color:"bg-amber-500",message:"I didn't get a prompt to activate my card. Where can I find it?"}],selectedConvo:1,convoDetail:{cxRating:3,summary:"The customer asked how to set up a new card. The AI provided clear instructions but the customer was not able to find the steps in the app. As a result, the customer became frustrated.",customerMsg:"Just received my new card in the mail. How do I set it up?"}},{category:"Account Access",breadcrumb:"10 Highest-volume topics",dateRange:"Dec 1, 2024 – Mar 1, 2025",topics:[{name:"Password reset",conversations:312,score:72.3,chartData:[5,7,6,9,8,10,9,11,10,8,9,7,8,10,9]},{name:"Two-factor issues",conversations:187,score:48.5,chartData:[3,4,6,5,8,7,9,8,10,7,6,8,7,5,6]},{name:"Account locked",conversations:134,score:41.2,chartData:[2,3,4,5,4,6,5,7,5,6,4,5,6,4,3]},{name:"Email verification",conversations:89,score:63.7,chartData:[1,2,2,3,2,4,3,2,3,4,2,3,2,3,2]}],drillTopic:1,topicDescription:"This subtopic covers conversations where customers face difficulties with two-factor authentication setup, recovery, or verification codes.",chartHoverIdx:8,chartHoverDate:"Feb 2",drillDate:"Jan 8th, 2025",drillConvCount:14,conversations:[{name:"Olivia Torres",initial:"O",color:"bg-sky-500",message:"My authenticator app isn't generating the right codes anymore"},{name:"Ethan Liu",initial:"E",color:"bg-rose-500",message:"I lost my phone and can't get past the verification step"},{name:"Mia Dubois",initial:"M",color:"bg-teal-500",message:"The SMS code never arrives when I try to log in"}],selectedConvo:1,convoDetail:{cxRating:2,summary:"The customer lost access to their 2FA device. The AI guided them through recovery but the process required manual verification, leading to a poor experience.",customerMsg:"I lost my phone and can't get past the verification step"}}];function c8({data:e,highlight:i,className:a,hoverPointIdx:r,hoverDate:l}){let o=Math.max(...e),c=e.map((t,i)=>({x:i/(e.length-1)*160,y:28-t/o*26})),d=c.map((e,t)=>`${0===t?"M":"L"}${e.x},${e.y}`).join(" "),u=`${d} L160,28 L0,28 Z`,p=null!=r?c[r]:null;return(0,t.jsxs)("div",{className:`relative ${a??""}`,children:[(0,t.jsxs)("svg",{viewBox:"0 0 160 28",className:"h-full w-full",preserveAspectRatio:"none",children:[(0,t.jsx)("path",{d:u,fill:i?"rgba(249,115,22,0.3)":"rgba(249,115,22,0.1)"}),(0,t.jsx)("path",{d:d,fill:"none",stroke:i?"rgb(249,115,22)":"rgba(249,115,22,0.3)",strokeWidth:"1.5"}),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:p.x,y1:0,x2:p.x,y2:28,stroke:"rgba(249,115,22,0.25)",strokeWidth:"0.5",strokeDasharray:"2,1"}),(0,t.jsx)("circle",{cx:p.x,cy:p.y,r:"3",fill:"rgb(249,115,22)",stroke:"white",strokeWidth:"1.2"})]})]}),(0,t.jsx)(s.AnimatePresence,{children:p&&l&&(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:4}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.25,ease:[.16,1,.3,1]},className:"absolute -top-4 rounded bg-black/80 px-1.5 py-0.5 text-[6px] text-white whitespace-nowrap pointer-events-none",style:{left:`${p.x/160*100}%`,transform:"translateX(-50%)"},children:l})})]})}function c7(){let e=(0,eD.useTranslations)("analyzeMockup"),i=(0,a.useRef)(null),r=(0,a.useRef)([]),o=(0,a.useRef)([]),c=(0,a.useRef)([]),d=(0,l.useInView)(i,{once:!1,amount:.3}),[u,p]=f(),[x,m]=(0,a.useState)(0),[h,g]=(0,a.useState)(null),[b,v]=(0,a.useState)(null),[y,j]=(0,a.useState)(!1),[w,N]=(0,a.useState)(null),[k,_]=(0,a.useState)(!1),[C,T]=(0,a.useState)(null),[R,S]=(0,a.useState)(null),A=(e,t="center")=>{let a,r;if(!e||!i.current)return{x:200,y:200};let n=i.current.getBoundingClientRect(),s=e.getBoundingClientRect();return"left-center"===t?(a=s.left-n.left+.3*s.width,r=s.top-n.top+.45*s.height):"chart-hover"===t?(a=s.left-n.left+.65*s.width,r=s.top-n.top+.4*s.height):(a=s.left-n.left+s.width/2,r=s.top-n.top+s.height/2),{x:a-1,y:r-1}};(0,a.useEffect)(()=>{if(!d)return;let e=!1,t=e=>new Promise(t=>setTimeout(t,e));return(async()=>{if(!u.current||0===x&&(g(null),v(null),j(!1),N(null),_(!1),T(null),S(null),await p(u.current,{opacity:0,scale:1,x:140,y:210},{duration:0}),await t(800),e)||(await p(u.current,{opacity:1},{duration:.45,ease:[.16,1,.3,1]}),e)||(await t(300),e))return;let i=c4[0];for(let a=0;a<i.topics.length;a++){if(e)return;let i=r.current[a];if(!i)continue;let n=A(i);if(await p(u.current,{x:n.x,y:n.y},{duration:.7,ease:[.33,1,.68,1]}),e||(v(a),await t(300),e)||(await p(u.current,{scale:.78},{duration:.09}),await p(u.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(g(a),j(!0),v(null),await t(1400),e))return}if(await t(600),e)return;let a=i.drillTopic,n=r.current[a];if(n){let i=A(n);if(await p(u.current,{x:i.x,y:i.y},{duration:.6,ease:[.33,1,.68,1]}),e||(v(a),await t(250),e)||(await p(u.current,{scale:.78},{duration:.09}),await p(u.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(g(a),v(null),await t(600),e))return}let s=o.current[a];if(s){let i=A(s,"chart-hover");if(await p(u.current,{x:i.x,y:i.y},{duration:.8,ease:[.33,1,.68,1]}),e||(N(a),await t(1600),e)||(await p(u.current,{scale:.78},{duration:.09}),await p(u.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(N(null),_(!0),await t(1e3),e))return}if(await t(600),e)return;let l=c.current[i.selectedConvo];if(l){let a=A(l,"left-center");if(await p(u.current,{x:a.x,y:a.y},{duration:.7,ease:[.33,1,.68,1]}),e||(S(i.selectedConvo),await t(350),e)||(await p(u.current,{scale:.78},{duration:.09}),await p(u.current,{scale:1},{duration:.18,ease:[.33,1,.68,1]}),e)||(T(i.selectedConvo),S(null),await t(3e3),e))return}if(await p(u.current,{opacity:0},{duration:.4,ease:[.16,1,.3,1]}),e||(_(!1),T(null),S(null),await t(600),e)||(N(null),j(!1),g(null),await t(500),e))return;let d=r.current[0],f=d?A(d):{x:200,y:200};await p(u.current,{x:f.x-60,y:f.y-40,scale:1},{duration:0}),await t(300),e||m(e=>e+1)})(),()=>{e=!0}},[d,x]);let M=c4[0];return(0,t.jsxs)("div",{ref:i,className:"mockup-ui relative flex w-full overflow-hidden rounded-t-2xl rounded-b-none border border-b-0 border-black/[0.07] bg-white shadow-[0_-2px_16px_0_rgba(0,0,0,0.06)] min-h-[480px] sm:min-h-[540px] lg:min-h-[600px]",children:[(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 hidden w-9 flex-col items-center gap-2 border-r border-black/[0.05] bg-black/[0.015] py-3 sm:flex",children:[{Icon:ez.RiHome4Line,active:!1},{Icon:ez.RiBookOpenLine,active:!1},{Icon:ez.RiRobot2Line,active:!1},{Icon:ez.RiChat3Line,active:!1},{Icon:ez.RiBarChart2Line,active:!0}].map(({Icon:e,active:i},a)=>(0,t.jsx)("div",{className:`flex h-6 w-6 items-center justify-center rounded ${i?"bg-black/10":""}`,children:(0,t.jsx)(e,{size:13,className:i?"text-black/60":"text-black/25"})},a))}),(0,t.jsxs)("div",{className:"sm:ml-9 flex flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-black/[0.06] px-4 py-2.5",children:[(0,t.jsx)(ez.RiLayoutGridLine,{size:12,className:"text-black/40"}),(0,t.jsx)("span",{className:"text-[11px] font-semibold text-black/70",children:e("topicsExplorer")})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-dashed border-black/[0.06] px-4 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full border border-black/[0.08] px-2.5 py-1",children:[(0,t.jsx)(ez.RiCalendarLine,{size:9,className:"text-black/35"}),(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsx)(n.motion.span,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"text-[8px] text-black/50",children:M.dateRange},`date-${x}`)})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full border border-black/[0.08] px-2.5 py-1",children:[(0,t.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-orange-500"}),(0,t.jsx)("span",{className:"text-[8px] text-black/50",children:e("cxScore")}),(0,t.jsx)(ez.RiArrowDownSLine,{size:8,className:"text-black/30"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-full border border-black/[0.08] px-2 py-1",children:[(0,t.jsxs)("span",{className:"text-[8px] text-black/40",children:[e("view")," 10"]}),(0,t.jsx)(ez.RiArrowDownSLine,{size:8,className:"text-black/30"})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-4 py-2",children:[(0,t.jsx)(ez.RiArrowLeftSLine,{size:10,className:"text-black/30"}),(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsxs)(n.motion.span,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"text-[8px] text-black/35",children:[e("backTo")," ",M.breadcrumb]},`bread-${x}`)}),(0,t.jsx)("span",{className:"text-[8px] text-black/20",children:"›"}),(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsx)(n.motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"text-[8px] font-medium text-black/55",children:M.category},`cat-${x}`)})]}),(0,t.jsxs)("div",{className:"flex flex-1 px-3 pb-4 gap-3 min-h-0",children:[(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 w-[55%] content-start",children:M.topics.map((i,a)=>{let s=h===a;return(0,t.jsxs)(n.motion.div,{ref:e=>{r.current[a]=e},initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.16,1,.3,1],delay:.08*a},className:`rounded-xl p-3 transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)] ${s?"bg-orange-500 shadow-lg shadow-orange-500/20":b===a?"bg-orange-100 shadow-sm":"bg-orange-50"}`,style:{minHeight:100},children:[(0,t.jsx)("p",{className:`text-[9px] font-semibold leading-tight transition-colors duration-500 ${s?"text-white":"text-orange-600"}`,children:i.name}),(0,t.jsxs)("p",{className:`mt-1 text-[7px] font-mono uppercase tracking-wider transition-colors duration-500 ${s?"text-white/70":"text-orange-400"}`,children:[i.conversations," ",e("conversationsLabel")]}),(0,t.jsxs)("p",{className:`text-[7px] font-mono uppercase tracking-wider transition-colors duration-500 ${s?"text-white/70":"text-orange-400"}`,children:[i.score,"% ",e("cxScore")]})]},`topic-${x}-${a}`)})}),(0,t.jsx)("div",{className:"flex-1 rounded-xl border border-black/[0.05] bg-black/[0.015] p-3 overflow-hidden",children:(0,t.jsx)("div",{className:"flex flex-col gap-3",children:M.topics.map((e,i)=>{let a=h===i,r=w===i;return(0,t.jsxs)(n.motion.div,{ref:e=>{o.current[i]=e},initial:{opacity:0,x:10},animate:{opacity:y?1:.3,x:0},transition:{duration:.6,ease:[.16,1,.3,1],delay:.1*i},children:[(0,t.jsx)("p",{className:`text-[7px] leading-tight mb-1 transition-colors duration-500 ${a?"text-orange-700 font-semibold":"text-black/35"}`,children:e.name}),(0,t.jsx)("div",{className:"h-[28px] w-full",children:(0,t.jsx)(c8,{data:e.chartData,highlight:a,className:"h-full w-full",hoverPointIdx:r?M.chartHoverIdx:null,hoverDate:r?M.chartHoverDate:null})}),i<M.topics.length-1&&(0,t.jsx)("div",{className:"mt-2 h-px bg-black/[0.04]"})]},`chart-${x}-${i}`)})})})]})]}),(0,t.jsx)(s.AnimatePresence,{children:k&&(0,t.jsxs)(n.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.55,ease:[.16,1,.3,1]},className:"absolute inset-y-0 right-0 z-20 flex w-[72%] flex-col overflow-hidden border-l border-black/[0.08] bg-white shadow-[-8px_0_40px_rgba(0,0,0,0.08)]",children:[(0,t.jsxs)("div",{className:"border-b border-black/[0.06] px-4 py-3",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold text-black/80",children:M.topics[M.drillTopic].name}),(0,t.jsx)("p",{className:"mt-1 text-[7px] leading-[11px] text-black/40",children:M.topicDescription})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-dashed border-black/[0.06] px-4 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-full border border-black/[0.08] px-2 py-0.5",children:[(0,t.jsx)(ez.RiCalendarLine,{size:7,className:"text-black/30"}),(0,t.jsx)("span",{className:"text-[7px] text-black/45",children:M.drillDate})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-full border border-dashed border-black/[0.08] px-2 py-0.5",children:[(0,t.jsx)(ez.RiFilterLine,{size:7,className:"text-black/25"}),(0,t.jsx)("span",{className:"text-[7px] text-black/35",children:e("filter")})]})]}),(0,t.jsx)("div",{className:"px-4 py-2",children:(0,t.jsxs)("p",{className:"text-[8px] font-semibold text-black/60",children:[M.drillConvCount," ",e("conversationsLabel")]})}),(0,t.jsxs)("div",{className:"flex flex-1 min-h-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-[44%] border-r border-black/[0.05] overflow-y-auto",children:M.conversations.map((e,i)=>(0,t.jsxs)("div",{ref:e=>{c.current[i]=e},className:`flex items-start gap-2 px-3 py-2.5 border-b border-black/[0.04] transition-all duration-300 ${C===i?"bg-orange-50":R===i?"bg-black/[0.02]":""}`,children:[(0,t.jsx)("div",{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-[7px] font-bold text-white ${e.color}`,children:e.initial}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-[8px] font-semibold text-black/70 truncate",children:e.name}),(0,t.jsx)("p",{className:"mt-0.5 text-[7px] leading-[10px] text-black/40 line-clamp-2",children:e.message})]})]},`convo-${x}-${i}`))}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto px-3 py-3",children:[(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:null!=C&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:8}
1,animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.4,ease:[.16,1,.3,1]},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("p",{className:"text-[9px] font-semibold text-black/70",children:M.conversations[C].name}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(ez.RiEyeLine,{size:9,className:"text-black/25"}),(0,t.jsx)(ez.RiExternalLinkLine,{size:9,className:"text-black/25"})]})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-orange-200 bg-orange-50/50 p-2.5 mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5",children:[(0,t.jsx)(ez.RiSparkling2Fill,{size:8,className:"text-orange-500"}),(0,t.jsxs)("span",{className:"text-[8px] font-bold text-black/70",children:[e("cxRating")," ",M.convoDetail.cxRating]})]}),(0,t.jsx)("p",{className:"text-[7px] leading-[10px] text-black/50",children:M.convoDetail.summary})]}),(0,t.jsx)("div",{className:"rounded-xl bg-black/[0.04] p-2.5 mb-2",children:(0,t.jsx)("p",{className:"text-[7px] leading-[10px] text-black/60",children:M.convoDetail.customerMsg})}),(0,t.jsxs)("div",{className:"flex items-center gap-1 mb-3",children:[(0,t.jsx)(ez.RiMailLine,{size:7,className:"text-black/25"}),(0,t.jsx)("span",{className:"text-[6px] text-black/30",children:"1m"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(ez.RiSparkling2Fill,{size:8,className:"text-orange-400"}),(0,t.jsx)("span",{className:"text-[8px] font-semibold text-black/50",children:e("aiAnswer")})]})]},`detail-${x}-${C}`)}),null==C&&(0,t.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,t.jsx)("p",{className:"text-[8px] text-black/20",children:e("selectConversation")})})]})]})]})}),(0,t.jsx)("div",{ref:u,className:"pointer-events-none absolute left-0 top-0 z-30",style:{opacity:0},children:(0,t.jsx)("svg",{width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",children:(0,t.jsx)("path",{d:"M1 1L1 14.5L4.5 11L6.5 16.5L8.5 15.5L6.5 10L11 10L1 1Z",fill:"rgba(0,0,0,0.72)",stroke:"white",strokeWidth:"0.9"})})})]})}function c9(){let e=(0,eD.useTranslations)("scrollReveal");return(0,t.jsx)("section",{className:"relative min-h-[70vh] flex items-center px-6 py-40 sm:py-52 lg:py-64 bg-[#f5f2ed]",children:(0,t.jsx)("div",{className:"mx-auto max-w-[900px] text-center",children:(0,t.jsx)(ch,{enableBlur:!0,baseOpacity:.08,baseRotation:0,blurStrength:6,containerClassName:"my-0",textClassName:"font-serif text-[clamp(1.5rem,4.5vw,3.2rem)] font-light leading-[1.4] tracking-[-0.02em] text-[#1a1a1a]",rotationEnd:"top top",wordAnimationEnd:"center+=10% center",children:e("text")})})})}function de(e){(0,a.useEffect)(()=>{let t=e.current;if(!t)return;let i=t.querySelector(".border-glow-card");if(!i)return;let a=!1;function r(e){return 1-Math.pow(1-e,3)}function n(e){return e*e*e}function s(e,t,i,r,n){return new Promise(s=>{let l=performance.now();requestAnimationFrame(function o(){if(a)return;let c=Math.min((performance.now()-l)/i,1);n(e+(t-e)*r(c)),c<1?requestAnimationFrame(o):s()})})}return async function(){for(;!a&&(i.classList.add("sweep-active"),i.style.setProperty("--cursor-angle","110deg"),await s(0,100,500,r,e=>i.style.setProperty("--edge-proximity",`${e}`)),!a)&&(await s(0,50,1500,n,e=>{i.style.setProperty("--cursor-angle",`${e/100*355+110}deg`)}),!a&&(await s(50,100,2250,r,e=>{i.style.setProperty("--cursor-angle",`${e/100*355+110}deg`)}),!a)&&(await s(100,0,1500,n,e=>i.style.setProperty("--edge-proximity",`${e}`)),i.classList.remove("sweep-active"),!a));){;await new Promise(e=>setTimeout(e,800))}}(),()=>{a=!0}},[e])}function dt({subtitle:e}){let i=(0,a.useRef)(null);return de(i),(0,t.jsx)("div",{ref:i,className:"w-full",children:(0,t.jsx)(cN,{backgroundColor:"rgba(255,255,255,0.65)",colors:["#34d399","#6ee7b7","#a7f3d0"],glowColor:"160 70 65",borderRadius:20,glowRadius:40,glowIntensity:.4,fillOpacity:.15,className:"w-full",children:(0,t.jsxs)("div",{className:"px-6 py-6 text-center backdrop-blur-xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2.5",children:[(0,t.jsx)(cI.Logo,{variant:"black",size:20}),(0,t.jsx)("span",{className:"font-serif text-[18px] font-light tracking-[-0.02em] text-[#1a1a1a]",children:"NextCap"})]}),(0,t.jsx)("p",{className:"mt-3 font-serif text-[13px] font-semibold tracking-[-0.01em] text-emerald-900/60",children:e})]})})})}let di={beforeCard:function({data:e}){return(0,t.jsxs)(cN,{backgroundColor:"rgba(255,255,255,0.65)",colors:["#f87171","#fb923c","#fbbf24"],glowColor:"0 70 65",borderRadius:20,glowRadius:30,glowIntensity:.8,fillOpacity:.3,children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center px-8 w-[280px] h-[140px] backdrop-blur-xl",children:[(0,t.jsx)("p",{className:"font-serif text-[22px] font-light tracking-[-0.02em] text-[#1a1a1a] text-balance text-center",children:e.label}),(0,t.jsx)("p",{className:"mt-2.5 text-center text-[14px] font-semibold leading-[20px] text-red-900/60 text-balance",children:e.desc})]}),(0,t.jsx)(ck.Handle,{type:"source",position:c_.Position.Bottom,className:"!bg-transparent !border-transparent !w-0 !h-0"})]})},afterCard:function({data:e}){let i=(0,a.useRef)(null);return de(i),(0,t.jsx)("div",{ref:i,children:(0,t.jsxs)(cN,{backgroundColor:"rgba(255,255,255,0.65)",colors:["#34d399","#6ee7b7","#a7f3d0"],glowColor:"160 70 65",borderRadius:20,glowRadius:40,glowIntensity:.4,fillOpacity:.15,children:[(0,t.jsx)(ck.Handle,{type:"target",position:c_.Position.Top,className:"!bg-transparent !border-transparent !w-0 !h-0"}),(0,t.jsxs)("div",{className:"flex flex-col items-center px-12 py-10 w-[460px] backdrop-blur-xl",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(cI.Logo,{variant:"black",size:28}),(0,t.jsx)("span",{className:"font-serif text-[26px] font-light tracking-[-0.02em] text-[#1a1a1a]",children:"NextCap"})]}),(0,t.jsx)("p",{className:"mt-4 text-center font-serif text-[15px] font-semibold tracking-[-0.01em] text-emerald-900/60",children:e.subt
1itle})]})]})})}};function da(){let e,i=(0,eD.useTranslations)("beforeAfter"),r=(0,a.useRef)(null),s=(0,l.useInView)(r,{once:!0,amount:.15}),[d,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)");u(e.matches);let t=e=>u(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let{scrollYProgress:p}=(0,o.useScroll)({target:r,offset:["start end","end start"]}),x=(0,c.useTransform)(p,[0,1],[40,-280]),f=(0,c.useTransform)(p,[0,.5,1],[14,0,-10]),m=(0,c.useTransform)(p,[0,.5,1],[.92,1,.96]),h=(0,c.useTransform)(p,[0,1],[-120,280]),g=(0,c.useTransform)(p,[0,.5,1],[-14,0,10]),b=(0,c.useTransform)(p,[0,.5,1],[.96,1,.92]),v=[i("afterProduct1"),i("afterProduct2"),i("afterProduct3"),i("afterProduct4"),i("afterProduct5")],y=[{id:"ai-agent",type:"beforeCard",position:{x:0,y:0},data:{label:i("beforeTool1"),desc:i("beforeTool1Desc")},draggable:!1,selectable:!1},{id:"chat",type:"beforeCard",position:{x:260,y:0},data:{label:i("beforeTool2"),desc:i("beforeTool2Desc")},draggable:!1,selectable:!1},{id:"ticket",type:"beforeCard",position:{x:520,y:0},data:{label:i("beforeTool3"),desc:i("beforeTool3Desc")},draggable:!1,selectable:!1},{id:"analytics",type:"beforeCard",position:{x:780,y:0},data:{label:i("beforeTool4"),desc:i("beforeTool4Desc")},draggable:!1,selectable:!1},{id:"channels",type:"beforeCard",position:{x:1040,y:0},data:{label:i("beforeTool5"),desc:i("beforeTool5Desc")},draggable:!1,selectable:!1},{id:"nextcap",type:"afterCard",position:{x:430,y:480},data:{products:v,subtitle:i("afterSubtitle")},draggable:!1,selectable:!1}],j={stroke:"rgba(26,26,26,0.12)",strokeWidth:1.5};return(0,t.jsx)("section",{ref:r,className:"px-6 py-36 bg-[#f5f2ed] dark:bg-[#0a0a0a]",children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:30},animate:s?{opacity:1,y:0}:{},transition:{duration:.9,ease:[.16,1,.3,1]},className:"hidden lg:block relative h-[920px]",style:{background:"transparent"},children:[(0,t.jsx)("div",{className:"pointer-events-none select-none absolute top-[18%] left-1/2 -translate-x-1/2 -translate-y-1/2 z-0",style:{perspective:"900px"},children:(0,t.jsx)(n.motion.p,{style:{y:x,rotateX:f,scale:m},className:"font-serif font-bold text-[220px] leading-none tracking-[-0.04em] text-red-500 whitespace-nowrap will-change-transform",children:i("beforeTag")})}),(0,t.jsx)("div",{className:"pointer-events-none select-none absolute top-[75%] left-1/2 -translate-x-1/2 -translate-y-1/2 z-0",style:{perspective:"900px"},children:(0,t.jsx)(n.motion.p,{style:{y:h,rotateX:g,scale:b},className:"font-serif font-bold text-[220px] leading-none tracking-[-0.04em] text-green-500 whitespace-nowrap will-change-transform",children:i("afterTag")})}),(0,t.jsx)("div",{className:"relative z-10 h-full",children:d&&(0,t.jsx)(ck.ReactFlow,{nodes:y,edges:[{id:"e-ai-agent",source:"ai-agent",target:"nextcap",style:j},{id:"e-chat",source:"chat",target:"nextcap",style:j},{id:"e-ticket",source:"ticket",target:"nextcap",style:j},{id:"e-analytics",source:"analytics",target:"nextcap",style:j},{id:"e-channels",source:"channels",target:"nextcap",style:j}],nodeTypes:di,fitView:!0,fitViewOptions:{padding:.25,minZoom:.5,maxZoom:1},proOptions:{hideAttribution:!0},panOnDrag:!1,zoomOnScroll:!1,zoomOnPinch:!1,zoomOnDoubleClick:!1,preventScrolling:!1,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!1,style:{background:"transparent"}})})]}),(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:30},animate:s?{opacity:1,y:0}:{},transition:{duration:.9,ease:[.16,1,.3,1]},className:"lg:hidden",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[400px] flex-col items-center",children:[(0,t.jsxs)("div",{className:"relative w-full flex flex-col items-center",children:[(0,t.jsx)("div",{className:"pointer-events-none select-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-0",style:{perspective:"600px"},children:(0,t.jsx)(n.motion.p,{style:{y:x,rotateX:f,scale:m},className:"font-serif font-bold text-[90px] sm:text-[120px] leading-none tracking-[-0.04em] text-red-500 whitespace-nowrap will-change-transform",children:i("beforeTag")})}),(e=[{label:i("beforeTool1"),desc:i("beforeTool1Desc")},{label:i("beforeTool2"),desc:i("beforeTool2Desc")},{label:i("beforeTool3"),desc:i("beforeTool3Desc")},{label:i("beforeTool4"),desc:i("beforeTool4Desc")},{label:i("beforeTool5"),desc:i("beforeTool5Desc")}]).map((i,a)=>(0,t.jsxs)("div",{className:"relative z-10 flex w-full flex-col items-center",children:[(0,t.jsx)(cN,{backgroundColor:"rgba(255,255,255,0.65)",colors:["#f87171","#fb923c","#fbbf24"],glowColor:"0 70 65",borderRadius:20,glowRadius:30,glowIntensity:.8,fillOpacity:.3,className:"w-full",children:(0,t.jsxs)("div",{className:"px-7 py-6 text-center backdrop-blur-xl",children:[(0,t.jsx)("p",{className:"font-serif text-[18px] font-light tracking-[-0.02em] text-[#1a1a1a] text-balance",children:i.label}),(0,t.jsx)("p",{className:"mt-1.5 text-[13px] font-semibold text-red-900/60 text-balance",children:i.desc})]})}),(0,t.jsx)("div",{className:"w-[1.5px] bg-[#1a1a1a]/[0.12] dark:bg-white/[0.12]",style:{height:a<e.length-1?28:48}})]},i.label))]}),(0,t.jsxs)("div",{className:"relative w-full flex flex-col items-center",children:[(0,t.jsx)("div",{className:"pointer-events-none select-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-0",style:{perspective:"600px"},children:(0,t.jsx)(n.motion.p,{style:{y:h,rotateX:g,scale:b},className:"font-serif font-bold text-[90px] sm:text-[120px] leading-none tracking-[-0.04em] text-green-500 whitespace-nowrap will-change-transform",children:i("afterTag")})}),(0,t.jsx)("div",{className:"relative z-10 w-full",children:(0,t.jsx)(dt,{subtitle:i("afterSubt
1itle")})})]})]})})]})})}function dr({text:e,className:i,delay:r=0,textShadow:s}){let o=(0,a.useRef)(null),c=(0,l.useInView)(o,{once:!0,margin:"-80px"}),d=(0,eB.useLocale)(),u=e.split(" ");return(0,t.jsx)("div",{ref:o,className:`flex flex-wrap gap-x-[0.24em] ${i??""}`,style:"fa"===d||"ar"===d?{direction:"rtl"}:void 0,children:u.map((e,i)=>(0,t.jsx)("span",{className:"overflow-hidden pb-[0.2em] mb-[-0.2em]",children:(0,t.jsx)(n.motion.span,{className:"inline-block",style:s?{textShadow:s}:void 0,initial:{y:"110%",opacity:0},animate:c?{y:"0%",opacity:1}:{y:"110%",opacity:0},transition:{duration:.9,ease:[.16,1,.3,1],delay:r+.07*i},children:e})},i))})}let dn=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],ds=[28,30,31,34,36,38,41,43,42,45,47,48,50,51,53,55,57,59,61,63,64,66,68,70];function dl(){let e=(0,a.useRef)(null),i=(0,a.useRef)(null),r=(0,l.useInView)(e,{once:!0,amount:.3}),[s,o]=(0,a.useState)(!1),c=(0,eD.useTranslations)("months"),d=dn.map((e,t)=>0===t?`${c(e)} 2024`:c(e)).concat(dn.map((e,t)=>0===t||11===t?`${c(e)} 2025`:c(e)));(0,a.useEffect)(()=>{let e=()=>o(window.innerWidth<640);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let u=s?ds.filter((e,t)=>t%2==0):ds,p=s?d.filter((e,t)=>t%2==0):d,x=s?400:900,f=s?260:340,m=s?36:48,h=s?8:16,g=s?16:20,b=x-m-h,v=f-g-(s?44:56),y=e=>m+e/(u.length-1)*b,j=e=>g+v-(e-10)/70*v,w=u.map((e,t)=>`${0===t?"M":"L"}${y(t).toFixed(1)},${j(e).toFixed(1)}`).join(" "),N=`${w} L${y(u.length-1).toFixed(1)},${(g+v).toFixed(1)} L${m},${(g+v).toFixed(1)} Z`;return(0,t.jsx)("div",{ref:e,className:"relative w-full",children:(0,t.jsx)("div",{ref:i,className:"w-full overflow-x-auto",style:{scrollbarWidth:"none"},children:(0,t.jsxs)("svg",{viewBox:`0 0 ${x} ${f}`,className:"w-full",style:{overflow:"visible",minWidth:s?320:void 0},children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("pattern",{id:"areaHatch",width:"6",height:"6",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[(0,t.jsx)("rect",{width:"6",height:"6",fill:"#f97316",fillOpacity:"0.12"}),(0,t.jsx)("line",{x1:"0",y1:"0",x2:"0",y2:"6",stroke:"#f97316",strokeWidth:"1.5",strokeOpacity:"0.18"})]}),(0,t.jsxs)("linearGradient",{id:"areaFadeOut",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"white",stopOpacity:"0"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"white",stopOpacity:"1"})]}),(0,t.jsxs)("mask",{id:"areaMask",children:[(0,t.jsx)("rect",{x:"0",y:"0",width:x,height:f,fill:"white"}),(0,t.jsx)("rect",{x:"0",y:"0",width:x,height:f,fill:"url(#areaFadeOut)"})]}),(0,t.jsx)("clipPath",{id:"areaReveal",children:(0,t.jsx)(n.motion.rect,{x:m,y:0,height:f,initial:{width:0},animate:r?{width:b+h}:{},transition:{duration:1.8,ease:[.16,1,.3,1]}})})]}),(s?[20,40,60,80]:[10,20,30,40,50,60,70,80]).map(e=>(0,t.jsxs)("g",{children:[(0,t.jsx)("line",{x1:m,x2:x-h,y1:j(e),y2:j(e),stroke:"black",strokeOpacity:"0.06",strokeDasharray:"3 4"}),(0,t.jsxs)("text",{x:m-8,y:j(e)+4,textAnchor:"end",className:"fill-black/30",style:{fontSize:s?9:10,fontFamily:"var(--font-dm-mono)"},children:[e,"%"]})]},e)),(0,t.jsxs)("g",{clipPath:"url(#areaReveal)",children:[(0,t.jsx)("path",{d:N,fill:"url(#areaHatch)",mask:"url(#areaMask)"}),(0,t.jsx)("path",{d:w,fill:"none",stroke:"#f97316",strokeWidth:s?2:2.5,strokeLinejoin:"round",strokeLinecap:"round"}),!s&&u.map((e,i)=>(0,t.jsx)("circle",{cx:y(i),cy:j(e),r:"3.5",fill:"white",stroke:"#f97316",strokeWidth:"2"},i))]}),p.map((e,i)=>i%3==0||i===p.length-1?(0,t.jsx)("text",{x:y(i),y:f-8,textAnchor:"middle",className:"fill-black/30",style:{fontSize:s?8:9,fontFamily:"var(--font-dm-mono)"},children:e},i):null)]})})})}function dc(){let e=(0,eD.useTranslations)("featuredModules"),i=[{name:e("humanAgents"),value:38,color:"rgba(0,0,0,0.08)"},{name:e("traditionalChatbots"),value:49,color:"rgba(0,0,0,0.12)"},{name:e("nextcapAi"),value:70,color:"#f97316"}],r=(0,a.useRef)(null),s=(0,l.useInView)(r,{once:!0,amount:.4});return(0,t.jsxs)("div",{ref:r,className:"flex h-full flex-col",children:[(0,t.jsx)("div",{className:"flex flex-1 items-end gap-3 sm:gap-6",children:i.map((e,i)=>{let a=e.value/80*100,r="NextCap AI"===e.name;return(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-2",children:[(0,t.jsxs)("span",{className:"font-mono text-[11px] font-medium sm:text-[12px]",style:{color:r?"#f97316":"rgba(0,0,0,0.4)"},children:[e.value,"%"]}),(0,t.jsx)("div",{className:"relative w-full",style:{height:200},children:(0,t.jsx)(n.motion.div,{className:"absolute inset-x-0 bottom-0 rounded-t-md",style:{backgroundColor:e.color,backgroundImage:r?void 0:"repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px)"},initial:{height:0},animate:s?{height:`${a}%`}:{},transition:{duration:.8,delay:.15*i,ease:[.16,1,.3,1]}})}),(0,t.jsx)("span",{className:"w-full truncate text-center font-mono text-[8px] uppercase tracking-[0.08em] sm:text-[9px] sm:tracking-[0.1em]",style:{color:r?"#f97316":"rgba(0,0,0,0.3)",fontWeight:r?600:4
100},children:e.name})]},e.name)})}),(0,t.jsx)("p",{className:"mt-4 text-[11px] leading-[16px] text-black/30 text-balance",children:e("resolutionNote")})]})}function dd(){let e=(0,eD.useTranslations)("featuredModules");return(0,t.jsx)("div",{className:"flex h-full flex-col",children:(0,t.jsx)("div",{className:"flex flex-1 flex-col justify-center",children:(0,t.jsxs)("blockquote",{className:"font-serif text-[24px] font-light leading-[1.25] tracking-[-0.025em] text-foreground sm:text-[30px] lg:text-[36px]",children:["“",e("testimonialQuote1")," ",(0,t.jsx)("span",{className:"bg-[#f97316] px-1 text-white",children:e("testimonialHighlight")}),e("testimonialQuote2"),"”"]})})})}function du(){let e=(0,eD.useTranslations)("featuredModules");return(0,t.jsx)("section",{id:"solutions",className:"px-6 py-24",children:(0,t.jsx)("div",{className:"mx-auto max-w-[1440px]",children:(0,t.jsx)(cF,{children:(0,t.jsxs)(n.motion.div,{variants:cD,className:"overflow-hidden rounded-[3rem] shadow-[0_8px_80px_rgba(0,0,0,0.12)]",children:[(0,t.jsxs)("div",{className:"relative h-[360px] sm:h-[440px] lg:h-[520px]",children:[(0,t.jsx)(cE.FadeImg,{src:"/ast1.webp",alt:"",className:"absolute inset-0 h-full w-full object-cover object-center"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent via-40% to-black/70"}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 p-8 sm:p-10 lg:p-14",children:[(0,t.jsxs)("h2",{className:"font-serif text-[30px] font-light leading-[0.95] tracking-[-0.03em] text-white sm:text-[40px] lg:text-[52px]",style:{textWrap:"balance"},children:[e("heroTitle1")," ",(0,t.jsx)("span",{className:"font-bold",children:e("heroTitleBold1")}),(0,t.jsx)("br",{}),e("heroTitle2")," ",(0,t.jsx)("span",{className:"font-bold",children:e("heroTitleBold2")})]}),(0,t.jsx)("p",{className:"mt-3 text-[14px] leading-[22px] text-white/80 font-medium lg:mt-4 lg:text-[15px] lg:leading-[24px]",children:e("heroSubtitle")})]})]}),(0,t.jsxs)("div",{className:"bg-white",children:[(0,t.jsx)("div",{className:"border-b border-black/[0.06] p-6 sm:p-8 lg:p-10",children:(0,t.jsx)(dl,{})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2",children:[(0,t.jsx)("div",{className:"border-b border-black/[0.06] p-6 sm:p-8 lg:border-b-0 lg:border-r lg:p-10",children:(0,t.jsx)(dc,{})}),(0,t.jsx)("div",{className:"p-6 sm:p-8 lg:p-10",children:(0,t.jsx)(dd,{})})]})]})]})})})})}function dp(){let e=(0,eD.useTranslations)("pricing"),[i,r]=(0,a.useState)(!1),d=[{id:1,name:e("free.name"),price:e("free.price"),period:"",image:"/pricing-free.webp",features:e.raw("free.features")},{id:2,name:e("growth.name"),price:i?e("growth.priceAnnual"):e("growth.price"),period:e("growth.period"),image:"/pricing-growth.webp",features:e.raw("growth.features"),showBilledAnnually:i},{id:3,name:e("professional.name"),price:i?e("professional.priceAnnual"):e("professional.price"),period:e("professional.period"),image:"/pricing-pro.webp",features:e.raw("professional.features"),showBilledAnnually:i},{id:4,name:e("enterprise.name"),price:e("enterprise.price"),period:"",image:"/pricing-enterprise.webp",features:e.raw("enterprise.features")}],u=(0,a.useRef)(null),p=(0,a.useRef)(null),x=(0,l.useInView)(p,{once:!0,amount:.2}),{scrollYProgress:f}=(0,o.useScroll)({target:u,offset:["start start","end end"]}),m=(d.length-1)*484,h=(0,c.useTransform)(f,[0,1],[0,-m]),g=(0,c.useTransform)(f,[0,.15,.25],[1,1,0]);return(0,t.jsxs)("div",{dir:"ltr",children:[(0,t.jsx)("div",{ref:u,className:"hidden lg:block",style:{height:"500vh",position:"relative"},children:(0,t.jsxs)("div",{style:{position:"sticky",top:0,height:"100vh",overflow:"hidden",display:"flex",alignItems:"center",paddingLeft:"6vw",paddingRight:"6vw",gap:"6vw"},children:[(0,t.jsxs)(n.motion.div,{ref:p,dir:"auto",style:{flexShrink:0,width:"320px",opacity:g},children:[(0,t.jsx)(n.motion.p,{initial:{opacity:0}
1,animate:x?{opacity:1}:{},transition:{duration:.5,ease:[.16,1,.3,1]},className:"text-[14px] font-semibold uppercase tracking-[0.18em] text-foreground/70",children:e("label")}),(0,t.jsx)(dr,{text:e("sectionTitle"),className:"mt-4 font-serif text-[clamp(28px,2.8vw,44px)] font-light leading-[1.02] tracking-[-0.03em] text-foreground"}),(0,t.jsx)(n.motion.p,{initial:{opacity:0},animate:x?{opacity:1}:{},transition:{duration:.7,delay:.6,ease:[.16,1,.3,1]},className:"mt-5 text-[16px] leading-[24px] text-foreground/70",children:e("sectionSubtitle")}),(0,t.jsxs)(n.motion.div,{initial:{opacity:0},animate:x?{opacity:1}:{},transition:{duration:.7,delay:.8,ease:[.16,1,.3,1]},className:"mt-6 flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"inline-flex rounded-full border border-foreground/[0.08] bg-foreground/[0.03] p-0.5",children:[(0,t.jsx)("button",{onClick:()=>r(!1),className:`rounded-full px-4 py-1.5 text-[12px] font-medium transition-all duration-300 ${!i?"bg-foreground text-background shadow-sm":"text-foreground
1/40 hover:text-foreground/60"}`,children:e("billingMonthly")}),(0,t.jsx)("button",{onClick:()=>r(!0),className:`rounded-full px-4 py-1.5 text-[12px] font-medium transition-all duration-300 ${i?"bg-foreground text-background shadow-sm":"text-foreground/40 hover:text-foreground/60"}`,children:e("billingAnnual")})]}),(0,t.jsx)(s.AnimatePresence,{children:i&&(0,t.jsx)(n.motion.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.3,ease:[.16,1,.3,1]},className:"rounded-full bg-emerald-500/10 px-2.5 py-1 text-[11px] font-medium text-emerald-600",children:e("billingAnnualSave")})})]})]}),(0,t.jsx)("div",{style:{flex:1,overflow:"visible",position:"relative"},children:(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:40},animate:x?{opacity:1,y:0}:{},transition:{duration:.8,ease:[.16,1,.3,1]},style:{x:h,display:"flex",gap:"24px",willChange:"transform"},children:d.map(i=>(0,t.jsxs)("div",{style:{flexShrink:0,width:"460px",height:"560px",borderRadius:"48px",position:"relative",overflow:"hidden",backgroundImage:`url(${i.image})`,backgroundSize:"cover",backgroundPosition:"center"},children:[(0,t.jsx)("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.85) 100%)"}}),(0,t.jsxs)("div",{dir:"auto",style:{position:"absolute",bottom:36,left:36,right:36,zIndex:1},children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsx)(n.motion.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3,ease:[.16,1,.3,1]},className:"font-serif text-[36px] font-light leading-none text-white",children:i.price},i.price)}),i.period&&(0,t.jsx)("span",{className:"text-[16px] text-white/75",children:i.period}),(0,t.jsx)(s.AnimatePresence,{children:"showBilledAnnually"in i&&i.showBilledAnnually&&(0,t.jsx)(n.motion.span,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3,ease:[.16,1,.3,1]},className:"rounded-full bg-white/10 px-2.5 py-1 text-[11px] font-medium text-white/70 backdrop-blur-sm",children:e("billedAnnually")})})]}),(0,t.jsx)("p",{className:"mt-1 text-[18px] font-semibold text-white",children:i.name}),(0,t.jsx)("div",{className:"mt-4 space-y-2",children:i.features.map(e=>(0,t.jsx)("p",{className:"text-[13px] font-medium text-white/80",children:e},e))})]})]},i.id))})})]})}),(0,t.jsxs)("div",{dir:"auto",className:"px-6 pt-24 lg:hidden",children:[(0,t.jsx)("p",{className:"text-[14px] font-semibold uppercase tracking-[0.18em] text-foreground/70",children:e("label")}),(0,t.jsx)(dr,{text:e("sectionTitle"),className:"mt-4 font-serif text-[30px] font-light leading-[0.98] tracking-[-0.03em] text-foreground"}),(0,t.jsxs)("div",{className:"mt-6 flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"inline-flex rounded-full border border-foreground
1/[0.08] bg-foreground/[0.03] p-0.5",children:[(0,t.jsx)("button",{onClick:()=>r(!1),className:`rounded-full px-4 py-1.5 text-[12px] font-medium transition-all duration-300 ${!i?"bg-foreground text-background shadow-sm":"text-foreground/40"}`,children:e("billingMonthly")}),(0,t.jsx)("button",{onClick:()=>r(!0),className:`rounded-full px-4 py-1.5 text-[12px] font-medium transition-all duration-300 ${i?"bg-foreground text-background shadow-sm":"text-foreground/40"}`,children:e("billingAnnual")})]}),(0,t.jsx)(s.AnimatePresence,{children:i&&(0,t.jsx)(n.motion.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.3,ease:[.16,1,.3,1]},className:"rounded-full bg-emerald-500/10 px-2.5 py-1 text-[11px] font-medium text-emerald-600",children:e("billingAnnualSave")})})]}),(0,t.jsx)("div",{className:"mt-10 grid gap-5",children:d.map(i=>(0,t.jsxs)("div",{style:{height:"480px",borderRadius:"40px",position:"relative",overflow:"hidden",backgroundImage:`url(${i.image})`,backgroundSize:"cover",backgroundPosition:"center"},children:[(0,t.jsx)("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.85) 100%)"}}),(0,t.jsxs)("div",{dir:"auto",style:{position:"absolute",bottom:28,left:28,right:28,zIndex:1},children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,t.jsx)(s.AnimatePresence,{mode:"wait",children:(0,t.jsx)(n.motion.span,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.3,ease:[.16,1,.3,1]},className:"font-serif text-[30px] font-light leading-none text-white",children:i.price},i.price)}),i.period&&(0,t.jsx)("span",{className:"text-[14px] text-white/75",children:i.period}),(0,t.jsx)(s.AnimatePresence,{children:"showBilledAnnually"in i&&i.showBilledAnnually&&(0,t.jsx)(n.motion.span,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3,ease:[.16,1,.3,1]},className:"rounded-full bg-white/10 px-2 py-0.5 text-[10px] font-medium text-white/70 backdrop-blur-sm",children:e("billedAnnually")})})]}),(0,t.jsx)("p",{className:"mt-1 text-[16px] font-semibold text-white",children:i.name})]})]},i.id))})]})]})}function dx(){let e=(0,eD.useTranslations)("faq"),i=e.raw("items");return(0,t.jsx)("section",{className:"px-6 py-24",children:(0,t.jsxs)("div",{className:"mx-auto grid max-w-[1440px] gap-12 lg:grid-cols-[0.38fr_0.62fr]",children:[(0,t.jsxs)(cF,{children:[(0,t.jsx)(n.motion.p,{variants:cD,className:"text-[12px] font-medium uppercase tracking-[0.18em] text-foreground/40",children:e("label")}),(0,t.jsxs)(n.motion.h2,{variants:cD,className:"mt-4 font-serif text-[30px] font-light leading-[1.04] tracking-[-0.03em] text-foreground sm:text-[40px] sm:leading-[44px] [text-wrap:balance]",children:[e("title1")," ",(0,t.jsx)("span",{className:"font-semibold",children:e("titleBold")})," ",e("title2")]})]}),(0,t.jsx)(cF,{children:(0,t.jsx)(n.motion.div,{variants:cD,className:"min-h-[420px]",children:(0,t.jsx)(tL,{items:i,defaultValue:"item-0"})})})]})})}function df(){let e=(0,eD.useTranslations)("cta");return(0,t.jsxs)("section",{className:"relative min-h-[90vh] overflow-hidden rounded-t-[2.5rem] sm:rounded-t-[3.5rem]",style:{willChange:"transform"},children:[(0,t.jsx)("div",{className:"absolute inset-0",children:(0,t.jsx)(cE.FadeImg,{src:"/footer-new.webp",alt:"",className:"h-full w-full object-cover",style:{willChange:"transform"}})}),(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 z-[1] h-[60%] bg-gradient-to-b from-black/50 to-transparent"}),(0,t.jsx)("div",{className:"relative z-10 flex min-h-[90vh] flex-col justify-start px-6 pt-12 sm:pt-14 lg:pt-16",children:(0,t.jsxs)(cF,{className:"mx-auto w-full max-w-[1440px] text-center",children:[(0,t.jsxs)(n.motion.h2,{variants:cD,className:"font-serif font-normal leading-[0.9] tracking-[-0.04em] text-white",style:{fontSize:"clamp(2.5rem, 8vw, 6.5rem)",textWrap:"balance",textShadow:"0 4px 24px rgba(0,0,0,0.35), 0 1px 6px rgba(0,0,0,0.2)"},children:[e("title")," ",(0,t.jsx)("span",{className:"font-bold",children:e("titleHighlight")})]}),(0,t.jsxs)(n.motion.div,{variants:cD,className:"mt-8 flex items-center justify-center gap-4",children:[(0,t.jsx)(i.default,{href:"/register",className:"inline-flex rounded-full bg-white px-8 py-3.5 text-[15px] font-medium text-[#1a1a1a] transition-all duration-300 hover:bg-white/90",children:e("button")}),(0,t.jsx)(i.default,{href:"/pricing",className:"inline-flex rounded-full border border-white/25 bg-white/15 px-8 py-3.5 text-[15px] font-medium text-white transition-all duration-300 hover:bg-white/25",children:e("buttonSecondary")})]})]})})]})}function dm(){let e=(0,eD.useTranslations)("footer"),i={[e("product")]:[{label:e("features"),href:"/features"},{label:e("pricingLink"),href:"/pricing"},{label:e("documentation"),href:(0,r.docsUrl)()}],[e("company")]:[{label:e("contact"),href:"mailto:[email protected]"}],[e("getStarted")]:[{label:e("startFreeTrial"),href:"/register"},{label:e("signIn"),href:"/login"}]};return(0,t.jsx)("footer",{className:"border-t border-[#1a1a1a]/[0.06] bg-[#f5f2ed] px-6 pt-14 pb-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1440px]",children:[(0,t.jsxs)("div",{className:"mb-12 flex items-center gap-4",children:[(0,t.jsx)(cI.Logo,{variant:"black",size:56}),(0,t.jsx)("span",{className:"font-serif text-[24px] font-medium tracking-[-0.02em] text-[#1a1a1a]",children:"Next Cap"})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-10 sm:grid-cols-3 lg:grid-cols-5",children:Object.entries(i).map(([e,i])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-5 text-[11px] font-medium uppercase tracking-[0.12em] text-[#1a1a1a]/35",children:e}),(0,t.jsx)("div",{className:"space-y-3",children:i.map(e=>(0,t.jsx)("p",{children:(0,t.jsx)("a",{href:e.href,className:"text-[13px] text-[#1a1a1a]/70 transition-colors duration-300 hover:text-[#1a1a1a]",children:e.label})},e.label))})]},e))}),(0,t.jsxs)("div",{className:"mt-14 flex flex-col gap-4 pt-5 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-5",children:[(0,t.jsx)("a",{href:"#",className:"text-[12px] text-[#1a1a1a]/35 transition-colors duration-300 hover:text-[#1a1a1a]/60",children:e("terms")}),(0,t.jsx)("a",{href:"#",className:"text-[12px] text-[#1a1a1a]/35 transition-colors duration-300 hover:text-[#1a1a1a]/60",children:e("privacy")}),(0,t.jsx)("a",{href:"#",className:"text-[12px] text-[#1a1a1a]/35 transition-colors duration-300 hover:text-[#1a1a1a]/60",children:e("security")})]}),(0,t.jsxs)("p",{className:"text-[11px] text-[#1a1a1a]/25",children:["© ",e("copyright")]})]})]})})}e.s(["MarketingHomePage",()=>cW],544638)}]);
2
3//# sourceMappingURL=a8135bedbc98dd35.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.