1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,565546,e=>{"use strict";var t=e.i(843476);e.i(398975);var i=e.i(513238),n=e.i(618566),r=e.i(948148),s=e.i(205575);function o(){return(0,t.jsx)("div",{className:"h-5 w-[0.2rem] bg-brand-primary rounded-xl"})}function a({locale:e}){let a=(0,r.useTranslations)("Locale"),l=(0,n.useRouter)(),u=(0,n.usePathname)(),h=e=>{let t=u.split("/").slice("en"==e?1:2).join("/"),i=`/${e}/${t}`;l.push(i)};return(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:"size-5 md:size-7",children:(0,t.jsx)(s.default,{})}),(0,t.jsx)(i.LinkElement,{onClick:()=>{"en"!=e&&h("en")},children:"English"}),(0,t.jsx)(o,{}),(0,t.jsx)(i.LinkElement,{onClick:()=>{"es"!=e&&h("es")},children:a("spanish")})]})}e.s(["LanguageSelector",()=>a],565546)},846932,476959,965566,260830,287022,325791,486427,737806,947414,674008,783920,344230,515923,930551,889026,749652,772846,e=>{"use strict";let t,i;var n,r=e.i(271645);let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(s),a=e=>180*e/Math.PI,l=e=>h(a(Math.atan2(e[1],e[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:l,rotateZ:l,skewX:e=>a(Math.atan(e[1])),skewY:e=>a(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},h=e=>((e%=360)<0&&(e+=360),e),d=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),c=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d,scaleY:c,scale:e=>(d(e)+c(e))/2,rotateX:e=>h(a(Math.atan2(e[6],e[5]))),rotateY:e=>h(a(Math.atan2(-e[2],e[0]))),rotateZ:l,rotate:l,skewX:e=>a(Math.atan(e[4])),skewY:e=>a(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function m(e){return+!!e.includes("scale")}function f(e,t){let i,n;if(!e||"none"===e)return m(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=p,n=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,n=t}if(!n)return m(t);let s=i[t],o=n[1].split(",").map(g);return"function"==typeof s?s(o):o[s]}function g(e){return parseFloat(e.trim())}let v=e=>t=>"string"==typeof t&&t.startsWith(e),y=v("--"),x=v("var(--"),w=e=>!!x(e)&&b.test(e.split("/*")[0].trim()),b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}let P=(e,t,i)=>e+(t-e)*i;function S(e){return void 0===e||1===e}function C({scale:e,scaleX:t,scaleY:i}){return!S(e)||!S(t)||!S(i)}function M(e){return C(e)||E(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function E(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function j(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function k(e,t=0,i=1,n,r){e.min=j(e.min,t,i,n,r),e.max=j(e.max,t,i,n,r)}function A(e,{x:t,y:i}){k(e.x,t.translate,t.scale,t.originPoint),k(e.y,i.translate,i.scale,i.originPoint)}function R(e,t){e.min=e.min+t,e.max=e.max+t}function V(e,t,i,n,r=.5){let s=P(e.min,e.max,r);k(e,t,i,s,n)}function D(e,t){V(e.x,t.x,t.scaleX,t.scale,t.originX),V(e.y,t.y,t.scaleY,t.scale,t.originY)}function L(e,t){return T(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let F=new Set(["width","height","top","left","right","bottom",...s]),O=(e,t,i)=>i>t?t:i<e?e:i;e.s(["clamp",()=>O],476959);let N={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},I={...N,transform:e=>O(0,1,e)},B={...N,default:1},U=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),_=U("deg"),W=U("%"),H=U("px"),$=U("vh"),z=U("vw"),K={...W,parse:e=>W.parse(e)/100,transform:e=>W.transform(100*e)},X=e=>t=>t.test(e),Y=[N,H,W,_,z,$,{test:e=>"auto"===e,parse:e=>e}],G=e=>Y.find(X(e));e.i(247167);let q=()=>{},Z=()=>{};e.s(["invariant",()=>Z,"warning",()=>q],965566);let J=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,Q=e=>e===N||e===H,ee=new Set(["x","y","z"]),et=s.filter(e=>!ee.has(e)),ei={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>f(t,"x"),y:(e,{transform:t})=>f(t,"y")};ei.translateX=ei.x,ei.translateY=ei.y;let en=e=>e;e.s(["noop",()=>en],260830);let er={},es=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eo(e,t){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=es.reduce((e,i)=>(e[i]=function(e,t){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(t){o.has(t)&&(h.schedule(t),e()),l++,t(a)}let h={schedule:(e,t=!1,s=!1)=>{let a=s&&r?i:n;return t&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(a=e,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),t,l=0,i.clear(),r=!1,s&&(s=!1,h.process(e))}};return h}(s,t?i:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=er.useManualTiming?r.timestamp:performance.now();i=!1,er.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,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&&t&&(n=!1,e(f))};return{schedule:es.reduce((t,s)=>{let a=o[s];return t[s]=(t,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||e(f)),a.schedule(t,s,o)),t},{}),cancel:e=>{for(let t=0;t<es.length;t++)o[es[t]].cancel(e)},state:r,steps:o}}let{schedule:ea,cancel:el,state:eu,steps:eh}=eo("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:en,!0);e.s(["cancelFrame",()=>el,"frame",()=>ea,"frameData",()=>eu,"frameSteps",()=>eh],287022);let ed=new Set,ec=!1,ep=!1,em=!1;function ef(){if(ep){let e=Array.from(ed).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,n=(t=[],et.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),t);n.length&&(i.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ep=!1,ec=!1,ed.forEach(e=>e.complete(em)),ed.clear()}function eg(){ed.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ep=!0)})}class ev{constructor(e,t,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ed.add(this),ec||(ec=!0,ea.read(eg),ea.resolveKeyframes(ef))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;if(null===e[0]){let r=n?.get(),s=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let n=i.readValue(t,s);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=s),n&&void 0===r&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ed.delete(this)}cancel(){"scheduled"===this.state&&(ed.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let ey=e=>Math.round(1e5*e)/1e5,ex=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ew=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eb=(e,t)=>i=>!!("string"==typeof i&&ew.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),eT=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(ex);return{[e]:parseFloat(r),[t]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eP={...N,transform:e=>Math.round(O(0,255,e))},eS={test:eb("rgb","red"),parse:eT("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+eP.transform(e)+", "+eP.transform(t)+", "+eP.transform(i)+", "+ey(I.transform(n))+")"},eC={test:eb("#"),parse:function(e){let t="",i="",n="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:eS.transform},eM={test:eb("hsl","hue"),parse:eT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+W.transform(ey(t))+", "+W.transform(ey(i))+", "+ey(I.transform(n))+")"},eE={test:e=>eS.test(e)||eC.test(e)||eM.test(e),parse:e=>eS.test(e)?eS.parse(e):eM.test(e)?eM.parse(e):eC.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eS.transform(e):eM.transform(e),getAnimatableNone:e=>{let t=eE.parse(e);return t.alpha=0,eE.transform(t)}},ej=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ek="number",eA="color",eR=/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 eV(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=t.replace(eR,e=>(eE.test(e)?(n.color.push(s),r.push(eA),i.push(eE.parse(e))):e.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(e)):(n.number.push(s),r.push(ek),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function eD(e){return eV(e).values}function eL(e){let{split:t,types:i}=eV(e),n=t.length;return e=>{let r="";for(let s=0;s<n;s++)if(r+=t[s],void 0!==e[s]){let t=i[s];t===ek?r+=ey(e[s]):t===eA?r+=eE.transform(e[s]):r+=e[s]}return r}}let eF=e=>"number"==typeof e?0:eE.test(e)?eE.getAnimatableNone(e):e,eO={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(ex)?.length||0)+(e.match(ej)?.length||0)>0},parse:eD,createTransformer:eL,getAnimatableNone:function(e){let t=eD(e);return eL(e)(t.map(eF))}},eN=new Set(["brightness","contrast","saturate","opacity"]);function eI(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(ex)||[];if(!n)return e;let r=i.replace(n,""),s=+!!eN.has(t);return n!==i&&(s*=100),t+"("+s+r+")"}let eB=/\b([a-z-]*)\(.*?\)/gu,eU={...eO,getAnimatableNone:e=>{let t=e.match(eB);return t?t.map(eI).join(" "):e}},e_={...N,transform:Math.round},eW={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H,rotate:_,rotateX:_,rotateY:_,rotateZ:_,scale:B,scaleX:B,scaleY:B,scaleZ:B,skew:_,skewX:_,skewY:_,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:I,originX:K,originY:K,originZ:H,zIndex:e_,fillOpacity:I,strokeOpacity:I,numOctaves:e_},eH={...eW,color:eE,backgroundColor:eE,outlineColor:eE,fill:eE,stroke:eE,borderColor:eE,borderTopColor:eE,borderRightColor:eE,borderBottomColor:eE,borderLeftColor:eE,filter:eU,WebkitFilter:e
1U},e$=e=>eH[e];function ez(e,t){let i=e$(e);return i!==eU&&(i=eO),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eK=new Set(["auto","none","0"]);class eX extends ev{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&w(n=n.trim())){let r=function e(t,i,n=1){Z(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(e){let t=J.exec(e);if(!t)return[,];let[,i,n,r]=t;return[`--${i??n}`,r]}(t);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return w(s)?e(s,i,n+1):s}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!F.has(i)||2!==e.length)return;let[n,r]=e,s=G(n),o=G(r);if(s!==o)if(Q(s)&&Q(o))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else ei[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let n,r=0;for(;r<e.length&&!n;){let t=e[r];"string"==typeof t&&!eK.has(t)&&eV(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=ez(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ei[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=ei[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eY=e=>!!(e&&e.getVelocity);function eG(){t=void 0}let eq={now:()=>(void 0===t&&eq.set(eu.isProcessing||er.useManualTiming?eu.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(eG)}};function eZ(e,t){-1===e.indexOf(t)&&e.push(t)}function eJ(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class eQ{constructor(){this.subscriptions=[]}add(e){return eZ(this.subscriptions,e),()=>eJ(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e0(e,t){return t?1e3/t*e:0}e.s(["velocityPerSecond",()=>e0],325791);let e1={current:void 0};class e2{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=eq.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=eq.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eQ);let i=this.events[e].add(t);return"change"===e?()=>{i(),ea.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return e1.current&&e1.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=eq.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e0(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 e5(e,t){return new e2(e,t)}e.s(["collectMotionValues",()=>e1,"motionValue",()=>e5],486427);let e3=[...Y,eE,eO],{schedule:e7}=eo(queueMicrotask,!1),e4={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"]},e6={};for(let e in e4)e6[e]={isEnabled:t=>e4[e].some(e=>!!t[e])};let e8=()=>({translate:0,scale:1,origin:0,originPoint:0}),e9=()=>({x:e8(),y:e8()}),te=()=>({min:0,max:0}),tt=()=>({x:te(),y:te()}),ti="undefined"!=typeof window,tn={current:null},tr={current:!1},ts=new WeakMap;function to(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function ta(e){return"string"==typeof e||Array.isArray(e)}let tl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tu=["initial",...tl];function th(e){return to(e.animate)||tu.some(t=>ta(e[t]))}function td(e){return!!(th(e)||e.variants)}function tc(e){let t=[{},{}];
1return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tp(e,t,i,n){if("function"==typeof t){let[r,s]=tc(n);t=t(void 0!==i?i:e.custom,r,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,s]=tc(n);t=t(void 0!==i?i:e.custom,r,s)}return t}let tm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tf{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ev,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=eq.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ea.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=th(t),this.isVariantNode=td(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in h){const t=h[e];void 0!==a[e]&&eY(t)&&t.set(a[e])}}mount(e){this.current=e,ts.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),tr.current||function(){if(tr.current=!0,ti)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tn.current=e.matches;e.addEventListener("change",t),t()}else tn.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tn.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),el(this.notifyUpdate),el(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=o.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ea.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in e6){let t=e6[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tm.length;t++){let i=tm[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(e,t,i){for(let n in t){let r=t[n],s=i[n];if(eY(r))e.addValue(n,r);else if(eY(s))e.addValue(n,e5(r,{owner:e}));else if(s!==r)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(n);e.addValue(n,e5(void 0!==t?t:r,{owner:e}))}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=e5(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];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,!e3.find(X(n))&&eO.test(t)&&(i=ez(e,t))}this.setBaseTarget(e,eY(i)?i.get():i)}return eY(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=tp(this.props,i,this.presenceContext?.custom);n&&(t=n[e])}if(i&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||eY(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new eQ),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e7.render(this.render)}}class tg extends tf{constructor(){super(...arguments),this.KeyframeResolver=eX}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eY(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let tv=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ty={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tx=s.length;function tw(e,t,i){let{style:n,vars:r,transformOrigin:a}=e,l=!1,u=!1;for(let e in t){let i=t[e];if(o.has(e)){l=!0;continue}if(y(e)){r[e]=i;continue}{let t=tv(i,eW[e]);e.startsWith("origin")?(u=!0,a[e]=t):n[e]=t}}if(!t.transform&&(l||i?n.transform=function(e,t,i){let n="",r=!0;for(let o=0;o<tx;o++){let a=s[o],l=e[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!a.startsWith("scale"):0===parseFloat(l))||i){let e=tv(l,eW[a]);if(!u){r=!1;let t=ty[a]||a;n+=`${t}(${e}) `}i&&(t[a]=e)}}return n=n.trim(),i?n=i(t,r?"":n):r&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:i=0}=a;n.transformOrigin=`${e} ${t} ${i}`}}function tb(e,{style:t,vars:i},n,r){let s,o=e.style;for(s in t)o[s]=t[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function tT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tP={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!H.test(e))return e;else e=parseFloat(e);let i=tT(e,t.target.x),n=tT(e,t.target.y);return`${i}% ${n}%`}},tS={borderRadius:{...tP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tP,borderTopRightRadius:tP,borderBottomLeftRadius:tP,borderBottomRightRadius:tP,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=eO.parse(e);if(n.length>5)return e;let r=eO.createTransformer(e),s=+("number"!=typeof n[0]),o=i.x.scale*t.x,a=i.y.scale*t.y;n[0+s]/=o,n[1+s]/=a;let l=P(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 tC(e,{layout:t,layoutId:i}){return o.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tS[e]||"opacity"===e)}function tM(e,t,i){let{style:n}=e,r={};for(let s in n)(eY(n[s])||t.style&&eY(t.style[s])||tC(s,e)||i?.getValue(s)?.liveStyle!==void 0)&&(r[s]=n[s]);return r}class tE extends tg{constructor(){super(...arguments),this.type="html",this.renderInstance=tb}readValueFromInstance(e,t){if(o.has(t))return this.projection?.isProjecting?m(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return f(i,t)})(e,t);{let i=window.getComputedStyle(e),n=(y(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return L(e,t)}build(e,t,i){tw(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tM(e,t,i)}}let tj=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tk={offset:"stroke-dashoffset",array:"stroke-dasharray"},tA={offset:"strokeDashoffset",array:"strokeDasharray"};function tR(e,{attrX:t,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a}
1,l,u,h){if(tw(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:c}=e;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),void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(e,t,i=1,n=0,r=!0){e.pathLength=1;let s=r?tk:tA;e[s.offset]=H.transform(-n);let o=H.transform(t),a=H.transform(i);e[s.array]=`${o} ${a}`}(d,r,s,o,!1)}let tV=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"]),tD=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tL(e,t,i){let n=tM(e,t,i);for(let i in e)(eY(e[i])||eY(t[i]))&&(n[-1!==s.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}class tF extends tg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tt}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(o.has(t)){let e=e$(t);return e&&e.default||0}return t=tV.has(t)?t:tj(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tL(e,t,i)}build(e,t,i){tR(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){for(let i in tb(e,t,void 0,n),t.attrs)e.setAttribute(tV.has(i)?i:tj(i),t.attrs[i])}mount(e){this.isSVGTag=tD(e.tagName),super.mount(e)}}let tO=["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 tN(e){if("string"!=typeof e||e.includes("-"));else if(tO.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tI=e.i(843476);let tB=(0,r.createContext)({}),tU=(0,r.createContext)({strict:!1}),t_=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",()=>t_],737806);let tW=(0,r.createContext)({});function tH(e){return Array.isArray(e)?e.join(" "):e}let t$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tz(e,t,i){for(let n in t)eY(t[n])||tC(n,i)||(e[n]=t[n])}let tK=()=>({...t$(),attrs:{}}),tX=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tY(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tX.has(e)}let tG=e=>!tY(e);try{n=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof n&&(tG=e=>e.startsWith("on")?!tY(e):n(e))}catch{}let tq=(0,r.createContext)(null);function tZ(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}function tJ(e){return eY(e)?e.get():e}e.s(["useConstant",()=>tZ],947414);let tQ=e=>(t,i)=>{let n=(0,r.useContext)(tW),s=(0,r.useContext)(tq),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,r){return{latestValues:function(e,t,i,n){let r={},s=n(e,{});for(let e in s)r[e]=tJ(s[e]);let{initial:o,animate:a}=e,l=th(e),u=td(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!to(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let n=tp(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(i,n,r,e),renderState:t()}})(e,t,n,s);return i?o():tZ(o)},t0=tQ({scrapeMotionValuesFromProps:tM,createRenderState:t$}),t1=tQ({scrapeMotionValuesFromProps:tL,createRenderState:tK}),t2=Symbol.for("motionComponentSymbol");function t5(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let t3="data-"+tj("framerAppearId"),t7=(0,r.createContext)({}),t4=ti?r.useLayoutEffect:r.useEffect;function t6(e,{forwardMotionProps:t=!1}={},i,n){i&&function(e){for(let t in e)e6[t]={...e6[t],...e[t]}}(i);let s=tN(e)?t1:t0;function o(i,o){var a;let l,u={...(0,r.useContext)(t_),...i,layoutId:function({layoutId:e}){let t=(0,r.useContext)(tB).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:h}=u,d=function(e){let{initial:t,animate:i}=function(e,t){if(th(e)){let{initial:t,animate:i}=e;return{initial:!1===t||ta(t)?t:void 0,animate:ta(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(tW));return(0,r.useMemo)(()=>({initial:t,animate:i}),[tH(t),tH(i)])}(i),c=s(i,h);if(!h&&ti){(0,r.useContext)(tU).strict;let t=function(e){let{drag:t,layout:i}=e6;if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(u);l=t.MeasureLayout,d.visualElement=function(e,t,i,n,s){let{visualElement:o}=(0,r.useContext)(tW),a=(0,r.useContext)(tU),l=(0,r.useContext)(tq),u=(0,r.useContext)(t_).reducedMotion,h=(0,r.useRef)(null);n=n||a.renderer,!h.current&&n&&(h.current=n(e,{visualState:t,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let d=h.current,c=(0,r.useContext)(t7);d&&!d.projection&&s&&("html"===d.type||"svg"===d.type)&&function(e,t,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&t5(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(h.current,i,s,c);let p=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{d&&p.current&&d.update(i,l)});let m=i[t3],f=(0,r.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return t4(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),f.current&&d.animationState&&d.animationState.animateChanges())}),(0,r.useEffect)(()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),d.enteringChildren=void 0)}),d}(e,c,u,n,t.ProjectionNode)}return(0,tI.jsxs)(tW.Provider,{value:d,children:[l&&d.visualElement?(0,tI.jsx)(l,{visualElement:d.visualElement,...u}):null,function(e,t,i,{latestValues:n},s,o=!1){let a=(tN(e)?function(e,t,i,n){let s=(0,r.useMemo)(()=>{let i=tK();return tR(i,t,tD(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};tz(t,e.style,e),s.style={...t,...s.style}}return s}:function(e,t){let i,n,s={},o=(i=e.style||{},tz(n={},i,e),Object.assign(n,function({transformTemplate:e},t){return(0,r.useMemo)(()=>{let i=t$();return tw(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=o,s})(t,n,s,e),l=function(e,t,i){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(tG(r)||!0===i&&tY(r)||!t&&!tY(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}(t,"string"==typeof e,o),u=e!==r.Fragment?{...l,...a,ref:i}
1:{},{children:h}=t,d=(0,r.useMemo)(()=>eY(h)?h.get():h,[h]);return(0,r.createElement)(e,{...u,children:d})}(e,i,(a=d.visualElement,(0,r.useCallback)(e=>{e&&c.onMount&&c.onMount(e),a&&(e?a.mount(e):a.unmount()),o&&("function"==typeof o?o(e):t5(o)&&(o.current=e))},[a])),c,h,t)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let a=(0,r.forwardRef)(o);return a[t2]=e,a}function t8(e,t,i){let n=e.getProps();return tp(n,t,void 0!==i?i:n.custom,e)}function t9(e,t){return e?.[t]??e?.default??e}e.s(["useIsomorphicLayoutEffect",()=>t4],674008);let ie=e=>Array.isArray(e);function it(e,t){let i=e.getValue("willChange");if(eY(i)&&i.add)return i.add(t);if(!i&&er.WillChange){let i=new er.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function ii(e){e.duration=0,e.type="keyframes"}let ir=(e,t)=>i=>t(e(i)),is=(...e)=>e.reduce(ir),io=e=>1e3*e,ia={layout:0,mainThread:0,waapi:0};function il(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iu(e,t){return i=>i>0?t:e}let ih=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},id=[eC,eS,eM];function ic(e){let t=id.find(t=>t.test(e));if(q(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===eM&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let r=0,s=0,o=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,a=2*i-n;r=il(a,n,e+1/3),s=il(a,n,e),o=il(a,n,e-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 ip=(e,t)=>{let i=ic(e),n=ic(t);if(!i||!n)return iu(e,t);let r={...i};return e=>(r.red=ih(i.red,n.red,e),r.green=ih(i.green,n.green,e),r.blue=ih(i.blue,n.blue,e),r.alpha=P(i.alpha,n.alpha,e),eS.transform(r))},im=new Set(["none","hidden"]);function ig(e,t){return i=>P(e,t,i)}function iv(e){return"number"==typeof e?ig:"string"==typeof e?w(e)?iu:eE.test(e)?ip:iw:Array.isArray(e)?iy:"object"==typeof e?eE.test(e)?ip:ix:iu}function iy(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>iv(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function ix(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=iv(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let iw=(e,t)=>{let i=eO.createTransformer(t),n=eV(e),r=eV(t);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 q(!0,`Complex values '${e}' and '${t}' 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"),iu(e,t);if(im.has(e)&&!r.values.length||im.has(t)&&!n.values.length)return im.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return is(iy(function(e,t){let i=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let s=t.types[r],o=e.indexes[s][n[s]],a=e.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)};function ib(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?P(e,t,i):iv(e)(e,t)}let iT=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ea.update(t,e),stop:()=>el(t),now:()=>eu.isProcessing?eu.timestamp:eq.now()}},iP=(e,t,i=10)=>{let n="",r=Math.max(Math.round(t/i),2);for(let t=0;t<r;t++)n+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iS(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}function iC(e,t,i){let n=Math.max(t-5,0);return e0(i-e(n),t-n)}let iM=.01,iE=2,ij=.005,ik=.5;function iA(e,t){return e*Math.sqrt(1-t*t)}let iR=["duration","bounce"],iV=["stiffness","damping","mass"];function iD(e,t){return t.some(t=>void 0!==e[t])}function iL(e=.3,t=.3){let i,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!iD(e,iV)&&iD(e,iR))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*O(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:r}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:n=1}){let r,s;q(e<=io(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=O(.05,1,o),e=O(.01,10,e/1e3),o<1?(r=t=>{let n=t*o,r=n*e;return .001-(n-i)/iA(t,o)*Math.exp(-r)},s=t=>{let n=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=iA(Math.pow(t,2),o);return(n*i+i-s)*a*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let a=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(r,s,5/e);if(e=io(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),f=p||0,g=h/(2*Math.sqrt(u*d)),v=a-o,y=Math.sqrt(u/d)/1e3,x=5>Math.abs(v);if(r||(r=x?iM:iE),s||(s=x?ij:ik),g<1){let e=iA(y,g);i=t=>a-Math.exp(-g*y*t)*((f+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)i=e=>a-Math.exp(-y*e)*(v+(f+y*v)*e);else{let e=y*Math.sqrt(g*g-1);i=t=>{let i=Math.exp(-g*y*t),n=Math.min(e*t,300);return a-i*((f+g*y*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}let w={calculatedDuration:m&&c||null,next:e=>{let t=i(e);if(m)l.done=e>=c;else{let n=0===e?f:0;g<1&&(n=0===e?io(f):iC(i,e,t));let o=Math.abs(a-t)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(iS(w),2e4),t=iP(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function iF({keyframes:e,velocity:t=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=e[0],m={done:!1,value:p},f=i*t,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=e=>-f*Math.exp(-e/n),x=e=>v+y(e),w=e=>{let t=y(e),i=x(e);m.done=Math.abs(t)<=u,m.value=m.done?v:i},b=e=>{let t;if(t=m.value,void 0!==a&&t<a||void 0!==l&&t>l){var i;d=e,c=iL({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:iC(x,e,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==d||(t=!0,w(e),b(e)),void 0!==d&&e>=d)?c.next(e-d):(t||w(e),m)}}}iL.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),r=Math.min(iS(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:r/1e3}}(e,100,iL);return e.ease=t.ease,e.duration=io(t.duration),e.type="keyframes",e};let iO=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function iN(e,t,i,n){return e===t&&i===n?en:r=>0===r||1===r?r:iO(function(e,t,i,n,r){let s,o,a=0;do(s=iO(o=t+(i-t)/2,n,r)-e)>0?i=o:t=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,e,i),t,n)}let iI=iN(.42,0,1,1),iB=iN(0,0,.58,1),iU=iN(.42,0,.58,1),i_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iW=e=>t=>1-e(1-t),iH=iN(.33,1.53,.69,.99),i$=iW(iH),iz=i_(i$),iK=e=>(e*=2)<1?.5*i$(e):.5*(2-Math.pow(2,-10*(e-1))),iX=e=>1-Math.sin(Math.acos(e)),iY=iW(iX),iG=i_(iX),iq=e=>Array.isArray(e)&&"number"==typeof e[0],iZ={linear:en,easeIn:iI,easeInOut:iU,easeOut:iB,circIn:iX,circInOut:iG,circOut:iY,backIn:i$,backInOut:iz,backOut:iH,anticipate:iK},iJ=e=>{if(iq(e)){Z(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,r]=e;return iN(t,i,n,r)}return"string"==typeof e?(Z(void 0!==iZ[e],`Invalid easing type '${e}
1'`,"invalid-easing-type"),iZ[e]):e},iQ=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n};function i0(e,t,{clamp:i=!0,ease:n,mixer:r}={}){let s=e.length;if(Z(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,i){let n=[],r=i||er.mix||ib,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=is(Array.isArray(t)?t[i]||en:t,s)),n.push(s)}return n}(t,n,r),l=a.length,u=i=>{if(o&&i<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=iQ(e[n],e[n+1],i);return a[n](r)};return i?t=>u(O(e[0],e[s-1],t)):u}function i1(e){let t=[0];return!function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let r=iQ(0,t,n);e.push(P(i,1,r))}}(t,e.length-1),t}function i2({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(iJ):iJ(n),o={done:!1,value:t[0]},a=i0((r=i&&i.length===t.length?i:i1(t),r.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||iU).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}e.s(["progress",()=>iQ],783920),e.s(["interpolate",()=>i0],344230),e.s(["defaultOffset",()=>i1],515923);let i5=e=>null!==e;function i3(e,{repeat:t,repeatType:i="loop"},n,r=1){let s=e.filter(i5),o=r<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let i7={decay:iF,inertia:iF,tween:i2,keyframes:i2,spring:iL};function i4(e){"string"==typeof e.type&&(e.type=i7[e.type])}class i6{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let i8=e=>e/100;class i9 extends i6{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==eq.now()&&this.tick(eq.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ia.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;i4(e);let{type:t=i2,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:o}=e,a=t||i2;a!==i2&&"number"!=typeof o[0]&&(this.mixKeyframes=is(i8,ib(o[0],o[1])),o=[0,100]);let l=a({...e,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...e,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iS(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=i;if(h){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,h+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/o)):"mirror"===d&&(x=s)),y=O(0,1,i)*o}let w=v?{done:!1,value:u[0]}:x.next(y);r&&(w.value=r(w.value));let{done:b}=w;v||null===a||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&p!==iF&&(w.value=i3(u,this.options,f,this.speed)),m&&m(w.value),T&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=io(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(eq.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iT,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),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=t??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(eq.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ia.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ne(e){let t;return()=>(void 0===t&&(t=e()),t)}let nt=ne(()=>void 0!==window.ScrollTimeline);e.s(["supportsScrollTimeline",()=>nt],930551);let ni={},nn=(i=ne(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>ni.linearEasing??i()),nr=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,ns={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nr([0,.65,.55,1]),circOut:nr([.55,0,1,.45]),backIn:nr([.31,.01,.66,-.59]),backOut:nr([.33,1.53,.69,.99])};function no(e){return"function"==typeof e&&"applyToOptions"in e}class na extends i6{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=e;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=e,Z("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return no(e)&&nn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[t]:i};l&&(h.offset=l);let d=function e(t,i){if(t)return"function"==typeof t?nn()?iP(t,i):"ease-out":iq(t)?nr(t):Array.isArray(t)?t.map(t=>e(t,i)||ns.easeOut):ns[t]}(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=e.animate(h,c);return p}(t,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=i3(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):i.startsWith("--")?t.style.setProperty(i,e):t.style[i]=e,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=io(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&nt())?(this.animation.timeline=e,en):t(this)}}let nl={anticipate:iK,backInOut:iz,circInOut:iG};class nu extends na{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in nl&&(e.ease=nl[e.ease])}(e),i4(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new i9({...s,autoplay:!1}),a=io(this.finishedTime??this.time);t.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let nh=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eO.test(e)||"0"===e)&&!e.startsWith("url(")),nd=new Set(["opacity","clipPath","filter","transform"]),nc=ne(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class np extends i6{constructor({autoplay:e=!0,delay:t=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=eq.now();const d={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||ev;this.keyframeResolver=new c(o,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;this.resolvedAt=eq.now(),!function(e,t,i,n){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=nh(r,t),a=nh(s,t);return q(o===a,`You are trying to animate ${t} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||no(i))&&n)}(e,r,s,o)&&((er.instantAnimations||!a)&&u?.(i3(e,i,t)),e[0]=e[e.length-1],ii(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},d=!l&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return nc()&&i&&nd.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(h)?new nu({...h,element:h.motionValue.owner.current}):new i9(h);d.finished.then(()=>this.notifyFinished()).catch(en),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),em=!0,eg(),ef(),em=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nm=e=>null!==e,nf={type:"spring",stiffness:500,damping:25,restSpeed:10},ng={type:"keyframes",duration:.8},nv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ny=(e,t,i,n={},r,s)=>a=>{let l=t9(n,e)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=io(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-h,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:r};!function({when:e,delay:t,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?ng:o.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:nf:nv)(e,d)),d.duration&&(d.duration=io(d.duration)),d.repeatDelay&&(d.repeatDelay=io(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(ii(d),0===d.delay&&(c=!0)),(er.instantAnimations||er.skipAnimations)&&(c=!0,ii(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!s&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"},n){let r=e.filter(nm),s=t&&"loop"!==i&&t%2==1?0:r.length-1;return r[s]}(d.keyframes,l);if(void 0!==e)return void ea.update(()=>{d.onUpdate(e),d.onComplete()})}return l.isSync?new i9(d):new np(d)};function nx(e,t,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;n&&(s=n);let l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(let t in a){let n=e.getValue(t,e.latestValues[t]??null),r=a[t];if(void 0===r||u&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(u,t))continue;let o={delay:i,...t9(s||{},t)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(r)&&r===h&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=e.props[t3];if(i){let e=window.MotionHandoffAnimation(i,t,ea);null!==e&&(o.startTime=e,d=!0)}}it(e,t),n.start(ny(t,n,r,e.shouldReduceMotion&&F.has(t)?{type:!1}:o,e,d));let c=n.animation;c&&l.push(c)}return o&&Promise.all(l).then(()=>{ea.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:n={},...r}=t8(e,t)||{};for(let t in r={...r,...i}){var s;let i=ie(s=r[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,e5(i))}}(e,o)})}),l}function nw(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nb(e,t,i={}){let n=t8(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nx(e,n,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(e,t,i=0,n=0,r=0,s=1,o){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(nb(l,t,{...o,delay:i+("function"==typeof n?0:n)+nw(e.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[e,t]="beforeChildren"===a?[s,o]:[o,s];return e().then(()=>t())}}function nT(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}let nP=tu.length,nS=[...tl].reverse(),nC=tl.length;function nM(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nE(){return{animate:nM(!0),whileInView:nM(),whileHover:nM(),whileTap:nM(),whileDrag:nM(),whileFocus:nM(),exit:nM()}}class nj{constructor(e){this.isMounted=!1,this.node=e}update(){}}let nk=0,nA={x:!1,y:!1};function nR(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}let nV=e=>
1"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nD(e){return{point:{x:e.pageX,y:e.pageY}}}function nL(e,t,i,n){return nR(e,t,e=>nV(e)&&i(e,nD(e)),n)}function nF(e){return e.max-e.min}function nO(e,t,i,n=.5){e.origin=n,e.originPoint=P(t.min,t.max,e.origin),e.scale=nF(i)/nF(t),e.translate=P(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nN(e,t,i,n){nO(e.x,t.x,i.x,n?n.originX:void 0),nO(e.y,t.y,i.y,n?n.originY:void 0)}function nI(e,t,i){e.min=i.min+t.min,e.max=e.min+nF(t)}function nB(e,t,i){e.min=t.min-i.min,e.max=e.min+nF(t)}function nU(e,t,i){nB(e.x,t.x,i.x),nB(e.y,t.y,i.y)}function n_(e){return[e("x"),e("y")]}let nW=({current:e})=>e?e.ownerDocument.defaultView:null,nH=(e,t)=>Math.abs(e-t);class n${constructor(e,t,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=nX(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(nH(e.x,t.x)**2+nH(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=eu;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=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nz(t,this.transformPagePoint),ea.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nX("pointercancel"===e.type?this.lastMoveEventInfo:nz(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),n&&n(e,s)},!nV(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const o=nz(nD(e),this.transformPagePoint),{point:a}=o,{timestamp:l}=eu;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=t;u&&u(e,nX(o,this.history)),this.removeListeners=is(nL(this.contextWindow,"pointermove",this.handlePointerMove),nL(this.contextWindow,"pointerup",this.handlePointerUp),nL(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),el(this.updatePoint)}}function nz(e,t){return t?{point:t(e.point)}:e}function nK(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nX({point:e},t){return{point:e,delta:nK(e,nY(t)),offset:nK(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,n=null,r=nY(e);for(;i>=0&&(n=e[i],!(r.timestamp-n.timestamp>io(.1)));)i--;if(!n)return{x:0,y:0};let s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,.1)}}function nY(e){return e[e.length-1]}function nG(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function nq(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function nZ(e,t,i){return{min:nJ(e,t),max:nJ(e,i)}}function nJ(e,t){return"number"==typeof e?e:e[t]||0}let nQ=new WeakMap;class n0{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(nD(e).point)},s=(e,t)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(nA[e])return null;else return nA[e]=!0,()=>{nA[e]=!1};return nA.x||nA.y?null:(nA.x=nA.y=!0,()=>{nA.x=nA.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(W.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];n&&(t=nF(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&ea.postRender(()=>r(e,t)),it(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&s(e,t)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>n_(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new n$(e,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:nW(this.visualElement)})}stop(e,t){let i=e||this.latestPointerEvent,n=t||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&&ea.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!n1(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?P(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?P(i,e,n.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&t5(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:r}){return{x:nG(e.x,i,r),y:nG(e.y,t,n)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nZ(e,"left","right"),y:nZ(e,"top","bottom")}}(t),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&n_(e=>{var t,n;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],n=this.constraints[e],r={},void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!t5(t))return!1;let n=t.current;Z(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(e,t,i){let n=L(e,i),{scroll:r}=t;return r&&(R(n.x,r.offset.x),R(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(e=r.layout.layoutBox,{x:nq(e.x,s.x),y:nq(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=T(e))}return o}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(n_(o=>{if(!n1(o,t,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[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(e,t){let i=this.getAxisMotionValue(e);return it(this.visualElement,e),i.start(ny(e,i,0,t,this.visualElement,!1))}stopAnimation(){n_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){n_(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){n_(t=>{let{drag:i}=this.getProps();if(!n1(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[t];r.set(e[t]-P(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!t5(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n_(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,r;let s,o,a,l=t.get();n[e]=(i={min:l,max:l},r=this.constraints[e],s=.5,o=nF(i),(a=nF(r))>o?s=iQ(r.min,r.max-o,i.min):o>a&&(s=iQ(i.min,i.max-a,r.min)),O(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.resolveConstraints(),n_(t=>{if(!n1(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:s}=this.constraints[t];i.set(P(r,s,n[t]))})}addListeners(){if(!this.visualElement.current)return;nQ.set(this.visualElement,this);let e=nL(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();t5(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ea.read(t);let r=nR(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(n_(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),n(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function n1(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let n2=e=>(t,i)=>{e&&ea.postRender(()=>e(t,i))};var n5=r;let n3={hasAnimatedSinceResize:!0,hasEverUpdated:!1},n7=!1;class n4 extends n5.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),i&&i.register&&n&&i.register(r),n7&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),n3.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,n7=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||ea.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),e7.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;n7=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function n6(e){let[t,i]=function(e=!0){let t=(0,r.useContext)(tq);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=t,o=(0,r.useId)();(0,r.useEffect)(()=>
1{if(e)return s(o)},[e]);let a=(0,r.useCallback)(()=>e&&n&&n(o),[o,n,e]);return!i&&n?[!1,a]:[!0]}(),n=(0,n5.useContext)(tB);return(0,tI.jsx)(n4,{...e,layoutGroup:n,switchLayoutGroup:(0,n5.useContext)(t7),isPresent:t,safeToRemove:i})}function n8(e){return"object"==typeof e&&null!==e}function n9(e){return n8(e)&&"ownerSVGElement"in e}e.s(["isSVGElement",()=>n9],889026);let re=(e,t)=>e.depth-t.depth;class rt{constructor(){this.children=[],this.isDirty=!1}add(e){eZ(this.children,e),this.isDirty=!0}remove(e){eJ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(re),this.isDirty=!1,this.children.forEach(e)}}let ri=["TopLeft","TopRight","BottomLeft","BottomRight"],rn=ri.length,rr=e=>"string"==typeof e?parseFloat(e):e,rs=e=>"number"==typeof e||H.test(e);function ro(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ra=ru(0,.5,iY),rl=ru(.5,.95,en);function ru(e,t,i){return n=>n<e?0:n>t?1:i(iQ(e,t,n))}function rh(e,t){e.min=t.min,e.max=t.max}function rd(e,t){rh(e.x,t.x),rh(e.y,t.y)}function rc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rp(e,t,i,n,r){return e-=t,e=n+1/i*(e-n),void 0!==r&&(e=n+1/r*(e-n)),e}function rm(e,t,[i,n,r],s,o){!function(e,t=0,i=1,n=.5,r,s=e,o=e){if(W.test(t)&&(t=parseFloat(t),t=P(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=P(s.min,s.max,n);e===s&&(a-=t),e.min=rp(e.min,t,i,a,r),e.max=rp(e.max,t,i,a,r)}(e,t[i],t[n],t[r],t.scale,s,o)}let rf=["x","scaleX","originX"],rg=["y","scaleY","originY"];function rv(e,t,i,n){rm(e.x,t,rf,i?i.x:void 0,n?n.x:void 0),rm(e.y,t,rg,i?i.y:void 0,n?n.y:void 0)}function ry(e){return 0===e.translate&&1===e.scale}function rx(e){return ry(e.x)&&ry(e.y)}function rw(e,t){return e.min===t.min&&e.max===t.max}function rb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rT(e,t){return rb(e.x,t.x)&&rb(e.y,t.y)}function rP(e){return nF(e.x)/nF(e.y)}function rS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rC{constructor(){this.members=[]}add(e){eZ(this.members,e),e.scheduleRender()}remove(e){if(eJ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rM=["","X","Y","Z"],rE=0;function rj(e,t,i,n){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function rk({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=rE++,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=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(rV),this.nodes.forEach(rB),this.nodes.forEach(rU),this.nodes.forEach(rD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rt)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eQ),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=n9(t)&&!(n9(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;ea.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,s;n=e,this.root.updateBlockedByResize=!0,i&&i(),t=eq.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(el(s),r(i-250))},ea.setup(s,!0),i=()=>el(s),n3.hasAnimatedSinceResize&&(n3.hasAnimatedSinceResize=!1,this.nodes.forEach(rI))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||rK,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rT(this.targetLayout,n),u=!t&&i;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t9(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||rI(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),el(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r_),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let n=i.props[t3];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ea,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(rF);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rO);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rN),this.nodes.forEach(rA),this.nodes.forEach(rR)):this.nodes.forEach(rO),this.clearAllSnapshots();let e=eq.now();eu.delta=O(0,1e3/60,e-eu.timestamp),eu.timestamp=e,eu.isProcessing=!0,eh.update.process(eu),eh.preRender.process(eu),eh.render.process(eu),eu.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e7.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rL),this.sharedNodes.forEach(rW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ea.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ea.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nF(this.snapshot.measuredBox.x)||nF(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rx(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||M(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),rG((t=n).x),rG(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return tt();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rZ))){let{scroll:e}=this.root;e&&(R(t.x,e.offset.x),R(t.y,e.offset.y))}return t}removeElementScroll(e){let t=tt();if(rd(t,e),this.scroll?.wasRoot)return t;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&&rd(t,e),R(t.x,r.offset.x),R(t.y,r.offset.y))}return t}applyTransform(e,t=!1){let i=tt();rd(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&D(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),M(n.latestValues)&&D(i,n.latestValues)}return M(this.latestValues)&&D(i,this.latestValues),i}removeTransform(e){let t=tt();rd(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!M(i.latestValues))continue;C(i.latestValues)&&i.updateSnapshot();let n=tt();rd(n,i.measurePageBox()),rv(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return M(this.latestValues)&&rv(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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!==eu.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||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=eu.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tt(),this.targetWithTransforms=tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,nI(o.x,a.x,l.x),nI(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rd(this.target,this.layout.layoutBox),A(this.target,this.targetDelta)):rd(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,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||C(this.parent.latestValues)||E(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(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tt(),this.relativeTargetOrigin=tt(),nU(this.relativeTargetOrigin,t,i),rd(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eu.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;rd(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,n=!1){let r,s,o=i.length;if(o){t.x=t.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&&D(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,A(e,s)),n&&M(r.latestValues)&&D(e,r.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tt());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rc(this.prevProjectionDelta.x,this.projectionDelta.x),rc(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nN(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rS(this.projectionDelta.x,this.prevProjectionDelta.x)&&rS(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=e9(),this.projectionDelta=e9(),this.projectionDeltaWithTransform=e9()}setAnimationOrigin(e,t=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=e9();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=tt(),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&&
1!0===this.options.crossfade&&!this.path.some(rz));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(rH(o.x,e.x,n),rH(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;nU(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,r$(p.x,m.x,f.x,g),r$(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,c=i,rw(u.x,c.x)&&rw(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=tt()),rd(i,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,i,n,r,s){r?(e.opacity=P(0,i.opacity??1,ra(n)),e.opacityExit=P(t.opacity??1,0,rl(n))):s&&(e.opacity=P(t.opacity??1,i.opacity??1,n));for(let r=0;r<rn;r++){let s=`border${ri[r]}Radius`,o=ro(t,s),a=ro(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rs(o)===rs(a)?(e[s]=Math.max(P(rr(o),rr(a),n),0),(W.test(a)||W.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||i.rotate)&&(e.rotate=P(t.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(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(el(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ea.update(()=>{var t,i,n;let r;n3.hasAnimatedSinceResize=!0,ia.layout++,this.motionValue||(this.motionValue=e5(0)),this.currentAnimation=(t=this.motionValue,i=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ia.layout--},onComplete:()=>{ia.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=eY(t)?t:e5(t)).start(ny("",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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:r}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&rq(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||tt();let t=nF(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=nF(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}rd(t,i),D(t,r),nN(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rC),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&rj("z",e,n,this.animationValues);for(let t=0;t<rM.length;t++)rj(`rotate${rM[t]}`,e,n,this.animationValues),rj(`skew${rM[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tJ(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tJ(t?.pointerEvents)||""),this.hasProjected&&!M(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let n="",r=e.x.translate/t.x,s=e.y.translate/t.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);
1i&&(s=i(r,s)),e.transform=s;let{x:o,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?e.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tS){if(void 0===r[t])continue;let{correct:i,applyTo:o,isCSSVariable:a}=tS[t],l="none"===s?r[t]:i(r[t],n);if(o){let t=o.length;for(let i=0;i<t;i++)e[o[i]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?tJ(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rF),this.root.sharedNodes.clear()}}}function rA(e){e.updateLayout()}function rR(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=e.layout,{animationType:r}=e.options,s=t.source!==e.layout.source;"size"===r?n_(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],r=nF(n);n.min=i[e].min,n.max=n.min+r}):rq(r,t.layoutBox,i)&&n_(n=>{let r=s?t.measuredBox[n]:t.layoutBox[n],o=nF(i[n]);r.max=r.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=e9();nN(o,i,t.layoutBox);let a=e9();s?nN(a,e.applyTransform(n,!0),t.measuredBox):nN(a,i,t.layoutBox);let l=!rx(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=tt();nU(o,t.layoutBox,r.layoutBox);let a=tt();nU(a,i,s.layoutBox),rT(o,a)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=o,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rV(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rL(e){e.clearSnapshot()}function rF(e){e.clearMeasurements()}function rO(e){e.isLayoutDirty=!1}function rN(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rB(e){e.resolveTargetDelta()}function rU(e){e.calcProjection()}function r_(e){e.resetSkewAndRotation()}function rW(e){e.removeLeadSnapshot()}function rH(e,t,i){e.translate=P(t.translate,0,i),e.scale=P(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function r$(e,t,i,n){e.min=P(t.min,i.min,n),e.max=P(t.max,i.max,n)}function rz(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rK={duration:.45,ease:[.4,0,.1,1]},rX=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rY=rX("applewebkit/")&&!rX("chrome/")?Math.round:en;function rG(e){e.min=rY(e.min),e.max=rY(e.max)}function rq(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rP(t)-rP(i)))}function rZ(e){return e!==e.root&&e.scroll?.wasRoot}let rJ=rk({attachResizeListener:(e,t)=>nR(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rQ={current:void 0},r0=rk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rQ.current){let e=new rJ({});e.mount(window),e.setOptions({layoutScroll:!0}),rQ.current=e}return rQ.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function r1(e,t,i){if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let r=i?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}function r2(e,t){let i=r1(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function r5(e){return!("touch"===e.pointerType||nA.x||nA.y)}function r3(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&ea.postRender(()=>r(t,nD(t)))}function r7(e){return n8(e)&&"offsetHeight"in e}e.s(["resolveElements",()=>r1],749652),e.s(["isHTMLElement",()=>r7],772846);let r4=(e,t)=>!!t&&(e===t||r4(e,t.parentElement)),r6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r8=new WeakSet;function r9(e){return t=>{"Enter"===t.key&&e(t)}}function se(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function st(e){return nV(e)&&!(nA.x||nA.y)}function si(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&ea.postRender(()=>r(t,nD(t)))}let sn=new WeakMap,sr=new WeakMap,ss=e=>{let t=sn.get(e.target);t&&t(e)},so=e=>{e.forEach(ss)},sa={some:0,all:1},sl=function(e,t){if("undefined"==typeof Proxy)return t6;let i=new Map,n=(i,n)=>t6(i,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,t6(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends nj{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>nb(e,t,i)));else if("string"==typeof t)n=nb(e,t,i);else{let r="function"==typeof t?t8(e,t,i.custom):t;n=Promise.all(nx(e,r,i))}return n.then(()=>
1{e.notify("AnimationComplete",t)})})(e,t,i))),i=nE(),n=!0,r=t=>(i,n)=>{let r=t8(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function s(s){let{props:o}=e,a=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<nP;e++){let n=tu[e],r=t.props[n];(ta(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},l=[],u=new Set,h={},d=1/0;for(let t=0;t<nC;t++){var c,p;let m=nS[t],f=i[m],g=void 0!==o[m]?o[m]:a[m],v=ta(g),y=m===s?f.isActive:null;!1===y&&(d=t);let x=g===a[m]&&g!==o[m]&&v;if(x&&n&&e.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===y||!g&&!f.prevProp||to(g)||"boolean"==typeof g)continue;let w=(c=f.prevProp,"string"==typeof(p=g)?p!==c:!!Array.isArray(p)&&!nT(p,c)),b=w||m===s&&f.isActive&&!x&&v||t>d&&v,T=!1,P=Array.isArray(g)?g:[g],S=P.reduce(r(m),{});!1===y&&(S={});let{prevResolvedValues:C={}}=f,M={...C,...S},E=t=>{b=!0,u.has(t)&&(T=!0,u.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in M){let t=S[e],i=C[e];if(!h.hasOwnProperty(e))(ie(t)&&ie(i)?nT(t,i):t===i)?void 0!==t&&u.has(e)?E(e):f.protectedKeys[e]=!0:null!=t?E(e):u.add(e)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),n&&e.blockInitialAnimation&&(b=!1);let j=x&&w,k=!j||T;b&&k&&l.push(...P.map(t=>{let i={type:m};if("string"==typeof t&&n&&!j&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,r=t8(n,t);if(n.enteringChildren&&r){let{delayChildren:t}=r.transition||{};i.delay=nw(n.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(u.size){let t={};if("boolean"!=typeof o.initial){let i=t8(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}u.forEach(i=>{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null}),l.push({animation:t})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,n){if(i[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),i[t].isActive=n;let r=s(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=nE()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();to(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends nj{constructor(){super(...arguments),this.id=nk++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends nj{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();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:sa[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=t?i:n;r&&r(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;sr.has(i)||sr.set(i,{});let n=sr.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(so,{root:e,...t})),n[r]}(a),sn.set(e,l),t.observe(e),()=>{sn.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends nj{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=r2(e,i),o=e=>{let n=e.currentTarget;if(!st(e))return;r8.add(n);let s=t(n,e),o=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),r8.has(n)&&r8.delete(n),st(e)&&"function"==typeof s&&s(e,{success:t})},a=e=>{o(e,n===window||n===document||i.useGlobalTarget||r4(n,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};
1return n.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",o,r),r7(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=r9(()=>{if(r8.has(i))return;se(i,"down");let e=r9(()=>{se(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>se(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)})(e,r)),r6.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(si(this.node,t,"Start"),(e,{success:t})=>si(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends nj{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=is(nR(this.node.current,"focus",()=>this.onFocus()),nR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nj{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=r2(e,i),o=e=>{if(!r5(e))return;let{target:i}=e,n=t(i,e);if("function"!=typeof n||!i)return;let s=e=>{r5(e)&&(n(e),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(e=>{e.addEventListener("pointerenter",o,r)}),s}(e,(e,t)=>(r3(this.node,t,"Start"),e=>r3(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends nj{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(e){this.session=new n$(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nW(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:n2(e),onStart:n2(t),onMove:i,onEnd:(e,t)=>{delete this.session,n&&ea.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=nL(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends nj{constructor(e){super(e),this.removeGroupControls=en,this.removeListeners=en,this.controls=new n0(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:r0,MeasureLayout:n6},layout:{ProjectionNode:r0,MeasureLayout:n6}},(e,t)=>tN(e)?new tF(t):new tE(t,{allowProjection:e!==r.Fragment}));e.s(["motion",()=>sl],846932)},437791,e=>{"use strict";let t,i;var n=e.i(843476),r=e.i(846932),s=e.i(486427),o=e.i(965566),a=e.i(271645),l=e.i(260830),u=e.i(287022);function h(e,t){let i,n=()=>{let{currentTime:n}=t,r=(null===n?0:n.value)/100;i!==r&&e(r),i=r};return u.frame.preUpdate(n,!0),()=>(0,u.cancelFrame)(n)}var d=e.i(930551),c=e.i(889026),p=e.i(749652);let m=new WeakMap,f=(e,t,i)=>(n,r)=>r&&r[0]?r[0][e+"Size"]:(0,c.isSVGElement)(n)&&"getBBox"in n?n.getBBox()[t]:n[i],g=f("inline","width","offsetWidth"),v=f("block","height","offsetHeight");function y({target:e,borderBoxSize:t}){m.get(e)?.forEach(i=>{i(e,{get width(){return g(e,t)},get height(){return v(e,t)}})})}function x(e){e.forEach(y)}let w=new Set;var b=e.i(783920),T=e.i(325791);let P=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),S={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function C(e,t,i,n){let r=i[t],{length:s,position:o}=S[t],a=r.current,l=i.time;r.current=e[`scroll${o}`],r.scrollLength=e[`scroll${s}`]-e[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,b.progress)(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:(0,T.velocityPerSecond)(r.current-a,u)}e.i(247167);var M=e.i(344230),E=e.i(515923),j=e.i(476959),k=e.i(772846);let A={start:0,center:.5,end:1};function R(e,t,i=0){let n=0;if(e in A&&(e=A[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?n=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?n=t/100*document.documentElement.clientWidth:e.endsWith("vh")?n=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(n=t*e),i+n}let V=[0,0],D=[[0,0],[1,1]],L={x:0,y:0},F=new WeakMap,O=new WeakMap,N=new WeakMap,I=e=>e===document.scrollingElement?window:e;function B(e,{container:n=document.scrollingElement,...r}={}){if(!n)return l.noop;let s=N.get(n);
1s||(s=new Set,N.set(n,s));let o=function(e,t,i,n={}){return{measure:t=>{!function(e,t=e,i){if(i.x.targetOffset=0,i.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=t===e?t.scrollWidth:t.clientWidth,i.y.targetLength=t===e?t.scrollHeight:t.clientHeight,i.x.containerLength=e.clientWidth,i.y.containerLength=e.clientHeight}(e,n.target,i),C(e,"x",i,t),C(e,"y",i,t),i.time=t,(n.offset||n.target)&&function(e,t,i){let{offset:n=D}=i,{target:r=e,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==e?function(e,t){let i={x:0,y:0},n=e;for(;n&&n!==t;)if((0,k.isHTMLElement)(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let e=n.getBoundingClientRect(),t=(n=n.parentElement).getBoundingClientRect();i.x+=e.left-t.left,i.y+=e.top-t.top}else if(n instanceof SVGGraphicsElement){let{x:e,y:t}=n.getBBox();i.x+=e,i.y+=t;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,e):L,l=r===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let h=!t[s].interpolate,d=n.length;for(let e=0;e<d;e++){let i=function(e,t,i,n){let r=Array.isArray(e)?e:V,s=0;return"number"==typeof e?r=[e,e]:"string"==typeof e&&(r=(e=e.trim()).includes(" ")?e.split(" "):[e,A[e]?e:"0"]),(s=R(r[0],i,n))-R(r[1],t)}(n[e],u[o],l[o],a[s]);h||i===t[s].interpolatorOffsets[e]||(h=!0),t[s].offset[e]=i}h&&(t[s].interpolate=(0,M.interpolate)(t[s].offset,(0,E.defaultOffset)(n),{clamp:!1}),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=(0,j.clamp)(0,1,t[s].interpolate(t[s].current))}(e,i,n)},notify:()=>t(i)}}(n,e,{time:0,x:P(),y:P()},r);if(s.add(o),!F.has(n)){let e,r=()=>{for(let e of s)e.measure(u.frameData.timestamp);u.frame.preUpdate(o)},o=()=>{for(let e of s)e.notify()},a=()=>u.frame.read(r);F.set(n,a);let l=I(n);window.addEventListener("resize",a,{passive:!0}),n!==document.documentElement&&O.set(n,"function"==typeof n?(w.add(n),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};w.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{w.delete(n),w.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(t||"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x)),(e=(0,p.resolveElements)(n)).forEach(e=>{let i=m.get(e);i||(i=new Set,m.set(e,i)),i.add(a),t?.observe(e)}),()=>{e.forEach(e=>{let i=m.get(e);i?.delete(a),i?.size||t?.unobserve(e)})})),l.addEventListener("scroll",a,{passive:!0}),a()}let a=F.get(n);return u.frame.read(a,!1,!0),()=>{(0,u.cancelFrame)(a);let e=N.get(n);if(!e||(e.delete(o),e.size))return;let t=F.get(n);F.delete(n),t&&(I(n).removeEventListener("scroll",t),O.get(n)?.(),window.removeEventListener("resize",t))}}let U=new Map;function _({source:e,container:t,...i}){var n;let r,s,{axis:o}=i;e&&(t=e);let a=U.get(t)??new Map;U.set(t,a);let l=i.target??"self",u=a.get(l)??{},h=o+(i.offset??[]).join(",");return u[h]||(u[h]=!i.target&&(0,d.supportsScrollTimeline)()?new ScrollTimeline({source:t,axis:o}):(n={container:t,...i},r={value:0},s=B(e=>{r.value=100*e[n.axis].progress},n),{currentTime:r,cancel:s})),u[h]}var W=e.i(947414),H=e.i(674008);let $=()=>({scrollX:(0,s.motionValue)(0),scrollY:(0,s.motionValue)(0),scrollXProgress:(0,s.motionValue)(0),scrollYProgress:(0,s.motionValue)(0)}),z=e=>!!e&&!e.current;var K=e.i(737806);function X(e,t){let i=function(e){let t=(0,W.useConstant)(()=>(0,s.motionValue)(e)),{isStatic:i}=(0,a.useContext)(K.MotionConfigContext);if(i){let[,i]=(0,a.useState)(e);(0,a.useEffect)(()=>t.on("change",i),[])}return t}(t()),n=()=>i.set(t());return n(),(0,H.useIsomorphicLayoutEffect)(()=>{let t=()=>u.frame.preRender(n,!1,!0),i=e.map(e=>e.on("change",t));return()=>{i.forEach(e=>e()),(0,u.cancelFrame)(n)}}),i}function Y(e,t,i,n){if("function"==typeof e){let t;return s.collectMotionValues.current=[],e(),t=X(s.collectMotionValues.current,e),s.collectMotionValues.current=void 0,t}let r="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),i=t?0:-1,n=e[0+i],r=e[1+i],s=e[2+i],o=e[3+i],a=(0,M.interpolate)(r,s,o);return t?a(n):a}(t,i,n);return Array.isArray(e)?G(e,r):G([e],([e])=>r(e))}function G(e,t){let i=(0,W.useConstant)(()=>[]);return X(e,()=>{i.length=0;let n=e.length;for(let t=0;t<n;t++)i[t]=e[t].get();return t(i)})}function q({children:e}){let t=(0,a.useRef)(null),{scrollYProgress:i}=function({container:e,target:t,...i}={}){let n=(0,W.useConstant)($),r=(0,a.useRef)(null),s=(0,a.useRef)(!1),u=(0,a.useCallback)(()=>(r.current=function(e,{axis:t="y",container:i=document.scrollingElement,...n}={}){var r,s;let o;if(!i)return l.noop;let a={axis:t,container:i,...n};return"function"==typeof e?(r=e,s=a,2===r.length?B(e=>{r(e[s.axis].progress,e)},s):h(r,_(s))):(o=_(a),e.attachTimeline({timeline:a.target?void 0:o,observe:e=>(e.pause(),h(t=>{e.time=e.iterationDuration*t},o))}))}((e,{x:t,y:i})=>{n.scrollX.set(t.current),n.scrollXProgress.set(t.progress),n.scrollY.set(i.current),n.scrollYProgress.set(i.progress)},{...i,container:e?.current||void 0,target:t?.current||void 0}),()=>{r.current?.()}),[e,t,JSON.stringify(i.offset)]);return(0,H.useIsomorphicLayoutEffect)(()=>
1{if(s.current=!1,!(z(e)||z(t)))return u();s.current=!0},[u]),(0,a.useEffect)(()=>s.current?((0,o.invariant)(!z(e),"Container ref is defined but not hydrated","use-scroll-ref"),(0,o.invariant)(!z(t),"Target ref is defined but not hydrated","use-scroll-ref"),u()):void 0,[u]),n}({target:t,offset:["start","500px"]}),s=Y(i,[1,0],["80px","95px"]),u=Y(i,[0,1],["#F6F5F7","#ffff"]),d=Y(i,[0,1],["0 0px 0px 0px rgba(79, 70, 229, 0), 0 2px 4px 0px rgba(79, 70, 229, 0)","0 10px 15px -2px rgba(30, 27, 75, 0.02), 0 4px 6px -2px rgba(30, 27, 75, 0.02)"]);return(0,n.jsx)(r.motion.div,{ref:t,style:{height:s,backgroundColor:u,boxShadow:d},className:"fixed w-full top-0 left-0 h-20 py-2 flex items-center z-25",children:e})}e.s(["default",()=>q],437791)},323631,e=>{"use strict";var t=e.i(843476),i=e.i(618566),n=e.i(647163),r=e.i(522016);e.i(908753);var s=e.i(484927);function o({href:e,children:o,className:a,textElement:l=s.Text18,target:u}){let h=(0,i.usePathname)();return console.log(h),(0,t.jsx)(r.default,{href:"/en"==h||"/"==h?`${e}`:`/${e}`,target:u,children:(0,t.jsx)(l,{className:(0,n.cn)("font-NotoSansBold text-brand-carbon_500 hover:text-brand-primary transition-200 cursor-pointer",a),children:o})})}e.s(["ScroollLink",()=>o])},351588,e=>{"use strict";let t,i,n;var r=e.i(843476),s=e.i(271645),o=e.i(981140),a=e.i(820783),l=e.i(30030),u=e.i(369340),h=e.i(248425),d=e.i(75830),c=e.i(586318),p=e.i(726330),m=e.i(303536),f=e.i(765491),g=e.i(610772),v=e.i(853660),y=e.i(774606),x=e.i(296626),w=e.i(842727),b=Symbol("radix.slottable");function T(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}var P=e.i(30207),S=e.i(186312),C=e.i(985369),M=["Enter"," "],E=["ArrowUp","PageDown","End"],j=["ArrowDown","PageUp","Home",...E],k={ltr:[...M,"ArrowRight"],rtl:[...M,"ArrowLeft"]},A={ltr:["ArrowLeft"],rtl:["ArrowRight"]},R="Menu",[V,D,L]=(0,d.createCollection)(R),[F,O]=(0,l.createContextScope)(R,[L,v.createPopperScope,w.createRovingFocusGroupScope]),N=(0,v.createPopperScope)(),I=(0,w.createRovingFocusGroupScope)(),[B,U]=F(R),[_,W]=F(R),H=e=>{let{__scopeMenu:t,open:i=!1,children:n,dir:o,onOpenChange:a,modal:l=!0}=e,u=N(t),[h,d]=s.useState(null),p=s.useRef(!1),m=(0,P.useCallbackRef)(a),f=(0,c.useDirection)(o);return s.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,r.jsx)(v.Root,{...u,children:(0,r.jsx)(B,{scope:t,open:i,onOpenChange:m,content:h,onContentChange:d,children:(0,r.jsx)(_,{scope:t,onClose:s.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:f,modal:l,children:n})})})};H.displayName=R;var $=s.forwardRef((e,t)=>{let{__scopeMenu:i,...n}=e,s=N(i);return(0,r.jsx)(v.Anchor,{...s,...n,ref:t})});$.displayName="MenuAnchor";var z="MenuPortal",[K,X]=F(z,{forceMount:void 0}),Y=e=>{let{__scopeMenu:t,forceMount:i,children:n,container:s}=e,o=U(z,t);return(0,r.jsx)(K,{scope:t,forceMount:i,children:(0,r.jsx)(x.Presence,{present:i||o.open,children:(0,r.jsx)(y.Portal,{asChild:!0,container:s,children:n})})})};Y.displayName=z;var G="MenuContent",[q,Z]=F(G),J=s.forwardRef((e,t)=>{let i=X(G,e.__scopeMenu),{forceMount:n=i.forceMount,...s}=e,o=U(G,e.__scopeMenu),a=W(G,e.__scopeMenu);return(0,r.jsx)(V.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(x.Presence,{present:n||o.open,children:(0,r.jsx)(V.Slot,{scope:e.__scopeMenu,children:a.modal?(0,r.jsx)(Q,{...s,ref:t}):(0,r.jsx)(ee,{...s,ref:t})})})})}),Q=s.forwardRef((e,t)=>{let i=U(G,e.__scopeMenu),n=s.useRef(null),l=(0,a.useComposedRefs)(t,n);return s.useEffect(()=>{let e=n.current;if(e)return(0,S.hideOthers)(e)},[]),(0,r.jsx)(ei,{...e,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),ee=s.forwardRef((e,t)=>
1{let i=U(G,e.__scopeMenu);return(0,r.jsx)(ei,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})}),et=((n=s.forwardRef((e,t)=>{let{children:i,...n}=e;if(s.isValidElement(i)){var r;let e,o,l=(r=i,(o=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.ref:(o=(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.props.ref:r.props.ref||r.ref),u=function(e,t){let i={...t};for(let n in t){let r=e[n],s=t[n];/^on[A-Z]/.test(n)?r&&s?i[n]=(...e)=>{let t=s(...e);return r(...e),t}:r&&(i[n]=r):"style"===n?i[n]={...r,...s}:"className"===n&&(i[n]=[r,s].filter(Boolean).join(" "))}return{...e,...i}}(n,i.props);return i.type!==s.Fragment&&(u.ref=t?(0,a.composeRefs)(t,l):l),s.cloneElement(i,u)}return s.Children.count(i)>1?s.Children.only(null):null})).displayName="MenuContent.ScrollLock.SlotClone",t=n,(i=s.forwardRef((e,i)=>{let{children:n,...o}=e,a=s.Children.toArray(n),l=a.find(T);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,r.jsx)(t,{...o,ref:i,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,r.jsx)(t,{...o,ref:i,children:n})})).displayName="MenuContent.ScrollLock.Slot",i),ei=s.forwardRef((e,t)=>{let{__scopeMenu:i,loop:n=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:h,disableOutsidePointerEvents:d,onEntryFocus:c,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:b,onDismiss:T,disableOutsideScroll:P,...S}=e,M=U(G,i),k=W(G,i),A=N(i),R=I(i),V=D(i),[L,F]=s.useState(null),O=s.useRef(null),B=(0,a.useComposedRefs)(t,O,M.onContentChange),_=s.useRef(0),H=s.useRef(""),$=s.useRef(0),z=s.useRef(null),K=s.useRef("right"),X=s.useRef(0),Y=P?C.RemoveScroll:s.Fragment;s.useEffect(()=>()=>window.clearTimeout(_.current),[]),(0,m.useFocusGuards)();let Z=s.useCallback(e=>{var t,i;return K.current===z.current?.side&&(t=e,!!(i=z.current?.area)&&function(e,t){let{x:i,y:n}=e,r=!1;for(let e=0,s=t.length-1;e<t.length;s=e++){let o=t[e],a=t[s],l=o.x,u=o.y,h=a.x,d=a.y;u>n!=d>n&&i<(h-l)*(n-u)/(d-u)+l&&(r=!r)}return r}({x:t.clientX,y:t.clientY},i))},[]);return(0,r.jsx)(q,{scope:i,searchRef:H,onItemEnter:s.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),onItemLeave:s.useCallback(e=>{Z(e)||(O.current?.focus(),F(null))},[Z]),onTriggerLeave:s.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),pointerGraceTimerRef:$,onPointerGraceIntentChange:s.useCallback(e=>{z.current=e},[]),children:(0,r.jsx)(Y,{...P?{as:et,allowPinchZoom:!0}:void 0,children:(0,r.jsx)(f.FocusScope,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.composeEventHandlers)(u,e=>{e.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:(0,r.jsx)(p.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:b,onDismiss:T,children:(0,r.jsx)(w.Root,{asChild:!0,...R,dir:k.dir,orientation:"vertical",loop:n,currentTabStopId:L,onCurrentTabStopIdChange:F,onEntryFocus:(0,o.composeEventHandlers)(c,e=>{k.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,r.jsx)(v.Content,{role:"menu","aria-orientation":"vertical","data-state":ej(M.open),"data-radix-menu-content":"",dir:k.dir,...A,...S,ref:B,style:{outline:"none",...S.style},onKeyDown:(0,o.composeEventHandlers)(S.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,i=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;if(t){var r;let t,s,o,a,l,u;"Tab"===e.key&&e.preventDefault(),!i&&n&&(r=e.key,t=H.current+r,s=V().filter(e=>!e.disabled),o=document.activeElement,a=s.find(e=>e.ref.current===o)?.textValue,l=function(e,t,i){var n;let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,s=i?e.indexOf(i):-1,o=(n=Math.max(s,0),e.map((t,i)=>e[(n+i)%e.length]));1===r.length&&(o=o.filter(e=>e!==i));let a=o.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return a!==i?a:void 0}(s.map(e=>e.textValue),t,a),u=s.find(e=>e.textValue===l)?.ref.current,function e(t){H.current=t,window.clearTimeout(_.current),""!==t&&(_.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>
1u.focus()))}let s=O.current;if(e.target!==s||!j.includes(e.key))return;e.preventDefault();let o=V().filter(e=>!e.disabled).map(e=>e.ref.current);E.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let i of e)if(i===t||(i.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,o.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(_.current),H.current="")}),onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eR(e=>{let t=e.target,i=X.current!==e.clientX;e.currentTarget.contains(t)&&i&&(K.current=e.clientX>X.current?"right":"left",X.current=e.clientX)}))})})})})})})});J.displayName=G;var en=s.forwardRef((e,t)=>{let{__scopeMenu:i,...n}=e;return(0,r.jsx)(h.Primitive.div,{role:"group",...n,ref:t})});en.displayName="MenuGroup";var er=s.forwardRef((e,t)=>{let{__scopeMenu:i,...n}=e;return(0,r.jsx)(h.Primitive.div,{...n,ref:t})});er.displayName="MenuLabel";var es="MenuItem",eo="menu.itemSelect",ea=s.forwardRef((e,t)=>{let{disabled:i=!1,onSelect:n,...l}=e,u=s.useRef(null),d=W(es,e.__scopeMenu),c=Z(es,e.__scopeMenu),p=(0,a.useComposedRefs)(t,u),m=s.useRef(!1);return(0,r.jsx)(el,{...l,ref:p,disabled:i,onClick:(0,o.composeEventHandlers)(e.onClick,()=>{let e=u.current;if(!i&&e){let t=new CustomEvent(eo,{bubbles:!0,cancelable:!0});e.addEventListener(eo,e=>n?.(e),{once:!0}),(0,h.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?m.current=!1:d.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),m.current=!0},onPointerUp:(0,o.composeEventHandlers)(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==c.searchRef.current;i||t&&" "===e.key||M.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ea.displayName=es;var el=s.forwardRef((e,t)=>{let{__scopeMenu:i,disabled:n=!1,textValue:l,...u}=e,d=Z(es,i),c=I(i),p=s.useRef(null),m=(0,a.useComposedRefs)(t,p),[f,g]=s.useState(!1),[v,y]=s.useState("");return s.useEffect(()=>{let e=p.current;e&&y((e.textContent??"").trim())},[u.children]),(0,r.jsx)(V.ItemSlot,{scope:i,disabled:n,textValue:l??v,children:(0,r.jsx)(w.Item,{asChild:!0,...c,focusable:!n,children:(0,r.jsx)(h.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...u,ref:m,onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eR(e=>{n?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eR(e=>d.onItemLeave(e))),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>g(!0)),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>g(!1))})})})}),eu=s.forwardRef((e,t)=>{let{checked:i=!1,onCheckedChange:n,...s}=e;return(0,r.jsx)(ev,{scope:e.__scopeMenu,checked:i,children:(0,r.jsx)(ea,{role:"menuitemcheckbox","aria-checked":ek(i)?"mixed":i,...s,ref:t,"data-state":eA(i),onSelect:(0,o.composeEventHandlers)(s.onSelect,()=>n?.(!!ek(i)||!i),{checkForDefaultPrevented:!1})})})});eu.displayName="MenuCheckboxItem";var eh="MenuRadioGroup",[ed,ec]=F(eh,{value:void 0,onValueChange:()=>{}}),ep=s.forwardRef((e,t)=>{let{value:i,onValueChange:n,...s}=e,o=(0,P.useCallbackRef)(n);return(0,r.jsx)(ed,{scope:e.__scopeMenu,value:i,onValueChange:o,children:(0,r.jsx)(en,{...s,ref:t})})});ep.displayName=eh;var em="MenuRadioItem",ef=s.forwardRef((e,t)=>{let{value:i,...n}=e,s=ec(em,e.__scopeMenu),a=i===s.value;return(0,r.jsx)(ev,{scope:e.__scopeMenu,checked:a,children:(0,r.jsx)(ea,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":eA(a),onSelect:(0,o.composeEventHandlers)(n.onSelect,()=>s.onValueChange?.(i),{checkForDefaultPrevented:!1})})})});ef.displayName=em;var eg="MenuItemIndicator",[ev,ey]=F(eg,{checked:!1}),ex=s.forwardRef((e,t)=>{let{__scopeMenu:i,forceMount:n,...s}=e,o=ey(eg,i);return(0,r.jsx)(x.Presence,{present:n||ek(o.checked)||!0===o.checked,children:(0,r.jsx)(h.Primitive.span,{...s,ref:t,"data-state":eA(o.checked)})})});ex.displayName=eg;var ew=s.forwardRef((e,t)=>{let{__scopeMenu:i,...n}=e;return(0,r.jsx)(h.Primitive.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});ew.displayName="MenuSeparator";var eb=s.forwardRef((e,t)=>
1{let{__scopeMenu:i,...n}=e,s=N(i);return(0,r.jsx)(v.Arrow,{...s,...n,ref:t})});eb.displayName="MenuArrow";var[eT,eP]=F("MenuSub"),eS="MenuSubTrigger",eC=s.forwardRef((e,t)=>{let i=U(eS,e.__scopeMenu),n=W(eS,e.__scopeMenu),l=eP(eS,e.__scopeMenu),u=Z(eS,e.__scopeMenu),h=s.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:c}=u,p={__scopeMenu:e.__scopeMenu},m=s.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return s.useEffect(()=>m,[m]),s.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),c(null)}},[d,c]),(0,r.jsx)($,{asChild:!0,...p,children:(0,r.jsx)(el,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":l.contentId,"data-state":ej(i.open),...e,ref:(0,a.composeRefs)(t,l.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eR(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||i.open||h.current||(u.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{i.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eR(e=>{m();let t=i.content?.getBoundingClientRect();if(t){let n=i.content?.dataset.side,r="right"===n,s=t[r?"left":"right"],o=t[r?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(r?-5:5),y:e.clientY},{x:s,y:t.top},{x:o,y:t.top},{x:o,y:t.bottom},{x:s,y:t.bottom}],side:n}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;e.disabled||r&&" "===t.key||k[n.dir].includes(t.key)&&(i.onOpenChange(!0),i.content?.focus(),t.preventDefault())})})})});eC.displayName=eS;var eM="MenuSubContent",eE=s.forwardRef((e,t)=>{let i=X(G,e.__scopeMenu),{forceMount:n=i.forceMount,...l}=e,u=U(G,e.__scopeMenu),h=W(G,e.__scopeMenu),d=eP(eM,e.__scopeMenu),c=s.useRef(null),p=(0,a.useComposedRefs)(t,c);return(0,r.jsx)(V.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(x.Presence,{present:n||u.open,children:(0,r.jsx)(V.Slot,{scope:e.__scopeMenu,children:(0,r.jsx)(ei,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:p,align:"start",side:"rtl"===h.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{h.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.composeEventHandlers)(e.onEscapeKeyDown,e=>{h.onClose(),e.preventDefault()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),i=A[h.dir].includes(e.key);t&&i&&(u.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function ej(e){return e?"open":"closed"}function ek(e){return"indeterminate"===e}function eA(e){return ek(e)?"indeterminate":e?"checked":"unchecked"}function eR(e){return t=>"mouse"===t.pointerType?e(t):void 0}eE.displayName=eM;var eV="DropdownMenu",[eD,eL]=(0,l.createContextScope)(eV,[O]),eF=O(),[eO,eN]=eD(eV),eI=e=>{let{__scopeDropdownMenu:t,children:i,dir:n,open:o,defaultOpen:a,onOpenChange:l,modal:h=!0}=e,d=eF(t),c=s.useRef(null),[p,m]=(0,u.useControllableState)({prop:o,defaultProp:a??!1,onChange:l,caller:eV});return(0,r.jsx)(eO,{scope:t,triggerId:(0,g.useId)(),triggerRef:c,contentId:(0,g.useId)(),open:p,onOpenChange:m,onOpenToggle:s.useCallback(()=>m(e=>!e),[m]),modal:h,children:(0,r.jsx)(H,{...d,open:p,onOpenChange:m,dir:n,modal:h,children:i})})};eI.displayName=eV;var eB="DropdownMenuTrigger",eU=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,disabled:n=!1,...s}=e,l=eN(eB,i),u=eF(i);return(0,r.jsx)($,{asChild:!0,...u,children:(0,r.jsx)(h.Primitive.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:(0,a.composeRefs)(t,l.triggerRef),onPointerDown:(0,o.composeEventHandlers)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>
1{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eU.displayName=eB;var e_=e=>{let{__scopeDropdownMenu:t,...i}=e,n=eF(t);return(0,r.jsx)(Y,{...n,...i})};e_.displayName="DropdownMenuPortal";var eW="DropdownMenuContent",eH=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,a=eN(eW,i),l=eF(i),u=s.useRef(!1);return(0,r.jsx)(J,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...n,ref:t,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{u.current||a.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,i=0===t.button&&!0===t.ctrlKey,n=2===t.button||i;(!a.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eH.displayName=eW,s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(en,{...s,...n,ref:t})}).displayName="DropdownMenuGroup";var e$=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(er,{...s,...n,ref:t})});e$.displayName="DropdownMenuLabel";var ez=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(ea,{...s,...n,ref:t})});ez.displayName="DropdownMenuItem",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(eu,{...s,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(ep,{...s,...n,ref:t})}).displayName="DropdownMenuRadioGroup",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(ef,{...s,...n,ref:t})}).displayName="DropdownMenuRadioItem",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(ex,{...s,...n,ref:t})}).displayName="DropdownMenuItemIndicator";var eK=s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(ew,{...s,...n,ref:t})});eK.displayName="DropdownMenuSeparator",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(eb,{...s,...n,ref:t})}).displayName="DropdownMenuArrow",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(eC,{...s,...n,ref:t})}).displayName="DropdownMenuSubTrigger",s.forwardRef((e,t)=>{let{__scopeDropdownMenu:i,...n}=e,s=eF(i);return(0,r.jsx)(eE,{...s,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent",e.i(678784),e.i(233565),(0,e.i(475254).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var eX=e.i(647163);function eY({...e}){return(0,r.jsx)(eI,{"data-slot":"dropdown-menu",...e})}function eG({...e}){return(0,r.jsx)(eU,{"data-slot":"dropdown-menu-trigger",...e})}function eq({className:e,sideOffset:t=4,...i}){return(0,r.jsx)(e_,{children:(0,r.jsx)(eH,{"data-slot":"dropdown-menu-content",sideOffset:t,className:(0,eX.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md","border-brand-carbon_200",e),...i})})}function eZ({className:e,inset:t,variant:i="default",...n}){return(0,r.jsx)(ez,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":i,className:(0,eX.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function eJ({className:e,inset:t,...i}){return(0,r.jsx)(e$,{"data-slot":"dropdown-menu-label","data-inset":t,className:(0,eX.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...i})}function eQ({className:e,...t}){return(0,r.jsx)(eK,{"data-slot":"dropdown-menu-separator",className:(0,eX.cn)("bg-border -mx-1 my-1 h-px",e),...t})}e.i(908753);var e0=e.i(484927);function e1({children:e,trigger:t=(0,r.jsx)("div",{children:"Open"}),label:i,classNameTrigger:n,classNameContainer:s,setIsOpen:o}){return(0,r.jsxs)(eY,{onOpenChange:o,children:[(0,r.jsx)(eG,{className:(0,eX.cn)("",n),children:t}),(0,r.jsxs)(eq,{className:(0,eX.cn)("bg-white rounded-xl spave py-4 overflow-hidden px-0",s),children:[i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eJ,{children:i}),(0,r.jsx)(eQ,{})]}),e]})]})}e.s(["DropdownItem",0,({children:e,onClick:t})=>(0,r.jsx)(eZ,{className:"group hover:bg-brand-primary hover:text-white transition-200 cursor-pointer px-5",onClick:t,children:(0,r.jsx)(e0.Text14,{className:"w-full",children:e})}),"default",()=>e1],351588)},785782,e=>{"use strict";var t=e.i(843476),i=e.i(647163);function n({className:e="stroke-black stroke-2"}){return(0,t.jsx)("svg",{className:(0,i.cn)("",e),viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsxs)("g",{clipPath:"url(#clip0_189_728)",children:[(0,t.jsx)("path",{d:"M28.0059 21.0803L24.8088 8.81977C24.7506 8.50336 24.6725 8.19094 24.575 7.88436V7.85095C24.5416 7.78413 24.5416 7.71732 24.5082 7.6505C23.8295 5.68306 22.5308 3.98893 20.8072 2.8226C19.0835 1.65627 17.0279
11.08071 14.9492 1.18238C12.8705 1.28406 10.8809 2.05748 9.27932 3.38646C7.6777 4.71544 6.55055 6.52823 6.06718 8.55251C6.06718 8.58592 6.03377 8.61932 6.03377 8.68614L2.98366 21.1472C2.90789 21.4404 2.89956 21.747 2.95929 22.0439C3.01901 22.3408 3.14525 22.6203 3.32851 22.8615C3.51176 23.1026 3.74728 23.2991 4.01736 23.4361C4.28745 23.5732 4.58507 23.6472 4.88789 23.6527H26.1017C26.4089 23.6415 26.7097 23.5612 26.9816 23.4178C27.2536 23.2745 27.4898 23.0718 27.6727 22.8247C27.8556 22.5776 27.9805 22.2925 28.0382 21.9905C28.0959 21.6885 28.0849 21.3775 28.0059 21.0803Z",strokeMiterlimit:"10"}),(0,t.jsx)("path",{d:"M12.3047 23.6191V23.7862C12.3047 25.1241 12.8362 26.4072 13.7822 27.3532C14.7282 28.2992 16.0113 28.8307 17.3492 28.8307C18.6871 28.8307 19.9702 28.2992 20.9163 27.3532C21.8623 26.4072 22.3938 25.1241 22.3938 23.7862V23.6191H12.3047Z",strokeMiterlimit:"10"})]})})}var r=e.i(351588),s=e.i(271645),o=e.i(798404),a=e.i(349539),l=e.i(805195),u=e.i(369638),h=e.i(558425),d=e.i(846696),c=e.i(759421),p=e.i(173146),m=e.i(978655);e.i(908753);var f=e.i(484927),g=e.i(522016);function v({locale:e,token:i}
1){let[l,u]=(0,s.useTransition)(),[v,x]=(0,s.useState)(!1),[w,b]=(0,s.useState)([]);return(0,s.useEffect)(()=>{v&&u(async()=>{let t=[];t.push(new o.default("5")),t.push(new a.default("1"));try{let n=new h.Repository(e,i),r=await n.notifications.notifications(t);b(r.result)}catch(e){d.toast.error((0,c.messageError)(e),{description:"error"})}})},[v]),(0,t.jsxs)(r.default,{setIsOpen:x,classNameContainer:"w-96",trigger:(0,t.jsx)("div",{className:"group cursor-pointer",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n,{className:"w-7 h-7 stroke-black stroke-3 group-hover:stroke-brand-primary transition-200 scale-x-[-1]"}),(0,t.jsx)(p.AppContextProvider,{children:(0,t.jsx)(y,{locale:e,token:i})})]})}),children:[w.map((n,s)=>(0,t.jsx)(r.DropdownItem,{children:(0,t.jsx)(m.CardNotificationNav,{locale:e,token:i,notification:n})},s)),(0,t.jsx)(r.DropdownItem,{children:(0,t.jsx)(g.default,{href:"/dashboard/notifications",children:(0,t.jsx)(f.Text12,{className:"text-center font-NotoSansSemiBold w-full py-2",children:"Ver más notificaciones"})})})]})}let y=(0,s.memo)(({locale:e,token:i})=>{let{isRefreshNotification:n,ActiveRefreshNotification:r}=(0,s.useContext)(p.AppContext),[m,f]=(0,s.useState)(!1),[g,v]=(0,s.useState)(0),y=(0,s.useRef)(g);return((0,s.useEffect)(()=>{y.current=g,r()},[g]),(0,s.useEffect)(()=>{let e=()=>{v(y.current+1)};e();let t=setInterval(e,1e4);return()=>{clearInterval(t)}},[]),(0,s.useEffect)(()=>{(async()=>{try{let t=[];t.push(new o.default("1")),t.push(new a.default("1")),t.push(new l.default([`${u.default.created}`,`${u.default.sent}`]));let n=new h.Repository(e,i);(await n.notifications.notifications(t)).result.length>0?f(!0):f(!1)}catch(e){d.toast.error((0,c.messageError)(e),{description:"error"})}})()},[n]),m)?(0,t.jsxs)("span",{className:"absolute flex size-3 top-0 right-0",children:[(0,t.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-brand-primary opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex size-3 rounded-full bg-brand-primary"})]}):(0,t.jsx)(t.Fragment,{})});e.s(["default",()=>v],785782)},379890,e=>{"use strict";var t=e.i(843476),i=e.i(522016),n=e.i(351588),r=e.i(314239),s=e.i(217255),o=e.i(657688),a=e.i(948148);function l({session:e}){let l=(0,a.useTranslations)("NavbarLinks");return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(n.default,{trigger:(0,t.jsx)("div",{className:"relative bg-brand-primary rounded-[5px] flex items-center justify-center h-12 w-12 hover:bg-brand-secondary transition-200 border border-brand-secondary hover:border-brand-secondary_dark overflow-hidden cursor-pointer",children:e&&e.user.urlImage?(0,t.jsx)(o.default,{src:e.user.urlImage,alt:"profile-pic",fill:!0,style:{objectFit:"cover"}}):(0,t.jsx)(r.default,{className:"h-7 w-7 stroke-white"})}),children:[(0,t.jsx)(i.default,{href:"/dashboard",children:(0,t.jsx)(n.DropdownItem,{children:l("myProfile")})}),(0,t.jsx)(n.DropdownItem,{onClick:()=>(0,s.signOut)({callbackUrl:"/login"}),children:l("logOut")})]})})}e.s(["default",()=>l])},492161,e=>{"use strict";let t=(0,e.i(475254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",()=>t],492161)},852917,e=>{"use strict";var t=e.i(843476),i=e.i(326999),n=e.i(995926),r=e.i(647163);function s({...e}){return(0,t.jsx)(i.Root,{"data-slot":"sheet",...e})}function o({...e}){return(0,t.jsx)(i.Trigger,{"data-slot":"sheet-trigger",...e})}function a({...e}){return(0,t.jsx)(i.Portal,{"data-slot":"sheet-portal",...e})}function l({className:e,...n}){return(0,t.jsx)(i.Overlay,{"data-slot":"sheet-overlay",className:(0,r.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function u({className:e,children:s,side:o="right",...u}){return(0,t.jsxs)(a,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(i.Content,{"data-slot":"sheet-content",className:(0,r.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===o&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===o&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===o&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===o&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...u,children:[s,(0,t.jsxs)(i.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,t.jsx)(n.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function h({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,r.cn)("flex flex-col gap-1.5 p-4",e),...i})}function d({className:e,...n}){return(0,t.jsx)(i.Title,{"data-slot":"sheet-title",className:(0,r.cn)("text-foreground font-semibold",e),...n})}e.s(["Sheet",()=>s,"SheetContent",()=>u,"SheetHeader",()=>h,"SheetTitle",()=>d,"SheetTrigger",()=>o])},737764,e=>{"use strict";e.i(565546),e.s([])},906165,e=>{"use strict";var t=e.i(843476),i=e.i(492161),n=e.i(852917);e.i(737764);var r=e.i(565546),s=e.i(948148);e.i(72180);var o=e.i(483014),a=e.i(522016);e.i(913165);var l=e.i(288321),u=e.i(657688),h=e.i(314239);e.i(398975);var d=e.i(513238),c=e.i(217255);e.i(908753);var p=e.i(484927),m=e.i(271645);function f({t:e,handleCloseSheet:i}){return(0,t.jsxs)("div",{className:"space-y-5 md:space-y-0 md:flex md:space-x-6",children:[(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/events",type:"black",children:e("events")})}),(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/#contact",type:"black",children:e("contact")})}),(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/guests",type:"black",children:e("guests")})}),(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/directory",type:"black",children:e("directory")})}),(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/reservations",type:"black",children:e("bookings")})})]})}function g({t:e,handleCloseSheet:i}){return(0,t.jsxs)("div",{className:"space-y-5 md:space-y-0 md:flex md:space-x-6",children:[(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/#our_spaces",type:"black",children:e("office")})}),(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/events",type:"black",children:e("events")})}),(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/#about_us",type:"black",children:e("us")})}),(0,t.jsx)("div",{onClick:()=>i?i():()=>{},children:(0,t.jsx)(d.LocaleLink,{href:"/#contact",type:"black",children:e("contact")})})]})}function v({locale:e,session:v}){let[y,x]=(0,m.useState)(!1),w=()=>{x(!1)},b=(0,s.useTranslations)("NavbarLinks"),T=(0,s.useTranslations)("button");return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(n.Sheet,{open:y,onOpenChange:x,children:[(0,t.jsx)(n.SheetTrigger,{children:(0,t.jsx)(i.Menu,{className:"size-8"})}),(0,t.jsxs)(n.SheetContent,{className:"bg-white p-6",children:[(0,t.jsx)(n.SheetHeader,{children:(0,t.jsx)(n.SheetTitle,{children:(0,t.jsx)("object",{className:"h-5 mx-auto",type:"image/svg+xml",data:"/svg/logo/primary.svg","aria-label":"logo",children:"svg-logo"})})}),(0,t.jsxs)("div",{className:"space-y-5 mt-4",children:[(0,t.jsx)("div",{className:"w-fit mx-auto",children:(0,t.jsx)(r.LanguageSelector,{locale:e})}),(0,t.jsx)(l.WhiteLine,{className:"border-brand-neutral_3"}),v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex space-x-5",children:[(0,t.jsx)("div",{className:"relative bg-brand-primary rounded-[5px] flex items-center justify-center size-10 hover:bg-brand-secondary transition-200 border border-brand-secondary hover:border-brand-secondary_dark overflow-hidden",children:v&&v.user.urlImage?(0,t.jsx)(u.default,{src:v.user.urlImage,alt:"profile-pic",fill:!0,style:{objectFit:"cover"}}):(0,t.jsx)(h.default,{className:"size-5 stroke-white"})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{onClick:()=>w(),children:(0,t.jsx)(d.LocaleLink,{href:"/dashboard",type:"black",children:b("myProfile")})}),(0,t.jsx)(p.Text18,{className:"font-NotoSansBold text-brand-carbon_500 hover:text-brand-primary transition-200 cursor-pointer",onClick:()=>(0,c.signOut)({callbackUrl:"/login"}),children:b("logOut")})]})]}),(0,t.jsx)(l.WhiteLine,{className:"border-brand-neutral_3"}),(0,t.jsx)(f,{t:b,handleCloseSheet:w})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{onClick:()=>w(),children:(0,t.jsx)(a.default,{href:"/login",children:(0,t.jsx)(o.ButtonSmallPrimary,{className:"w-full",children:T("LogIn")})})}),(0,t.jsx)(g,{t:b,handleCloseSheet:w})]})]})]})]})})}e.s(["default",()=>v],906165)}]);
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.