PageSourceSearch

https://www.acedit.ai/_next/static/chunks/3026-38e71967a9471640.js

js acedit.ai collected 2026-10-05 11:47:14 UTC 157,782 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3026],{21:(t,e,i)=>{"use strict";i.d(e,{q:()=>n});let n={layout:0,mainThread:0,waapi:0}},1357:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n={};!function t(e,i,n,r){var s,a,o,l,u,h,c,d,p,m,f,g=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),v="function"==typeof Path2D&&"function"==typeof DOMMatrix;function y(){}function x(t){var n=i.exports.Promise,r=void 0!==n?n:e.Promise;return"function"==typeof r?new r(t):(t(y,y),null)}var w=(s=function(){if(!e.OffscreenCanvas)return!1;var t=new OffscreenCanvas(1,1),i=t.getContext("2d");i.fillRect(0,0,1,1);var n=t.transferToImageBitmap();try{i.createPattern(n,"no-repeat")}catch(t){return!1}return!0}(),a=new Map,{transform:function(t){if(s)return t;if(a.has(t))return a.get(t);var e=new OffscreenCanvas(t.width,t.height);return e.getContext("2d").drawImage(t,0,0),a.set(t,e),e},clear:function(){a.clear()}}),b=(u=Math.floor(1e3/60),h={},c=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(o=function(t){var e=Math.random();return h[e]=requestAnimationFrame(function i(n){c===n||c+u-1<n?(c=n,delete h[e],t()):h[e]=requestAnimationFrame(i)}),e},l=function(t){h[t]&&cancelAnimationFrame(h[t])}):(o=function(t){return setTimeout(t,u)},l=function(t){return clearTimeout(t)}),{frame:o,cancel:l}),T=(m={},function(){if(d)return d;if(!n&&g){var e=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {\n  if (msg.data.options) {\n    CONFETTI(msg.data.options).then(function () {\n      if (msg.data.callback) {\n        postMessage({ callback: msg.data.callback });\n      }\n    });\n  } else if (msg.data.reset) {\n    CONFETTI && CONFETTI.reset();\n  } else if (msg.data.resize) {\n    SIZE.width = msg.data.resize.width;\n    SIZE.height = msg.data.resize.height;\n  } else if (msg.data.canvas) {\n    SIZE.width = msg.data.canvas.width;\n    SIZE.height = msg.data.canvas.height;\n    CONFETTI = module.exports.create(msg.data.canvas);\n  }\n}"].join("\n");try{d=new Worker(URL.createObjectURL(new Blob([e])))}catch(t){return"function"==typeof console.warn&&console.warn("\uD83C\uDF8A Could not load worker",t),null}var i=d;function r(t,e){i.postMessage({options:t||{},callback:e})}i.init=function(t){var e=t.transferControlToOffscreen();i.postMessage({canvas:e},[e])},i.fire=function(t,e,n){if(p)return r(t,null),p;var s=Math.random().toString(36).slice(2);return p=x(function(e){function a(t){t.data.callback===s&&(delete m[s],i.removeEventListener("message",a),p=null,w.clear(),n(),e())}i.addEventListener("message",a),r(t,s),m[s]=a.bind(null,{data:{callback:s}})})},i.reset=function(){for(var t in i.postMessage({reset:!0}),m)m[t](),delete m[t]}}return d}),M={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function S(t,e,i){var n;return n=t&&null!=t[e]?t[e]:M[e],i?i(n):n}function P(t){return t<0?0:Math.floor(t)}function A(t){return parseInt(t,16)}function k(t){return t.map(C)}function C(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:A(e.substring(0,2)),g:A(e.substring(2,4)),b:A(e.substring(4,6))}}function E(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function D(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function V(t,i){var s,a=!t,o=!!S(i||{},"resize"),l=!1,u=S(i,"disableForReducedMotion",Boolean),h=g&&S(i||{},"useWorker")?T():null,c=a?E:D,d=!!t&&!!h&&!!t.__confetti_initialized,p="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function m(i){var m,f=u||S(i,"disableForReducedMotion",Boolean),g=S(i,"zIndex",Number);if(f&&p)return x(function(t){t()});a&&s?t=s.canvas:a&&!t&&((m=document.createElement("canvas")).style.position="fixed",m.style.top="0px",m.style.left="0px",m.style.pointerEvents="none",m.style.zIndex=g,t=m,document.body.appendChild(t)),o&&!d&&c(t);var y={width:t.width,height:t.height};function T(){if(h){var e={getBoundingClientRect:function(){if(!a)return t.getBoundingClientRect()}};c(e),h.postMessage({resize:{width:e.width,height:e.height}});return}y.width=y.height=null}function M(){s=null,o&&(l=!1,e.removeEventListener("resize",T)),a&&t&&(document.body.contains(t)&&document.body.removeChild(t),t=null,d=!1)}return(h&&!d&&h.init(t),d=!0,h&&(t.__confetti_initialized=!0),o&&!l&&(l=!0,e.addEventListener("resize",T,!1)),h)?h.fire(i,y,M):function(e,i,a){for(var o,l,u,h,d,p,m,f=S(e,"particleCount",P),g=S(e,"angle",Number),y=S(e,"spread",Number),T=S(e,"startVelocity",Number),M=S(e,"decay",Number),A=S(e,"gravity",Number),C=S(e,"drift",Number),E=S(e,"colors",k),D=S(e,"ticks",Number),V=S(e,"shapes"),R=S(e,"scalar"),j=!!S(e,"flat"),L=((o=S(e,"origin",Object)).x=S(o,"x",Number),o.y=S(o,"y",Number),o),O
1=f,F=[],B=t.width*L.x,I=t.height*L.y;O--;)F.push(function(t){var e=t.angle*(Math.PI/180),i=t.spread*(Math.PI/180);return{x:t.x,y:t.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*t.startVelocity+Math.random()*t.startVelocity,angle2D:-e+(.5*i-Math.random()*i),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:t.color,shape:t.shape,tick:0,totalTicks:t.ticks,decay:t.decay,drift:t.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*t.gravity,ovalScalar:.6,scalar:t.scalar,flat:t.flat}}({x:B,y:I,angle:g,spread:y,startVelocity:T,color:E[O%E.length],shape:V[Math.floor(Math.random()*(V.length-0))+0],ticks:D,decay:M,gravity:A,drift:C,scalar:R,flat:j}));return s?s.addFettis(F):(l=t,d=F.slice(),p=l.getContext("2d"),m=x(function(t){function e(){u=h=null,p.clearRect(0,0,i.width,i.height),w.clear(),a(),t()}u=b.frame(function t(){n&&(i.width!==r.width||i.height!==r.height)&&(i.width=l.width=r.width,i.height=l.height=r.height),i.width||i.height||(c(l),i.width=l.width,i.height=l.height),p.clearRect(0,0,i.width,i.height),(d=d.filter(function(t){return function(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var i,n,r,s,a,o,l,u,h,c,d,p,m,f,g,y,x=e.tick++/e.totalTicks,b=e.x+e.random*e.tiltCos,T=e.y+e.random*e.tiltSin,M=e.wobbleX+e.random*e.tiltCos,S=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-x)+")",t.beginPath(),v&&"path"===e.shape.type&&"string"==typeof e.shape.path&&Array.isArray(e.shape.matrix)){t.fill((i=e.shape.path,n=e.shape.matrix,r=e.x,s=e.y,a=.1*Math.abs(M-b),o=.1*Math.abs(S-T),l=Math.PI/10*e.wobble,u=new Path2D(i),(h=new Path2D).addPath(u,new DOMMatrix(n)),(c=new Path2D).addPath(h,new DOMMatrix([Math.cos(l)*a,Math.sin(l)*a,-Math.sin(l)*o,Math.cos(l)*o,r,s])),c))}else if("bitmap"===e.shape.type){var P=Math.PI/10*e.wobble,A=.1*Math.abs(M-b),k=.1*Math.abs(S-T),C=e.shape.bitmap.width*e.scalar,E=e.shape.bitmap.height*e.scalar,D=new DOMMatrix([Math.cos(P)*A,Math.sin(P)*A,-Math.sin(P)*k,Math.cos(P)*k,e.x,e.y]);D.multiplySelf(new DOMMatrix(e.shape.matrix));var V=t.createPattern(w.transform(e.shape.bitmap),"no-repeat");V.setTransform(D),t.globalAlpha=1-x,t.fillStyle=V,t.fillRect(e.x-C/2,e.y-E/2,C,E),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(M-b)*e.ovalScalar,Math.abs(S-T)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):(d=e.x,p=e.y,m=Math.abs(M-b)*e.ovalScalar,f=Math.abs(S-T)*e.ovalScalar,g=Math.PI/10*e.wobble,y=2*Math.PI,t.save(),t.translate(d,p),t.rotate(g),t.scale(m,f),t.arc(0,0,1,0,y,void 0),t.restore());else if("star"===e.shape)for(var R=Math.PI/2*3,j=4*e.scalar,L=8*e.scalar,O=e.x,F=e.y,B=5,I=Math.PI/5;B--;)O=e.x+Math.cos(R)*L,F=e.y+Math.sin(R)*L,t.lineTo(O,F),R+=I,O=e.x+Math.cos(R)*j,F=e.y+Math.sin(R)*j,t.lineTo(O,F),R+=I;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(T)),t.lineTo(Math.floor(M),Math.floor(S)),t.lineTo(Math.floor(b),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}(p,t)})).length?u=b.frame(t):e()}),h=e}),(s={addFettis:function(t){return d=d.concat(t),m},canvas:l,promise:m,reset:function(){u&&b.cancel(u),h&&h()}}).promise)}(i,y,M)}return m.reset=function(){h&&h.reset(),s&&s.reset()},m}function R(){return f||(f=V(null,{useWorker:!0,resize:!0})),f}i.exports=function(){return R().apply(this,arguments)},i.exports.reset=function(){R().reset()},i.exports.create=V,i.exports.shapeFromPath=function(t){if(!v)throw Error("path confetti are not supported in this browser");"string"==typeof t?n=t:(n=t.path,r=t.matrix);var e=new Path2D(n),i=document.createElement("canvas").getContext("2d");if(!r){for(var n,r,s,a,o=1e3,l=1e3,u=0,h=0,c=0;c<1e3;c+=2)for(var d=0;d<1e3;d+=2)i.isPointInPath(e,c,d,"nonzero")&&(o=Math.min(o,c),l=Math.min(l,d),u=Math.max(u,c),h=Math.max(h,d));s=u-o;var p=Math.min(10/s,10/(a=h-l));r=[p,0,0,p,-Math.round(s/2+o)*p,-Math.round(a/2+l)*p]}return{type:"path",path:n,matrix:r}},i.exports.shapeFromText=function(t){var e,i=1,n="#000000",r='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof t?e=t:(e=t.text,i="scalar"in t?t.scalar:i,r="fontFamily"in t?t.fontFamily:r,n="c
1olor"in t?t.color:n);var s=10*i,a=""+s+"px "+r,o=new OffscreenCanvas(s,s),l=o.getContext("2d");l.font=a;var u=l.measureText(e),h=Math.ceil(u.actualBoundingBoxRight+u.actualBoundingBoxLeft),c=Math.ceil(u.actualBoundingBoxAscent+u.actualBoundingBoxDescent),d=u.actualBoundingBoxLeft+2,p=u.actualBoundingBoxAscent+2;h+=4,c+=4,(l=(o=new OffscreenCanvas(h,c)).getContext("2d")).font=a,l.fillStyle=n,l.fillText(e,d,p);var m=1/i;return{type:"bitmap",bitmap:o.transferToImageBitmap(),matrix:[m,0,0,m,-h*m/2,-c*m/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),n,!1);let r=n.exports;n.exports.create},1459:(t,e,i)=>{"use strict";i.d(e,{M:()=>r});var n=i(64343);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},2737:(t,e,i)=>{"use strict";function n(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}i.d(e,{K:()=>n})},6196:(t,e,i)=>{"use strict";i.d(e,{l:()=>n});let n=t=>t},7327:(t,e,i)=>{"use strict";i.d(e,{$:()=>s,q:()=>a});var n=i(69699);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),a=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,a,o,l]=r.match(n.S);return{[t]:parseFloat(s),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},7607:(t,e,i)=>{"use strict";i.d(e,{V:()=>o});var n=i(9134),r=i(74035),s=i(95214),a=i(7327);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+r.KN.transform((0,s.a)(e))+", "+r.KN.transform((0,s.a)(i))+", "+(0,s.a)(n.X4.transform(a))+")"}},7689:(t,e,i)=>{"use strict";i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},7826:(t,e,i)=>{"use strict";i.d(e,{G:()=>h});var n=i(96013),r=i(16329),s=i(28175),a=i(71130),o=i(6196),l=i(86488),u=i(7689);function h(t,e,{clamp:i=!0,ease:c,mixer:d}={}){let p=t.length;if((0,r.V)(p===e.length,"Both input and output ranges must be the same length"),1===p)return()=>e[0];if(2===p&&e[0]===e[1])return()=>e[1];let m=t[0]===t[1];t[0]>t[p-1]&&(t=[...t].reverse(),e=[...e].reverse());let f=function(t,e,i){let r=[],s=i||a.W.mix||n.j,u=t.length-1;for(let i=0;i<u;i++){let n=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||o.l:e;n=(0,l.F)(t,n)}r.push(n)}return r}(e,c,d),g=f.length,v=i=>{if(m&&i<t[0])return e[0];let n=0;if(g>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=(0,u.q)(t[n],t[n+1],i);return f[n](r)};return i?e=>v((0,s.q)(t[0],t[p-1],e)):v}},9134:(t,e,i)=>{"use strict";i.d(e,{X4:()=>s,ai:()=>r,hs:()=>a});var n=i(28175);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.q)(0,1,t)},a={...r,default:1}},12098:(t,e,i)=>{"use strict";function n(t){let e;return()=>(void 0===e&&(e=t()),e)}i.d(e,{p:()=>n})},12943:(t,e,i)=>{"use strict";i.d(e,{X:()=>r});let n=t=>null!==t;function r(t,{repeat:e,repeatType:i="loop"},s,a=1){let o=t.filter(n),l=a<0||e&&"loop"!==i&&e%2==1?0:o.length-1;return l&&void 0!==s?s:o[l]}},16329:(t,e,i)=>{"use strict";i.d(e,{$:()=>n,V:()=>r});let n=()=>{},r=()=>{}},19310:(t,e,i)=>{"use strict";i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},19921:(t,e,i)=>{"use strict";i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},20529:(t,e,i)=>{"use strict";i.d(e,{x:()=>r});var n=i(93158);function r(t){return(0,n.G)(t)&&"ownerSVGElement"in t}},22493:(t,e,i)=>{"use strict";let n,r;i.d(e,{L:()=>q});var s=i(64343),a=i(7689),o=i(51114);let l=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),u={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function h(t,e,i,n){let r=i[e],{length:s,position:l}=u[e],h=r.current,c=i.time;r.current=t[`scroll${l}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,a.q)(0,r.scrollLength,r.current);let d=n-c;r.velocity=d>50?0:(0,o.f)(r.current-h,d)}var c=i(27210);let d={start:0,center:.5,end:1};
1function p(t,e,i=0){let n=0;if(t in d&&(t=d[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let m=[0,0],f={All:[[0,0],[1,1]]};var g=i(7826),v=i(86614),y=i(28175);let x={x:0,y:0};var w=i(6196),b=i(20529),T=i(2737);let M=new WeakMap,S=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:(0,b.x)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],P=S("inline","width","offsetWidth"),A=S("block","height","offsetHeight");function k({target:t,borderBoxSize:e}){M.get(t)?.forEach(i=>{i(t,{get width(){return P(t,e)},get height(){return A(t,e)}})})}function C(t){t.forEach(k)}let E=new Set;var D=i(98334);let V=new WeakMap,R=new WeakMap,j=new WeakMap,L=t=>t===document.scrollingElement?window:t;function O(t,{container:e=document.scrollingElement,...i}={}){if(!e)return w.l;let s=j.get(e);s||(s=new Set,j.set(e,s));let a=function(t,e,i,n={}){return{measure:e=>{!function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight}(t,n.target,i),h(t,"x",i,e),h(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=f.All}=i,{target:r=t,axis:s="y"}=i,a="y"===s?"height":"width",o=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if((0,c.s)(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):x,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,w=n.length;for(let t=0;t<w;t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:m,s=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,d[t]?t:"0"]),(s=p(r[0],i,n))-p(r[1],e)}(n[t],u[a],l[a],o[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=(0,g.G)(e[s].offset,(0,v.Z)(n),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=(0,y.q)(0,1,e[s].interpolate(e[s].current))}(t,i,n)},notify:()=>e(i)}}(e,t,{time:0,x:l(),y:l()},i);if(s.add(a),!V.has(e)){let t=()=>{for(let t of s)t.measure(D.uv.timestamp);D.Gt.preUpdate(i)},i=()=>{for(let t of s)t.notify()},a=()=>D.Gt.read(t);V.set(e,a);let o=L(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&R.set(e,"function"==typeof e?(E.add(e),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};E.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{E.delete(e),E.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(t,e){n||"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(C));let i=(0,T.K)(t);return i.forEach(t=>{let i=M.get(t);i||(i=new Set,M.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=M.get(t);i?.delete(e),i?.size||n?.unobserve(t)})}}(e,a)),o.addEventListener("scroll",a,{passive:!0}),a()}let o=V.get(e);return D.Gt.read(o,!1,!0),()=>{(0,D.WG)(o);let t=j.get(e);if(!t||(t.delete(a),t.size))return;let i=V.get(e);V.delete(e),i&&(L(e).removeEventListener("scroll",i),R.get(e)?.(),window.removeEventListener("resize",i))}}var F=i(73395);let B=new Map;function I({source:t,container:e,...i}){let{axis:n}=i;t&&(e=t);let r=B.get(e)??new Map;B.set(e,r);let s=i.target??"self",a=r.get(s)??{},o=n+(i.offset??[]).join(",");return a[o]||(a[o]=!i.target&&(0,F.J)()?new ScrollTimeline({source:e,axis:n}):function(t){let e={value:0},i=O(i=>{e.value=100*i[t.axis].progress},t);return{currentTime:e,cancel:i}}({container:e,...i})),a[o]}function N(t,e){let i,n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return D.Gt.preUpdate(n,!0),()=>(0,D.WG)(n)}var W=i(1459),U=i(46057),G=i(16329),_=i(61735);function $(t,e){(0,G.$)(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let z=()=>({scrollX:(0,_.OQ)(0),scrollY:(0,_.OQ)(0),scrollXProgress:(0,_.OQ)(0),scrollYProgress:(0,_.OQ)(0)});function q({container:t,target:e,layoutEffect:i=!0,...n}={}){let r=(0,W.M)(z);return(i?U.E:s.useEffect)(()=>($("target",e),$("container",t),function(t,{axis:e="y",container:i=document.scrollingElement,...n}={}){var r,s;if(!i)return w.l;let a={axis:e,container:i,...n};return"function"==typeof t?(r=t,s=a,2===r.length?O(t=>{r(t[s.axis].progress,t)}
1,s):N(r,I(s))):function(t,e){let i=I(e);return t.attachTimeline({timeline:e.target?void 0:i,observe:t=>(t.pause(),N(e=>{t.time=t.duration*e},i))})}(t,a)}((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...n,container:t?.current||void 0,target:e?.current||void 0})),[t,e,JSON.stringify(n.offset)]),r}},26591:(t,e,i)=>{"use strict";i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},27210:(t,e,i)=>{"use strict";i.d(e,{s:()=>r});var n=i(93158);function r(t){return(0,n.G)(t)&&"offsetHeight"in t}},28175:(t,e,i)=>{"use strict";i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i<t?t:i},28376:t=>{t.exports={style:{fontFamily:"'customFont', 'customFont Fallback'"},className:"__className_aca49a",variable:"__variable_aca49a"}},28580:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let n=(0,i(94059).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},34529:(t,e,i)=>{"use strict";i.d(e,{po:()=>s,tn:()=>o,yT:()=>a});var n=i(47820),r=i(26591);let s=t=>1-Math.sin(Math.acos(t)),a=(0,r.G)(s),o=(0,n.V)(s)},34752:(t,e,i)=>{"use strict";i.d(e,{s:()=>y});var n=i(82064),r=i(21),s=i(96013),a=i(98334);let o=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>a.Gt.update(e,t),stop:()=>(0,a.WG)(e),now:()=>a.uv.isProcessing?a.uv.timestamp:n.k.now()}};var l=i(66353),u=i(80416),h=i(67321),c=i(12943),d=i(78161),p=i(38823),m=i(86488),f=i(54762),g=i(28175);let v=t=>t/100;class y extends p.q{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==n.k.now()&&this.tick(n.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},r.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;(0,d.E)(t);let{type:e=u.i,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:a=0}=t,{keyframes:o}=t,l=e||u.i;l!==u.i&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,m.F)(v,(0,s.j)(o[0],o[1])),o=[0,100]);let c=l({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=(0,h.t)(c));let{calculatedDuration:p}=c;this.calculatedDuration=p,this.resolvedDuration=p+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=c}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:p,repeatDelay:m,type:f,onUpdate:v,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?x<0:x>n;this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let b=this.currentTime,T=i;if(d){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/a)):"mirror"===p&&(T=s)),b=(0,g.q)(0,1,i)*a}let M=w?{done:!1,value:h[0]}:T.next(b);r&&(M.value=r(M.value));let{done:S}=M;w||null===o||(S=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return P&&f!==l.B&&(M.value=(0,c.X)(h,this.options,y,this.speed)),v&&v(M.value),P&&this.finish(),M}then(t,e){return this.finished.then(t,e)}get duration(){return(0,f.X)(this.calculatedDuration)}get time(){return(0,f.X)(this.currentTime)}set time(t){t=(0,f.f)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(n.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,f.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=o,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(n.k.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,r.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}}
1,36980:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let n=(0,i(94059).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},38823:(t,e,i)=>{"use strict";i.d(e,{q:()=>n});class n{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}},46057:(t,e,i)=>{"use strict";i.d(e,{E:()=>r});var n=i(64343);let r=i(68217).B?n.useLayoutEffect:n.useEffect},47820:(t,e,i)=>{"use strict";i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},49321:(t,e,i)=>{"use strict";i.d(e,{o:()=>m});var n=i(70506),r=i(67321),s=i(54762),a=i(78124);let o={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var l=i(16329),u=i(28175);function h(t,e){return t*Math.sqrt(1-e*e)}let c=["duration","bounce"],d=["stiffness","damping","mass"];function p(t,e){return e.some(e=>void 0!==t[e])}function m(t=o.visualDuration,e=o.bounce){let i,f="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:g,restDelta:v}=f,y=f.keyframes[0],x=f.keyframes[f.keyframes.length-1],w={done:!1,value:y},{stiffness:b,damping:T,mass:M,duration:S,velocity:P,isResolvedFromDuration:A}=function(t){let e={velocity:o.velocity,stiffness:o.stiffness,damping:o.damping,mass:o.mass,isResolvedFromDuration:!1,...t};if(!p(t,d)&&p(t,c))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,u.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:o.mass,stiffness:n,damping:r}}else{let i=function({duration:t=o.duration,bounce:e=o.bounce,velocity:i=o.velocity,mass:n=o.mass}){let r,a;(0,l.$)(t<=(0,s.f)(o.maxDuration),"Spring duration must be 10 seconds or less");let c=1-e;c=(0,u.q)(o.minDamping,o.maxDamping,c),t=(0,u.q)(o.minDuration,o.maxDuration,(0,s.X)(t)),c<1?(r=e=>{let n=e*c,r=n*t;return .001-(n-i)/h(e,c)*Math.exp(-r)},a=e=>{let n=e*c*t,s=Math.pow(c,2)*Math.pow(e,2)*t,a=Math.exp(-n),o=h(Math.pow(e,2),c);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/o}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));let d=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,a,5/t);if(t=(0,s.f)(t),isNaN(d))return{stiffness:o.stiffness,damping:o.damping,duration:t};{let e=Math.pow(d,2)*n;return{stiffness:e,damping:2*c*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:o.mass}).isResolvedFromDuration=!0}return e}({...f,velocity:-(0,s.X)(f.velocity||0)}),k=P||0,C=T/(2*Math.sqrt(b*M)),E=x-y,D=(0,s.X)(Math.sqrt(b/M)),V=5>Math.abs(E);if(g||(g=V?o.restSpeed.granular:o.restSpeed.default),v||(v=V?o.restDelta.granular:o.restDelta.default),C<1){let t=h(D,C);i=e=>x-Math.exp(-C*D*e)*((k+C*D*E)/t*Math.sin(t*e)+E*Math.cos(t*e))}else if(1===C)i=t=>x-Math.exp(-D*t)*(E+(k+D*E)*t);else{let t=D*Math.sqrt(C*C-1);i=e=>{let i=Math.exp(-C*D*e),n=Math.min(t*e,300);return x-i*((k+C*D*E)*Math.sinh(n)+t*E*Math.cosh(n))/t}}let R={calculatedDuration:A&&S||null,next:t=>{let e=i(t);if(A)w.done=t>=S;else{let n=0===t?k:0;C<1&&(n=0===t?(0,s.f)(k):(0,a.Y)(i,t,e));let r=Math.abs(x-e)<=v;w.done=Math.abs(n)<=g&&r}return w.value=w.done?x:e,w},toString:()=>{let t=Math.min((0,r.t)(R),r.Y),e=(0,n.K)(e=>R.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return R}m.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),a=Math.min((0,r.t)(n),r.Y);return{type:"keyframes",ease:t=>n.next(a*t).value/e,duration:(0,s.X)(a)}}(t,100,m);return t.ease=e.ease,t.duration=(0,s.f)(e.duration),t.type="keyframes",t}},51114:(t,e,i)=>{"use strict";function n(t,e){return e?1e3/e*t:0}i.d(e,{f:()=>n})},51821:(t,e,i)=>{"use strict";i.d(e,{V:()=>h,f:()=>m});var n=i(82093);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(69699),a=i(95214);let o="number",l="color",u=/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 h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]}
1,s=[],a=0,h=e.replace(u,t=>(n.y.test(t)?(r.color.push(a),s.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(r.var.push(a),s.push("var"),i.push(t)):(r.number.push(a),s.push(o),i.push(parseFloat(t))),++a,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function c(t){return h(t).values}function d(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u<r;u++)if(s+=e[u],void 0!==t[u]){let e=i[u];e===o?s+=(0,a.a)(t[u]):e===l?s+=n.y.transform(t[u]):s+=t[u]}return s}}let p=t=>"number"==typeof t?0:t,m={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(s.S)?.length||0)+(t.match(r)?.length||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(p))}}},52389:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let n=(0,i(94059).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},53059:(t,e,i)=>{"use strict";function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function r(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function s(t,e,i,n){if("function"==typeof e){let[s,a]=r(n);e=e(void 0!==i?i:t.custom,s,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,a]=r(n);e=e(void 0!==i?i:t.custom,s,a)}return e}function a(t,e,i){let n=t.getProps();return s(n,e,void 0!==i?i:n.custom,t)}i.d(e,{P:()=>n7});let o=t=>Array.isArray(t);var l,u,h=i(61735),c=i(19310),d=i(71130);function p(t,e){let i=t.getValue("willChange");if((0,c.S)(i)&&i.add)return i.add(e);if(!i&&d.W.WillChange){let i=new d.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let m=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),f="data-"+m("framerAppearId"),g=t=>null!==t,v=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],y=new Set(v),x={type:"spring",stiffness:500,damping:25,restSpeed:10},w={type:"keyframes",duration:.8},b={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};function T(t,e){return t?.[e]??t?.default??t}var M=i(54762),S=i(98334),P=i(34752),A=i(82064),k=i(12943);let C=t=>180*t/Math.PI,E=t=>V(C(Math.atan2(t[1],t[0]))),D={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:E,rotateZ:E,skewX:t=>C(Math.atan(t[1])),skewY:t=>C(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},V=t=>((t%=360)<0&&(t+=360),t),R=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),j=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),L={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:R,scaleY:j,scale:t=>(R(t)+j(t))/2,rotateX:t=>V(C(Math.atan2(t[6],t[5]))),rotateY:t=>V(C(Math.atan2(-t[2],t[0]))),rotateZ:E,rotate:E,skewX:t=>C(Math.atan(t[4])),skewY:t=>C(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function O(t){return+!!t.includes("scale")}function F(t,e){let i,n;if(!t||"none"===t)return O(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=L,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=D,n=e}if(!n)return O(e);let s=i[e],a=n[1].split(",").map(B);return"function"==typeof s?s(a):a[s]}function B(t){return parseFloat(t.trim())}var I=i(9134),N=i(74035);let W=t=>t===I.ai||t===N.px,U=new Set(["x","y","z"]),G=v.filter(t=>!U.has(t)),_={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>F(e,"x"),y:(t,{transform:e})=>F(e,"y")};_.translateX=_.x,_.translateY=_.y;let $=new Set,z=!1,q=!1,X=!1;function K(){if(q){let t=Array.from($).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return G.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}q=!1,z=!1,$.forEach(t=>t.complete(X)),$.clear()}function Y(){$.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(q=!0)})}class H{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?($.add(this),z||(z=!0,S.Gt.read(Y),S.Gt.resolveKeyframes(K))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),$.delete(this)}cancel(){"scheduled"===this.state&&($.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}var Z=i(73395),Q=i(38823),J=i(21),tt=i(96875);let te={};var ti=i(12098);let tn=function(t,e){let i=(0,ti.p)(t);return()=>te[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var tr=i(70506);let ts=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,ta={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ts([0,.65,.55,1]),circOut:ts([.55,0,1,.45]),backIn:ts([.31,.01,.66,-.59]),backOut:ts([.33,1.53,.69,.99])};var to=i(54116);function tl(t){return"function"==typeof t&&"applyToOptions"in t}var tu=i(16329),th=i(6196);class tc extends Q.q{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,(0,tu.V)("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:t,...e}){return tl(t)&&tn()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?tn()?(0,tr.K)(e,i):"ease-out":(0,to.D)(e)?ts(e):Array.isArray(e)?e.map(e=>t(e,i)||ta.easeOut):ta[e]}(o,r);Array.isArray(c)&&(h.easing=c),tt.Q.value&&J.q.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return tt.Q.value&&p.finished.finally(()=>{J.q.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=(0,k.X)(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,M.X)(Number(t))}get time(){return(0,M.X)(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=(0,M.f)(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,Z.J)())?(this.animation.timeline=t,th.l):e(this)}}var td=i(78161),tp=i(95872),tm=i(93821),tf=i(34529);let tg={anticipate:tp.b,backInOut:tm.ZZ,circInOut:tf.tn};class tv extends tc{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tg&&(t.ease=tg[t.ease])}(t),(0,td.E)(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new P.s({...s,autoplay:!1}),o=(0,M.f)(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}var ty=i(51821);let tx=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(ty.f.test(t)||"0"===t)&&!t.startsWith("url("));var tw=i(27210);let tb=new Set(["opacity","clipPath","filter","transform"]),tT=(0,ti.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tM extends Q.q{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=A.k.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||H;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;
1this.resolvedAt=A.k.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=tx(r,e),o=tx(s,e);return(0,tu.$)(a===o,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||tl(i))&&n)}(t,r,s,a)&&((d.W.instantAnimations||!o)&&u?.((0,k.X)(t,i,e)),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:a}=t;if(!(0,tw.s)(e?.owner?.current))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return tT()&&i&&tb.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(h)?new tv({...h,element:h.motionValue.owner.current}):new P.s(h);c.finished.then(()=>this.notifyFinished()).catch(th.l),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),X=!0,Y(),K(),X=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let tS=(t,e,i,n={},r,s)=>a=>{let o=T(n,t)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=(0,M.f)(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?w:y.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:x:b)(t,h)),h.duration&&(h.duration=(0,M.f)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,M.f)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),(d.W.instantAnimations||d.W.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,c&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(g),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(h.keyframes,o);if(void 0!==t)return void S.Gt.update(()=>{h.onUpdate(t),h.onComplete()})}return o.isSync?new P.s(h):new tM(h)},tP=new Set(["width","height","top","left","right","bottom",...v]);function tA(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:l,...u}=e;n&&(s=n);let c=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in u){let n=t.getValue(e,t.latestValues[e]??null),r=u[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...T(s||{},e)},o=n.get();if(void 0!==o&&!n.isAnimating&&!Array.isArray(r)&&r===o&&!a.velocity)continue;let l=!1;if(window.MotionHandoffAnimation){let i=t.props[f];if(i){let t=window.MotionHandoffAnimation(i,e,S.Gt);null!==t&&(a.startTime=t,l=!0)}}p(t,e),n.start(tS(e,n,r,t.shouldReduceMotion&&tP.has(e)?{type:!1}:a,t,l));let h=n.animation;h&&c.push(h)}return l&&Promise.all(c).then(()=>{S.Gt.update(()=>{l&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=a(t,e)||{};for(let e in r={...r,...i}){var s;let i=o(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,h.OQ)(i))}}(t,l)})}),c}function tk(t,e,i={}){let n=a(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(tA(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;
1return function(t,e,i=0,n=0,r=1,s){let a=[],o=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>o-t*n;return Array.from(t.variantChildren).sort(tC).forEach((t,n)=>{t.notify("AnimationStart",e),a.push(tk(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,s+n,a,o,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[s,o]:[o,s];return t().then(()=>e())}}function tC(t,e){return t.sortNodePosition(e)}function tE(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function tD(t){return"string"==typeof t||Array.isArray(t)}let tV=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tR=["initial",...tV],tj=tR.length,tL=[...tV].reverse(),tO=tV.length;function tF(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tB(){return{animate:tF(!0),whileInView:tF(),whileHover:tF(),whileTap:tF(),whileDrag:tF(),whileFocus:tF(),exit:tF()}}class tI{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tN extends tI{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>tk(t,e,i)));else if("string"==typeof e)n=tk(t,e,i);else{let r="function"==typeof e?a(t,e,i.custom):e;n=Promise.all(tA(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=tB(),r=!0,s=e=>(i,n)=>{let r=a(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function l(l){let{props:u}=t,h=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<tj;t++){let n=tR[t],r=e.props[n];(tD(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},c=[],d=new Set,p={},m=1/0;for(let e=0;e<tO;e++){var f,g;let a=tL[e],v=i[a],y=void 0!==u[a]?u[a]:h[a],x=tD(y),w=a===l?v.isActive:null;!1===w&&(m=e);let b=y===h[a]&&y!==u[a]&&x;if(b&&r&&t.manuallyAnimateOnMount&&(b=!1),v.protectedKeys={...p},!v.isActive&&null===w||!y&&!v.prevProp||n(y)||"boolean"==typeof y)continue;let T=(f=v.prevProp,"string"==typeof(g=y)?g!==f:!!Array.isArray(g)&&!tE(g,f)),M=T||a===l&&v.isActive&&!b&&x||e>m&&x,S=!1,P=Array.isArray(y)?y:[y],A=P.reduce(s(a),{});!1===w&&(A={});let{prevResolvedValues:k={}}=v,C={...k,...A},E=e=>{M=!0,d.has(e)&&(S=!0,d.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=A[t],i=k[t];if(!p.hasOwnProperty(t))(o(e)&&o(i)?tE(e,i):e===i)?void 0!==e&&d.has(t)?E(t):v.protectedKeys[t]=!0:null!=e?E(t):d.add(t)}v.prevProp=y,v.prevResolvedValues=A,v.isActive&&(p={...p,...A}),r&&t.blockInitialAnimation&&(M=!1);let D=!(b&&T)||S;M&&D&&c.push(...P.map(t=>({animation:t,options:{type:a}})))}if(d.size){let e={};if("boolean"!=typeof u.initial){let i=a(t,Array.isArray(u.initial)?u.initial[0]:u.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),c.push({animation:e})}let v=!!c.length;return r&&(!1===u.initial||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(v=!1),r=!1,v?e(c):Promise.resolve()}return{animateChanges:l,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=l(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=tB(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tW=0;class tU extends tI{constructor(){super(...arguments),this.id=tW++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}function tG(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let t_=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function t$(t){return{point:{x:t.pageX,y:t.pageY}}}function tz(t,e,i,n){return tG(t,e,t=>t_(t)&&i(t,t$(t)),n)}function tq({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}var tX=i(19921);function tK(t){return t.max-t.min}function tY(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tX.k)(e.min,e.max,t.origin),t.scale=tK(i)/tK(e),t.translate=(0,tX.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tH(t,e,i,n){tY(t.x,e.x,i.x,n?n.originX:void 0),tY(t.y,e.y,i.y,n?n.originY:void 0)}function tZ(t,e,i){t.min=i.min+e.min,t.max=t.min+tK(e)}function tQ(t,e,i){t.min=e.min-i.min,t.max=t.min+tK(e)}function tJ(t,e,i){tQ(t.x,e.x,i.x),tQ(t.y,e.y,i.y)}let t0=()=>({translate:0,scale:1,origin:0,originPoint:0}),t1=()=>({x:t0(),y:t0()}),t2=()=>({min:0,max:0}),t5=()=>({x:t2(),y:t2()});function t3(t){return[t("x"),t("y")]}function t9(t){return void 0===t||1===t}function t4({scale:t,scaleX:e,scaleY:i}){return!t9(t)||!t9(e)||!t9(i)}function t6(t){return t4(t)||t7(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function t7(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function t8(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function et(t,e=0,i=1,n,r){t.min=t8(t.min,e,i,n,r),t.max=t8(t.max,e,i,n,r)}function ee(t,{x:e,y:i}){et(t.x,e.translate,e.scale,e.originPoint),et(t.y,i.translate,i.scale,i.originPoint)}function ei(t,e){t.min=t.min+e,t.max=t.max+e}function en(t,e,i,n,r=.5){let s=(0,tX.k)(t.min,t.max,r);et(t,e,i,s,n)}function er(t,e){en(t.x,e.x,e.scaleX,e.scale,e.originX),en(t.y,e.y,e.scaleY,e.scale,e.originY)}function es(t,e){return tq(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let ea=({current:t})=>t?t.ownerDocument.defaultView:null;function eo(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let el=(t,e)=>Math.abs(t-e);var eu=i(86488);class eh{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=ep(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(el(t.x,e.x)**2+el(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=S.uv;this.history.push({...n,timestamp:r});let{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ec(e,this.transformPagePoint),S.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=ep("pointercancel"===t.type?this.lastMoveEventInfo:ec(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!t_(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=ec(t$(t),this.transformPagePoint),{point:a}=s,{timestamp:o}=S.uv;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=e;l&&l(t,ep(s,this.history)),this.removeListeners=(0,eu.F)(tz(this.contextWindow,"pointermove",this.handlePointerMove),tz(this.contextWindow,"pointerup",this.handlePointerUp),tz(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,S.WG)(this.updatePoint)}}function ec(t,e){return e?{point:e(t.point)}:t}function ed(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ep({point:t},e){return{point:t,delta:ed(t,em(e)),offset:ed(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=em(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,M.f)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,M.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let a={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function em(t){return t[t.length-1]}var ef=i(7689),eg=i(28175);function ev(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ey(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function ex(t,e,i){return{min:ew(t,e),max:ew(t,i)}}function ew(t,e){return"number"==typeof t?t:t[e]||0}let eb={x:!1,y:!1},eT=new WeakMap;class eM{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=t5(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(t$(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(eb[t])return null;else return eb[t]=!0,()=>{eb[t]=!1};return eb.x||eb.y?null:(eb.x=eb.y=!0,()=>{eb.x=eb.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),t3(t=>{let e=this.getAxisMotionValue(t).get()||0;if(N.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=tK(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&S.Gt.postRender(()=>r(t,e)),p(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),s&&s(t,e)},a=(t,e)=>this.stop(t,e),o=()=>t3(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new eh(t,{onSessionStart:n,onStart:r,onMove:s,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ea(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&S.Gt.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!eS(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tX.k)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tX.k)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&eo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ev(t.x,i,r),y:ev(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:ex(t,"left","right"),y:ex(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&t3(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!eo(e))return!1;let n=e.current;(0,tu.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let s=function(t,e,i){let n=es(t,i),{scroll:r}=e;return r&&(ei(n.x,r.offset.x),ei(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),a=(t=r.layout.layoutBox,{x:ey(t.x,s.x),y:ey(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=tq(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(t3(a=>{if(!eS(a,e,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return p(this.visualElement,t),i.start(tS(t,i,0,e,this.visualElement,!1))}stopAnimation(){t3(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){t3(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){t3(e=>{let{drag:i}=this.getProps();if(!eS(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,tX.k)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!eo(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};t3(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=tK(t),r=tK(e);return r>n?i=(0,ef.q)(e.min,e.max-n,t.min):n>r&&(i=(0,ef.q)(t.min,t.max-r,e.min)),(0,eg.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),t3(e=>{if(!eS(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,tX.k)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;eT.set(this.visualElement,this);let t=tz(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();eo(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),S.Gt.read(e);let r=tG(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(t3(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function eS(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eP extends tI{constructor(t){super(t),this.removeGroupControls=th.l,this.removeListeners=th.l,this.controls=new eM(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||th.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let eA=t=>(e,i)=>{t&&S.Gt.postRender(()=>t(e,i))};class ek extends tI{constructor(){super(...arguments),this.removePointerDownListener=th.l}onPointerDown(t){this.session=new eh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ea(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:eA(t),onStart:eA(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&S.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tz(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var eC=i(81791),eE=i(64343);let eD=(0,eE.createContext)(null),eV=(0,eE.createContext)({}),eR=(0,eE.createContext)({}),ej={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eL(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eO={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!N.px.test(t))return t;else t=parseFloat(t);let i=eL(t,e.target.x),n=eL(t,e.target.y);return`${i}% ${n}%`}};var eF=i(54015);let eB={},{schedule:eI}=(0,i(93700).I)(queueMicrotask,!1);class eN extends eE.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;for(let t in eU)eB[t]=eU[t],(0,eF.j)(t)&&(eB[t].isCSSVariable=!0);r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ej.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||S.Gt.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),eI.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eW(t){let[e,i]=function(t=!0){let e=(0,eE.useContext)(eD);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,eE.useId)();(0,eE.useEffect)(()=>
1{if(t)return r(s)},[t]);let a=(0,eE.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,eE.useContext)(eV);return(0,eC.jsx)(eN,{...t,layoutGroup:n,switchLayoutGroup:(0,eE.useContext)(eR),isPresent:e,safeToRemove:i})}let eU={borderRadius:{...eO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eO,borderTopRightRadius:eO,borderBottomLeftRadius:eO,borderBottomRightRadius:eO,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=ty.f.parse(t);if(n.length>5)return t;let r=ty.f.createTransformer(t),s=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+s]/=a,n[1+s]/=o;let l=(0,tX.k)(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},eG=(t,e)=>t.depth-e.depth;var e_=i(81721);class e${constructor(){this.children=[],this.isDirty=!1}add(t){(0,e_.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,e_.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eG),this.isDirty=!1,this.children.forEach(t)}}function ez(t){return(0,c.S)(t)?t.get():t}let eq=["TopLeft","TopRight","BottomLeft","BottomRight"],eX=eq.length,eK=t=>"string"==typeof t?parseFloat(t):t,eY=t=>"number"==typeof t||N.px.test(t);function eH(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eZ=eJ(0,.5,tf.yT),eQ=eJ(.5,.95,th.l);function eJ(t,e,i){return n=>n<t?0:n>e?1:i((0,ef.q)(t,e,n))}function e0(t,e){t.min=e.min,t.max=e.max}function e1(t,e){e0(t.x,e.x),e0(t.y,e.y)}function e2(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function e5(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function e3(t,e,[i,n,r],s,a){!function(t,e=0,i=1,n=.5,r,s=t,a=t){if(N.KN.test(e)&&(e=parseFloat(e),e=(0,tX.k)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,tX.k)(s.min,s.max,n);t===s&&(o-=e),t.min=e5(t.min,e,i,o,r),t.max=e5(t.max,e,i,o,r)}(t,e[i],e[n],e[r],e.scale,s,a)}let e9=["x","scaleX","originX"],e4=["y","scaleY","originY"];function e6(t,e,i,n){e3(t.x,e,e9,i?i.x:void 0,n?n.x:void 0),e3(t.y,e,e4,i?i.y:void 0,n?n.y:void 0)}function e7(t){return 0===t.translate&&1===t.scale}function e8(t){return e7(t.x)&&e7(t.y)}function it(t,e){return t.min===e.min&&t.max===e.max}function ie(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ii(t,e){return ie(t.x,e.x)&&ie(t.y,e.y)}function ir(t){return tK(t.x)/tK(t.y)}function is(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ia{constructor(){this.members=[]}add(t){(0,e_.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,e_.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var io=i(57557),il=i(20529);let iu={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ih=["","X","Y","Z"],ic={visibility:"hidden"},id=0;function ip(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function im({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=id++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
1{this.projectionUpdateScheduled=!1,tt.Q.value&&(iu.nodes=iu.calculatedTargetDeltas=iu.calculatedProjections=0),this.nodes.forEach(iy),this.nodes.forEach(iP),this.nodes.forEach(iA),this.nodes.forEach(ix),tt.Q.addProjectionMetrics&&tt.Q.addProjectionMetrics(iu)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new e$)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new io.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,il.x)(e)&&(!(0,il.x)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=A.k.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,S.WG)(n),t(r-250))};return S.Gt.setup(n,!0),()=>(0,S.WG)(n)}(n,250),ej.hasAnimatedSinceResize&&(ej.hasAnimatedSinceResize=!1,this.nodes.forEach(iS))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||iR,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!ii(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...T(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||iS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,S.WG)(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(ik),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[f];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",S.Gt,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(ib);return}this.isUpdating||this.nodes.forEach(iT),this.isUpdating=!1,this.nodes.forEach(iM),this.nodes.forEach(ig),this.nodes.forEach(iv),this.clearAllSnapshots();let t=A.k.now();S.uv.delta=(0,eg.q)(0,1e3/60,t-S.uv.timestamp),S.uv.timestamp=t,S.uv.isProcessing=!0,S.PP.update.process(S.uv),S.PP.preRender.process(S.uv),S.PP.render.process(S.uv),S.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eI.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iw),this.sharedNodes.forEach(iC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tK(this.snapshot.measuredBox.x)||tK(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=t5(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!e8
1(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||t6(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),iO((e=n).x),iO(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return t5();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(iB))){let{scroll:t}=this.root;t&&(ei(e.x,t.offset.x),ei(e.y,t.offset.y))}return e}removeElementScroll(t){let e=t5();if(e1(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&e1(e,t),ei(e.x,r.offset.x),ei(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=t5();e1(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&er(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),t6(n.latestValues)&&er(i,n.latestValues)}return t6(this.latestValues)&&er(i,this.latestValues),i}removeTransform(t){let e=t5();e1(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!t6(i.latestValues))continue;t4(i.latestValues)&&i.updateSnapshot();let n=t5();e1(n,i.measurePageBox()),e6(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return t6(this.latestValues)&&e6(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==S.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(this.resolvedRelativeTargetAt=S.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=t5(),this.relativeTargetOrigin=t5(),tJ(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),e1(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=t5(),this.targetWithTransforms=t5()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,o;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,o=this.relativeParent.target,tZ(s.x,a.x,o.x),tZ(s.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):e1(this.target,this.layout.layoutBox),ee(this.target,this.targetDelta)):e1(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=t5(),this.relativeTargetOrigin=t5(),tJ(this.relativeTargetOrigin,this.target,t.target),e1(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tt.Q.value&&iu.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||t4(this.parent.latestValues)||t7(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===S.uv.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;e1(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&er(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ee(t,s)),n&&t6(r.latestValues)&&er(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=t5());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(e2(this.prevProjectionDelta.x,this.projectionDelta.x),e2(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tH(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&is(this.projectionDelta.x,this.prevProjectionDelta.x)&&is(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),tt.Q.value&&iu.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=t1(),this.projectionDelta=t1(),this.projectionDeltaWithTransform=t1()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},a=t1();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=t5(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(iV));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(iE(a.x,t.x,n),iE(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;tJ(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=n,iD(p.x,m.x,f.x,g),iD(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,it(u.x,d.x)&&it(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=t5()),e1(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,tX.k)(0,i.opacity??1,eZ(n)),t.opacityExit=(0,tX.k)(e.opacity??1,0,eQ(n))):s&&(t.opacity=(0,tX.k)(e.opacity??1,i.opacity??1,n));for(let r=0;r<eX;r++){let s=`border${eq[r]}Radius`,a=eH(e,s),o=eH(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||eY(a)===eY(o)?(t[s]=Math.max((0,tX.k)(eK(a),eK(o),n),0),(N.KN.test(o)||N.KN.test(a))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,tX.k)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,S.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.Gt.update(()=>{ej.hasAnimatedSinceResize=!0,J.q.layout++,this.motionValue||(this.motionValue=(0,h.OQ)(0)),this.currentAnimation=function(t,e,
1i){let n=(0,c.S)(t)?t:(0,h.OQ)(t);return n.start(tS("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{J.q.layout--},onComplete:()=>{J.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&iF(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||t5();let e=tK(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tK(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}e1(e,i),er(e,r),tH(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ia),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&ip("z",t,n,this.animationValues);for(let e=0;e<ih.length;e++)ip(`rotate${ih[e]}`,t,n,this.animationValues),ip(`skew${ih[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return ic;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=ez(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ez(t?.pointerEvents)||""),this.hasProjected&&!t6(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let r=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),i&&(e.transform=i(r,e.transform));let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.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,eB){if(void 0===r[t])continue;let{correct:i,applyTo:s,isCSSVariable:a}=eB[t],o="none"===e.transform?r[t]:i(r[t],n);if(s){let t=s.length;for(let i=0;i<t;i++)e[s[i]]=o}else a?this.options.visualElement.renderState.vars[t]=o:e[t]=o}return this.options.layoutId&&(e.pointerEvents=n===this?ez(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ib),this.root.sharedNodes.clear()}}}function ig(t){t.updateLayout()}function iv(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?t3(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=tK(n);n.min=i[t].min,n.max=n.min+r}):iF(r,e.layoutBox,i)&&t3(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],a=tK(i[n]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=t1();tH(a,i,e.layoutBox);let o=t1();s?tH(o,t.applyTransform(n,!0),e.measuredBox):tH(o,i,e.layoutBox);let l=!e8(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=t5();tJ(a,e.layoutBox,r.layoutBox);let o=t5();tJ(o,i,s.layoutBox),ii(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function iy(t){tt.Q.value&&iu.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ix(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iw(t){t.clearSnapshot()}function ib(t){t.clearMeasurements()}function iT(t){t.isLayoutDirty=!1}function iM(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iS(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iP(t){t.resolveTargetDelta()}function iA(t){t.calcProjection()}function ik(t){t.resetSkewAndRotation()}function iC(t){t.removeLeadSnapshot()}function iE(t,e,i){t.translate=(0,tX.k)(e.translate,0,i),t.scale=(0,tX.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function iD(t,e,i,n){t.min=(0,tX.k)(e.min,i.min,n),t.max=(0,tX.k)(e.max,i.max,n)}function iV(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iR={duration:.45,ease:[.4,0,.1,1]},ij=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),iL=ij("applewebkit/")&&!ij("chrome/")?Math.round:th.l;function iO(t){t.min=iL(t.min),t.max=iL(t.max)}function iF(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ir(e)-ir(i)))}function iB(t){return t!==t.root&&t.scroll?.wasRoot}let iI=im({attachResizeListener:(t,e)=>tG(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iN={current:void 0},iW=im({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iN.current){let t=new iI({});t.mount(window),t.setOptions({layoutScroll:!0}),iN.current=t}return iN.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var iU=i(2737);function iG(t,e){let i=(0,iU.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function i_(t){return!("touch"===t.pointerType||eb.x||eb.y)}function i$(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&S.Gt.postRender(()=>r(e,t$(e)))}class iz extends tI{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=iG(t,i),a=t=>{if(!i_(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{i_(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",a,r)}),s}(t,(t,e)=>(i$(this.node,e,"Start"),t=>i$(this.node,t,"End"))))}unmount(){}}class iq extends tI{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,eu.F)(tG(this.node.current,"focus",()=>this.onFocus()),tG(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let iX=(t,e)=>!!e&&(t===e||iX(t,e.parentElement)),iK=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iY=new WeakSet;function iH(t){return e=>{"Enter"===e.key&&t(e)}}function iZ(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iQ(t){return t_(t)&&!(eb.x||eb.y)}function iJ(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&S.Gt.postRender(()=>r(e,t$(e)))}class i0 extends tI{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=iG(t,i),a=t=>{let n=t.currentTarget;if(!iQ(t))return;iY.add(n);let s=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),iY.has(n)&&iY.delete(n),iQ(t)&&"function"==typeof s&&s(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||iX(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};
1return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,r),(0,tw.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=iH(()=>{if(iY.has(i))return;iZ(i,"down");let t=iH(()=>{iZ(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iZ(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),iK.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(iJ(this.node,e,"Start"),(t,{success:e})=>iJ(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let i1=new WeakMap,i2=new WeakMap,i5=t=>{let e=i1.get(t.target);e&&e(t)},i3=t=>{t.forEach(i5)},i9={some:0,all:1};class i4 extends tI{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:i9[n]},a=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};var o=this.node.current;let l=function({root:t,...e}){let i=t||document;i2.has(i)||i2.set(i,{});let n=i2.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(i3,{root:t,...e})),n[r]}(s);return i1.set(o,a),l.observe(o),()=>{i1.delete(o),l.unobserve(o)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let i6=(0,eE.createContext)({strict:!1});var i7=i(61111);let i8=(0,eE.createContext)({});function nt(t){return n(t.animate)||tR.some(e=>tD(t[e]))}function ne(t){return!!(nt(t)||t.variants)}function ni(t){return Array.isArray(t)?t.join(" "):t}var nn=i(68217);let nr={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"]},ns={};for(let t in nr)ns[t]={isEnabled:e=>nr[t].some(t=>!!e[t])};let na=Symbol.for("motionComponentSymbol");var no=i(46057);function nl(t,{layout:e,layoutId:i}){return y.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eB[t]||"opacity"===t)}let nu=(t,e)=>e&&"number"==typeof t?e.transform(t):t,nh={...I.ai,transform:Math.round},nc={rotate:N.uj,rotateX:N.uj,rotateY:N.uj,rotateZ:N.uj,scale:I.hs,scaleX:I.hs,scaleY:I.hs,scaleZ:I.hs,skew:N.uj,skewX:N.uj,skewY:N.uj,distance:N.px,translateX:N.px,translateY:N.px,translateZ:N.px,x:N.px,y:N.px,z:N.px,perspective:N.px,transformPerspective:N.px,opacity:I.X4,originX:N.gQ,originY:N.gQ,originZ:N.px},nd={borderWidth:N.px,borderTopWidth:N.px,borderRightWidth:N.px,borderBottomWidth:N.px,borderLeftWidth:N.px,borderRadius:N.px,radius:N.px,borderTopLeftRadius:N.px,borderTopRightRadius:N.px,borderBottomRightRadius:N.px,borderBottomLeftRadius:N.px,width:N.px,maxWidth:N.px,height:N.px,maxHeight:N.px,top:N.px,right:N.px,bottom:N.px,left:N.px,padding:N.px,paddingTop:N.px,paddingRight:N.px,paddingBottom:N.px,paddingLeft:N.px,margin:N.px,marginTop:N.px,marginRight:N.px,marginBottom:N.px,marginLeft:N.px,backgroundPositionX:N.px,backgroundPositionY:N.px,...nc,zIndex:nh,fillOpacity:I.X4,strokeOpacity:I.X4,numOctaves:nh},np={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nm=v.length;function nf(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(y.has(t)){a=!0;continue}if((0,eF.j)(t)){r[t]=i;continue}{let e=nu(i,nd[t]);t.startsWith("origin")?(o=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(a||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<nm;s++){let a=v[s],o=t[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let t=nu(o,nd[a]);if(!l){r=!1;let e=np[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let ng=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nv(t,e,i){for(let n in e)(0,c.S)(e[n])||nl(n,i)||(t[n]=e[n])}let ny={offset:"stroke-dashoffset",array:"stroke-dasharray"},nx={offset:"strokeDashoffset",array:"strokeDasharray"};function nw(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...o},l,u,h){if(nf(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?ny:nx;t[s.offset]=N.px.transform(-n);let a=N.px.transform(e),o=N.px.transform(i);t[s.array]=`${a} ${o}`}(c,r,s,a,!1)}let nb=()=>({...ng(),attrs:{}}),nT=t=>"string"==typeof t&&"svg"===t.toLowerCase(),nM=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 nS(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nM.has(t)}let nP=t=>!nS(t);try{!function(t){t&&(nP=e=>e.startsWith("on")?!nS(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let nA=["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 nk(t){if("string"!=typeof t||t.includes("-"));else if(nA.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var nC=i(1459);let nE=t=>(e,i)=>{let r=(0,eE.useContext)(i8),a=(0,eE.useContext)(eD),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,r,a){return{latestValues:function(t,e,i,r){let a={},o=r(t,{});for(let t in o)a[t]=ez(o[t]);let{initial:l,animate:u}=t,h=nt(t),c=ne(t);e&&c&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!n(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=s(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(a[t]=e)}for(let e in t)a[e]=t[e]}}}return a}(i,r,a,t),renderState:e()}})(t,e,r,a);return i?o():(0,nC.M)(o)};function nD(t,e,i){let{style:n}=t,r={};for(let s in n)((0,c.S)(n[s])||e.style&&(0,c.S)(e.style[s])||nl(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(r[s]=n[s]);return r}let nV={useVisualState:nE({scrapeMotionValuesFromProps:nD,createRenderState:ng})};function nR(t,e,i){let n=nD(t,e,i);for(let i in t)((0,c.S)(t[i])||(0,c.S)(e[i]))&&(n[-1!==v.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let nj={useVisualState:nE({scrapeMotionValuesFromProps:nR,createRenderState:nb})},nL={current:null},nO={current:!1},nF=new WeakMap,nB=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),nI=t=>/^0[^.\s]+$/u.test(t);var nN=i(82093);let nW=t=>e=>e.test(t),nU=[I.ai,N.px,N.KN,N.uj,N.vw,N.vh,{test:t=>"auto"===t,parse:t=>t}],nG=t=>nU.find(nW(t)),n_=[...nU,nN.y,ty.f];var n$=i(69699);let nz=new Set(["brightness","contrast","saturate","opacity"]);function nq(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(n$.S)||[];if(!n)return t;let r=i.replace(n,""),s=+!!nz.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let nX=/\b([a-z-]*)\(.*?\)/gu,nK={...ty.f,getAnimatableNone:t=>{let e=t.match(nX);return e?e.map(nq).join(" "):t}},nY={...nd,color:nN.y,backgroundColor:nN.y,outlineColor:nN.y,fill:nN.y,stroke:nN.y,borderColor:nN.y,borderTopColor:nN.y,borderRightColor:nN.y,borderBottomColor:nN.y,borderLeftColor:nN.y,filter:nK,WebkitFilter:nK},nH=t=>nY[t];function nZ(t,e){let i=nH(t);return i!==nK&&(i=ty.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let nQ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
1class nJ{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=H,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=A.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,S.Gt.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=s;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=nt(e),this.isVariantNode=ne(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==o[t]&&(0,c.S)(e)&&e.set(o[t],!1)}}mount(t){this.current=t,nF.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),nO.current||function(){if(nO.current=!0,nn.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nL.current=t.matches;t.addListener(e),e()}else nL.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nL.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,S.WG)(this.notifyUpdate),(0,S.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=y.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&S.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ns){let e=ns[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):t5()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<nQ.length;e++){let i=nQ[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if((0,c.S)(r))t.addValue(n,r);else if((0,c.S)(s))t.addValue(n,(0,h.OQ)(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,h.OQ)(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,h.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){if("string"==typeof i&&(nB(i)||nI(i)))i=parseFloat(i);else{let n;n=i,!n_.find(nW(n))&&ty.f.test(e)&&(i=nZ(t,e))}this.setBaseTarget(t,(0,c.S)(i)?i.get():i)}return(0,c.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=s(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,c.S)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new io.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}let n0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,n1=new Set(["auto","none","0"]);class n2 extends H{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,eF.p)(n))){let r=function t(e,i,n=1){(0,tu.V)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=n0.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let t=a.trim();return nB(t)?parseFloat(t):t}return(0,eF.p)(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!tP.has(i)||2!==t.length)return;let[n,r]=t,s=nG(n),a=nG(r);if(s!==a)if(W(s)&&W(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else _[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||nI(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!n1.has(e)&&(0,ty.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=nZ(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=_[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}class n5 extends nJ{constructor(){super(...arguments),this.KeyframeResolver=n2}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,c.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function n3(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}class n9 extends n5{constructor(){super(...arguments),this.type="html",this.renderInstance=n3}readValueFromInstance(t,e){if(y.has(e))return this.projection?.isProjecting?O(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return F(i,e)})(t,e);{let i=window.getComputedStyle(t),n=((0,eF.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return es(t,e)}build(t,e,i){nf(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return nD(t,e,i)}}let n4=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"]);class n6 extends n5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=t5}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(y.has(e)){let t=nH(e);return t&&t.default||0}return e=n4.has(e)?e:m(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return nR(t,e,i)}build(t,e,i){nw(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in n3(t,e,void 0,n),e.attrs)t.setAttribute(n4.has(i)?i:m(i),e.attrs[i])}mount(t){this.isSVGTag=nT(t.tagName),super.mount(t)}}let n7=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((l={animation:{Feature:tN},exit:{Feature:tU},inView:{Feature:i4},tap:{Feature:i0},focus:{Feature:iq},hover:{Feature:iz},pan:{Feature:ek},drag:{Feature:eP,ProjectionNode:iW,MeasureLayout:eW},layout:{ProjectionNode:iW,MeasureLayout:eW}},u=(t,e)=>nk(t)?new n6(e):new n9(e,{allowProjection:t!==eE.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:a,Component:o}=t;function l(t,e){var i;let n,l={...(0,eE.useContext)(i7.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,eE.useContext)(eV).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:u}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if(nt(t)){let{initial:e,animate:i}=t;return{initial:!1===e||tD(e)?e:void 0,animate:tD(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,eE.useContext)(i8));return(0,eE.useMemo)(()=>({initial:e,animate:i}),[ni(e),ni(i)])}
1(t),c=a(t,u);if(!u&&nn.B){(0,eE.useContext)(i6).strict;let t=function(t){let{drag:e,layout:i}=ns;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);n=t.MeasureLayout,h.visualElement=function(t,e,i,n,r){let{visualElement:s}=(0,eE.useContext)(i8),a=(0,eE.useContext)(i6),o=(0,eE.useContext)(eD),l=(0,eE.useContext)(i7.Q).reducedMotion,u=(0,eE.useRef)(null);n=n||a.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:s,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let h=u.current,c=(0,eE.useContext)(eR);h&&!h.projection&&r&&("html"===h.type||"svg"===h.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||o&&eo(o),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,r,c);let d=(0,eE.useRef)(!1);(0,eE.useInsertionEffect)(()=>{h&&d.current&&h.update(i,o)});let p=i[f],m=(0,eE.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,no.E)(()=>{h&&(d.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),eI.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,eE.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),h}(o,c,l,r,t.ProjectionNode)}return(0,eC.jsxs)(i8.Provider,{value:h,children:[n&&h.visualElement?(0,eC.jsx)(n,{visualElement:h.visualElement,...l}):null,s(o,t,(i=h.visualElement,(0,eE.useCallback)(t=>{t&&c.onMount&&c.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):eo(e)&&(e.current=t))},[i])),c,u,h.visualElement)]})}n&&function(t){for(let e in t)ns[e]={...ns[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof o?o:"create(".concat(null!=(i=null!=(e=o.displayName)?e:o.name)?i:"",")"));let u=(0,eE.forwardRef)(l);return u[na]=o,u}({...nk(t)?nj:nV,preloadedFeatures:l,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let a=(nk(e)?function(t,e,i,n){let r=(0,eE.useMemo)(()=>{let i=nb();return nw(i,e,nT(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nv(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return nv(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,eE.useMemo)(()=>{let i=ng();return nf(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),o=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(nP(r)||!0===i&&nS(r)||!e&&!nS(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==eE.Fragment?{...o,...a,ref:n}:{},{children:u}=i,h=(0,eE.useMemo)(()=>(0,c.S)(u)?u.get():u,[u]);return(0,eE.createElement)(e,{...l,children:h})}}(e),createVisualElement:u,Component:t})}))},53733:(t,e,i)=>{"use strict";i.d(e,{H_:()=>t6,UC:()=>t5,YJ:()=>t3,q7:()=>t4,VF:()=>et,JU:()=>t9,ZL:()=>t2,z6:()=>t7,hN:()=>t8,bL:()=>t0,wv:()=>ee,Pb:()=>ei,G5:()=>er,ZP:()=>en,l9:()=>t1});var n=i(64343),r=i(85390),s=i(85361),a=i(33617),o=i(71844),l=i(33246),u=i(11511),h=i(46654),c=i(37164),d=i(52929),p=i(98073),m=i(36020),f=i(51574),g=i(29300),v=i(80708),y=i(88210),x=i(73991),w=i(69160),b=i(45275),T=i(17915),M=i(81791),S=["Enter"," "],P=["ArrowUp","PageDown","End"],A=["ArrowDown","PageUp","Home",...P],k={ltr:[...S,"ArrowRight"],rtl:[...S,"ArrowLeft"]},C={ltr:["ArrowLeft"],rtl:["ArrowRight"]},E="Menu",[D,V,R]=(0,u.N)(E),[j,L]=(0,a.A)(E,[R,f.Bk,y.RG]),O=(0,f.Bk)(),F=(0,y.RG)(),[B,I]=j(E),[N,W]=j(E),U=t=>{let{__scopeMenu:e,open:i=!1,children:r,dir:s,onOpenChange:a,modal:o=!0}=t,l=O(e),[u,c]=n.useState(null),d=n.useRef(!1),p=(0,w.c)(a),m=(0,h.jH)(s);return n.useEffect(()=>{let t=()=>{d.current=!0,document.addEventListener("pointerdown",e,{capture:!0,once:!0}),document.addEventListener("pointermove",e,{capture:!0,once:!0})},e=()=>d.current=!1;return document.addEventListener("keydown",t,{capture:!0}),()=>{document.removeEventListener("keydown",t,{capture:!0}),document.removeEventListener("pointerdown",e,{capture:!0}),document.removeEventListener("pointermove",e,{capture:!0})}},[]),(0,M.jsx)(f.bL,{...l,children:(0,M.jsx)(B,{scope:e,open:i,onOpenChange:p,content:u,onContentChange:c,children:(0,M.jsx)(N,{scope:e,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:m,modal:o,children:r})})})};U.displayName=E;var G=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t,r=O(i);return(0,M.jsx)(f.Mz,{...r,...n,ref:e})});G.displayName="MenuAnchor";var _="MenuPortal",[$,z]=j(_,{forceMount:void 0}),q=t=>{let{__scopeMenu:e,forceMount:i,children:n,container:r}=t,s=I(_,e);return(0,M.jsx)($,{scope:e,forceMount:i,children:(0,M.jsx)(v.C,{present:i||s.open,children:(0,M.jsx)(g.Z,{asChild:!0,container:r,children:n})})})};q.displayName=_;var X="MenuContent",[K,Y]=j(X),H=n.forwardRef((t,e)=>{let i=z(X,t.__scopeMenu),{forceMount:n=i.forceMount,...r}=t,s=I(X,t.__scopeMenu),a=W(X,t.__scopeMenu);return(0,M.jsx)(D.Provider,{scope:t.__scopeMenu,children:(0,M.jsx)(v.C,{present:n||s.open,children:(0,M.jsx)(D.Slot,{scope:t.__scopeMenu,children:a.modal?(0,M.jsx)(Z,{...r,ref:e}):(0,M.jsx)(Q,{...r,ref:e})})})})}),Z=n.forwardRef((t,e)=>{let i=I(X,t.__scopeMenu),a=n.useRef(null),o=(0,s.s)(e,a);return n.useEffect(()=>{let t=a.current;if(t)return(0,b.Eq)(t)},[]),(0,M.jsx)(tt,{...t,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:(0,r.m)(t.onF
1ocusOutside,t=>t.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),Q=n.forwardRef((t,e)=>{let i=I(X,t.__scopeMenu);return(0,M.jsx)(tt,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})}),J=(0,x.TL)("MenuContent.ScrollLock"),tt=n.forwardRef((t,e)=>{let{__scopeMenu:i,loop:a=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:h,onEntryFocus:m,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:x,onInteractOutside:w,onDismiss:b,disableOutsideScroll:S,...k}=t,C=I(X,i),E=W(X,i),D=O(i),R=F(i),j=V(i),[L,B]=n.useState(null),N=n.useRef(null),U=(0,s.s)(e,N,C.onContentChange),G=n.useRef(0),_=n.useRef(""),$=n.useRef(0),z=n.useRef(null),q=n.useRef("right"),Y=n.useRef(0),H=S?T.A:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(G.current),[]),(0,d.Oh)();let Z=n.useCallback(t=>{var e,i;return q.current===(null==(e=z.current)?void 0:e.side)&&function(t,e){return!!e&&function(t,e){let{x:i,y:n}=t,r=!1;for(let t=0,s=e.length-1;t<e.length;s=t++){let a=e[t],o=e[s],l=a.x,u=a.y,h=o.x,c=o.y;u>n!=c>n&&i<(h-l)*(n-u)/(c-u)+l&&(r=!r)}return r}({x:t.clientX,y:t.clientY},e)}(t,null==(i=z.current)?void 0:i.area)},[]);return(0,M.jsx)(K,{scope:i,searchRef:_,onItemEnter:n.useCallback(t=>{Z(t)&&t.preventDefault()},[Z]),onItemLeave:n.useCallback(t=>{var e;Z(t)||(null==(e=N.current)||e.focus(),B(null))},[Z]),onTriggerLeave:n.useCallback(t=>{Z(t)&&t.preventDefault()},[Z]),pointerGraceTimerRef:$,onPointerGraceIntentChange:n.useCallback(t=>{z.current=t},[]),children:(0,M.jsx)(H,{...S?{as:J,allowPinchZoom:!0}:void 0,children:(0,M.jsx)(p.n,{asChild:!0,trapped:o,onMountAutoFocus:(0,r.m)(l,t=>{var e;t.preventDefault(),null==(e=N.current)||e.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,M.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:x,onInteractOutside:w,onDismiss:b,children:(0,M.jsx)(y.bL,{asChild:!0,...R,dir:E.dir,orientation:"vertical",loop:a,currentTabStopId:L,onCurrentTabStopIdChange:B,onEntryFocus:(0,r.m)(m,t=>{E.isUsingKeyboardRef.current||t.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,M.jsx)(f.UC,{role:"menu","aria-orientation":"vertical","data-state":tC(C.open),"data-radix-menu-content":"",dir:E.dir,...D,...k,ref:U,style:{outline:"none",...k.style},onKeyDown:(0,r.m)(k.onKeyDown,t=>{let e=t.target.closest("[data-radix-menu-content]")===t.currentTarget,i=t.ctrlKey||t.altKey||t.metaKey,n=1===t.key.length;e&&("Tab"===t.key&&t.preventDefault(),!i&&n&&(t=>{var e,i;let n=_.current+t,r=j().filter(t=>!t.disabled),s=document.activeElement,a=null==(e=r.find(t=>t.ref.current===s))?void 0:e.textValue,o=function(t,e,i){var n;let r=e.length>1&&Array.from(e).every(t=>t===e[0])?e[0]:e,s=i?t.indexOf(i):-1,a=(n=Math.max(s,0),t.map((e,i)=>t[(n+i)%t.length]));1===r.length&&(a=a.filter(t=>t!==i));let o=a.find(t=>t.toLowerCase().startsWith(r.toLowerCase()));return o!==i?o:void 0}(r.map(t=>t.textValue),n,a),l=null==(i=r.find(t=>t.textValue===o))?void 0:i.ref.current;!function t(e){_.current=e,window.clearTimeout(G.current),""!==e&&(G.current=window.setTimeout(()=>t(""),1e3))}(n),l&&setTimeout(()=>l.focus())})(t.key));let r=N.current;if(t.target!==r||!A.includes(t.key))return;t.preventDefault();let s=j().filter(t=>!t.disabled).map(t=>t.ref.current);P.includes(t.key)&&s.reverse(),function(t){let e=document.activeElement;for(let i of t)if(i===e||(i.focus(),document.activeElement!==e))return}(s)}),onBlur:(0,r.m)(t.onBlur,t=>{t.currentTarget.contains(t.target)||(window.clearTimeout(G.current),_.current="")}),onPointerMove:(0,r.m)(t.onPointerMove,tV(t=>{let e=t.target,i=Y.current!==t.clientX;t.currentTarget.contains(e)&&i&&(q.current=t.clientX>Y.current?"right":"left",Y.current=t.clientX)}))})})})})})})});H.displayName=X;var te=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t;return(0,M.jsx)(l.sG.div,{role:"group",...n,ref:e})});te.displayName="MenuGroup";var ti=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t;return(0,M.jsx)(l.sG.div,{...n,ref:e})});ti.displayName="MenuLabel";var tn="MenuItem",tr="menu.itemSelect",ts=n.forwardRef((t,e)=>{let{disabled:i=!1,onSelect:a,...o}=t,u=n.useRef(null),h=W(tn,t.__scopeMenu),c=Y(tn,t.__scopeMenu),d=(0,s.s)(e,u),p=n.useRef(!1);return(0,M.jsx)(ta,{...o,ref:d,disabled:i,onClick:(0,r.m)(t.onClick,()=>{let t=u.current;if(!i&&t){let e=new CustomEvent(tr,{bubbles:!0,cancelable:!0});t.addEventListener(tr,t=>null==a?void 0:a(t),{once:!0}),(0,l.hO)(t,e),e.defaultPrevented?p.current=!1:h.onClose()}}),onPointerDown:e=>{var i;null==(i=t.onPointerDown)||i.call(t,e),p.current=!0},onPointerUp:(0,r.m)(t.onPointerUp,t=>{var e;p.current||null==(e=t.currentTarget)||e.click()}),onKeyDown:(0,r.m)(t.onKeyDown,t=>{let e=""!==c.searchRef.current;i||e&&" "===t.key||S.includes(t.key)&&(t.currentTarget.click(),t.preventDefault())})})});ts.displayName=tn;var ta=n.forwardRef((t,e)=>{let{__scopeMenu:i,disabled:a=!1,textValue:o,...u}=t,h=Y(tn,i),c=F(i),d=n.useRef(null),p=(0,s.s)(e,d),[m,f]=n.useState(!1),[g,v]=n.useState("");return n.useEffect(()=>{let t=d.current;if(t){var e;v((null!=(e=t.textContent)?e:"").trim())}},[u.children]),(0,M.jsx)(D.ItemSlot,{scope:i,disabled:a,textValue:null!=o?o:g,children:(0,M.jsx)(y.q7,{asChild:!0,...c,focusable:!a,children:(0,M.jsx)(l.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:p,onPointerMove:(0,r.m)(t.onPointerMove,tV(t=>{a?h.onItemLeave(t):(h.onItemEnter(t),t.defaultPrevented||t.currentTarget.focu
1s({preventScroll:!0}))})),onPointerLeave:(0,r.m)(t.onPointerLeave,tV(t=>h.onItemLeave(t))),onFocus:(0,r.m)(t.onFocus,()=>f(!0)),onBlur:(0,r.m)(t.onBlur,()=>f(!1))})})})}),to=n.forwardRef((t,e)=>{let{checked:i=!1,onCheckedChange:n,...s}=t;return(0,M.jsx)(tf,{scope:t.__scopeMenu,checked:i,children:(0,M.jsx)(ts,{role:"menuitemcheckbox","aria-checked":tE(i)?"mixed":i,...s,ref:e,"data-state":tD(i),onSelect:(0,r.m)(s.onSelect,()=>null==n?void 0:n(!!tE(i)||!i),{checkForDefaultPrevented:!1})})})});to.displayName="MenuCheckboxItem";var tl="MenuRadioGroup",[tu,th]=j(tl,{value:void 0,onValueChange:()=>{}}),tc=n.forwardRef((t,e)=>{let{value:i,onValueChange:n,...r}=t,s=(0,w.c)(n);return(0,M.jsx)(tu,{scope:t.__scopeMenu,value:i,onValueChange:s,children:(0,M.jsx)(te,{...r,ref:e})})});tc.displayName=tl;var td="MenuRadioItem",tp=n.forwardRef((t,e)=>{let{value:i,...n}=t,s=th(td,t.__scopeMenu),a=i===s.value;return(0,M.jsx)(tf,{scope:t.__scopeMenu,checked:a,children:(0,M.jsx)(ts,{role:"menuitemradio","aria-checked":a,...n,ref:e,"data-state":tD(a),onSelect:(0,r.m)(n.onSelect,()=>{var t;return null==(t=s.onValueChange)?void 0:t.call(s,i)},{checkForDefaultPrevented:!1})})})});tp.displayName=td;var tm="MenuItemIndicator",[tf,tg]=j(tm,{checked:!1}),tv=n.forwardRef((t,e)=>{let{__scopeMenu:i,forceMount:n,...r}=t,s=tg(tm,i);return(0,M.jsx)(v.C,{present:n||tE(s.checked)||!0===s.checked,children:(0,M.jsx)(l.sG.span,{...r,ref:e,"data-state":tD(s.checked)})})});tv.displayName=tm;var ty=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t;return(0,M.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});ty.displayName="MenuSeparator";var tx=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t,r=O(i);return(0,M.jsx)(f.i3,{...r,...n,ref:e})});tx.displayName="MenuArrow";var tw="MenuSub",[tb,tT]=j(tw),tM=t=>{let{__scopeMenu:e,children:i,open:r=!1,onOpenChange:s}=t,a=I(tw,e),o=O(e),[l,u]=n.useState(null),[h,c]=n.useState(null),d=(0,w.c)(s);return n.useEffect(()=>(!1===a.open&&d(!1),()=>d(!1)),[a.open,d]),(0,M.jsx)(f.bL,{...o,children:(0,M.jsx)(B,{scope:e,open:r,onOpenChange:d,content:h,onContentChange:c,children:(0,M.jsx)(tb,{scope:e,contentId:(0,m.B)(),triggerId:(0,m.B)(),trigger:l,onTriggerChange:u,children:i})})})};tM.displayName=tw;var tS="MenuSubTrigger",tP=n.forwardRef((t,e)=>{let i=I(tS,t.__scopeMenu),a=W(tS,t.__scopeMenu),o=tT(tS,t.__scopeMenu),l=Y(tS,t.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:c}=l,d={__scopeMenu:t.__scopeMenu},p=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let t=h.current;return()=>{window.clearTimeout(t),c(null)}},[h,c]),(0,M.jsx)(G,{asChild:!0,...d,children:(0,M.jsx)(ta,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":o.contentId,"data-state":tC(i.open),...t,ref:(0,s.t)(e,o.onTriggerChange),onClick:e=>{var n;null==(n=t.onClick)||n.call(t,e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:(0,r.m)(t.onPointerMove,tV(e=>{l.onItemEnter(e),!e.defaultPrevented&&(t.disabled||i.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{i.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,r.m)(t.onPointerLeave,tV(t=>{var e,n;p();let r=null==(e=i.content)?void 0:e.getBoundingClientRect();if(r){let e=null==(n=i.content)?void 0:n.dataset.side,s="right"===e,a=r[s?"left":"right"],o=r[s?"right":"left"];l.onPointerGraceIntentChange({area:[{x:t.clientX+(s?-5:5),y:t.clientY},{x:a,y:r.top},{x:o,y:r.top},{x:o,y:r.bottom},{x:a,y:r.bottom}],side:e}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(t),t.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,r.m)(t.onKeyDown,e=>{let n=""!==l.searchRef.current;if(!t.disabled&&(!n||" "!==e.key)&&k[a.dir].includes(e.key)){var r;i.onOpenChange(!0),null==(r=i.content)||r.focus(),e.preventDefault()}})})})});tP.displayName=tS;var tA="MenuSubContent",tk=n.forwardRef((t,e)=>{let i=z(X,t.__scopeMenu),{forceMount:a=i.forceMount,...o}=t,l=I(X,t.__scopeMenu),u=W(X,t.__scopeMenu),h=tT(tA,t.__scopeMenu),c=n.useRef(null),d=(0,s.s)(e,c);return(0,M.jsx)(D.Provider,{scope:t.__scopeMenu,children:(0,M.jsx)(v.C,{present:a||l.open,children:(0,M.jsx)(D.Slot,{scope:t.__scopeMenu,children:(0,M.jsx)(tt,{id:h.contentId,"aria-labelledby":h.triggerId,...o,ref:d,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:t=>{var e;u.isUsingKeyboardRef.current&&(null==(e=c.current)||e.focus()),t.preventDefault()},onCloseAutoFocus:t=>
1t.preventDefault(),onFocusOutside:(0,r.m)(t.onFocusOutside,t=>{t.target!==h.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,r.m)(t.onEscapeKeyDown,t=>{u.onClose(),t.preventDefault()}),onKeyDown:(0,r.m)(t.onKeyDown,t=>{let e=t.currentTarget.contains(t.target),i=C[u.dir].includes(t.key);if(e&&i){var n;l.onOpenChange(!1),null==(n=h.trigger)||n.focus(),t.preventDefault()}})})})})})});function tC(t){return t?"open":"closed"}function tE(t){return"indeterminate"===t}function tD(t){return tE(t)?"indeterminate":t?"checked":"unchecked"}function tV(t){return e=>"mouse"===e.pointerType?t(e):void 0}tk.displayName=tA;var tR="DropdownMenu",[tj,tL]=(0,a.A)(tR,[L]),tO=L(),[tF,tB]=tj(tR),tI=t=>{let{__scopeDropdownMenu:e,children:i,dir:r,open:s,defaultOpen:a,onOpenChange:l,modal:u=!0}=t,h=tO(e),c=n.useRef(null),[d,p]=(0,o.i)({prop:s,defaultProp:null!=a&&a,onChange:l,caller:tR});return(0,M.jsx)(tF,{scope:e,triggerId:(0,m.B)(),triggerRef:c,contentId:(0,m.B)(),open:d,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(t=>!t),[p]),modal:u,children:(0,M.jsx)(U,{...h,open:d,onOpenChange:p,dir:r,modal:u,children:i})})};tI.displayName=tR;var tN="DropdownMenuTrigger",tW=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,disabled:n=!1,...a}=t,o=tB(tN,i),u=tO(i);return(0,M.jsx)(G,{asChild:!0,...u,children:(0,M.jsx)(l.sG.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:(0,s.t)(e,o.triggerRef),onPointerDown:(0,r.m)(t.onPointerDown,t=>{!n&&0===t.button&&!1===t.ctrlKey&&(o.onOpenToggle(),o.open||t.preventDefault())}),onKeyDown:(0,r.m)(t.onKeyDown,t=>{!n&&(["Enter"," "].includes(t.key)&&o.onOpenToggle(),"ArrowDown"===t.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(t.key)&&t.preventDefault())})})})});tW.displayName=tN;var tU=t=>{let{__scopeDropdownMenu:e,...i}=t,n=tO(e);return(0,M.jsx)(q,{...n,...i})};tU.displayName="DropdownMenuPortal";var tG="DropdownMenuContent",t_=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...s}=t,a=tB(tG,i),o=tO(i),l=n.useRef(!1);return(0,M.jsx)(H,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...s,ref:e,onCloseAutoFocus:(0,r.m)(t.onCloseAutoFocus,t=>{var e;l.current||null==(e=a.triggerRef.current)||e.focus(),l.current=!1,t.preventDefault()}),onInteractOutside:(0,r.m)(t.onInteractOutside,t=>{let e=t.detail.originalEvent,i=0===e.button&&!0===e.ctrlKey,n=2===e.button||i;(!a.modal||n)&&(l.current=!0)}),style:{...t.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)"}})});t_.displayName=tG;var t$=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(te,{...r,...n,ref:e})});t$.displayName="DropdownMenuGroup";var tz=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(ti,{...r,...n,ref:e})});tz.displayName="DropdownMenuLabel";var tq=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(ts,{...r,...n,ref:e})});tq.displayName="DropdownMenuItem";var tX=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(to,{...r,...n,ref:e})});tX.displayName="DropdownMenuCheckboxItem";var tK=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(tc,{...r,...n,ref:e})});tK.displayName="DropdownMenuRadioGroup";var tY=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(tp,{...r,...n,ref:e})});tY.displayName="DropdownMenuRadioItem";var tH=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(tv,{...r,...n,ref:e})});tH.displayName="DropdownMenuItemIndicator";var tZ=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(ty,{...r,...n,ref:e})});tZ.displayName="DropdownMenuSeparator",n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(tx,{...r,...n,ref:e})}).displayName="DropdownMenuArrow";var tQ=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(tP,{...r,...n,ref:e})});tQ.displayName="DropdownMenuSubTrigger";var tJ=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tO(i);return(0,M.jsx)(tk,{...r,...n,ref:e,style:{...t.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)"}})});tJ.displayName="DropdownMenuSubContent";var t0=tI,t1=tW,t2=tU,t5=t_,t3=t$,t9=tz,t4=tq,t6=tX,t7=tK,t8=tY,et=tH,ee=tZ,ei=t=>{let{__scopeDropdownMenu:e,children:i,open:n,onOpenChange:r,defaultOpen:s}=t,a=tO(e),[l,u]=(0,o.i)({prop:n,defaultProp:null!=s&&s,onChange:r,caller:"DropdownMenuSub"});return(0,M.jsx)(tM,{...a,open:l,onOpenChange:u,children:i})},en=tQ,er=tJ}
1,54015:(t,e,i)=>{"use strict";i.d(e,{j:()=>r,p:()=>a});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),a=t=>!!s(t)&&o.test(t.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},54116:(t,e,i)=>{"use strict";i.d(e,{D:()=>n});let n=t=>Array.isArray(t)&&"number"==typeof t[0]},54762:(t,e,i)=>{"use strict";i.d(e,{X:()=>r,f:()=>n});let n=t=>1e3*t,r=t=>t/1e3},55526:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let n=(0,i(94059).A)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},57547:(t,e,i)=>{"use strict";i.d(e,{B:()=>l});var n=i(9134),r=i(95214),s=i(7327),a=i(28175);let o={...n.ai,transform:t=>Math.round((0,a.q)(0,255,t))},l={test:(0,s.$)("rgb","red"),parse:(0,s.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+o.transform(t)+", "+o.transform(e)+", "+o.transform(i)+", "+(0,r.a)(n.X4.transform(s))+")"}},57557:(t,e,i)=>{"use strict";i.d(e,{v:()=>r});var n=i(81721);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},57875:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let n=(0,i(94059).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},58217:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let n=(0,i(94059).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},61111:(t,e,i)=>{"use strict";i.d(e,{Q:()=>n});let n=(0,i(64343).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},61735:(t,e,i)=>{"use strict";i.d(e,{OQ:()=>u,bt:()=>o});var n=i(82064),r=i(98334),s=i(57557),a=i(51114);let o={current:void 0};class l{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=n.k.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=n.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),r.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,a.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},66353:(t,e,i)=>{"use strict";i.d(e,{B:()=>s});var n=i(49321),r=i(78124);
1function s({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:l,min:u,max:h,restDelta:c=.5,restSpeed:d}){let p,m,f=t[0],g={done:!1,value:f},v=i*e,y=f+v,x=void 0===l?y:l(y);x!==y&&(v=x-f);let w=t=>-v*Math.exp(-t/s),b=t=>x+w(t),T=t=>{let e=w(t),i=b(t);g.done=Math.abs(e)<=c,g.value=g.done?x:i},M=t=>{let e;if(e=g.value,void 0!==u&&e<u||void 0!==h&&e>h){var i;p=t,m=(0,n.o)({keyframes:[g.value,(i=g.value,void 0===u?h:void 0===h||Math.abs(u-i)<Math.abs(h-i)?u:h)],velocity:(0,r.Y)(b,t,g.value),damping:a,stiffness:o,restDelta:c,restSpeed:d})}};return M(0),{calculatedDuration:null,next:t=>{let e=!1;return(m||void 0!==p||(e=!0,T(t),M(t)),void 0!==p&&t>=p)?m.next(t-p):(e||T(t),g)}}}},67321:(t,e,i)=>{"use strict";i.d(e,{Y:()=>n,t:()=>r});let n=2e4;function r(t){let e=0,i=t.next(e);for(;!i.done&&e<n;)e+=50,i=t.next(e);return e>=n?1/0:e}},68217:(t,e,i)=>{"use strict";i.d(e,{B:()=>n});let n="undefined"!=typeof window},69699:(t,e,i)=>{"use strict";i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},70506:(t,e,i)=>{"use strict";i.d(e,{K:()=>n});let n=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t(e/(r-1))+", ";return`linear(${n.substring(0,n.length-2)})`}},71130:(t,e,i)=>{"use strict";i.d(e,{W:()=>n});let n={}},73395:(t,e,i)=>{"use strict";i.d(e,{J:()=>n});let n=(0,i(12098).p)(()=>void 0!==window.ScrollTimeline)},74035:(t,e,i)=>{"use strict";i.d(e,{KN:()=>s,gQ:()=>u,px:()=>a,uj:()=>r,vh:()=>o,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),a=n("px"),o=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},75534:(t,e,i)=>{"use strict";i.d(e,{u:()=>r});var n=i(57547);let r={test:(0,i(7327).$)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.B.transform}},76444:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let n=(0,i(94059).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},77118:(t,e,i)=>{"use strict";i.d(e,{D:()=>u,N:()=>h});var n=i(64343),r=["light","dark"],s="(prefers-color-scheme: dark)",a="undefined"==typeof window,o=n.createContext(void 0),l={setTheme:t=>{},themes:[]},u=()=>{var t;return null!=(t=n.useContext(o))?t:l},h=t=>n.useContext(o)?t.children:n.createElement(d,{...t}),c=["light","dark"],d=t=>{let{forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:a=!0,enableColorScheme:l=!0,storageKey:u="theme",themes:h=c,defaultTheme:d=a?"system":"light",attribute:v="data-theme",value:y,children:x,nonce:w}=t,[b,T]=n.useState(()=>m(u,d)),[M,S]=n.useState(()=>m(u)),P=y?Object.values(y):h,A=n.useCallback(t=>{let e=t;if(!e)return;"system"===t&&a&&(e=g());let n=y?y[e]:e,s=i?f():null,o=document.documentElement;if("class"===v?(o.classList.remove(...P),n&&o.classList.add(n)):n?o.setAttribute(v,n):o.removeAttribute(v),l){let t=r.includes(d)?d:null,i=r.includes(e)?e:t;o.style.colorScheme=i}null==s||s()},[]),k=n.useCallback(t=>{let e="function"==typeof t?t(t):t;T(e);try{localStorage.setItem(u,e)}catch(t){}},[e]),C=n.useCallback(t=>{S(g(t)),"system"===b&&a&&!e&&A("system")},[b,e]);n.useEffect(()=>{let t=window.matchMedia(s);return t.addListener(C),C(t),()=>t.removeListener(C)},[C]),n.useEffect(()=>{let t=t=>{t.key===u&&k(t.newValue||d)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[k]),n.useEffect(()=>{A(null!=e?e:b)},[e,b]);let E=n.useMemo(()=>({theme:b,setTheme:k,forcedTheme:e,resolvedTheme:"system"===b?M:b,themes:a?[...h,"system"]:h,systemTheme:a?M:void 0}),[b,k,e,M,a,h]);return n.createElement(o.Provider,{value:E},n.createElement(p,{forcedTheme:e,disableTransitionOnChange:i,enableSystem:a,enableColorScheme:l,storageKey:u,themes:h,defaultTheme:d,attribute:v,value:y,children:x,attrs:P,nonce:w}),x)},p=n.memo(t=>{let{forcedTheme:e,storageKey:i,attribute:a,enableSystem:o,enableColorScheme:l,defaultTheme:u,value:h,attrs:c,nonce:d}=t,p="system"===u,m="class"===a?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(c.map(t=>"'".concat(t,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(a,"',s='setAttribute';"),f=l?(r.includes(u)?u:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(u,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=h?h[t]:t,s=e?t+"|| ''":"'".concat(n,"'"),o="";return l&&i&&!e&&r.includes(t)&&(o+="d.style.colorScheme = '".concat(t,"';")),"class"===a?e||n?o+="c.add(".concat(s,")"):o+="null":n&&(o+="d[s](n,".concat(s,")")),o},v=e?"!function(){".concat(m).concat(g(e),"}()"):o?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(i,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(s,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(g("dark"),"}
1else{").concat(g("light"),"}}else if(e){").concat(h?"var x=".concat(JSON.stringify(h),";"):"").concat(g(h?"x[e]":"e",!0),"}").concat(p?"":"else{"+g(u,!1,!1)+"}").concat(f,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(i,"');if(e){").concat(h?"var x=".concat(JSON.stringify(h),";"):"").concat(g(h?"x[e]":"e",!0),"}else{").concat(g(u,!1,!1),";}").concat(f,"}catch(t){}}();");return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})}),m=(t,e)=>{let i;if(!a){try{i=localStorage.getItem(t)||void 0}catch(t){}return i||e}},f=()=>{let t=document.createElement("style");return t.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},g=t=>(t||(t=window.matchMedia(s)),t.matches?"dark":"light")},78124:(t,e,i)=>{"use strict";i.d(e,{Y:()=>r});var n=i(51114);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.f)(i-t(r),e-r)}},78161:(t,e,i)=>{"use strict";i.d(e,{E:()=>o});var n=i(66353),r=i(80416),s=i(49321);let a={decay:n.B,inertia:n.B,tween:r.i,keyframes:r.i,spring:s.o};function o(t){"string"==typeof t.type&&(t.type=a[t.type])}},80416:(t,e,i)=>{"use strict";i.d(e,{i:()=>v});var n=i(7826),r=i(86614),s=i(93910);let a=(0,s.A)(.42,0,1,1),o=(0,s.A)(0,0,.58,1),l=(0,s.A)(.42,0,.58,1);var u=i(16329),h=i(6196),c=i(95872),d=i(93821),p=i(34529),m=i(54116);let f={linear:h.l,easeIn:a,easeInOut:l,easeOut:o,circIn:p.po,circInOut:p.tn,circOut:p.yT,backIn:d.dg,backInOut:d.ZZ,backOut:d.Sz,anticipate:c.b},g=t=>{if((0,m.D)(t)){(0,u.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return(0,s.A)(e,i,n,r)}return"string"==typeof t?((0,u.V)(void 0!==f[t],`Invalid easing type '${t}'`),f[t]):t};function v({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var a;let o=Array.isArray(s)&&"number"!=typeof s[0]?s.map(g):g(s),u={done:!1,value:e[0]},h=(a=i&&i.length===e.length?i:(0,r.Z)(e),a.map(e=>e*t)),c=(0,n.G)(h,e,{ease:Array.isArray(o)?o:e.map(()=>o||l).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(u.value=c(e),u.done=e>=t,u)}}},81721:(t,e,i)=>{"use strict";function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>r,Kq:()=>n})},82064:(t,e,i)=>{"use strict";let n;i.d(e,{k:()=>o});var r=i(98334),s=i(71130);function a(){n=void 0}let o={now:()=>(void 0===n&&o.set(r.uv.isProcessing||s.W.useManualTiming?r.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(a)}}},82093:(t,e,i)=>{"use strict";i.d(e,{y:()=>a});var n=i(75534),r=i(7607),s=i(57547);let a={test:t=>s.B.test(t)||n.u.test(t)||r.V.test(t),parse:t=>s.B.test(t)?s.B.parse(t):r.V.test(t)?r.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.B.transform(t):r.V.transform(t)}},83908:(t,e,i)=>{"use strict";i.d(e,{z:()=>g});var n=i(64343),r=i(61111),s=i(1459),a=i(61735);function o(t){let e=(0,s.M)(()=>(0,a.OQ)(t)),{isStatic:i}=(0,n.useContext)(r.Q);if(i){let[,i]=(0,n.useState)(t);(0,n.useEffect)(()=>e.on("change",i),[])}return e}var l=i(46057),u=i(98334);function h(t,e){let i=o(e()),n=()=>i.set(e());return n(),(0,l.E)(()=>{let e=()=>u.Gt.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,u.WG)(n)}}),i}var c=i(7826);function d(t,e){let i=(0,s.M)(()=>[]);return h(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}var p=i(34752),m=i(19310);function f(t){return"number"==typeof t?t:parseFloat(t)}function g(t,e={}){let{isStatic:i}=(0,n.useContext)(r.Q),s=()=>(0,m.S)(t)?t.get():t;if(i)return function(t,e,i,n){if("function"==typeof t){a.bt.current=[],t();let e=h(a.bt.current,t);return a.bt.current=void 0,e}let r=function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],r=t[1+i],s=t[2+i],a=t[3+i],o=(0,c.G)(r,s,a);return e?o(n):o}(void 0,void 0,void 0);return Array.isArray(t)?d(t,r):d([t],([t])=>r(t))}(s);let l=o(s());return(0,n.useInsertionEffect)(()=>
1(function(t,e,i){let n,r,s=t.get(),a=null,o=s,l="string"==typeof s?s.replace(/[\d.-]/g,""):void 0,h=()=>{a&&(a.stop(),a=null)},c=()=>{h(),a=new p.s({keyframes:[f(t.get()),f(o)],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:n})};return t.attach((e,i)=>(o=e,n=t=>{var e,n;return i((e=t,(n=l)?e+n:e))},u.Gt.postRender(c),t.get()),h),(0,m.S)(e)&&(r=e.on("change",e=>{var i,n;return t.set((i=e,(n=l)?i+n:i))}),t.on("destroy",r)),r})(l,t,e),[l,JSON.stringify(e)]),l}},86488:(t,e,i)=>{"use strict";i.d(e,{F:()=>r});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},86614:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var n=i(19921),r=i(7689);function s(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let a=(0,r.q)(0,e,s);t.push((0,n.k)(i,1,a))}}(e,t.length-1),e}},88036:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});let n=(0,i(94059).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},93158:(t,e,i)=>{"use strict";function n(t){return"object"==typeof t&&null!==t}i.d(e,{G:()=>n})},93700:(t,e,i)=>{"use strict";i.d(e,{I:()=>a});let n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var r=i(96875),s=i(71130);function a(t,e){let i=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,u=n.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){o.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(l=t,s){a=!0;return}s=!0,[i,n]=[n,i],i.forEach(h),e&&r.Q.value&&r.Q.value.frameloop[e].push(u),u=0,i.clear(),s=!1,a&&(a=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:p,update:m,preRender:f,render:g,postRender:v}=u,y=()=>{let n=s.W.useManualTiming?o.timestamp:performance.now();i=!1,s.W.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(n-o.timestamp,40),1)),o.timestamp=n,o.isProcessing=!0,h.process(o),c.process(o),d.process(o),p.process(o),m.process(o),f.process(o),g.process(o),v.process(o),o.isProcessing=!1,i&&e&&(a=!1,t(y))};return{schedule:n.reduce((e,n)=>{let r=u[n];return e[n]=(e,n=!1,s=!1)=>(!i&&(i=!0,a=!0,o.isProcessing||t(y)),r.schedule(e,n,s)),e},{}),cancel:t=>{for(let e=0;e<n.length;e++)u[n[e]].cancel(t)},state:o,steps:u}}},93821:(t,e,i)=>{"use strict";i.d(e,{Sz:()=>a,ZZ:()=>l,dg:()=>o});var n=i(93910),r=i(47820),s=i(26591);let a=(0,n.A)(.33,1.53,.69,.99),o=(0,s.G)(a),l=(0,r.V)(o)},93910:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(6196);let r=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function s(t,e,i,s){return t===e&&i===s?n.l:n=>0===n||1===n?n:r(function(t,e,i,n,s){let a,o,l=0;do(a=r(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(a)>1e-7&&++l<12);return o}(n,0,1,t,i),e,s)}},95214:(t,e,i)=>{"use strict";i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},95872:(t,e,i)=>{"use strict";i.d(e,{b:()=>r});var n=i(93821);let r=t=>(t*=2)<1?.5*(0,n.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},96013:(t,e,i)=>{"use strict";i.d(e,{j:()=>S});var n=i(54015),r=i(82093),s=i(51821),a=i(75534),o=i(7607);function l(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var u=i(57547);function h(t,e){return i=>i>0?e:t}var c=i(19921),d=i(16329);let p=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},m=[a.u,u.B,o.V];function f(t){let e=m.find(e=>e.test(t));if((0,d.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===o.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;r=l(o,n,t+1/3),s=l(o,n,t),a=l(o,n,t-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let g=(t,e)=>{let i=f(t),n=f(e);if(!i||!n)return h(t,e);let r={...i};return t=>(r.red=p(i.red,n.red,t),r.green=p(i.green,n.green,t),r.blue=p(i.blue,n.blue,t),r.alpha=(0,c.k)(i.alpha,n.alpha,t),u.B.transform(r))},v=new Set(["none","hidden"]);var y=i(86488);function x(t,e){return i=>(0,c.k)(t,e,i)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,n.p)(t)?h:r.y.test(t)?g:M:Array.isArray(t)?b:"object"==typeof t?r.y.test(t)?g:T:h}function b(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function T(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=w(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let M=(t,e)=>{let i=s.f.createTransformer(e),n=(0,s.V)(t),r=(0,s.V)(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?v.has(t)&&!r.values.length||v.has(e)&&!n.values.length?function(t,e){return v.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,y.F)(b(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],a=t.indexes[s][n[s]],o=t.values[a]??0;i[r]=o,n[s]++}return i}(n,r),r.values),i):((0,d.$)(!0,`Complex values '${t}' and '${e}
1' 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.`),h(t,e))};function S(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,c.k)(t,e,i):w(t)(t,e)}},96875:(t,e,i)=>{"use strict";i.d(e,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},98334:(t,e,i)=>{"use strict";i.d(e,{Gt:()=>s,PP:()=>l,WG:()=>a,uv:()=>o});var n=i(93700),r=i(6196);let{schedule:s,cancel:a,state:o,steps:l}=(0,n.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)}}]);

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.