PageSourceSearch

https://www.williamrenner.com/_next/static/chunks/05hcyubl1mwws.js?dpl=dpl_9CNdwBJPgvxSXzo3mRKejWjoobYj

js williamrenner.com collected 2026-10-08 04:12:20 UTC 169,028 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12086,t=>{"use strict";let e,i,n,r,s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(s),a=(t,e,i)=>i>e?e:i<t?t:i,l={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},u={...l,transform:t=>a(0,1,t)},h={...l,default:1},d=t=>Math.round(1e5*t)/1e5,c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(t,e)=>i=>!!("string"==typeof i&&p.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),f=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(c);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},g={...l,transform:t=>Math.round(a(0,255,t))},y={test:m("rgb","red"),parse:f("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+g.transform(t)+", "+g.transform(e)+", "+g.transform(i)+", "+d(u.transform(n))+")"},v={test:m("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:y.transform},x=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),w=x("deg"),b=x("%"),S=x("px"),P=x("vh"),T=x("vw"),j={...b,parse:t=>b.parse(t)/100,transform:t=>b.transform(100*t)},k={test:m("hsl","hue"),parse:f("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+b.transform(d(e))+", "+b.transform(d(i))+", "+d(u.transform(n))+")"},E={test:t=>y.test(t)||v.test(t)||k.test(t),parse:t=>y.test(t)?y.parse(t):k.test(t)?k.parse(t):v.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?y.transform(t):k.transform(t),getAnimatableNone:t=>{let e=E.parse(t);return e.alpha=0,E.transform(e)}},A=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,M="number",C="color",V=/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 R(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(V,t=>(E.test(t)?(n.color.push(s),r.push(C),i.push(E.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(M),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function D({split:t,types:e}){let i=t.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],void 0!==n[s]){let t=e[s];t===M?r+=d(n[s]):t===C?r+=E.transform(n[s]):r+=n[s]}return r}}let N={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(c)?.length||0)+(t.match(A)?.length||0)>0},parse:function(t){return R(t).values},createTransformer:function(t){return D(R(t))},getAnimatableNone:function(t){let e=R(t);return D(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:E.test(t)?E.getAnimatableNone(t):t)(t,e.split[i])))}},I=new Set(["brightness","contrast","saturate","opacity"]);function L(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(c)||[];if(!n)return t;let r=i.replace(n,""),s=+!!I.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let O=/\b([a-z-]*)\(.*?\)/gu,B={...N,getAnimatableNone:t=>{let e=t.match(O);return e?e.map(L).join(" "):t}},F={...N,getAnimatableNone:t=>{let e=N.parse(t);return N.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},_={...l,transform:Math.round},U={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:w,rotateX:w,rotateY:w,rotateZ:w,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:w,skewX:w,skewY:w,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:u,originX:j,originY:j,originZ:S,zIndex:_,fillOpacity:u,strokeOpacity:u,numOctaves:_},W={...U,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:B,WebkitFilter:B,mask:F,WebkitMask:F},$=t=>W[t],z=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:z(),y:z()}),H=()=>({min:0,max:0}),X=()=>({x:H(),y:H()}),q=t=>!!(t&&t.getVelocity),K=new Set(["width","height","top","left","right","bottom",...s]),G=t=>e=>e.test(t),Z=[l,S,b,w,T,P,{test:t=>"auto"===t,parse:t=>t}],J=t=>Z.find(G(t));var Q,tt=t.i(93441);let te=()=>{},ti=()=>{};tt.default;let tn=t=>e=>"string"==typeof e&&e.startsWith(t),tr=tn("--"),ts=tn("var(--"),to=t=>!!ts(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,th=t=>180*t/Math.PI,td=t=>tp(th(Math.atan2(t[1],t[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:td,rotateZ:td,skewX:t=>th(Math.atan(t[1])),skewY:t=>th(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tp=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tf=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tf,scale:t=>(tm(t)+tf(t))/2,rotateX:t=>tp(th(Math.atan2(t[6],t[5]))),rotateY:t=>tp(th(Math.atan2(-t[2],t[0]))),rotateZ:td,rotate:td,skewX:t=>th(Math.atan(t[4])),skewY:t=>th(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ty(t){return+!!t.includes("scale")}function tv(t,e){let i,n;if(!t||"none"===t)return ty(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tg,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tc,n=e}if(!n)return ty(e);let s=i[e],o=n[1].split(",").map(tx);return"function"==typeof s?s(o):o[s]}function tx(t){return parseFloat(t.trim())}let tw=t=>t===l||t===S,tb=new Set(["x","y","z"]),tS=s.filter(t=>!tb.has(t)),tP={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-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})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tP.translateX=tP.x,tP.translateY=tP.y;let tT=t=>t,tj={},tk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tE(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tk.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}r=!0;let o=i;
1i=n,n=o,i.forEach(u),e,l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=tj.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tk.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<tk.length;e++)o[tk[e]].cancel(t)},state:r,steps:o}}let{schedule:tA,cancel:tM,state:tC,steps:tV}=tE("u">typeof requestAnimationFrame?requestAnimationFrame:tT,!0),tR=new Set,tD=!1,tN=!1,tI=!1;function tL(){if(tN){let t=Array.from(tR).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tS.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)})}tN=!1,tD=!1,tR.forEach(t=>t.complete(tI)),tR.clear()}function tO(){tR.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tN=!0)})}class tB{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tR.add(this),tD||(tD=!0,tA.read(tO),tA.resolveKeyframes(tL))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&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),tR.delete(this)}cancel(){"scheduled"===this.state&&(tR.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tF=new Set([B,F]);function t_(t,e){let i=$(t);return tF.has(i)||(i=N),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tU=new Set(["auto","none","0"]);class tW extends tB{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&to(n=n.trim())){let r=function t(e,i,n=1){ti(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tu.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return to(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!K.has(i)||2!==t.length)return;let[n,r]=t,s=J(n),o=J(r);if(tl(n)!==tl(r)&&tP[i]){this.needsMeasurement=!0;return}if(s!==o)if(tw(s)&&tw(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tP[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tU.has(e)&&R(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=t_(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=tP[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 r=i.length-1,s=i[r];i[r]=tP[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t$=t=>1e3*t;function tz(t,e){-1===t.indexOf(e)&&t.push(e)}function tY(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tH{constructor(){this.subscriptions=[]}add(t){return tz(this.subscriptions,t),()=>tY(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 r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tX(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tq(t){let e;return()=>(void 0===e&&(e=t()),e)}let tK={};function tG(t,e){let i=tq(t);return()=>tK[e]??i()}let tZ=tG(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tJ=t=>null!==t;function tQ(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(tJ),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class t0{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 t1={layout:0,mainThread:0,waapi:0},t2=t=>Array.isArray(t)&&"number"==typeof t[0],t5=tG(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t4=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t3=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t3([0,.65,.55,1]),circOut:t3([.55,0,1,.45]),backIn:t3([.31,.01,.66,-.59]),backOut:t3([.33,1.53,.69,.99])};function t9(t){return"function"==typeof t&&"applyToOptions"in t}class t7 extends t0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,ti("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t9(t)&&t5()?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:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t5()?t4(e,i):"ease-out":t2(e)?t3(e):Array.isArray(e)?e.map(e=>t(e,i)||t6.easeOut):t6[e]}(a,r);Array.isArray(d)&&(h.easing=d);let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=tQ(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tX(e,i,t),this.animation.cancel()}a?.(),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 Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t$(t),e&&this.animation.pause()}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,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tZ())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tT):n(this)}}let t8=new Set(["opacity","clipPath","filter","transform"]),{schedule:et}=tE(queueMicrotask,!1);function ee(){i=void 0}let ei={now:()=>(void 0===i&&ei.set(tC.isProcessing||tj.useManualTiming?tC.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(ee)}};class en{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ei.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=ei.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 tH);let i=this.events[t].add(e);return"change"===t?()=>{i(),tA.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 e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ei.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 er(t,e){return new en(t,e)}let es=[...Z,E,N],eo=new WeakMap;function ea(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function el(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eh=["initial",...eu];function ed(t){return ea(t.animate)||eh.some(e=>el(t[e]))}function ec(t){return!!(ed(t)||t.variants)}let ep={current:null},em={current:!1},ef="u">typeof window;function eg(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ey(t,e,i,n){if("function"==typeof e){let[r,s]=eg(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=eg(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ex={};class ew{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){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=tB,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=ei.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tA.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;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=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ed(e),this.isVariantNode=ec(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&q(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,eo.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:(em.current||function(){if(em.current=!0,ef)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ep.current=t.matches;t.addEventListener("change",e),e()}else ep.current=!1}(),this.shouldReduceMotion=ep.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(),tM(this.notifyUpdate),tM(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t8.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new t7({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:t$(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=o.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tA.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,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ex){let e=ex[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):X()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ev.length;e++){let i=ev[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(q(r))t.addValue(n,r);else if(q(s))t.addValue(n,er(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,er(void 0!==e?e:r,{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=er(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,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!es.find(G(n))&&N.test(e)&&(i=t_(t,e))}this.setBaseTarget(t,q(i)?i.get():i)}return q(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=ey(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||q(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 tH),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){et.render(this.render)}}class eb extends ew{constructor(){super(...arguments),this.KeyframeResolver=tW}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;q(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eS(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eP=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ej=s.length;function ek(t,e,i){let{style:n,vars:r,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if(tr(t)){r[t]=i;continue}{let e=eP(i,U[t]);t.startsWith("origin")?(u=!0,a[t]=e):n[t]=e}}
1if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let o=0;o<ej;o++){let a=s[o],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=eP(l,U[a]);if(!u){r=!1;let e=eT[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let eE={offset:"stroke-dashoffset",array:"stroke-dasharray"},eA={offset:"strokeDashoffset",array:"strokeDasharray"},eM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eC(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(ek(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),eM))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eE:eA;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(d,r,s,o,!1)}let eV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eD(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function eN(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eI={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!S.test(t))return t;else t=parseFloat(t);let i=eN(t,e.target.x),n=eN(t,e.target.y);return`${i}% ${n}%`}},eL=(t,e,i)=>t+(e-t)*i,eO={borderRadius:{...eI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eI,borderTopRightRadius:eI,borderBottomLeftRadius:eI,borderBottomRightRadius:eI,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=N.parse(t);if(n.length>5)return t;let r=N.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eL(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function eB(t,{layout:e,layoutId:i}){return o.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eO[t]||"opacity"===t)}function eF(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(q(n[e])||r&&q(r[e])||eB(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function e_(t,e,i){let n=eF(t,e,i);for(let i in t)(q(t[i])||q(e[i]))&&(n[-1!==s.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eU extends eb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){let t=$(e);return t&&t.default||0}return e=eV.has(e)?e:eS(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e_(t,e,i)}build(t,e,i){eC(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eD(t,e,void 0,n),e.attrs)t.setAttribute(eV.has(i)?i:eS(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}function eW({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e$(t){return void 0===t||1===t}function ez({scale:t,scaleX:e,scaleY:i}){return!e$(t)||!e$(e)||!e$(i)}function eY(t){return ez(t)||eH(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eH(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eX(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function eq(t,e=0,i=1,n,r){t.min=eX(t.min,e,i,n,r),t.max=eX(t.max,e,i,n,r)}function eK(t,{x:e,y:i}){eq(t.x,e.translate,e.scale,e.originPoint),eq(t.y,i.translate,i.scale,i.originPoint)}function eG(t,e){t.min+=e,t.max+=e}function eZ(t,e,i,n,r=.5){let s=eL(t.min,t.max,r);eq(t,e,i,s,n)}function eJ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eQ(t,e,i){let n=i??t;eZ(t.x,eJ(e.x,n.x),e.scaleX,e.scale,e.originX),eZ(t.y,eJ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e0(t,e){return eW(function(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}}(t.getBoundingClientRect(),e))}class e1 extends eb{constructor(){super(...arguments),this.type="html",this.renderInstance=eD}readValueFromInstance(t,e){if(o.has(e))return this.projection?.isProjecting?ty(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tv(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(tr(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e0(t,e)}build(t,e,i){ek(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eF(t,e,i)}}var e2=t.i(73447);let e5=["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 e4(t){if("string"!=typeof t||t.includes("-"));else if(e5.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e3=t.i(72673);let e6=(0,e2.createContext)({}),e9=(0,e2.createContext)({strict:!1}),e7=(0,e2.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),e8=(0,e2.createContext)({});function it(t){return Array.isArray(t)?t.join(" "):t}let ie=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ii(t,e,i){for(let n in e)q(e[n])||eB(n,i)||(t[n]=e[n])}let ir=()=>({...ie(),attrs:{}}),is=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 io(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||is.has(t)}let ia=t=>!io(t);try{Q=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof Q&&(ia=t=>t.startsWith("on")?!io(t):Q(t))}catch{}function il(t){return q(t)?t.get():t}let iu=(0,e2.createContext)(null),ih=t=>(e,i)=>{let n,r=(0,e2.useContext)(e8),s=(0,e2.useContext)(iu),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=il(s[t]);let{initial:o,animate:a}=t,l=ed(t),u=ec(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!ea(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=ey(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&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,r,s);return i?o():(null===(n=(0,e2.useRef)(null)).current&&(n.current=o()),n.current)},id=ih({scrapeMotionValuesFromProps:eF,createRenderState:ie}),ic=ih({scrapeMotionValuesFromProps:e_,createRenderState:ir}),ip={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"]},im=!1;function ig(){return!function(){if(im)return;let t={};for(let e in ip)t[e]={isEnabled:t=>ip[e].some(e=>!!t[e])};ex=t,im=!0}(),ex}let iy=Symbol.for("motionComponentSymbol"),iv="data-"+eS("framerAppearId"),ix=(0,e2.createContext)({});function iw(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let ib="u">typeof window?e2.useLayoutEffect:e2.useEffect;function iS(t,{forwardMotionProps:e=!1,type:i}={},n,r){n&&function(t){let e=ig();for(let i in t)e[i]={...e[i],...t[i]};ex=e}(n);let s=i?"svg"===i:e4(t),o=s?ic:id;function a(i,n){var a;let l,u,h,d={...(0,e2.useContext)(e7),...i,layoutId:function({layoutId:t}){let e=(0,e2.useContext)(e6).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:c}=d,p=function(t){let{initial:e,animate:i}=function(t,e){if(ed(t)){let{initial:e,animate:i}=t;return{initial:!1===e||el(e)?e:void 0,animate:el(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e2.useContext)(e8));return(0,e2.useMemo)(()=>({initial:e,animate:i}),[it(e),it(i)])}(i),m=o(i,c);if(!c&&"u">typeof window){(0,e2.useContext)(e9).strict;let e=function(t){let{drag:e,layout:i}=ig();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(d);l=e.MeasureLayout,p.visualElement=function(t,e,i,n,r,s){let{visualElement:o}=(0,e2.useContext)(e8),a=(0,e2.useContext)(e9),l=(0,e2.useContext)(iu),u=(0,e2.useContext)(e7),h=u.reducedMotion,d=u.skipAnimations,c=(0,e2.useRef)(null),p=(0,e2.useRef)(!1);n=n||a.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:d,isSVG:s}),p.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let m=c.current,f=(0,e2.useContext)(ix);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iw(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(c.current,i,r,f);let g=(0,e2.useRef)(!1);(0,e2.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[iv],v=(0,e2.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return ib(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e2.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,m,d,r,e.ProjectionNode,s)}return(0,e3.jsxs)(e8.Provider,{value:p,children:[l&&p.visualElement?(0,e3.jsx)(l,{visualElement:p.visualElement,...d}):null,function(t,e,i,{latestValues:n},r,s=!1,o){let a=(o??e4(t)?function(t,e,i,n){let r=(0,e2.useMemo)(()=>{let i=ir();return eC(i,e,eR(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ii(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,n,r={},s=(i=t.style||{},ii(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e2.useMemo)(()=>{let i=ie();return ek(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r})(e,n,r,t),l=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!q(t[r])&&(ia(r)||!0===i&&io(r)||!e&&!io(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,s),u=t!==e2.Fragment?{...l,...a,ref:i}
1:{},{children:h}=e,d=(0,e2.useMemo)(()=>q(h)?h.get():h,[h]);return(0,e2.createElement)(t,{...u,children:d})}(t,i,(a=p.visualElement,u=(0,e2.useRef)(n),(0,e2.useInsertionEffect)(()=>{u.current=n}),h=(0,e2.useRef)(null),(0,e2.useCallback)(t=>{t&&m.onMount?.(t);let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):e(t);else e&&(e.current=t);a&&(t?a.mount(t):a.unmount())},[a])),m,c,e,s)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e2.forwardRef)(a);return l[iy]=t,l}class iP{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iT(t,e,i){let n=t.getProps();return ey(n,e,void 0!==i?i:n.custom,t)}function ij(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function ik(t,e){let i=t?.[e]??t?.default??t;return i!==t?ij(i,t):i}let iE=t=>Array.isArray(t);function iA(t,e){let i=t.getValue("willChange");if(q(i)&&i.add)return i.add(e);if(!i&&tj.WillChange){let i=new tj.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iM=(t,e)=>i=>e(t(i)),iC=(...t)=>t.reduce(iM);function iV(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 iR(t,e){return i=>i>0?e:t}let iD=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iN=[v,y,k];function iI(t){let e=iN.find(e=>e.test(t));if(te(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===k&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=iV(a,n,t+1/3),s=iV(a,n,t),o=iV(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let iL=(t,e)=>{let i=iI(t),n=iI(e);if(!i||!n)return iR(t,e);let r={...i};return t=>(r.red=iD(i.red,n.red,t),r.green=iD(i.green,n.green,t),r.blue=iD(i.blue,n.blue,t),r.alpha=eL(i.alpha,n.alpha,t),y.transform(r))},iO=new Set(["none","hidden"]);function iB(t,e){return i=>eL(t,e,i)}function iF(t){return"number"==typeof t?iB:"string"==typeof t?to(t)?iR:E.test(t)?iL:iW:Array.isArray(t)?i_:"object"==typeof t?E.test(t)?iL:iU:iR}function i_(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iF(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iU(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iF(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iW=(t,e)=>{let i=N.createTransformer(e),n=R(t),r=R(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return te(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iR(t,e);if(iO.has(t)&&!r.values.length||iO.has(e)&&!n.values.length)return iO.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iC(i_(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)};function i$(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eL(t,e,i):iF(t)(t,e)}let iz=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tA.update(e,t),stop:()=>tM(e),now:()=>tC.isProcessing?tC.timestamp:ei.now()}};function iY(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}let iH=.01,iX=2,iq=.005,iK=.5;function iG(t,e){return t*Math.sqrt(1-e*e)}let iZ=["duration","bounce"],iJ=["stiffness","damping","mass"];function iQ(t,e){return e.some(e=>void 0!==t[e])}function i0(t=.3,e=.3){let i,n,r,s,o,l,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:d}=u,c=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:g,mass:y,duration:v,velocity:x,isResolvedFromDuration:w}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iQ(t,iJ)&&iQ(t,iZ))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*a(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;te(t<=t$(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=a(.05,1,o),t=a(.01,10,t/1e3),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/iG(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iG(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=t$(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),b=x||0,S=g/(2*Math.sqrt(f*y)),P=p-c,T=Math.sqrt(f/y)/1e3,j=5>Math.abs(P);if(h||(h=j?iH:iX),d||(d=j?iq:iK),S<1)r=iG(T,S),s=(b+S*T*P)/r,i=t=>p-Math.exp(-S*T*t)*(s*Math.sin(r*t)+P*Math.cos(r*t)),o=S*T*s+P*r,l=S*T*P-s*r,n=t=>Math.exp(-S*T*t)*(o*Math.sin(r*t)+l*Math.cos(r*t));else if(1===S){i=t=>p-Math.exp(-T*t)*(P+(b+T*P)*t);let t=b+T*P;n=e=>Math.exp(-T*e)*(T*t*e-b)}else{let t=T*Math.sqrt(S*S-1);i=e=>{let i=Math.exp(-S*T*e),n=Math.min(t*e,300);return p-i*((b+S*T*P)*Math.sinh(n)+t*P*Math.cosh(n))/t};let e=(b+S*T*P)/t,r=S*T*e-P*t,s=S*T*P-e*t;n=e=>{let i=Math.exp(-S*T*e),n=Math.min(t*e,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let k={calculatedDuration:w&&v||null,velocity:t=>t$(n(t)),next:t=>{if(!w&&S<1){let e=Math.exp(-S*T*t),i=Math.sin(r*t),n=Math.cos(r*t),a=p-e*(s*i+P*n);return m.done=Math.abs(t$(e*(o*i+l*n)))<=h&&Math.abs(p-a)<=d,m.value=m.done?p:a,m}let e=i(t);return w?m.done=t>=v:m.done=Math.abs(t$(n(t)))<=h&&Math.abs(p-e)<=d,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iY(k),2e4),e=t4(e=>k.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return k}function i1(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}function i2({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=i0({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:i1(x,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}i0.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iY(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,i0);return t.ease=e.ease,t.duration=t$(e.duration),t.type="keyframes",t};let i5=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i4(t,e,i,n){return t===e&&i===n?tT:r=>0===r||1===r?r:i5(function(t,e,i,n,r){let s,o,a=0;do(s=i5(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,t,i),e,n)}let i3=i4(.42,0,1,1),i6=i4(0,0,.58,1),i9=i4(.42,0,.58,1),i7=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i8=t=>e=>1-t(1-e),nt=i4(.33,1.53,.69,.99),ne=i8(nt),ni=i7(ne),nn=t=>t>=1?1:(t*=2)<1?.5*ne(t):.5*(2-Math.pow(2,-10*(t-1))),nr=t=>1-Math.sin(Math.acos(t)),ns=i8(nr),no=i7(nr),na={linear:tT,easeIn:i3,easeInOut:i9,easeOut:i6,circIn:nr,circInOut:no,circOut:ns,backIn:ne,backInOut:ni,backOut:nt,anticipate:nn},nl=t=>{if(t2(t)){ti(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return i4(e,i,n,r)}return"string"==typeof t?(ti(void 0!==na[t],`Invalid easing type '${t}'`,"invalid-easing-type"),na[t]):t},nu=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function nh({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nl):nl(n),l={done:!1,value:e[0]},u=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(ti(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],r=i||tj.mix||i$,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=iC(Array.isArray(e)?e[i]||tT:e,s)),n.push(s)}return n}(e,n,r),u=l.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nu(t[n],t[n+1],i);return l[n](r)};return i?e=>h(a(t[0],t[s-1],e)):h}
1((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nu(0,e,n);t.push(eL(i,1,r))}}(s=[0],e.length-1),s),r.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||i9).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=u(e),l.done=e>=t,l)}}let nd={decay:i2,inertia:i2,tween:nh,keyframes:nh,spring:i0};function nc(t){"string"==typeof t.type&&(t.type=nd[t.type])}let np=t=>t/100;class nm extends t0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ei.now()&&this.tick(ei.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t1.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nc(t);let{type:e=nh,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||nh;a!==nh&&"number"!=typeof o[0]&&(this.mixKeyframes=iC(np,i$(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iY(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 i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:d,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let w=this.currentTime,b=n;if(c){let t=Math.min(this.currentTime,r)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/l)):"mirror"===p&&(b=o)),w=a(0,1,i)*l}x?(this.delayState.value=d[0],i=this.delayState):i=b.next(w),s&&!x&&(i.value=s(i.value));let{done:S}=i;x||null===u||(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return P&&f!==i2&&(i.value=tQ(d,this.options,y,this.speed)),g&&g(i.value),P&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t$(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i1(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ei.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iz,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(ei.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,t1.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 nf={anticipate:nn,backInOut:ni,circInOut:no};
1class ng extends t7{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nf&&(t.ease=nf[t.ease])}(t),nc(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new nm({...s,autoplay:!1}),l=Math.max(10,ei.now()-this.startTime),u=a(0,10,l-10),h=o.sample(l).value,{name:d}=this.options;r&&d&&tX(r,d,h),e.setWithVelocity(o.sample(Math.max(0,l-u)).value,h,u),o.stop()}}let ny=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(N.test(t)||"0"===t)&&!t.startsWith("url("));function nv(t){t.duration=0,t.type="keyframes"}let nx=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nw=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nb=tq(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nS extends t0{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ei.now();const d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tB;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=ei.now();let d=!0;!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=ny(r,e),a=ny(s,e);return te(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(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||t9(i))&&n)}(t,s,o,a)&&(d=!1,(tj.instantAnimations||!l)&&h?.(tQ(t,i,e)),t[0]=t[t.length-1],nv(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return nb()&&i&&(t8.has(i)||nw.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nx.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(c),m=c.motionValue?.owner?.current;if(p)try{r=new ng({...c,element:m})}catch{r=new nm(c)}else r=new nm(c);r.finished.then(()=>{this.notifyFinished()}).catch(tT),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}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(),tI=!0,tO(),tL(),tI=!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()}}let nP={type:"spring",stiffness:500,damping:25,restSpeed:10},nT={type:"keyframes",duration:.8},nj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nk=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nE=(t,e,i,n={},r,s)=>a=>{let l=ik(n,t)||{}
1,u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=t$(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function(t){for(let e in t)if(!nk.has(e))return!0;return!1}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?nT:o.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nP:nj)(t,d)),d.duration&&(d.duration=t$(d.duration)),d.repeatDelay&&(d.repeatDelay=t$(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(nv(d),0===d.delay&&(c=!0)),(tj.instantAnimations||tj.skipAnimations||r?.shouldSkipAnimations)&&(c=!0,nv(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!s&&void 0!==e.get()){let t=tQ(d.keyframes,l);if(void 0!==t)return void tA.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new nm(d):new nS(d)};function nA(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?ij(s,l):l;let u=s?.reduceMotion;n&&(s=n);let h=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...ik(s||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){tA.update(()=>n.set(r));continue}let c=!1;if(window.MotionHandoffAnimation){let i=t.props[iv];if(i){let t=window.MotionHandoffAnimation(i,e,tA);null!==t&&(o.startTime=t,c=!0)}}iA(t,e);let p=u??t.shouldReduceMotion;n.start(nE(e,n,r,p&&K.has(e)?{type:!1}:o,t,c));let m=n.animation;m&&h.push(m)}if(o){let e=()=>tA.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iT(t,e)||{};for(let e in r={...r,...i}){var s;let i=iE(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,er(i))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function nM(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nC(t,e,i={}){let n=iT(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nA(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nC(l,e,{...o,delay:i+("function"==typeof n?0:n)+nM(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let nV=eh.length;function nR(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}let nD=[...eu].reverse(),nN=eu.length;function nI(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nL(){return{animate:nI(!0),whileInView:nI(),whileHover:nI(),whileTap:nI(),whileDrag:nI(),whileFocus:nI(),exit:nI()}}let nO=0;function nB(t){return[t("x"),t("y")]}function nF(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let n_={x:!1,y:!1};function nU(t){return t.max-t.min}function nW(t,e,i,n=.5){t.origin=n,t.originPoint=eL(e.min,e.max,t.origin),t.scale=nU(i)/nU(e),t.translate=eL(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 n$(t,e,i,n){nW(t.x,e.x,i.x,n?n.originX:void 0),nW(t.y,e.y,i.y,n?n.originY:void 0)}function nz(t,e,i,n=0){t.min=(n?eL(i.min,i.max,n):i.min)+e.min,t.max=t.min+nU(e)}function nY(t,e,i,n=0){let r=n?eL(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+nU(e)}function nH(t,e,i,n){nY(t.x,e.x,i.x,n?.x),nY(t.y,e.y,i.y,n?.y)}function nX(t){return"object"==typeof t&&null!==t}function nq(t){return nX(t)&&"ownerSVGElement"in t}function nK(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 r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}
1let nG=new WeakMap,nZ=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:nq(n)&&"getBBox"in n?n.getBBox()[e]:n[i],nJ=nZ("inline","width","offsetWidth"),nQ=nZ("block","height","offsetHeight");function n0({target:t,borderBoxSize:e}){nG.get(t)?.forEach(i=>{i(t,{get width(){return nJ(t,e)},get height(){return nQ(t,e)}})})}function n1(t){t.forEach(n0)}let n2=new Set;function n5(t,e){let i;return"function"==typeof t?(n2.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n2.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{n2.delete(t),n2.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!n&&"u">typeof ResizeObserver&&(n=new ResizeObserver(n1)),(i=nK(t)).forEach(t=>{let i=nG.get(t);i||(i=new Set,nG.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=nG.get(t);i?.delete(e),i?.size||n?.unobserve(t)})})}let n4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n3=new Set(["INPUT","SELECT","TEXTAREA"]),n6=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n9(t){return{point:{x:t.pageX,y:t.pageY}}}function n7(t,e,i,n){return nF(t,e,t=>n6(t)&&i(t,n9(t)),n)}let n8=({current:t})=>t?t.ownerDocument.defaultView:null,rt=(t,e)=>Math.abs(t-e),re=new Set(["auto","scroll"]);class ri{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=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;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rn(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rs(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(rt(t.x,e.x)**2+rt(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tC;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=rn(e,this.transformPagePoint),tA.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rs("pointercancel"===t.type?this.lastMoveEventInfo:rn(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!n6(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const a=rn(n9(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tC;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,rs(a,this.history)),this.removeListeners=iC(n7(this.contextWindow,"pointermove",this.handlePointerMove),n7(this.contextWindow,"pointerup",this.handlePointerUp),n7(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(re.has(t.overflowX)||re.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}),window.addEventListener("scroll",this.onWindowScroll),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},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tA.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tM(this.updatePoint)}}function rn(t,e){return e?{point:e(t.point)}:t}function rr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rs({point:t},e){return{point:t,delta:rr(t,ro(e)),offset:rr(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=ro(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>t$(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*t$(.1)&&(i=t[1]);let r=(n.timestamp-i.timestamp)/1e3;if(0===r)return{x:0,y:0};let s={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function ro(t){return t[t.length-1]}function ra(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 rl(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 ru(t,e,i){return{min:rh(t,e),max:rh(t,i)}}function rh(t,e){return"number"==typeof t?t:t[e]||0}let rd=new WeakMap;class rc{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=X(),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 r=t=>{e&&this.snapToCursor(n9(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(n_[t])return null;else return n_[t]=!0,()=>{n_[t]=!1};return n_.x||n_.y?null:(n_.x=n_.y=!0,()=>{n_.x=n_.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),nB(t=>{let e=this.getAxisMotionValue(t).get()||0;if(b.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=nU(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tA.update(()=>r(t,e),!1,!0),iA(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=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}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tA.update(()=>s(t,e),!1,!0)},a=(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 ri(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:n8(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tA.postRender(()=>o(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||!rm(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eL(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eL(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}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&&iw(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ra(t.x,i,r),y:ra(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:ru(t,"left","right"),y:ru(t,"top","bottom")}}(e),n!==this.constraints&&!iw(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nB(t=>{var e,n;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iw(e))return!1;let n=e.current;ti(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:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=e0(t,i),{scroll:r}=e;return r&&(eG(n.x,r.offset.x),eG(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:rl(t.x,s.x),y:rl(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eW(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nB(o=>{if(!rm(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iA(this.visualElement,t),i.start(nE(t,i,0,e,this.visualElement,!1))}stopAnimation(){nB(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){nB(e=>{let{drag:i}=this.getProps();if(!rm(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-eL(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iw(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nB(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,o,l,u=e.get();n[t]=(i={min:u,max:u},r=this.constraints[t],s=.5,o=nU(i),(l=nU(r))>o?s=nu(r.min,r.max-o,i.min):o>l&&(s=nu(i.min,i.max-l,r.min)),a(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nB(e=>{if(!rm(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eL(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rd.set(this.visualElement,this);let e=this.visualElement.current,i=n7(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),r=t.target,s=r!==e&&(n3.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{var i,n,r;let s,o,{dragConstraints:a}=this.getProps();iw(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,s=n5(i,rp(r=()=>this.scalePositionWithinConstraints())),o=n5(n,rp(r)),t=()=>{s(),o()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tA.read(n);let o=nF(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nB(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rp(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rm(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let rf=t=>(e,i)=>{t&&tA.update(()=>t(e,i),!1,!0)},rg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ry=e2;let rv=!1;class rx extends ry.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rv&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rv=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||tA.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),et.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rv=!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 rw(t){let[e,i]=function(t=!0){let e=(0,e2.useContext)(iu);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,e2.useId)();(0,e2.useEffect)(()=>{if(t)return r(s)},[t]);let o=(0,e2.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,ry.useContext)(e6);return(0,e3.jsx)(rx,{...t,layoutGroup:n,switchLayoutGroup:(0,ry.useContext)(ix),isPresent:e,safeToRemove:i})}let rb=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rS=rb.length,rP=t=>"string"==typeof t?parseFloat(t):t,rT=t=>"number"==typeof t||S.test(t);function rj(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rk=rA(0,.5,ns),rE=rA(.5,.95,tT);function rA(t,e,i){return n=>n<t?0:n>e?1:i(nu(t,e,n))}function rM(t,e){t.min=e.min,t.max=e.max}function rC(t,e){rM(t.x,e.x),rM(t.y,e.y)}function rV(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rR(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rD(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(b.test(e)&&(e=parseFloat(e),e=eL(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eL(s.min,s.max,n);t===s&&(a-=e),t.min=rR(t.min,e,i,a,r),t.max=rR(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rN=["x","scaleX","originX"],rI=["y","scaleY","originY"];function rL(t,e,i,n){rD(t.x,e,rN,i?i.x:void 0,n?n.x:void 0),rD(t.y,e,rI,i?i.y:void 0,n?n.y:void 0)}function rO(t){return 0===t.translate&&1===t.scale}function rB(t){return rO(t.x)&&rO(t.y)}function rF(t,e){return t.min===e.min&&t.max===e.max}function r_(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rU(t,e){return r_(t.x,e.x)&&r_(t.y,e.y)}function rW(t){return nU(t.x)/nU(t.y)}function r$(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rz{constructor(){this.members=[]}add(t){tz(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||i.snapshot||(tY(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tY(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){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=t.options;(void 0===n||n!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rY=(t,e)=>t.depth-e.depth;class rH{constructor(){this.children=[],this.isDirty=!1}add(t){tz(this.children,t),this.isDirty=!0}remove(t){tY(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rY),this.isDirty=!1,this.children.forEach(t)}}let rX=["","X","Y","Z"],rq=0;function rK(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rG({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rq++,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,this.nodes.forEach(rQ),this.nodes.forEach(r7),this.nodes.forEach(r8),this.nodes.forEach(r0)},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 rH)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tH),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=nq(e)&&!(nq(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;tA.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,s;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=ei.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(tM(s),r(i-250))},tA.setup(s,!0),i=()=>tM(s),rg.hasAnimatedSinceResize&&(rg.hasAnimatedSinceResize=!1,this.nodes.forEach(r9))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(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 s=this.options.transition||r.getDefaultTransition()||ss,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rU(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={...ik(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||r9(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(),tM(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(st),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=i.props[iv];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tA,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!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()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(r5),this.nodes.forEach(r2);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r4);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r3),this.nodes.forEach(r6),this.nodes.forEach(rZ),this.nodes.forEach(rJ)):this.nodes.forEach(r4),this.clearAllSnapshots();let t=ei.now();tC.delta=a(0,1e3/60,t-tC.timestamp),tC.timestamp=t,tC.isProcessing=!0,tV.update.process(tC),tV.preRender.process(tC),tV.render.process(tC),tC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,et.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r1),this.sharedNodes.forEach(se)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tA.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tA.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nU(this.snapshot.measuredBox.x)||nU(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||(this.layoutCorrected=X()),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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rB(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eY(this.latestValues)||s)&&(r(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)),sl((e=n).x),sl(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return X();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sh))){let{scroll:t}=this.root;t&&(eG(e.x,t.offset.x),eG(e.y,t.offset.y))}return e}removeElementScroll(t){let e=X();if(rC(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rC(e,t),eG(e.x,r.offset.x),eG(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||X();rC(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eG(n.x,-i.scroll.offset.x),eG(n.y,-i.scroll.offset.y)),eY(i.latestValues)&&eQ(n,i.latestValues,i.layout?.layoutBox)}return eY(this.latestValues)&&eQ(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=X();rC(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eY(n.latestValues)&&(n.instance&&(ez(n.latestValues)&&n.updateSnapshot(),rC(i=X(),n.measurePageBox())),rL(e,n.latestValues,n.snapshot?.layoutBox,i))}return eY(this.latestValues)&&rL(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!==tC.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:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tC.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nz(o.x,a.x,l.x,u?.x),nz(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rC(this.target,this.layout.layoutBox),eK(this.target,this.targetDelta)):rC(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||ez(this.parent.latestValues)||eH(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=X(),this.relativeTargetOrigin=X(),nH(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),rC(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===tC.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rC(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(eG(t.x,-r.scroll.offset.x),eG(t.y,-r.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eK(t,s)),n&&eY(r.latestValues)&&eQ(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=X());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rV(this.prevProjectionDelta.x,this.projectionDelta.x),rV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n$(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&r$(this.projectionDelta.x,this.prevProjectionDelta.x)&&r$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}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=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=Y();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=X(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sr));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(si(o.x,t.x,n),si(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;nH(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,sn(p.x,m.x,f.x,g),sn(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,c=i,rF(u.x,c.x)&&rF(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=X()),rC(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=eL(0,i.opacity??1,rk(n)),t.opacityExit=eL(e.opacity??1,0,rE(n))):s&&(t.opacity=eL(e.opacity??1,i.opacity??1,n));for(let r=0;r<rS;r++){let s=rb[r],o=rj(e,s),a=rj(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rT(o)===rT(a)?(t[s]=Math.max(eL(rP(o),rP(a),n),0),(b.test(a)||b.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eL(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,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&&(tM(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tA.update(()=>{var e,i,n;let r;rg.hasAnimatedSinceResize=!0,t1.layout++,this.motionValue||(this.motionValue=er(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t1.layout--},onComplete:()=>{t1.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=q(e)?e:er(e)).start(nE("",r,i,n)),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&su(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||X();let e=nU(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nU(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rC(e,i),eQ(e,r),n$(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rz),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let 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&&rK("z",t,n,this.animationValues);for(let e=0;e<rX.length;e++)rK(`rotate${rX[e]}`,t,n,this.animationValues),rK(`skew${rX[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=il(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=il(e?.pointerEvents)||""),this.hasProjected&&!eY(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eO){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eO[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?il(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r2),this.root.sharedNodes.clear()}}}function rZ(t){t.updateLayout()}function rJ(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:r}=t.options,s=e.source!==t.layout.source;if("size"===r)nB(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nU(n);n.min=i[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";rM(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else su(r,e.layoutBox,i)&&nB(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nU(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=Y();n$(o,i,e.layoutBox);let a=Y();s?n$(a,t.applyTransform(n,!0),e.measuredBox):n$(a,i,e.layoutBox);let l=!rB(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=t.options.layoutAnchor||void 0,a=X();nH(a,e.layoutBox,r.layoutBox,o);let l=X();nH(l,i,s.layoutBox,o),rU(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rQ(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r0(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r1(t){t.clearSnapshot()}function r2(t){t.clearMeasurements()}function r5(t){t.isLayoutDirty=!0,t.updateLayout()}function r4(t){t.isLayoutDirty=!1}function r3(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function r6(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r7(t){t.resolveTargetDelta()}function r8(t){t.calcProjection()}function st(t){t.resetSkewAndRotation()}function se(t){t.removeLeadSnapshot()}function si(t,e,i){t.translate=eL(e.translate,0,i),t.scale=eL(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sn(t,e,i,n){t.min=eL(e.min,i.min,n),t.max=eL(e.max,i.max,n)}function sr(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ss={duration:.45,ease:[.4,0,.1,1]},so=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sa=so("applewebkit/")&&!so("chrome/")?Math.round:tT;function sl(t){t.min=sa(t.min),t.max=sa(t.max)}function su(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rW(e)-rW(i)))}function sh(t){return t!==t.root&&t.scroll?.wasRoot}let sd=rG({attachResizeListener:(t,e)=>nF(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sc={current:void 0},sp=rG({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sc.current){let t=new sd({});t.mount(window),t.setOptions({layoutScroll:!0}),sc.current=t}return sc.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sm(t,e){let i=nK(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sf(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tA.postRender(()=>r(e,n9(e)))}let sg=(t,e)=>!!e&&(t===e||sg(t,e.parentElement)),sy=new WeakSet;function sv(t){return e=>{"Enter"===e.key&&t(e)}}function sx(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sw(t){return n6(t)&&!(n_.x||n_.y)}let sb=new WeakSet;function sS(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 r=n["onTap"+("End"===i?"":i)];r&&tA.postRender(()=>r(e,n9(e)))}let sP=new WeakMap,sT=new WeakMap,sj=t=>{let e=sP.get(t.target);e&&e(t)},sk=t=>{t.forEach(sj)},sE={some:0,all:1},sA=function(t,e){if("u"<typeof Proxy)return iS;let i=new Map,n=(i,n)=>iS(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iS(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends iP{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=>nC(t,e,i)));else if("string"==typeof e)n=nC(t,e,i);else{let r="function"==typeof e?iT(t,e,i.custom):e;n=Promise.all(nA(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nL(),n=!0,r=!1,s=e=>(i,n)=>{let r=iT(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=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<nV;t++){let n=eh[t],r=e.props[n];(el(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<nN;e++){var p,m;let f=nD[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=el(y),x=f===o?g.isActive:null;!1===x&&(c=e);let w=y===l[f]&&y!==a[f]&&v;if(w&&(n||r)&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...d},!g.isActive&&null===x||!y&&!g.prevProp||ea(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let b=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nR(m,p)),S=b||f===o&&g.isActive&&!w&&v||e>c&&v,P=!1,T=Array.isArray(y)?y:[y],j=T.reduce(s(f),{});!1===x&&(j={});let{prevResolvedValues:k={}}=g,E={...k,...j},A=e=>{S=!0,h.has(e)&&(P=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in E){let e=j[t],i=k[t];if(!d.hasOwnProperty(t))(iE(e)&&iE(i)?nR(e,i):e===i)?void 0!==e&&h.has(t)?A(t):g.protectedKeys[t]=!0:null!=e?A(t):h.add(t)}g.prevProp=y,g.prevResolvedValues=j,g.isActive&&(d={...d,...j}),(n||r)&&t.blockInitialAnimation&&(S=!1);let M=w&&b,C=!M||P;S&&C&&u.push(...T.map(e=>{let i={type:f};if("string"==typeof e&&(n||r)&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iT(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nM(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iT(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?e(u):Promise.resolve()}return{animateChanges:o,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 r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nL(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ea(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 iP{constructor(){super(...arguments),this.id=nO++,this.isExitComplete=!1}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;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=iT(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,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 iP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:sE[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!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(),r=e?i:n;r&&r(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;sT.has(i)||sT.set(i,{});let n=sT.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sk,{root:t,...e})),n[r]}(a),sP.set(t,l),e.observe(t),()=>{sP.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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iP{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,r,s]=sm(t,i),o=t=>{let n=t.currentTarget;if(!sw(t)||sb.has(t))return;sy.add(n),i.stopPropagation&&sb.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sy.has(n)&&sy.delete(n),sw(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sg(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),nX(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=sv(()=>{if(sy.has(i))return;sx(i,"down");let t=sv(()=>{sx(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sx(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),n4.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sS(this.node,e,"Start"),(t,{success:e})=>sS(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iP{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=iC(nF(this.node.current,"focus",()=>this.onFocus()),nF(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iP{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sm(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||n_.x||n_.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(t,(t,e)=>(sf(this.node,e,"Start"),t=>sf(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iP{constructor(){super(...arguments),this.removePointerDownListener=tT}onPointerDown(t){this.session=new ri(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n8(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rf(t),onStart:rf(e),onMove:rf(i),onEnd:(t,e)=>{delete this.session,n&&tA.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n7(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 iP{constructor(t){super(t),this.removeGroupControls=tT,this.removeListeners=tT,this.controls=new rc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tT}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:sp,MeasureLayout:rw},layout:{ProjectionNode:sp,MeasureLayout:rw}},(t,e)=>e.isSVG??e4(t)?new eU(e):new e1(e,{allowProjection:t!==e2.Fragment}));t.s(["motion",0,sA],12086)},31763,t=>{"use strict";var e=t.i(73447);let i=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim(),n=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,e.forwardRef)(({color:t="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:l,iconNode:u,...h},d)=>(0,e.createElement)("svg",{ref:d,...r,width:n,height:n,stroke:t,strokeWidth:o?24*Number(s)/Number(n):s,className:i("lucide",a),...!l&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...u.map(([t,i])=>(0,e.createElement)(t,i)),...Array.isArray(l)?l:[l]]));t.s(["default",0,(t,r)=>{let o=(0,e.forwardRef)(({className:o,...a},l)=>(0,e.createElement)(s,{ref:l,iconNode:r,className:i(`lucide-${n(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,o),...a}));return o.displayName=n(t),o}
1],31763)},76017,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(44066)._(t.r(91880)),o=/https?|ftp|gopher|file/;function a(t){let{auth:e,hostname:i}=t,n=t.protocol||"",r=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=t.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),t.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),r&&"/"!==r[0]&&(r="/"+r)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),r=r.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${n}${u}${r}${h}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(t){return a(t)}},4858,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=t.r(73447);function r(t,e){let i=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=r.current;e&&(r.current=null,e())}else t&&(i.current=s(t,n)),e&&(r.current=s(e,n))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},13162,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=t.r(58794),r=t.r(91225);function s(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,r.hasBasePath)(i.pathname)}catch(t){return!1}}},78345,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return n}});let n=t=>{}},61946,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return x}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(44066),o=t.r(72673),a=s._(t.r(73447)),l=t.r(76017),u=t.r(68757),h=t.r(4858),d=t.r(58794),c=t.r(77175);t.r(76214);let p=t.r(89240),m=t.r(55855),f=t.r(13162),g=t.r(21644);function y(e){var i,n;let r,s,y,[x,w]=(0,a.useOptimistic)(m.IDLE_LINK_STATUS),b=(0,a.useRef)(null),{href:S,as:P,children:T,prefetch:j=null,passHref:k,replace:E,shallow:A,scroll:M,onClick:C,onMouseEnter:V,onTouchStart:R,legacyBehavior:D=!1,onNavigate:N,transitionTypes:I,ref:L,unstable_dynamicOnHover:O,...B}=e;r=T,D&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let F=a.default.useContext(u.AppRouterContext),_=!1!==j,U=!1!==j?null===(n=j)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,W="string"==typeof(i=P||S)?i:(0,l.formatUrl)(i);if(D){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(r)}let $=D?s&&"object"==typeof s&&s.ref:L,z=a.default.useCallback(t=>(null!==F&&(b.current=(0,m.mountLinkInstance)(t,W,F,U,_,w)),()=>{b.current&&((0,m.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,m.unmountPrefetchableInstance)(t)}),[_,W,F,U,w]),Y={ref:(0,h.useMergedRef)(z,$),onClick(e){D||"function"!=typeof C||C(e),D&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e),!F||e.defaultPrevented||function(e,i,n,r,s,o,l){if("u">typeof window){let u,{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(i)){r&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),o){let t=!1;if(o({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:d}=t.r(53293);a.default.startTransition(()=>{d(i,r?"replace":"push",!1===s?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,l)})}}(e,W,b,E,M,N,I)},onMouseEnter(t){D||"function"!=typeof V||V(t),D&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(t),F&&_&&(0,m.onNavigationIntent)(t.currentTarget,!0===O)},onTouchStart:function(t){D||"function"!=typeof R||R(t),D&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(t),F&&_&&(0,m.onNavigationIntent)(t.currentTarget,!0===O)}};return(0,d.isAbsoluteUrl)(W)?Y.href=W:D&&!k&&("a"!==s.type||"href"in s.props)||(Y.href=(0,c.addBasePath)(W)),y=D?a.default.cloneElement(s,Y):(0,o.jsx)("a",{...B,...Y,children:r}),(0,o.jsx)(v.Provider,{value:x,children:y})}t.r(78345);let v=(0,a.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
1dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},13474,t=>{"use strict";var e=t.i(72673),i=t.i(12086),n=t.i(31763);let r=(0,n.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),s=(0,n.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var o=t.i(61946),a=t.i(73447);let l=[{href:"#work",label:"Work"},{href:"#about",label:"About"},{href:"#experience",label:"Experience"},{href:"#contact",label:"Contact"}];t.s(["Navigation",0,function(){let[t,n]=(0,a.useState)(!1);return(0,e.jsxs)(i.motion.header,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5},className:"fixed top-0 left-0 right-0 z-50 px-6 md:px-12 lg:px-24 py-5 bg-[oklch(0.965_0.010_85)] border-b border-border",children:[(0,e.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[(0,e.jsx)(o.default,{href:"/",className:"text-lg font-medium tracking-tight hover:text-primary transition-colors",children:"William Renner"}),(0,e.jsxs)("nav",{className:"hidden md:flex items-center gap-8",children:[l.map(t=>(0,e.jsx)("a",{href:t.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:t.label},t.href)),(0,e.jsx)("a",{href:"mailto:[email protected]",className:"text-sm bg-foreground text-background px-4 py-2 rounded-full hover:bg-foreground
1/90 transition-colors",children:"Let's Talk"})]}),(0,e.jsx)("button",{onClick:()=>n(!t),className:"md:hidden p-2 -mr-2","aria-label":"Toggle menu",children:t?(0,e.jsx)(s,{className:"w-5 h-5"}):(0,e.jsx)(r,{className:"w-5 h-5"})})]}),t&&(0,e.jsx)(i.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"md:hidden absolute top-full left-0 right-0 bg-background border-b border-border px-6 py-6",children:(0,e.jsxs)("nav",{className:"flex flex-col gap-4",children:[l.map(t=>(0,e.jsx)("a",{href:t.href,onClick:()=>n(!1),className:"text-lg text-muted-foreground hover:text-foreground transition-colors",children:t.label},t.href)),(0,e.jsx)("a",{href:"mailto:[email protected]",className:"text-lg text-primary font-medium",children:"Let's Talk"})]})})]})}],13474)},69231,(t,e,i)=>{"use strict";function n({widthInt:t,heightInt:e,blurWidth:i,blurHeight:r,blurDataURL:s,objectFit:o}){let a=i?40*i:t,l=r?40*r:e,u=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${u}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${s}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},63459,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return o}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},69887,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return u}}),t.r(76214);let n=t.r(39997),r=t.r(69231),s=t.r(63459),o=["-moz-initial","fill","none","scale-down",void 0];function a(t){return void 0!==t.default}function l(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function u({src:t,sizes:e,unoptimized:i=!1,priority:h=!1,preload:d=!1,loading:c,className:p,quality:m,width:f,height:g,fill:y=!1,style:v,overrideSrc:x,onLoad:w,onLoadingComplete:b,placeholder:S="empty",blurDataURL:P,fetchPriority:T,decoding:j="async",layout:k,objectFit:E,objectPosition:A,lazyBoundary:M,lazyRoot:C,...V},R){var D;let N,I,L,{imgConf:O,showAltText:B,blurComplete:F,defaultLoader:_}=R,U=O||s.imageConfigDefault;if("allSizes"in U)N=U;else{let t=[...U.deviceSizes,...U.imageSizes].sort((t,e)=>t-e),e=U.deviceSizes.sort((t,e)=>t-e),i=U.qualities?.sort((t,e)=>t-e);N={...U,allSizes:t,deviceSizes:e,qualities:i}}if(void 0===_)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let W=V.loader||_;delete V.loader,delete V.srcSet;let $="__next_img_default"in W;if($){if("custom"===N.loader)throw Object.defineProperty(Error(`Image with src "${t}" is missing "loader" prop.
2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,
2configurable:!0})}else{let t=W;W=e=>{let{config:i,...n}=e;return t(n)}}if(k){"fill"===k&&(y=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];t&&(v={...v,...t});let i={responsive:"100vw",fill:"100vw"}[k];i&&!e&&(e=i)}let z="",Y=l(f),H=l(g);if((D=t)&&"object"==typeof D&&(a(D)||void 0!==D.src)){let e=a(t)?t.default:t;if(!e.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(I=e.blurWidth,L=e.blurHeight,P=P||e.blurDataURL,z=e.src,!y)if(Y||H){if(Y&&!H){let t=Y/e.width;H=Math.round(e.height*t)}else if(!Y&&H){let t=H/e.height;Y=Math.round(e.width*t)}}else Y=e.width,H=e.height}let X=!h&&!d&&("lazy"===c||void 0===c);(!(t="string"==typeof t?t:z)||t.startsWith("data:")||t.startsWith("blob:"))&&(i=!0,X=!1),N.unoptimized&&(i=!0),$&&!N.dangerouslyAllowSVG&&t.split("?",1)[0].endsWith(".svg")&&(i=!0);let q=l(m),K=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:A}:{},B?{}:{color:"transparent"},v),G=F||"empty"===S?null:"blur"===S?`url("data:image/svg+xml;charset=utf-8,${(0,r.getImageBlurSvg)({widthInt:Y,heightInt:H,blurWidth:I,blurHeight:L,blurDataURL:P||"",objectFit:K.objectFit})}")`:`url("${S}")`,Z=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,J=G?{backgroundSize:Z,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:G}:{},Q=function({config:t,src:e,unoptimized:i,width:r,quality:s,sizes:o,loader:a}){if(i){if(e.startsWith("/")&&!e.startsWith("//")){let t=(0,n.getDeploymentId)();if(t){let i=e.indexOf("?");if(-1!==i){let n=new URLSearchParams(e.slice(i+1));n.get("dpl")||(n.append("dpl",t),e=e.slice(0,i)+"?"+n.toString())}else e+=`?dpl=${t}`}}return{src:e,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:t,allSizes:e},i,n){if(n){let i=/(^|\s)(1?\d?\d)vw/g,r=[];for(let t;t=i.exec(n);)r.push(parseInt(t[2]));if(r.length){let i=.01*Math.min(...r);return{widths:e.filter(e=>e>=t[0]*i),kind:"w"}}return{widths:e,kind:"w"}}return"number"!=typeof i?{widths:t,kind:"w"}:{widths:[...new Set([i,2*i].map(t=>e.find(e=>e>=t)||e[e.length-1]))],kind:"x"}}(t,r,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((i,n)=>`${a({config:t,src:e,quality:s,width:i})} ${"w"===u?i:n+1}${u}`).join(", "),src:a({config:t,src:e,quality:s,width:l[h]})}}({config:N,src:t,unoptimized:i,width:Y,quality:q,sizes:e,loader:W}),tt=X?"lazy":c;return{props:{...V,loading:tt,fetchPriority:T,width:Y,height:H,decoding:j,className:p,style:{...K,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:i,preload:d||h,placeholder:S,fill:y}}}},14909,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let n=t.r(73447),r="u"<typeof window,s=r?()=>{}:n.useLayoutEffect,o=r?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:i}=t;function a(){if(e&&e.mountedInstances){let t=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(t))}}return r&&(e?.mountedInstances?.add(t.children),a()),s(()=>(e?.mountedInstances?.add(t.children),()=>{e?.mountedInstances?.delete(t.children)})),s(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),o(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},14603,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return f},defaultHead:function(){return d}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(81258),o=t.r(44066),a=t.r(72673),l=o._(t.r(73447)),u=s._(t.r(14909)),h=t.r(15066);function d(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function c(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===l.default.Fragment?t.concat(l.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}t.r(76214);let p=["name","httpEquiv","charSet","itemProp"];function m(t){let e,i,n,r;return t.reduce(c,[]).reverse().concat(d().reverse()).filter((e=new Set,i=new Set,n=new Set,r={},t=>{let s=!0,o=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){o=!0;let i=t.key.slice(t.key.indexOf("$")+1);e.has(i)?s=!1:e.add(i)}switch(t.type){case"title":case"base":i.has(t.type)?s=!1:i.add(t.type);break;case"meta":for(let e=0,i=p.length;e<i;e++){let i=p[e];if(t.props.hasOwnProperty(i))if("charSet"===i)n.has(i)?s=!1:n.add(i);else{let e=t.props[i],n=r[i]||new Set;("name"!==i||!o)&&n.has(e)?s=!1:(n.add(e),r[i]=n)}}}return s})).reverse().map((t,e)=>{let i=t.key||e;return l.default.cloneElement(t,{key:i})})}let f=function({children:t}){let e=(0,l.useContext)(h.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:m,headManager:e,children:t})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
2dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},446,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=t.r(81258)._(t.r(73447)),r=t.r(63459),s=n.default.createContext(r.imageConfigDefault)},79351,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return n}});let n=t.r(81258)._(t.r(73447)).default.createContext(null)},66270,(t,e,i)=>{"use strict";function n(t,e){let i=t||75;return e?.qualities?.length?e.qualities.reduce((t,e)=>Math.abs(e-i)<Math.abs(t-i)?e:t,e.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return n}})},98503,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let n=t.r(66270),r=t.r(39997);function s({config:t,src:e,width:i,quality:o}){let a=(0,r.getDeploymentId)();if(e.startsWith("/")&&!e.startsWith("//")){let t=e.indexOf("?");if(-1!==t){let i=new URLSearchParams(e.slice(t+1)),n=i.get("dpl");if(n){a=n,i.delete("dpl");let r=i.toString();e=e.slice(0,t)+(r?"?"+r:"")}}}if(e.startsWith("/")&&e.includes("?")&&t.localPatterns?.length===1&&"**"===t.localPatterns[0].pathname&&""===t.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${e}" is using a query string which is not configured in images.localPatterns.
3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(o,t);return`${t.path}?url=${encodeURIComponent(e)}&w=${i}&q=${l}${e.startsWith("/")&&a?`&dpl=${a}`:""}`}s.__next_img_default=!0;let o=s},58891,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return w}});let n=t.r(81258),r=t.r(44066),s=t.r(72673),o=r._(t.r(73447)),a=n._(t.r(32074)),l=n._(t.r(14603)),u=t.r(69887),h=t.r(63459),d=t.r(446);t.r(76214);let c=t.r(79351),p=n._(t.r(98503)),m=t.r(4858),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(t,e,i,n,r,s,o){let a=t?.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&r(!0),i?.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,r=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{r=!0,e.stopPropagation()}})}n?.current&&n.current(t)}}))}function y(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,o.forwardRef)(({src:t,srcSet:e,sizes:i,height:n,width:r,decoding:a,className:l,style:u,fetchPriority:h,placeholder:d,loading:c,unoptimized:p,fill:f,onLoadRef:v,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:b,sizesInput:S,onLoad:P,onError:T,...j},k)=>{let E=(0,o.useCallback)(t=>{t&&(T&&(t.src=t.src),t.complete&&g(t,d,v,x,w,p,S))},[t,d,v,x,w,T,p,S]),A=(0,m.useMergedRef)(k,E);return(0,s.jsx)("img",{...j,...y(h),loading:c,width:r,height:n,decoding:a,"data-nimg":f?"fill":"1",className:l,style:u,sizes:i,srcSet:e,src:t,ref:A,onLoad:t=>{g(t.currentTarget,d,v,x,w,p,S)},onError:t=>{b(!0),"empty"!==d&&w(!0),T&&T(t)}})});function x({isAppRouter:t,imgAttributes:e}){let i={as:"image",imageSrcSet:e.srcSet,imageSizes:e.sizes,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,...y(e.fetchPriority)};return t&&a.default.preload?(a.default.preload(e.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:e.srcSet?void 0:e.src,...i},"__nimg-"+e.src+e.srcSet+e.sizes)})}let w=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(c.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),r=(0,o.useMemo)(()=>{let t=f||n||h.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e),r=t.qualities?.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i,qualities:r,localPatterns:"u"<typeof window?n?.localPatterns:t.localPatterns}
3},[n]),{onLoad:a,onLoadingComplete:l}=t,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[y,w]=(0,o.useState)(!1),[b,S]=(0,o.useState)(!1),{props:P,meta:T}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:r,blurComplete:y,showAltText:b});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...P,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:S,sizesInput:t.sizes,ref:e}),T.preload?(0,s.jsx)(x,{isAppRouter:!i,imgAttributes:P}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},32667,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return h},getImageProps:function(){return u}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(81258),o=t.r(69887),a=t.r(58891),l=s._(t.r(98503));function u(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let h=a.Image},3999,(t,e,i)=>{e.exports=t.r(32667)},98924,t=>{"use strict";var e=t.i(72673),i=t.i(12086),n=t.i(31763);let r=(0,n.default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),s=(0,n.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var o=t.i(61946),a=t.i(3999);t.s(["HeroSection",0,function(){return(0,e.jsxs)("section",{className:"relative min-h-screen flex flex-col justify-center px-6 md:px-12 lg:px-24 py-24",children:[(0,e.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-background via-background to-secondary/30 -z-10"}),(0,e.jsxs)("div",{className:"max-w-5xl mx-auto w-full",children:[(0,e.jsxs)(i.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"space-y-8",children:[(0,e.jsx)(i.motion.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},className:"w-16 h-16 rounded-full overflow-hidden ring-2 ring-border",children:(0,e.jsx)(a.default,{src:"/william-headshot.jpg",alt:"William Renner",width:64,height:64,className:"object-cover w-full h-full"})}),(0,e.jsx)("p",{className:"text-muted-foreground text-sm tracking-widest uppercase",children:"Video Director · Editor · Vibe Coder"}),(0,e.jsxs)("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-serif leading-[1.1] tracking-tight text-balance",children:[(0,e.jsx)("span",{className:"italic",children:"Creative Storytelling."})," ",(0,e.jsx)("br",{className:"hidden md:block"}),"Building tools with A.I."]}),(0,e.jsxs)("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl leading-relaxed",children:["I'm William Renner — I direct and edit video for online educators, and I'm building"," ",(0,e.jsx)(o.default,{href:"https://volume.chat",target:"_blank",className:"text-foreground underline underline-offset-4 hover:text-primary transition-colors",children:"Volume.chat"}),", an AI video editor that automates the workflow I was doing by hand."]}),(0,e.jsxs)("div",{className:"flex flex-wrap gap-4 pt-4",children:[(0,e.jsxs)(i.motion.a,{href:"#work",whileHover:{scale:1.02},whileTap:{scale:.98},className:"inline-flex items-center gap-2 bg-foreground text-background px-6 py-3.5 rounded-full font-medium hover:bg-foreground
3/90 transition-colors",children:[(0,e.jsx)(s,{className:"w-4 h-4"}),"View My Work"]}),(0,e.jsx)(i.motion.a,{href:"#contact",whileHover:{scale:1.02},whileTap:{scale:.98},className:"inline-flex items-center gap-2 border border-border px-6 py-3.5 rounded-full font-medium hover:bg-secondary transition-colors",children:"Get In Touch"})]})]}),(0,e.jsx)(i.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1,duration:.6},className:"absolute bottom-12 left-1/2 -translate-x-1/2",children:(0,e.jsx)(i.motion.div,{animate:{y:[0,8,0]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:(0,e.jsx)(r,{className:"w-5 h-5 text-muted-foreground"})})})]})]})}],98924)},79994,t=>{"use strict";let e=(0,t.i(31763).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);t.s(["ArrowUpRight",0,e],79994)},59362,t=>{"use strict";var e=t.i(72673),i=t.i(12086),n=t.i(79994),r=t.i(3999);let s={id:1,title:"Volume.chat",category:"AI Video Editor",description:"An AI-powered web app that takes the full creator workflow end-to-e
3nd: clients record directly into the app, and an automated pipeline turns raw footage into a publishable YouTube edit — outtakes removed, zooms and captions added, color corrected, paced.",image:"/projects/volume-chat.png",tags:["AI Build","Claude Code","Vercel"],link:"https://volume.chat"},o=[{id:2,title:"Edit City",category:"Video Production & Coaching",description:"Coaching-based video production for online educators. I guide creators through recorded sessions, helping them get comfortable on camera and shape their message into content that lands.",image:"/projects/edit-city.jpg",tags:["Video Direction","Coaching","YouTube"],link:"https://www.skool.com/edit-city"},{id:3,title:"Skool Magazine",category:"Podcast & YouTube Show",description:"Independent weekly YouTube show featuring long-form interviews with successful Skool community owners — including co-founder Sam Ovens.",image:"/projects/skool-magazine.jpg",tags:["Podcast","Hosting","Video Production"],link:"https://www.youtube.com/@skool-magazine"},{id:4,title:"Worldlings Kids Meditation",category:"Creative Direction",description:"YouTube channel teaching meditation to children through puppet-led narratives, illustrated segments, and original music.",image:"/projects/worldlings.jpg",tags:["Direction","Animation","Kids Content"],link:"https://www.youtube.com/@WorldlingsKids"},{id:5,title:"Meditation Daily",category:"Podcast Production (Discontinued)",description:"Weekly YouTube podcast on meditation practice, philosophy, and lived experience. Single-operator production from writing through release.",image:"/projects/meditation-daily.jpg",tags:["Podcast","Mindfulness","Production"],link:null}];function a({project:t}){return(0,e.jsx)(i.motion.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"group",children:(0,e.jsxs)("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"block",children:[(0,e.jsxs)("div",{className:"relative aspect-[16/8] overflow-hidden rounded-xl bg-secondary mb-4",children:[(0,e.jsx)(r.default,{src:t.image,alt:t.title,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105"}
3),(0,e.jsx)("div",{className:"absolute inset-0 bg-foreground/0 group-hover:bg-foreground/5 transition-colors"})]}),(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:t.category}),(0,e.jsxs)("h3",{className:"text-xl font-medium flex items-center gap-2 group-hover:text-primary transition-colors",children:[t.title,(0,e.jsx)(n.ArrowUpRight,{className:"w-4 h-4 opacity-0 -translate-y-1 translate-x-1 group-hover:opacity-100 group-hover:translate-y-0 group-hover:translate-x-0 transition-all"})]}),(0,e.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description}),(0,e.jsx)("div",{className:"flex flex-wrap gap-2 pt-2",children:t.tags.map(t=>(0,e.jsx)("span",{className:"text-xs px-3 py-1 bg-secondary rounded-full text-secondary-foreground",children:t},t))})]})]})})}function l({project:t,index:s}){let o=!t.link;return(0,e.jsx)(i.motion.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.08*s},viewport:{once:!0},className:`group ${o?"opacity-75":""}`,children:o?(0,e.jsxs)("div",{className:"block",children:[(0,e.jsxs)("div",{className:"relative aspect-square overflow-hidden rounded-xl bg-secondary mb-3",children:[(0,e.jsx)(r.default,{src:t.image,alt:t.title,fill:!0,className:"object-cover"}
3),(0,e.jsx)("div",{className:"absolute inset-0 bg-foreground/0"})]}),(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:t.category}),(0,e.jsx)("h3",{className:"text-base font-medium flex items-center gap-1.5",children:t.title}),(0,e.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed line-clamp-2",children:t.description})]})]}):(0,e.jsxs)("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"block",children:[(0,e.jsxs)("div",{className:"relative aspect-square overflow-hidden rounded-xl bg-secondary mb-3",children:[(0,e.jsx)(r.default,{src:t.image,alt:t.title,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105"}),(0,e.jsx)("div",{className:"absolute inset-0 bg-foreground/0 group-hover:bg-foreground/5 transition-colors"})]}),(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:t.category}),(0,e.jsxs)("h3",{className:"text-base font-medium flex items-center gap-1.5 group-hover:text-primary transition-colors",children:[t.title,(0,e.jsx)(n.ArrowUpRight,{className:"w-3.5 h-3.5 opacity-0 -translate-y-0.5 translate-x-0.5 group-hover:opacity-100 group-hover:translate-y-0 group-hover:translate-x-0 transition-all"})]}),(0,e.jsx)("p",{className:"text-muted-foreground text-xs leading-relaxed line-clamp-2",children:t.description})]})]})})}t.s(["WorkSection",0,function(){return(0,e.jsx)("section",{id:"work",className:"px-6 md:px-12 lg:px-24 py-24 md:py-32",children:(0,e.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,e.jsxs)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"mb-16",children:[(0,e.jsx)("p",{className:"text-muted-foreground text-sm tracking-widest uppercase mb-4",children:"Selected Work"}),(0,e.jsx)("h2",{className:"text-3xl md:text-4xl font-serif",children:"Projects I've brought to life"})]}),(0,e.jsx)("div",{className:"mb-12",children:(0,e.jsx)(a,{project:s})}),(0,e.jsx)("div",{className:"grid grid-cols-2 gap-6 md:gap-8",children:o.map((t,i)=>(0,e.jsx)(l,{project:t,index:i},t.id))})]})})}])},16361,t=>{"use strict";var e=t.i(72673),i=t.i(12086);t.s(["TestimonialSection",0,function(){return(0,e.jsx)("section",{className:"px-6 md:px-12 lg:px-24 py-24 md:py-32",children:(0,e.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,e.jsxs)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"mb-12",children:[(0,e.jsx)("p",{className:"text-muted-foreground text-sm tracking-widest uppercase mb-4",children:"Testimonials"}),(0,e.jsx)("h2",{className:"text-3xl md:text-4xl font-serif",children:"What my clients say"})]}),(0,e.jsx)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1},viewport:{once:!0},className:"relative w-full rounded-xl overflow-hidden bg-secondary",children:(0,e.jsx)("div",{style:{paddingBottom:"56.25%",position:"relative"},children:(0,e.jsx)("iframe",{src:"https://www.loom.com/embed/26aa6c6913a24c4bb78c9cdb7cb8a5d4",frameBorder:"0",allowFullScreen:!0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}})})}),(0,e.jsx)(i.motion.p,{initial:{opacity:0}
3,whileInView:{opacity:1},transition:{duration:.5,delay:.2},viewport:{once:!0},className:"text-center text-muted-foreground text-sm mt-6",children:"Edit City clients sharing their experience"})]})})}])},4008,t=>{"use strict";var e=t.i(72673),i=t.i(12086),n=t.i(79994),r=t.i(3999);let s=["Directing Recorded Sessions","On-Camera Coaching","Video Editing","Color Correction","YouTube Long-form & Short-form","Meta Ad Creative","AI Build (Claude Code, Vercel)","Podcast Production"];t.s(["AboutSection",0,function(){return(0,e.jsx)("section",{id:"about",className:"px-6 md:px-12 lg:px-24 py-24 md:py-32 bg-secondary/30",children:(0,e.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,e.jsxs)("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[(0,e.jsxs)(i.motion.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.6},viewport:{once:!0},className:"relative",children:[(0,e.jsx)("div",{className:"aspect-[4/5] relative rounded-2xl overflow-hidden bg-muted",children:(0,e.jsx)(r.default,{src:"/william-portrait.jpg",alt:"William Renner",fill:!0,className:"object-cover"})}),(0,e.jsx)("div",{className:"absolute -bottom-6 -right-6 w-32 h-32 bg-primary/10 rounded-full blur-3xl"})]}),(0,e.jsxs)(i.motion.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},transition:{duration:.6},viewport:{once:!0},className:"space-y-8",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-muted-foreground text-sm tracking-widest uppercase mb-4",children:"About Me"}),(0,e.jsxs)("h2",{className:"text-3xl md:text-4xl font-serif mb-6",children:["I believe in the power of ",(0,e.jsx)("span",{className:"italic",children:"thoughtful"})," storytelling."]})]}),(0,e.jsxs)("div",{className:"space-y-4 text-muted-foreground leading-relaxed",children:[(0,e.jsx)("p",{children:"Video director, editor, and creative technologist based in Montréal. Most of my work over the past two years has been with online educators on Skool.com — running them through recorded video sessions, coaching their on-camera performance, and cutting the footage into YouTube content that holds attention."}),(0,e.jsxs)("p",{children:["Over the past six months, that practice has turned into software: I've been using Claude Code and Vercel to build"," ",(0,e.jsx)("a",{href:"https://volume.chat",target:"_blank",rel:"noopener noreferrer",className:"text-foreground underline underline-offset-4 hover:text-primary transition-colors",children:"Volume.chat"}),", an AI video editor that automates the workflow I was doing by hand."]}),(0,e.jsx)("p",{children:"Before the Skool work, I created Worldlings — a puppet show teaching meditation to children — and Meditation Daily, a podcast on mindfulness practice. I also hold an M.A. in Philosophy from Concordia University."})]}),(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsx)("p",{className:"text-sm font-medium",children:"Areas of Expertise"}),(0,e.jsx)("div",{className:"flex flex-wrap gap-2",children:s.map(t=>(0,e.jsx)("span",{className:"text-sm px-4 py-2 bg-background rounded-full border border-border",children:t},t))})]}),(0,e.jsxs)("a",{href:"https://www.linkedin.com/in/williamwrenner/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-medium hover:text-primary transition-colors group",children:["View Full Profile on LinkedIn",(0,e.jsx)(n.ArrowUpRight,{className:"w-4 h-4 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]})]})})})}])},37175,t=>{"use strict";var e=t.i(72673),i=t.i(12086),n=t.i(79994);let r=[{role:"Founder & Builder",company:"Volume.chat",companyUrl:"https://volume.chat",period:"2025 — Present",description:"AI-powered web app that takes the full creator workflow end-to-e
3nd: clients record directly into the app, and an automated pipeline turns the raw footage into a publishable YouTube edit. Built with Claude Code and Vercel.",current:!0},{role:"Founder & Director/Editor",company:"Edit City",companyUrl:"https://www.skool.com/edit-city",period:"2024 — Present",description:"Coaching-based video production for online educators. I guide creators through recorded sessions, helping them perform naturally on camera and shape their message into content that lands — hooks, structure, resonance.",current:!0},{role:"Host & Editor",company:"Skool Magazine",companyUrl:"https://www.youtube.com/@skoolmagazine",period:"2024 — Present",description:"Independent YouTube show featuring long-form interviews with successful Skool community owners — including Skool co-founder and CEO Sam Ovens. Built the show's visual identity and pacing from scratch.",current:!0},{role:"Editor & Ambassador",company:"Skool.com",companyUrl:"https://www.skool.com",period:"2023 — 2025",description:"Editor on Skool Stories (official podcast): cut episodes and crafted intros for top-performing videos. Ambassador on Skool's ad-creative team producing short-form Meta campaigns.",current:!1},{role:"Host, Producer, Editor",company:"Meditation Daily",companyUrl:"https://meditationdaily.io",period:"2022 — 2023",description:"Weekly YouTube podcast on meditation practice, philosophy, and lived experience. Single-operator production: writing, recording, editing, releasing on a weekly schedule.",current:!1},{role:"Director & Producer",company:"Worldlings Kids Meditation",companyUrl:"https://www.youtube.com/@WorldlingsKids",period:"2020 — 2022",description:"YouTube channel teaching meditation to children through puppet-led narratives. Directed full production including compositing, color-grading, asset creation, and original music.",current:!1}];t.s(["ExperienceSection",0,function(){return(0,e.jsx)("section",{id:"experience",className:"px-6 md:px-12 lg:px-24 py-24 md:py-32",children:(0,e.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,e.jsxs)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"mb-16",children:[(0,e.jsx)("p",{className:"text-muted-foreground text-sm tracking-widest uppercase mb-4",children:"Experience"}),(0,e.jsx)("h2",{className:"text-3xl md:text-4xl font-serif",children:"Where I've been creating"})]}),(0,e.jsx)("div",{className:"space-y-0",children:r.map((t,r)=>(0,e.jsx)(i.motion.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1*r},viewport:{once:!0},className:"group py-8 border-t border-border first:border-t-0",children:(0,e.jsxs)("div",{className:"grid md:grid-cols-[200px_1fr] gap-4 md:gap-8",children:[(0,e.jsxs)("div",{className:"flex items-start gap-2",children:[(0,e.jsx)("span",{className:"text-sm text-muted-foreground font-mono",children:t.period}),t.current&&(0,e.jsxs)("span",{className:"flex h-2 w-2 mt-1.5",children:[(0,e.jsx)("span",{className:"animate-ping absolute inline-flex h-2 w-2 rounded-full bg-primary opacity-75"}),(0,e.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-primary"})]})]}),(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-lg font-medium",children:t.role}),(0,e.jsxs)("a",{href:t.companyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors group/link",children:[t.company,(0,e.jsx)(n.ArrowUpRight,{className:"w-3 h-3 opacity-0 group-hover/link:opacity-100 transition-opacity"})]})]}),(0,e.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]})]})},`${t.company}-${t.role}`))})]})})}])},89394,t=>{"use strict";var e=t.i(72673),i=t.i(12086),n=t.i(31763);let r=(0,n.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"}
3],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),s=(0,n.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),o=[{icon:r,title:"Building with Claude Every Day",description:"I taught myself to code by working with Claude Code. Volume.chat — my AI video editor — exists because of this collaboration. I understand Claude's capabilities from the inside out, as both a power user and a builder."},{icon:(0,n.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),title:"Making People Comfortable on Camera",description:"My core skill is guiding people through recorded sessions so they can be natural. I help creators articulate what they're trying to say in real time during the take. That translates directly to directing talent on set."},{icon:s,title:"Background in Mindfulness & Philosophy",description:"From teaching meditation to toddlers (Worldlings) to my M.A. in Philosophy studying collective intelligence, my work has always centered on making nuanced concepts accessible. I believe AI should elevate humanity."},{icon:(0,n.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),title:"End-to-End Creative Vision",description:"I don't just execute — I build entire workflows. At Edit City, I developed a unique coaching process. Then I automated it. Then I built software around it. That's the founder mindset I bring to every project."}];t.s(["WhyAnthropicSection",0,function(){return(0,e.jsx)("section",{className:"px-6 md:px-12 lg:px-24 py-24 md:py-32 bg-foreground text-background",children:(0,e.jsxs)("div",{className:"max-w-5xl mx-auto",children:[(0,e.jsxs)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"mb-16 text-center",children:[(0,e.jsx)("p",{className:"text-background/60 text-sm tracking-widest uppercase mb-4",children:"A Note to Anthropic"}),(0,e.jsxs)("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-serif leading-tight",children:["Why I want to tell"," ",(0,e.jsx)("span",{className:"italic",children:"your"})," story"]}),(0,e.jsx)("p",{className:"text-background/70 text-lg mt-6 max-w-2xl mx-auto leading-relaxed",children:"I've spent the past six months building software with Claude Code. I'd love to help tell that story to the world."})]}),(0,e.jsx)("div",{className:"grid md:grid-cols-2 gap-8",children:o.map((t,n)=>(0,e.jsxs)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.1*n},viewport:{once:!0},className:"p-6 rounded-2xl bg-background/5 border border-background/10 hover:bg-background/10 transition-colors",children:[(0,e.jsx)(t.icon,{className:"w-8 h-8 mb-4 text-primary"}),(0,e.jsx)("h3",{className:"text-xl font-medium mb-3",children:t.title}),(0,e.jsx)("p",{className:"text-background/70 leading-relaxed text-sm",children:t.description})]},t.title))}),(0,e.jsx)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.4},viewport:{once:!0},className:"mt-16 text-center",children:(0,e.jsx)("blockquote",{className:"text-xl md:text-2xl font-serif italic text-background/90 max-w-3xl mx-auto leading-relaxed",children:"\"The best stories don't just inform — they transform how we see the world. That's the kind of storytelling AI safety deserves.\"   "})})]})})}],89394)},9785,t=>{"use strict";var e=t.i(72673),i=t.i(12086),n=t.i(79994),r=t.i(31763);let s=(0,r.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),o=[{name:"LinkedIn",url:"https://www.linkedin.com/in/williamwrenner/",icon:(0,r.default)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},{name:"Volume.chat",url:"https://volume.chat",icon:(0,r.default)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.5
35 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])}];t.s(["ContactSection",0,function(){return(0,e.jsx)("section",{id:"contact",className:"px-6 md:px-12 lg:px-24 py-24 md:py-32 bg-secondary/30",children:(0,e.jsx)("div",{className:"max-w-4xl mx-auto text-center",children:(0,e.jsxs)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"space-y-8",children:[(0,e.jsx)("p",{className:"text-muted-foreground text-sm tracking-widest uppercase",children:"Get In Touch"}),(0,e.jsxs)("h2",{className:"text-4xl md:text-5xl lg:text-6xl font-serif leading-tight",children:[(0,e.jsx)("span",{className:"italic",children:"Let's create"})," something"," ",(0,e.jsx)("br",{className:"hidden md:block"}),"meaningful together."]}),(0,e.jsx)("p",{className:"text-muted-foreground text-lg max-w-xl mx-auto leading-relaxed",children:"I'm always open to discussing new projects, creative ideas, or opportunities to be part of your vision."}),(0,e.jsx)("div",{className:"pt-4",children:(0,e.jsxs)(i.motion.a,{href:"mailto:[email protected]",whileHover:{scale:1.02},whileTap:{scale:.98},className:"inline-flex items-center gap-3 bg-foreground text-background px-8 py-4 rounded-full font-medium text-lg hover:bg-foreground
3/90 transition-colors",children:[(0,e.jsx)(s,{className:"w-5 h-5"}),"Say Hello"]})}),(0,e.jsx)("div",{className:"flex items-center justify-center gap-6 pt-8",children:o.map(t=>(0,e.jsxs)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors group",children:[(0,e.jsx)(t.icon,{className:"w-5 h-5"}),(0,e.jsx)("span",{className:"text-sm",children:t.name}),(0,e.jsx)(n.ArrowUpRight,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity"})]},t.name))})]})})})}],9785)},76841,t=>{"use strict";var e=t.i(72673),i=t.i(12086);t.s(["Footer",0,function(){let t=new Date().getFullYear();return(0,e.jsx)(i.motion.footer,{initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.5},viewport:{once:!0},className:"px-6 md:px-12 lg:px-24 py-8 border-t border-border",children:(0,e.jsxs)("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4 text-sm text-muted-foreground",children:[(0,e.jsxs)("p",{children:["© ",t," William Renner. All rights reserved."]}),(0,e.jsx)("p",{className:"text-center md:text-right",children:"Based in Montreal, Canada. Open to remote opportunities worldwide."})]})})}])}]);

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.