1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3303,(t,e,i)=>{e.exports=t.r(79520)},18726,t=>{"use strict";let e,i,s;var r,n=t.i(43476),a=t.i(22016),o=t.i(57688),l=t.i(3303),h=t.i(71645);let d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],u=new Set(d),c=t=>180*t/Math.PI,m=t=>f(c(Math.atan2(t[1],t[0]))),p={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:m,rotateZ:m,skewX:t=>c(Math.atan(t[1])),skewY:t=>c(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},f=t=>((t%=360)<0&&(t+=360),t),g=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),v=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),x={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:g,scaleY:v,scale:t=>(g(t)+v(t))/2,rotateX:t=>f(c(Math.atan2(t[6],t[5]))),rotateY:t=>f(c(Math.atan2(-t[2],t[0]))),rotateZ:m,rotate:m,skewX:t=>c(Math.atan(t[4])),skewY:t=>c(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function y(t){return+!!t.includes("scale")}function b(t,e){let i,s;if(!t||"none"===t)return y(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=x,s=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=p,s=e}if(!s)return y(e);let n=i[e],a=s[1].split(",").map(w);return"function"==typeof n?n(a):a[n]}function w(t){return parseFloat(t.trim())}let j=t=>e=>"string"==typeof e&&e.startsWith(t),T=j("--"),P=j("var(--"),S=t=>!!P(t)&&A.test(t.split("/*")[0].trim()),A=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function k({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}let N=(t,e,i)=>t+(e-t)*i;function C(t){return void 0===t||1===t}function E({scale:t,scaleX:e,scaleY:i}){return!C(t)||!C(e)||!C(i)}function M(t){return E(t)||V(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function V(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function D(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function R(t,e=0,i=1,s,r){t.min=D(t.min,e,i,s,r),t.max=D(t.max,e,i,s,r)}function L(t,{x:e,y:i}){R(t.x,e.translate,e.scale,e.originPoint),R(t.y,i.translate,i.scale,i.originPoint)}function I(t,e){t.min=t.min+e,t.max=t.max+e}function F(t,e,i,s,r=.5){let n=N(t.min,t.max,r);R(t,e,i,n,s)}function B(t,e){F(t.x,e.x,e.scaleX,e.scale,e.originX),F(t.y,e.y,e.scaleY,e.scale,e.originY)}function O(t,e){return k(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}let U=new Set(["width","height","top","left","right","bottom",...d]),$=(t,e,i)=>i>e?e:i<t?t:i,_={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},W={..._,transform:t=>$(0,1,t)},z={..._,default:1},H=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Y=H("deg"),K=H("%"),X=H("px"),G=H("vh"),q=H("vw"),Z={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(100*t)},J=t=>e=>e.test(t),Q=[_,X,K,Y,q,G,{test:t=>"auto"===t,parse:t=>t}],tt=t=>Q.find(J(t));t.i(47167);let te=()=>{},ti=()=>{},ts=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tr=t=>t===_||t===X,tn=new Set(["x","y","z"]),ta=d.filter(t=>!tn.has(t)),to={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>b(e,"x"),y:(t,{transform:e})=>b(e,"y")};to.translateX=to.x,to.translateY=to.y;let tl=t=>t,th={},td=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tu(t,e){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,a=td.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,r=!1,n=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){a.has(e)&&(d.schedule(e),t()),l++,e(o)}let d={schedule:(t,e=!1,n=!1)=>{let o=n&&r?i:s;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{s.delete(t),a.delete(t)},process:t=>{if(o=t,r){n=!0;return}
1r=!0,[i,s]=[s,i],i.forEach(h),e,l=0,i.clear(),r=!1,n&&(n=!1,d.process(t))}};return d}(n,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:d,update:u,preRender:c,render:m,postRender:p}=a,f=()=>{let n=th.useManualTiming?r.timestamp:performance.now();i=!1,th.useManualTiming||(r.delta=s?1e3/60:Math.max(Math.min(n-r.timestamp,40),1)),r.timestamp=n,r.isProcessing=!0,o.process(r),l.process(r),h.process(r),d.process(r),u.process(r),c.process(r),m.process(r),p.process(r),r.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:td.reduce((e,n)=>{let o=a[n];return e[n]=(e,n=!1,a=!1)=>(!i&&(i=!0,s=!0,r.isProcessing||t(f)),o.schedule(e,n,a)),e},{}),cancel:t=>{for(let e=0;e<td.length;e++)a[td[e]].cancel(t)},state:r,steps:a}}let{schedule:tc,cancel:tm,state:tp,steps:tf}=tu("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tl,!0),tg=new Set,tv=!1,tx=!1,ty=!1;function tb(){if(tx){let t=Array.from(tg).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],ta.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tx=!1,tv=!1,tg.forEach(t=>t.complete(ty)),tg.clear()}function tw(){tg.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tx=!0)})}class tj{constructor(t,e,i,s,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(tg.add(this),tv||(tv=!0,tc.read(tw),tc.resolveKeyframes(tb))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let r=s?.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tg.delete(this)}cancel(){"scheduled"===this.state&&(tg.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tT=t=>Math.round(1e5*t)/1e5,tP=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tA=(t,e)=>i=>!!("string"==typeof i&&tS.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tk=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,n,a,o]=s.match(tP);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},tN={..._,transform:t=>Math.round($(0,255,t))},tC={test:tA("rgb","red"),parse:tk("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+tN.transform(t)+", "+tN.transform(e)+", "+tN.transform(i)+", "+tT(W.transform(s))+")"},tE={test:tA("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:tC.transform},tM={test:tA("hsl","hue"),parse:tk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(tT(e))+", "+K.transform(tT(i))+", "+tT(W.transform(s))+")"},tV={test:t=>tC.test(t)||tE.test(t)||tM.test(t),parse:t=>tC.test(t)?tC.parse(t):tM.test(t)?tM.parse(t):tE.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tC.transform(t):tM.transform(t),getAnimatableNone:t=>{let e=tV.parse(t);return e.alpha=0,tV.transform(e)}},tD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tR="number",tL="color",tI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tF(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,a=e.replace(tI,t=>(tV.test(t)?(s.color.push(n),r.push(tL),i.push(tV.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(tR),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:a,indexes:s,types:r}}function tB(t){return tF(t).values}function tO(t){let{split:e,types:i}=tF(t),s=e.length;return t=>{let r="";for(let n=0;n<s;n++)if(r+=e[n],void 0!==t[n]){let e=i[n];e===tR?r+=tT(t[n]):e===tL?r+=tV.transform(t[n]):r+=t[n]}return r}}let tU=t=>"number"==typeof t?0:tV.test(t)?tV.getAnimatableNone(t):t,t$={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tP)?.length||0)+(t.match(tD)?.length||0)>0},parse:tB,createTransformer:tO,getAnimatableNone:function(t){let e=tB(t);return tO(t)(e.map(tU))}},t_=new Set(["brightness","contrast","saturate","opacity"]);function tW(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(tP)||[];if(!s)return t;let r=i.replace(s,""),n=+!!t_.has(e);return s!==i&&(n*=100),e+"("+n+r+")"}let tz=/\b([a-z-]*)\(.*?\)/gu,tH={...t$,getAnimatableNone:t=>{let e=t.match(tz);return e?e.map(tW).join(" "):t}},tY={..._,transform:Math.round},tK={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,backgroundPositionX:X,backgroundPositionY:X,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:Y,skewX:Y,skewY:Y,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:W,originX:Z,originY:Z,originZ:X,zIndex:tY,fillOpacity:W,strokeOpacity:W,numOctaves:tY},tX={...tK,color:tV,backgroundColor:tV,outlineColor:tV,fill:tV,stroke:tV,borderColor:tV,borderTopColor:tV,borderRightColor:tV,borderBottomColor:tV,borderLeftColor:tV,filter:tH,WebkitFilter:tH},tG=t=>tX[t];function tq(t,e){let i=tG(t);return i!==tH&&(i=t$),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let tZ=new Set(["auto","none","0"]);class tJ extends tj{constructor(t,e,i,s,r){super(t,e,i,s,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&S(s=s.trim())){let r=function t(e,i,s=1){ti(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,n]=function(t){let e=ts.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${i??s}`,r]}(e);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return S(n)?t(n,i,s+1):n}(s,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!U.has(i)||2!==t.length)return;let[s,r]=t,n=tt(s),a=tt(r);if(n!==a)if(tr(n)&&tr(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else to[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;){let e=t[r];"string"==typeof e&&!tZ.has(e)&&tF(e).values.length&&(s=t[r]),r++}if(s&&i)for(let r of e)t[r]=tq(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=to[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,n=i[r];i[r]=to[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tQ=t=>!!(t&&t.getVelocity);function t0(){e=void 0}let t1={now:()=>(void 0===e&&t1.set(tp.isProcessing||th.useManualTiming?tp.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(t0)}};function t2(t,e){-1===t.indexOf(e)&&t.push(e)}function t5(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t3{constructor(){this.subscriptions=[]}add(t){return t2(this.subscriptions,t),()=>t5(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class t4{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t1.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t1.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t3);let i=this.events[t].add(e);return"change"===t?()=>{i(),tc.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return s&&s.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t1.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t6(t,e){return new t4(t,e)}let t9=[...Q,tV,t$],{schedule:t8}=tu(queueMicrotask,!1),t7={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},et={};for(let t in t7)et[t]={isEnabled:e=>t7[t].some(t=>!!e[t])};let ee=()=>({translate:0,scale:1,origin:0,originPoint:0}),ei=()=>({x:ee(),y:ee()}),es=()=>({min:0,max:0}),er=()=>({x:es(),y:es()}),en="undefined"!=typeof window,ea={current:null},eo={current:!1},el=new WeakMap;function eh(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ed(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...eu];function em(t){return eh(t.animate)||ec.some(e=>ed(t[e]))}function ep(t){return!!(em(t)||t.variants)}function ef(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eg(t,e,i,s){if("function"==typeof e){let[r,n]=ef(s);e=e(void 0!==i?i:t.custom,r,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,n]=ef(s);e=e(void 0!==i?i:t.custom,r,n)}return e}let ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ex{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t1.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tc.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=em(e),this.isVariantNode=ep(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==o[t]&&tQ(e)&&e.set(o[t])}}mount(t){this.current=t,el.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),eo.current||function(){if(eo.current=!0,en)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ea.current=t.matches;t.addEventListener("change",e),e()}else ea.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ea.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tm(this.notifyUpdate),tm(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=u.has(t);s&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tc.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in et){let e=et[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):er()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ev.length;e++){let i=ev[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}
1this.prevMotionValues=function(t,e,i){for(let s in e){let r=e[s],n=i[s];if(tQ(r))t.addValue(s,r);else if(tQ(n))t.addValue(s,t6(r,{owner:t}));else if(n!==r)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(s);t.addValue(s,t6(void 0!==e?e:r,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t6(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,r;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let s;s=i,!t9.find(J(s))&&t$.test(e)&&(i=tq(t,e))}this.setBaseTarget(t,tQ(i)?i.get():i)}return tQ(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=eg(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||tQ(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new t3),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t8.render(this.render)}}class ey extends ex{constructor(){super(...arguments),this.KeyframeResolver=tJ}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tQ(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let eb=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ew={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ej=d.length;function eT(t,e,i){let{style:s,vars:r,transformOrigin:n}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(u.has(t)){a=!0;continue}if(T(t)){r[t]=i;continue}{let e=eb(i,tK[t]);t.startsWith("origin")?(o=!0,n[t]=e):s[t]=e}}if(!e.transform&&(a||i?s.transform=function(t,e,i){let s="",r=!0;for(let n=0;n<ej;n++){let a=d[n],o=t[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let t=eb(o,tK[a]);if(!l){r=!1;let e=ew[a]||a;s+=`${e}(${t}) `}i&&(e[a]=t)}}return s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;s.transformOrigin=`${t} ${e} ${i}`}}function eP(t,{style:e,vars:i},s,r){let n,a=t.style;for(n in e)a[n]=e[n];for(n in r?.applyProjectionStyles(a,s),i)a.setProperty(n,i[n])}let eS={};function eA(t,{layout:e,layoutId:i}){return u.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eS[t]||"opacity"===t)}function ek(t,e,i){let{style:s}=t,r={};for(let n in s)(tQ(s[n])||e.style&&tQ(e.style[n])||eA(n,t)||i?.getValue(n)?.liveStyle!==void 0)&&(r[n]=s[n]);return r}class eN extends ey{constructor(){super(...arguments),this.type="html",this.renderInstance=eP}readValueFromInstance(t,e){if(u.has(e))return this.projection?.isProjecting?y(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return b(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(T(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return O(t,e)}build(t,e,i){eT(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return ek(t,e,i)}}let eC=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eE={offset:"stroke-dashoffset",array:"stroke-dasharray"},eM={offset:"strokeDashoffset",array:"strokeDasharray"};function eV(t,{attrX:e,attrY:i,attrScale:s,pathLength:r,pathSpacing:n=1,pathOffset:a=0,...o},l,h,d){if(eT(t,o,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:u,style:c}=t;u.transform&&(c.transform=u.transform,delete u.transform),(c.transform||u.transformOrigin)&&(c.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),c.transform&&(c.transformBox=d?.transformBox??"fill-box",delete u.transformBox),void 0!==e&&(u.x=e),void 0!==i&&(u.y=i),void 0!==s&&(u.scale=s),void 0!==r&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?eE:eM;t[n.offset]=X.transform(-s);let a=X.transform(e),o=X.transform(i);t[n.array]=`${a} ${o}`}(u,r,n,a,!1)}let eD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,e,i){let s=ek(t,e,i);for(let i in t)(tQ(t[i])||tQ(e[i]))&&(s[-1!==d.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class eI extends ey{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=er}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(u.has(e)){let t=tG(e);return t&&t.default||0}return e=eD.has(e)?e:eC(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eL(t,e,i)}build(t,e,i){eV(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in eP(t,e,void 0,s),e.attrs)t.setAttribute(eD.has(i)?i:eC(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}let eF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eB(t){if("string"!=typeof t||t.includes("-"));else if(eF.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let eO=(0,h.createContext)({}),eU=(0,h.createContext)({strict:!1}),e$=(0,h.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),e_=(0,h.createContext)({});function eW(t){return Array.isArray(t)?t.join(" "):t}let ez=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eH(t,e,i){for(let s in e)tQ(e[s])||eA(s,i)||(t[s]=e[s])}let eY=()=>({...ez(),attrs:{}}),eK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eX(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eK.has(t)}let eG=t=>!eX(t);try{r=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof r&&(eG=t=>t.startsWith("on")?!eX(t):r(t))}catch{}let eq=(0,h.createContext)(null);function eZ(t){return tQ(t)?t.get():t}let eJ=t=>(e,i)=>{let s,r=(0,h.useContext)(e_),n=(0,h.useContext)(eq),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,r){return{latestValues:function(t,e,i,s){let r={},n=s(t,{});for(let t in n)r[t]=eZ(n[t]);let{initial:a,animate:o}=t,l=em(t),h=ep(t);e&&h&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let d=!!i&&!1===i.initial,u=(d=d||!1===a)?o:a;if(u&&"boolean"!=typeof u&&!eh(u)){let e=Array.isArray(u)?u:[u];for(let i=0;i<e.length;i++){let s=eg(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,s,r,t),renderState:e()}})(t,e,r,n);return i?a():(null===(s=(0,h.useRef)(null)).current&&(s.current=a()),s.current)},eQ=eJ({scrapeMotionValuesFromProps:ek,createRenderState:ez}
1),e0=eJ({scrapeMotionValuesFromProps:eL,createRenderState:eY}),e1=Symbol.for("motionComponentSymbol");function e2(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let e5="data-"+eC("framerAppearId"),e3=(0,h.createContext)({}),e4=en?h.useLayoutEffect:h.useEffect;function e6(t,{forwardMotionProps:e=!1}={},i,s){i&&function(t){for(let e in t)et[e]={...et[e],...t[e]}}(i);let r=eB(t)?e0:eQ;function a(i,a){var o;let l,d={...(0,h.useContext)(e$),...i,layoutId:function({layoutId:t}){let e=(0,h.useContext)(eO).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:u}=d,c=function(t){let{initial:e,animate:i}=function(t,e){if(em(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ed(e)?e:void 0,animate:ed(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,h.useContext)(e_));return(0,h.useMemo)(()=>({initial:e,animate:i}),[eW(e),eW(i)])}(i),m=r(i,u);if(!u&&en){(0,h.useContext)(eU).strict;let e=function(t){let{drag:e,layout:i}=et;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(d);l=e.MeasureLayout,c.visualElement=function(t,e,i,s,r){let{visualElement:n}=(0,h.useContext)(e_),a=(0,h.useContext)(eU),o=(0,h.useContext)(eq),l=(0,h.useContext)(e$).reducedMotion,d=(0,h.useRef)(null);s=s||a.renderer,!d.current&&s&&(d.current=s(t,{visualState:e,parent:n,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let u=d.current,c=(0,h.useContext)(e3);u&&!u.projection&&r&&("html"===u.type||"svg"===u.type)&&function(t,e,i,s){let{layoutId:r,layout:n,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!a||o&&e2(o),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:h})}(d.current,i,r,c);let m=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{u&&m.current&&u.update(i,o)});let p=i[e5],f=(0,h.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return e4(()=>{u&&(m.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),f.current&&u.animationState&&u.animationState.animateChanges())}),(0,h.useEffect)(()=>{u&&(!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1),u.enteringChildren=void 0)}),u}(t,m,d,s,e.ProjectionNode)}return(0,n.jsxs)(e_.Provider,{value:c,children:[l&&c.visualElement?(0,n.jsx)(l,{visualElement:c.visualElement,...d}):null,function(t,e,i,{latestValues:s},r,n=!1){let a=(eB(t)?function(t,e,i,s){let r=(0,h.useMemo)(()=>{let i=eY();return eV(i,e,eR(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eH(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,s,r={},n=(i=t.style||{},eH(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,h.useMemo)(()=>{let i=ez();return eT(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r})(e,s,r,t),o=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(eG(r)||!0===i&&eX(r)||!e&&!eX(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(e,"string"==typeof t,n),l=t!==h.Fragment?{...o,...a,ref:i}:{},{children:d}=e,u=(0,h.useMemo)(()=>tQ(d)?d.get():d,[d]);return(0,h.createElement)(t,{...l,children:u})}(t,i,(o=c.visualElement,(0,h.useCallback)(t=>{t&&m.onMount&&m.onMount(t),o&&(t?o.mount(t):o.unmount()),a&&("function"==typeof a?a(t):e2(a)&&(a.current=t))},[o])),m,u,e)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let o=(0,h.forwardRef)(a);return o[e1]=t,o}function e9(t,e,i){let s=t.getProps();return eg(s,e,void 0!==i?i:s.custom,t)}function e8(t,e){return t?.[e]??t?.default??t}let e7=t=>Array.isArray(t);function it(t,e){let i=t.getValue("willChange");if(tQ(i)&&i.add)return i.add(e);if(!i&&th.WillChange){let i=new th.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}function ie(t){t.duration=0,t.type}let ii=(t,e)=>i=>e(t(i)),is=(...t)=>t.reduce(ii),ir=t=>1e3*t,ia={layout:0,mainThread:0,waapi:0};function io(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function il(t,e){return i=>i>0?e:t}let ih=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},id=[tE,tC,tM];function iu(t){let e=id.find(e=>e.test(t));if(te(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tM&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;r=io(o,s,t+1/3),n=io(o,s,t),a=io(o,s,t-1/3)}else r=n=a=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*a),alpha:s}}(i)),i}let ic=(t,e)=>{let i=iu(t),s=iu(e);if(!i||!s)return il(t,e);let r={...i};return t=>(r.red=ih(i.red,s.red,t),r.green=ih(i.green,s.green,t),r.blue=ih(i.blue,s.blue,t),r.alpha=N(i.alpha,s.alpha,t),tC.transform(r))},im=new Set(["none","hidden"]);function ip(t,e){return i=>N(t,e,i)}function ig(t){return"number"==typeof t?ip:"string"==typeof t?S(t)?il:tV.test(t)?ic:iy:Array.isArray(t)?iv:"object"==typeof t?tV.test(t)?ic:ix:il}function iv(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>ig(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function ix(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=ig(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let iy=(t,e)=>{let i=t$.createTransformer(e),s=tF(t),r=tF(e);if(!(s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length))return te(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),il(t,e);if(im.has(t)&&!r.values.length||im.has(e)&&!s.values.length)return im.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return is(iv(function(t,e){let i=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let n=e.types[r],a=t.indexes[n][s[n]],o=t.values[a]??0;i[r]=o,s[n]++}return i}(s,r),r.values),i)};function ib(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?N(t,e,i):ig(t)(t,e)}let iw=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tc.update(e,t),stop:()=>tm(e),now:()=>tp.isProcessing?tp.timestamp:t1.now()}},ij=(t,e,i=10)=>{let s="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)s+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};function iT(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function iP(t,e,i){var s,r;let n=Math.max(e-5,0);return s=i-t(n),(r=e-n)?1e3/r*s:0}let iS=.01,iA=2,ik=.005,iN=.5;function iC(t,e){return t*Math.sqrt(1-e*e)}let iE=["duration","bounce"],iM=["stiffness","damping","mass"];function iV(t,e){return e.some(e=>void 0!==t[e])}function iD(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:n}=s,a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:h,damping:d,mass:u,duration:c,velocity:m,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iV(t,iM)&&iV(t,iE))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*$(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let r,n;te(t<=ir(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=$(.05,1,a),t=$(.01,10,t/1e3),a<1?(r=e=>{let s=e*a,r=s*t;return .001-(s-i)/iC(e,a)*Math.exp(-r)},n=e=>{let s=e*a*t,n=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-s),l=iC(Math.pow(e,2),a);return(s*i+i-n)*o*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));
1let o=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(r,n,5/t);if(t=ir(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),f=m||0,g=d/(2*Math.sqrt(h*u)),v=o-a,x=Math.sqrt(h/u)/1e3,y=5>Math.abs(v);if(r||(r=y?iS:iA),n||(n=y?ik:iN),g<1){let t=iC(x,g);i=e=>o-Math.exp(-g*x*e)*((f+g*x*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>o-Math.exp(-x*t)*(v+(f+x*v)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),s=Math.min(t*e,300);return o-i*((f+g*x*v)*Math.sinh(s)+t*v*Math.cosh(s))/t}}let b={calculatedDuration:p&&c||null,next:t=>{let e=i(t);if(p)l.done=t>=c;else{let s=0===t?f:0;g<1&&(s=0===t?ir(f):iP(i,t,e));let a=Math.abs(o-e)<=n;l.done=Math.abs(s)<=r&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(iT(b),2e4),e=ij(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function iR({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:d}){let u,c,m=t[0],p={done:!1,value:m},f=i*e,g=m+f,v=void 0===a?g:a(g);v!==g&&(f=v-m);let x=t=>-f*Math.exp(-t/s),y=t=>v+x(t),b=t=>{let e=x(t),i=y(t);p.done=Math.abs(e)<=h,p.value=p.done?v:i},w=t=>{let e;if(e=p.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;u=t,c=iD({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:iP(y,t,p.value),damping:r,stiffness:n,restDelta:h,restSpeed:d})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==u||(e=!0,b(t),w(t)),void 0!==u&&t>=u)?c.next(t-u):(e||b(t),p)}}}iD.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),r=Math.min(iT(s),2e4);return{type:"keyframes",ease:t=>s.next(r*t).value/e,duration:r/1e3}}(t,100,iD);return t.ease=e.ease,t.duration=ir(e.duration),t.type="keyframes",t};let iL=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iI(t,e,i,s){return t===e&&i===s?tl:r=>0===r||1===r?r:iL(function(t,e,i,s,r){let n,a,o=0;do(n=iL(a=e+(i-e)/2,s,r)-t)>0?i=a:e=a;while(Math.abs(n)>1e-7&&++o<12)return a}(r,0,1,t,i),e,s)}let iF=iI(.42,0,1,1),iB=iI(0,0,.58,1),iO=iI(.42,0,.58,1),iU=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i$=t=>e=>1-t(1-e),i_=iI(.33,1.53,.69,.99),iW=i$(i_),iz=iU(iW),iH=t=>(t*=2)<1?.5*iW(t):.5*(2-Math.pow(2,-10*(t-1))),iY=t=>1-Math.sin(Math.acos(t)),iK=i$(iY),iX=iU(iY),iG=t=>Array.isArray(t)&&"number"==typeof t[0],iq={linear:tl,easeIn:iF,easeInOut:iO,easeOut:iB,circIn:iY,circInOut:iX,circOut:iK,backIn:iW,backInOut:iz,backOut:i_,anticipate:iH},iZ=t=>{if(iG(t)){ti(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,r]=t;return iI(e,i,s,r)}return"string"==typeof t?(ti(void 0!==iq[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iq[t]):t},iJ=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function iQ({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var r;let n,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(iZ):iZ(s),o={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:s,mixer:r}={}){let n=t.length;if(ti(n===e.length,"Both input and output ranges must be the same length","range-length"),1===n)return()=>e[0];if(2===n&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let s=[],r=i||th.mix||ib,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);e&&(n=is(Array.isArray(e)?e[i]||tl:e,n)),s.push(n)}return s}(e,s,r),l=o.length,h=i=>{if(a&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=iJ(t[s],t[s+1],i);return o[s](r)};return i?e=>h($(t[0],t[n-1],e)):h}((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=iJ(0,e,s);t.push(N(i,1,r))}}(n=[0],e.length-1),n),r.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||iO).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let i0=t=>null!==t;function i1(t,{repeat:e,repeatType:i="loop"},s,r=1){let n=t.filter(i0),a=r<0||e&&"loop"!==i&&e%2==1?0:n.length-1;return a&&void 0!==s?s:n[a]}let i2={decay:iR,inertia:iR,tween:iQ,keyframes:iQ,spring:iD};function i5(t){"string"==typeof t.type&&(t.type=i2[t.type])}class i3{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let i4=t=>t/100;class i6 extends i3{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t1.now()&&this.tick(t1.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ia.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i5(t);let{type:e=iQ,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:n=0}=t,{keyframes:a}=t,o=e||iQ;o!==iQ&&"number"!=typeof a[0]&&(this.mixKeyframes=is(i4,ib(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-n})),null===l.calculatedDuration&&(l.calculatedDuration=iT(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:n,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:d,repeatType:u,repeatDelay:c,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,y=i;
1if(d){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===u?(i=1-i,c&&(i-=c/a)):"mirror"===u&&(y=n)),x=$(0,1,i)*a}let b=v?{done:!1,value:h[0]}:y.next(x);r&&(b.value=r(b.value));let{done:w}=b;v||null===o||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&m!==iR&&(b.value=i1(h,this.options,f,this.speed)),p&&p(b.value),j&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(t){t=ir(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(t1.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iw,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t1.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ia.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function i9(t){let e;return()=>(void 0===e&&(e=t()),e)}let i8=i9(()=>void 0!==window.ScrollTimeline),i7={},st=(i=i9(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>i7.linearEasing??i()),se=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,si={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:se([0,.65,.55,1]),circOut:se([.55,0,1,.45]),backIn:se([.31,.01,.66,-.59]),backOut:se([.33,1.53,.69,.99])};function ss(t){return"function"==typeof t&&"applyToOptions"in t}class sr extends i3{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:r,allowFlatten:n=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!r,this.allowFlatten=n,this.options=t,ti("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return ss(t)&&st()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let d={[e]:i};l&&(d.offset=l);let u=function t(e,i){if(e)return"function"==typeof e?st()?ij(e,i):"ease-out":iG(e)?se(e):Array.isArray(e)?e.map(e=>t(e,i)||si.easeOut):si[e]}(o,r);Array.isArray(u)&&(d.easing=u);let c={delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:n+1,direction:"reverse"===a?"alternate":"normal"};h&&(c.pseudoElement=h);let m=t.animate(d,c);return m}(e,i,s,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=i1(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=ir(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&i8())?(this.animation.timeline=t,tl):e(this)}}let sn={anticipate:iH,backInOut:iz,circInOut:iX};class sa extends sr{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in sn&&(t.ease=sn[t.ease])}(t),i5(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:r,...n}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new i6({...n,autoplay:!1}),o=ir(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let so=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t$.test(t)||"0"===t)&&!t.startsWith("url(")),sl=new Set(["opacity","clipPath","filter","transform"]),sh=i9(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sd extends i3{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",keyframes:a,name:o,motionValue:l,element:h,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t1.now();const u={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,name:o,motionValue:l,element:h,...d},c=h?.KeyframeResolver||tj;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,u,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:r,type:n,velocity:a,delay:o,isHandoff:l,onUpdate:h}=i;
1this.resolvedAt=t1.now(),!function(t,e,i,s){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],a=so(r,e),o=so(n,e);return te(a===o,`You are trying to animate ${e} from "${r}" to "${n}". "${a?n:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ss(i))&&s)}(t,r,n,a)&&((th.instantAnimations||!o)&&h?.(i1(t,i,e)),t[0]=t[t.length-1],ie(i),i.repeat=0);let d={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},u=!l&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return sh()&&i&&sl.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==r&&0!==n&&"inertia"!==a}(d)?new sa({...d,element:d.motionValue.owner.current}):new i6(d);u.finished.then(()=>this.notifyFinished()).catch(tl),this.pendingTimeline&&(this.stopTimeline=u.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=u}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ty=!0,tw(),tb(),ty=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let su=t=>null!==t,sc={type:"spring",stiffness:500,damping:25,restSpeed:10},sm={type:"keyframes",duration:.8},sp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sf=(t,e,i,s={},r,n)=>a=>{let o=e8(s,t)||{},l=o.delay||s.delay||0,{elapsed:h=0}=s;h-=ir(l);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-h,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:n?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:a,repeatDelay:o,from:l,elapsed:h,...d}){return!!Object.keys(d).length}(o)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?sm:u.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:sc:sp)(t,d)),d.duration&&(d.duration=ir(d.duration)),d.repeatDelay&&(d.repeatDelay=ir(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(ie(d),0===d.delay&&(c=!0)),(th.instantAnimations||th.skipAnimations)&&(c=!0,ie(d),d.delay=0),d.allowFlatten=!o.type&&!o.ease,c&&!n&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(su),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[n]}(d.keyframes,o);if(void 0!==t)return void tc.update(()=>{d.onUpdate(t),d.onComplete()})}return o.isSync?new i6(d):new sd(d)};function sg(t,e,{delay:i=0,transitionOverride:s,type:r}={}){let{transition:n=t.getDefaultTransition(),transitionEnd:a,...o}=e;s&&(n=s);let l=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in o){let s=t.getValue(e,t.latestValues[e]??null),r=o[e];if(void 0===r||h&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(h,e))continue;let a={delay:i,...e8(n||{},e)},d=s.get();if(void 0!==d&&!s.isAnimating&&!Array.isArray(r)&&r===d&&!a.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){let i=t.props[e5];if(i){let t=window.MotionHandoffAnimation(i,e,tc);null!==t&&(a.startTime=t,u=!0)}}it(t,e),s.start(sf(e,s,r,t.shouldReduceMotion&&U.has(e)?{type:!1}:a,t,u));let c=s.animation;c&&l.push(c)}return a&&Promise.all(l).then(()=>{tc.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=e9(t,e)||{};for(let e in r={...r,...i}){var n;let i=e7(n=r[e])?n[n.length-1]||0:n;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t6(i))}}(t,a)})}),l}function sv(t,e,i,s=0,r=1){let n=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*s;return"function"==typeof i?i(n,a):1===r?n*s:o-n*s}function sx(t,e,i={}){let s=e9(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let n=s?()=>Promise.all(sg(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=r;
1return function(t,e,i=0,s=0,r=0,n=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(sx(l,e,{...a,delay:i+("function"==typeof s?0:s)+sv(t.variantChildren,l,s,r,n)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,s,n,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([n(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[n,a]:[a,n];return t().then(()=>e())}}function sy(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let sb=ec.length,sw=[...eu].reverse(),sj=eu.length;function sT(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sP(){return{animate:sT(!0),whileInView:sT(),whileHover:sT(),whileTap:sT(),whileDrag:sT(),whileFocus:sT(),exit:sT()}}class sS{constructor(t){this.isMounted=!1,this.node=t}update(){}}let sA=0,sk={x:!1,y:!1};function sN(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let sC=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function sE(t){return{point:{x:t.pageX,y:t.pageY}}}function sM(t,e,i,s){return sN(t,e,t=>sC(t)&&i(t,sE(t)),s)}function sV(t){return t.max-t.min}function sD(t,e,i,s=.5){t.origin=s,t.originPoint=N(e.min,e.max,t.origin),t.scale=sV(i)/sV(e),t.translate=N(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function sR(t,e,i,s){sD(t.x,e.x,i.x,s?s.originX:void 0),sD(t.y,e.y,i.y,s?s.originY:void 0)}
1function sL(t,e,i){t.min=i.min+e.min,t.max=t.min+sV(e)}function sI(t,e,i){t.min=e.min-i.min,t.max=t.min+sV(e)}function sF(t,e,i){sI(t.x,e.x,i.x),sI(t.y,e.y,i.y)}function sB(t){return[t("x"),t("y")]}let sO=({current:t})=>t?t.ownerDocument.defaultView:null,sU=(t,e)=>Math.abs(t-e);class s${constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:r=!1,distanceThreshold:n=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=sz(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(sU(t.x,e.x)**2+sU(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!r)return;let{point:n}=i,{timestamp:a}=tp;this.history.push({...n,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=s_(e,this.transformPagePoint),tc.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=sz("pointercancel"===t.type?this.lastMoveEventInfo:s_(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!sC(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=n,this.contextWindow=s||window;const a=s_(sE(t),this.transformPagePoint),{point:o}=a,{timestamp:l}=tp;this.history=[{...o,timestamp:l}];const{onSessionStart:h}=e;h&&h(t,sz(a,this.history)),this.removeListeners=is(sM(this.contextWindow,"pointermove",this.handlePointerMove),sM(this.contextWindow,"pointerup",this.handlePointerUp),sM(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tm(this.updatePoint)}}function s_(t,e){return e?{point:e(t.point)}:t}function sW(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sz({point:t},e){return{point:t,delta:sW(t,sH(e)),offset:sW(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=sH(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>ir(.1)));)i--;if(!s)return{x:0,y:0};let n=(r.timestamp-s.timestamp)/1e3;if(0===n)return{x:0,y:0};let a={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function sH(t){return t[t.length-1]}function sY(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sK(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function sX(t,e,i){return{min:sG(t,e),max:sG(t,i)}}function sG(t,e){return"number"==typeof t?t:t[e]||0}let sq=new WeakMap;class sZ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=er(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(sE(t).point)},n=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(sk[t])return null;else return sk[t]=!0,()=>{sk[t]=!1};return sk.x||sk.y?null:(sk.x=sk.y=!0,()=>{sk.x=sk.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sB(t=>{let e=this.getAxisMotionValue(t).get()||0;if(K.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=sV(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tc.postRender(()=>r(t,e)),it(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>sB(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new s$(t,{onSessionStart:r,onStart:n,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:sO(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!i)return;let{velocity:n}=s;this.startAnimation(n);let{onDragEnd:a}=this.getProps();a&&tc.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!sJ(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?N(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?N(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&e2(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:sY(t.x,i,r),y:sY(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sX(t,"left","right"),y:sX(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&sB(t=>{var e,s;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],r={},void 0!==s.min&&(r.min=s.min-e.min),void 0!==s.max&&(r.max=s.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e2(e))return!1;let s=e.current;ti(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let n=function(t,e,i){let s=O(t,i),{scroll:r}=e;return r&&(I(s.x,r.offset.x),I(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),a=(t=r.layout.layoutBox,{x:sK(t.x,n.x),y:sK(t.y,n.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=k(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(sB(a=>{if(!sJ(a,e,this.currentDirection))return;let l=o&&o[a]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return it(this.visualElement,t),i.start(sf(t,i,0,e,this.visualElement,!1))}stopAnimation(){sB(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){sB(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){sB(e=>{let{drag:i}=this.getProps();if(!sJ(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-N(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e2(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sB(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let n,a,o,l=e.get();s[t]=(i={min:l,max:l},r=this.constraints[t],n=.5,a=sV(i),(o=sV(r))>a?n=iJ(r.min,r.max-a,i.min):a>o&&(n=iJ(i.min,i.max-o,r.min)),$(0,1,n))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),sB(e=>{if(!sJ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set(N(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;sq.set(this.visualElement,this);let t=sM(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e2(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tc.read(e);let r=sN(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sB(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:a}}}function sJ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sQ=t=>(e,i)=>{t&&tc.postRender(()=>t(e,i))};var s0=h;let s1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function s2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let s5={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!X.test(t))return t;else t=parseFloat(t);let i=s2(t,e.target.x),s=s2(t,e.target.y);return`${i}% ${s}%`}},s3=!1;class s4 extends s0.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;for(let t in s9)eS[t]=s9[t],T(t)&&(eS[t].isCSSVariable=!0);r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),s3&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),s1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,{projection:n}=i;return n&&(n.isPresent=r,s3=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==r?n.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?n.promote():n.relegate()||tc.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t8.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s3=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function s6(t){let[e,i]=function(t=!0){let e=(0,h.useContext)(eq);
1if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:r}=e,n=(0,h.useId)();(0,h.useEffect)(()=>{if(t)return r(n)},[t]);let a=(0,h.useCallback)(()=>t&&s&&s(n),[n,s,t]);return!i&&s?[!1,a]:[!0]}(),s=(0,s0.useContext)(eO);return(0,n.jsx)(s4,{...t,layoutGroup:s,switchLayoutGroup:(0,s0.useContext)(e3),isPresent:e,safeToRemove:i})}let s9={borderRadius:{...s5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:s5,borderTopRightRadius:s5,borderBottomLeftRadius:s5,borderBottomRightRadius:s5,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=t$.parse(t);if(s.length>5)return t;let r=t$.createTransformer(t),n=+("number"!=typeof s[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+n]/=a,s[1+n]/=o;let l=N(a,o,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};function s8(t){return"object"==typeof t&&null!==t}function s7(t){return s8(t)&&"ownerSVGElement"in t}let rt=(t,e)=>t.depth-e.depth;class re{constructor(){this.children=[],this.isDirty=!1}add(t){t2(this.children,t),this.isDirty=!0}remove(t){t5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rt),this.isDirty=!1,this.children.forEach(t)}}let ri=["TopLeft","TopRight","BottomLeft","BottomRight"],rs=ri.length,rr=t=>"string"==typeof t?parseFloat(t):t,rn=t=>"number"==typeof t||X.test(t);function ra(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ro=rh(0,.5,iK),rl=rh(.5,.95,tl);function rh(t,e,i){return s=>s<t?0:s>e?1:i(iJ(t,e,s))}function rd(t,e){t.min=e.min,t.max=e.max}function ru(t,e){rd(t.x,e.x),rd(t.y,e.y)}function rc(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rm(t,e,i,s,r){return t-=e,t=s+1/i*(t-s),void 0!==r&&(t=s+1/r*(t-s)),t}function rp(t,e,[i,s,r],n,a){!function(t,e=0,i=1,s=.5,r,n=t,a=t){if(K.test(e)&&(e=parseFloat(e),e=N(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=N(n.min,n.max,s);t===n&&(o-=e),t.min=rm(t.min,e,i,o,r),t.max=rm(t.max,e,i,o,r)}(t,e[i],e[s],e[r],e.scale,n,a)}let rf=["x","scaleX","originX"],rg=["y","scaleY","originY"];function rv(t,e,i,s){rp(t.x,e,rf,i?i.x:void 0,s?s.x:void 0),rp(t.y,e,rg,i?i.y:void 0,s?s.y:void 0)}function rx(t){return 0===t.translate&&1===t.scale}function ry(t){return rx(t.x)&&rx(t.y)}function rb(t,e){return t.min===e.min&&t.max===e.max}function rw(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rj(t,e){return rw(t.x,e.x)&&rw(t.y,e.y)}function rT(t){return sV(t.x)/sV(t.y)}function rP(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rS{constructor(){this.members=[]}add(t){t2(this.members,t),t.scheduleRender()}remove(t){if(t5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rA=["","X","Y","Z"],rk=0;function rN(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function rC({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rk++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(rV),this.nodes.forEach(rO),this.nodes.forEach(rU),this.nodes.forEach(rD)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new re)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t3),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=s7(e)&&!(s7(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,r=()=>this.root.updateBlockedByResize=!1;tc.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,n;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=t1.now(),n=({timestamp:t})=>{let i=t-e;i>=250&&(tm(n),r(i-250))},tc.setup(n,!0),i=()=>tm(n),s1.hasAnimatedSinceResize&&(s1.hasAnimatedSinceResize=!1,this.nodes.forEach(rB))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||r.getDefaultTransition()||rY,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!rj(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...e8(n,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||rB(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tm(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r$),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[e5];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tc,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(rL);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rI);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rF),this.nodes.forEach(rE),this.nodes.forEach(rM)):this.nodes.forEach(rI),this.clearAllSnapshots();let t=t1.now();tp.delta=$(0,1e3/60,t-tp.timestamp),tp.timestamp=t,tp.isProcessing=!0,tf.update.process(tp),tf.preRender.process(tp),tf.render.process(tp),tp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rR),this.sharedNodes.forEach(r_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tc.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tc.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sV(this.snapshot.measuredBox.x)||sV(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=er(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ry(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||M(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),rG((e=s).x),rG(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return er();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rZ))){let{scroll:t}=this.root;t&&(I(e.x,t.offset.x),I(e.y,t.offset.y))}return e}removeElementScroll(t){let e=er();if(ru(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&ru(e,t),I(e.x,r.offset.x),I(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=er();ru(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&B(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),M(s.latestValues)&&B(i,s.latestValues)}return M(this.latestValues)&&B(i,this.latestValues),i}removeTransform(t){let e=er();ru(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!M(i.latestValues))continue;E(i.latestValues)&&i.updateSnapshot();let s=er();ru(s,i.measurePageBox()),rv(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return M(this.latestValues)&&rv(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:r}=this.options;if(this.layout&&(s||r)){if(this.resolvedRelativeTargetAt=tp.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=er(),this.relativeTargetOrigin=er(),sF(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),ru(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=er(),this.targetWithTransforms=er()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var n,a,o;this.forceRelativeParentToResolveTarget(),n=this.target,a=this.relativeTarget,o=this.relativeParent.target,sL(n.x,a.x,o.x),sL(n.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ru(this.target,this.layout.layoutBox),L(this.target,this.targetDelta)):ru(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=er(),this.relativeTargetOrigin=er(),sF(this.relativeTargetOrigin,this.target,t.target),ru(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}}getClosestProjectingParent(){if(!(!this.parent||E(this.parent.latestValues)||V(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tp.timestamp&&(i=!1),i)return;let{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||r))return;ru(this.layoutCorrected,this.layout.layoutBox);let n=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let r,n,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){n=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&B(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,L(t,n)),s&&M(r.latestValues)&&B(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=er());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rc(this.prevProjectionDelta.x,this.projectionDelta.x),rc(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sR(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===n&&this.treeScale.y===a&&rP(this.projectionDelta.x,this.prevProjectionDelta.x)&&rP(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ei(),this.projectionDelta=ei(),this.projectionDeltaWithTransform=ei()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},a=ei();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=er(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,u=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(rH));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(rW(a.x,t.x,s),rW(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,m,p,f,g;sF(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,g=s,rz(m.x,p.x,f.x,g),rz(m.y,p.y,f.y,g),i&&(h=this.relativeTarget,c=i,rb(h.x,c.x)&&rb(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=er()),ru(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=N(0,i.opacity??1,ro(s)),t.opacityExit=N(e.opacity??1,0,rl(s))):n&&(t.opacity=N(e.opacity??1,i.opacity??1,s));for(let r=0;r<rs;r++){let n=`border${ri[r]}Radius`,a=ra(e,n),o=ra(i,n);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||rn(a)===rn(o)?(t[n]=Math.max(N(rr(a),rr(o),s),0),(K.test(o)||K.test(a))&&(t[n]+="%")):t[n]=o)}(e.rotate||i.rotate)&&(t.rotate=N(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,u,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tm(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tc.update(()=>{var e,i,s;let r;s1.hasAnimatedSinceResize=!0,ia.layout++,this.motionValue||(this.motionValue=t6(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ia.layout--},onComplete:()=>{ia.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=tQ(e)?e:t6(e)).start(sf("",r,i,s)),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&rq(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||er();let e=sV(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=sV(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}ru(e,i),B(e,r),sR(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rS),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&rN("z",t,s,this.animationValues);for(let e=0;e<rA.length;e++)rN(`rotate${rA[e]}`,t,s,this.animationValues),rN(`skew${rA[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eZ(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eZ(e?.pointerEvents)||""),this.hasProjected&&!M(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=s.animationValues||s.latestValues;this.applyTransformsToTarget();let n=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,a=i?.z||0;if((r||n||a)&&(s=`translate3d(${r}px, ${n}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:a,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(n=i(r,n)),t.transform=n;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?t.opacity=s===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=s===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eS){if(void 0===r[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eS[e],l="none"===n?r[e]:i(r[e],s);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?eZ(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rL),this.root.sharedNodes.clear()}}}function rE(t){t.updateLayout()}function rM(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,n=e.source!==t.layout.source;"size"===r?sB(t=>{let s=n?e.measuredBox[t]:e.layoutBox[t],r=sV(s);s.min=i[t].min,s.max=s.min+r}):rq(r,e.layoutBox,i)&&sB(s=>{let r=n?e.measuredBox[s]:e.layoutBox[s],a=sV(i[s]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=ei();sR(a,i,e.layoutBox);let o=ei();n?sR(o,t.applyTransform(s,!0),e.measuredBox):sR(o,i,e.layoutBox);let l=!ry(a),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let a=er();sF(a,e.layoutBox,r.layoutBox);let o=er();sF(o,i,n.layoutBox),rj(a,o)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rV(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rD(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rR(t){t.clearSnapshot()}function rL(t){t.clearMeasurements()}function rI(t){t.isLayoutDirty=!1}function rF(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rB(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rO(t){t.resolveTargetDelta()}function rU(t){t.calcProjection()}function r$(t){t.resetSkewAndRotation()}function r_(t){t.removeLeadSnapshot()}function rW(t,e,i){t.translate=N(e.translate,0,i),t.scale=N(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rz(t,e,i,s){t.min=N(e.min,i.min,s),t.max=N(e.max,i.max,s)}function rH(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rY={duration:.45,ease:[.4,0,.1,1]},rK=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rX=rK("applewebkit/")&&!rK("chrome/")?Math.round:tl;function rG(t){t.min=rX(t.min),t.max=rX(t.max)}function rq(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rT(e)-rT(i)))}function rZ(t){return t!==t.root&&t.scroll?.wasRoot}let rJ=rC({attachResizeListener:(t,e)=>sN(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rQ={current:void 0},r0=rC({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rQ.current){let t=new rJ({});t.mount(window),t.setOptions({layoutScroll:!0}),rQ.current=t}return rQ.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function r1(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function r2(t){return!("touch"===t.pointerType||sk.x||sk.y)}function r5(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=s["onHover"+i];r&&tc.postRender(()=>r(e,sE(e)))}let r3=(t,e)=>!!e&&(t===e||r3(t,e.parentElement)),r4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r6=new WeakSet;function r9(t){return e=>{"Enter"===e.key&&t(e)}}function r8(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function r7(t){return sC(t)&&!(sk.x||sk.y)}function nt(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=s["onTap"+("End"===i?"":i)];r&&tc.postRender(()=>r(e,sE(e)))}let ne=new WeakMap,ni=new WeakMap,ns=t=>{let e=ne.get(t.target);e&&e(t)},nr=t=>{t.forEach(ns)},nn={some:0,all:1},na=function(t,e){if("undefined"==typeof Proxy)return e6;let i=new Map,s=(i,s)=>e6(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(r,n)=>"create"===n?s:(i.has(n)||i.set(n,e6(n,void 0,t,e)),i.get(n))})}({animation:{Feature:class extends sS{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>sx(t,e,i)));else if("string"==typeof e)s=sx(t,e,i);else{let r="function"==typeof e?e9(t,e,i.custom):e;s=Promise.all(sg(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sP(),s=!0,r=e=>(i,s)=>{let r=e9(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...s}=r;i={...i,...s,...e}}return i};function n(n){let{props:a}=t,o=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<sb;t++){let s=ec[t],r=e.props[s];(ed(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},l=[],h=new Set,d={},u=1/0;for(let e=0;e<sj;e++){var c,m;let p=sw[e],f=i[p],g=void 0!==a[p]?a[p]:o[p],v=ed(g),x=p===n?f.isActive:null;!1===x&&(u=e);let y=g===o[p]&&g!==a[p]&&v;if(y&&s&&t.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...d},!f.isActive&&null===x||!g&&!f.prevProp||eh(g)||"boolean"==typeof g)continue;let b=(c=f.prevProp,"string"==typeof(m=g)?m!==c:!!Array.isArray(m)&&!sy(m,c)),w=b||p===n&&f.isActive&&!y&&v||e>u&&v,j=!1,T=Array.isArray(g)?g:[g],P=T.reduce(r(p),{});!1===x&&(P={});let{prevResolvedValues:S={}}=f,A={...S,...P},k=e=>{w=!0,h.has(e)&&(j=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in A){let e=P[t],i=S[t];if(!d.hasOwnProperty(t))(e7(e)&&e7(i)?sy(e,i):e===i)?void 0!==e&&h.has(t)?k(t):f.protectedKeys[t]=!0:null!=e?k(t):h.add(t)}f.prevProp=g,f.prevResolvedValues=P,f.isActive&&(d={...d,...P}),s&&t.blockInitialAnimation&&(w=!1);let N=y&&b,C=!N||j;w&&C&&l.push(...T.map(e=>{let i={type:p};if("string"==typeof e&&s&&!N&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,r=e9(s,e);if(s.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=sv(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=e9(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let p=!!l.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(l):Promise.resolve()}return{animateChanges:n,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let r=n(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sP(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends sS{constructor(){super(...arguments),this.id=sA++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends sS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:n="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:nn[n]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;ni.has(i)||ni.set(i,{});let s=ni.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(nr,{root:t,...e})),s[r]}(o),ne.set(t,l),e.observe(t),()=>{ne.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends sS{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,r,n]=r1(t,i),a=t=>{let s=t.currentTarget;if(!r7(t))return;r6.add(s);let n=e(s,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),r6.has(s)&&r6.delete(s),r7(t)&&"function"==typeof n&&n(t,{success:e})},o=t=>{a(t,s===window||s===document||i.useGlobalTarget||r3(s,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return s.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,r),s8(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=r9(()=>{if(r6.has(i))return;r8(i,"down");let t=r9(()=>{r8(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>r8(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,r)),r4.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),n}(t,(t,e)=>(nt(this.node,e,"Start"),(t,{success:e})=>nt(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends sS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=is(sN(this.node.current,"focus",()=>this.onFocus()),sN(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends sS{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,r,n]=r1(t,i),a=t=>{if(!r2(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let n=t=>{r2(t)&&(s(t),i.removeEventListener("pointerleave",n))};i.addEventListener("pointerleave",n,r)};return s.forEach(t=>{t.addEventListener("pointerenter",a,r)}),n}(t,(t,e)=>(r5(this.node,e,"Start"),t=>r5(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends sS{constructor(){super(...arguments),this.removePointerDownListener=tl}onPointerDown(t){this.session=new s$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sO(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:sQ(t),onStart:sQ(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&tc.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=sM(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends sS{constructor(t){super(t),this.removeGroupControls=tl,this.removeListeners=tl,this.controls=new sZ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tl}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:r0,MeasureLayout:s6},layout:{ProjectionNode:r0,MeasureLayout:s6}},(t,e)=>eB(t)?new eI(e):new eN(e,{allowProjection:t!==h.Fragment}));var no=t.i(19455),nl=t.i(3374),nh=t.i(58234);
1function nd({children:t}){return(0,n.jsxs)("div",{className:"min-h-screen flex flex-col",children:[(0,n.jsx)(nl.Header,{}),(0,n.jsx)("main",{className:"flex-1",children:t}),(0,n.jsx)(nh.Footer,{})]})}function nu(){let t={hidden:{opacity:0,y:30},visible:t=>({opacity:1,y:0,transition:{duration:1,delay:.5+.2*t}})};return(0,n.jsx)("div",{className:"relative min-h-screen w-full flex items-center justify-center bg-background",children:(0,n.jsx)("div",{className:"relative z-10 container mx-auto px-4 md:px-6",children:(0,n.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,n.jsx)(na.div,{custom:0,variants:t,initial:"hidden",animate:"visible",className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-muted/50 border border-border mb-8 md:mb-12",children:(0,n.jsx)("span",{className:"text-sm md:text-base font-medium text-foreground tracking-wide",children:"AI Security for Regulated Industries"})}),(0,n.jsx)(na.div,{custom:1,variants:t,initial:"hidden",animate:"visible",children:(0,n.jsxs)("h1",{className:"text-4xl sm:text-6xl md:text-7xl font-bold mb-6 md:mb-8 tracking-tight leading-[1.1]",children:[(0,n.jsx)("span",{className:"text-foreground",children:"The Only AI Firewall"}),(0,n.jsx)("br",{}),(0,n.jsxs)("span",{className:"text-foreground",children:["That Understands"," "]}),(0,n.jsx)("span",{className:"bg-gradient-to-r from-blue-500 via-cyan-500 to-emerald-500 bg-clip-text text-transparent",children:"Compliance"})]})}),(0,n.jsx)(na.div,{custom:2,variants:t,initial:"hidden",animate:"visible",children:(0,n.jsx)("p",{className:"text-lg sm:text-xl md:text-2xl text-muted-foreground mb-10 leading-relaxed max-w-3xl mx-auto px-4",children:"Automatic PII redaction for HIPAA, GDPR, and PCI-DSSâplus prompt injection protection. One API call."})}),(0,n.jsxs)(na.div,{custom:3,variants:t,initial:"hidden",animate:"visible",className:"flex flex-col sm:flex-row gap-6 justify-center",children:[(0,n.jsx)(no.Button,{asChild:!0,size:"lg",className:"text-lg px-10",children:(0,n.jsx)(a.default,{href:"/register",children:"Start Free"})}),(0,n.jsx)(no.Button,{asChild:!0,variant:"outline",size:"lg",className:"text-lg px-10",children:(0,n.jsx)(a.default,{href:"/demo",children:"See Live Demo"})})]})]})})})}var nc=t.i(98919),nm=t.i(39312),np=t.i(70756),nf=t.i(69638),ng=t.i(65261);let nv=(0,t.i(75254).default)("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);var nx=t.i(75157);function ny(t){let e="u">typeof globalThis&&"u">typeof globalThis.window;if(e&&globalThis.window.btoa)return globalThis.window.btoa(unescape(encodeURIComponent(t)));if(e){let e=unescape(encodeURIComponent(t+"")),i="";for(let t=0,s,r=0,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|r)||(n="=",r%1);i+=n.charAt(63&t>>8-r%1*8)){if((s=e.charCodeAt(r+=3/4))>255)throw Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|s}return i}if(globalThis.Buffer)return globalThis.Buffer.from(t).toString("base64");throw Error("Base64 encoding not available in this environment")}var nb={pretty:{replacement:"-",lower:!1,strict:!1,trim:!0,collapse:!0,fallback:!1},rfc3986:{replacement:"-",lower:!0,strict:!1,trim:!0,collapse:!0,fallback:!1}},nw={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",Ã:"AE",Ã:"C",Ã:"E",Ã:"E",Ã:"E",Ã:"E",Ã:"I",Ã:"I",Ã:"I",Ã:"I",Ã:"D",Ã:"N",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"U",Ã:"U",Ã:"U",Ã:"U",Ã:"Y",Ã:"TH",Ã:"ss",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",Ã:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",þ:"th",ÿ:"y",Ä:"A",Ä:"a",Ä:"A",Ä:"a",Ä:"A",Ä
:"a",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"D",Ä:"d",Ä:"D",Ä:"d",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"G",Ä:"g",Ä:"G",Ä:"g",Ä :"G",Ä¡:"g",Ä¢:"G",Ä£:"g",Ĥ:"H",Ä¥:"h",Ħ:"H",ħ:"h",Ĩ:"I",Ä©:"i",Ī:"I",Ä«:"i",Ĭ:"I",Ä:"i",Ä®:"I",į:"i",İ:"I",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",ĺ:"l",Ä»:"L",ļ:"l",Ľ:"L",ľ:"l",Ä¿:"L",Å:"l",Å:"L",Å:"l",Å:"N",Å:"n",Å
:"N",Å:"n",Å:"N",Å:"n",Å:"n",Å:"N",Å:"n",Å:"O",Å:"o",Å:"O",Å:"o",Å:"O",Å:"o",Å:"OE",Å:"oe",Å:"R",Å:"r",Å:"R",Å:"r",Å:"R",Å:"r",Å:"S",Å:"s",Å:"S",Å:"s",Å:"S",Å:"s",Å :"S",Å¡:"s",Å¢:"T",Å£:"t",Ť:"T",Å¥:"t",Ŧ:"T",ŧ:"t",Ũ:"U",Å©:"u",Ū:"U",Å«:"u",Ŭ:"U",Å:"u",Å®:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",ź:"z",Å»:"Z",ż:"z",Ž:"Z",ž:"z","&":"and","@":"at","%":"percent","+":"plus","=":"equals","<":"less",">
1":"greater","©":"c","®":"r","â¢":"tm","â¬":"euro","£":"pound",$:"dollar","Â¥":"yen","¢":"cent","°":"deg","â":"no","§":"section","¶":"paragraph","â ":"dagger","â¡":"double-dagger","â¢":"bullet","â¦":"...","â²":"'","â³":'"',"â¹":"<","âº":">","«":"<<","»":">>","â":'"',"â":'"',"â":"'","â":"'","â":"-","â":"-"};let nj={hidden:{opacity:0,y:30},visible:t=>({opacity:1,y:0,transition:{duration:.8,delay:.1*t}})},nT={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},nP=[{step:"1",title:"Sign Up Free",description:"Create your account - no credit card required",icon:nc.Shield,glow:"bg-gradient-to-br from-blue-500/40 via-cyan-400/20 to-transparent",orb:"bg-gradient-to-r from-blue-500/25 via-transparent to-transparent",badgeDot:"bg-blue-400/90",Visual:({Icon:t})=>(0,n.jsxs)("div",{className:"relative h-36",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute -inset-8 rounded-[36px] bg-gradient-to-br from-blue-500/30 via-cyan-400/20 to-transparent opacity-60 blur-2xl"}),(0,n.jsx)("div",{className:"pointer-events-none absolute -top-8 right-0 h-20 w-20 rounded-full bg-cyan-400/20 blur-3xl"}),(0,n.jsxs)("div",{className:"relative space-y-3",children:[(0,n.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border border-black/5 bg-slate-950/5 p-4 backdrop-blur dark:border-white/10 dark:bg-white/5",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top,_rgba(255,255,255,0.24),transparent_65%)] opacity-70"}),(0,n.jsxs)("div",{className:"relative flex items-start gap-3",children:[(0,n.jsxs)("div",{className:"relative rounded-xl border border-black/10 bg-gradient-to-br from-blue-500 to-cyan-400 p-3 text-white shadow-[0_18px_40px_-24px_rgba(59,130,246,0.8)] dark:border-white/15",children:[(0,n.jsx)(t,{className:"h-5 w-5"}),(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-xl border border-black/10 dark:border-white/20"})]}),(0,n.jsxs)("div",{className:"flex flex-1 flex-col gap-2 pt-0.5",children:[(0,n.jsx)("div",{className:"h-2.5 w-28 rounded-full bg-slate-900/15 dark:bg-white/30"}),(0,n.jsx)("div",{className:"h-2 w-20 rounded-full bg-slate-900/10 dark:bg-white/15"})]})]}),(0,n.jsxs)("div",{className:"relative mt-4 grid gap-2",children:[(0,n.jsx)("div",{className:"h-9 rounded-xl border border-black/5 bg-slate-900/10 dark:border-white/10 dark:bg-white/10"}),(0,n.jsx)("div",{className:"h-9 rounded-xl border border-black/5 bg-slate-900/5 dark:border-white/5 dark:bg-white/5"})]})]}),(0,n.jsxs)("div",{className:"relative ml-10 w-40 rounded-2xl border border-dashed border-black/10 bg-slate-900/5 px-4 py-3 backdrop-blur-sm dark:border-white/15 dark:bg-white/5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"h-2 w-14 rounded-full bg-slate-900/20 dark:bg-white/20"}),(0,n.jsx)("div",{className:"h-2 w-8 rounded-full bg-slate-900/10 dark:bg-white/10"})]}),(0,n.jsx)("div",{className:"mt-2 h-2 w-12 rounded-full bg-slate-900/10 dark:bg-white/10"})]})]}),(0,n.jsx)("div",{className:"pointer-events-none absolute -bottom-3 left-6 h-2 w-2 rounded-full bg-cyan-400/70 animate-ping"})]})},{step:"2",title:"Get API Keys",description:"Generate your API keys from the dashboard",icon:ng.KeyRound,glow:"bg-gradient-to-br from-amber-400/40 via-yellow-400/20 to-transparent",orb:"bg-gradient-to-r from-amber-400/25 via-transparent to-transparent",badgeDot:"bg-amber-300/90",Visual:({Icon:t})=>(0,n.jsxs)("div",{className:"relative h-36",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute -inset-8 rounded-[36px] bg-gradient-to-br from-amber-400/30 via-yellow-400/15 to-transparent opacity-70 blur-2xl"}),(0,n.jsx)("div",{className:"pointer-events-none absolute -bottom-6 left-4 h-24 w-24 rounded-full bg-amber-400/25 blur-3xl"}),(0,n.jsxs)("div",{className:"relative space-y-3",children:[(0,n.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border border-black/5 bg-slate-950/5 p-4 backdrop-blur dark:border-white/10 dark:bg-white/5",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top,_rgba(255,255,255,0.24),transparent_65%)] opacity-70"}),(0,n.jsxs)("div",{className:"relative flex items-start gap-3",children:[(0,n.jsxs)("div",{className:"relative rounded-xl border border-black/10 bg-gradient-to-br from-amber-500 to-yellow-400 p-3 text-white shadow-[0_18px_40px_-24px_rgba(245,158,11,0.8)] dark:border-white/15",children:[(0,n.jsx)(t,{className:"h-5 w-5"}),(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-xl border border-black/10 dark:border-white/20"})]}),(0,n.jsxs)("div",{className:"flex flex-1 flex-col gap-2 pt-0.5",children:[(0,n.jsx)("div",{className:"h-2.5 w-28 rounded-full bg-slate-900/15 dark:bg-white/30"}),(0,n.jsx)("div",{className:"h-2 w-24 rounded-full bg-slate-900/10 dark:bg-white/15"})]})]}),(0,n.jsxs)("div",{className:"relative mt-4 space-y-2 font-mono text-[0.65rem] uppercase tracking-[0.3em] text-slate-900/70 dark:text-white/70",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-amber-300/90"}),(0,n.jsx)("span",{children:"PL-4X91-AB23-KEYS"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-amber-200/80"}),(0,n.jsx)("span",{children:"SCOPE: DASHBOARD"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-amber-200/60"}),(0,n.jsx)("span",{children:"ROTATES: 30 DAYS"})]})]})]}),(0,n.jsxs)("div",{className:"relative ml-auto w-44 rounded-2xl border border-black/10 bg-slate-900/80 px-4 py-3 text-white shadow-[0_20px_45px_-24px_rgba(245,158,11,0.7)] dark:border-white/10 dark:bg-black/60",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top,_rgba(251,191,36,0.18),transparent_65%)] opacity-70"}),(0,n.jsxs)("div",{className:"relative space-y-2 font-mono text-[0.6rem] leading-[1.35] text-white/80 dark:text-white/75",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-amber-300",children:"curl"})," api.promptlock.io"]}),(0,n.jsx)("div",{className:"text-white/70",children:"-H Authorization: Bearer â¢â¢â¢â¢"}),(0,n.jsx)("div",{className:"text-white/65",children:'-d "text=..."'})]})]})]})]})},{step:"3",title:"Start Protecting",description:"Integrate with one line of code",icon:np.Lock,glow:"bg-gradient-to-br from-emerald-400/40 via-green-400/20 to-transparent",orb:"bg-gradient-to-r from-emerald-400/25 via-trans
1parent to-transparent",badgeDot:"bg-emerald-400/90",Visual:({Icon:t})=>(0,n.jsxs)("div",{className:"relative h-36",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute -inset-8 rounded-[36px] bg-gradient-to-br from-emerald-400/35 via-green-400/20 to-transparent opacity-70 blur-2xl"}),(0,n.jsx)("div",{className:"pointer-events-none absolute top-2 right-4 h-20 w-20 rounded-full bg-emerald-400/25 blur-3xl"}),(0,n.jsxs)("div",{className:"relative flex h-full flex-col justify-between rounded-2xl border border-black/5 bg-slate-950/5 p-4 backdrop-blur dark:border-white/10 dark:bg-white/5",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsxs)("div",{className:"relative rounded-xl border border-black/10 bg-gradient-to-br from-emerald-500 to-green-400 p-3 text-white shadow-[0_18px_40px_-24px_rgba(34,197,94,0.8)] dark:border-white/15",children:[(0,n.jsx)(t,{className:"h-5 w-5"}),(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-xl border border-black/10 dark:border-white/20"})]}),(0,n.jsx)("div",{className:"rounded-full border border-black/10 bg-slate-900/5 px-3 py-1 text-[0.6rem] font-semibold uppercase tracking-[0.32em] text-slate-900/80 dark:border-white/10 dark:bg-white/10 dark:text-white/70",children:"SDK Hook"})]}),(0,n.jsxs)("div",{className:"flex gap-1.5",children:[(0,n.jsx)("span",{className:"h-2 w-2 rounded-full bg-emerald-400/90"}),(0,n.jsx)("span",{className:"h-2 w-2 rounded-full bg-yellow-300/80"}),(0,n.jsx)("span",{className:"h-2 w-2 rounded-full bg-rose-300/80"})]})]}),(0,n.jsxs)("div",{className:"relative mt-4 overflow-hidden rounded-2xl border border-black/10 bg-slate-900/80 px-4 py-3 text-left text-white shadow-[0_20px_45px_-24px_rgba(34,197,94,0.7)] dark:border-white/10 dark:bg-black/60",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top,_rgba(134,239,172,0.25),transparent_65%)] opacity-80"}),(0,n.jsxs)("div",{className:"relative space-y-1 font-mono text-[0.68rem] leading-relaxed text-white/80",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-emerald-300",children:"import"}),' PromptLock from "promptlock"']}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-emerald-300",children:"await"})," PromptLock.analyze(text)"]}),(0,n.jsx)("div",{className:"text-white/65",children:"// one line of defense"})]})]})]}),(0,n.jsx)("div",{className:"pointer-events-none absolute -bottom-3 left-8 h-2 w-2 rounded-full bg-emerald-400/70 animate-ping"})]})}];function nS(){return(0,n.jsxs)(nd,{children:[(0,n.jsx)(l.default,{defer:!0,"data-url":"https://devhunt.org/tool/promptlock",src:"https://cdn.jsdelivr.net/gh/sidiDev/devhunt-banner/indexV0.js",strategy:"lazyOnload"}),(0,n.jsx)(nu,{}),(0,n.jsxs)("section",{className:"relative py-24 bg-gradient-to-b from-muted/20 to-background",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-500/[0.03] via-trans
1parent to-purple-500/[0.03]"}),(0,n.jsxs)("div",{className:"relative container max-w-6xl mx-auto px-6",children:[(0,n.jsxs)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nj,custom:0,className:"text-center mb-16",children:[(0,n.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-foreground",children:"One API Call. Three Problems Solved."}),(0,n.jsx)("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Built for teams processing customer data with AIâautomatically applying the right compliance policy based on what's in the data."})]}),(0,n.jsx)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nT,className:"grid md:grid-cols-3 gap-8",children:[{icon:nv,title:"Compliance-Aware Redaction",description:"Automatically detect and redact sensitive data based on context: HIPAA for healthcare, GDPR for EU data, PCI-DSS for payments.",color:"from-blue-500 to-cyan-500",bgColor:"from-blue-500/10 to-cyan-500/5"},{icon:nc.Shield,title:"Prompt Injection Detection",description:"Block jailbreaks, system prompt overrides, and injection chains before they reach your LLM.",color:"from-red-500 to-orange-500",bgColor:"from-red-500/10 to-orange-500/5"},{icon:nv,title:"Audit-Ready Logging",description:"Every request logged with compliance tags. Opt-out anytime. Export CSV or JSON for audits.",color:"from-emerald-500 to-green-500",bgColor:"from-emerald-500/10 to-green-500/5"}].map((t,e)=>(0,n.jsxs)(na.div,{variants:nj,custom:e,className:"group relative",children:[(0,n.jsx)("div",{className:(0,nx.cn)("absolute inset-0 rounded-3xl bg-gradient-to-br opacity-0 group-hover:opacity-100 transition-opacity duration-500 blur-xl",t.bgColor)}),(0,n.jsxs)("div",{className:"relative backdrop-blur-xl bg-gradient-to-br from-card/80 to-card/40 border border-border rounded-3xl p-8 h-full",children:[(0,n.jsx)("div",{className:(0,nx.cn)("w-14 h-14 rounded-2xl bg-gradient-to-br flex items-center justify-center mb-6",t.color),children:(0,n.jsx)(t.icon,{className:"h-7 w-7 text-white"})}),(0,n.jsx)("h3",{className:"text-xl font-bold text-foreground mb-3",children:t.title}),(0,n.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:t.description})]})]},e))})]})]}),(0,n.jsxs)("section",{className:"relative py-24 bg-gradient-to-b from-muted/30 to-muted/50",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-purple-500/[0.03] via-trans
1parent to-cyan-500/[0.03]"}),(0,n.jsx)("div",{className:"relative container max-w-5xl mx-auto px-6",children:(0,n.jsxs)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nj,custom:0,className:"backdrop-blur-xl bg-gradient-to-br from-card/80 to-card/40 border border-border rounded-3xl p-8 md:p-12",children:[(0,n.jsxs)("div",{className:"text-center mb-10",children:[(0,n.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-b from-foreground to-foreground/70",children:"When Compliance Gets Real"}),(0,n.jsx)("p",{className:"text-muted-foreground leading-relaxed text-lg max-w-3xl mx-auto mb-4",children:"In December 2024, Italy fined OpenAI â¬15 million for processing personal data without proper legal basis. Every EU member state is now investigating how LLMs handle personal data."}),(0,n.jsx)("p",{className:"text-muted-foreground leading-relaxed text-lg max-w-3xl mx-auto",children:"67% of companies unknowingly violate GDPR when integrating AI. If your app sends customer data to an LLM, you inherit that risk."})]}),(0,n.jsxs)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nj,custom:1,className:"mb-8",children:[(0,n.jsx)("p",{className:"text-center text-lg font-semibold text-foreground mb-6",children:"Here's what PromptLock does:"}),(0,n.jsx)("div",{className:"bg-slate-900/90 dark:bg-black/60 rounded-2xl p-6 md:p-8 border border-border/40",children:(0,n.jsxs)("div",{className:"space-y-4 font-mono text-sm md:text-base",children:[(0,n.jsxs)("div",{className:"text-red-400/90",children:[(0,n.jsx)("span",{className:"text-muted-foreground text-xs uppercase tracking-wider block mb-2",children:"Before PromptLock"}),'"Refund request from John Smith, [email protected], card ending 4242"']}),(0,n.jsx)("div",{className:"flex justify-center py-2",children:(0,n.jsx)("span",{className:"text-2xl text-muted-foreground",children:"â"})}),(0,n.jsxs)("div",{className:"text-emerald-400/90",children:[(0,n.jsx)("span",{className:"text-muted-foreground text-xs uppercase tracking-wider block mb-2",children:"After PromptLock"}),'"Refund request from ',(0,n.jsx)("span",{className:"text-blue-400",children:"[GDPR_NAME]"}),", ",(0,n.jsx)("span",{className:"text-blue-400",children:"[GDPR_EMAIL]"}),", card ending ",(0,n.jsx)("span",{className:"text-purple-400",children:"[PCI_CARD]"}),'"']})]})})]}),(0,n.jsx)(na.p,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nj,custom:2,className:"text-center text-lg text-foreground/80",children:"Your LLM gets context. Personal data never leaves your infrastructure."})]})})]}),(0,n.jsxs)("section",{className:"relative py-24 bg-gradient-to-b from-background to-muted/30",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-500/[0.03] via-trans
1parent to-purple-500/[0.03]"}),(0,n.jsx)("div",{className:"container max-w-4xl mx-auto px-6",children:(0,n.jsxs)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nT,className:"text-center",children:[(0,n.jsx)(na.h2,{variants:nj,custom:0,className:"text-4xl md:text-5xl font-bold mb-6 text-foreground leading-tight pb-1",children:"Get Started in 3 Simple Steps"}),(0,n.jsx)(na.p,{variants:nj,custom:1,className:"text-xl text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Protect your AI applications in minutes, not hours"}),(0,n.jsxs)(na.div,{variants:nT,className:"relative grid grid-cols-1 gap-10 md:grid-cols-3",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute -top-32 right-10 hidden h-44 w-44 rounded-full bg-gradient-to-br from-blue-500/15 to-purple-500/10 blur-3xl md:block"}),(0,n.jsx)("div",{className:"pointer-events-none absolute -bottom-36 left-0 hidden h-52 w-52 rounded-full bg-gradient-to-br from-emerald-400/15 to-cyan-400/10 blur-3xl md:block"}),(0,n.jsx)("div",{className:"pointer-events-none absolute top-28 left-[16%] right-[16%] hidden h-px bg-gradient-to-r from-blue-300/40 via-amber-300/40 to-emerald-300/40 md:block"}),(0,n.jsx)("div",{className:"pointer-events-none absolute top-28 left-[16%] hidden h-3 w-3 -translate-x-1.5 rounded-full bg-sky-300/80 md:block"}),(0,n.jsx)("div",{className:"pointer-events-none absolute top-28 left-1/2 hidden h-3 w-3 -translate-x-1.5 rounded-full bg-amber-300/80 md:block"}),(0,n.jsx)("div",{className:"pointer-events-none absolute top-28 right-[16%] hidden h-3 w-3 translate-x-1.5 rounded-full bg-emerald-300/80 md:block"}),nP.map((t,e)=>{let i=t.Visual;return(0,n.jsxs)(na.div,{variants:nj,custom:e+2,className:"group relative overflow-hidden rounded-[32px] border border-border/60 bg-gradient-to-br from-card/95 via-card/70 to-card/95 p-10 text-left transition-all duration-500 hover:-translate-y-1 hover:shadow-[0_40px_80px_-35px_rgba(14,26,61,0.6)]",children:[(0,n.jsx)("div",{className:(0,nx.cn)("pointer-events-none absolute -inset-16 opacity-25 blur-3xl transition-opacity duration-500 group-hover:opacity-60",t.glow)}),(0,n.jsxs)("div",{className:"relative z-10 flex h-full flex-col",children:[(0,n.jsxs)("div",{className:"relative mb-10",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-foreground/15 to-transparent"}),(0,n.jsxs)("div",{className:"relative overflow-hidden rounded-[28px] border border-border/60 bg-background/80 px-6 py-6 backdrop-blur-sm",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top,_rgba(255,255,255,0.22),transparent_65%)] opacity-80"}),(0,n.jsx)("div",{className:(0,nx.cn)("pointer-events-none absolute -bottom-16 left-1/2 h-28 w-48 -translate-x-1/2 rounded-full opacity-60 blur-3xl",t.orb)}),(0,n.jsxs)("div",{className:"pointer-events-none absolute top-4 left-6 text-6xl font-black tracking-tight text-foreground/10",children:["0",t.step]}),(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(i,{Icon:t.icon})})]})]}),(0,n.jsxs)("div",{className:"mt-auto",children:[(0,n.jsxs)("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full border border-border/60 bg-foreground
1/5 px-4 py-1 text-[0.65rem] font-semibold uppercase tracking-[0.28em] text-foreground/70",children:[(0,n.jsx)("span",{className:(0,nx.cn)("h-1.5 w-1.5 rounded-full",t.badgeDot)}),"Step ",t.step]}),(0,n.jsx)("h4",{className:"mb-3 text-2xl font-bold text-foreground",children:t.title}),(0,n.jsx)("p",{className:"text-base leading-relaxed text-muted-foreground",children:t.description})]})]})]},t.step)})]}),(0,n.jsx)(na.div,{variants:nj,custom:5,className:"relative z-20 mt-12",children:(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[(0,n.jsx)(no.Button,{asChild:!0,size:"lg",className:"text-lg px-10 pointer-events-auto",children:(0,n.jsx)(a.default,{href:"/register",children:"Get Started Free"})}),(0,n.jsx)(no.Button,{asChild:!0,variant:"outline",size:"lg",className:"text-lg px-10 pointer-events-auto",children:(0,n.jsx)(a.default,{href:"/demo",children:"Try Demo"})})]})})]})})]}),(0,n.jsxs)("section",{className:"relative py-24 bg-gradient-to-b from-muted/30 to-muted/50",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-green-500/[0.03] via-trans
1parent to-blue-500/[0.03]"}),(0,n.jsxs)("div",{className:"relative container max-w-6xl mx-auto px-6",children:[(0,n.jsxs)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nj,custom:0,className:"text-center mb-16",children:[(0,n.jsx)("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-foreground leading-tight pb-1",children:"Integrates Everywhere"}),(0,n.jsx)("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Drop-in protection for your existing workflow. Published on n8n, Bubble marketplace, and RapidAPI."})]}),(0,n.jsx)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nT,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6",children:[{name:"n8n",logoSrc:"/N8n-logo-new.svg",logoHeightClass:"h-12"},{name:"Bubble",logoSrc:"/Bubble_Logo_no_code.svg.png",logoHeightClass:"h-10"},{name:"Retool",logoSrc:"/Retool_logo.svg.png",logoHeightClass:"h-10"},{name:"Flowise",logoSrc:"/flowise.png",logoHeightClass:"h-14"},{name:"RapidAPI",logoSrc:"/Rapid_Logo_Primary.webp",logoHeightClass:"h-14"}].map((t,e)=>(0,n.jsx)(na.div,{variants:nj,custom:e,className:"group",children:(0,n.jsxs)("div",{className:"backdrop-blur-xl bg-gradient-to-br from-card/80 to-card/40 border border-border rounded-2xl p-6 text-center group-hover:border-border/60 transition-all duration-300 h-44 flex flex-col justify-between",children:[(0,n.jsx)("div",{className:"mb-6 flex items-center justify-center",children:t.logoSrc?(0,n.jsx)("div",{className:(0,nx.cn)("relative w-36",t.logoHeightClass??"h-10"),children:(0,n.jsx)(o.default,{src:t.logoSrc,alt:`${t.name} logo`,fill:!0,sizes:"144px",className:"object-contain",priority:!1})}):(0,n.jsx)(nm.Zap,{className:"h-8 w-8 text-foreground"})}),(0,n.jsx)(a.default,{href:`/${function t(e,i={},s={}){if("string"!=typeof e)return"";if(!e)return i.fallback?t(ny("empty"),{...i,fallback:!1},s):"";if(!e.isWellFormed())throw Error("slug() received a malformed string with lone surrogates");let r={...i};if(i.mode){let t=nb[i.mode];t&&(r={...t,...i})}let n=r.replacement??"-",a=r.lower??!1,o=r.strict??!1,l=r.trim??!0,h=r.collapse??!0,d=r.fallback??!1,u=r.multiCharMap??{},c=new Set(["and","at","percent","plus","equals","less","greater","euro","pound","dollar","yen","cent","deg","no","section","paragraph","dagger","double-dagger","bullet","c","r","tm","exclamation","question","ellipsis","first","second","third"]);function m(t){return!!(c.has(t.toLowerCase())||t.includes("-")&&t.length>3)}let p=Object.keys(u).map(t=>t.length).filter((t,e,i)=>i.indexOf(t)===e).sort((t,e)=>e-t),f="";for(let t=0;t<e.length;t++){let i=!1;for(let s of p)if(t+s<=e.length){let r=e.substr(t,s);if(u[r]){let e=u[r];m(e)?f+=" "+e+" ":f+=e,t+=s-1,i=!0;break}}if(!i){let i=e[t],r=s[i];r?m(r)?f+=" "+r+" ":f+=r:f+=i}}let g="";for(let t of f.normalize("NFD"))t.charCodeAt(0)>=768&&879>=t.charCodeAt(0)||(g+=t);if(f=g,r.remove){let t=function(t){if(t instanceof RegExp)return t;if("string"==typeof t)return RegExp(`[${t.replace(/[[\]\\^-]/g,"\\$&")}]`,"g");let e=t.map(t=>t.replace(/[[\]\\^-]/g,"\\$&")).join("");return RegExp(`[${e}]`,"g")}(r.remove);f=f.replace(t,n)}else{let t=n.replace(/[.+*?^${}()|[\]\\-]/g,"\\$&");f=f.replace(RegExp(`[^\\w\\s${t}]`,"g"),n)}if(f=f.replace(/\s+/g,n),h){let t=n.replace(/[.+*?^${}()|[\]\\-]/g,"\\$&");f=f.replace(RegExp(`${t}+`,"g"),n)}if(o&&(f=f.replace(RegExp(`[^A-Za-z0-9${n.replace(/[.+*?^${}()|[\]\\-]/g,"\\$&")}]`,"g"),"")),l){let t=n.replace(/[.+*?^${}()|[\]\\-]/g,"\\$&");f=f.replace(RegExp(`^${t}+|${t}+$`,"g"),"")}let v=f;return d&&""===v&&(v=t(ny(e||"empty"),{...r,fallback:!1},s)),a?v.toLowerCase():v}(t.name,{mode:"rfc3986"},nw)}`,className:"text-foreground font-medium underline underline-offset-4",children:"View Guide"})]})},e))})]})]}),(0,n.jsxs)("section",{className:"relative py-24 bg-gradient-to-b from-background to-muted/30",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-purple-500/[0.03] via-trans
1parent to-pink-500/[0.03]"}),(0,n.jsx)("div",{className:"relative container max-w-5xl mx-auto px-6",children:(0,n.jsxs)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nj,custom:0,className:"backdrop-blur-xl bg-gradient-to-br from-card/80 to-card/40 border border-border rounded-3xl p-8 md:p-12",children:[(0,n.jsxs)("div",{className:"text-center mb-12",children:[(0,n.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-b from-foreground to-foreground/70",children:"Security & Privacy Commitments"}),(0,n.jsx)("p",{className:"text-muted-foreground text-lg",children:"Your data security is our highest priority"})]}),(0,n.jsx)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nT,className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[{icon:np.Lock,text:"Logging is opt-in (masked)",color:"from-green-400 to-green-600"},{icon:nc.Shield,text:"Data encrypted at rest",color:"from-blue-400 to-blue-600"},{icon:nf.CheckCircle,text:"Key-based access",color:"from-purple-400 to-purple-600"},{icon:nm.Zap,text:"Rate limiting & abuse protection",color:"from-yellow-400 to-yellow-600"}].map((t,e)=>(0,n.jsxs)(na.div,{variants:nj,custom:e,className:"flex items-center gap-4 group",children:[(0,n.jsx)("div",{className:(0,nx.cn)("w-12 h-12 rounded-xl bg-gradient-to-br from-muted/20 to-muted/10 border border-border flex items-center justify-center group-hover:scale-110 transition-all duration-300"),children:(0,n.jsx)(t.icon,{className:"h-6 w-6 text-primary"})}),(0,n.jsx)("span",{className:"text-foreground/80 group-hover:text-foreground transition-colors duration-300",children:t.text})]},e))})]})})]}),(0,n.jsxs)("section",{className:"relative py-32 bg-gradient-to-b from-muted/30 to-muted/60 overflow-hidden",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-500/[0.08] via-purple-500/[0.05] to-red-500/[0.08]"}),(0,n.jsx)("div",{className:"relative container max-w-4xl mx-auto px-6 text-center",children:(0,n.jsxs)(na.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:nj,custom:0,children:[(0,n.jsx)("h2",{className:"text-4xl md:text-6xl font-bold mb-8 bg-clip-text text-transparent bg-gradient-to-b from-foreground via-foreground/90 to-foreground/70",style:{lineHeight:"1.4",paddingBottom:"0.25rem"},children:"Ready to Secure Your AI?"}),(0,n.jsx)("p",{className:"text-xl md:text-2xl text-muted-foreground mb-12 max-w-3xl mx-auto leading-relaxed",children:"Block prompt injections. Detect data leaks. Enforce compliance. All in milliseconds."}),(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-6 justify-center",children:[(0,n.jsx)(no.Button,{asChild:!0,size:"lg",className:"text-lg px-10 py-6 hover:scale-105 transition-all duration-300",children:(0,n.jsx)(a.default,{href:"/register",children:"Start Free - No Credit Card"})}),(0,n.jsx)(no.Button,{asChild:!0,size:"lg",variant:"outline",className:"text-lg px-10 py-6 hover:scale-105 transition-all duration-300",children:(0,n.jsx)(a.default,{href:"/demo",children:"See Live Demo"})})]})]})})]})]})}t.s(["HomePage",()=>nS],18726)}]);
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.