https://www.warcraftcn.com/_next/static/chunks/0mhj-e~bli~3z.js?dpl=dpl_CPtE17fegkGZTGUsRYKT9M7TUwMg
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,257987,e=>{"use strict";var t=e.i(958653);e.i(151708);var n=e.i(493739),i=e.i(154512),r=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let o=(0,n.createSlot)(`Primitive.${r}`),s=t.forwardRef((e,t)=>{let{asChild:n,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(n?o:r,{...s,ref:t})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});e.s(["Primitive",0,r])},570391,e=>{"use strict";var t=e.i(958653),n=e.i(18731);e.s(["useSize",0,function(e){let[i,r]=t.useState(void 0);return(0,n.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),i}])},845311,e=>{"use strict";var t=e.i(958653);let n=["top","right","bottom","left"],i=Math.min,r=Math.max,o=Math.round,s=Math.floor,a=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function c(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function f(e){return"y"===e?"height":"width"}let m=new Set(["top","bottom"]);function g(e){return m.has(c(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>u[e])}let y=["left","right"],x=["right","left"],w=["top","bottom"],b=["bottom","top"];function T(e){return e.replace(/left|right|bottom|top/g,e=>l[e])}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function S(e){let{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function P(e,t,n){let i,{reference:r,floating:o}=e,s=g(t),a=p(g(t)),l=f(a),u=c(t),d="y"===s,m=r.x+r.width/2-o.width/2,v=r.y+r.height/2-o.height/2,y=r[l]/2-o[l]/2;switch(u){case"top":i={x:m,y:r.y-o.height};break;case"bottom":i={x:m,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:v};break;case"left":i={x:r.x-o.width,y:v};break;default:i={x:r.x,y:r.y}}switch(h(t)){case"start":i[a]-=y*(n&&d?-1:1);break;case"end":i[a]+=y*(n&&d?-1:1)}return i}async function R(e,t){var n;void 0===t&&(t={});let{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=d(t,e),m=C(f),g=a[p?"floating"===h?"reference":"floating":h],v=S(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===h?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),w=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},b=S(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:l}):y);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}let E=async(e,t,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:c}=P(u,i,l),h=i,p={},f=0;for(let n=0;n<a.length;n++){var m;let{name:o,fn:g}=a[n],{x:v,y:y,data:x,reset:w}=await g({x:d,y:c,initialPlacement:i,placement:h,strategy:r,middlewareData:p,rects:u,platform:{...s,detectOverflow:null!=(m=s.detectOverflow)?m:R},elements:{reference:e,floating:t}});d=null!=v?v:d,c=null!=y?y:c,p={...p,[o]:{...p[o],...x}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:r}):w.rects),{x:d,y:c}=P(u,h,l)),n=-1)}return{x:d,y:c,placement:h,strategy:r,middlewareData:p}};function k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A(e){return n.some(t=>e[t]>=0)}let M=new Set(["left","top"]);async function j(e,t){let{placement:n,platform:i,elements:r}=e,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),s=c(n),a=h(n),l="y"===g(n),u=M.has(s)?-1:1,p=o&&l?-1:1,f=d(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}
1:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof y&&(v="end"===a?-1*y:y),l?{x:v*p,y:m*u}:{x:m*u,y:v*p}}function D(){return"u">typeof window}function L(e){return O(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(O(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function O(e){return!!D()&&(e instanceof Node||e instanceof V(e).Node)}function F(e){return!!D()&&(e instanceof Element||e instanceof V(e).Element)}function N(e){return!!D()&&(e instanceof HTMLElement||e instanceof V(e).HTMLElement)}function B(e){return!(!D()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof V(e).ShadowRoot)}let _=new Set(["inline","contents"]);function H(e){let{overflow:t,overflowX:n,overflowY:i,display:r}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!_.has(r)}let z=new Set(["table","td","th"]),U=[":popover-open",":modal"];function $(e){return U.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let W=["transform","translate","scale","rotate","perspective"],G=["transform","translate","scale","rotate","perspective","filter"],K=["paint","layout","strict","content"];function X(e){let t=Y(),n=F(e)?J(e):e;return W.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||G.some(e=>(n.willChange||"").includes(e))||K.some(e=>(n.contain||"").includes(e))}function Y(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let q=new Set(["html","body","#document"]);function Z(e){return q.has(L(e))}function J(e){return V(e).getComputedStyle(e)}function Q(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===L(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||I(e);return B(t)?t.host:t}function et(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=ee(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:N(n)&&H(n)?n:e(n)}(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),s=V(r);if(o){let e=en(s);return t.concat(s,s.visualViewport||[],H(r)?r:[],e&&n?et(e):[])}return t.concat(r,et(r,[],n))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=J(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,r=N(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:i,l=o(n)!==s||o(i)!==a;return l&&(n=s,i=a),{width:n,height:i,$:l}}function er(e){return F(e)?e:e.contextElement}function eo(e){let t=er(e);if(!N(t))return a(1);let n=t.getBoundingClientRect(),{width:i,height:r,$:s}=ei(t),l=(s?o(n.width):n.width)/i,u=(s?o(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let es=a(0);function ea(e){let t=V(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function el(e,t,n,i){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=er(e),l=a(1);t&&(i?F(i)&&(l=eo(i)):l=eo(e));let u=(void 0===(r=n)&&(r=!1),i&&(!r||i===V(s))&&r)?ea(s):a(0),d=(o.left+u.x)/l.x,c=(o.top+u.y)/l.y,h=o.width/l.x,p=o.height/l.y;if(s){let e=V(s),t=i&&F(i)?V(i):i,n=e,r=en(n);for(;r&&i&&t!==n;){let e=eo(r),t=r.getBoundingClientRect(),i=J(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;d*=e.x,c*=e.y,h*=e.x,p*=e.y,d+=o,c+=s,r=en(n=V(r))}}return S({width:h,height:p,x:d,y:c})}function eu(e,t){let n=Q(e).scrollLeft;return t?t.left+n:el(I(e)).left+n}function ed(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eu(e,n),y:n.top+t.scrollTop}}let ec=new Set(["absolute","fixed"]);function eh(e,t,n){var i;let o;if("viewport"===t)o=function(e,t){let n=V(e),i=I(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;let e=Y();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}let u=eu(i);if(u<=0){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(i.clientWidth-t.clientWidth-r);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t){let t,n,s,a,l,u,d;
1i=I(e),t=I(i),n=Q(i),s=i.ownerDocument.body,a=r(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=r(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight),u=-n.scrollLeft+eu(i),d=-n.scrollTop,"rtl"===J(s).direction&&(u+=r(t.clientWidth,s.clientWidth)-a),o={width:a,height:l,x:u,y:d}}else if(F(t)){let e,i,r,s,l,u;i=(e=el(t,!0,"fixed"===n)).top+t.clientTop,r=e.left+t.clientLeft,s=N(t)?eo(t):a(1),l=t.clientWidth*s.x,u=t.clientHeight*s.y,o={width:l,height:u,x:r*s.x,y:i*s.y}}else{let n=ea(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(o)}function ep(e){return"static"===J(e).position}function ef(e,t){if(!N(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function em(e,t){var n;let i=V(e);if($(e))return i;if(!N(e)){let t=ee(e);for(;t&&!Z(t);){if(F(t)&&!ep(t))return t;t=ee(t)}return i}let r=ef(e,t);for(;r&&(n=r,z.has(L(n)))&&ep(r);)r=ef(r,t);return r&&Z(r)&&ep(r)&&!X(r)?i:r||function(e){let t=ee(e);for(;N(t)&&!Z(t);){if(X(t))return t;if($(t))break;t=ee(t)}return null}(e)||i}let eg=async function(e){let t=this.getOffsetParent||em,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=N(t),r=I(t),o="fixed"===n,s=el(e,!0,o,t),l={scrollLeft:0,scrollTop:0},u=a(0);if(i||!i&&!o)if(("body"!==L(t)||H(r))&&(l=Q(t)),i){let e=el(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else r&&(u.x=eu(r));o&&!i&&r&&(u.x=eu(r));let d=!r||i||o?a(0):ed(r,l);return{x:s.left+l.scrollLeft-u.x-d.x,y:s.top+l.scrollTop-u.y-d.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e,o="fixed"===r,s=I(i),l=!!t&&$(t.floating);if(i===s||l&&o)return n;let u={scrollLeft:0,scrollTop:0},d=a(1),c=a(0),h=N(i);if((h||!h&&!o)&&(("body"!==L(i)||H(s))&&(u=Q(i)),N(i))){let e=el(i);d=eo(i),c.x=e.x+i.clientLeft,c.y=e.y+i.clientTop}let p=!s||h||o?a(0):ed(s,u);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+c.x+p.x,y:n.y*d.y-u.scrollTop*d.y+c.y+p.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:s}=e,a=[..."clippingAncestors"===n?$(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=et(e,[],!1).filter(e=>F(e)&&"body"!==L(e)),r=null,o="fixed"===J(e).position,s=o?ee(e):e;for(;F(s)&&!Z(s);){let t=J(s),n=X(s);n||"fixed"!==t.position||(r=null),(o?!n&&!r:!n&&"static"===t.position&&!!r&&ec.has(r.position)||H(s)&&!n&&function e(t,n){let i=ee(t);return!(i===n||!F(i)||Z(i))&&("fixed"===J(i).position||e(i,n))}(e,s))?i=i.filter(e=>e!==s):r=t,s=ee(s)}return t.set(e,i),i}(t,this._c):[].concat(n),o],l=a[0],u=a.reduce((e,n)=>{let o=eh(t,n,s);return e.top=r(o.top,e.top),e.right=i(o.right,e.right),e.bottom=i(o.bottom,e.bottom),e.left=r(o.left,e.left),e},eh(t,l,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:em,getElementRects:eg,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ei(e);return{width:t,height:n}},getScale:eo,isElement:F,isRTL:function(e){return"rtl"===J(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ex=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:s,rects:a,platform:l,elements:u,middlewareData:c}=t,{element:m,padding:v=0}=d(e,t)||{};if(null==m)return{};let y=C(v),x={x:n,y:o},w=p(g(s)),b=f(w),T=await l.getDimensions(m),S="y"===w,P=S?"clientHeight":"clientWidth",R=a.reference[b]+a.reference[w]-x[w]-a.floating[b],E=x[w]-a.reference[w],k=await (null==l.getOffsetParent?void 0:l.getOffsetParent(m)),A=k?k[P]:0;A&&await (null==l.isElement?void 0:l.isElement(k))||(A=u.floating[P]||a.floating[b]);let M=A/2-T[b]/2-1,j=i(y[S?"top":"left"],M),D=i(y[S?"bottom":"right"],M),L=A-T[b]-D,V=A/2-T[b]/2+(R/2-E/2),I=r(j,i(V,L)),O=!c.arrow&&null!=h(s)&&V!==I&&a.reference[b]/2-(V<j?j:D)-T[b]/2<0,F=O?V<j?V-j:V-L:0;return{[w]:x[w]+F,data:{[w]:I,centerOffset:V-I-F,...O&&{alignmentOffset:F}},reset:O}}});var ew=e.i(151708),eb="u">typeof document?t.useLayoutEffect:function(){};function eT(e,t){let n,i,r;if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(i=n;0!=i--;)if(!eT(e[i],t[i]))return!1;return!0}if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!e.$$typeof)&&!eT(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eC(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eS(e,t){let n=eC(e);return Math.round(t*n)/n}function eP(e){let n=t.useRef(e);return eb(()=>{n.current=e}),n}var eR=e.i(285565),eE=e.i(154512),ek=t.forwardRef((e,t)=>{let{children:n,width:i=10,height:r=5,...o}=e;return(0,eE.jsx)(eR.Primitive.svg,{...o,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eE.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ek.displayName="Arrow";var eA=e.i(922353),eM=e.i(9413),ej=e.i(488248),eD=e.i(18731),eL=e.i(570391),eV="Popper",[eI,eO]=(0,eM.createContextScope)(eV),[eF,eN]=eI(eV),eB=e=>{let{__scopePopper:n,children:i}=e,[r,o]=t.useState(null);return(0,eE.jsx)(eF,{scope:n,anchor:r,onAnchorChange:o,children:i})};eB.displayName=eV;var e_="PopperAnchor",eH=t.forwardRef((e,n)=>{let{__scopePopper:i,virtualRef:r,...o}=e,s=eN(e_,i),a=t.useRef(null),l=(0,eA.useComposedRefs)(n,a),u=t.useRef(null);return t.useEffect(()=>{let e=u.current;u.current=r?.current||a.current,e!==u.current&&s.onAnchorChange(u.current)}),r?null:(0,eE.jsx)(eR.Primitive.div,{...o,ref:l})});eH.displayName=e_;var ez="PopperContent",[eU,e$]=eI(ez),eW=t.forwardRef((e,n)=>{var o,a,l,u,m,C,S,P,R,D,L,V,O,F,N,B,_,H,z,U,$;let{__scopePopper:W,side:G="bottom",sideOffset:K=0,align:X="center",alignOffset:Y=0,arrowPadding:q=0,avoidCollisions:Z=!0,collisionBoundary:J=[],collisionPadding:Q=0,sticky:ee="partial",hideWhenDetached:en=!1,updatePositionStrategy:ei="optimized",onPlaced:eo,...es}=e,ea=eN(ez,W),[eu,ed]=t.useState(null),ec=(0,eA.useComposedRefs)(n,e=>ed(e)),[eh,ep]=t.useState(null),ef=(0,eL.useSize)(eh),em=ef?.width??0,eg=ef?.height??0,ek="number"==typeof Q?Q:{top:0,right:0,bottom:0,left:0,...Q},eM=Array.isArray(J)?J:[J],eV=eM.length>0,eI={padding:ek,boundary:eM.filter(eY),altBoundary:eV},{refs:eO,floatingStyles:eF,placement:eB,isPositioned:e_,middlewareData:eH}=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[c,h]=t.useState({x:0,y:0,strategy:i,placement:n,middlewareData:{},isPositioned:!1}),[p,f]=t.useState(r);eT(p,r)||f(r);let[m,g]=t.useState(null),[v,y]=t.useState(null),x=t.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),w=t.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),b=s||m,T=a||v,C=t.useRef(null),S=t.useRef(null),P=t.useRef(c),R=null!=u,k=eP(u),A=eP(o),M=eP(d),j=t.useCallback(()=>{var e,t;let r,o,s;if(!C.current||!S.current)return;let a={placement:n,strategy:i,middleware:p};A.current&&(a.platform=A.current),(e=C.current,t=S.current,r=new Map,s={...(o={platform:ev,...a}).platform,_c:r},E(e,t,{...o,platform:s})).then(e=>{let t={...e,isPositioned:!1!==M.current};D.current&&!eT(P.current,t)&&(P.current=t,ew.flushSync(()=>{h(t)}))})},[p,n,i,A,M]);eb(()=>{!1===d&&P.current.isPositioned&&(P.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[d]);let D=t.useRef(!1);eb(()=>(D.current=!0,()=>{D.current=!1}),[]),eb(()=>{if(b&&(C.current=b),T&&(S.current=T),b&&T){if(k.current)return k.current(b,T,j);j()}},[b,T,j,k,R]);let L=t.useMemo(()=>({reference:C,floating:S,setReference:x,setFloating:w}),[x,w]),V=t.useMemo(()=>({reference:b,floating:T}),[b,T]),I=t.useMemo(()=>{let e={position:i,left:0,top:0};if(!V.floating)return e;let t=eS(V.floating,c.x),n=eS(V.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...eC(V.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:t,top:n}},[i,l,V.floating,c.x,c.y]);return t.useMemo(()=>({...c,update:j,refs:L,elements:V,floatingStyles:I}),[c,j,L,V,I])}({strategy:"fixed",placement:G+("center"!==X?"-"+X:""),whileElementsMounted:(...e)=>(function(e,t,n,o){let a;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:d="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:h=!1}=o,p=er(e),f=l||u?[...p?et(p):[],...et(t)]:[];
1f.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&c?function(e,t){let n,o=null,a=I(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function u(d,c){void 0===d&&(d=!1),void 0===c&&(c=1),l();let h=e.getBoundingClientRect(),{left:p,top:f,width:m,height:g}=h;if(d||t(),!m||!g)return;let v={rootMargin:-s(f)+"px "+-s(a.clientWidth-(p+m))+"px "+-s(a.clientHeight-(f+g))+"px "+-s(p)+"px",threshold:r(0,i(1,c))||1},y=!0;function x(t){let i=t[0].intersectionRatio;if(i!==c){if(!y)return u();i?u(!1,i):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==i||ey(h,e.getBoundingClientRect())||u(),y=!1}try{o=new IntersectionObserver(x,{...v,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(x,v)}o.observe(e)}(!0),l}(p,n):null,g=-1,v=null;d&&(v=new ResizeObserver(e=>{let[i]=e;i&&i.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!h&&v.observe(p),v.observe(t));let y=h?el(e):null;return h&&function t(){let i=el(e);y&&!ey(y,i)&&n(),y=i,a=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,h&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===ei}),elements:{reference:ea.anchor},middleware:[{...{name:"offset",options:l=o={mainAxis:K+eg,alignmentAxis:Y},async fn(e){var t,n;let{x:i,y:r,placement:o,middlewareData:s}=e,a=await j(e,l);return o===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:o}}}},options:[o,a]},Z&&{...{name:"shift",options:R=S={mainAxis:!0,crossAxis:!1,limiter:"partial"===ee?{...(void 0===(C=u)&&(C={}),{options:C,fn(e){let{x:t,y:n,placement:i,rects:r,middlewareData:o}=e,{offset:s=0,mainAxis:a=!0,crossAxis:l=!0}=d(C,e),u={x:t,y:n},h=g(i),f=p(h),m=u[f],v=u[h],y=d(s,e),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){let e="y"===f?"height":"width",t=r.reference[f]-r.floating[e]+x.mainAxis,n=r.reference[f]+r.reference[e]-x.mainAxis;m<t?m=t:m>n&&(m=n)}if(l){var w,b;let e="y"===f?"width":"height",t=M.has(c(i)),n=r.reference[h]-r.floating[e]+(t&&(null==(w=o.offset)?void 0:w[h])||0)+(t?0:x.crossAxis),s=r.reference[h]+r.reference[e]+(t?0:(null==(b=o.offset)?void 0:b[h])||0)-(t?x.crossAxis:0);v<n?v=n:v>s&&(v=s)}return{[f]:m,[h]:v}}}),options:[u,m]}:void 0,...eI},async fn(e){let{x:t,y:n,placement:o,platform:s}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...h}=d(R,e),f={x:t,y:n},m=await s.detectOverflow(e,h),v=g(c(o)),y=p(v),x=f[y],w=f[v];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+m[e],o=x-m[t];x=r(n,i(x,o))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+m[e],o=w-m[t];w=r(n,i(w,o))}let b=u.fn({...e,[y]:x,[v]:w});return{...b,data:{x:b.x-t,y:b.y-n,enabled:{[y]:a,[v]:l}}}}},options:[S,P]},Z&&{...{name:"flip",options:V=D={...eI},async fn(e){var t,n,i,r,o,s,a,l;let u,m,C,{placement:S,middlewareData:P,rects:R,initialPlacement:E,platform:k,elements:A}=e,{mainAxis:M=!0,crossAxis:j=!0,fallbackPlacements:D,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:O=!0,...F}=d(V,e);if(null!=(t=P.arrow)&&t.alignmentOffset)return{};let N=c(S),B=g(E),_=c(E)===E,H=await (null==k.isRTL?void 0:k.isRTL(A.floating)),z=D||(_||!O?[T(E)]:(u=T(E),[v(E),u,v(u)])),U="none"!==I;!D&&U&&z.push(...(m=h(E),C=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:y;return t?y:x;case"left":case"right":return t?w:b;default:return[]}}(c(E),"start"===I,H),m&&(C=C.map(e=>e+"-"+m),O&&(C=C.concat(C.map(v)))),C));let $=[E,...z],W=await k.detectOverflow(e,F),G=[],K=(null==(n=P.flip)?void 0:n.overflows)||[];if(M&&G.push(W[N]),j){let e,t,n,i,r=(s=S,a=R,void 0===(l=H)&&(l=!1),e=h(s),n=f(t=p(g(s))),i="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(i=T(i)),[i,T(i)]);G.push(W[r[0]],W[r[1]])}if(K=[...K,{placement:S,overflows:G}],!G.every(e=>e<=0)){let e=((null==(i=P.flip)?void 0:i.index)||0)+1,t=$[e];if(t&&("alignment"!==j||B===g(t)||K.every(e=>g(e.placement)!==B||e.overflows[0]>0)))return{data:{index:e,overflows:K},reset:{placement:t}};let n=null==(r=K.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:r.placement;if(!n)switch(L){case"bestFit":{let e=null==(o=K.filter(e=>{if(U){let t=g(e.placement);return t===B||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=E}if(S!==n)return{reset:{placement:n}}}return{}}},options:[D,L]},{...{name:"size",options:N=O={...eI,apply:({elements:e,rects:t,availableWidth:n,availableHeight:i})=>{let{width:r,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${i}px`),s.setProperty("--radix-popper-anchor-width",`${r}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let o,s,{placement:a,rects:l,platform:u,elements:p}=e,{apply:f=()=>{},...m}=d(N,e),v=await u.detectOverflow(e,m),y=c(a),x=h(a),w="y"===g(a),{width:b,height:T}=l.floating;"top"===y||"bottom"===y?(o=y,s=x===(await (null==u.isRTL?void 0:u.isRTL(p.floating))?"start":"end")?"left":"right"):(s=y,o="end"===x?"top":"bottom");let C=T-v.top-v.bottom,S=b-v.left-v.right,P=i(T-v[o],C),R=i(b-v[s],S),E=!e.middlewareData.shift,k=P,A=R;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(A=S),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(k=C),E&&!x){let e=r(v.left,0),t=r(v.right,0),n=r(v.top,0),i=r(v.bottom,0);w?A=b-2*(0!==e||0!==t?e+t:r(v.left,v.right)):k=T-2*(0!==n||0!==i?n+i:r(v.top,v.bottom))}await f({...e,availableWidth:A,availableHeight:k});let M=await u.getDimensions(p.floating);return b!==M.width||T!==M.height?{reset:{rects:!0}}:{}}},options:[O,F]},eh&&{...{name:"arrow",options:H=B={element:eh,padding:q},fn(e){let{element:t,padding:n}="function"==typeof H?H(e):H;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?ex({element:t.current,padding:n}).fn(e):{}:t?ex({element:t,padding:n}).fn(e):{}}},options:[B,_]},eq({arrowWidth:em,arrowHeight:eg}),en&&{...{name:"hide",options:$=z={strategy:"referenceHidden",...eI},async fn(e){let{rects:t,platform:n}=e,{strategy:i="referenceHidden",...r}=d($,e);switch(i){case"referenceHidden":{let i=k(await n.detectOverflow(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:A(i)}}}case"escaped":{let i=k(await n.detectOverflow(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:i,escaped:A(i)}}}default:return{}}}},options:[z,U]}]}),[e$,eW]=eZ(eB),eG=(0,ej.useCallbackRef)(eo);(0,eD.useLayoutEffect)(()=>{e_&&eG?.()},[e_,eG]);let eK=eH.arrow?.x,eX=eH.arrow?.y,eJ=eH.arrow?.centerOffset!==0,[eQ,e0]=t.useState();return(0,eD.useLayoutEffect)(()=>{eu&&e0(window.getComputedStyle(eu).zIndex)},[eu]),(0,eE.jsx)("div",{ref:eO.setFloating,"data-radix-popper-content-wrapper":"",style:{...eF,transform:e_?eF.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eQ,"--radix-popper-transform-origin":[eH.transformOrigin?.x,eH.transformOrigin?.y].join(" "),...eH.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eE.jsx)(eU,{scope:W,placedSide:e$,onArrowChange:ep,arrowX:eK,arrowY:eX,shouldHideArrow:eJ,children:(0,eE.jsx)(eR.Primitive.div,{"data-side":e$,"data-align":eW,...es,ref:ec,style:{...es.style,animation:e_?void 0:"none"}})})})});eW.displayName=ez;var eG="PopperArrow",eK={top:"bottom",right:"left",bottom:"top",left:"right"},eX=t.forwardRef(function(e,t){let{__scopePopper:n,...i}=e,r=e$(eG,n),o=eK[r.placedSide];return(0,eE.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,eE.jsx)(ek,{...i,ref:t,style:{...i.style,display:"block"}})})});function eY(e){return null!==e}eX.displayName=eG;var eq=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:i,middlewareData:r}=t,o=r.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[l,u]=eZ(n),d={start:"0%",center:"50%",end:"100%"}[u],c=(r.arrow?.x??0)+s/2,h=(r.arrow?.y??0)+a/2,p="",f="";return"bottom"===l?(p=o?d:`${c}px`,f=`${-a}px`):"top"===l?(p=o?d:`${c}px`,f=`${i.floating.height+a}px`):"right"===l?(p=`${-a}px`,f=o?d:`${h}px`):"left"===l&&(p=`${i.floating.width+a}px`,f=o?d:`${h}px`),{data:{x:p,y:f}}}});function eZ(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",0,eH,"Arrow",0,eX,"Content",0,eW,"Root",0,eB,"createPopperScope",0,eO],845311)},571262,e=>{"use strict";var t=e.i(958653),n=e.i(291967),i=e.i(922353),r=e.i(9413),o=e.i(403659),s=e.i(411207),a=e.i(845311),l=e.i(576903),u=e.i(690816),d=e.i(285565),c=e.i(160310),h=e.i(136567),p=e.i(154512),f=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),m=t.forwardRef((e,t)=>
1(0,p.jsx)(d.Primitive.span,{...e,ref:t,style:{...f,...e.style}}));m.displayName="VisuallyHidden";var[g,v]=(0,r.createContextScope)("Tooltip",[a.createPopperScope]),y=(0,a.createPopperScope)(),x="TooltipProvider",w="tooltip.open",[b,T]=g(x),C=e=>{let{__scopeTooltip:n,delayDuration:i=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=t.useRef(!0),l=t.useRef(!1),u=t.useRef(0);return t.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,p.jsx)(b,{scope:n,isOpenDelayedRef:a,delayDuration:i,onOpen:t.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:t.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:t.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:s})};C.displayName=x;var S="Tooltip",[P,R]=g(S),E=e=>{let{__scopeTooltip:n,children:i,open:r,defaultOpen:o,onOpenChange:l,disableHoverableContent:u,delayDuration:d}=e,c=T(S,e.__scopeTooltip),f=y(n),[m,g]=t.useState(null),v=(0,s.useId)(),x=t.useRef(0),b=u??c.disableHoverableContent,C=d??c.delayDuration,R=t.useRef(!1),[E,k]=(0,h.useControllableState)({prop:r,defaultProp:o??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(w))):c.onClose(),l?.(e)},caller:S}),A=t.useMemo(()=>E?R.current?"delayed-open":"instant-open":"closed",[E]),M=t.useCallback(()=>{window.clearTimeout(x.current),x.current=0,R.current=!1,k(!0)},[k]),j=t.useCallback(()=>{window.clearTimeout(x.current),x.current=0,k(!1)},[k]),D=t.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{R.current=!0,k(!0),x.current=0},C)},[C,k]);return t.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),(0,p.jsx)(a.Root,{...f,children:(0,p.jsx)(P,{scope:n,contentId:v,open:E,stateAttribute:A,trigger:m,onTriggerChange:g,onTriggerEnter:t.useCallback(()=>{c.isOpenDelayedRef.current?D():M()},[c.isOpenDelayedRef,D,M]),onTriggerLeave:t.useCallback(()=>{b?j():(window.clearTimeout(x.current),x.current=0)},[j,b]),onOpen:M,onClose:j,disableHoverableContent:b,children:i})})};E.displayName=S;var k="TooltipTrigger",A=t.forwardRef((e,r)=>{let{__scopeTooltip:o,...s}=e,l=R(k,o),u=T(k,o),c=y(o),h=t.useRef(null),f=(0,i.useComposedRefs)(r,h,l.onTriggerChange),m=t.useRef(!1),g=t.useRef(!1),v=t.useCallback(()=>m.current=!1,[]);return t.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,p.jsx)(a.Anchor,{asChild:!0,...c,children:(0,p.jsx)(d.Primitive.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...s,ref:f,onPointerMove:(0,n.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||u.isPointerInTransitRef.current||(l.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,n.composeEventHandlers)(e.onPointerLeave,()=>{l.onTriggerLeave(),g.current=!1}),onPointerDown:(0,n.composeEventHandlers)(e.onPointerDown,()=>{l.open&&l.onClose(),m.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{m.current||l.onOpen()}),onBlur:(0,n.composeEventHandlers)(e.onBlur,l.onClose),onClick:(0,n.composeEventHandlers)(e.onClick,l.onClose)})})});A.displayName=k;var M="TooltipPortal",[j,D]=g(M,{forceMount:void 0}),L=e=>{let{__scopeTooltip:t,forceMount:n,children:i,container:r}=e,o=R(M,t);return(0,p.jsx)(j,{scope:t,forceMount:n,children:(0,p.jsx)(u.Presence,{present:n||o.open,children:(0,p.jsx)(l.Portal,{asChild:!0,container:r,children:i})})})};L.displayName=M;var V="TooltipContent",I=t.forwardRef((e,t)=>{let n=D(V,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...o}=e,s=R(V,e.__scopeTooltip);return(0,p.jsx)(u.Presence,{present:i||s.open,children:s.disableHoverableContent?(0,p.jsx)(_,{side:r,...o,ref:t}):(0,p.jsx)(O,{side:r,...o,ref:t})})}),O=t.forwardRef((e,n)=>{let r=R(V,e.__scopeTooltip),o=T(V,e.__scopeTooltip),s=t.useRef(null),a=(0,i.useComposedRefs)(n,s),[l,u]=t.useState(null),{trigger:d,onClose:c}=r,h=s.current,{onPointerInTransitChange:f}=o,m=t.useCallback(()=>{u(null),f(!1)},[f]),g=t.useCallback((e,t)=>{let n,i=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,i,r,o)){case o:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw Error("unreachable")}}(r,i.getBoundingClientRect());u(((n=[...function(e,t,n=5){let i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return i}(r,o),...function(e){let{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>
1e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let i=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(i.y-n.y)>=(e.y-n.y)*(i.x-n.x))t.pop();else break}t.push(i)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let i=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(i.y-t.y)>=(e.y-t.y)*(i.x-t.x))n.pop();else break}n.push(i)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(n))),f(!0)},[f]);return t.useEffect(()=>()=>m(),[m]),t.useEffect(()=>{if(d&&h){let e=e=>g(e,h),t=e=>g(e,d);return d.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[d,h,g,m]),t.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},i=d?.contains(t)||h?.contains(t),r=!function(e,t){let{x:n,y:i}=e,r=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e],a=t[o],l=s.x,u=s.y,d=a.x,c=a.y;u>i!=c>i&&n<(d-l)*(i-u)/(c-u)+l&&(r=!r)}return r}(n,l);i?m():r&&(m(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,h,l,c,m]),(0,p.jsx)(_,{...e,ref:a})}),[F,N]=g(S,{isInside:!1}),B=(0,c.createSlottable)("TooltipContent"),_=t.forwardRef((e,n)=>{let{__scopeTooltip:i,children:r,"aria-label":s,onEscapeKeyDown:l,onPointerDownOutside:u,...d}=e,c=R(V,i),h=y(i),{onClose:f}=c;return t.useEffect(()=>(document.addEventListener(w,f),()=>document.removeEventListener(w,f)),[f]),t.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;t?.contains(c.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,f]),(0,p.jsx)(o.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,p.jsxs)(a.Content,{"data-state":c.stateAttribute,...h,...d,ref:n,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,p.jsx)(B,{children:r}),(0,p.jsx)(F,{scope:i,isInside:!0,children:(0,p.jsx)(m,{id:c.contentId,role:"tooltip",children:s||r})})]})})});I.displayName=V;var H="TooltipArrow",z=t.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,r=y(n);return N(H,n).isInside?null:(0,p.jsx)(a.Arrow,{...r,...i,ref:t})});z.displayName=H,e.s(["Arrow",0,z,"Content",0,I,"Portal",0,L,"Provider",0,C,"Root",0,E,"Trigger",0,A],571262)},138260,e=>{"use strict";var t=e.i(154512),n=e.i(958653),i=e.i(571262),r=e.i(294237),o=e.i(647163);let s=n.createContext("default"),a=(0,r.cva)("fantasy z-50 w-fit max-w-xs rounded px-4 py-3 text-sm text-amber-100 wc-tooltip-base",{variants:{variant:{default:"wc-tooltip",uncommon:"wc-tooltip-uncommon",rare:"wc-tooltip-rare",epic:"wc-tooltip-epic",legendary:"wc-tooltip-legendary"}},defaultVariants:{variant:"default"}}),l={default:"text-amber-400",uncommon:"text-green-400",rare:"text-blue-400",epic:"text-purple-400",legendary:"text-orange-400"};function u({delayDuration:e=0,...n}){return(0,t.jsx)(i.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...n})}e.s(["Tooltip",0,function({...e}){return(0,t.jsx)(u,{children:(0,t.jsx)(i.Root,{"data-slot":"tooltip",...e})})},"TooltipBody",0,function({className:e,...n}){return(0,t.jsx)("p",{"data-slot":"tooltip-body",className:(0,o.cn)("mt-1 text-xs text-amber-100/80",e),...n})},"TooltipContent",0,function({className:e,variant:n="default",sideOffset:r=8,children:l,...u}){return(0,t.jsx)(i.Portal,{children:(0,t.jsx)(i.Content,{"data-slot":"tooltip-content",sideOffset:r,className:(0,o.cn)(a({variant:n}),"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...u,children:(0,t.jsx)(s.Provider,{value:n??"default",children:l})})})},"TooltipProvider",0,u,"TooltipTitle",0,function({className:e,...i}){let r=n.useContext(s);return(0,t.jsx)("p",{"data-slot":"tooltip-title",className:(0,o.cn)("font-bold",l[r],e),...i})},"TooltipTrigger",0,function({...e}){return(0,t.jsx)(i.Trigger,{"data-slot":"tooltip-trigger",...e})},"tooltipContentVariants",0,a])},987099,e=>{"use strict";var t=e.i(958653),n=e.i(9413),i=e.i(922353),r=e.i(160310),o=e.i(154512),s=new WeakMap;function a(e,t){var n,i;let r,o,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(n=e,i=t,r=n.length,(s=(o=l(i))>=0?o:r+o)<0||s>=r?-1:s);return -1===a?void 0:e[a]}function l(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],s.set(this,!0)}set(e,t){return s.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let i,r=this.has(t),o=this.#e.length,s=l(e),a=s>=0?s:o+s,u=a<0||a>=o?-1:a;if(u===this.size||r&&u===this.size-1||-1===u)return this.set(t,n),this;let d=this.size+ +!r;s<0&&a++;let c=[...this.#e],h=!1;for(let e=a;e<d;e++)if(a===e){let o=c[e];c[e]===t&&(o=c[e+1]),r&&this.delete(t),i=this.get(o),this.set(t,n)}else{h||c[e-1]!==t||(h=!0);let n=c[h?e:e-1],r=i;i=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,i){let r=new e(this);return r.insert(t,n,i),r}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=a(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=a(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return a(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let i=n+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let i=n+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let n=0;for(let i of this){if(Reflect.apply(e,t,[i,n,this]))return i;n++}}findIndex(e,t){let n=0;for(let i of this){if(Reflect.apply(e,t,[i,n,this]))return n;n++}return -1}filter(t,n){let i=[],r=0;for(let e of this)Reflect.apply(t,n,[e,r,this])&&i.push(e),r++;return new e(i)}map(t,n){let i=[],r=0;for(let e of this)i.push([e[0],Reflect.apply(t,n,[e,r,this])]),r++;return new e(i)}reduce(...e){let[t,n]=e,i=0,r=n??this.at(0);for(let n of this)r=0===i&&1===e.length?n:Reflect.apply(t,this,[r,n,i,this]),i++;return r}reduceRight(...e){let[t,n]=e,i=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let r=this.at(n);i=n===this.size-1&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),i=this.get(n);t.set(n,i)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let i=new e,r=this.size-1;if(void 0===t)return i;t<0&&(t+=this.size),void 0!==n&&n>0&&(r=n-1);for(let e=t;e<=r;e++){let t=this.keyAt(e),n=this.get(t);i.set(t,n)}return i}every(e,t){let n=0;for(let i of this){if(!Reflect.apply(e,t,[i,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let i of this){if(Reflect.apply(e,t,[i,n,this]))return!0;n++}return!1}}),e.s(["createCollection",0,function(e){let s=e+"CollectionProvider",[a,l]=(0,n.createContextScope)(s),[u,d]=a(s,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:n,children:i}=e,r=t.default.useRef(null),s=t.default.useRef(new Map).current;return(0,o.jsx)(u,{scope:n,itemMap:s,collectionRef:r,children:i})};c.displayName=s;let h=e+"CollectionSlot",p=(0,r.createSlot)(h),f=t.default.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,s=d(h,n),a=(0,i.useComposedRefs)(t,s.collectionRef);return(0,o.jsx)(p,{ref:a,children:r})});f.displayName=h;let m=e+"CollectionItemSlot",g="data-radix-collection-item",v=(0,r.createSlot)(m),y=t.default.forwardRef((e,n)=>{let{scope:r,children:s,...a}=e,l=t.default.useRef(null),u=(0,i.useComposedRefs)(n,l),c=d(m,r);return t.default.useEffect(()=>(c.itemMap.set(l,{ref:l,...a}),()=>void c.itemMap.delete(l))),(0,o.jsx)(v,{...{[g]:""},ref:u,children:s})});return y.displayName=m,[{Provider:c,Slot:f,ItemSlot:y},function(n){let i=d(e+"CollectionConsumer",n);return t.default.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(i.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[i.collectionRef,i.itemMap])},l]}])},764794,e=>{"use strict";var t=e.i(958653),n=e.i(291967),i=e.i(987099),r=e.i(922353),o=e.i(9413),s=e.i(411207),a=e.i(285565),l=e.i(488248),u=e.i(136567),d=e.i(775649),c=e.i(154512),h="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},f="RovingFocusGroup",[m,g,v]=(0,i.createCollection)(f),[y,x]=(0,o.createContextScope)(f,[v]),[w,b]=y(f),T=t.forwardRef((e,t)=>(0,c.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(C,{...e,ref:t})})}));T.displayName=f;var C=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:o,orientation:s,loop:m=!1,dir:v,currentTabStopId:y,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:b,onEntryFocus:T,preventScrollOnEntryFocus:C=!1,...S}=e,P=t.useRef(null),R=(0,r.useComposedRefs)(i,P),k=(0,d.useDirection)(v),[A,M]=(0,u.useControllableState)({prop:y,defaultProp:x??null,onChange:b,caller:f}),[j,D]=t.useState(!1),L=(0,l.useCallbackRef)(T),V=g(o),I=t.useRef(!1),[O,F]=t.useState(0);return t.useEffect(()=>{let e=P.current;if(e)return e.addEventListener(h,L),()=>e.removeEventListener(h,L)},[L]),(0,c.jsx)(w,{scope:o,orientation:s,dir:k,loop:m,currentTabStopId:A,onItemFocus:t.useCallback(e=>M(e),[M]),onItemShiftTab:t.useCallback(()=>D(!0),[]),onFocusableItemAdd:t.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>F(e=>e-1),[]),children:(0,c.jsx)(a.Primitive.div,{tabIndex:j||0===O?-1:0,"data-orientation":s,...S,ref:R,style:{outline:"none",...e.style},onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,()=>{I.current=!0}),onFocus:(0,n.composeEventHandlers)(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!j){let t=new CustomEvent(h,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=V().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),C)}}I.current=!1}),onBlur:(0,n.composeEventHandlers)(e.onBlur,()=>D(!1))})})}),S="RovingFocusGroupItem",P=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:l=!1,tabStopId:u,children:d,...h}=e,p=(0,s.useId)(),f=u||p,v=b(S,r),y=v.currentTabStopId===f,x=g(r),{onFocusableItemAdd:w,onFocusableItemRemove:T,currentTabStopId:C}=v;return t.useEffect(()=>{if(o)return w(),()=>T()},[o,w,T]),(0,c.jsx)(m.ItemSlot,{scope:r,id:f,focusable:o,active:l,children:(0,c.jsx)(a.Primitive.span,{tabIndex:y?0:-1,"data-orientation":v.orientation,...h,ref:i,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{o?v.onItemFocus(f):e.preventDefault()}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>v.onItemFocus(f)),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var i;
1let r=(i=e.key,"rtl"!==n?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return R[r]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=x().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){var n,i;"prev"===t&&r.reverse();let o=r.indexOf(e.currentTarget);r=v.loop?(n=r,i=o+1,n.map((e,t)=>n[(i+t)%n.length])):r.slice(o+1)}setTimeout(()=>E(r))}}),children:"function"==typeof d?d({isCurrentTabStop:y,hasTabStop:null!=C}):d})})});P.displayName=S;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let n=document.activeElement;for(let i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}e.s(["Item",0,P,"Root",0,T,"createRovingFocusGroupScope",0,x])},809641,e=>{"use strict";var t=e.i(958653);e.s(["usePrevious",0,function(e){let n=t.useRef({value:e,previous:e});return t.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}])},788454,e=>{"use strict";var t=e.i(154512),n=e.i(958653),i=e.i(291967),r=e.i(922353),o=e.i(9413),s=e.i(285565),a=e.i(764794),l=e.i(136567),u=e.i(775649),d=e.i(570391),c=e.i(809641),h=e.i(690816),p="Radio",[f,m]=(0,o.createContextScope)(p),[g,v]=f(p),y=n.forwardRef((e,o)=>{let{__scopeRadio:a,name:l,checked:u=!1,required:d,disabled:c,value:h="on",onCheck:p,form:f,...m}=e,[v,y]=n.useState(null),x=(0,r.useComposedRefs)(o,e=>y(e)),w=n.useRef(!1),C=!v||f||!!v.closest("form");return(0,t.jsxs)(g,{scope:a,checked:u,disabled:c,children:[(0,t.jsx)(s.Primitive.button,{type:"button",role:"radio","aria-checked":u,"data-state":T(u),"data-disabled":c?"":void 0,disabled:c,value:h,...m,ref:x,onClick:(0,i.composeEventHandlers)(e.onClick,e=>{u||p?.(),C&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})}),C&&(0,t.jsx)(b,{control:v,bubbles:!w.current,name:l,value:h,checked:u,required:d,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});y.displayName=p;var x="RadioIndicator",w=n.forwardRef((e,n)=>{let{__scopeRadio:i,forceMount:r,...o}=e,a=v(x,i);return(0,t.jsx)(h.Presence,{present:r||a.checked,children:(0,t.jsx)(s.Primitive.span,{"data-state":T(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})})});w.displayName=x;var b=n.forwardRef(({__scopeRadio:e,control:i,checked:o,bubbles:a=!0,...l},u)=>{let h=n.useRef(null),p=(0,r.useComposedRefs)(h,u),f=(0,c.usePrevious)(o),m=(0,d.useSize)(i);return n.useEffect(()=>{let e=h.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(f!==o&&t){let n=new Event("click",{bubbles:a});t.call(e,o),e.dispatchEvent(n)}},[f,o,a]),(0,t.jsx)(s.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...l,tabIndex:-1,ref:p,style:{...l.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function T(e){return e?"checked":"unchecked"}b.displayName="RadioBubbleInput";var C=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],S="RadioGroup",[P,R]=(0,o.createContextScope)(S,[a.createRovingFocusGroupScope,m]),E=(0,a.createRovingFocusGroupScope)(),k=m(),[A,M]=P(S),j=n.forwardRef((e,n)=>{let{__scopeRadioGroup:i,name:r,defaultValue:o,value:d,required:c=!1,disabled:h=!1,orientation:p,dir:f,loop:m=!0,onValueChange:g,...v}=e,y=E(i),x=(0,u.useDirection)(f),[w,b]=(0,l.useControllableState)({prop:d,defaultProp:o??null,onChange:g,caller:S});return(0,t.jsx)(A,{scope:i,name:r,required:c,disabled:h,value:w,onValueChange:b,children:(0,t.jsx)(a.Root,{asChild:!0,...y,orientation:p,dir:x,loop:m,children:(0,t.jsx)(s.Primitive.div,{role:"radiogroup","aria-required":c,"aria-orientation":p,"data-disabled":h?"":void 0,dir:x,...v,ref:n})})})});j.displayName=S;var D="RadioGroupItem",L=n.forwardRef((e,o)=>{let{__scopeRadioGroup:s,disabled:l,...u}=e,d=M(D,s),c=d.disabled||l,h=E(s),p=k(s),f=n.useRef(null),m=(0,r.useComposedRefs)(o,f),g=d.value===u.value,v=n.useRef(!1);return n.useEffect(()=>{let e=e=>
1{C.includes(e.key)&&(v.current=!0)},t=()=>v.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,t.jsx)(a.Item,{asChild:!0,...h,focusable:!c,active:g,children:(0,t.jsx)(y,{disabled:c,required:d.required,checked:g,...p,...u,name:d.name,ref:m,onCheck:()=>d.onValueChange(u.value),onKeyDown:(0,i.composeEventHandlers)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,i.composeEventHandlers)(u.onFocus,()=>{v.current&&f.current?.click()})})})});L.displayName=D;var V=n.forwardRef((e,n)=>{let{__scopeRadioGroup:i,...r}=e,o=k(i);return(0,t.jsx)(w,{...o,...r,ref:n})});V.displayName="RadioGroupIndicator",e.s(["Indicator",0,V,"Item",0,L,"RadioGroup",0,j,"RadioGroupIndicator",0,V,"RadioGroupItem",0,L,"Root",0,j,"createRadioGroupScope",0,R],25018);var I=e.i(25018),I=I,O=e.i(647163);e.s(["RadioGroup",0,function({className:e,orientation:n="vertical",...i}){return(0,t.jsx)(I.Root,{"data-slot":"radio-group",className:(0,O.cn)("fantasy flex gap-3","horizontal"===n?"flex-row flex-wrap":"flex-col",e),orientation:n,...i})},"RadioGroupItem",0,function({className:e,...n}){return(0,t.jsx)(I.Item,{"data-slot":"radio-group-item",className:(0,O.cn)("wc-radio-socket",e),...n,children:(0,t.jsx)(I.Indicator,{className:"wc-radio-gem"})})}],788454)},161780,e=>{"use strict";var t=e.i(154512),n=e.i(958653),i=e.i(257987),r=n.forwardRef((e,n)=>(0,t.jsx)(i.Primitive.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));r.displayName="Label";var o=e.i(294237),s=e.i(647163);let a=(0,o.cva)("fantasy text-sm font-medium leading-none select-none",{variants:{variant:{default:"text-amber-200 [text-shadow:0_0_6px_rgba(251,191,36,0.25)]",muted:"text-amber-200/60"}},defaultVariants:{variant:"default"}});e.s(["Label",0,function({className:e,variant:n,required:i=!1,disabled:o=!1,children:l,...u}){return(0,t.jsxs)(r,{"data-slot":"label","data-disabled":o||void 0,className:(0,s.cn)(a({variant:n}),o&&"cursor-not-allowed opacity-50",e),...u,children:[l,i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"ml-1 text-red-500 [text-shadow:0_0_6px_rgba(239,68,68,0.4)]",children:"â¦"}),(0,t.jsx)("span",{className:"sr-only",children:"(required)"})]})]})},"labelVariants",0,a],161780)},672239,e=>{"use strict";let t,n,i,r;var o,s=e.i(154512),a=e.i(958653),l=e.i(360112);let u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],d=new Set(u),c=(e,t,n)=>n>t?t:n<e?e:n,h={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},p={...h,transform:e=>c(0,1,e)},f={...h,default:1},m=e=>Math.round(1e5*e)/1e5,g=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,v=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,y=(e,t)=>n=>!!("string"==typeof n&&v.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),x=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[r,o,s,a]=i.match(g);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},w={...h,transform:e=>Math.round(c(0,255,e))},b={test:y("rgb","red"),parse:x("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+w.transform(e)+", "+w.transform(t)+", "+w.transform(n)+", "+m(p.transform(i))+")"},T={test:y("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:b.transform},C=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),S=C("deg"),P=C("%"),R=C("px"),E=C("vh"),k=C("vw"),A={...P,parse:e=>P.parse(e)/100,transform:e=>P.transform(100*e)},M={test:y("hsl","hue"),parse:x("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+P.transform(m(t))+", "+P.transform(m(n))+", "+m(p.transform(i))+")"},j={test:e=>b.test(e)||T.test(e)||M.test(e),parse:e=>b.test(e)?b.parse(e):M.test(e)?M.parse(e):T.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?b.transform(e):M.transform(e),getAnimatableNone:e=>{let t=j.parse(e);return t.alpha=0,j.transform(t)}},D=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,L="number",V="color",I=/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 O(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,s=t.replace(I,e=>(j.test(e)?(i.color.push(o),r.push(V),n.push(j.parse(e))):e.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(e)):(i.number.push(o),r.push(L),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function F({split:e,types:t}){let n=e.length;return i=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],void 0!==i[o]){let e=t[o];e===L?r+=m(i[o]):e===V?r+=j.transform(i[o]):r+=i[o]}return r}}let N={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(g)?.length||0)+(e.match(D)?.length||0)>0},parse:function(e){return O(e).values},createTransformer:function(e){return F(O(e))},getAnimatableNone:function(e){let t=O(e);return F(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:j.test(e)?j.getAnimatableNone(e):e)(e,t.split[n])))}},B=new Set(["brightness","contrast","saturate","opacity"]);function _(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(g)||[];if(!i)return e;let r=n.replace(i,""),o=+!!B.has(t);return i!==n&&(o*=100),t+"("+o+r+")"}let H=/\b([a-z-]*)\(.*?\)/gu,z={...N,getAnimatableNone:e=>{let t=e.match(H);return t?t.map(_).join(" "):e}},U={...N,getAnimatableNone:e=>{let t=N.parse(e);return N.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},$={...h,transform:Math.round},W={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left
1:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,rotate:S,rotateX:S,rotateY:S,rotateZ:S,scale:f,scaleX:f,scaleY:f,scaleZ:f,skew:S,skewX:S,skewY:S,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:p,originX:A,originY:A,originZ:R,zIndex:$,fillOpacity:p,strokeOpacity:p,numOctaves:$},G={...W,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:z,WebkitFilter:z,mask:U,WebkitMask:U},K=e=>G[e],X=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:X(),y:X()}),q=()=>({min:0,max:0}),Z=()=>({x:q(),y:q()}),J=e=>!!(e&&e.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...u]),ee=e=>t=>t.test(e),et=[h,R,P,S,k,E,{test:e=>"auto"===e,parse:e=>e}],en=e=>et.find(ee(e));var ei=e.i(492436);let er=()=>{},eo=()=>{};ei.default;let es=e=>t=>"string"==typeof t&&t.startsWith(e),ea=es("--"),el=es("var(--"),eu=e=>!!el(e)&&ed.test(e.split("/*")[0].trim()),ed=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ec(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ep=e=>180*e/Math.PI,ef=e=>eg(ep(Math.atan2(e[1],e[0]))),em={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ef,rotateZ:ef,skewX:e=>ep(Math.atan(e[1])),skewY:e=>ep(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eg=e=>((e%=360)<0&&(e+=360),e),ev=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ey=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ex={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ev,scaleY:ey,scale:e=>(ev(e)+ey(e))/2,rotateX:e=>eg(ep(Math.atan2(e[6],e[5]))),rotateY:e=>eg(ep(Math.atan2(-e[2],e[0]))),rotateZ:ef,rotate:ef,skewX:e=>ep(Math.atan(e[4])),skewY:e=>ep(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ew(e){return+!!e.includes("scale")}function eb(e,t){let n,i;if(!e||"none"===e)return ew(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=ex,i=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=em,i=t}if(!i)return ew(t);let o=n[t],s=i[1].split(",").map(eT);return"function"==typeof o?o(s):s[o]}function eT(e){return parseFloat(e.trim())}let eC=e=>e===h||e===R,eS=new Set(["x","y","z"]),eP=u.filter(e=>!eS.has(e)),eR={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eb(t,"x"),y:(e,{transform:t})=>eb(t,"y")};eR.translateX=eR.x,eR.translateY=eR.y;let eE=e=>e,ek={},eA=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eM(e,t){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=eA.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,i=new Set,r=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){s.has(t)&&(d.schedule(t),e()),l++,t(a)}let d={schedule:(e,t=!1,o=!1)=>{let a=o&&r?n:i;return t&&s.add(e),a.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(a=e,r){o=!0;return}r=!0;let s=n;n=i,i=s,n.forEach(u),t,l=0,n.clear(),r=!1,o&&(o=!1,d.process(e))}};return d}(o,t?n:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:d,update:c,preRender:h,render:p,postRender:f}=s,m=()=>{let o=ek.useManualTiming,s=o?r.timestamp:performance.now();n=!1,o||(r.delta=i?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),d.process(r),c.process(r),h.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(m))};return{schedule:eA.reduce((t,o)=>{let a=s[o];return t[o]=(t,o=!1,s=!1)=>(!n&&(n=!0,i=!0,r.isProcessing||e(m)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<eA.length;t++)s[eA[t]].cancel(e)},state:r,steps:s}}let{schedule:ej,cancel:eD,state:eL,steps:eV}=eM("u">typeof requestAnimationFrame?requestAnimationFrame:eE,!0),eI=new Set,eO=!1,eF=!1,eN=!1;function eB(){if(eF){let e=Array.from(eI).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
1t.forEach(e=>{let t,i=(t=[],eP.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),t);i.length&&(n.set(e,i),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eF=!1,eO=!1,eI.forEach(e=>e.complete(eN)),eI.clear()}function e_(){eI.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eF=!0)})}class eH{constructor(e,t,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(eI.add(this),eO||(eO=!0,ej.read(e_),ej.resolveKeyframes(eB))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(null===e[0]){let r=i?.get(),o=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let i=n.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===r&&i.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eI.delete(this)}cancel(){"scheduled"===this.state&&(eI.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let ez=new Set([z,U]);function eU(e,t){let n=K(e);return ez.has(n)||(n=N),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let e$=new Set(["auto","none","0"]);class eW extends eH{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&eu(i=i.trim())){let r=function e(t,n,i=1){eo(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,o]=function(e){let t=eh.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${n??i}`,r]}(t);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let e=s.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eu(o)?e(o,n,i+1):o}(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!Q.has(n)||2!==e.length)return;let[i,r]=e,o=en(i),s=en(r);if(ec(i)!==ec(r)&&eR[n]){this.needsMeasurement=!0;return}if(o!==s)if(eC(o)&&eC(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eR[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let i,r=0;for(;r<e.length&&!i;){let t=e[r];"string"==typeof t&&!e$.has(t)&&O(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=eU(n,i)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eR[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=eR[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eG=e=>1e3*e;function eK(e,t){-1===e.indexOf(t)&&e.push(t)}function eX(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eY{constructor(){this.subscriptions=[]}add(e){return eK(this.subscriptions,e),()=>eX(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eq(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function eZ(e){let t;return()=>(void 0===t&&(t=e()),t)}let eJ={};function eQ(e,t){let n=eZ(e);return()=>eJ[t]??n()}let e0=eQ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),e1=e=>null!==e;function e2(e,{repeat:t,repeatType:n="loop"},i,r=1){let o=e.filter(e1),s=r<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}class e5{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e3={layout:0,mainThread:0,waapi:0},e9=e=>Array.isArray(e)&&"number"==typeof e[0],e4=eQ(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e6=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let t=0;t<r;t++)i+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},e7=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,e8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e7([0,.65,.55,1]),circOut:e7([.55,0,1,.45]),backIn:e7([.31,.01,.66,-.59]),backOut:e7([.33,1.53,.69,.99])};function te(e){return"function"==typeof e&&"applyToOptions"in e}class tt extends e5{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,eo("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return te(e)&&e4()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let d={[t]:n};l&&(d.offset=l);let c=function e(t,n){if(t)return"function"==typeof t?e4()?e6(t,n):"ease-out":e9(t)?e7(t):Array.isArray(t)?t.map(t=>e(t,n)||e8.easeOut):e8[t]}(a,r);Array.isArray(c)&&(d.easing=c);let h={delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(h.pseudoElement=u);let p=e.animate(d,h);return p}(t,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=e2(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eq(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eG(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e0())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),eE):i(this)}}let tn=new Set(["opacity","clipPath","filter","transform"]),{schedule:ti}=eM(queueMicrotask,!1);function tr(){t=void 0}let to={now:()=>(void 0===t&&to.set(eL.isProcessing||ek.useManualTiming?eL.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tr)}};class ts{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=to.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=to.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eY);let n=this.events[e].add(t);return"change"===e?()=>{n(),ej.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
1setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=to.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ta(e,t){return new ts(e,t)}let tl=[...et,j,N],tu=new WeakMap;function td(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tc(e){return"string"==typeof e||Array.isArray(e)}let th=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tp=["initial",...th];function tf(e){return td(e.animate)||tp.some(t=>tc(e[t]))}function tm(e){return!!(tf(e)||e.variants)}let tg={current:null},tv={current:!1},ty="u">typeof window;function tx(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tw(e,t,n,i){if("function"==typeof t){let[r,o]=tx(i);t=t(void 0!==n?n:e.custom,r,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,o]=tx(i);t=t(void 0!==n?n:e.custom,r,o)}return t}let tb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tT={};class tC{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eH,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=to.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ej.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=tf(t),this.isVariantNode=tm(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&J(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tv.current||function(){if(tv.current=!0,ty)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tg.current=e.matches;e.addEventListener("change",t),t()}else tg.current=!1}(),this.shouldReduceMotion=tg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eD(this.notifyUpdate),eD(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tn.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:i,times:r,ease:o,duration:s}=t.accelerate,a=new tt({element:this.current,name:e,keyframes:i,times:r,ease:o,duration:eG(s)}),l=n(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let i=d.has(e);i&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ej.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tT){let t=tT[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tb.length;t++){let n=tb[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){for(let i in t){let r=t[i],o=n[i];if(J(r))e.addValue(i,r);else if(J(o))e.addValue(i,ta(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(i);e.addValue(i,ta(void 0!==t?t:r,{owner:e}))}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ta(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let i,r;if("string"==typeof n&&(i=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(r=n,/^0[^.\s]+$/u.test(r))))n=parseFloat(n);else{let i;i=n,!tl.find(ee(i))&&N.test(t)&&(n=eU(e,t))}this.setBaseTarget(e,J(n)?n.get():n)}return J(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=tw(this.props,n,this.presenceContext?.custom);i&&(t=i[e])}if(n&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||J(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new eY),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ti.render(this.render)}}class tS extends tC{constructor(){super(...arguments),this.KeyframeResolver=eW}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;J(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tP(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tR=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tk=u.length;function tA(e,t,n){let{style:i,vars:r,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let n=t[e];if(d.has(e)){s=!0;continue}if(ea(e)){r[e]=n;continue}{let t=tR(n,W[e]);e.startsWith("origin")?(a=!0,o[e]=t):i[e]=t}}if(!t.transform&&(s||n?i.transform=function(e,t,n){let i="",r=!0;for(let o=0;o<tk;o++){let s=u[o],a=e[s];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!s.startsWith("scale");else{let e=parseFloat(a);l=s.startsWith("scale")?1===e:0===e}if(!l||n){let e=tR(a,W[s]);if(!l){r=!1;let t=tE[s]||s;i+=`${t}(${e}) `}n&&(t[s]=e)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;i.transformOrigin=`${e} ${t} ${n}`}}let tM={offset:"stroke-dashoffset",array:"stroke-dasharray"},tj={offset:"strokeDashoffset",array:"strokeDasharray"},tD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tL(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a}
1,l,u,d){if(tA(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:h}=e;for(let e of(c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete c.transformBox),tD))void 0!==c[e]&&(h[e]=c[e],delete c[e]);void 0!==t&&(c.x=t),void 0!==n&&(c.y=n),void 0!==i&&(c.scale=i),void 0!==r&&function(e,t,n=1,i=0,r=!0){e.pathLength=1;let o=r?tM:tj;e[o.offset]=`${-i}`,e[o.array]=`${t} ${n}`}(c,r,o,s,!1)}let tV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tI=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tO(e,{style:t,vars:n},i,r){let o,s=e.style;for(o in t)s[o]=t[o];for(o in r?.applyProjectionStyles(s,i),n)s.setProperty(o,n[o])}function tF(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tN={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!R.test(e))return e;else e=parseFloat(e);let n=tF(e,t.target.x),i=tF(e,t.target.y);return`${n}% ${i}%`}},tB=(e,t,n)=>e+(t-e)*n,t_={borderRadius:{...tN,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tN,borderTopRightRadius:tN,borderBottomLeftRadius:tN,borderBottomRightRadius:tN,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=N.parse(e);if(i.length>5)return e;let r=N.createTransformer(e),o=+("number"!=typeof i[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=a;let l=tB(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}};function tH(e,{layout:t,layoutId:n}){return d.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!t_[e]||"opacity"===e)}function tz(e,t,n){let i=e.style,r=t?.style,o={};if(!i)return o;for(let t in i)(J(i[t])||r&&J(r[t])||tH(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=i[t]);return o}function tU(e,t,n){let i=tz(e,t,n);for(let n in e)(J(e[n])||J(t[n]))&&(i[-1!==u.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}class t$ extends tS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(d.has(t)){let e=K(t);return e&&e.default||0}return t=tV.has(t)?t:tP(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tU(e,t,n)}
1build(e,t,n){tL(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){for(let n in tO(e,t,void 0,i),t.attrs)e.setAttribute(tV.has(n)?n:tP(n),t.attrs[n])}mount(e){this.isSVGTag=tI(e.tagName),super.mount(e)}}function tW({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function tG(e){return void 0===e||1===e}function tK({scale:e,scaleX:t,scaleY:n}){return!tG(e)||!tG(t)||!tG(n)}function tX(e){return tK(e)||tY(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tY(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tq(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function tZ(e,t=0,n=1,i,r){e.min=tq(e.min,t,n,i,r),e.max=tq(e.max,t,n,i,r)}function tJ(e,{x:t,y:n}){tZ(e.x,t.translate,t.scale,t.originPoint),tZ(e.y,n.translate,n.scale,n.originPoint)}function tQ(e,t){e.min+=t,e.max+=t}function t0(e,t,n,i,r=.5){let o=tB(e.min,e.max,r);tZ(e,t,n,o,i)}function t1(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t2(e,t,n){let i=n??e;t0(e.x,t1(t.x,i.x),t.scaleX,t.scale,t.originX),t0(e.y,t1(t.y,i.y),t.scaleY,t.scale,t.originY)}function t5(e,t){return tW(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}class t3 extends tS{constructor(){super(...arguments),this.type="html",this.renderInstance=tO}readValueFromInstance(e,t){if(d.has(t))return this.projection?.isProjecting?ew(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return eb(n,t)})(e,t);{let n=window.getComputedStyle(e),i=(ea(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t5(e,t)}build(e,t,n){tA(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tz(e,t,n)}}let t9=["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 t4(e){if("string"!=typeof e||e.includes("-"));else if(t9.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let t6=(0,a.createContext)({}),t7=(0,a.createContext)({strict:!1}),t8=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ne=(0,a.createContext)({});function nt(e){return Array.isArray(e)?e.join(" "):e}let nn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ni(e,t,n){for(let i in t)J(t[i])||tH(i,n)||(e[i]=t[i])}let nr=()=>({...nn(),attrs:{}}),no=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ns(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||no.has(e)}let na=e=>!ns(e);try{o=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof o&&(na=e=>e.startsWith("on")?!ns(e):o(e))}catch{}function nl(e){return J(e)?e.get():e}let nu=(0,a.createContext)(null),nd=e=>(t,n)=>{let i,r=(0,a.useContext)(ne),o=(0,a.useContext)(nu),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:function(e,t,n,i){let r={},o=i(e,{});for(let e in o)r[e]=nl(o[e]);let{initial:s,animate:a}=e,l=tf(e),u=tm(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let d=!!n&&!1===n.initial,c=(d=d||!1===s)?a:s;if(c&&"boolean"!=typeof c&&!td(c)){let t=Array.isArray(c)?c:[c];for(let n=0;n<t.length;n++){let i=tw(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(n,i,r,e),renderState:t()}})(e,t,r,o);return n?s():(null===(i=(0,a.useRef)(null)).current&&(i.current=s()),i.current)},nc=nd({scrapeMotionValuesFromProps:tz,createRenderState:nn}),nh=nd({scrapeMotionValuesFromProps:tU,createRenderState:nr}),np={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"]},nf=!1;function nm(){return!function(){if(nf)return;let e={};for(let t in np)e[t]={isEnabled:e=>np[t].some(t=>!!e[t])};tT=e,nf=!0}(),tT}let ng=Symbol.for("motionComponentSymbol"),nv="data-"+tP("framerAppearId"),ny=(0,a.createContext)({});function nx(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nw="u">typeof window?a.useLayoutEffect:a.useEffect;function nb(e,{forwardMotionProps:t=!1,type:n}={},i,r){i&&function(e){let t=nm();for(let n in e)t[n]={...t[n],...e[n]};tT=t}(i);let o=n?"svg"===n:t4(e),l=o?nh:nc;function u(n,i){var u;let d,c,h,p={...(0,a.useContext)(t8),...n,layoutId:function({layoutId:e}){let t=(0,a.useContext)(t6).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:f}=p,m=function(e){let{initial:t,animate:n}=function(e,t){if(tf(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tc(t)?t:void 0,animate:tc(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(ne));return(0,a.useMemo)(()=>({initial:t,animate:n}),[nt(t),nt(n)])}(n),g=l(n,f);if(!f&&"u">typeof window){(0,a.useContext)(t7).strict;let t=function(e){let{drag:t,layout:n}=nm();if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
1(p);d=t.MeasureLayout,m.visualElement=function(e,t,n,i,r,o){let{visualElement:s}=(0,a.useContext)(ne),l=(0,a.useContext)(t7),u=(0,a.useContext)(nu),d=(0,a.useContext)(t8),c=d.reducedMotion,h=d.skipAnimations,p=(0,a.useRef)(null),f=(0,a.useRef)(!1);i=i||l.renderer,!p.current&&i&&(p.current=i(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c,skipAnimations:h,isSVG:o}),f.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let m=p.current,g=(0,a.useContext)(ny);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(e,t,n,i){let{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:d,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&nx(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:d})}(p.current,n,r,g);let v=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{m&&v.current&&m.update(n,u)});let y=n[nv],x=(0,a.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return nw(()=>{f.current=!0,m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,a.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),x.current=!1),m.enteringChildren=void 0)}),m}(e,g,p,r,t.ProjectionNode,o)}return(0,s.jsxs)(ne.Provider,{value:m,children:[d&&m.visualElement?(0,s.jsx)(d,{visualElement:m.visualElement,...p}):null,function(e,t,n,{latestValues:i},r,o=!1,s){let l=(s??t4(e)?function(e,t,n,i){let r=(0,a.useMemo)(()=>{let n=nr();return tL(n,t,tI(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ni(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let n,i,r={},o=(n=e.style||{},ni(i={},n,e),Object.assign(i,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let n=nn();return tA(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),i);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r})(t,i,r,e),u=function(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!J(e[r])&&(na(r)||!0===n&&ns(r)||!t&&!ns(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(t,"string"==typeof e,o),d=e!==a.Fragment?{...u,...l,ref:n}:{},{children:c}=t,h=(0,a.useMemo)(()=>J(c)?c.get():c,[c]);return(0,a.createElement)(e,{...d,children:h})}(e,n,(u=m.visualElement,c=(0,a.useRef)(i),(0,a.useInsertionEffect)(()=>{c.current=i}),h=(0,a.useRef)(null),(0,a.useCallback)(e=>{e&&g.onMount?.(e);let t=c.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(h.current=n)}else h.current?(h.current(),h.current=null):t(e);else t&&(t.current=e);u&&(e?u.mount(e):u.unmount())},[u])),g,f,t,o)]})}u.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let d=(0,a.forwardRef)(u);return d[ng]=e,d}class nT{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nC(e,t,n){let i=e.getProps();return tw(i,t,void 0!==n?n:i.custom,e)}function nS(e,t){if(e?.inherit&&t){let{inherit:n,...i}=e;return{...t,...i}}return e}function nP(e,t){let n=e?.[t]??e?.default??e;return n!==e?nS(n,e):n}let nR=e=>Array.isArray(e);function nE(e,t){let n=e.getValue("willChange");if(J(n)&&n.add)return n.add(t);if(!n&&ek.WillChange){let n=new ek.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nk=(e,t)=>n=>t(e(n)),nA=(...e)=>e.reduce(nk);function nM(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nj(e,t){return n=>n>0?t:e}let nD=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},nL=[T,b,M];function nV(e){let t=nL.find(t=>t.test(e));if(er(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===M&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}
1){e/=360,n/=100;let r=0,o=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=nM(a,i,e+1/3),o=nM(a,i,e),s=nM(a,i,e-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let nI=(e,t)=>{let n=nV(e),i=nV(t);if(!n||!i)return nj(e,t);let r={...n};return e=>(r.red=nD(n.red,i.red,e),r.green=nD(n.green,i.green,e),r.blue=nD(n.blue,i.blue,e),r.alpha=tB(n.alpha,i.alpha,e),b.transform(r))},nO=new Set(["none","hidden"]);function nF(e,t){return n=>tB(e,t,n)}function nN(e){return"number"==typeof e?nF:"string"==typeof e?eu(e)?nj:j.test(e)?nI:nH:Array.isArray(e)?nB:"object"==typeof e?j.test(e)?nI:n_:nj}function nB(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>nN(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function n_(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=nN(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let nH=(e,t)=>{let n=N.createTransformer(t),i=O(e),r=O(t);if(!(i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length))return er(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nj(e,t);if(nO.has(e)&&!r.values.length||nO.has(t)&&!i.values.length)return nO.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return nA(nB(function(e,t){let n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],s=e.indexes[o][i[o]],a=e.values[s]??0;n[r]=a,i[o]++}return n}(i,r),r.values),n)};function nz(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tB(e,t,n):nN(e)(e,t)}let nU=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ej.update(t,e),stop:()=>eD(t),now:()=>eL.isProcessing?eL.timestamp:to.now()}};function n$(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let nW=.01,nG=2,nK=.005,nX=.5;function nY(e,t){return e*Math.sqrt(1-t*t)}let nq=["duration","bounce"],nZ=["stiffness","damping","mass"];function nJ(e,t){return t.some(t=>void 0!==e[t])}function nQ(e=.3,t=.3){let n,i,r,o,s,a,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:d}=l,h=l.keyframes[0],p=l.keyframes[l.keyframes.length-1],f={done:!1,value:h},{stiffness:m,damping:g,mass:v,duration:y,velocity:x,isResolvedFromDuration:w}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nJ(e,nZ)&&nJ(e,nq))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,r=2*c(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:r}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:i=1}){let r,o;er(e<=eG(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=c(.05,1,s),e=c(.01,10,e/1e3),s<1?(r=t=>{let i=t*s,r=i*e;return .001-(i-n)/nY(t,s)*Math.exp(-r)},o=t=>{let i=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-i),l=nY(Math.pow(t,2),s);return(i*n+n-o)*a*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(r,o,5/e);if(e=eG(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),b=x||0,T=g/(2*Math.sqrt(m*v)),C=p-h,S=Math.sqrt(m/v)/1e3,P=5>Math.abs(C);if(u||(u=P?nW:nG),d||(d=P?nK:nX),T<1)r=nY(S,T),o=(b+T*S*C)/r,n=e=>p-Math.exp(-T*S*e)*(o*Math.sin(r*e)+C*Math.cos(r*e)),s=T*S*o+C*r,a=T*S*C-o*r,i=e=>Math.exp(-T*S*e)*(s*Math.sin(r*e)+a*Math.cos(r*e));else if(1===T){n=e=>p-Math.exp(-S*e)*(C+(b+S*C)*e);let e=b+S*C;i=t=>Math.exp(-S*t)*(S*e*t-b)}else{let e=S*Math.sqrt(T*T-1);n=t=>{let n=Math.exp(-T*S*t),i=Math.min(e*t,300);return p-n*((b+T*S*C)*Math.sinh(i)+e*C*Math.cosh(i))/e};let t=(b+T*S*C)/e,r=T*S*t-C*e,o=T*S*C-t*e;i=t=>{let n=Math.exp(-T*S*t),i=Math.min(e*t,300);return n*(r*Math.sinh(i)+o*Math.cosh(i))}}let R={calculatedDuration:w&&y||null,velocity:e=>eG(i(e)),next:e=>{if(!w&&T<1){let t=Math.exp(-T*S*e),n=Math.sin(r*e),i=Math.cos(r*e),l=p-t*(o*n+C*i);return f.done=Math.abs(eG(t*(s*n+a*i)))<=u&&Math.abs(p-l)<=d,f.value=f.done?p:l,f}let t=n(e);return w?f.done=e>=y:f.done=Math.abs(eG(i(e)))<=u&&Math.abs(p-t)<=d,f.value=f.done?p:t,f},toString:()=>{let e=Math.min(n$(R),2e4),t=e6(t=>R.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return R}function n0(e,t,n){var i,r;let o=Math.max(t-5,0);return i=n-e(o),(r=t-o)?1e3/r*i:0}function n1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){let c,h,p=e[0],f={done:!1,value:p},m=n*t,g=p+m,v=void 0===s?g:s(g);v!==g&&(m=v-p);let y=e=>-m*Math.exp(-e/i),x=e=>v+y(e),w=e=>{let t=y(e),n=x(e);f.done=Math.abs(t)<=u,f.value=f.done?v:n},b=e=>{let t;if(t=f.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;c=e,h=nQ({keyframes:[f.value,(n=f.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:n0(x,e,f.value),damping:r,stiffness:o,restDelta:u,restSpeed:d})}};return b(0),{calculatedDuration:null,next:e=>{let t=!1;
1return(h||void 0!==c||(t=!0,w(e),b(e)),void 0!==c&&e>=c)?h.next(e-c):(t||w(e),f)}}}nQ.applyToOptions=e=>{let t=function(e,t=100,n){let i=n({...e,keyframes:[0,t]}),r=Math.min(n$(i),2e4);return{type:"keyframes",ease:e=>i.next(r*e).value/t,duration:r/1e3}}(e,100,nQ);return e.ease=t.ease,e.duration=eG(t.duration),e.type="keyframes",e};let n2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function n5(e,t,n,i){return e===t&&n===i?eE:r=>0===r||1===r?r:n2(function(e,t,n,i,r){let o,s,a=0;do(o=n2(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12)return s}(r,0,1,e,n),t,i)}let n3=n5(.42,0,1,1),n9=n5(0,0,.58,1),n4=n5(.42,0,.58,1),n6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n7=e=>t=>1-e(1-t),n8=n5(.33,1.53,.69,.99),ie=n7(n8),it=n6(ie),ii=e=>e>=1?1:(e*=2)<1?.5*ie(e):.5*(2-Math.pow(2,-10*(e-1))),ir=e=>1-Math.sin(Math.acos(e)),io=n7(ir),is=n6(ir),ia={linear:eE,easeIn:n3,easeInOut:n4,easeOut:n9,circIn:ir,circInOut:is,circOut:io,backIn:ie,backInOut:it,backOut:n8,anticipate:ii},il=e=>{if(e9(e)){eo(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,i,r]=e;return n5(t,n,i,r)}return"string"==typeof e?(eo(void 0!==ia[e],`Invalid easing type '${e}'`,"invalid-easing-type"),ia[e]):e},iu=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i};function id({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){var r;let o,s=Array.isArray(i)&&"number"!=typeof i[0]?i.map(il):il(i),a={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let o=e.length;if(eo(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let i=[],r=n||ek.mix||nz,o=e.length-1;for(let n=0;n<o;n++){let o=r(e[n],e[n+1]);t&&(o=nA(Array.isArray(t)?t[n]||eE:t,o)),i.push(o)}return i}(t,i,r),l=a.length,u=n=>{if(s&&n<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let r=iu(e[i],e[i+1],n);return a[i](r)};return n?t=>u(c(e[0],e[o-1],t)):u}((r=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=iu(0,t,i);e.push(tB(n,1,r))}}(o=[0],t.length-1),o),r.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||n4).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let ic={decay:n1,inertia:n1,tween:id,keyframes:id,spring:nQ};function ih(e){"string"==typeof e.type&&(e.type=ic[e.type])}let ip=e=>e/100;class im extends e5{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==to.now()&&this.tick(to.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e3.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;ih(e);let{type:t=id,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e,{keyframes:s}=e,a=t||id;a!==id&&"number"!=typeof s[0]&&(this.mixKeyframes=nA(ip,nz(s[0],s[1])),s=[0,100]);let l=a({...e,keyframes:s});"mirror"===r&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=n$(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:i,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:d,repeat:h,repeatType:p,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let w=this.currentTime,b=i;if(h){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===p?(n=1-n,f&&(n-=f/a)):"mirror"===p&&(b=s)),w=c(0,1,n)*a}x?(this.delayState.value=d[0],n=this.delayState):n=b.next(w),o&&!x&&(n.value=o(n.value));let{done:T}=n;x||null===l||(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return C&&m!==n1&&(n.value=e2(d,this.options,v,this.speed)),g&&g(n.value),C&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=eG(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return n0(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(to.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=nU,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"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(to.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,e3.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let ig={anticipate:ii,backInOut:it,circInOut:is};class iv extends tt{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in ig&&(e.ease=ig[e.ease])}(e),ih(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new im({...o,autoplay:!1}),a=Math.max(10,to.now()-this.startTime),l=c(0,10,a-10),u=s.sample(a).value,{name:d}=this.options;r&&d&&eq(r,d,u),t.setWithVelocity(s.sample(Math.max(0,a-l)).value,u,l),s.stop()}}let iy=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(N.test(e)||"0"===e)&&!e.startsWith("url("));function ix(e){e.duration=0,e.type="keyframes"}let iw=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ib=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iT=eZ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iC extends e5{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:
1o="loop",keyframes:s,name:a,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=to.now();const c={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:o,name:a,motionValue:l,element:u,...d},h=u?.KeyframeResolver||eH;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,c,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,i){let r;this.keyframeResolver=void 0;let{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:d}=n;this.resolvedAt=to.now();let c=!0;!function(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=iy(r,t),a=iy(o,t);return er(s===a,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||te(n))&&i)}(e,o,s,a)&&(c=!1,(ek.instantAnimations||!l)&&d?.(e2(e,n,t)),e[0]=e[e.length-1],ix(n),n.repeat=0);let h={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=c&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:s,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return iT()&&n&&(tn.has(n)||ib.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&iw.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!u)&&!l&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}(h),f=h.motionValue?.owner?.current;if(p)try{r=new iv({...h,element:f})}catch{r=new im(h)}else r=new im(h);r.finished.then(()=>{this.notifyFinished()}).catch(eE),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eN=!0,e_(),eB(),eN=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let iS={type:"spring",stiffness:500,damping:25,restSpeed:10},iP={type:"keyframes",duration:.8},iR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iE=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),ik=(e,t,n,i={},r,o)=>s=>{let a=nP(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=eG(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};!function(e){for(let t in e)if(!iE.has(t))return!0;return!1}(a)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?iP:d.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:iS:iR)(e,c)),c.duration&&(c.duration=eG(c.duration)),c.repeatDelay&&(c.repeatDelay=eG(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ix(c),0===c.delay&&(h=!0)),(ek.instantAnimations||ek.skipAnimations||r?.shouldSkipAnimations)&&(h=!0,ix(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&void 0!==t.get()){let e=e2(c.keyframes,a);if(void 0!==e)return void ej.update(()=>{c.onUpdate(e),c.onComplete()})}return a.isSync?new im(c):new iC(c)};function iA(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o,transitionEnd:s,...a}=t,l=e.getDefaultTransition();o=o?nS(o,l):l;let u=o?.reduceMotion;i&&(o=i);let d=[],c=r&&e.animationState&&e.animationState.getState()[r];for(let t in a){let i=e.getValue(t,e.latestValues[t]??null),r=a[t];if(void 0===r||c&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(c,t))continue;let s={delay:n,...nP(o||{},t)},l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(r)&&r===l&&!s.velocity){ej.update(()=>i.set(r));continue}let h=!1;if(window.MotionHandoffAnimation){let n=e.props[nv];
1if(n){let e=window.MotionHandoffAnimation(n,t,ej);null!==e&&(s.startTime=e,h=!0)}}nE(e,t);let p=u??e.shouldReduceMotion;i.start(ik(t,i,r,p&&Q.has(t)?{type:!1}:s,e,h));let f=i.animation;f&&d.push(f)}if(s){let t=()=>ej.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:i={},...r}=nC(e,t)||{};for(let t in r={...r,...n}){var o;let n=nR(o=r[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ta(n))}}(e,s)});d.length?Promise.all(d).then(t):t()}return d}function iM(e,t,n,i=0,r=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*i;return"function"==typeof n?n(o,s):1===r?o*i:a-o*i}function ij(e,t,n={}){let i=nC(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all(iA(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=r;return function(e,t,n=0,i=0,r=0,o=1,s){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(ij(l,t,{...s,delay:n+("function"==typeof i?0:i)+iM(e.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,i,o,s,a,n)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}let iD=tp.length;function iL(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}let iV=[...th].reverse(),iI=th.length;function iO(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iF(){return{animate:iO(!0),whileInView:iO(),whileHover:iO(),whileTap:iO(),whileDrag:iO(),whileFocus:iO(),exit:iO()}}let iN=0;function iB(e){return[e("x"),e("y")]}function i_(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let iH={x:!1,y:!1};function iz(e){return e.max-e.min}function iU(e,t,n,i=.5){e.origin=i,e.originPoint=tB(t.min,t.max,e.origin),e.scale=iz(n)/iz(t),e.translate=tB(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function i$(e,t,n,i){iU(e.x,t.x,n.x,i?i.originX:void 0),iU(e.y,t.y,n.y,i?i.originY:void 0)}function iW(e,t,n,i=0){e.min=(i?tB(n.min,n.max,i):n.min)+t.min,e.max=e.min+iz(t)}function iG(e,t,n,i=0){let r=i?tB(n.min,n.max,i):n.min;e.min=t.min-r,e.max=e.min+iz(t)}function iK(e,t,n,i){iG(e.x,t.x,n.x,i?.x),iG(e.y,t.y,n.y,i?.y)}function iX(e){return"object"==typeof e&&null!==e}function iY(e){return iX(e)&&"ownerSVGElement"in e}function iq(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}let iZ=new WeakMap,iJ=(e,t,n)=>(i,r)=>r&&r[0]?r[0][e+"Size"]:iY(i)&&"getBBox"in i?i.getBBox()[t]:i[n],iQ=iJ("inline","width","offsetWidth"),i0=iJ("block","height","offsetHeight");function i1({target:e,borderBoxSize:t}){iZ.get(e)?.forEach(n=>{n(e,{get width(){return iQ(e,t)},get height(){return i0(e,t)}})})}function i2(e){e.forEach(i1)}let i5=new Set;function i3(e,t){let r;return"function"==typeof e?(i5.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};i5.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{i5.delete(e),i5.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!n&&"u">typeof ResizeObserver&&(n=new ResizeObserver(i2)),(r=iq(e)).forEach(e=>{let i=iZ.get(e);i||(i=new Set,iZ.set(e,i)),i.add(t),n?.observe(e)}),()=>{r.forEach(e=>{let i=iZ.get(e);i?.delete(t),i?.size||n?.unobserve(e)})})}let i9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),i4=new Set(["INPUT","SELECT","TEXTAREA"]),i6=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function i7(e){return{point:{x:e.pageX,y:e.pageY}}}function i8(e,t,n,i){return i_(e,t,e=>i6(e)&&n(e,i7(e)),i)}let re=({current:e})=>e?e.ownerDocument.defaultView:null,rt=(e,t)=>Math.abs(e-t),rn=new Set(["auto","scroll"]);class ri{constructor(e,t,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rr(this.lastRawMoveEventInfo,this.transformPagePoint));let n=rs(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(e=n.offset,t={x:0,y:0},Math.sqrt(rt(e.x,t.x)**2+rt(e.y,t.y)**2)>=this.distanceThreshold);if(!i&&!r)return;let{point:o}=n,{timestamp:s}=eL;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;
1i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=rr(t,this.transformPagePoint),ej.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rs("pointercancel"===e.type?this.lastMoveEventInfo:rr(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!i6(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const a=rr(i7(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=eL;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=t;d&&d(e,rs(a,this.history)),this.removeListeners=nA(i8(this.contextWindow,"pointermove",this.handlePointerMove),i8(this.contextWindow,"pointerup",this.handlePointerUp),i8(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(rn.has(e.overflowX)||rn.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-t.x,y:i.y-t.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),ej.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eD(this.updatePoint)}}function rr(e,t){return t?{point:t(e.point)}:e}function ro(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rs({point:e},t){return{point:e,delta:ro(e,ra(t)),offset:ro(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,i=ra(e);for(;t>=0&&(n=e[t],!(i.timestamp-n.timestamp>eG(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&i.timestamp-n.timestamp>2*eG(.1)&&(n=e[1]);let r=(i.timestamp-n.timestamp)/1e3;if(0===r)return{x:0,y:0};let o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function ra(e){return e[e.length-1]}function rl(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ru(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function rd(e,t,n){return{min:rc(e,t),max:rc(e,n)}}function rc(e,t){return"number"==typeof e?e:e[t]||0}let rh=new WeakMap;class rp{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=e=>{t&&this.snapToCursor(i7(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(iH[e])return null;else return iH[e]=!0,()=>{iH[e]=!1};return iH.x||iH.y?null:(iH.x=iH.y=!0,()=>{iH.x=iH.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iB(e=>{let t=this.getAxisMotionValue(e).get()||0;if(P.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];
1i&&(t=iz(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&ej.update(()=>r(e,t),!1,!0),nE(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&ej.update(()=>o(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ri(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:re(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,i=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&ej.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!rm(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?tB(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?tB(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&nx(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:rl(e.x,n,r),y:rl(e.y,t,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rd(e,"left","right"),y:rd(e,"top","bottom")}}(t),i!==this.constraints&&!nx(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&iB(e=>{var t,i;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],i=this.constraints[e],r={},void 0!==i.min&&(r.min=i.min-t.min),void 0!==i.max&&(r.max=i.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nx(t))return!1;let i=t.current;eo(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(e,t,n){let i=t5(e,n),{scroll:r}=t;return r&&(tQ(i.x,r.offset.x),tQ(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s=(e=r.layout.layoutBox,{x:ru(e.x,o.x),y:ru(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=tW(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(iB(s=>{if(!rm(s,t,this.currentDirection))return;let l=a&&a[s]||{};(!0===o||o===s)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nE(this.visualElement,e),n.start(ik(e,n,0,t,this.visualElement,!1))}stopAnimation(){iB(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){iB(t=>{let{drag:n}=this.getProps();if(!rm(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t],s=r.get()||0;r.set(e[t]-tB(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nx(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};iB(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,r;let o,s,a,l=t.get();i[e]=(n={min:l,max:l},r=this.constraints[e],o=.5,s=iz(n),(a=iz(r))>s?o=iu(r.min,r.max-s,n.min):s>a&&(o=iu(n.min,n.max-a,r.min)),c(0,1,o))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),iB(t=>{if(!rm(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(tB(r,o,i[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;rh.set(this.visualElement,this);let t=this.visualElement.current,n=i8(t,"pointerdown",e=>{let{drag:n,dragListener:i=!0}
1=this.getProps(),r=e.target,o=r!==t&&(i4.has(r.tagName)||!0===r.isContentEditable);n&&i&&!o&&this.start(e)}),i=()=>{var n,i,r;let o,s,{dragConstraints:a}=this.getProps();nx(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,i=a.current,o=i3(n,rf(r=()=>this.scalePositionWithinConstraints())),s=i3(i,rf(r)),e=()=>{o(),s()}))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ej.read(i);let s=i_(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(iB(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function rf(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function rm(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let rg=e=>(t,n)=>{e&&ej.update(()=>e(t,n),!1,!0)},rv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ry=a;let rx=!1;class rw extends ry.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),rx&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rv.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),rx=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||ej.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ti.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;rx=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rb(e){let[t,n]=function(e=!0){let t=(0,a.useContext)(nu);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:i,register:r}=t,o=(0,a.useId)();(0,a.useEffect)(()=>{if(e)return r(o)},[e]);let s=(0,a.useCallback)(()=>e&&i&&i(o),[o,i,e]);return!n&&i?[!1,s]:[!0]}(),i=(0,ry.useContext)(t6);return(0,s.jsx)(rw,{...e,layoutGroup:i,switchLayoutGroup:(0,ry.useContext)(ny),isPresent:t,safeToRemove:n})}let rT=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rC=rT.length,rS=e=>"string"==typeof e?parseFloat(e):e,rP=e=>"number"==typeof e||R.test(e);function rR(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rE=rA(0,.5,io),rk=rA(.5,.95,eE);function rA(e,t,n){return i=>i<e?0:i>t?1:n(iu(e,t,i))}function rM(e,t){e.min=t.min,e.max=t.max}function rj(e,t){rM(e.x,t.x),rM(e.y,t.y)}function rD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rL(e,t,n,i,r){return e-=t,e=i+1/n*(e-i),void 0!==r&&(e=i+1/r*(e-i)),e}function rV(e,t,[n,i,r],o,s){!function(e,t=0,n=1,i=.5,r,o=e,s=e){if(P.test(t)&&(t=parseFloat(t),t=tB(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tB(o.min,o.max,i);e===o&&(a-=t),e.min=rL(e.min,t,n,a,r),e.max=rL(e.max,t,n,a,r)}(e,t[n],t[i],t[r],t.scale,o,s)}let rI=["x","scaleX","originX"],rO=["y","scaleY","originY"];function rF(e,t,n,i){rV(e.x,t,rI,n?n.x:void 0,i?i.x:void 0),rV(e.y,t,rO,n?n.y:void 0,i?i.y:void 0)}function rN(e){return 0===e.translate&&1===e.scale}function rB(e){return rN(e.x)&&rN(e.y)}function r_(e,t){return e.min===t.min&&e.max===t.max}function rH(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rz(e,t){return rH(e.x,t.x)&&rH(e.y,t.y)}function rU(e){return iz(e.x)/iz(e.y)}function r$(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rW{constructor(){this.members=[]}add(e){eK(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let i=n.instance;i&&!1!==i.isConnected||n.snapshot||(eX(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(eX(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=n.options,{layoutDependency:r}=e.options;(void 0===i||i!==r)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isU
1pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rG=(e,t)=>e.depth-t.depth;class rK{constructor(){this.children=[],this.isDirty=!1}add(e){eK(this.children,e),this.isDirty=!0}remove(e){eX(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rG),this.isDirty=!1,this.children.forEach(e)}}let rX=["","X","Y","Z"],rY=0;function rq(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function rZ({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=t?.()){this.id=rY++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(r0),this.nodes.forEach(r8),this.nodes.forEach(oe),this.nodes.forEach(r1)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rK)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eY),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=iY(t)&&!(iY(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),e){let n,i=0,r=()=>this.root.updateBlockedByResize=!1;ej.read(()=>{i=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==i){let t,o;i=e,this.root.updateBlockedByResize=!0,n&&n(),t=to.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&(eD(o),r(n-250))},ej.setup(o,!0),n=()=>eD(o),rv.hasAnimatedSinceResize&&(rv.hasAnimatedSinceResize=!1,this.nodes.forEach(r7))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||os,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rz(this.targetLayout,i),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nP(o,"layout"),onPlay:s,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||r7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eD(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(ot),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let i=n.props[nv];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",ej,!(e||n))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(r3),this.nodes.forEach(r5);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r9);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r4),this.nodes.forEach(r6),this.nodes.forEach(rJ),this.nodes.forEach(rQ)):this.nodes.forEach(r9),this.clearAllSnapshots();let e=to.now();eL.delta=c(0,1e3/60,e-eL.timestamp),eL.timestamp=e,eL.isProcessing=!0,eV.update.process(eL),eV.preRender.process(eL),eV.render.process(eL),eL.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ti.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r2),this.sharedNodes.forEach(on)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ej.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ej.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iz(this.snapshot.measuredBox.x)||iz(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Z()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rB(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||tX(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),ou((t=i).x),ou(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Z();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(oc))){let{scroll:e}=this.root;e&&(tQ(t.x,e.offset.x),tQ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Z();if(rj(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&rj(t,e),tQ(t.x,r.offset.x),tQ(t.y,r.offset.y))}return t}applyTransform(e,t=!1,n){let i=n||Z();rj(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tQ(i.x,-n.scroll.offset.x),tQ(i.y,-n.scroll.offset.y)),tX(n.latestValues)&&t2(i,n.latestValues,n.layout?.layoutBox)}return tX(this.latestValues)&&t2(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=Z();rj(t,e);for(let e=0;e<this.path.length;e++){let n,i=this.path[e];tX(i.latestValues)&&(i.instance&&(tK(i.latestValues)&&i.updateSnapshot(),r
1j(n=Z(),i.measurePageBox())),rF(t,i.latestValues,i.snapshot?.layoutBox,n))}return tX(this.latestValues)&&rF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eL.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(!this.layout||!(i||r))return;this.resolvedRelativeTargetAt=eL.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l,u;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,iW(s.x,a.x,l.x,u?.x),iW(s.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rj(this.target,this.layout.layoutBox),tJ(this.target,this.targetDelta)):rj(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tK(this.parent.latestValues)||tY(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),iK(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),rj(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eL.timestamp&&(n=!1),n)return;let{layout:i,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||!(i||r))return;rj(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,i=!1){let r,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(r=n[a]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(tQ(e.x,-r.scroll.offset.x),tQ(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tJ(e,o)),i&&tX(r.latestValues)&&t2(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Z());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rD(this.prevProjectionDelta.x,this.projectionDelta.x),rD(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),i$(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&r$(this.projectionDelta.x,this.prevProjectionDelta.x)&&r$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(e,t=!1){let n,i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},s=Y();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=Z(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(oo));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(oi(s.x,e.x,i),oi(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,f,m,g;iK(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=i,or(p.x,f.x,m.x,g),or(p.y,f.y,m.y,g),n&&(u=this.relativeTarget,h=n,r_(u.x,h.x)&&r_(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=Z()),rj(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,i,r,o){r?(e.opacity=tB(0,n.opacity??1,rE(i)),e.opacityExit=tB(t.opacity??1,0,rk(i))):o&&(e.opacity=tB(t.opacity??1,n.opacity??1,i));for(let r=0;r<rC;r++){let o=rT[r],s=rR(t,o),a=rR(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rP(s)===rP(a)?(e[o]=Math.max(tB(rS(s),rS(a),i),0),(P.test(a)||P.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=tB(t.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,c,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eD(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ej.update(()=>{var t,n,i;let r;rv.hasAnimatedSinceResize=!0,e3.layout++,this.motionValue||(this.motionValue=ta(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],i={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e3.layout--},onComplete:()=>{e3.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}
1,(r=J(t)?t:ta(t)).start(ik("",r,n,i)),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&od(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||Z();let t=iz(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=iz(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}rj(t,n),t2(t,r),i$(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rW),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&rq("z",e,i,this.animationValues);for(let t=0;t<rX.length;t++)rq(`rotate${rX[t]}`,e,i,this.animationValues),rq(`skew${rX[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=nl(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nl(t?.pointerEvents)||""),this.hasProjected&&!tX(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();
1let o=function(e,t,n){let i="",r=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),e.transform=o;let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,i.animationValues?e.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,t_){if(void 0===r[t])continue;let{correct:n,applyTo:s,isCSSVariable:a}=t_[t],l="none"===o?r[t]:n(r[t],i);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=i===this?nl(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(r5),this.root.sharedNodes.clear()}}}function rJ(e){e.updateLayout()}function rQ(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;if("size"===r)iB(e=>{let i=o?t.measuredBox[e]:t.layoutBox[e],r=iz(i);i.min=n[e].min,i.max=i.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";rM(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else od(r,t.layoutBox,n)&&iB(i=>{let r=o?t.measuredBox[i]:t.layoutBox[i],s=iz(n[i]);r.max=r.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=Y();i$(s,n,t.layoutBox);let a=Y();o?i$(a,e.applyTransform(i,!0),t.measuredBox):i$(a,n,t.layoutBox);let l=!rB(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=e.options.layoutAnchor||void 0,a=Z();iK(a,t.layoutBox,r.layoutBox,s);let l=Z();iK(l,n,o.layoutBox,s),rz(a,l)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r0(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r2(e){e.clearSnapshot()}function r5(e){e.clearMeasurements()}function r3(e){e.isLayoutDirty=!0,e.updateLayout()}function r9(e){e.isLayoutDirty=!1}function r4(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function r6(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function r7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r8(e){e.resolveTargetDelta()}function oe(e){e.calcProjection()}function ot(e){e.resetSkewAndRotation()}function on(e){e.removeLeadSnapshot()}function oi(e,t,n){e.translate=tB(t.translate,0,n),e.scale=tB(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function or(e,t,n,i){e.min=tB(t.min,n.min,i),e.max=tB(t.max,n.max,i)}function oo(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let os={duration:.45,ease:[.4,0,.1,1]},oa=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ol=oa("applewebkit/")&&!oa("chrome/")?Math.round:eE;function ou(e){e.min=ol(e.min),e.max=ol(e.max)}
1function od(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rU(t)-rU(n)))}function oc(e){return e!==e.root&&e.scroll?.wasRoot}let oh=rZ({attachResizeListener:(e,t)=>i_(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),op={current:void 0},of=rZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!op.current){let e=new oh({});e.mount(window),e.setOptions({layoutScroll:!0}),op.current=e}return op.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function om(e,t){let n=iq(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function og(e,t,n){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&ej.postRender(()=>r(t,i7(t)))}let ov=(e,t)=>!!t&&(e===t||ov(e,t.parentElement)),oy=new WeakSet;function ox(e){return t=>{"Enter"===t.key&&e(t)}}function ow(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function ob(e){return i6(e)&&!(iH.x||iH.y)}let oT=new WeakSet;function oC(e,t,n){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&ej.postRender(()=>r(t,i7(t)))}let oS=new WeakMap,oP=new WeakMap,oR=e=>{let t=oS.get(e.target);t&&t(e)},oE=e=>{e.forEach(oR)},ok={some:0,all:1},oA=function(e,t){if("u"<typeof Proxy)return nb;let n=new Map,i=(n,i)=>nb(n,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,nb(o,void 0,e,t)),n.get(o))})}({animation:{Feature:class extends nT{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>ij(e,t,n)));else if("string"==typeof t)i=ij(e,t,n);else{let r="function"==typeof t?nC(e,t,n.custom):t;i=Promise.all(iA(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=iF(),i=!0,r=!1,o=t=>(n,i)=>{let r=nC(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...i}=r;n={...n,...i,...t}}return n};function s(s){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<iD;e++){let i=tp[e],r=t.props[i];(tc(r)||!1===r)&&(n[i]=r)}return n}(e.parent)||{},u=[],d=new Set,c={},h=1/0;for(let t=0;t<iI;t++){var p,f;let m=iV[t],g=n[m],v=void 0!==a[m]?a[m]:l[m],y=tc(v),x=m===s?g.isActive:null;!1===x&&(h=t);let w=v===l[m]&&v!==a[m]&&y;if(w&&(i||r)&&e.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...c},!g.isActive&&null===x||!v&&!g.prevProp||td(v)||"boolean"==typeof v)continue;if("exit"===m&&g.isActive&&!0!==x){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let b=(p=g.prevProp,"string"==typeof(f=v)?f!==p:!!Array.isArray(f)&&!iL(f,p)),T=b||m===s&&g.isActive&&!w&&y||t>h&&y,C=!1,S=Array.isArray(v)?v:[v],P=S.reduce(o(m),{});!1===x&&(P={});let{prevResolvedValues:R={}}=g,E={...R,...P},k=t=>{T=!0,d.has(t)&&(C=!0,d.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in E){let t=P[e],n=R[e];if(!c.hasOwnProperty(e))(nR(t)&&nR(n)?iL(t,n):t===n)?void 0!==t&&d.has(e)?k(e):g.protectedKeys[e]=!0:null!=t?k(e):d.add(e)}g.prevProp=v,g.prevResolvedValues=P,g.isActive&&(c={...c,...P}),(i||r)&&e.blockInitialAnimation&&(T=!1);let A=w&&b,M=!A||C;T&&M&&u.push(...S.map(t=>{let n={type:m};if("string"==typeof t&&(i||r)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,r=nC(i,t);if(i.enteringChildren&&r){let{delayChildren:t}=r.transition||{};n.delay=iM(i.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(d.size){let t={};if("boolean"!=typeof a.initial){let n=nC(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}
1d.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=i??null}),u.push({animation:t})}let m=!!u.length;return i&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,r=!1,m?t(u):Promise.resolve()}return{animateChanges:s,setActive:function(t,i){if(n[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),n[t].isActive=i;let r=s(t);for(let e in n)n[e].protectedKeys={};return r},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=iF(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();td(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends nT{constructor(){super(...arguments),this.id=iN++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){let n=nC(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...i}=n;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends nT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:i,margin:r,amount:o="some",once:s}=n,a={root:i?i.current:void 0,rootMargin:r,threshold:"number"==typeof o?o:ok[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=t?n:i;r&&r(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;oP.has(n)||oP.set(n,{});let i=oP.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(oE,{root:e,...t})),i[r]}(a),oS.set(e,l),t.observe(e),()=>{oS.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends nT{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[i,r,o]=om(e,n),s=e=>{let i=e.currentTarget;if(!ob(e)||oT.has(e))return;oy.add(i),n.stopPropagation&&oT.add(e);let o=t(i,e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),oy.has(i)&&oy.delete(i),ob(e)&&"function"==typeof o&&o(e,{success:t})},a=e=>{s(e,i===window||i===document||n.useGlobalTarget||ov(i,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return i.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,r),iX(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let i=ox(()=>{if(oy.has(n))return;ow(n,"down");let e=ox(()=>{ow(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>ow(n,"cancel"),t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)}
1)(e,r)),i9.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(oC(this.node,t,"Start"),(e,{success:t})=>oC(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends nT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nA(i_(this.node.current,"focus",()=>this.onFocus()),i_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nT{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[i,r,o]=om(e,n);return i.forEach(e=>{let n,i=!1,o=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{i=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(i){o=!0;return}s(e)}};e.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||iH.x||iH.y)return;o=!1;let s=t(e,i);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,r))},r),e.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),o}(e,(e,t)=>(og(this.node,t,"Start"),e=>og(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends nT{constructor(){super(...arguments),this.removePointerDownListener=eE}onPointerDown(e){this.session=new ri(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:re(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:rg(e),onStart:rg(t),onMove:rg(n),onEnd:(e,t)=>{delete this.session,i&&ej.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=i8(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends nT{constructor(e){super(e),this.removeGroupControls=eE,this.removeListeners=eE,this.controls=new rp(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eE}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:of,MeasureLayout:rb},layout:{ProjectionNode:of,MeasureLayout:rb}},(e,t)=>t.isSVG??t4(e)?new t$(t):new t3(t,{allowProjection:e!==a.Fragment}));var oM=e.i(294237),oj=e.i(647163),oD=e.i(540796);let oL=(0,oD.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),oV=(0,oD.default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),oI=(0,oD.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),oO=(0,oD.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),oF={default:{handleClass:"scroll-handle-default",centerBgClass:"scroll-center-default"},human:{handleClass:"scroll-handle-human",centerBgClass:"scroll-center-human"},undead:{handleClass:"scroll-handle-undead",centerBgClass:"scroll-center-undead"},orc:{handleClass:"scroll-handle-orc",centerBgClass:"scroll-center-orc"},elf:{handleClass:"scroll-handle-elf",centerBgClass:"scroll-center-elf"}},oN=(0,oM.cva)("w-full h-full flex flex-col items-center justify-center px-2 py-2 text-center font-serif",{variants:{variant:{default:"text-[#211306]",success:"text-green-900",error:"text-red-900",warning:"text-yellow-950",info:"text-blue-950"}},defaultVariants:{variant:"default"}}),oB=(0,oM.cva)("shrink-0 inline mr-1 align-middle",{variants:{variant:{default:"text-[#332211]",success:"text-green-800",error:"text-red-800",warning:"text-yellow-900",info:"text-blue-900"}},defaultVariants:{variant:"default"}}),o_={type:"tween",ease:"easeInOut",duration:.8},oH={success:oL,error:oV,warning:oI,info:oO},oz=({id:e,message:t,durationMs:n,faction:i="default",variant:r="default"})=>{let[o,u]=(0,a.useState)(0),d=(0,a.useMemo)(()=>oF[i]??oF.default,[i]),c=(0,a.useMemo)(()=>r&&"default"!==r&&oH[r]?oH[r]:null,[r]);return(0,a.useEffect)(()=>{let t=Math.max(800,n-1200),i=[];return i.push(setTimeout(()=>u(1),600)),i.push(setTimeout(()=>u(2),t)),i.push(setTimeout(()=>l.toast.dismiss(e),n)),()=>i.forEach(clearTimeout)}
1,[e,n]),(0,s.jsx)("div",{className:(0,oj.cn)("w-[300px] h-28 relative mx-auto pointer-events-auto flex justify-center"),children:(0,s.jsxs)(oA.div,{className:"h-full flex items-center",children:[(0,s.jsx)(oA.div,{layout:!0,transition:o_,className:(0,oj.cn)("w-5 h-full z-20 shrink-0",d.handleClass)}),(0,s.jsx)(oA.div,{layout:!0,initial:{width:0},animate:{width:264*(1===o)},transition:o_,className:(0,oj.cn)("h-[100px] z-10 overflow-hidden relative shrink-0 -mx-2",d.centerBgClass),children:(0,s.jsx)(oA.div,{className:oN({variant:r}),initial:{opacity:0,scale:.9,filter:"blur(4px)"},animate:{opacity:+(1===o),scale:1===o?1:.95,filter:1===o?"blur(0px)":"blur(4px)"},transition:{duration:.5,delay:.25*(1===o),ease:"easeInOut"},children:(0,s.jsxs)("div",{className:"flex flex-row items-center justify-center gap-1 w-full",children:[c&&(0,s.jsx)(c,{size:18,className:oB({variant:r}),"aria-hidden":"true"}),(0,s.jsx)("span",{className:"text-xs truncate leading-snug fantasy align-middle",children:t})]})})}),(0,s.jsx)(oA.div,{layout:!0,transition:o_,className:(0,oj.cn)("w-5 h-full z-20 shrink-0",d.handleClass,"scroll-handle-flip")})]})})};var oU=e.i(493739);let o$=(0,oM.cva)("fantasy inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all duration-100 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 active:scale-95 active:brightness-75 active:shadow-inner",{variants:{variant:{default:"bg-center px-5 py-4 bg-cover bg-no-repeat text-white hover:brightness-110",frame:"bg-center bg-cover bg-no-repeat text-white hover:brightness-110"}},defaultVariants:{variant:"default"}});function oW({className:e,variant:t,asChild:n=!1,style:i,...r}){let o=n?oU.Slot:"button";return(0,s.jsx)(o,{className:(0,oj.cn)(o$({variant:t}),"border-solid [border-image-repeat:stretch] border-5 [border-image-slice:16_fill]","frame"===t?"wc-btn-border-frame":"wc-btn-border",e),style:i,"data-slot":"button",...r})}var oG=e.i(788454),oK=e.i(161780);let oX={human:{success:"Victory for the Alliance!",error:"A grave error has occurred.",warning:"Proceed with caution",info:"The light guides your path.",default:"Justice shall be done."},orc:{success:"Strength and honor!",error:"The spirits are restless!",warning:"This could anger the clan.",info:"Lok'tar, move forward!",default:"Lok'tar ogar!"},undead:{success:"The dead serve us well.",error:"You will know endless torment.",warning:"Tread lightly, mortal.",info:"Frostmourne yearns.",default:"The dead shall serve."},elf:{success:"Nature smiles upon you.",error:"Something is amiss in the forest.",warning:"Beware of the shadows.",info:"The goddess watches over us.",default:"I am the iron hand of justice."},default:{success:"Operation successful.",error:"Something went wrong!",warning:"Heed this warning!",info:"Informational toast activated!",default:"This is warcraft!"}},oY=[{label:"Default",value:"default"},{label:"Human",value:"human"},{label:"Orc",value:"orc"},{label:"Night Elf",value:"elf"},{label:"Undead",value:"undead"}],oq=[{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}],oZ=[{label:"Default",value:"default"},{label:"Success",value:"success"},{label:"Error",value:"error"},{label:"Warning",value:"warning"},{label:"Info",value:"info"}];e.s(["ToastExample",0,()=>{let[e,t]=(0,a.useState)("default"),[n,i]=(0,a.useState)("top-center"),[r,o]=(0,a.useState)("default");return(0,s.jsx)("div",{className:"w-[90vw] md:w-full md:p-2 p-8",style:{backgroundImage:"url('/warcraftcn/textarea-bg.webp')",backgroundSize:"100% 100%"},children:(0,s.jsxs)("div",{className:"flex flex-col gap-6 p-4 sm:p-10",children:[(0,s.jsxs)("fieldset",{className:"mb-2 sm:mb-6",children:[(0,s.jsx)("legend",{className:"font-semibold mb-2 sm:mb-3 text-white",children:"Faction"}),(0,s.jsx)(oG.RadioGroup,{defaultValue:"default",onValueChange:e=>t(e),children:(0,s.jsx)("div",{className:"flex flex-col lg:flex-row items-start lg:items-center gap-2 lg:gap-4",children:oY.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(oG.RadioGroupItem,{value:e.value,id:`faction-${e.value}`}),(0,s.jsx)(oK.Label,{htmlFor:`faction-${e.value}`,children:e.label})]},e.value))})})]}),(0,s.jsxs)("fieldset",{className:"mb-2 sm:mb-6",children:[(0,s.jsx)("legend",{className:"font-semibold mb-2 sm:mb-3 text-white",children:"Position"}),(0,s.jsx)(oG.RadioGroup,{defaultValue:"top-center",onValueChange:e=>i(e),children:(0,s.jsx)("div",{className:"flex flex-col lg:flex-row items-start lg:items-center gap-2 lg:gap-4",children:oq.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(oG.RadioGroupItem,{value:e.value,id:`position-${e.value}`}),(0,s.jsx)(oK.Label,{htmlFor:`position-${e.value}`,children:e.label})]},e.value))})})]}),(0,s.jsxs)("fieldset",{className:"mb-2 sm:mb-6",children:[(0,s.jsx)("legend",{className:"font-semibold mb-2 sm:mb-3 text-white",children:"Variant"}),(0,s.jsx)(oG.RadioGroup,{defaultValue:"default",onValueChange:e=>o(e),children:(0,s.jsx)("div",{className:"flex flex-col lg:flex-row items-start lg:items-center gap-2 lg:gap-4",children:oZ.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(oG.RadioGroupItem,{value:e.value,id:`variant-${e.value}`}),(0,s.jsx)(oK.Label,{htmlFor:`variant-${e.value}`,children:e.label})]},e.value))})})]}),(0,s.jsx)("div",{children:(0,s.jsx)(oW,{variant:"frame",onClick:()=>
1{let t=oX[e]??oX.default;(({message:e="",durationMs:t=5e3,faction:n,position:i="top-center",variant:r="default"}={})=>{l.toast.custom(i=>(0,s.jsx)(oz,{id:String(i),message:e,durationMs:t,faction:n,variant:r}),{duration:t,position:i})})({message:t[r]??t.default??"This is toast",faction:e,position:n,variant:r})},className:"w-[200px] md:min-w-xs py-3 px-6",children:"Show Toast"})})]})})}],672239)},766751,e=>{"use strict";var t=e.i(958653),n=e.i(291967),i=e.i(9413),r=e.i(764794),o=e.i(690816),s=e.i(285565),a=e.i(775649),l=e.i(136567),u=e.i(411207),d=e.i(154512),c="Tabs",[h,p]=(0,i.createContextScope)(c,[r.createRovingFocusGroupScope]),f=(0,r.createRovingFocusGroupScope)(),[m,g]=h(c),v=t.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,onValueChange:r,defaultValue:o,orientation:h="horizontal",dir:p,activationMode:f="automatic",...g}=e,v=(0,a.useDirection)(p),[y,x]=(0,l.useControllableState)({prop:i,onChange:r,defaultProp:o??"",caller:c});return(0,d.jsx)(m,{scope:n,baseId:(0,u.useId)(),value:y,onValueChange:x,orientation:h,dir:v,activationMode:f,children:(0,d.jsx)(s.Primitive.div,{dir:v,"data-orientation":h,...g,ref:t})})});v.displayName=c;var y="TabsList",x=t.forwardRef((e,t)=>{let{__scopeTabs:n,loop:i=!0,...o}=e,a=g(y,n),l=f(n);return(0,d.jsx)(r.Root,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:i,children:(0,d.jsx)(s.Primitive.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});x.displayName=y;var w="TabsTrigger",b=t.forwardRef((e,t)=>{let{__scopeTabs:i,value:o,disabled:a=!1,...l}=e,u=g(w,i),c=f(i),h=S(u.baseId,o),p=P(u.baseId,o),m=o===u.value;return(0,d.jsx)(r.Item,{asChild:!0,...c,focusable:!a,active:m,children:(0,d.jsx)(s.Primitive.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:h,...l,ref:t,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(o)}),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(o)}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==u.activationMode;m||a||!e||u.onValueChange(o)})})})});b.displayName=w;var T="TabsContent",C=t.forwardRef((e,n)=>{let{__scopeTabs:i,value:r,forceMount:a,children:l,...u}=e,c=g(T,i),h=S(c.baseId,r),p=P(c.baseId,r),f=r===c.value,m=t.useRef(f);return t.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.jsx)(o.Presence,{present:a||f,children:({present:t})=>(0,d.jsx)(s.Primitive.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":h,hidden:!t,id:p,tabIndex:0,...u,ref:n,style:{...e.style,animationDuration:m.current?"0s":void 0},children:t&&l})})});function S(e,t){return`${e}-trigger-${t}`}function P(e,t){return`${e}-content-${t}`}C.displayName=T,e.s(["Content",0,C,"List",0,x,"Root",0,v,"Tabs",0,v,"TabsContent",0,C,"TabsList",0,x,"TabsTrigger",0,b,"Trigger",0,b,"createTabsScope",0,p])},41438,e=>{"use strict";let t=(0,e.i(540796).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},994019,e=>{"use strict";var t=e.i(154512),n=e.i(958653),i=e.i(291967),r=e.i(922353),o=e.i(9413),s=e.i(136567),a=e.i(285565),l=e.i(987099),u=e.i(775649),d=e.i(403659),c=e.i(687656),h=e.i(362854),p=e.i(411207),f=e.i(845311),m=e.i(576903),g=e.i(690816),v=e.i(764794),y=e.i(160310),x=e.i(488248),w=e.i(73772),b=e.i(469759),T=["Enter"," "],C=["ArrowUp","PageDown","End"],S=["ArrowDown","PageUp","Home",...C],P={ltr:[...T,"ArrowRight"],rtl:[...T,"ArrowLeft"]},R={ltr:["ArrowLeft"],rtl:["ArrowRight"]},E="Menu",[k,A,M]=(0,l.createCollection)(E),[j,D]=(0,o.createContextScope)(E,[M,f.createPopperScope,v.createRovingFocusGroupScope]),L=(0,f.createPopperScope)(),V=(0,v.createRovingFocusGroupScope)(),[I,O]=j(E),[F,N]=j(E),B=e=>{let{__scopeMenu:i,open:r=!1,children:o,dir:s,onOpenChange:a,modal:l=!0}=e,d=L(i),[c,h]=n.useState(null),p=n.useRef(!1),m=(0,x.useCallbackRef)(a),g=(0,u.useDirection)(s);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(f.Root,{...d,children:(0,t.jsx)(I,{scope:i,open:r,onOpenChange:m,content:c,onContentChange:h,children:(0,t.jsx)(F,{scope:i,onClose:n.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:g,modal:l,children:o})})})};B.displayName=E;
1var _=n.forwardRef((e,n)=>{let{__scopeMenu:i,...r}=e,o=L(i);return(0,t.jsx)(f.Anchor,{...o,...r,ref:n})});_.displayName="MenuAnchor";var H="MenuPortal",[z,U]=j(H,{forceMount:void 0}),$=e=>{let{__scopeMenu:n,forceMount:i,children:r,container:o}=e,s=O(H,n);return(0,t.jsx)(z,{scope:n,forceMount:i,children:(0,t.jsx)(g.Presence,{present:i||s.open,children:(0,t.jsx)(m.Portal,{asChild:!0,container:o,children:r})})})};$.displayName=H;var W="MenuContent",[G,K]=j(W),X=n.forwardRef((e,n)=>{let i=U(W,e.__scopeMenu),{forceMount:r=i.forceMount,...o}=e,s=O(W,e.__scopeMenu),a=N(W,e.__scopeMenu);return(0,t.jsx)(k.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(g.Presence,{present:r||s.open,children:(0,t.jsx)(k.Slot,{scope:e.__scopeMenu,children:a.modal?(0,t.jsx)(Y,{...o,ref:n}):(0,t.jsx)(q,{...o,ref:n})})})})}),Y=n.forwardRef((e,o)=>{let s=O(W,e.__scopeMenu),a=n.useRef(null),l=(0,r.useComposedRefs)(o,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,w.hideOthers)(e)},[]),(0,t.jsx)(J,{...e,ref:l,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),q=n.forwardRef((e,n)=>{let i=O(W,e.__scopeMenu);return(0,t.jsx)(J,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})}),Z=(0,y.createSlot)("MenuContent.ScrollLock"),J=n.forwardRef((e,o)=>{let{__scopeMenu:s,loop:a=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:p,disableOutsidePointerEvents:m,onEntryFocus:g,onEscapeKeyDown:y,onPointerDownOutside:x,onFocusOutside:w,onInteractOutside:T,onDismiss:P,disableOutsideScroll:R,...E}=e,k=O(W,s),M=N(W,s),j=L(s),D=V(s),I=A(s),[F,B]=n.useState(null),_=n.useRef(null),H=(0,r.useComposedRefs)(o,_,k.onContentChange),z=n.useRef(0),U=n.useRef(""),$=n.useRef(0),K=n.useRef(null),X=n.useRef("right"),Y=n.useRef(0),q=R?b.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(z.current),[]),(0,c.useFocusGuards)();let J=n.useCallback(e=>{var t,n;return X.current===K.current?.side&&(t=e,!!(n=K.current?.area)&&function(e,t){let{x:n,y:i}=e,r=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e],a=t[o],l=s.x,u=s.y,d=a.x,c=a.y;u>i!=c>i&&n<(d-l)*(i-u)/(c-u)+l&&(r=!r)}return r}({x:t.clientX,y:t.clientY},n))},[]);return(0,t.jsx)(G,{scope:s,searchRef:U,onItemEnter:n.useCallback(e=>{J(e)&&e.preventDefault()},[J]),onItemLeave:n.useCallback(e=>{J(e)||(_.current?.focus(),B(null))},[J]),onTriggerLeave:n.useCallback(e=>{J(e)&&e.preventDefault()},[J]),pointerGraceTimerRef:$,onPointerGraceIntentChange:n.useCallback(e=>{K.current=e},[]),children:(0,t.jsx)(q,{...R?{as:Z,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(h.FocusScope,{asChild:!0,trapped:l,onMountAutoFocus:(0,i.composeEventHandlers)(u,e=>{e.preventDefault(),_.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:p,children:(0,t.jsx)(d.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:y,onPointerDownOutside:x,onFocusOutside:w,onInteractOutside:T,onDismiss:P,children:(0,t.jsx)(v.Root,{asChild:!0,...D,dir:M.dir,orientation:"vertical",loop:a,currentTabStopId:F,onCurrentTabStopIdChange:B,onEntryFocus:(0,i.composeEventHandlers)(g,e=>{M.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(f.Content,{role:"menu","aria-orientation":"vertical","data-state":eR(k.open),"data-radix-menu-content":"",dir:M.dir,...j,...E,ref:H,style:{outline:"none",...E.style},onKeyDown:(0,i.composeEventHandlers)(E.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;if(t){var r;let t,o,s,a,l,u;"Tab"===e.key&&e.preventDefault(),!n&&i&&(r=e.key,t=U.current+r,o=I().filter(e=>!e.disabled),s=document.activeElement,a=o.find(e=>e.ref.current===s)?.textValue,l=function(e,t,n){var i;let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,s=(i=Math.max(o,0),e.map((t,n)=>e[(i+n)%e.length]));1===r.length&&(s=s.filter(e=>e!==n));let a=s.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),t,a),u=o.find(e=>e.textValue===l)?.ref.current,function e(t){U.current=t,window.clearTimeout(z.current),""!==t&&(z.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>
1u.focus()))}let o=_.current;if(e.target!==o||!S.includes(e.key))return;e.preventDefault();let s=I().filter(e=>!e.disabled).map(e=>e.ref.current);C.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,i.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(z.current),U.current="")}),onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,eA(e=>{let t=e.target,n=Y.current!==e.clientX;e.currentTarget.contains(t)&&n&&(X.current=e.clientX>Y.current?"right":"left",Y.current=e.clientX)}))})})})})})})});X.displayName=W;var Q=n.forwardRef((e,n)=>{let{__scopeMenu:i,...r}=e;return(0,t.jsx)(a.Primitive.div,{role:"group",...r,ref:n})});Q.displayName="MenuGroup";var ee=n.forwardRef((e,n)=>{let{__scopeMenu:i,...r}=e;return(0,t.jsx)(a.Primitive.div,{...r,ref:n})});ee.displayName="MenuLabel";var et="MenuItem",en="menu.itemSelect",ei=n.forwardRef((e,o)=>{let{disabled:s=!1,onSelect:l,...u}=e,d=n.useRef(null),c=N(et,e.__scopeMenu),h=K(et,e.__scopeMenu),p=(0,r.useComposedRefs)(o,d),f=n.useRef(!1);return(0,t.jsx)(er,{...u,ref:p,disabled:s,onClick:(0,i.composeEventHandlers)(e.onClick,()=>{let e=d.current;if(!s&&e){let t=new CustomEvent(en,{bubbles:!0,cancelable:!0});e.addEventListener(en,e=>l?.(e),{once:!0}),(0,a.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?f.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,i.composeEventHandlers)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==h.searchRef.current;s||t&&" "===e.key||T.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ei.displayName=et;var er=n.forwardRef((e,o)=>{let{__scopeMenu:s,disabled:l=!1,textValue:u,...d}=e,c=K(et,s),h=V(s),p=n.useRef(null),f=(0,r.useComposedRefs)(o,p),[m,g]=n.useState(!1),[y,x]=n.useState("");return n.useEffect(()=>{let e=p.current;e&&x((e.textContent??"").trim())},[d.children]),(0,t.jsx)(k.ItemSlot,{scope:s,disabled:l,textValue:u??y,children:(0,t.jsx)(v.Item,{asChild:!0,...h,focusable:!l,children:(0,t.jsx)(a.Primitive.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...d,ref:f,onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,eA(e=>{l?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,eA(e=>c.onItemLeave(e))),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>g(!0)),onBlur:(0,i.composeEventHandlers)(e.onBlur,()=>g(!1))})})})}),eo=n.forwardRef((e,n)=>{let{checked:r=!1,onCheckedChange:o,...s}=e;return(0,t.jsx)(ep,{scope:e.__scopeMenu,checked:r,children:(0,t.jsx)(ei,{role:"menuitemcheckbox","aria-checked":eE(r)?"mixed":r,...s,ref:n,"data-state":ek(r),onSelect:(0,i.composeEventHandlers)(s.onSelect,()=>o?.(!!eE(r)||!r),{checkForDefaultPrevented:!1})})})});eo.displayName="MenuCheckboxItem";var es="MenuRadioGroup",[ea,el]=j(es,{value:void 0,onValueChange:()=>{}}),eu=n.forwardRef((e,n)=>{let{value:i,onValueChange:r,...o}=e,s=(0,x.useCallbackRef)(r);return(0,t.jsx)(ea,{scope:e.__scopeMenu,value:i,onValueChange:s,children:(0,t.jsx)(Q,{...o,ref:n})})});eu.displayName=es;var ed="MenuRadioItem",ec=n.forwardRef((e,n)=>{let{value:r,...o}=e,s=el(ed,e.__scopeMenu),a=r===s.value;return(0,t.jsx)(ep,{scope:e.__scopeMenu,checked:a,children:(0,t.jsx)(ei,{role:"menuitemradio","aria-checked":a,...o,ref:n,"data-state":ek(a),onSelect:(0,i.composeEventHandlers)(o.onSelect,()=>s.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});ec.displayName=ed;var eh="MenuItemIndicator",[ep,ef]=j(eh,{checked:!1}),em=n.forwardRef((e,n)=>{let{__scopeMenu:i,forceMount:r,...o}=e,s=ef(eh,i);return(0,t.jsx)(g.Presence,{present:r||eE(s.checked)||!0===s.checked,children:(0,t.jsx)(a.Primitive.span,{...o,ref:n,"data-state":ek(s.checked)})})});em.displayName=eh;var eg=n.forwardRef((e,n)=>{let{__scopeMenu:i,...r}=e;return(0,t.jsx)(a.Primitive.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})});
1eg.displayName="MenuSeparator";var ev=n.forwardRef((e,n)=>{let{__scopeMenu:i,...r}=e,o=L(i);return(0,t.jsx)(f.Arrow,{...o,...r,ref:n})});ev.displayName="MenuArrow";var ey="MenuSub",[ex,ew]=j(ey),eb=e=>{let{__scopeMenu:i,children:r,open:o=!1,onOpenChange:s}=e,a=O(ey,i),l=L(i),[u,d]=n.useState(null),[c,h]=n.useState(null),m=(0,x.useCallbackRef)(s);return n.useEffect(()=>(!1===a.open&&m(!1),()=>m(!1)),[a.open,m]),(0,t.jsx)(f.Root,{...l,children:(0,t.jsx)(I,{scope:i,open:o,onOpenChange:m,content:c,onContentChange:h,children:(0,t.jsx)(ex,{scope:i,contentId:(0,p.useId)(),triggerId:(0,p.useId)(),trigger:u,onTriggerChange:d,children:r})})})};eb.displayName=ey;var eT="MenuSubTrigger",eC=n.forwardRef((e,o)=>{let s=O(eT,e.__scopeMenu),a=N(eT,e.__scopeMenu),l=ew(eT,e.__scopeMenu),u=K(eT,e.__scopeMenu),d=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:h}=u,p={__scopeMenu:e.__scopeMenu},f=n.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return n.useEffect(()=>f,[f]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),h(null)}},[c,h]),(0,t.jsx)(_,{asChild:!0,...p,children:(0,t.jsx)(er,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":l.contentId,"data-state":eR(s.open),...e,ref:(0,r.composeRefs)(o,l.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,eA(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||s.open||d.current||(u.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{s.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,eA(e=>{f();let t=s.content?.getBoundingClientRect();if(t){let n=s.content?.dataset.side,i="right"===n,r=t[i?"left":"right"],o=t[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:r,y:t.top},{x:o,y:t.top},{x:o,y:t.bottom},{x:r,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,t=>{let n=""!==u.searchRef.current;e.disabled||n&&" "===t.key||P[a.dir].includes(t.key)&&(s.onOpenChange(!0),s.content?.focus(),t.preventDefault())})})})});eC.displayName=eT;var eS="MenuSubContent",eP=n.forwardRef((e,o)=>{let s=U(W,e.__scopeMenu),{forceMount:a=s.forceMount,...l}=e,u=O(W,e.__scopeMenu),d=N(W,e.__scopeMenu),c=ew(eS,e.__scopeMenu),h=n.useRef(null),p=(0,r.useComposedRefs)(o,h);return(0,t.jsx)(k.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(g.Presence,{present:a||u.open,children:(0,t.jsx)(k.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(J,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:p,align:"start",side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{d.isUsingKeyboardRef.current&&h.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,i.composeEventHandlers)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=R[d.dir].includes(e.key);t&&n&&(u.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function eR(e){return e?"open":"closed"}function eE(e){return"indeterminate"===e}function ek(e){return eE(e)?"indeterminate":e?"checked":"unchecked"}function eA(e){return t=>"mouse"===t.pointerType?e(t):void 0}eP.displayName=eS;var eM="DropdownMenu",[ej,eD]=(0,o.createContextScope)(eM,[D]),eL=D(),[eV,eI]=ej(eM),eO=e=>{let{__scopeDropdownMenu:i,children:r,dir:o,open:a,defaultOpen:l,onOpenChange:u,modal:d=!0}=e,c=eL(i),h=n.useRef(null),[f,m]=(0,s.useControllableState)({prop:a,defaultProp:l??!1,onChange:u,caller:eM});return(0,t.jsx)(eV,{scope:i,triggerId:(0,p.useId)(),triggerRef:h,contentId:(0,p.useId)(),open:f,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:d,children:(0,t.jsx)(B,{...c,open:f,onOpenChange:m,dir:o,modal:d,children:r})})};eO.displayName=eM;
1var eF="DropdownMenuTrigger",eN=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:o,disabled:s=!1,...l}=e,u=eI(eF,o),d=eL(o);return(0,t.jsx)(_,{asChild:!0,...d,children:(0,t.jsx)(a.Primitive.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...l,ref:(0,r.composeRefs)(n,u.triggerRef),onPointerDown:(0,i.composeEventHandlers)(e.onPointerDown,e=>{!s&&0===e.button&&!1===e.ctrlKey&&(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{!s&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eN.displayName=eF;var eB=e=>{let{__scopeDropdownMenu:n,...i}=e,r=eL(n);return(0,t.jsx)($,{...r,...i})};eB.displayName="DropdownMenuPortal";var e_="DropdownMenuContent",eH=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:o,...s}=e,a=eI(e_,o),l=eL(o),u=n.useRef(!1);return(0,t.jsx)(X,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...s,ref:r,onCloseAutoFocus:(0,i.composeEventHandlers)(e.onCloseAutoFocus,e=>{u.current||a.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,i=2===t.button||n;(!a.modal||i)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eH.displayName=e_;var ez=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(Q,{...o,...r,ref:n})});
1ez.displayName="DropdownMenuGroup";var eU=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(ee,{...o,...r,ref:n})});eU.displayName="DropdownMenuLabel";var e$=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(ei,{...o,...r,ref:n})});e$.displayName="DropdownMenuItem";var eW=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(eo,{...o,...r,ref:n})});eW.displayName="DropdownMenuCheckboxItem";var eG=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(eu,{...o,...r,ref:n})});eG.displayName="DropdownMenuRadioGroup";var eK=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(ec,{...o,...r,ref:n})});eK.displayName="DropdownMenuRadioItem";var eX=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(em,{...o,...r,ref:n})});eX.displayName="DropdownMenuItemIndicator";var eY=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(eg,{...o,...r,ref:n})});eY.displayName="DropdownMenuSeparator";var eq=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(ev,{...o,...r,ref:n})});eq.displayName="DropdownMenuArrow";var eZ=e=>{let{__scopeDropdownMenu:n,children:i,open:r,onOpenChange:o,defaultOpen:a}=e,l=eL(n),[u,d]=(0,s.useControllableState)({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return(0,t.jsx)(eb,{...l,open:u,onOpenChange:d,children:i})},eJ=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(eC,{...o,...r,ref:n})});eJ.displayName="DropdownMenuSubTrigger";var eQ=n.forwardRef((e,n)=>{let{__scopeDropdownMenu:i,...r}=e,o=eL(i);return(0,t.jsx)(eP,{...o,...r,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eQ.displayName="DropdownMenuSubContent",e.s(["Arrow",0,eq,"CheckboxItem",0,eW,"Content",0,eH,"DropdownMenu",0,eO,"DropdownMenuArrow",0,eq,"DropdownMenuCheckboxItem",0,eW,"DropdownMenuContent",0,eH,"DropdownMenuGroup",0,ez,"DropdownMenuItem",0,e$,"DropdownMenuItemIndicator",0,eX,"DropdownMenuLabel",0,eU,"DropdownMenuPortal",0,eB,"DropdownMenuRadioGroup",0,eG,"DropdownMenuRadioItem",0,eK,"DropdownMenuSeparator",0,eY,"DropdownMenuSub",0,eZ,"DropdownMenuSubContent",0,eQ,"DropdownMenuSubTrigger",0,eJ,"DropdownMenuTrigger",0,eN,"Group",0,ez,"Item",0,e$,"ItemIndicator",0,eX,"Label",0,eU,"Portal",0,eB,"RadioGroup",0,eG,"RadioItem",0,eK,"Root",0,eO,"Separator",0,eY,"Sub",0,eZ,"SubContent",0,eQ,"SubTrigger",0,eJ,"Trigger",0,eN,"createDropdownMenuScope",0,eD],775644);var e0=e.i(775644),e0=e0,e1=e.i(41438),e1=e1,e2=e.i(258623),e2=e2,e5=e.i(647163);e.s(["DropdownMenu",0,function({...e}){return(0,t.jsx)(e0.Root,{"data-slot":"dropdown-menu",...e})},"DropdownMenuCheckboxItem",0,function({className:e,children:n,checked:i,inset:r,...o}){return(0,t.jsxs)(e0.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item","data-inset":r,className:(0,e5.cn)("fantasy relative flex cursor-pointer select-none items-center gap-2 py-2 pr-8 pl-3 text-sm text-amber-100 outline-none transition-all","hover:bg-amber-900/30","focus:bg-amber-900/30","data-disabled:pointer-events-none data-disabled:opacity-50","data-inset:pl-8","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),checked:i,...o,children:[(0,t.jsx)("span",{className:"absolute right-2 flex items-center justify-center pointer-events-none",children:(0,t.jsx)(e0.ItemIndicator,{children:(0,t.jsx)(e1.default,{className:"text-amber-400"})})}),n]})},"DropdownMenuContent",0,function({className:e,align:n="start",sideOffset:i=8,...r}){return(0,t.jsx)(e0.Portal,{children:(0,t.jsx)(e0.Content,{"data-slot":"dropdown-menu-content",sideOffset:i,align:n,className:(0,e5.cn)("fantasy z-50 min-w-40 pb-4 overflow-hidden text-amber-100","border-solid wc-dropdown-border [border-image-repeat:stretch] border-12 [border-image-slice:12_fill]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})})},"DropdownMenuGroup",0,function({...e}){return(0,t.jsx)(e0.Group,{"data-slot":"dropdown-menu-group",...e})},"DropdownMenuItem",0,function({className:e,inset:n,...i}){return(0,t.jsx)(e0.Item,{"data-slot":"dropdown-menu-item","data-inset":n,className:(0,e5.cn)("fantasy relative flex cursor-pointer select-none items-center gap-2 px-5 py-2 text-sm text-amber-100 outline-none transition-all","hover:bg-amber-900/30","focus:bg-amber-900/30","data-disabled:pointer-events-none data-disabled:opacity-50","data-inset:pl-8","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...i})},"DropdownMenuLabel",0,function({className:e,inset:n,...i}){return(0,t.jsx)(e0.Label,{"data-slot":"dropdown-menu-label","data-inset":n,className:(0,e5.cn)("fantasy px-5 pt-5 pb-2 text-xs font-semibold uppercase tracking-wider text-amber-400/80","data-inset:pl-8",e),...i})},"DropdownMenuPortal",0,function({...e}){return(0,t.jsx)(e0.Portal,{"data-slot":"dropdown-menu-portal",...e})},"DropdownMenuRadioGroup",0,function({...e}){return(0,t.jsx)(e0.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})},"DropdownMenuRadioItem",0,function({className:e,children:n,inset:i,...r}){return(0,t.jsxs)(e0.RadioItem,{"data-slot":"dropdown-menu-radio-item","data-inset":i,className:(0,e5.cn)("fantasy relative flex cursor-pointer select-none items-center gap-2 py-2 pr-8 pl-3 text-sm text-amber-100 outline-none transition-all","hover:bg-amber-900/30","focus:bg-amber-900/30","data-disabled:pointer-events-none data-disabled:opacity-50","data-inset:pl-8","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...r,children:[(0,t.jsx)("span",{className:"absolute right-2 flex items-center justify-center pointer-events-none",children:(0,t.jsx)(e0.ItemIndicator,{children:(0,t.jsx)(e1.default,{className:"text-amber-400"})})}),n]})},"DropdownMenuSeparator",0,function({className:e,...n}){return(0,t.jsx)(e0.Separator,{"data-slot":"dropdown-menu-separator",className:(0,e5.cn)("mx-2 my-1 h-px bg-amber-700/10",e),...n})},"DropdownMenuShortcut",0,function({className:e,...n}){return(0,t.jsx)("span",{"data-slot":"dropdown-menu-shortcut",className:(0,e5.cn)("fantasy ml-auto text-xs tracking-widest text-amber-500/70",e),...n})},"DropdownMenuSub",0,function({...e}){return(0,t.jsx)(e0.Sub,{"data-slot":"dropdown-menu-sub",...e})},"DropdownMenuSubContent",0,function({className:e,...n}){return(0,t.jsx)(e0.SubContent,{"data-slot":"dropdown-menu-sub-content",className:(0,e5.cn)("fantasy z-50 min-w-32 overflow-hidden text-amber-100","border-solid wc-dropdown-border [border-image-repeat:stretch] border-12 [border-image-slice:12_fill]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})},"DropdownMenuSubTrigger",0,function({className:e,inset:n,children:i,...r}){return(0,t.jsxs)(e0.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:(0,e5.cn)("fantasy flex cursor-pointer select-none items-center gap-2 px-3 py-2 text-sm text-amber-100 outline-none transition-all","hover:bg-amber-900/30","focus:bg-amber-900/30","data-[state=open]:bg-amber-900/30","data-inset:pl-8","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...r,children:[i,(0,t.jsx)(e2.default,{className:"ml-auto text-amber-500"})]})},"DropdownMenuTrigger",0,function({...e}){return(0,t.jsx)(e0.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}],994019)},792304,e=>{"use strict";var t=e.i(154512),n=e.i(958653),i=e.i(922353),r=e.i(9413),o=e.i(291967),s=e.i(136567),a=e.i(809641),l=e.i(570391),u=e.i(690816),d=e.i(285565),c="Checkbox",[h,p]=(0,r.createContextScope)(c),[f,m]=h(c);function g(e){let{__scopeCheckbox:i,checked:r,children:o,defaultChecked:a,disabled:l,form:u,name:d,onCheckedChange:h,required:p,value:m="on",internal_do_not_use_render:g}=e,[v,y]=(0,s.useControllableState)({prop:r,defaultProp:a??!1,onChange:h,caller:c}),[x,w]=n.useState(null),[b,T]=n.useState(null),C=n.useRef(!1),P=!x||!!u||!!x.closest("form"),R={checked:v,disabled:l,setChecked:y,control:x,setControl:w,name:d,form:u,value:m,hasConsumerStoppedPropagationRef:C,required:p,defaultChecked:!S(a)&&a,isFormControl:P,bubbleInput:b,setBubbleInput:T};return(0,t.jsx)(f,{scope:i,...R,children:"function"==typeof g?g(R):o})}var v="CheckboxTrigger",y=n.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:s,...a},l)=>{let{control:u,value:c,disabled:h,checked:p,required:f,setControl:g,setChecked:y,hasConsumerStoppedPropagationRef:x,isFormControl:w,bubbleInput:b}=m(v,e),T=(0,i.useComposedRefs)(l,g),C=n.useRef(p);return n.useEffect(()=>{let e=u?.form;if(e){let t=()=>y(C.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,y]),(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":S(p)?"mixed":p,"aria-required":f,"data-state":P(p),"data-disabled":h?"":void 0,disabled:h,value:c,...a,ref:T,onKeyDown:(0,o.composeEventHandlers)(r,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,o.composeEventHandlers)(s,e=>{y(e=>!!S(e)||!e),b&&w&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})})});y.displayName=v;
1var x=n.forwardRef((e,n)=>{let{__scopeCheckbox:i,name:r,checked:o,defaultChecked:s,required:a,disabled:l,value:u,onCheckedChange:d,form:c,...h}=e;return(0,t.jsx)(g,{__scopeCheckbox:i,checked:o,defaultChecked:s,disabled:l,required:a,onCheckedChange:d,name:r,form:c,value:u,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{...h,ref:n,__scopeCheckbox:i}),e&&(0,t.jsx)(C,{__scopeCheckbox:i})]})})});x.displayName=c;var w="CheckboxIndicator",b=n.forwardRef((e,n)=>{let{__scopeCheckbox:i,forceMount:r,...o}=e,s=m(w,i);return(0,t.jsx)(u.Presence,{present:r||S(s.checked)||!0===s.checked,children:(0,t.jsx)(d.Primitive.span,{"data-state":P(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...e.style}})})});b.displayName=w;var T="CheckboxBubbleInput",C=n.forwardRef(({__scopeCheckbox:e,...r},o)=>{let{control:s,hasConsumerStoppedPropagationRef:u,checked:c,defaultChecked:h,required:p,disabled:f,name:g,value:v,form:y,bubbleInput:x,setBubbleInput:w}=m(T,e),b=(0,i.useComposedRefs)(o,w),C=(0,a.usePrevious)(c),P=(0,l.useSize)(s);n.useEffect(()=>{if(!x)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!u.current;if(C!==c&&e){let n=new Event("click",{bubbles:t});x.indeterminate=S(c),e.call(x,!S(c)&&c),x.dispatchEvent(n)}},[x,C,c,u]);let R=n.useRef(!S(c)&&c);return(0,t.jsx)(d.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??R.current,required:p,disabled:f,name:g,value:v,form:y,...r,tabIndex:-1,ref:b,style:{...r.style,...P,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function S(e){return"indeterminate"===e}function P(e){return S(e)?"indeterminate":e?"checked":"unchecked"}C.displayName=T,e.s(["Checkbox",0,x,"CheckboxIndicator",0,b,"Indicator",0,b,"Root",0,x,"createCheckboxScope",0,p,"unstable_BubbleInput",0,C,"unstable_CheckboxBubbleInput",0,C,"unstable_CheckboxProvider",0,g,"unstable_CheckboxTrigger",0,y,"unstable_Provider",0,g,"unstable_Trigger",0,y],294162);var R=e.i(294162),R=R,E=e.i(294237),k=e.i(647163);let A=(0,E.cva)("inline-flex items-center gap-3 cursor-pointer select-none fantasy mb-2 font-bold",{variants:{faction:{default:"text-yellow-800 dark:text-yellow-100",orc:"text-red-700 dark:text-red-100",elf:"text-green-700 dark:text-green-100",human:"text-blue-700 dark:text-blue-100",undead:"text-purple-700 dark:text-purple-100"}},defaultVariants:{faction:"default"}});e.s(["Checkbox",0,function({faction:e="default",children:n,className:i,disabled:r,id:o,...s}){return(0,t.jsxs)("label",{htmlFor:o,className:(0,k.cn)(A({faction:e}),r&&"opacity-50 cursor-not-allowed"),children:[(0,t.jsx)(R.Root,{"data-slot":"checkbox",className:(0,k.cn)("wc-checkbox",`wc-checkbox-${e}`,i),disabled:r,id:o,...s,children:(0,t.jsx)(R.Indicator,{})}),n]})},"checkboxVariants",0,A],792304)},916955,e=>{"use strict";var t=e.i(154512),n=e.i(958653),i=e.i(9413),r=e.i(987099),o=e.i(922353),s=e.i(291967),a=e.i(136567),l=e.i(285565),u=e.i(18731),d=e.i(690816),c=e.i(411207),h="Collapsible",[p,f]=(0,i.createContextScope)(h),[m,g]=p(h),v=n.forwardRef((e,i)=>{let{__scopeCollapsible:r,open:o,defaultOpen:s,disabled:u,onOpenChange:d,...p}=e,[f,g]=(0,a.useControllableState)({prop:o,defaultProp:s??!1,onChange:d,caller:h});return(0,t.jsx)(m,{scope:r,disabled:u,contentId:(0,c.useId)(),open:f,onOpenToggle:n.useCallback(()=>g(e=>!e),[g]),children:(0,t.jsx)(l.Primitive.div,{"data-state":C(f),"data-disabled":u?"":void 0,...p,ref:i})})});v.displayName=h;var y="CollapsibleTrigger",x=n.forwardRef((e,n)=>{let{__scopeCollapsible:i,...r}=e,o=g(y,i);return(0,t.jsx)(l.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:n,onClick:(0,s.composeEventHandlers)(e.onClick,o.onOpenToggle)})});x.displayName=y;var w="CollapsibleContent",b=n.forwardRef((e,n)=>{let{forceMount:i,...r}=e,o=g(w,e.__scopeCollapsible);return(0,t.jsx)(d.Presence,{present:i||o.open,children:({present:e})=>(0,t.jsx)(T,{...r,ref:n,present:e})})});b.displayName=w;var T=n.forwardRef((e,i)=>{let{__scopeCollapsible:r,present:s,children:a,...d}=e,c=g(w,r),[h,p]=n.useState(s),f=n.useRef(null),m=(0,o.useComposedRefs)(i,f),v=n.useRef(0),y=v.current,x=n.useRef(0),b=x.current,T=c.open||h,S=n.useRef(T),P=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.useLayoutEffect)(()=>{let e=f.current;if(e){P.current=P.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,x.current=t.width,S.current||(e.style.transitionDuration=P.current.transitionDuration,e.style.animationName=P.current.animationName),p(s)}},[c.open,s]),(0,t.jsx)(l.Primitive.div,{"data-state":C(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!T,...d,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:T&&a})});function C(e){return e?"open":"closed"}var S=e.i(775649),P="Accordion",R=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[E,k,A]=(0,r.createCollection)(P),[M,j]=(0,i.createContextScope)(P,[A,f]),D=f(),L=n.default.forwardRef((e,n
1)=>{let{type:i,...r}=e;return(0,t.jsx)(E.Provider,{scope:e.__scopeAccordion,children:"multiple"===i?(0,t.jsx)(B,{...r,ref:n}):(0,t.jsx)(N,{...r,ref:n})})});L.displayName=P;var[V,I]=M(P),[O,F]=M(P,{collapsible:!1}),N=n.default.forwardRef((e,i)=>{let{value:r,defaultValue:o,onValueChange:s=()=>{},collapsible:l=!1,...u}=e,[d,c]=(0,a.useControllableState)({prop:r,defaultProp:o??"",onChange:s,caller:P});return(0,t.jsx)(V,{scope:e.__scopeAccordion,value:n.default.useMemo(()=>d?[d]:[],[d]),onItemOpen:c,onItemClose:n.default.useCallback(()=>l&&c(""),[l,c]),children:(0,t.jsx)(O,{scope:e.__scopeAccordion,collapsible:l,children:(0,t.jsx)(z,{...u,ref:i})})})}),B=n.default.forwardRef((e,i)=>{let{value:r,defaultValue:o,onValueChange:s=()=>{},...l}=e,[u,d]=(0,a.useControllableState)({prop:r,defaultProp:o??[],onChange:s,caller:P}),c=n.default.useCallback(e=>d((t=[])=>[...t,e]),[d]),h=n.default.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,t.jsx)(V,{scope:e.__scopeAccordion,value:u,onItemOpen:c,onItemClose:h,children:(0,t.jsx)(O,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(z,{...l,ref:i})})})}),[_,H]=M(P),z=n.default.forwardRef((e,i)=>{let{__scopeAccordion:r,disabled:a,dir:u,orientation:d="vertical",...c}=e,h=n.default.useRef(null),p=(0,o.useComposedRefs)(h,i),f=k(r),m="ltr"===(0,S.useDirection)(u),g=(0,s.composeEventHandlers)(e.onKeyDown,e=>{if(!R.includes(e.key))return;let t=e.target,n=f().filter(e=>!e.ref.current?.disabled),i=n.findIndex(e=>e.ref.current===t),r=n.length;if(-1===i)return;e.preventDefault();let o=i,s=r-1,a=()=>{(o=i+1)>s&&(o=0)},l=()=>{(o=i-1)<0&&(o=s)};switch(e.key){case"Home":o=0;break;case"End":o=s;break;case"ArrowRight":"horizontal"===d&&(m?a():l());break;case"ArrowDown":"vertical"===d&&a();break;case"ArrowLeft":"horizontal"===d&&(m?l():a());break;case"ArrowUp":"vertical"===d&&l()}let u=o%r;n[u].ref.current?.focus()});return(0,t.jsx)(_,{scope:r,disabled:a,direction:u,orientation:d,children:(0,t.jsx)(E.Slot,{scope:r,children:(0,t.jsx)(l.Primitive.div,{...c,"data-orientation":d,ref:p,onKeyDown:a?void 0:g})})})}),U="AccordionItem",[$,W]=M(U),G=n.default.forwardRef((e,n)=>{let{__scopeAccordion:i,value:r,...o}=e,s=H(U,i),a=I(U,i),l=D(i),u=(0,c.useId)(),d=r&&a.value.includes(r)||!1,h=s.disabled||e.disabled;return(0,t.jsx)($,{scope:i,open:d,disabled:h,triggerId:u,children:(0,t.jsx)(v,{"data-orientation":s.orientation,"data-state":Q(d),...l,...o,ref:n,disabled:h,open:d,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})});G.displayName=U;var K="AccordionHeader",X=n.default.forwardRef((e,n)=>{let{__scopeAccordion:i,...r}=e,o=H(P,i),s=W(K,i);return(0,t.jsx)(l.Primitive.h3,{"data-orientation":o.orientation,"data-state":Q(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:n})});X.displayName=K;var Y="AccordionTrigger",q=n.default.forwardRef((e,n)=>{let{__scopeAccordion:i,...r}=e,o=H(P,i),s=W(Y,i),a=F(Y,i),l=D(i);return(0,t.jsx)(E.ItemSlot,{scope:i,children:(0,t.jsx)(x,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...l,...r,ref:n})})});q.displayName=Y;var Z="AccordionContent",J=n.default.forwardRef((e,n)=>{let{__scopeAccordion:i,...r}=e,o=H(P,i),s=W(Z,i),a=D(i);return(0,t.jsx)(b,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...a,...r,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function Q(e){return e?"open":"closed"}J.displayName=Z,e.s(["Accordion",0,L,"AccordionContent",0,J,"AccordionHeader",0,X,"AccordionItem",0,G,"AccordionTrigger",0,q,"Content",0,J,"Header",0,X,"Item",0,G,"Root",0,L,"Trigger",0,q,"createAccordionScope",0,j],167383);var ee=e.i(167383),ee=ee,et=e.i(294237),en=e.i(647163);let ei=(0,et.cva)("flex w-full flex-col",{variants:{variant:{default:"fantasy rounded-xl relative flex gap-2 py-[0.6rem] px-[0.7rem] text-[hsl(0_0%_95%)] bg-transparent shadow-none before:content-none after:content-none"}},defaultVariants:{variant:"default"}}),er=n.createContext({variant:"default"});e.s(["Accordion",0,function({className:e,variant:n,...i}){let r=n??"default";return(0,t.jsx)(er.Provider,{value:{variant:r},children:(0,t.jsx)(ee.Root,{"data-slot":"accordion",className:(0,en.cn)(ei({variant:n}),e),...i})})},"AccordionContent",0,function({className:e,children:n,...i}){return(0,t.jsx)(ee.Content,{"data-slot":"accordion-content",className:(0,en.cn)("overflow-hidden text-sm will-change-[height,opacity,filter]","transition-[filter] duration-300 ease-out","wc-accordion-scroll-content data-[state=open]:animate-[wc-accordion-down_200ms_ease-out] data-[state=closed]:animate-[wc-accordion-up_200ms_ease-out]","border-solid wc-accordion-content-border [border-image-repeat:stretch]","border-0 [border-image-slice:16_fill]","bg-cover bg-center bg-no-repeat"),...i,children:(0,t.jsxs)("div",{className:(0,en.cn)("[&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4","px-5 pt-2 pb-4",e),children:[(0,t.jsxs)("div",{className:"relative my-6",children:[(0,t.jsx)("div",{className:"h-px bg-gradient-to-r from-transparent via-[#9a6f2f] to-transparent"}),(0,t.jsx)("div",{className:"absolute inset-0 flex justify-center -top-4",children:(0,t.jsx)("span",{className:"px-3 text-[#b98a3a] drop-shadow-[0_0_4px_rgba(120,78,24,0.45)]",children:"â¦"})})]}),n]})})},"AccordionItem",0,function({className:e,...n}){return(0,t.jsx)(ee.Item,{"data-slot":"accordion-item",className:(0,en.cn)(e),...n})},"AccordionTrigger",0,function({className:e,children:n,icon:i="sword",...r}){return(0,t.jsx)(ee.Header,{className:(0,en.cn)("flex","border-solid wc-accordion-header-border [border-image-repeat:stretch]","border-6 [border-image-slice:16_fill]","bg-cover bg-center bg-no-repeat","m-0 mt-0 mb-0 min-h-14"),children:(0,t.jsxs)(ee.Trigger,{"data-slot":"accordion-trigger",className:(0,en.cn)("group/accordion-trigger relative flex w-full items-center overflow-hidden px-5 py-3 text-center text-sm text-white outline-none transition-all duration-300","focus-visible:ring-ring/50 focus-visible:ring-2","disabled:pointer-events-none disabled:opacity-60","transition-[box-shadow] duration-[420ms] ease-[cubic-bezier(0.22,1,0.36,1)]","data-[state=open]:shadow-[0_0_0_1px_rgba(255,215,120,0.4),0_0_12px_rgba(255,200,100,0.35),0_0_40px_rgba(255,180,80,0.25),0_20px_40px_rgba(0,0,0,0.45)]","after:content-[''] after:absolute after:inset-0 after:bg-[linear-gradient(120deg,transparent_30%,rgba(255,220,140,0.25),transparent_70%)] after:opacity-0 after:pointer-events-none","data-[state=open]:after:animate-[wc-light-sweep_600ms_ease-out]",e),...r,children:[n,(0,t.jsx)("span",{"data-slot":"accordion-trigger-icon","aria-hidden":"true",className:(0,en.cn)("inline-block bg-center bg-no-repeat bg-contain pointer-events-none absolute right-4 size-4 shrink-0 transition-transform duration-300 group-data-[state=open]/accordion-trigger:rotate-180","shield"===i?"wc-accordion-medieval-icon--shield":"rune-stone"===i?"wc-accordion-medieval-icon--rune-stone":"wc-accordion-medieval-icon--sword")})]})})}],916955)}]);
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.