PageSourceSearch

https://snipperapp.com/_next/static/chunks/67dcb5ae18b3594b.js

js snipperapp.com collected 2026-10-08 01:54:26 UTC 175,342 bytes, 16 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62752,96566,76061,86614,90965,1588,14222,87449,79672,76172,18699,61512,49034,51458,95499,21230,16327,7569,28953,63131,60325,26836,23569,28080,72550,69671,59156,59160,38928,36105,80871,1575,71303,17002,61810,15085,14256,12630,53559,79773,42793,70955,68850,64960,48059,12957,13118,46658,65777,4287,70025,38145,61782,3807,20509,17885,9683,65289,t=>{"use strict";let e,i,n;function s(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["addUniqueItem",()=>s,"removeItem",()=>r],62752);var a=t.i(2803);class o{constructor(){this.subscriptions=[]}add(t){return s(this.subscriptions,t),()=>r(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",()=>o],96566);let l={},u=t=>t;t.s(["noop",()=>u],76061);let h=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],c={value:null,addProjectionMetrics:null};function d(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=h.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&c.value&&c.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:o,read:u,resolveKeyframes:d,preUpdate:p,update:m,preRender:f,render:g,postRender:v}=a,y=()=>{let r=l.useManualTiming?s.timestamp:performance.now();i=!1,l.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,o.process(s),u.process(s),d.process(s),p.process(s),m.process(s),f.process(s),g.process(s),v.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(y))};return{schedule:h.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(y)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<h.length;e++)a[h[e]].cancel(t)},state:s,steps:a}}t.s(["statsBuffer",()=>c],86614);let{schedule:p,cancel:m,state:f,steps:g}=d("u">typeof requestAnimationFrame?requestAnimationFrame:u,!0);function v(){e=void 0}t.s(["cancelFrame",()=>m,"frame",()=>p,"frameData",()=>f,"frameSteps",()=>g],90965);let y={now:()=>(void 0===e&&y.set(f.isProcessing||l.useManualTiming?f.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(v)}};t.s(["time",()=>y],1588);class x{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=y.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=y.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 o);let i=this.events[t].add(e);return"change"===t?()=>{i(),p.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 n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=y.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 w(t,e){return new x(t,e)}t.s(["motionValue",()=>w],14222);let C=t=>1e3*t,b=t=>t/1e3;t.s(["millisecondsToSeconds",()=>b,"secondsToMilliseconds",()=>C],87449);let T=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>T],79672);let S=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function M(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 A(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(M(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:b(s)}}function P(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}t.s(["createGeneratorEasing",()=>A],76172);let E=.01,j=2,V=.005,k=.5,D=()=>{},R=()=>{};function B(t,e){return t*Math.sqrt(1-e*e)}a.default,t.s(["invariant",()=>R,"warning",()=>D],18699);let L=["duration","bounce"],F=["stiffness","damping","mass"];function I(t,e){return e.some(e=>void 0!==t[e])}function N(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!I(t,F)&&I(t,L))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*T(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;D(t<=C(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=T(.05,1,a),t=T(.01,10,b(t)),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/B(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=B(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=C(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-b(n.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*c)),v=o-a,y=b(Math.sqrt(u/c)),x=5>Math.abs(v);if(s||(s=x?E:j),r||(r=x?V:k),g<1){let t=B(y,g);i=e=>o-Math.exp(-g*y*e)*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>o-Math.exp(-y*t)*(v+(f+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),n=Math.min(t*e,300);return o-i*((f+g*y*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let w={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let n=0===t?f:0;g<1&&(n=0===t?C(f):P(i,t,e));let a=Math.abs(o-e)<=r;l.done=Math.abs(n)<=s&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(M(w),2e4),e=S(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}N.applyToOptions=t=>{let e=A(t,100,N);return t.ease=e.ease,t.duration=C(e.duration),t.type="keyframes",t},t.s(["spring",()=>N],61512);let O=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>O],49034);let U=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};t.s(["progress",()=>U],51458);let W=(t,e,i)=>t+(e-t)*i;function $(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=U(0,e,n);t.push(W(i,1,s))}}function z(t){let e=[0];return $(e,t.length-1),e}function H(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["mixNumber",()=>W],95499),t.s(["fillOffset",()=>$],21230),t.s(["defaultOffset",()=>z],16327),t.s(["isGenerator",()=>H],7569);let _=t=>Array.isArray(t)&&"number"!=typeof t[0];function G(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}t.s(["isEasingArray",()=>_],28953),t.s(["resolveElements",()=>G],63131);let K=(t,e)=>i=>e(t(i)),Y=(...t)=>t.reduce(K);t.s(["pipe",()=>Y],60325);let X={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>X],26836);let q=t=>e=>"string"==typeof e&&e.startsWith(t),Z=q("--"),J=q("var(--"),Q=t=>!!J(t)&&tt.test(t.split("/*")[0].trim()),tt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function te(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let ti={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tn={...ti,transform:t=>T(0,1,t)},ts={...ti,default:1},tr=t=>Math.round(1e5*t)/1e5,ta=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,to=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tl=(t,e)=>i=>!!("string"==typeof i&&to.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tu=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(ta);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},th={...ti,transform:t=>Math.round(T(0,255,t))},tc={test:tl("rgb","red"),parse:tu("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+th.transform(t)+", "+th.transform(e)+", "+th.transform(i)+", "+tr(tn.transform(n))+")"},td={test:tl("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:tc.transform},tp=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tm=tp("deg"),tf=tp("%"),tg=tp("px"),tv=tp("vh"),ty=tp("vw"),tx={...tf,parse:t=>tf.parse(t)/100,transform:t=>tf.transform(100*t)};t.s(["degrees",()=>tm,"percent",()=>tf,"progressPercentage",()=>tx,"px",()=>tg,"vh",()=>tv,"vw",()=>ty],23569);let tw={test:tl("hsl","hue"),parse:tu("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tf.transform(tr(e))+", "+tf.transform(tr(i))+", "+tr(tn.transform(n))+")"},tC={test:t=>tc.test(t)||td.test(t)||tw.test(t),parse:t=>tc.test(t)?tc.parse(t):tw.test(t)?tw.parse(t):td.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tc.transform(t):tw.transform(t),getAnimatableNone:t=>{let e=tC.parse(t);return e.alpha=0,tC.transform(e)}},tb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tT="number",tS="color",tM=/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 tA(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(tM,t=>(tC.test(t)?(n.color.push(r),s.push(tS),i.push(tC.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tT),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function tP(t){return tA(t).values}function tE(t){let{split:e,types:i}=tA(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===tT?s+=tr(t[r]):e===tS?s+=tC.transform(t[r]):s+=t[r]}return s}}let tj=t=>"number"==typeof t?0:tC.test(t)?tC.getAnimatableNone(t):t,tV={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(ta)?.length||0)+(t.match(tb)?.length||0)>0},parse:tP,createTransformer:tE,getAnimatableNone:function(t){let e=tP(t);return tE(t)(e.map(tj))}};function tk(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 tD(t,e){return i=>i>0?e:t}let tR=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},tB=[td,tc,tw];function tL(t){let e=tB.find(e=>e.test(t));if(D(!!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===tw&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=tk(o,n,t+1/3),r=tk(o,n,t),a=tk(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let tF=(t,e)=>{let i=tL(t),n=tL(e);if(!i||!n)return tD(t,e);let s={...i};return t=>(s.red=tR(i.red,n.red,t),s.green=tR(i.green,n.green,t),s.blue=tR(i.blue,n.blue,t),s.alpha=W(i.alpha,n.alpha,t),tc.transform(s))},tI=new Set(["none","hidden"]);function tN(t,e){return i=>W(t,e,i)}function tO(t){return"number"==typeof t?tN:"string"==typeof t?Q(t)?tD:tC.test(t)?tF:t$:Array.isArray(t)?tU:"object"==typeof t?tC.test(t)?tF:tW:tD}function tU(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>tO(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function tW(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=tO(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}
1let t$=(t,e)=>{let i=tV.createTransformer(e),n=tA(t),s=tA(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return D(!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"),tD(t,e);if(tI.has(t)&&!s.values.length||tI.has(e)&&!n.values.length)return tI.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return Y(tU(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i)};function tz(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?W(t,e,i):tO(t)(t,e)}let tH=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>p.update(e,t),stop:()=>m(e),now:()=>f.isProcessing?f.timestamp:y.now()}};function t_({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===a?g:a(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/n),x=t=>v+y(t),w=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},C=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;c=t,d=N({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:P(x,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h})}};return C(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),C(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),m)}}}let tG=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tK(t,e,i,n){return t===e&&i===n?u:s=>0===s||1===s?s:tG(function(t,e,i,n,s){let r,a,o=0;do(r=tG(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let tY=tK(.42,0,1,1),tX=tK(0,0,.58,1),tq=tK(.42,0,.58,1),tZ=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tJ=t=>e=>1-t(1-e),tQ=tK(.33,1.53,.69,.99),t0=tJ(tQ),t1=tZ(t0),t2=t=>(t*=2)<1?.5*t0(t):.5*(2-Math.pow(2,-10*(t-1))),t5=t=>1-Math.sin(Math.acos(t)),t3=tJ(t5),t7=tZ(t5);t.s(["circIn",()=>t5,"circInOut",()=>t7,"circOut",()=>t3],28080);let t4=t=>Array.isArray(t)&&"number"==typeof t[0],t9={linear:u,easeIn:tY,easeInOut:tq,easeOut:tX,circIn:t5,circInOut:t7,circOut:t3,backIn:t0,backInOut:t1,backOut:tQ,anticipate:t2},t8=t=>{if(t4(t)){R(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return tK(e,i,n,s)}return"string"==typeof t?(R(void 0!==t9[t],`Invalid easing type '${t}'`,"invalid-easing-type"),t9[t]):t};function t6({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=_(n)?n.map(t8):t8(n),a={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(R(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||l.mix||tz,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=Y(Array.isArray(e)?e[i]||u:e,r)),n.push(r)}return n}(e,n,s),h=o.length,c=i=>{if(a&&i<t[0])return e[0];let n=0;if(h>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=U(t[n],t[n+1],i);return o[n](s)};return i?e=>c(T(t[0],t[r-1],e)):c}((s=i&&i.length===e.length?i:z(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||tq).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}let et=t=>null!==t;function ee(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(et),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}let ei={decay:t_,inertia:t_,tween:t6,keyframes:t6,spring:N};function en(t){"string"==typeof t.type&&(t.type=ei[t.type])}class es{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 er=t=>t/100;class ea extends es{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!==y.now()&&this.tick(y.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},X.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;en(t);let{type:e=t6,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||t6;o!==t6&&"number"!=typeof a[0]&&(this.mixKeyframes=Y(er,tz(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=M(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,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:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/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>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=r)),y=T(0,1,i)*a}let w=v?{done:!1,value:u[0]}:x.next(y);s&&(w.value=s(w.value));let{done:C}=w;v||null===o||(C=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&C);return b&&p!==t_&&(w.value=ee(u,this.options,f,this.speed)),m&&m(w.value),b&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return b(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+b(t)}get time(){return b(this.currentTime)}set time(t){t=C(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(y.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=b(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tH,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(y.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,X.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)}}let eo=t=>180*t/Math.PI,el=t=>eh(eo(Math.atan2(t[1],t[0]))),eu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:el,rotateZ:el,skewX:t=>eo(Math.atan(t[1])),skewY:t=>eo(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},eh=t=>((t%=360)<0&&(t+=360),t),ec=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ed=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ep={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ec,scaleY:ed,scale:t=>(ec(t)+ed(t))/2,rotateX:t=>eh(eo(Math.atan2(t[6],t[5]))),rotateY:t=>eh(eo(Math.atan2(-t[2],t[0]))),rotateZ:el,rotate:el,skewX:t=>eo(Math.atan(t[4])),skewY:t=>eo(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function em(t){return+!!t.includes("scale")}function ef(t,e){let i,n;if(!t||"none"===t)return em(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=ep,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eu,n=e}if(!n)return em(e);let r=i[e],a=n[1].split(",").map(eg);return"function"==typeof r?r(a):a[r]}function eg(t){return parseFloat(t.trim())}let ev=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ey=new Set(ev),ex=t=>t===ti||t===tg,ew=new Set(["x","y","z"]),eC=ev.filter(t=>!ew.has(t)),eb={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})=>ef(e,"x"),y:(t,{transform:e})=>ef(e,"y")};eb.translateX=eb.x,eb.translateY=eb.y;let eT=new Set,eS=!1,eM=!1,eA=!1;
1function eP(){if(eM){let t=Array.from(eT).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],eC.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),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)})}eM=!1,eS=!1,eT.forEach(t=>t.complete(eA)),eT.clear()}function eE(){eT.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eM=!0)})}class ej{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(eT.add(this),eS||(eS=!0,p.read(eE),p.resolveKeyframes(eP))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.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),eT.delete(this)}cancel(){"scheduled"===this.state&&(eT.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function eV(t){let e;return()=>(void 0===e&&(e=t()),e)}let ek=eV(()=>void 0!==window.ScrollTimeline),eD={},eR=(i=eV(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>eD.linearEasing??i()),eB=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eL={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eB([0,.65,.55,1]),circOut:eB([.55,0,1,.45]),backIn:eB([.31,.01,.66,-.59]),backOut:eB([.33,1.53,.69,.99])};class eF extends es{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,R("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return H(t)&&eR()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?eR()?S(e,i):"ease-out":t4(e)?eB(e):Array.isArray(e)?e.map(e=>t(e,i)||eL.easeOut):eL[e]}(o,s);Array.isArray(d)&&(h.easing=d),c.value&&X.waapi++;let p={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(p.pseudoElement=u);let m=t.animate(h,p);return c.value&&m.finished.finally(()=>{X.waapi--}),m}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=ee(n,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.manualStartTime=null,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(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return b(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+b(t)}get time(){return b(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=C(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ek())?(this.animation.timeline=t,u):e(this)}}let eI={anticipate:t2,backInOut:t1,circInOut:t7};class eN extends eF{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in eI&&(t.ease=eI[t.ease])}(t),en(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new ea({...r,autoplay:!1}),o=Math.max(10,y.now()-this.startTime),l=T(0,10,o-10);e.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}let eO=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tV.test(t)||"0"===t)&&!t.startsWith("url("));function eU(t){t.duration=0,t.type="keyframes"}let eW=new Set(["opacity","clipPath","filter","transform"]),e$=eV(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ez extends es{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=y.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||ej;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:h,onUpdate:c}=i;
1this.resolvedAt=y.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=eO(s,e),o=eO(r,e);return D(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" 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||H(i))&&n)}(t,s,r,a)&&((l.instantAnimations||!o)&&c?.(ee(t,i,e)),t[0]=t[t.length-1],eU(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return e$()&&i&&eW.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(d),m=d.motionValue?.owner?.current,f=p?new eN({...d,element:m}):new ea(d);f.finished.then(()=>{this.notifyFinished()}).catch(u),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}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(),eA=!0,eE(),eP(),eA=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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()}}function eH(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function e_(t,e){let i=t?.[e]??t?.default??t;return i!==t?eH(i,t):i}t.s(["getValueTransition",()=>e_],72550);let eG={type:"spring",stiffness:500,damping:25,restSpeed:10},eK={type:"keyframes",duration:.8},eY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eX=t=>null!==t,eq=(t,e,i,n={},s,r)=>a=>{let o=e_(n,t)||{},u=o.delay||n.delay||0,{elapsed:h=0}=n;h-=C(u);let c={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:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?eK:ey.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:eG:eY)(t,c)),c.duration&&(c.duration=C(c.duration)),c.repeatDelay&&(c.repeatDelay=C(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(eU(c),0===c.delay&&(d=!0)),(l.instantAnimations||l.skipAnimations||s?.shouldSkipAnimations)&&(d=!0,eU(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(eX),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(c.keyframes,o);if(void 0!==t)return void p.update(()=>{c.onUpdate(t),c.onComplete()})}return o.isSync?new ea(c):new ez(c)};function eZ(t,e,i){let n=O(t)?t:w(t);return n.start(eq("",n,e,i)),n.animation}t.s(["animateMotionValue",()=>eq],69671),t.s(["animateSingleValue",()=>eZ],59156);let eJ=new WeakMap;t.s(["visualElementStore",()=>eJ],59160);let eQ=new Set(["width","height","top","left","right","bottom",...ev]);function e0(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function e1(t,e,i,n){if("function"==typeof e){let[s,r]=e0(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=e0(n);e=e(void 0!==i?i:t.custom,s,r)}return e}function e2(t,e,i){let n=t.getProps();return e1(n,e,void 0!==i?i:n.custom,t)}t.s(["resolveVariantFromProps",()=>e1],38928),t.s(["resolveVariant",()=>e2],36105);let e5=t=>Array.isArray(t);function e3(t,e){let i=t.getValue("willChange");if(O(i)&&i.add)return i.add(e);if(!i&&l.WillChange){let i=new l.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}function e7(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["isKeyframesTarget",()=>e5],80871),t.s(["addValueToWillChange",()=>e3],1575);let e4="data-"+e7("framerAppearId");function e9(t){return t.props[e4]}function e8(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?eH(r,l):l;let u=r?.reduceMotion;n&&(r=n);let h=[],c=s&&t.animationState&&t.animationState.getState()[s];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...e_(r||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating&&!Array.isArray(s)&&s===l&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=e9(t);if(i){let t=window.MotionHandoffAnimation(i,e,p);null!==t&&(a.startTime=t,d=!0)}}e3(t,e);let m=u??t.shouldReduceMotion;n.start(eq(e,n,s,m&&eQ.has(e)?{type:!1}:a,t,d));let f=n.animation;f&&h.push(f)}if(a){let e=()=>p.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=e2(t,e)||{};for(let e in s={...s,...i}){var r;let i=e5(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,w(i))}}(t,a)});h.length?Promise.all(h).then(e):e()}return h}function e6(t){return"object"==typeof t&&null!==t}function it(t){return e6(t)&&"ownerSVGElement"in t}function ie(t){return it(t)&&"svg"===t.tagName}t.s(["optimizedAppearDataAttribute",()=>e4],71303),t.s(["getOptimisedAppearId",()=>e9],17002),t.s(["animateTarget",()=>e8],61810),t.s(["isObject",()=>e6],15085),t.s(["isSVGElement",()=>it],14256),t.s(["isSVGSVGElement",()=>ie],12630);let ii=new Set(["brightness","contrast","saturate","opacity"]);function is(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(ta)||[];if(!n)return t;let s=i.replace(n,""),r=+!!ii.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let ir=/\b([a-z-]*)\(.*?\)/gu,ia={...tV,getAnimatableNone:t=>{let e=t.match(ir);return e?e.map(is).join(" "):t}},io={...ti,transform:Math.round},il={borderWidth:tg,borderTopWidth:tg,borderRightWidth:tg,borderBottomWidth:tg,borderLeftWidth:tg,borderRadius:tg,borderTopLeftRadius:tg,borderTopRightRadius:tg,borderBottomRightRadius:tg,borderBottomLeftRadius:tg,width:tg,maxWidth:tg,height:tg,maxHeight:tg,top:tg,right:tg,bottom:tg,left:tg,inset:tg,insetBlock:tg,insetBlockStart:tg,insetBlockEnd:tg,insetInline:tg,insetInlineStart:tg,insetInlineEnd:tg,padding:tg,paddingTop:tg,paddingRight:tg,paddingBottom:tg,paddingLeft:tg,paddingBlock:tg,paddingBlockStart:tg,paddingBlockEnd:tg,paddingInline:tg,paddingInlineStart:tg,paddingInlineEnd:tg,margin:tg,marginTop:tg,marginRight:tg,marginBottom:tg,marginLeft:tg,marginBlock:tg,marginBlockStart:tg,marginBlockEnd:tg,marginInline:tg,marginInlineStart:tg,marginInlineEnd:tg,fontSize:tg,backgroundPositionX:tg,backgroundPositionY:tg,rotate:tm,rotateX:tm,rotateY:tm,rotateZ:tm,scale:ts,scaleX:ts,scaleY:ts,scaleZ:ts,skew:tm,skewX:tm,skewY:tm,distance:tg,translateX:tg,translateY:tg,translateZ:tg,x:tg,y:tg,z:tg,perspective:tg,transformPerspective:tg,opacity:tn,originX:tx,originY:tx,originZ:tg,zIndex:io,fillOpacity:tn,strokeOpacity:tn,numOctaves:io},iu={...il,color:tC,backgroundColor:tC,outlineColor:tC,fill:tC,stroke:tC,borderColor:tC,borderTopColor:tC,borderRightColor:tC,borderBottomColor:tC,borderLeftColor:tC,filter:ia,WebkitFilter:ia},ih=t=>iu[t],ic=()=>({translate:0,scale:1,origin:0,originPoint:0}),id=()=>({x:ic(),y:ic()}),ip=()=>({min:0,max:0}),im=()=>({x:ip(),y:ip()});t.s(["createBox",()=>im,"createDelta",()=>id],53559);let ig=t=>e=>e.test(t),iv=[ti,tg,tf,tm,ty,tv,{test:t=>"auto"===t,parse:t=>t}],iy=t=>iv.find(ig(t)),ix=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function iw(t,e){let i=ih(t);return i!==ia&&(i=tV),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let iC=new Set(["auto","none","0"]);class ib extends ej{constructor(t,e,i,n,s){super(t,e,i,n,s,!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 n=t[i];if("string"==typeof n&&Q(n=n.trim())){let s=function t(e,i,n=1){R(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=ix.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return Q(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!eQ.has(i)||2!==t.length)return;let[n,s]=t,r=iy(n),a=iy(s);if(te(n)!==te(s)&&eb[i]){this.needsMeasurement=!0;return}if(r!==a)if(ex(r)&&ex(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else eb[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);
1i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!iC.has(e)&&tA(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=iw(i,n)}(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=eb[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=eb[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let iT=new Set(["opacity","clipPath","filter","transform"]),{schedule:iS}=d(queueMicrotask,!1);t.s(["microtask",()=>iS],79773);let iM=[...iv,tC,tV];function iA(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function iP(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>iA],42793),t.s(["isVariantLabel",()=>iP],70955);let iE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ij=["initial",...iE];function iV(t){return iA(t.animate)||ij.some(e=>iP(t[e]))}function ik(t){return!!(iV(t)||t.variants)}t.s(["variantPriorityOrder",()=>iE,"variantProps",()=>ij],68850),t.s(["isControllingVariants",()=>iV,"isVariantNode",()=>ik],64960);let iD={current:null},iR={current:!1},iB="u">typeof window,iL=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iF={};function iI(t){iF=t}function iN(){return iF}class iO{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ej,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=y.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,p.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=iV(e),this.isVariantNode=ik(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&O(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eJ.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(iR.current||function(){if(iR.current=!0,iB)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iD.current=t.matches;t.addEventListener("change",e),e()}else iD.current=!1}(),this.shouldReduceMotion=iD.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),m(this.notifyUpdate),m(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;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&iT.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:a}=e.accelerate,o=new eF({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:C(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let n=ey.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&p.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),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 iF){let e=iF[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.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):im()}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<iL.length;e++){let i=iL[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(O(s))t.addValue(n,s);else if(O(r))t.addValue(n,w(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,w(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);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=w(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 n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!iM.find(ig(n))&&tV.test(e)&&(i=iw(t,e))}this.setBaseTarget(t,O(i)?i.get():i)}return O(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 n=e1(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||O(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new o),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){iS.render(this.render)}}t.s(["VisualElement",()=>iO,"getFeatureDefinitions",()=>iN,"setFeatureDefinitions",()=>iI],48059);class iU extends iO{constructor(){super(...arguments),this.KeyframeResolver=ib}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[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;O(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let iW=(t,e)=>e&&"number"==typeof t?e.transform(t):t,i$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iz=ev.length;function iH(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(ey.has(t)){a=!0;continue}if(Z(t)){s[t]=i;continue}{let e=iW(i,il[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}
1if(!e.transform&&(a||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<iz;r++){let a=ev[r],o=t[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let t=parseFloat(o);l=a.startsWith("scale")?1===t:0===t}if(!l||i){let t=iW(o,il[a]);if(!l){s=!1;let e=i$[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",()=>iH],12957);let i_={offset:"stroke-dashoffset",array:"stroke-dasharray"},iG={offset:"strokeDashoffset",array:"strokeDasharray"},iK=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function iY(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(iH(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),iK))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?i_:iG;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(c,s,r,a,!1)}t.s(["buildSVGAttrs",()=>iY],13118);let iX=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"]),iq=t=>"string"==typeof t&&"svg"===t.toLowerCase();function iZ(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}function iJ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}t.s(["isSVGTag",()=>iq],46658);let iQ={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tg.test(t))return t;else t=parseFloat(t);let i=iJ(t,e.target.x),n=iJ(t,e.target.y);return`${i}% ${n}%`}},i0={borderRadius:{...iQ,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:iQ,borderTopRightRadius:iQ,borderBottomLeftRadius:iQ,borderBottomRightRadius:iQ,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tV.parse(t);if(n.length>5)return t;let s=tV.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=W(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function i1(t,{layout:e,layoutId:i}){return ey.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!i0[t]||"opacity"===t)}function i2(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(O(n[e])||s&&O(s[e])||i1(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function i5(t,e,i){let n=i2(t,e,i);for(let i in t)(O(t[i])||O(e[i]))&&(n[-1!==ev.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}t.s(["scaleCorrectors",()=>i0],65777),t.s(["isForcedMotionValue",()=>i1],4287),t.s(["scrapeMotionValuesFromProps",()=>i2],70025),t.s(["scrapeMotionValuesFromProps",()=>i5],38145);class i3 extends iU{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=im}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ey.has(e)){let t=ih(e);return t&&t.default||0}return e=iX.has(e)?e:e7(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return i5(t,e,i)}build(t,e,i){iY(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in iZ(t,e,void 0,n),e.attrs)t.setAttribute(iX.has(i)?i:e7(i),e.attrs[i])}mount(t){this.isSVGTag=iq(t.tagName),super.mount(t)}}function i7({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function i4({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function i9(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}function i8(t){return void 0===t||1===t}function i6({scale:t,scaleX:e,scaleY:i}){return!i8(t)||!i8(e)||!i8(i)}function nt(t){return i6(t)||ne(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ne(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}
1function ni(t,e,i){return i+e*(t-i)}function nn(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function ns(t,e=0,i=1,n,s){t.min=nn(t.min,e,i,n,s),t.max=nn(t.max,e,i,n,s)}function nr(t,{x:e,y:i}){ns(t.x,e.translate,e.scale,e.originPoint),ns(t.y,i.translate,i.scale,i.originPoint)}function na(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&nu(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,nr(t,r)),n&&nt(s.latestValues)&&nu(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function no(t,e){t.min=t.min+e,t.max=t.max+e}function nl(t,e,i,n,s=.5){let r=W(t.min,t.max,s);ns(t,e,i,r,n)}function nu(t,e){nl(t.x,e.x,e.scaleX,e.scale,e.originX),nl(t.y,e.y,e.scaleY,e.scale,e.originY)}function nh(t,e){return i7(i9(t.getBoundingClientRect(),e))}function nc(t,e,i){let n=nh(t,i),{scroll:s}=e;return s&&(no(n.x,s.offset.x),no(n.y,s.offset.y)),n}t.s(["SVGVisualElement",()=>i3],61782),t.s(["convertBoundingBoxToBox",()=>i7,"convertBoxToBoundingBox",()=>i4,"transformBoxPoints",()=>i9],3807),t.s(["has2DTranslate",()=>ne,"hasScale",()=>i6,"hasTransform",()=>nt],20509),t.s(["applyBoxDelta",()=>nr,"applyTreeDeltas",()=>na,"scalePoint",()=>ni,"transformBox",()=>nu,"translateAxis",()=>no],17885),t.s(["measurePageBox",()=>nc,"measureViewportBox",()=>nh],9683);class nd extends iU{constructor(){super(...arguments),this.type="html",this.renderInstance=iZ}readValueFromInstance(t,e){if(ey.has(e))return this.projection?.isProjecting?em(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return ef(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(Z(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return nh(t,e)}build(t,e,i){iH(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return i2(t,e,i)}}t.s(["HTMLVisualElement",()=>nd],65289)},62582,t=>{"use strict";let e,i;var n,s=t.i(61782),r=t.i(65289),a=t.i(9010);let o=["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 l(t){if("string"!=typeof t||t.includes("-"));else if(o.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.i(2803);var u=t.i(38821);let h=(0,a.createContext)({}),c=(0,a.createContext)({strict:!1}),d=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),p=(0,a.createContext)({});var m=t.i(64960),f=t.i(70955);function g(t){return Array.isArray(t)?t.join(" "):t}var v=t.i(49034),y=t.i(4287),x=t.i(12957);let w=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function C(t,e,i){for(let n in e)(0,v.isMotionValue)(e[n])||(0,y.isForcedMotionValue)(n,i)||(t[n]=e[n])}var b=t.i(13118),T=t.i(46658);let S=()=>({...w(),attrs:{}}),M=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","propagate","ignoreStrict","viewport"]);function A(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||M.has(t)}let P=t=>!A(t);try{n=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof n&&(P=t=>t.startsWith("on")?!A(t):n(t))}catch{}var E=t.i(70025),E=E;function j(t){return(0,v.isMotionValue)(t)?t.get():t}var V=t.i(42793),k=t.i(38928);let D=(0,a.createContext)(null),R=t=>(e,i)=>{let n,s=(0,a.useContext)(p),r=(0,a.useContext)(D),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e}
1,i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=j(r[t]);let{initial:a,animate:o}=t,l=(0,m.isControllingVariants)(t),u=(0,m.isVariantNode)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!(0,V.isAnimationControls)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,k.resolveVariantFromProps)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,s,r);return i?o():(null===(n=(0,a.useRef)(null)).current&&(n.current=o()),n.current)},B=R({scrapeMotionValuesFromProps:E.scrapeMotionValuesFromProps,createRenderState:w});var L=t.i(38145),L=L;let F=R({scrapeMotionValuesFromProps:L.scrapeMotionValuesFromProps,createRenderState:S}),I="u">typeof window;var N=t.i(48059);let O={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"]},U=!1;function W(){return!function(){if(U)return;let t={};for(let e in O)t[e]={isEnabled:t=>O[e].some(e=>!!t[e])};(0,N.setFeatureDefinitions)(t),U=!0}(),(0,N.getFeatureDefinitions)()}let $=Symbol.for("motionComponentSymbol");var z=t.i(71303);let H=(0,a.createContext)({});function _(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let G=I?a.useLayoutEffect:a.useEffect;function K(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=W();for(let i in t)e[i]={...e[i],...t[i]};(0,N.setFeatureDefinitions)(e)}(n);let r=i?"svg"===i:l(t),o=r?F:B;function y(i,n){var y;let M,E,j,V={...(0,a.useContext)(d),...i,layoutId:function({layoutId:t}){let e=(0,a.useContext)(h).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:k}=V,R=function(t){let{initial:e,animate:i}=function(t,e){if((0,m.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,f.isVariantLabel)(e)?e:void 0,animate:(0,f.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(p));return(0,a.useMemo)(()=>({initial:e,animate:i}),[g(e),g(i)])}(i),B=o(i,k);if(!k&&I){(0,a.useContext)(c).strict;let e=function(t){let{drag:e,layout:i}=W();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(V);M=e.MeasureLayout,R.visualElement=function(t,e,i,n,s,r){let{visualElement:o}=(0,a.useContext)(p),l=(0,a.useContext)(c),u=(0,a.useContext)(D),h=(0,a.useContext)(d),m=h.reducedMotion,f=h.skipAnimations,g=(0,a.useRef)(null),v=(0,a.useRef)(!1);n=n||l.renderer,!g.current&&n&&(g.current=n(t,{visualState:e,parent:o,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:r}),v.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let y=g.current,x=(0,a.useContext)(H);y&&!y.projection&&s&&("html"===y.type||"svg"===y.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=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:s,layout:r,alwaysMeasureLayout:!!a||o&&_(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(g.current,i,s,x);let w=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{y&&w.current&&y.update(i,u)});let C=i[z.optimizedAppearDataAttribute],b=(0,a.useRef)(!!C&&!window.MotionHandoffIsComplete?.(C)&&window.MotionHasOptimisedAnimation?.(C));return G(()=>{v.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),b.current&&y.animationState&&y.animationState.animateChanges())}),(0,a.useEffect)(()=>{y&&(!b.current&&y.animationState&&y.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(C)}),b.current=!1),y.enteringChildren=void 0)}),y}(t,B,V,s,e.ProjectionNode,r)}return(0,u.jsxs)(p.Provider,{value:R,children:[M&&R.visualElement?(0,u.jsx)(M,{visualElement:R.visualElement,...V}
1):null,function(t,e,i,{latestValues:n},s,r=!1,o){let u=(o??l(t)?function(t,e,i,n){let s=(0,a.useMemo)(()=>{let i=S();return(0,b.buildSVGAttrs)(i,e,(0,T.isSVGTag)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};C(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},C(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,a.useMemo)(()=>{let i=w();return(0,x.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),h=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(P(s)||!0===i&&A(s)||!e&&!A(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),c=t!==a.Fragment?{...h,...u,ref:i}:{},{children:d}=e,p=(0,a.useMemo)(()=>(0,v.isMotionValue)(d)?d.get():d,[d]);return(0,a.createElement)(t,{...c,children:p})}(t,i,(y=R.visualElement,E=(0,a.useRef)(n),(0,a.useInsertionEffect)(()=>{E.current=n}),j=(0,a.useRef)(null),(0,a.useCallback)(t=>{t&&B.onMount?.(t),y&&(t?y.mount(t):y.unmount());let e=E.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(j.current=i)}else j.current?(j.current(),j.current=null):e(t);else e&&(e.current=t)},[y])),B,k,e,r)]})}y.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let M=(0,a.forwardRef)(y);return M[$]=t,M}class Y{constructor(t){this.isMounted=!1,this.node=t}update(){}}var X=t.i(36105),q=t.i(61810);function Z(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}function J(t,e,i={}){let n=(0,X.resolveVariant)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all((0,q.animateTarget)(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(J(l,e,{...a,delay:i+("function"==typeof n?0:n)+Z(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}var Q=t.i(68850);let tt=Q.variantProps.length;var te=t.i(80871);function ti(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}
1let tn=[...Q.variantPriorityOrder].reverse(),ts=Q.variantPriorityOrder.length;function tr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ta(){return{animate:tr(!0),whileInView:tr(),whileHover:tr(),whileTap:tr(),whileDrag:tr(),whileFocus:tr(),exit:tr()}}let to=0;var tl=t.i(76061),tu=t.i(53559),th=t.i(90965);function tc(t){return[t("x"),t("y")]}var td=t.i(9683),tp=t.i(3807),tm=t.i(1575),tf=t.i(69671),tg=t.i(95499);let tv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ty=new Set(["INPUT","SELECT","TEXTAREA"]);function tx(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let tw={x:!1,y:!1};var tC=t.i(23569);function tb(t){return t.max-t.min}function tT(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tg.mixNumber)(e.min,e.max,t.origin),t.scale=tb(i)/tb(e),t.translate=(0,tg.mixNumber)(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 tS(t,e,i,n){tT(t.x,e.x,i.x,n?n.originX:void 0),tT(t.y,e.y,i.y,n?n.originY:void 0)}function tM(t,e,i){t.min=i.min+e.min,t.max=t.min+tb(e)}function tA(t,e,i){t.min=e.min-i.min,t.max=t.min+tb(e)}function tP(t,e,i){tA(t.x,e.x,i.x),tA(t.y,e.y,i.y)}var tE=t.i(14256),tj=t.i(63131);let tV=new WeakMap,tk=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:(0,tE.isSVGElement)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],tD=tk("inline","width","offsetWidth"),tR=tk("block","height","offsetHeight");function tB({target:t,borderBoxSize:e}){tV.get(t)?.forEach(i=>{i(t,{get width(){return tD(t,e)},get height(){return tR(t,e)}})})}function tL(t){t.forEach(tB)}let tF=new Set;function tI(t,n){let s;return"function"==typeof t?(tF.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};tF.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{tF.delete(t),tF.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(tL)),(s=(0,tj.resolveElements)(t)).forEach(t=>{let i=tV.get(t);i||(i=new Set,tV.set(t,i)),i.add(n),e?.observe(t)}),()=>{s.forEach(t=>{let i=tV.get(t);i?.delete(n),i?.size||e?.unobserve(t)})})}var tN=t.i(18699);let tO=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tU(t){return{point:{x:t.pageX,y:t.pageY}}}function tW(t,e,i,n){return tx(t,e,t=>tO(t)&&i(t,tU(t)),n)}let t$=({current:t})=>t?t.ownerDocument.defaultView:null;var tz=t.i(60325),tH=t.i(87449);let t_=(t,e)=>Math.abs(t-e),tG=new Set(["auto","scroll"]);class tK{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tq(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(t_(t.x,e.x)**2+t_(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=th.frameData;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tY(e,this.transformPagePoint),th.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=tq("pointercancel"===t.type?this.lastMoveEventInfo:tY(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!tO(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const o=tY(tU(t),this.transformPagePoint),{point:l}=o,{timestamp:u}=th.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,tq(o,this.history)),this.removeListeners=(0,tz.pipe)(tW(this.contextWindow,"pointermove",this.handlePointerMove),tW(this.contextWindow,"pointerup",this.handlePointerUp),tW(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tG.has(t.overflowX)||tG.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),th.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,th.cancelFrame)(this.updatePoint)}}function tY(t,e){return e?{point:e(t.point)}:t}function tX(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tq({point:t},e){return{point:t,delta:tX(t,tZ(e)),offset:tX(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=tZ(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,tH.secondsToMilliseconds)(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&s.timestamp-n.timestamp>
12*(0,tH.secondsToMilliseconds)(.1)&&(n=t[1]);let r=(0,tH.millisecondsToSeconds)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function tZ(t){return t[t.length-1]}var tJ=t.i(51458),tQ=t.i(79672);function t0(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 t1(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function t2(t,e,i){return{min:t5(t,e),max:t5(t,i)}}function t5(t,e){return"number"==typeof t?t:t[e]||0}let t3=new WeakMap;class t7{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=(0,tu.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(tU(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(tw[t])return null;else return tw[t]=!0,()=>{tw[t]=!1};return tw.x||tw.y?null:(tw.x=tw.y=!0,()=>{tw.x=tw.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),tc(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tC.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=tb(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&th.frame.update(()=>s(t,e),!1,!0),(0,tm.addValueToWillChange)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&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&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&th.frame.update(()=>r(t,e),!1,!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new tK(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:t$(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&th.frame.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!t9(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tg.mixNumber)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tg.mixNumber)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}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,n=this.constraints;t&&_(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:t0(t.x,i,s),y:t0(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:t2(t,"left","right"),y:t2(t,"top","bottom")}}(e),n!==this.constraints&&!_(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&tc(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!_(e))return!1;let n=e.current;(0,tN.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,td.measurePageBox)(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:t1(t.x,r.x),y:t1(t.y,r.y)});if(i){let t=i((0,tp.convertBoxToBoundingBox)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,tp.convertBoundingBoxToBox)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(tc(a=>{if(!t9(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tm.addValueToWillChange)(this.visualElement,t),i.start((0,tf.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tc(t=>this.getAxisMotionValue(t).stop())}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){tc(e=>{let{drag:i}=this.getProps();if(!t9(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],a=s.get()||0;s.set(t[e]-(0,tg.mixNumber)(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!_(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tc(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,a,o,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,a=tb(i),(o=tb(s))>a?r=(0,tJ.progress)(s.min,s.max-a,i.min):a>o&&(r=(0,tJ.progress)(i.min,i.max-o,s.min)),(0,tQ.clamp)(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),tc(e=>{if(!t9(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,tg.mixNumber)(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;t3.set(this.visualElement,this);let e=this.visualElement.current,i=tW(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=t.target,r=s!==e&&(ty.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,a,{dragConstraints:o}=this.getProps();_(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=o.current,r=tI(i,t4(s=()=>this.scalePositionWithinConstraints())),a=tI(n,t4(s)),t=()=>{r(),a()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),th.frame.read(n);let a=tx(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tc(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function t4(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function t9(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let t8=t=>(e,i)=>{t&&th.frame.update(()=>t(e,i),!1,!0)},t6={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var et=t.i(79773),ee=a;let ei=!1;class en extends ee.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),ei&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),t6.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),ei=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||th.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),et.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;ei=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function es(t){let[e,i]=function(t=!0){let e=(0,a.useContext)(D);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,a.useId)();(0,a.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,a.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,ee.useContext)(h);return(0,u.jsx)(en,{...t,layoutGroup:n,switchLayoutGroup:(0,ee.useContext)(H),isPresent:e,safeToRemove:i})}var er=t.i(96566),ea=t.i(59156),eo=t.i(17002),el=t.i(72550),eu=t.i(1588),eh=t.i(65777),ec=t.i(26836),ed=t.i(86614),ep=t.i(12630),em=t.i(14222),ef=t.i(28080);let eg=["TopLeft","TopRight","BottomLeft","BottomRight"],ev=eg.length,ey=t=>"string"==typeof t?parseFloat(t):t,ex=t=>"number"==typeof t||tC.px.test(t);function ew(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eC=eT(0,.5,ef.circOut),eb=eT(.5,.95,tl.noop);function eT(t,e,i){return n=>n<t?0:n>e?1:i((0,tJ.progress)(t,e,n))}function eS(t,e){t.min=e.min,t.max=e.max}function eM(t,e){eS(t.x,e.x),eS(t.y,e.y)}function eA(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eP=t.i(17885);function eE(t,e,i,n,s){return t-=e,t=(0,eP.scalePoint)(t,1/i,n),void 0!==s&&(t=(0,eP.scalePoint)(t,1/s,n)),t}function ej(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(tC.percent.test(e)&&(e=parseFloat(e),e=(0,tg.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,tg.mixNumber)(r.min,r.max,n);t===r&&(o-=e),t.min=eE(t.min,e,i,o,s),t.max=eE(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let eV=["x","scaleX","originX"],ek=["y","scaleY","originY"];function eD(t,e,i,n){ej(t.x,e,eV,i?i.x:void 0,n?n.x:void 0),ej(t.y,e,ek,i?i.y:void 0,n?n.y:void 0)}function eR(t){return 0===t.translate&&1===t.scale}function eB(t){return eR(t.x)&&eR(t.y)}function eL(t,e){return t.min===e.min&&t.max===e.max}function eF(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eI(t,e){return eF(t.x,e.x)&&eF(t.y,e.y)}function eN(t){return tb(t.x)/tb(t.y)}function eO(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var eU=t.i(62752);class eW{constructor(){this.members=[]}add(t){(0,eU.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1===n.isConnected&&!1!==i.isPresent&&!i.snapshot&&(0,eU.removeItem)(this.members,i)}t.scheduleRender()}remove(t){if((0,eU.removeItem)(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)}
1}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],n=i.instance;if(!1!==i.isPresent&&(!n||!1!==n.isConnected)){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();let n=i.options.layoutDependency,s=t.options.layoutDependency;if(void 0===n||void 0===s||n!==s){let n=i.instance;!(n&&!1===n.isConnected&&!i.snapshot)&&(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:r}=t.options;!1===r&&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 e$=(t,e)=>t.depth-e.depth;class ez{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eU.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,eU.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(e$),this.isDirty=!1,this.children.forEach(t)}}var eH=t.i(20509);let e_={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eG=["","X","Y","Z"],eK=0;function eY(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eX({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=eK++,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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ed.statsBuffer.value&&(e_.nodes=e_.calculatedTargetDeltas=e_.calculatedProjections=0),this.nodes.forEach(eJ),this.nodes.forEach(e7),this.nodes.forEach(e4),this.nodes.forEach(eQ),ed.statsBuffer.addProjectionMetrics&&ed.statsBuffer.addProjectionMetrics(e_)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 ez)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new er.SubscriptionManager),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=(0,tE.isSVGElement)(e)&&!(0,ep.isSVGSVGElement)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;th.frame.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=eu.time.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&((0,th.cancelFrame)(r),s(i-250))},th.frame.setup(r,!0),i=()=>(0,th.cancelFrame)(r),t6.hasAnimatedSinceResize&&(t6.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(e3))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ii,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!eI(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,el.getValueTransition)(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||e3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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(),(0,th.cancelFrame)(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(e9),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 n=(0,eo.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",th.frame,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(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 n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e1);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(e2);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(e5),this.nodes.forEach(eq),this.nodes.forEach(eZ)):this.nodes.forEach(e2),this.clearAllSnapshots();let t=eu.time.now();th.frameData.delta=(0,tQ.clamp)(0,1e3/60,t-th.frameData.timestamp),th.frameData.timestamp=t,th.frameData.isProcessing=!0,th.frameSteps.update.process(th.frameData),th.frameSteps.preRender.process(th.frameData),th.frameSteps.render.process(th.frameData),th.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,et.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e0),this.sharedNodes.forEach(e8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,th.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){th.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tb(this.snapshot.measuredBox.x)||tb(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.layoutVersion++,this.layoutCorrected=(0,tu.createBox)(),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=n(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(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eB(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,eH.hasTransform)(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),ia((e=n).x),ia(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tu.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(il))){let{scroll:t}=this.root;t&&((0,eP.translateAxis)(e.x,t.offset.x),(0,eP.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tu.createBox)();if(eM(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&eM(e,t),(0,eP.translateAxis)(e.x,s.offset.x),(0,eP.translateAxis)(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=(0,tu.createBox)();eM(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,eP.transformBox)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,eH.hasTransform)(n.latestValues)&&(0,eP.transformBox)(i,n.latestValues)}return(0,eH.hasTransform)(this.latestValues)&&(0,eP.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,tu.createBox)();eM(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,eH.hasTransform)(i.latestValues))continue;(0,eH.hasScale)(i.latestValues)&&i.updateSnapshot();let n=(0,tu.createBox)();eM(n,i.measurePageBox()),eD(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,eH.hasTransform)(this.latestValues)&&eD(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!==th.frameData.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:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=th.frameData.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tu.createBox)(),this.targetWithTransforms=(0,tu.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,tM(a.x,o.x,l.x),tM(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eM(this.target,this.layout.layoutBox),(0,eP.applyBoxDelta)(this.target,this.targetDelta)):eM(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),ed.statsBuffer.value&&e_.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,eH.hasScale)(this.parent.latestValues)||(0,eH.has2DTranslate)(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)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tu.createBox)(),this.relativeTargetOrigin=(0,tu.createBox)(),tP(this.relativeTargetOrigin,e,i),eM(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}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===th.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;eM(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(0,eP.applyTreeDeltas)(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=(0,tu.createBox)());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eA(this.prevProjectionDelta.x,this.projectionDelta.x),eA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tS(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&eO(this.projectionDelta.x,this.prevProjectionDelta.x)&&eO(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),ed.statsBuffer.value&&e_.calculatedProjections++}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=(0,tu.createDelta)(),this.projectionDelta=(0,tu.createDelta)(),this.projectionDeltaWithTransform=(0,tu.createDelta)()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=(0,tu.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,tu.createBox)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(ie));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(e6(a.x,t.x,n),e6(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;tP(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=n,it(p.x,m.x,f.x,g),it(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,eL(u.x,d.x)&&eL(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tu.createBox)()),eM(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,tg.mixNumber)(0,i.opacity??1,eC(n)),t.opacityExit=(0,tg.mixNumber)(e.opacity??1,0,eb(n))):r&&(t.opacity=(0,tg.mixNumber)(e.opacity??1,i.opacity??1,n));for(let s=0;s<ev;s++){let r=`border${eg[s]}Radius`,a=ew(e,r),o=ew(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ex(a)===ex(o)?(t[r]=Math.max((0,tg.mixNumber)(ey(a),ey(o),n),0),(tC.percent.test(o)||tC.percent.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,tg.mixNumber)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,th.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=th.frame.update(()=>{t6.hasAnimatedSinceResize=!0,ec.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,em.motionValue)(0)),this.currentAnimation=(0,ea.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ec.activeAnimations.layout--},onComplete:()=>{ec.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),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:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&io(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tu.createBox)();let e=tb(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tb(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}
1eM(e,i),(0,eP.transformBox)(e,s),tS(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eW),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;return 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 n=this.getStack();n&&n.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 n={};i.z&&eY("z",t,n,this.animationValues);for(let e=0;e<eG.length;e++)eY(`rotate${eG[e]}`,t,n,this.animationValues),eY(`skew${eG[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[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=j(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=j(e?.pointerEvents)||""),this.hasProjected&&!(0,eH.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eh.scaleCorrectors){if
1(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eh.scaleCorrectors[e],l="none"===r?s[e]:i(s[e],n);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=n===this?j(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(e1),this.root.sharedNodes.clear()}}}function eq(t){t.updateLayout()}function eZ(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?tc(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=tb(n);n.min=i[t].min,n.max=n.min+s}):io(s,e.layoutBox,i)&&tc(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=tb(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=(0,tu.createDelta)();tS(a,i,e.layoutBox);let o=(0,tu.createDelta)();r?tS(o,t.applyTransform(n,!0),e.measuredBox):tS(o,i,e.layoutBox);let l=!eB(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=(0,tu.createBox)();tP(a,e.layoutBox,s.layoutBox);let o=(0,tu.createBox)();tP(o,i,r.layoutBox),eI(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eJ(t){ed.statsBuffer.value&&e_.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eQ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e0(t){t.clearSnapshot()}function e1(t){t.clearMeasurements()}function e2(t){t.isLayoutDirty=!1}function e5(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function e3(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function e7(t){t.resolveTargetDelta()}function e4(t){t.calcProjection()}function e9(t){t.resetSkewAndRotation()}function e8(t){t.removeLeadSnapshot()}function e6(t,e,i){t.translate=(0,tg.mixNumber)(e.translate,0,i),t.scale=(0,tg.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function it(t,e,i,n){t.min=(0,tg.mixNumber)(e.min,i.min,n),t.max=(0,tg.mixNumber)(e.max,i.max,n)}function ie(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ii={duration:.45,ease:[.4,0,.1,1]},is=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ir=is("applewebkit/")&&!is("chrome/")?Math.round:tl.noop;function ia(t){t.min=ir(t.min),t.max=ir(t.max)}function io(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eN(e)-eN(i)))}function il(t){return t!==t.root&&t.scroll?.wasRoot}let iu=eX({attachResizeListener:(t,e)=>tx(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ih={current:void 0},ic=eX({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ih.current){let t=new iu({});t.mount(window),t.setOptions({layoutScroll:!0}),ih.current=t}return ih.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function id(t,e){let i=(0,tj.resolveElements)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ip(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&th.frame.postRender(()=>s(e,tU(e)))}var im=t.i(15085);let ig=(t,e)=>!!e&&(t===e||ig(t,e.parentElement)),iv=new WeakSet;function iy(t){return e=>{"Enter"===e.key&&t(e)}}function ix(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iw(t){return tO(t)&&!(tw.x||tw.y)}let iC=new WeakSet;function ib(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&th.frame.postRender(()=>s(e,tU(e)))}let iT=new WeakMap,iS=new WeakMap,iM=t=>{let e=iT.get(t.target);e&&e(t)}
1,iA=t=>{t.forEach(iM)},iP={some:0,all:1},iE=function(t,e){if("u"<typeof Proxy)return K;let i=new Map,n=(i,n)=>K(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,K(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends Y{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 n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>J(t,e,i)));else if("string"==typeof e)n=J(t,e,i);else{let s="function"==typeof e?(0,X.resolveVariant)(t,e,i.custom):e;n=Promise.all((0,q.animateTarget)(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ta(),n=!0,s=e=>(i,n)=>{let s=(0,X.resolveVariant)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){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<tt;t++){let n=Q.variantProps[t],s=e.props[n];((0,f.isVariantLabel)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<ts;e++){var d,p;let m=tn[e],g=i[m],v=void 0!==a[m]?a[m]:o[m],y=(0,f.isVariantLabel)(v),x=m===r?g.isActive:null;!1===x&&(c=e);let w=v===o[m]&&v!==a[m]&&y;if(w&&n&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...h},!g.isActive&&null===x||!v&&!g.prevProp||(0,V.isAnimationControls)(v)||"boolean"==typeof v)continue;if("exit"===m&&g.isActive&&!0!==x){g.prevResolvedValues&&(h={...h,...g.prevResolvedValues});continue}let C=(d=g.prevProp,"string"==typeof(p=v)?p!==d:!!Array.isArray(p)&&!ti(p,d)),b=C||m===r&&g.isActive&&!w&&y||e>c&&y,T=!1,S=Array.isArray(v)?v:[v],M=S.reduce(s(m),{});!1===x&&(M={});let{prevResolvedValues:A={}}=g,P={...A,...M},E=e=>{b=!0,u.has(e)&&(T=!0,u.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in P){let e=M[t],i=A[t];if(!h.hasOwnProperty(t))((0,te.isKeyframesTarget)(e)&&(0,te.isKeyframesTarget)(i)?ti(e,i):e===i)?void 0!==e&&u.has(t)?E(t):g.protectedKeys[t]=!0:null!=e?E(t):u.add(t)}g.prevProp=v,g.prevResolvedValues=M,g.isActive&&(h={...h,...M}),n&&t.blockInitialAnimation&&(b=!1);let j=w&&C,k=!j||T;b&&k&&l.push(...S.map(e=>{let i={type:m};if("string"==typeof e&&n&&!j&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,X.resolveVariant)(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=Z(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=(0,X.resolveVariant)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ta()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,V.isAnimationControls)(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 Y{constructor(){super(...arguments),this.id=to++}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 n=this.node.animationState.setActive("exit",!t);e&&!t&&n.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 Y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:iP[r]},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:n}=this.node.getProps(),s=e?i:n;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;iS.has(i)||iS.set(i,{});let n=iS.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(iA,{root:t,...e})),n[s]}(o),iT.set(t,l),e.observe(t),()=>{iT.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<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 Y{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=id(t,i),a=t=>{let n=t.currentTarget;if(!iw(t)||iC.has(t))return;iv.add(n),i.stopPropagation&&iC.add(t);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),iv.has(n)&&iv.delete(n),iw(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||ig(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),(0,im.isObject)(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=iy(()=>{if(iv.has(i))return;ix(i,"down");let t=iy(()=>{ix(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>ix(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),tv.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(ib(this.node,e,"Start"),(t,{success:e})=>ib(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends Y{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=(0,tz.pipe)(tx(this.node.current,"focus",()=>this.onFocus()),tx(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Y{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=id(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||tw.x||tw.y)return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r}(t,(t,e)=>(ip(this.node,e,"Start"),t=>ip(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends Y{constructor(){super(...arguments),this.removePointerDownListener=tl.noop}onPointerDown(t){this.session=new tK(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:t$(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:t8(t),onStart:t8(e),onMove:t8(i),onEnd:(t,e)=>{delete this.session,n&&th.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tW(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 Y{constructor(t){super(t),this.removeGroupControls=tl.noop,this.removeListeners=tl.noop,this.controls=new t7(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tl.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:ic,MeasureLayout:es},layout:{ProjectionNode:ic,MeasureLayout:es}},(t,e)=>e.isSVG??l(t)?new s.SVGVisualElement(e):new r.HTMLVisualElement(e,{allowProjection:t!==a.Fragment}));t.s(["motion",()=>iE],62582)},86229,t=>{"use strict";var e=t.i(38821),i=t.i(9010),n=t.i(62582),s=t.i(15843);let r=i.default.memo(({className:t})=>{let i=["M-380 -189C-380 -189 -312 216 152 343C616 470 684 875 684 875","M-373 -197C-373 -197 -305 208 159 335C623 462 691 867 691 867","M-366 -205C-366 -205 -298 200 166 327C630 454 698 859 698 859","M-359 -213C-359 -213 -291 192 173 319C637 446 705 851 705 851","M-352 -221C-352 -221 -284 184 180 311C644 438 712 843 712 843","M-345 -229C-345 -229 -277 176 187 303C651 430 719 835 719 835","M-338 -237C-338 -237 -270 168 194 295C658 422 726 827 726 827","M-331 -245C-331 -245 -263 160 201 287C665 414 733 819 733 819","M-324 -253C-324 -253 -256 152 208 279C672 406 740 811 740 811","M-317 -261C-317 -261 -249 144 215 271C679 398 747 803 747 803","M-310 -269C-310 -269 -242 136 222 263C686 390 754 795 754 795","M-303 -277C-303 -277 -235 128 229 255C693 382 761 787 761 787","M-296 -285C-296 -285 -228 120 236 247C700 374 768 779 768 779","M-289 -293C-289 -293 -221 112 243 239C707 366 775 771 775 771","M-282 -301C-282 -301 -214 104 250 231C714 358 782 763 782 763","M-275 -309C-275 -309 -207 96 257 223C721 350 789 755 789 755","M-268 -317C-268 -317 -200 88 264 215C728 342 796 747 796 747","M-261 -325C-261 -325 -193 80 271 207C735 334 803 739 803 739","M-254 -333C-254 -333 -186 72 278 199
1C742 326 810 731 810 731","M-247 -341C-247 -341 -179 64 285 191C749 318 817 723 817 723","M-240 -349C-240 -349 -172 56 292 183C756 310 824 715 824 715","M-233 -357C-233 -357 -165 48 299 175C763 302 831 707 831 707","M-226 -365C-226 -365 -158 40 306 167C770 294 838 699 838 699","M-219 -373C-219 -373 -151 32 313 159C777 286 845 691 845 691","M-212 -381C-212 -381 -144 24 320 151C784 278 852 683 852 683","M-205 -389C-205 -389 -137 16 327 143C791 270 859 675 859 675","M-198 -397C-198 -397 -130 8 334 135C798 262 866 667 866 667","M-191 -405C-191 -405 -123 0 341 127C805 254 873 659 873 659","M-184 -413C-184 -413 -116 -8 348 119C812 246 880 651 880 651","M-177 -421C-177 -421 -109 -16 355 111C819 238 887 643 887 643","M-170 -429C-170 -429 -102 -24 362 103C826 230 894 635 894 635","M-163 -437C-163 -437 -95 -32 369 95C833 222 901 627 901 627","M-156 -445C-156 -445 -88 -40 376 87C840 214 908 619 908 619","M-149 -453C-149 -453 -81 -48 383 79C847 206 915 611 915 611","M-142 -461C-142 -461 -74 -56 390 71C854 198 922 603 922 603","M-135 -469C-135 -469 -67 -64 397 63C861 190 929 595 929 595","M-128 -477C-128 -477 -60 -72 404 55C868 182 936 587 936 587","M-121 -485C-121 -485 -53 -80 411 47C875 174 943 579 943 579","M-114 -493C-114 -493 -46 -88 418 39C882 166 950 571 950 571","M-107 -501C-107 -501 -39 -96 425 31C889 158 957 563 957 563","M-100 -509C-100 -509 -32 -104 432 23C896 150 964 555 964 555","M-93 -517C-93 -517 -25 -112 439 15C903 142 971 547 971 547","M-86 -525C-86 -525 -18 -120 446 7C910 134 978 539 978 539","M-79 -533C-79 -533 -11 -128 453 -1C917 126 985 531 985 531","M-72 -541C-72 -541 -4 -136 460 -9C924 118 992 523 992 523","M-65 -549C-65 -549 3 -144 467 -17C931 110 999 515 999 515","M-58 -557C-58 -557 10 -152 474 -25C938 102 1006 507 1006 507","M-51 -565C-51 -565 17 -160 481 -33C945 94 1013 499 1013 499","M-44 -573C-44 -573 24 -168 488 -41C952 86 1020 491 1020 491","M-37 -581C-37 -581 31 -176 495 -49C959 78 1027 483 1027 483"];return(0,e.jsx)("div",{className:(0,s.cn)("absolute inset-0 flex h-full w-full items-center justify-center [mask-repeat:no-repeat] [mask-size:40px]",t),children:(0,e.jsxs)("svg",{className:"pointer-events-none absolute z-0 h-full w-full",width:"100%",height:"100%",viewBox:"0 0 696 316",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M-380 -189C-380 -189 -312 216 152 343C616 470 684 875 684 875M-373 -197C-373 -197 -305 208 159 335C623 462 691 867 691 867M-366 -205C-366 -205 -298 200 166 327C630 454 698 859 698 859M-359 -213C-359 -213 -291 192 173 319C637 446 705 851 705 851M-352 -221C-352 -221 -284 184 180 311C644 438 712 843 712 843M-345 -229C-345 -229 -277 176 187 303C651 430 719 835 719 835M-338 -237C-338 -237 -270 168 194 295C658 422 726 827 726 827M-331 -245C-331 -245 -263 160 201 287C665 414 733 819 733 819M-324 -253C-324 -253 -256 152 208 279C672 406 740 811 740 811M-317 -261C-317 -261 -249 144 215 271C679 398 747 803 747 803M-310 -269C-310 -269 -242 136 222 263C686 390 754 795 754 795M-303 -277C-303 -277 -235 128 229 255C693 382 761 787 761 787M-296 -285C-296 -285 -228 120 236 247C700 374 768 779 768 779M-289 -293C-289 -293 -221 112 243 239C707 366 775 771 775 771M-282 -301C-282 -301 -214 104 250 231C714 358 782 763 782 763M-275 -309C-275 -309 -207 96 257 223C721 350 789 755 789 755M-268 -317C-268 -317 -200 88 264 215C728 342 796 747 796 747M-261 -325C-261 -325 -193 80 271 207C735 334 803 739 803 739M-254 -333C-254 -333 -186 72 278 199C742 326 810 731 810 731M-247 -341C-247 -341 -179 64 285 191C749 318 817 723 817 723M-240 -349C-240 -349 -172 56 292 183C756 310 824 715 824 715M-233 -357C-233 -357 -165 48 299 175C763 302 831 707 831 707M-226 -365C-226 -365 -158 40 306 167C770 294 838 699 838 699M-219 -373C-219 -373 -151 32 313 159C777 286 845 691 845 691M-212 -381C-212 -381 -144 24 320 151C784 278 852 683 852 683M-205 -389C-205 -389 -137 16 327 143C791 270 859 675 859 675M-198 -397C-198 -397 -130 8 334 135C798 262 866 667 866 667M-191 -405C-191 -405 -123 0 341 127C805 254 873 659 873 659M-184 -413C-184 -413 -116 -8 348 119C812 246 880 651 880 651M-177 -421C-177 -421 -109 -16 355 111C819 238 887 643 887 643M-170 -429C-170 -429 -102 -24 362 103C826 230 894 635 894 635M-163 -437C-163 -437 -95 -32 369 95C833 222 901 627 901 627M-156 -445C-156 -445 -88 -40 376 87C840 214 908 619 908 619M-149 -453C-149 -453 -81 -48 383 79C847 206 915 611 915 611M-142 -461C-142 -461 -74 -56 390 71C854 198 922 603 922 603M-135 -469C-135 -469 -67 -64 397 63C861 190 929 595 929 595M-128 -477C-128 -477 -60 -72 404 55C868 182 936 587 936 587M-121 -485C-121 -485 -53 -80 411 47C875 174 943 579 943 579M-114 -493C-114 -493 -46 -88 418 39C882 166 950 571 950 571M-107 -501C-107 -501 -39 -96 425 31C889 158 957 563 957 563M-100 -509C-100 -509 -32 -104 432 23C896 150 964 555 964 555M-93 -517C-93 -517 -25 -112 439 15C903 142 971 547 971 547M-86 -525C-86 -525 -18 -120 446 7C910 134 978 539 978 539M-79 -533C-79 -533 -11 -128 453 -1C917 126 985 531 985 531M-72 -541C-72 -541 -4 -136 460 -9C924 118 992 523 992 523M-65 -549C-65 -549 3 -144 467 -17C931 110 999 515 999 515M-58 -557C-58 -557 10 -152 474 -25C938 102 1006 507 1006 507M-51 -565C-51 -565 17 -160 481 -33C945 94 1013 499 1013 499M-44 -573C-44 -573 24 -168 488 -41C952 86 1020 491 1020 491M-37 -581C-37 -581 31 -176 495 -49C959 78 1027 483 1027 483M-30 -589C-30 -589 38 -184 502 -57C966 70 1034 475 1034 475M-23 -597C-23 -597 45 -192 509 -65C973 62 1041 467 1041 467M-16 -605C-16 -605 52 -200 516 -73C980 54 1048 459 1048 459M-9 -613C-9 -613 59 -208 523 -81C987 46 1055 451 1055 451M-2 -621C-2 -621 66 -216 530 -89C994 38 1062 443 1062 443M5 -629C5 -629 73 -224 537 -97C1001 30 1069 435 1069 435M12 -637C12 -637 80 -232 544 -105C1008 22 1076 427 1076 427M19 -645C19 -645 87 -240 551 -113C1015 14 1083 419 1083 419",stroke:"url
1(#paint0_radial_242_278)",strokeOpacity:"0.05",strokeWidth:"0.5"}),i.map((t,i)=>(0,e.jsx)(n.motion.path,{d:t,stroke:`url(#linearGradient-${i})`,strokeOpacity:"0.4",strokeWidth:"0.5"},"path-"+i)),(0,e.jsxs)("defs",{children:[i.map((t,i)=>(0,e.jsxs)(n.motion.linearGradient,{id:`linearGradient-${i}`,initial:{x1:"0%",x2:"0%",y1:"0%",y2:"0%"},animate:{x1:["0%","100%"],x2:["0%","95%"],y1:["0%","100%"],y2:["0%",`${93+8*Math.random()}%`]},transition:{duration:10*Math.random()+10,ease:"easeInOut",repeat:1/0,delay:10*Math.random()},children:[(0,e.jsx)("stop",{stopColor:"#18CCFC",stopOpacity:"0"}),(0,e.jsx)("stop",{stopColor:"#18CCFC"}),(0,e.jsx)("stop",{offset:"32.5%",stopColor:"#6344F5"}),(0,e.jsx)("stop",{offset:"100%",stopColor:"#AE48FF",stopOpacity:"0"})]},`gradient-${i}`)),(0,e.jsxs)("radialGradient",{id:"paint0_radial_242_278",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(352 34) rotate(90) scale(555 1560.62)",children:[(0,e.jsx)("stop",{offset:"0.0666667",stopColor:"#d4d4d4"}),(0,e.jsx)("stop",{offset:"0.243243",stopColor:"#d4d4d4"}),(0,e.jsx)("stop",{offset:"0.43594",stopColor:"white",stopOpacity:"0"})]})]})]})})});r.displayName="BackgroundBeams",t.s(["BackgroundBeams",0,r])},23782,t=>{"use strict";var e=t.i(38821),i=t.i(37993),n=t.i(42092),s=t.i(9010);function r({lightSrc:t,darkSrc:r,alt:a,width:o,height:l,priority:u=!1,className:h,quality:c}){let{resolvedTheme:d}=(0,n.useTheme)(),[p,m]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{m(!0)},[]),!p)return(0,e.jsxs)("div",{className:h,children:[(0,e.jsx)(i.default,{src:t,alt:a,width:o,height:l,priority:u,quality:c,className:"dark:hidden"}),(0,e.jsx)(i.default,{src:r,alt:a,width:o,height:l,priority:u,quality:c,className:"hidden dark:block"})]});let f="dark"===d?r:t;return(0,e.jsx)(i.default,{src:f,alt:a,width:o,height:l,priority:u,quality:c,className:h})}t.s(["ThemeImage",()=>r])},56712,t=>{"use strict";var e=t.i(38821),i=t.i(62582);function n({size:t,children:n,delay:s=0}){return(0,e.jsx)(i.motion.div,{initial:{y:0},animate:{y:[-2,2,-2]},transition:{duration:4,repeat:1/0,ease:"easeInOut",delay:s},className:`${{sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16"}[t]} flex items-center justify-center rounded-full border border-border/20 bg-background/50 shadow-[0px_0px_8px_0px_rgba(248,248,248,0.15)_inset,0px_8px_16px_-4px_rgba(0,0,0,0.12)] backdrop-blur-sm dark:bg-background/10 dark:shadow-[0px_0px_8px_0px_rgba(248,248,248,0.2)_inset,0px_12px_20px_-6px_rgba(0,0,0,0.35)]`,children:(0,e.jsx)("div",{className:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}[t],children:n})})}function s(){return(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",viewBox:"0 0 512 512",className:"h-full w-full",children:[(0,e.jsx)("rect",{fill:"#CC9B7A",width:"512",height:"512",rx:"104.187",ry:"105.042"}),(0,e.jsx)("path",{fill:"#1F1F1E",fillRule:"nonzero",d:"M318.663 149.787h-43.368l78.952 212.423 43.368.004-78.952-212.427zm-125.326 0l-78.952 212.427h44.255l15.932-44.608 82.846-.004 16.107 44.612h44.255l-79.126-212.427h-45.317zm-4.251 128.341l26.91-74.701 27.083 74.701h-53.993z"})]})}function r(){return(0,e.jsxs)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",className:"h-full w-full dark:text-white",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M9.75 14a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 .75-.75Zm4.5 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 .75-.75Z"}),(0,e.jsx)("path",{d:"M12 2c2.214 0 4.248.657 5.747 1.756.136.099.268.204.397.312.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086l.633 1.478.043.022A4.75 4.75 0 0 1 24 15.222v1.028c0 .529-.309.987-.565 1.293-.28.336-.636.653-.966.918a13.84 13.84 0 0 1-1.299.911l-.024.015-.006.004-.039.025c-.223.135-.45.264-.68.386-.46.245-1.122.571-1.941.895C16.845 21.344 14.561 22 12 22c-2.561 0-4.845-.656-6.479-1.303a19.046 19.046 0 0 1-1.942-.894 14.081 14.081 0 0 1-.535-.3l-.144-.087-.04-.025-.006-.004-.024-.015a13.16 13.16 0 0 1-1.299-.911 6.913 6.913 0 0 1-.967-.918C.31 17.237 0 16.779 0 16.25v-1.028a4.75 4.75 0 0 1 2.626-4.248l.043-.022.633-1.478a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.498 1.132-3.368.397-.406.89-.717 1.474-.952.129-.108.261-.213.397-.312C7.752 2.657 9.786 2 12 2Zm-8 9.654v6.669a17.59 17.59 0 0 0 2.073.98C7.595 19.906 9.686 20.5 12 20.5c2.314 0 4.405-.594 5.927-1.197a17.59 17.59 0 0 0 2.073-.98v-6.669l-.038-.09c-.046.061-.095.12-.145.177-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.544-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.344a4.323 4.323 0 0 1-.355.508C10.704 12.456 9.555 13 7.965 13c-1.725 0-2.989-.359
1-3.782-1.259a3.026 3.026 0 0 1-.145-.177Zm6.309-1.092c.445-.547.708-1.334.851-2.301.057-.357.087-.718.09-1.079v-.031c-.001-.762-.166-1.26-.43-1.568l-.008-.01c-.341-.391-1.046-.689-2.533-.529-1.505.163-2.347.537-2.824 1.024-.462.473-.705 1.18-.705 2.32 0 .605.044 1.087.135 1.472.092.384.231.672.423.89.365.413 1.084.75 2.657.75.91 0 1.527-.223 1.964-.564.14-.11.268-.235.38-.374Zm2.504-2.497c.136 1.057.403 1.913.878 2.497.442.545 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.151.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.318-.862-2.824-1.025-1.487-.161-2.192.139-2.533.529-.268.308-.437.808-.438 1.578v.02c.002.299.023.598.063.894Z"})]})}function a(){return(0,e.jsx)("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-full w-full dark:text-white",children:(0,e.jsx)("path",{d:"M26.153 11.46a6.888 6.888 0 0 0-.608-5.73 7.117 7.117 0 0 0-3.29-2.93 7.238 7.238 0 0 0-4.41-.454 7.065 7.065 0 0 0-2.41-1.742A7.15 7.15 0 0 0 12.514 0a7.216 7.216 0 0 0-4.217 1.346 7.061 7.061 0 0 0-2.603 3.539 7.12 7.12 0 0 0-2.734 1.188A7.012 7.012 0 0 0 .966 8.268a6.979 6.979 0 0 0 .88 8.273 6.89 6.89 0 0 0 .607 5.729 7.117 7.117 0 0 0 3.29 2.93 7.238 7.238 0 0 0 4.41.454 7.061 7.061 0 0 0 2.409 1.742c.92.404 1.916.61 2.923.604a7.215 7.215 0 0 0 4.22-1.345 7.06 7.06 0 0 0 2.605-3.543 7.116 7.116 0 0 0 2.734-1.187 7.01 7.01 0 0 0 1.993-2.196 6.978 6.978 0 0 0-.884-8.27Zm-10.61 14.71c-1.412 0-2.505-.428-3.46-1.215.043-.023.119-.064.168-.094l5.65-3.22a.911.911 0 0 0 .464-.793v-7.86l2.389 1.36a.087.087 0 0 1 .046.065v6.508c0 2.952-2.491 5.248-5.257 5.248ZM4.062 21.354a5.17 5.17 0 0 1-.635-3.516c.042.025.115.07.168.1l5.65 3.22a.928.928 0 0 0 .928 0l6.898-3.93v2.72a.083.083 0 0 1-.034.072l-5.711 3.255a5.386 5.386 0 0 1-4.035.522 5.315 5.315 0 0 1-3.23-2.443ZM2.573 9.184a5.283 5.283 0 0 1 2.768-2.301V13.515a.895.895 0 0 0 .464.793l6.897 3.93-2.388 1.36a.087.087 0 0 1-.08.008L4.52 16.349a5.262 5.262 0 0 1-2.475-3.185 5.192 5.192 0 0 1 .527-3.98Zm19.623 4.506-6.898-3.93 2.388-1.36a.087.087 0 0 1 .08-.008l5.713 3.255a5.28 5.28 0 0 1 2.054 2.118 5.19 5.19 0 0 1-.488 5.608 5.314 5.314 0 0 1-2.39 1.742v-6.633a.896.896 0 0 0-.459-.792Zm2.377-3.533a7.973 7.973 0 0 0-.168-.099l-5.65-3.22a.93.93 0 0 0-.928 0l-6.898 3.93V8.046a.083.083 0 0 1 .034-.072l5.712-3.251a5.375 5.375 0 0 1 5.698.241 5.262 5.262 0 0 1 1.865 2.28c.39.92.506 1.93.335 2.913ZM9.631 15.009l-2.39-1.36a.083.083 0 0 1-.046-.065V7.075c.001-.997.29-1.973.832-2.814a5.297 5.297 0 0 1 2.231-1.935 5.382 5.382 0 0 1 5.659.72 4.89 4.89 0 0 0-.168.093l-5.65 3.22a.913.913 0 0 0-.465.793l-.003 7.857Zm1.297-2.76L14 10.5l3.072 1.75v3.5L14 17.499l-3.072-1.75v-3.5Z",fill:"currentColor"})})}function o(){return(0,e.jsxs)("svg",{viewBox:"0 0 287.56 191",xmlns:"http://www.w3.org/2000/svg",className:"h-full w-full",children:[(0,e.jsxs)("defs",{children:[(0,e.jsxs)("linearGradient",{id:"meta-lg1",x1:"62.34",y1:"101.45",x2:"260.34",y2:"91.45",gradientTransform:"matrix(1, 0, 0, -1, 0, 192)",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"0",stopColor:"#0064e1"}),(0,e.jsx)("stop",{offset:"0.4",stopColor:"#0064e1"}),(0,e.jsx)("stop",{offset:"0.83",stopColor:"#0073ee"}),(0,e.jsx)("stop",{offset:"1",stopColor:"#0082fb"})]}),(0,e.jsxs)("linearGradient",{id:"meta-lg2",x1:"41.42",y1:"53",x2:"41.42",y2:"126",gradientTransform:"matrix(1, 0, 0, -1, 0, 192)",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"0",stopColor:"#0082fb"}),(0,e.jsx)("stop",{offset:"1",stopColor:"#0064e0"})]})]}),(0,e.jsx)("path",{fill:"#0081fb",d:"M31.06,126c0,11,2.41,19.41,5.56,24.51A19,19,0,0,0,53.19,160c8.1,0,15.51-2,29.79-21.76,11.44-15.83,24.92-38,34-52l15.36-23.6c10.67-16.39,23-34.61,37.18-47C181.07,5.6,193.54,0,206.09,0c21.07,0,41.14,12.21,56.5,35.11,16.81,25.08,25,56.67,25,89.27,0,19.38-3.82,33.62-10.32,44.87C271,180.13,258.72,191,238.13,191V160c17.63,0,22-16.2,22-34.74,0-26.42-6.16-55.74-19.73-76.69-9.63-14.86-22.11-23.94-35.84-23.94-14.85,0-26.8,11.2-40.23,31.17-7.14,10.61-14.47,23.54-22.7,38.13l-9.06,16c-18.2,32.27-22.81,39.62-31.91,51.75C84.74,183,71.12,191,53.19,191c-21.27,0-34.72-9.21-43-23.09C3.34,156.6,0,141.76,0,124.85Z"}),(0,e.jsx)("path",{fill:"url(#meta-lg1)",d:"M24.49,37.3C38.73,15.35,59.28,0,82.85,0c13.65,0,27.22,4,41.39,15.61,15.5,12.65,32,33.48,52.63,67.81l7.39,12.32c17.84,29.72,28,45,33.93,52.22,7.64,9.26,13,12,19.94,12,17.63,0,22-16.2,22-34.74l27.4-.86c0,19.38-3.82,33.62-10.32,44.87C271,180.13,258.72,191,238.13,191c-12.8,0-24.14-2.78-36.68-14.61-9.64-9.08-20.91-25.21-29.58-39.71L146.08,93.6c-12.94-21.62-24.81-37.74-31.68-45C107,40.71,97.51,31.23,82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78Z"}),(0,e.jsx)("path",{fill:"url(#meta-lg2)",d:"M82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78C38.61,71.62,31.06,99.34,31.06,126c0,11,2.41,19.41,5.56,24.51L10.14,167.91C3.34,156.6,0,141.76,0,124.85,0,94.1,8.44,62.05,24.49,37.3,38.73,15.35,59.28,0,82.85,0Z"})]})}function l(){return(0,e.jsxs)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"h-full w-full",children:[(0,e.jsx)("path",{d:"M16 8.016A8.522 8.522 0 008.016 16h-.032A8.521 8.521 0 000 8.016v-.032A8.521 8.521 0 007.984 0h.032A8.522 8.522 0 0016 7.984v.032z",fill:"url(#gemini-grad)"}),(0,e.jsx)("defs",{children:(0,e.jsxs)("radialGradient",{id:"gemini-grad",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(16.1326 5.4553 -43.70045 129.2322 1.588 6.503)",children:[(0,e.jsx)("stop",{offset:".067",stopColor:"#9168C0"}),(0,e.jsx)("stop",{offset:".343",stopColor:"#5684D1"}),(0,e.jsx)("stop",{offset:".672",stopColor:"#1BA1E3"})]})})]})}function u(){return(0,e.jsxs)("div",{className:"mt-8 flex items-center justify-center gap-4 sm:gap-6",children:[(0,e.jsx)(n,{size:"sm",delay:0,children:(0,e.jsx)(s,{})}),(0,e.jsx)(n,{size:"md",delay:.5,children:(0,e.jsx)(r,{})}),(0,e.jsx)(n,{size:"lg",delay:1,children:(0,e.jsx)(a,{})}),(0,e.jsx)(n,{size:"md",delay:.5,children:(0,e.jsx)(o,{})}),(0,e.jsx)(n,{size:"sm",delay:0,children:(0,e.jsx)(l,{})})]})}t.s(["AIToolsOrbit",()=>u])},69391,t=>{"use strict";var e=t.i(38821),i=t.i(9010),n=t.i(24426),s=t.i(16593),r=t.i(68290),a=t.i(79039),o=t.i(92492),l=t.i(56902),u=t.i(15843);let h={windows:"Windows",linux:"Linux"},c=()=>()=>{},d=()=>"unknown";function p(){let t=navigator;return(0,l.detectPlatform)(t.userAgent,t.userAgentData?.platform)}function m({location:t,layout:l="row",className:m,macLabel:f="Download on the Mac App Store"}){let g=(0,n.usePostHog)(),v=(0,i.useSyncExternalStore)(c,p,d),[y,x]=(0,i.useState)(!1),w="windows"===v?"windows":"linux"===v?"linux":null,C=(0,u.cn)("flex items-center gap-4","row"===l?"flex-col sm:flex-row":"w-full flex-col",m);if(!w)return(0,e.jsx)("div",{className:C,children:(0,e.jsx)(s.Button,{asChild:!0,size:"lg",className:(0,u.cn)("h-12 px-8 text-base","stack"===l&&"w-full"),children:(0,e.jsx)(a.AppStoreButton,{location:t,children:f})})});let b=h[w];return(0,e.jsxs)("div",{className:C,children:[(0,e.jsxs)(r.Dialog,{open:y,onOpenChange:x,children:[(0,e.jsx)(r.DialogTrigger,{asChild:!0,children:(0,e.jsxs)(s.Button,{size:"lg",className:(0,u.cn)("h-12 px-8 text-base","stack"===l&&"w-full"),onClick:()=>g?.capture("download_clicked",{location:t,platform_target:w,variant:"waitlist"}),children:["Join the ",b," waitlist"]})}),(0,e.jsxs)(r.DialogContent,{className:"sm:max-w-md",children:[(0,e.jsxs)(r.DialogHeader,{children:[(0,e.jsxs)(r.DialogTitle,{children:["SnipperApp for ",b]}),(0,e.jsxs)(r.DialogDescription,{children:["SnipperApp 3 runs on macOS today. Leave your email and we will tell you once, if and when a ",b," version ships."]})]}),(0,e.jsx)(o.WaitlistForm,{platform:w,location:t})]})]}),(0,e.jsx)(s.Button,{asChild:!0,variant:"outline",size:"lg",className:(0,u.cn)("h-12 px-8 text-base","stack"===l&&"w-full"),children:(0,e.jsx)(a.AppStoreButton,{location:`${t}-secondary`,children:"Download for Mac"})})]})}t.s(["PlatformCTA",()=>m])},67499,t=>{"use strict";var e=t.i(38821),i=t.i(9010),n=t.i(37993),s=t.i(91967),r=t.i(96893),a=t.i(19852),o=t.i(95043),l=t.i(69758),u=t.i(57698),h=t.i(67746),c=t.i(17034),d=t.i(
174321),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},f="RovingFocusGroup",[g,v,y]=(0,a.createCollection)(f),[x,w]=(0,r.createContextScope)(f,[y]),[C,b]=x(f),T=i.forwardRef((t,i)=>(0,e.jsx)(g.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,e.jsx)(g.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,e.jsx)(S,{...t,ref:i})})}));T.displayName=f;var S=i.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:l=!1,dir:g,currentTabStopId:y,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:w,onEntryFocus:b,preventScrollOnEntryFocus:T=!1,...S}=t,M=i.useRef(null),A=(0,o.useComposedRefs)(n,M),P=(0,d.useDirection)(g),[j,V]=(0,c.useControllableState)({prop:y,defaultProp:x??null,onChange:w,caller:f}),[k,D]=i.useState(!1),R=(0,h.useCallbackRef)(b),B=v(r),L=i.useRef(!1),[F,I]=i.useState(0);return i.useEffect(()=>{let t=M.current;if(t)return t.addEventListener(p,R),()=>t.removeEventListener(p,R)},[R]),(0,e.jsx)(C,{scope:r,orientation:a,dir:P,loop:l,currentTabStopId:j,onItemFocus:i.useCallback(t=>V(t),[V]),onItemShiftTab:i.useCallback(()=>D(!0),[]),onFocusableItemAdd:i.useCallback(()=>I(t=>t+1),[]),onFocusableItemRemove:i.useCallback(()=>I(t=>t-1),[]),children:(0,e.jsx)(u.Primitive.div,{tabIndex:k||0===F?-1:0,"data-orientation":a,...S,ref:A,style:{outline:"none",...t.style},onMouseDown:(0,s.composeEventHandlers)(t.onMouseDown,()=>{L.current=!0}),onFocus:(0,s.composeEventHandlers)(t.onFocus,t=>{let e=!L.current;if(t.target===t.currentTarget&&e&&!k){let e=new CustomEvent(p,m);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){let t=B().filter(t=>t.focusable);E([t.find(t=>t.active),t.find(t=>t.id===j),...t].filter(Boolean).map(t=>t.ref.current),T)}}L.current=!1}),onBlur:(0,s.composeEventHandlers)(t.onBlur,()=>D(!1))})})}),M="RovingFocusGroupItem",A=i.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:o=!1,tabStopId:h,children:c,...d}=t,p=(0,l.useId)(),m=h||p,f=b(M,r),y=f.currentTabStopId===m,x=v(r),{onFocusableItemAdd:w,onFocusableItemRemove:C,currentTabStopId:T}=f;return i.useEffect(()=>{if(a)return w(),()=>C()},[a,w,C]),(0,e.jsx)(g.ItemSlot,{scope:r,id:m,focusable:a,active:o,children:(0,e.jsx)(u.Primitive.span,{tabIndex:y?0:-1,"data-orientation":f.orientation,...d,ref:n,onMouseDown:(0,s.composeEventHandlers)(t.onMouseDown,t=>{a?f.onItemFocus(m):t.preventDefault()}),onFocus:(0,s.composeEventHandlers)(t.onFocus,()=>f.onItemFocus(m)),onKeyDown:(0,s.composeEventHandlers)(t.onKeyDown,t=>{if("Tab"===t.key&&t.shiftKey)return void f.onItemShiftTab();if(t.target!==t.currentTarget)return;let e=function(t,e,i){var n;let s=(n=t.key,"rtl"!==i?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===e&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===e&&["ArrowUp","ArrowDown"].includes(s)))return P[s]}(t,f.orientation,f.dir);if(void 0!==e){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)return;t.preventDefault();let s=x().filter(t=>t.focusable).map(t=>t.ref.current);if("last"===e)s.reverse();else if("prev"===e||"next"===e){var i,n;"prev"===e&&s.reverse();let r=s.indexOf(t.currentTarget);s=f.loop?(i=s,n=r+1,i.map((t,e)=>i[(n+e)%i.length])):s.slice(r+1)}setTimeout(()=>E(s))}}),children:"function"==typeof c?c({isCurrentTabStop:y,hasTabStop:null!=T}):c})})});A.displayName=M;var P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(t,e=!1){let i=document.activeElement;for(let n of t)if(n===i||(n.focus({preventScroll:e}),document.activeElement!==i))return}var j=t.i(13002),V="Tabs",[k,D]=(0,r.createContextScope)(V,[w]),R=w(),[B,L]=k(V),F=i.forwardRef((t,i)=>{let{__scopeTabs:n,value:s,onValueChange:r,defaultValue:a,orientation:o="horizontal",dir:h,activationMode:p="automatic",...m}=t,f=(0,d.useDirection)(h),[g,v]=(0,c.useControllableState)({prop:s,onChange:r,defaultProp:a??"",caller:V});return(0,e.jsx)(B,{scope:n,baseId:(0,l.useId)(),value:g,onValueChange:v,orientation:o,dir:f,activationMode:p,children:(0,e.jsx)(u.Primitive.div,{dir:f,"data-orientation":o,...m,ref:i})})});F.displayName=V;var I="TabsList",N=i.forwardRef((t,i)=>{let{__scopeTabs:n,loop:s=!0,...r}=t,a=L(I,n),o=R(n);return(0,e.jsx)(T,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:s,children:(0,e.jsx)(u.Primitive.div,{role:"tablist","aria-orientation":a.orientation,...r,ref:i})})});N.displayName=I;var O="TabsTrigger",U=i.forwardRef((t,i)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...o}=t,l=L(O,n),h=R(n),c=z(l.baseId,r),d=H(l.baseId,r),p=r===l.value;return(0,e.jsx)(A,{asChild:!0,...h,focusable:!a,active:p,children:(0,e.jsx)(u.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":d,"data-state":p?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...o,ref:i,onMouseDown:(0,s.composeEventHandlers)(t.onMouseDown,t=>{a||0!==t.button||!1!==t.ctrlKey?t.preventDefault():l.onValueChange(r)}),onKeyDown:(0,s.composeEventHandlers)(t.onKeyDown,t=>{[" ","Enter"].includes(t.key)&&l.onValueChange(r)}),onFocus:(0,s.composeEventHandlers)(t.onFocus,()=>{let t="manual"!==l.activationMode;p||a||!t||l.onValueChange(r)})})})});U.displayName=O;
1var W="TabsContent",$=i.forwardRef((t,n)=>{let{__scopeTabs:s,value:r,forceMount:a,children:o,...l}=t,h=L(W,s),c=z(h.baseId,r),d=H(h.baseId,r),p=r===h.value,m=i.useRef(p);return i.useEffect(()=>{let t=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,e.jsx)(j.Presence,{present:a||p,children:({present:i})=>(0,e.jsx)(u.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":c,hidden:!i,id:d,tabIndex:0,...l,ref:n,style:{...t.style,animationDuration:m.current?"0s":void 0},children:i&&o})})});function z(t,e){return`${t}-trigger-${e}`}function H(t,e){return`${t}-content-${e}`}$.displayName=W,t.s(["Content",()=>$,"List",()=>N,"Root",()=>F,"Tabs",()=>F,"TabsContent",()=>$,"TabsList",()=>N,"TabsTrigger",()=>U,"Trigger",()=>U,"createTabsScope",()=>D],74464);var _=t.i(74464),_=_,G=t.i(70553);let K=(0,G.default)("layout-list",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]);var Y=t.i(65153);let X=(0,G.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),q=[{id:"commands",label:"Commands",icon:K,src:"/raycast/commands.webp",caption:"Nine SnipperApp commands plus the Ask SnipperApp AI extension, straight from Raycast root search.",alt:"Raycast root search listing the SnipperApp commands: Create Snippet, Ask SnipperApp, Browse Trending, Paste Last Snippet, Recent Snippets, Save Clipboard as Snippet, Save Selection as Snippet, Search Hub, and Search Snippets"},{id:"paste",label:"Search & paste",icon:Y.Search,src:"/raycast/recent-snippets.webp",caption:"Your library with the workspace switcher open. Enter pastes the snippet into the app you came from.",alt:"SnipperApp Raycast extension: the Recent Snippets list with the workspace switcher open, a starred Swift snippet with workspace and language tags, and Paste Snippet on Enter in the footer"},{id:"ai",label:"Ask AI",icon:X,src:"/raycast/ask-ai.webp",caption:"“@snipperapp show me my last Swift snippet”: Raycast AI searches and reads your library. Requires Raycast Pro.",alt:"Raycast AI answering “@snipperapp Show me my last Swift snippet” after calling the Search Snippets and Get Snippet tools, showing the Animated Card View SwiftUI code"}];function Z(){let[t,s]=(0,i.useState)("commands"),r=q.find(e=>e.id===t)??q[0];return(0,e.jsxs)(_.Root,{value:t,onValueChange:t=>s(t),orientation:"horizontal",children:[(0,e.jsx)(_.List,{"aria-label":"Raycast extension screenshots",className:"mx-auto grid max-w-md grid-cols-3 gap-1 rounded-xl bg-muted/40 p-1",children:q.map(t=>(0,e.jsxs)(_.Trigger,{value:t.id,className:"group flex h-10 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-2 text-xs font-medium text-muted-foreground transition-colors duration-200 hover:bg-background/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm sm:text-sm dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30",children:[(0,e.jsx)(t.icon,{className:"hidden h-4 w-4 group-data-[state=active]:text-primary sm:block","aria-hidden":"true"}),t.label]},t.id))}),(0,e.jsx)("div",{className:"mt-4 rounded-2xl border border-border/60 bg-linear-to-b from-muted/70 to-muted/30 p-1.5 shadow-sm has-[[role=tabpanel]:focus-visible]:ring-[3px] has-[[role=tabpanel]:focus-visible]:ring-ring/50 sm:p-2",children:(0,e.jsx)("div",{className:"relative aspect-4/3 overflow-hidden rounded-xl bg-muted/50 ring-1 ring-black/5 sm:aspect-16/10 dark:ring-white/10",children:q.map(i=>{let s=i.id===t;return(0,e.jsx)(_.Content,{value:i.id,forceMount:!0,"aria-hidden":!s,inert:!s,className:"absolute inset-0 transition-opacity ease-out focus-visible:outline-none motion-reduce:transition-none data-[state=active]:z-10 data-[state=active]:opacity-100 data-[state=active]:delay-0 data-[state=active]:duration-300 data-[state=inactive]:opacity-0 data-[state=inactive]:delay-300 data-[state=inactive]:duration-0",children:(0,e.jsx)(n.default,{src:i.src,alt:i.alt,fill:!0,sizes:"(min-width: 1024px) 896px, 100vw",className:"object-cover dark:brightness-[.9]"})},i.id)})})}),(0,e.jsx)("p",{"aria-live":"polite",className:"mx-auto mt-3 max-w-2xl text-center text-sm text-muted-foreground",children:r.caption})]})}t.s(["RaycastStage",()=>Z],67499)},75672,t=>{"use strict";var e=t.i(38821),i=t.i(9010),n=t.i(24426),s=t.i(62949);let r=(0,i.forwardRef)(function({location:t,children:r,onClick:a,...o},l){let u=(0,n.usePostHog)(),h=(0,i.useCallback)(e=>{u?.capture("raycast_install_clicked",{location:t}),a?.(e)},[t,u,a]);return(0,e.jsx)("a",{ref:l,href:s.siteConfig.raycastStoreUrl,target:"_blank",rel:"noopener noreferrer",onClick:h,...o,children:r})});t.s(["RaycastStoreButton",0,r])},71188,t=>{"use strict";var e=t.i(38821),i=t.i(56837),n=t.i(9010),s=t.i(15843);class r{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return a(this.animations,"duration")}get iterationDuration(){return a(this.animations,"iterationDuration")}
1runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function a(t,e){let i=0;for(let n=0;n<t.length;n++){let s=t[n][e];null!==s&&s>i&&(i=s)}return i}class o extends r{then(t,e){return this.finished.finally(t).then(()=>{})}}var l=t.i(62752),u=t.i(14222),h=t.i(61512),c=t.i(49034),d=t.i(16327),p=t.i(7569),m=t.i(76172),f=t.i(21230),g=t.i(51458),v=t.i(87449),y=t.i(18699),x=t.i(28953);function w(t,e){var i;let n;return(0,x.isEasingArray)(t)?t[i=t.length,((e-0)%(n=i-0)+n)%n+0]:t}var C=t.i(63131);function b(t){return"object"==typeof t&&!Array.isArray(t)}function T(t,e,i,n){return null==t?[]:"string"==typeof t&&b(e)?(0,C.resolveElements)(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function S(t,e,i,n){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:e.startsWith("<")?Math.max(0,i+parseFloat(e.slice(1))):n.get(e)??t}var M=t.i(95499);function A(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function P(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function E(t,e){return e[t]||(e[t]=[]),e[t]}let j=t=>"number"==typeof t,V=t=>t.every(j);var k=t.i(59156),D=t.i(59160),R=t.i(61810),B=t.i(14256),L=t.i(12630),F=t.i(61782),I=t.i(65289),N=t.i(53559),O=t.i(48059);class U extends O.VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,N.createBox)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function W(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,B.isSVGElement)(t)&&!(0,L.isSVGSVGElement)(t)?new F.SVGVisualElement(e):new I.HTMLVisualElement(e);i.mount(t),D.visualElementStore.set(t,i)}function $(t){let e=new U({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),D.visualElementStore.set(t,e)}function z(t,e,i,n){let s=[];if((0,c.isMotionValue)(t)||"number"==typeof t||"string"==typeof t&&!b(e))s.push((0,k.animateSingleValue)(t,b(e)&&e.default||e,i&&i.default||i));else{if(null==t)return s;let r=T(t,e,n),a=r.length;(0,y.invariant)(!!a,"No valid elements provided.","no-valid-elements");for(let t=0;t<a;t++){let n=r[t],o=n instanceof Element?W:$;D.visualElementStore.has(n)||o(n);let l=D.visualElementStore.get(n),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,a)),s.push(...(0,R.animateTarget)(l,{...e,transition:u},{}))}}return s}let H=function(t={}){let{scope:e,reduceMotion:i}=t;return function(t,n,s){var r;let a,x=[];if(Array.isArray(t)&&t.some(Array.isArray)){let s;r=void 0!==i?{reduceMotion:i,...n}:n,s=[],(function(t,{defaultTransition:e={},...i}={},n,s){let r=e.duration||.3,a=new Map,o=new Map,u={},h=new Map,x=0,C=0,b=0;for(let i=0;i<t.length;i++){let a=t[i];if("string"==typeof a){h.set(a,C);continue}if(!Array.isArray(a)){h.set(a.name,S(C,a.at,x,h));continue}let[g,A,D={}]=a;void 0!==D.at&&(C=S(C,D.at,x,h));let R=0,B=(t,i,n,a=0,o=0)=>{var u;let h=Array.isArray(u=t)?u:[u],{delay:c=0,times:g=(0,d.defaultOffset)(h),type:x=e.type||"keyframes",repeat:T,repeatType:S,repeatDelay:A=0,...P}=i,{ease:E=e.ease||"easeOut",duration:j}=i,k="function"==typeof c?c(a,o):c,D=h.length,B=(0,p.isGenerator)(x)?x:s?.[x||"keyframes"];if(D<=2&&B){let t=100;2===D&&V(h)&&(t=Math.abs(h[1]-h[0]));let i={...e,...P};void 0!==j&&(i.duration=(0,v.secondsToMilliseconds)(j));let n=(0,m.createGeneratorEasing)(i,t,B);E=n.ease,j=n.duration}j??(j=r);let L=C+k;1===g.length&&0===g[0]&&(g[1]=1);let F=g.length-h.length;if(F>
10&&(0,f.fillOffset)(g,F),1===h.length&&h.unshift(null),T){(0,y.invariant)(T<20,"Repeat count too high, must be less than 20","repeat-count-high");j*=T+1;let t=[...h],e=[...g],i=[...E=Array.isArray(E)?[...E]:[E]];for(let n=0;n<T;n++){h.push(...t);for(let s=0;s<t.length;s++)g.push(e[s]+(n+1)),E.push(0===s?"linear":w(i,s-1))}for(let t=0;t<g.length;t++)g[t]=g[t]/(T+1)}let I=L+j;!function(t,e,i,n,s,r){for(let e=0;e<t.length;e++){let i=t[e];i.at>s&&i.at<r&&((0,l.removeItem)(t,i),e--)}for(let a=0;a<e.length;a++)t.push({value:e[a],at:(0,M.mixNumber)(s,r,n[a]),easing:w(i,a)})}(n,h,E,g,L,I),R=Math.max(k+j,R),b=Math.max(I,b)};if((0,c.isMotionValue)(g))B(A,D,E("default",P(g,o)));else{let t=T(g,A,n,u),e=t.length;for(let i=0;i<e;i++){let n=P(t[i],o);for(let t in A){var j,k;B(A[t],(j=D,k=t,j&&j[k]?{...j,...j[k]}:{...j}),E(t,n),i,e)}}}x=C,C+=R}return o.forEach((t,n)=>{for(let s in t){let r=t[s];r.sort(A);let o=[],l=[],u=[];for(let t=0;t<r.length;t++){let{at:e,value:i,easing:n}=r[t];o.push(i),l.push((0,g.progress)(0,b,e)),u.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),a.has(n)||a.set(n,{keyframes:{},transition:{}});let h=a.get(n);h.keyframes[s]=o;let{type:c,...d}=e;h.transition[s]={...d,duration:b,ease:u,times:l,...i}}}),a})(t.map(t=>{if(Array.isArray(t)&&"function"==typeof t[0]){let e=t[0],i=(0,u.motionValue)(0);return(i.on("change",e),1===t.length)?[i,[0,1]]:2===t.length?[i,[0,1],t[1]]:[i,t[1],t[2]]}return t}),r,e,{spring:h.spring}).forEach(({keyframes:t,transition:e},i)=>{s.push(...z(i,t,e))}),x=s}else{let{onComplete:r,...o}=s||{};"function"==typeof r&&(a=r),x=z(t,n,void 0!==i?{reduceMotion:i,...o}:o,e)}let C=new o(x);return a&&C.finished.then(a),e&&(e.animations.push(C),C.finished.then(()=>{(0,l.removeItem)(e.animations,C)})),C}}(),_=(0,n.memo)(({blur:t=0,inactiveZone:i=.7,proximity:r=0,spread:a=20,variant:o="default",glow:l=!1,className:u,movementDuration:h=2,borderWidth:c=1,disabled:d=!0})=>{let p=(0,n.useRef)(null),m=(0,n.useRef)({x:0,y:0}),f=(0,n.useRef)(0),g=(0,n.useCallback)(t=>{p.current&&(f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>{let e=p.current;if(!e)return;let{left:n,top:s,width:a,height:o}=e.getBoundingClientRect(),l=t?.x??m.current.x,u=t?.y??m.current.y;t&&(m.current={x:l,y:u});let c=[n+.5*a,s+.5*o];if(Math.hypot(l-c[0],u-c[1])<.5*Math.min(a,o)*i)return void e.style.setProperty("--active","0");let d=l>n-r&&l<n+a+r&&u>s-r&&u<s+o+r;if(e.style.setProperty("--active",d?"1":"0"),!d)return;let f=parseFloat(e.style.getPropertyValue("--start"))||0,g=(180*Math.atan2(u-c[1],l-c[0])/Math.PI+90-f+180)%360-180;H(f,f+g,{duration:h,ease:[.16,1,.3,1],onUpdate:t=>{e.style.setProperty("--start",String(t))}})}))},[i,r,h]);return(0,n.useEffect)(()=>{if(d)return;let t=()=>g(),e=t=>g(t);return window.addEventListener("scroll",t,{passive:!0}),document.body.addEventListener("pointermove",e,{passive:!0}),()=>{f.current&&cancelAnimationFrame(f.current),window.removeEventListener("scroll",t),document.body.removeEventListener("pointermove",e)}},[g,d]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:(0,s.cn)("pointer-events-none absolute -inset-px hidden rounded-[inherit] border opacity-0 transition-opacity",l&&"opacity-100","white"===o&&"border-white",d&&"!block")}),(0,e.jsx)("div",{ref:p,style:{"--blur":`${t}px`,"--spread":a,"--start":"0","--active":"0","--glowingeffect-border-width":`${c}px`,"--repeating-conic-gradient-times":"5","--gradient":"white"===o?`repeating-conic-gradient(
2                  from 236.84deg at 50% 50%,
3                  var(--black),
4                  var(--black) calc(25% / var(--repeating-conic-gradient-times))
5                )`:`radial-gradient(circle, #dd7bbb 10%, #dd7bbb00 20%),
6                radial-gradient(circle at 40% 40%, #d79f1e 5%, #d79f1e00 15%),
7                radial-gradient(circle at 60% 60%, #5a922c 10%, #5a922c00 20%), 
8                radial-gradient(circle at 40% 60%, #4c7894 10%, #4c789400 20%),
9                repeating-conic-gradient(
10                  from 236.84deg at 50% 50%,
11                  #dd7bbb 0%,
12                  #d79f1e calc(25% / var(--repeating-conic-gradient-times)),
13                  #5a922c calc(50% / var(--repeating-conic-gradient-times)), 
14                  #4c7894 calc(75% / var(--repeating-conic-gradient-times)),
15                  #dd7bbb calc(100% / var(--repeating-conic-gradient-times))
16                )`},className:(0,s.cn)("pointer-events-none absolute inset-0 rounded-[inherit] opacity-100 transition-opacity",l&&"opacity-100",t>0&&"blur-[var(--blur)] ",u,d&&"!hidden"),children:(0,e.jsx)("div",{className:(0,s.cn)("glow","rounded-[inherit]",'after:content-[""] after:rounded-[inherit] after:absolute after:inset-[calc(-1*var(--glowingeffect-border-width))]',"after:[border:var(--glowingeffect-border-width)_solid_transparent]","after:[background:var(--gradient)] after:[background-attachment:fixed]","after:opacity-[var(--active)] after:transition-opacity after:duration-300","after:[mask-clip:padding-box,border-box]","after:[mask-composite:intersect]","after:[mask-image:linear-gradient(#0000,#0000),conic-gradient(from_calc((var(--start)-var(--spread))*1deg),#00000000_0deg,#fff,#00000000_calc(var(--spread)*2deg))]")})})]})});
16_.displayName="GlowingEffect";var G=t.i(68290),K=t.i(9853),Y=t.i(62949),X=t.i(69391);let q=["All features included","Free lifetime updates","Unlimited devices"],Z=[{category:"Editor",items:["Syntax highlighting for 50+ languages","Markdown preview","Multiple themes","Keyboard shortcuts"]},{category:"Organization",items:["Folders & tags","Workspaces","Favorites","Smart search"]},{category:"AI Integration",items:["MCP support for Claude, Cursor, Windsurf","AI assistants access your snippets directly"]},{category:"Sync",items:["iCloud sync across Macs","GitHub Gist two-way sync"]},{category:"Productivity",items:["Command Center (Cmd+K)","Menubar app with global hotkey","Raycast extension (free, Raycast Store)","File attachments","Automatic backups"]}];function J(){return(0,e.jsx)("section",{id:"pricing",className:"bg-muted/30 py-24 sm:py-32",children:(0,e.jsxs)("div",{className:"mx-auto max-w-6xl px-4 sm:px-6 lg:px-8",children:[(0,e.jsxs)("div",{className:"text-center",children:[(0,e.jsx)("h2",{className:"text-3xl font-bold tracking-tight sm:text-4xl",children:"Simple, honest pricing"}),(0,e.jsx)("p",{className:"mt-4 text-lg text-muted-foreground",children:"One price. All features. Forever yours."})]}),(0,e.jsxs)("div",{className:"mx-auto mt-16 max-w-lg",children:[(0,e.jsxs)("div",{className:"relative rounded-2xl border p-2 md:rounded-3xl md:p-3",children:[(0,e.jsx)(_,{spread:40,glow:!0,disabled:!1,proximity:64,inactiveZone:.01}),(0,e.jsxs)("div",{className:"relative rounded-xl bg-background p-8 sm:p-10",children:[(0,e.jsxs)("div",{className:"text-center",children:[(0,e.jsx)(i.Badge,{variant:"secondary",className:"mb-4 rounded-full px-3 py-1",children:"Lifetime license"}),(0,e.jsx)("div",{className:"mt-2 flex items-baseline justify-center gap-1",children:(0,e.jsx)("span",{className:"text-5xl font-bold tracking-tight text-primary",children:Y.siteConfig.price})}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Try free for 7 days. Then one-time purchase. No subscriptions."})]}),(0,e.jsx)("ul",{className:"mt-8 space-y-3",children:q.map(t=>(0,e.jsxs)("li",{className:"flex items-start gap-3",children:[(0,e.jsx)(K.Check,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,e.jsx)("span",{className:"text-sm",children:t})]},t))}),(0,e.jsxs)(G.Dialog,{children:[(0,e.jsx)(G.DialogTrigger,{asChild:!0,children:(0,e.jsx)("button",{className:"mt-4 w-full text-center text-sm text-primary hover:underline cursor-pointer focus:outline-none",children:"See full list of features"})}),(0,e.jsxs)(G.DialogContent,{className:"max-h-[80vh] overflow-y-auto sm:max-w-lg",children:[(0,e.jsx)(G.DialogHeader,{children:(0,e.jsx)(G.DialogTitle,{children:"All features"})}),(0,e.jsx)("div",{className:"space-y-6 pt-2",children:Z.map(t=>(0,e.jsxs)("div",{children:[(0,e.jsx)("h4",{className:"mb-2 text-sm font-semibold text-muted-foreground",children:t.category}),(0,e.jsx)("ul",{className:"space-y-2",children:t.items.map(t=>(0,e.jsxs)("li",{className:"flex items-start gap-3",children:[(0,e.jsx)(K.Check,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),(0,e.jsx)("span",{className:"text-sm",children:t})]},t))})]},t.category))})]})]}),(0,e.jsx)(X.PlatformCTA,{location:"pricing",layout:"stack",className:"mt-8"}),(0,e.jsx)("p",{className:"mt-4 text-center text-xs text-muted-foreground",children:"Requires macOS 15.0 (Sequoia) or later"})]})]}),(0,e.jsx)("p",{className:"mt-6 text-center text-sm text-muted-foreground",children:"7-day free trial. No credit card required."})]})]})})}t.s(["Pricing",()=>J],71188)},57727,t=>{"use strict";var e=t.i(38821),i=t.i(28997),n=t.i(9010),s=t.i(96893),r=t.i(19852),a=t.i(95043),o=t.i(91967),l=t.i(17034),u=t.i(57698),h=t.i(8679),c=t.i(13002),d=t.i(69758),p="Collapsible",[m,f]=(0,s.createContextScope)(p),[g,v]=m(p),y=n.forwardRef((t,i)=>{let{__scopeCollapsible:s,open:r,defaultOpen:a,disabled:o,onOpenChange:h,...c}=t,[m,f]=(0,l.useControllableState)({prop:r,defaultProp:a??!1,onChange:h,caller:p});return(0,e.jsx)(g,{scope:s,disabled:o,contentId:(0,d.useId)(),open:m,onOpenToggle:n.useCallback(()=>f(t=>!t),[f]),children:(0,e.jsx)(u.Primitive.div,{"data-state":S(m),"data-disabled":o?"":void 0,...c,ref:i})})});y.displayName=p;var x="CollapsibleTrigger",w=n.forwardRef((t,i)=>{let{__scopeCollapsible:n,...s}=t,r=v(x,n);return(0,e.jsx)(u.Primitive.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":S(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...s,ref:i,onClick:(0,o.composeEventHandlers)(t.onClick,r.onOpenToggle)})});w.displayName=x;var C="CollapsibleContent",b=n.forwardRef((t,i)=>{let{forceMount:n,...s}=t,r=v(C,t.__scopeCollapsible);return(0,e.jsx)(c.Presence,{present:n||r.open,children:({present:t})=>(0,e.jsx)(T,{...s,ref:i,present:t})})});b.displayName=C;var T=n.forwardRef((t,i)=>{let{__scopeCollapsible:s,present:r,children:o,...l}=t,c=v(C,s),[d,p]=n.useState(r),m=n.useRef(null),f=(0,a.useComposedRefs)(i,m),g=n.useRef(0),y=g.current,x=n.useRef(0),w=x.current,b=c.open||d,T=n.useRef(b),M=n.useRef(void 0);return n.useEffect(()=>{let t=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,h.useLayoutEffect)(()=>{let t=m.current;if(t){M.current=M.current||{transitionDuration:t.style.transitionDuration,animationName:t.
16style.animationName},t.style.transitionDuration="0s",t.style.animationName="none";let e=t.getBoundingClientRect();g.current=e.height,x.current=e.width,T.current||(t.style.transitionDuration=M.current.transitionDuration,t.style.animationName=M.current.animationName),p(r)}},[c.open,r]),(0,e.jsx)(u.Primitive.div,{"data-state":S(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!b,...l,ref:f,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:b&&o})});function S(t){return t?"open":"closed"}var M=t.i(74321),A="Accordion",P=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[E,j,V]=(0,r.createCollection)(A),[k,D]=(0,s.createContextScope)(A,[V,f]),R=f(),B=n.default.forwardRef((t,i)=>{let{type:n,...s}=t;return(0,e.jsx)(E.Provider,{scope:t.__scopeAccordion,children:"multiple"===n?(0,e.jsx)(U,{...s,ref:i}):(0,e.jsx)(O,{...s,ref:i})})});B.displayName=A;var[L,F]=k(A),[I,N]=k(A,{collapsible:!1}),O=n.default.forwardRef((t,i)=>{let{value:s,defaultValue:r,onValueChange:a=()=>{},collapsible:o=!1,...u}=t,[h,c]=(0,l.useControllableState)({prop:s,defaultProp:r??"",onChange:a,caller:A});return(0,e.jsx)(L,{scope:t.__scopeAccordion,value:n.default.useMemo(()=>h?[h]:[],[h]),onItemOpen:c,onItemClose:n.default.useCallback(()=>o&&c(""),[o,c]),children:(0,e.jsx)(I,{scope:t.__scopeAccordion,collapsible:o,children:(0,e.jsx)(z,{...u,ref:i})})})}),U=n.default.forwardRef((t,i)=>{let{value:s,defaultValue:r,onValueChange:a=()=>{},...o}=t,[u,h]=(0,l.useControllableState)({prop:s,defaultProp:r??[],onChange:a,caller:A}),c=n.default.useCallback(t=>h((e=[])=>[...e,t]),[h]),d=n.default.useCallback(t=>h((e=[])=>e.filter(e=>e!==t)),[h]);return(0,e.jsx)(L,{scope:t.__scopeAccordion,value:u,onItemOpen:c,onItemClose:d,children:(0,e.jsx)(I,{scope:t.__scopeAccordion,collapsible:!0,children:(0,e.jsx)(z,{...o,ref:i})})})}),[W,$]=k(A),z=n.default.forwardRef((t,i)=>{let{__scopeAccordion:s,disabled:r,dir:l,orientation:h="vertical",...c}=t,d=n.default.useRef(null),p=(0,a.useComposedRefs)(d,i),m=j(s),f="ltr"===(0,M.useDirection)(l),g=(0,o.composeEventHandlers)(t.onKeyDown,t=>{if(!P.includes(t.key))return;let e=t.target,i=m().filter(t=>!t.ref.current?.disabled),n=i.findIndex(t=>t.ref.current===e),s=i.length;if(-1===n)return;t.preventDefault();let r=n,a=s-1,o=()=>{(r=n+1)>a&&(r=0)},l=()=>{(r=n-1)<0&&(r=a)};switch(t.key){case"Home":r=0;break;case"End":r=a;break;case"ArrowRight":"horizontal"===h&&(f?o():l());break;case"ArrowDown":"vertical"===h&&o();break;case"ArrowLeft":"horizontal"===h&&(f?l():o());break;case"ArrowUp":"vertical"===h&&l()}let u=r%s;i[u].ref.current?.focus()});return(0,e.jsx)(W,{scope:s,disabled:r,direction:l,orientation:h,children:(0,e.jsx)(E.Slot,{scope:s,children:(0,e.jsx)(u.Primitive.div,{...c,"data-orientation":h,ref:p,onKeyDown:r?void 0:g})})})}),H="AccordionItem",[_,G]=k(H),K=n.default.forwardRef((t,i)=>{let{__scopeAccordion:n,value:s,...r}=t,a=$(H,n),o=F(H,n),l=R(n),u=(0,d.useId)(),h=s&&o.value.includes(s)||!1,c=a.disabled||t.disabled;return(0,e.jsx)(_,{scope:n,open:h,disabled:c,triggerId:u,children:(0,e.jsx)(y,{"data-orientation":a.orientation,"data-state":tt(h),...l,...r,ref:i,disabled:c,open:h,onOpenChange:t=>{t?o.onItemOpen(s):o.onItemClose(s)}})})});K.displayName=H;var Y="AccordionHeader",X=n.default.forwardRef((t,i)=>{let{__scopeAccordion:n,...s}=t,r=$(A,n),a=G(Y,n);return(0,e.jsx)(u.Primitive.h3,{"data-orientation":r.orientation,"data-state":tt(a.open),"data-disabled":a.disabled?"":void 0,...s,ref:i})});X.displayName=Y;var q="AccordionTrigger",Z=n.default.forwardRef((t,i)=>{let{__scopeAccordion:n,...s}=t,r=$(A,n),a=G(q,n),o=N(q,n),l=R(n);return(0,e.jsx)(E.ItemSlot,{scope:n,children:(0,e.jsx)(w,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":r.orientation,id:a.triggerId,...l,...s,ref:i})})});Z.displayName=q;var J="AccordionContent",Q=n.default.forwardRef((t,i)=>{let{__scopeAccordion:n,...s}=t,r=$(A,n),a=G(J,n),o=R(n);return(0,e.jsx)(b,{role:"region","aria-labelledby":a.triggerId,"data-orientation":r.orientation,...o,...s,ref:i,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});function tt(t){return t?"open":"closed"}Q.displayName=J,t.s(["Accordion",()=>B,"AccordionContent",()=>Q,"AccordionHeader",()=>X,"AccordionItem",()=>K,"AccordionTrigger",()=>Z,"Content",()=>Q,"Header",()=>X,"Item",()=>K,"Root",()=>B,"Trigger",()=>Z,"createAccordionScope",()=>D],61115);
16var te=t.i(61115),te=te,ti=t.i(15843);function tn({...t}){return(0,e.jsx)(te.Root,{"data-slot":"accordion",...t})}function ts({className:t,...i}){return(0,e.jsx)(te.Item,{"data-slot":"accordion-item",className:(0,ti.cn)("border-b last:border-b-0",t),...i})}function tr({className:t,children:n,...s}){return(0,e.jsx)(te.Header,{className:"flex",children:(0,e.jsxs)(te.Trigger,{"data-slot":"accordion-trigger",className:(0,ti.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",t),...s,children:[n,(0,e.jsx)(i.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function ta({className:t,children:i,...n}){return(0,e.jsx)(te.Content,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:(0,e.jsx)("div",{className:(0,ti.cn)("pt-0 pb-4",t),children:i})})}t.s(["Accordion",()=>tn,"AccordionContent",()=>ta,"AccordionItem",()=>ts,"AccordionTrigger",()=>tr],57727)}]);

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.