(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,598513,e=>{"use strict";var t=e.i(947118),n=e.i(737801),r=e.i(206507);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",o=(0,t.useIsInitialized)(),i=(0,n.useEventAttributes)();return(0,r.useCallback)((t,n={})=>{let r={...i,...t};if(!o)return void console.warn("MParticle is not initialized");try{if(window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,r),n.flushImmediately)try{window.mParticle?.upload?.()}catch{}console.debug(`MParticle: Event "${e}" tracked`,r)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[i,o])}])},809058,e=>{"use strict";let t;var n=e.i(155252),r=e.i(206507),o=e.i(291967),i=e.i(144977),l=e.i(156207),a=e.i(60212),s=e.i(371353),c=e.i(89535),u=e.i(461194);let f=["top","right","bottom","left"],d=Math.min,p=Math.max,h=Math.round,m=Math.floor,g=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"};function x(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function y(e){return e.split("-")[1]}function b(e){return"x"===e?"y":"x"}function R(e){return"y"===e?"height":"width"}function C(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function P(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let A=["left","right"],O=["right","left"],E=["top","bottom"],T=["bottom","top"];function S(e){let t=w(e);return v[t]+e.slice(t.length)}function j(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function L(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function k(e,t,n){let r,{reference:o,floating:i}=e,l=C(t),a=b(C(t)),s=R(a),c=w(t),u="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(y(t)){case"start":r[a]-=p*(n&&u?-1:1);break;case"end":r[a]+=p*(n&&u?-1:1)}return r}async function D(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=x(t,e),h=j(p),m=a[d?"floating"===f?"reference":"floating":f],g=L(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:s}):v);return{top:(g.top-b.top+h.top)/y.y,bottom:(b.bottom-g.bottom+h.bottom)/y.y,left:(g.left-b.left+h.left)/y.x,right:(b.right-g.right+h.right)/y.x}}let F=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:D},s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=k(c,r,s),d=r,p=0,h={};for(let n=0;ne[t]>=0)}let N=new Set(["left","top"]);async function $(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=w(n),a=y(n),s="y"===C(n),c=N.has(l)?-1:1,u=i&&s?-1:1,f=x(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}function _(){return"u">typeof window}function I(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function z(e){var t;return null==(t=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function B(e){return!!_()&&(e instanceof Node||e instanceof W(e).Node)}function V(e){return!!_()&&(e instanceof Element||e instanceof W(e).Element)}function Y(e){return!!_()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function X(e){return!(!_()||"u"!!e&&"none"!==e;function J(e){let t=V(e)?et(e):e;return Z(t.transform)||Z(t.translate)||Z(t.scale)||Z(t.rotate)||Z(t.perspective)||!Q()&&(Z(t.backdropFilter)||Z(t.filter))||q.test(t.willChange||"")||G.test(t.contain||"")}function Q(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function ee(e){return/^(html|body|#document)$/.test(I(e))}function et(e){return W(e).getComputedStyle(e)}function en(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===I(e))return e;let t=e.assignedSlot||e.parentNode||X(e)&&e.host||z(e);return X(t)?t.host:t}function eo(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=er(t);return ee(n)?t.ownerDocument?t.ownerDocument.body:t.body:Y(n)&&K(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=W(o);if(!i)return t.concat(o,eo(o,[],n));{let e=ei(l);return t.concat(l,l.visualViewport||[],K(o)?o:[],e&&n?eo(e):[])}}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function el(e){let t=et(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Y(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=h(n)!==i||h(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ea(e){return V(e)?e:e.contextElement}function es(e){let t=ea(e);if(!Y(t))return g(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=el(t),l=(i?h(n.width):n.width)/r,a=(i?h(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ec=g(0);function eu(e){let t=W(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ec}function ef(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ea(e),a=g(1);t&&(r?V(r)&&(a=es(r)):a=es(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===W(l))&&o)?eu(l):g(0),c=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=W(l),t=r&&V(r)?W(r):r,n=e,o=ei(n);for(;o&&r&&t!==n;){let e=es(o),t=o.getBoundingClientRect(),r=et(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,f*=e.x,d*=e.y,c+=i,u+=l,o=ei(n=W(o))}}return L({width:f,height:d,x:c,y:u})}function ed(e,t){let n=en(e).scrollLeft;return t?t.left+n:ef(z(e)).left+n}function ep(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}function eh(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=W(e),r=z(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=Q();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let c=ed(r);if(cV(e)&&"body"!==I(e)),o=null,i="fixed"===et(e).position,l=i?er(e):e;for(;V(l)&&!ee(l);){let t=et(l),n=J(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||K(l)&&!n&&function e(t,n){let r=er(t);return!(r===n||!V(r)||ee(r))&&("fixed"===et(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=er(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eh(t,i[0],o),a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=x(e,t)||{};if(null==c)return{};let f=j(u),h={x:n,y:r},m=b(C(o)),g=R(m),v=await l.getDimensions(c),w="y"===m,P=w?"clientHeight":"clientWidth",A=i.reference[g]+i.reference[m]-h[m]-i.floating[g],O=h[m]-i.reference[m],E=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),T=E?E[P]:0;T&&await (null==l.isElement?void 0:l.isElement(E))||(T=a.floating[P]||i.floating[g]);let S=T/2-v[g]/2-1,L=d(f[w?"top":"left"],S),k=d(f[w?"bottom":"right"],S),D=T-v[g]-k,F=T/2-v[g]/2+(A/2-O/2),M=p(L,d(F,D)),H=!s.arrow&&null!=y(o)&&F!==M&&i.reference[g]/2-(Ftypeof document?r.useLayoutEffect:function(){};function eP(e,t){let n,r,o;if(e===t)return!0;if(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(r=n;0!=r--;)if(!eP(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eP(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eA(e){return"u"{t.current=e}),t}var eT=e.i(556872),eS=r.forwardRef((e,t)=>{let{children:r,width:o=10,height:i=5,...l}=e;return(0,n.jsx)(eT.Primitive.svg,{...l,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,n.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eS.displayName="Arrow";var ej=e.i(252960),eL=e.i(127864),ek=e.i(853233),eD="Popper",[eF,eM]=(0,l.createContextScope)(eD),[eH,eN]=eF(eD),e$=e=>{let{__scopePopper:t,children:o}=e,[i,l]=r.useState(null);return(0,n.jsx)(eH,{scope:t,anchor:i,onAnchorChange:l,children:o})};e$.displayName=eD;var e_="PopperAnchor",eI=r.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:l,...a}=e,s=eN(e_,o),c=r.useRef(null),u=(0,i.useComposedRefs)(t,c),f=r.useRef(null);return r.useEffect(()=>{let e=f.current;f.current=l?.current||c.current,e!==f.current&&s.onAnchorChange(f.current)}),l?null:(0,n.jsx)(eT.Primitive.div,{...a,ref:u})});eI.displayName=e_;var eW="PopperContent",[ez,eB]=eF(eW),eV=r.forwardRef((e,t)=>{var o,l,a,s,c,u,f,h,g,v,j,L,k;let{__scopePopper:D,side:_="bottom",sideOffset:I=0,align:W="center",alignOffset:B=0,arrowPadding:V=0,avoidCollisions:Y=!0,collisionBoundary:X=[],collisionPadding:K=0,sticky:U="partial",hideWhenDetached:q=!1,updatePositionStrategy:G="optimized",onPlaced:Z,...J}=e,Q=eN(eW,D),[ee,et]=r.useState(null),en=(0,i.useComposedRefs)(t,e=>et(e)),[er,ei]=r.useState(null),el=(0,ek.useSize)(er),es=el?.width??0,ec=el?.height??0,eu="number"==typeof K?K:{top:0,right:0,bottom:0,left:0,...K},ed=Array.isArray(X)?X:[X],ep=ed.length>0,eh={padding:eu,boundary:ed.filter(eU),altBoundary:ep},{refs:em,floatingStyles:eg,placement:ev,isPositioned:ex,middlewareData:eS}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);eP(p,o)||h(o);let[m,g]=r.useState(null),[v,x]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),y=r.useCallback(e=>{e!==P.current&&(P.current=e,x(e))},[]),b=l||m,R=a||v,C=r.useRef(null),P=r.useRef(null),A=r.useRef(f),O=null!=c,E=eE(c),T=eE(i),S=eE(u),j=r.useCallback(()=>{var e,r;let o,i,l;if(!C.current||!P.current)return;let a={placement:t,strategy:n,middleware:p};T.current&&(a.platform=T.current),(e=C.current,r=P.current,o=new Map,l={...(i={platform:ew,...a}).platform,_c:o},F(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==S.current};L.current&&!eP(A.current,t)&&(A.current=t,eR.flushSync(()=>{d(t)}))})},[p,t,n,T,S]);eC(()=>{!1===u&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let L=r.useRef(!1);eC(()=>(L.current=!0,()=>{L.current=!1}),[]),eC(()=>{if(b&&(C.current=b),R&&(P.current=R),b&&R){if(E.current)return E.current(b,R,j);j()}},[b,R,j,E,O]);let k=r.useMemo(()=>({reference:C,floating:P,setReference:w,setFloating:y}),[w,y]),D=r.useMemo(()=>({reference:b,floating:R}),[b,R]),M=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eO(D.floating,f.x),r=eO(D.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eA(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,D.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:j,refs:k,elements:D,floatingStyles:M}),[f,j,k,D,M])}({strategy:"fixed",placement:_+("center"!==W?"-"+W:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=ea(e),f=i||l?[...u?eo(u):[],...t?eo(t):[]]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let h=u&&s?function(e,t){let n,r=null,o=z(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let c=e.getBoundingClientRect(),{left:u,top:f,width:h,height:g}=c;if(a||t(),!h||!g)return;let v={rootMargin:-m(f)+"px "+-m(o.clientWidth-(u+h))+"px "+-m(o.clientHeight-(f+g))+"px "+-m(u)+"px",threshold:p(0,d(1,s))||1},x=!0;function w(t){let r=t[0].intersectionRatio;if(r!==s){if(!x)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||ey(c,e.getBoundingClientRect())||l(),x=!1}try{r=new IntersectionObserver(w,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(w,v)}r.observe(e)}(!0),i}(u,n):null,g=-1,v=null;a&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),u&&!c&&v.observe(u),t&&v.observe(t));let x=c?ef(e):null;return c&&function t(){let r=ef(e);x&&!ey(x,r)&&n(),x=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===G}),elements:{reference:Q.anchor},middleware:[{...{name:"offset",options:l=o={mainAxis:I+ec,alignmentAxis:B},async fn(e){var t,n;let{x:r,y:o,placement:i,middlewareData:a}=e,s=await $(e,l);return i===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:o+s.y,data:{...s,placement:i}}}},options:[o,void 0]},Y&&{...{name:"shift",options:c=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===U?{...(a=void 0,{options:a={},fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=x(a,e),u={x:t,y:n},f=C(r),d=b(f),p=u[d],h=u[f],m=x(l,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+g.mainAxis,n=o.reference[d]+o.reference[e]-g.mainAxis;pn&&(p=n)}if(c){var v,y;let e="y"===d?"width":"height",t=N.has(w(r)),n=o.reference[f]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[f])||0)+(t?0:g.crossAxis),l=o.reference[f]+o.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[f])||0)-(t?g.crossAxis:0);hl&&(h=l)}return{[d]:p,[f]:h}}}),options:[void 0,void 0]}:void 0,...eh},async fn(e){let{x:t,y:n,placement:r,platform:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=x(c,e),u={x:t,y:n},f=await o.detectOverflow(e,s),h=C(w(r)),m=b(h),g=u[m],v=u[h];if(i){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=g+f[e],r=g-f[t];g=p(n,d(g,r))}if(l){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=v+f[e],r=v-f[t];v=p(n,d(v,r))}let y=a.fn({...e,[m]:g,[h]:v});return{...y,data:{x:y.x-t,y:y.y-n,enabled:{[m]:i,[h]:l}}}}},options:[s,void 0]},Y&&{...{name:"flip",options:f=u={...eh},async fn(e){var t,n,r,o,i,l,a,s;let c,u,d,{placement:p,middlewareData:h,rects:m,initialPlacement:g,platform:v,elements:j}=e,{mainAxis:L=!0,crossAxis:k=!0,fallbackPlacements:D,fallbackStrategy:F="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:H=!0,...N}=x(f,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let $=w(p),_=C(g),I=w(g)===g,W=await (null==v.isRTL?void 0:v.isRTL(j.floating)),z=D||(I||!H?[S(g)]:(c=S(g),[P(g),c,P(c)])),B="none"!==M;!D&&B&&z.push(...(u=y(g),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?O:A;return t?A:O;case"left":case"right":return t?E:T;default:return[]}}(w(g),"start"===M,W),u&&(d=d.map(e=>e+"-"+u),H&&(d=d.concat(d.map(P)))),d));let V=[g,...z],Y=await v.detectOverflow(e,N),X=[],K=(null==(n=h.flip)?void 0:n.overflows)||[];if(L&&X.push(Y[$]),k){let e,t,n,r,o=(l=p,a=m,void 0===(s=W)&&(s=!1),e=y(l),n=R(t=b(C(l))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=S(r)),[r,S(r)]);X.push(Y[o[0]],Y[o[1]])}if(K=[...K,{placement:p,overflows:X}],!X.every(e=>eC(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:K},reset:{placement:t}};let n=null==(o=K.filter(e=>e.overflows[0]e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(F){case"bestFit":{let e=null==(i=K.filter(e=>{if(B){let t=C(e.placement);return t===_||"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:i[0];e&&(n=e);break}case"initialPlacement":n=g}if(p!==n)return{reset:{placement:n}}}return{}}},options:[u,void 0]},{...{name:"size",options:g=h={...eh,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,n;let r,o,{placement:i,rects:l,platform:a,elements:s}=e,{apply:c=()=>{},...u}=x(g,e),f=await a.detectOverflow(e,u),h=w(i),m=y(i),v="y"===C(i),{width:b,height:R}=l.floating;"top"===h||"bottom"===h?(r=h,o=m===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(o=h,r="end"===m?"top":"bottom");let P=R-f.top-f.bottom,A=b-f.left-f.right,O=d(R-f[r],P),E=d(b-f[o],A),T=!e.middlewareData.shift,S=O,j=E;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(j=A),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(S=P),T&&!m){let e=p(f.left,0),t=p(f.right,0),n=p(f.top,0),r=p(f.bottom,0);v?j=b-2*(0!==e||0!==t?e+t:p(f.left,f.right)):S=R-2*(0!==n||0!==r?n+r:p(f.top,f.bottom))}await c({...e,availableWidth:j,availableHeight:S});let L=await a.getDimensions(s.floating);return b!==L.width||R!==L.height?{reset:{rects:!0}}:{}}},options:[h,void 0]},er&&{...{name:"arrow",options:j=v={element:er,padding:V},fn(e){let{element:t,padding:n}="function"==typeof j?j(e):j;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eb({element:t.current,padding:n}).fn(e):{}:t?eb({element:t,padding:n}).fn(e):{}}},options:[v,void 0]},eq({arrowWidth:es,arrowHeight:ec}),q&&{...{name:"hide",options:k=L={strategy:"referenceHidden",...eh},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...o}=x(k,e);switch(r){case"referenceHidden":{let r=M(await n.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:H(r)}}}case"escaped":{let r=M(await n.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:H(r)}}}default:return{}}}},options:[L,void 0]}]}),[eD,eF]=eG(ev),eM=(0,ej.useCallbackRef)(Z);(0,eL.useLayoutEffect)(()=>{ex&&eM?.()},[ex,eM]);let eH=eS.arrow?.x,e$=eS.arrow?.y,e_=eS.arrow?.centerOffset!==0,[eI,eB]=r.useState();return(0,eL.useLayoutEffect)(()=>{ee&&eB(window.getComputedStyle(ee).zIndex)},[ee]),(0,n.jsx)("div",{ref:em.setFloating,"data-radix-popper-content-wrapper":"",style:{...eg,transform:ex?eg.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eI,"--radix-popper-transform-origin":[eS.transformOrigin?.x,eS.transformOrigin?.y].join(" "),...eS.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,n.jsx)(ez,{scope:D,placedSide:eD,onArrowChange:ei,arrowX:eH,arrowY:e$,shouldHideArrow:e_,children:(0,n.jsx)(eT.Primitive.div,{"data-side":eD,"data-align":eF,...J,ref:en,style:{...J.style,animation:ex?void 0:"none"}})})})});eV.displayName=eW;var eY="PopperArrow",eX={top:"bottom",right:"left",bottom:"top",left:"right"},eK=r.forwardRef(function(e,t){let{__scopePopper:r,...o}=e,i=eB(eY,r),l=eX[i.placedSide];return(0,n.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,n.jsx)(eS,{...o,ref:t,style:{...o.style,display:"block"}})})});function eU(e){return null!==e}eK.displayName=eY;var eq=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,c]=eG(n),u={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?u:`${f}px`,h=`${-a}px`):"top"===s?(p=i?u:`${f}px`,h=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?u:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,h=i?u:`${d}px`),{data:{x:p,y:h}}}});function eG(e){let[t,n="center"]=e.split("-");return[t,n]}var eZ=e.i(614952),eJ=e.i(653747),eQ=e.i(93074),e0=e.i(534643),e1=e.i(73772),e2=e.i(927499),e5="Popover",[e7,e3]=(0,l.createContextScope)(e5,[eM]),e9=eM(),[e4,e6]=e7(e5),e8=e=>{let{__scopePopover:t,children:o,open:i,defaultOpen:l,onOpenChange:a,modal:s=!1}=e,c=e9(t),f=r.useRef(null),[d,p]=r.useState(!1),[h,m]=(0,e0.useControllableState)({prop:i,defaultProp:l??!1,onChange:a,caller:e5});return(0,n.jsx)(e$,{...c,children:(0,n.jsx)(e4,{scope:t,contentId:(0,u.useId)(),triggerRef:f,open:h,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:s,children:o})})};e8.displayName=e5;var te="PopoverAnchor",tt=r.forwardRef((e,t)=>{let{__scopePopover:o,...i}=e,l=e6(te,o),a=e9(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=l;return r.useEffect(()=>(s(),()=>c()),[s,c]),(0,n.jsx)(eI,{...a,...i,ref:t})});tt.displayName=te;var tn="PopoverTrigger",tr=r.forwardRef((e,t)=>{let{__scopePopover:r,...l}=e,a=e6(tn,r),s=e9(r),c=(0,i.useComposedRefs)(t,a.triggerRef),u=(0,n.jsx)(eT.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tg(a.open),...l,ref:c,onClick:(0,o.composeEventHandlers)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,n.jsx)(eI,{asChild:!0,...s,children:u})});tr.displayName=tn;var to="PopoverPortal",[ti,tl]=e7(to,{forceMount:void 0}),ta=e=>{let{__scopePopover:t,forceMount:r,children:o,container:i}=e,l=e6(to,t);return(0,n.jsx)(ti,{scope:t,forceMount:r,children:(0,n.jsx)(eJ.Presence,{present:r||l.open,children:(0,n.jsx)(eZ.Portal,{asChild:!0,container:i,children:o})})})};ta.displayName=to;var ts="PopoverContent",tc=r.forwardRef((e,t)=>{let r=tl(ts,e.__scopePopover),{forceMount:o=r.forceMount,...i}=e,l=e6(ts,e.__scopePopover);return(0,n.jsx)(eJ.Presence,{present:o||l.open,children:l.modal?(0,n.jsx)(tf,{...i,ref:t}):(0,n.jsx)(td,{...i,ref:t})})});tc.displayName=ts;var tu=(0,eQ.createSlot)("PopoverContent.RemoveScroll"),tf=r.forwardRef((e,t)=>{let l=e6(ts,e.__scopePopover),a=r.useRef(null),s=(0,i.useComposedRefs)(t,a),c=r.useRef(!1);return r.useEffect(()=>{let e=a.current;if(e)return(0,e1.hideOthers)(e)},[]),(0,n.jsx)(e2.RemoveScroll,{as:tu,allowPinchZoom:!0,children:(0,n.jsx)(tp,{...e,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||l.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;c.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),td=r.forwardRef((e,t)=>{let o=e6(ts,e.__scopePopover),i=r.useRef(!1),l=r.useRef(!1);return(0,n.jsx)(tp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let n=t.target;o.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),tp=r.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...m}=e,g=e6(ts,r),v=e9(r);return(0,s.useFocusGuards)(),(0,n.jsx)(c.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,n.jsx)(a.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>g.onOpenChange(!1),children:(0,n.jsx)(eV,{"data-state":tg(g.open),role:"dialog",id:g.contentId,...v,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),th="PopoverClose";r.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,l=e6(th,r);return(0,n.jsx)(eT.Primitive.button,{type:"button",...i,ref:t,onClick:(0,o.composeEventHandlers)(e.onClick,()=>l.onOpenChange(!1))})}).displayName=th;var tm=r.forwardRef((e,t)=>{let{__scopePopover:r,...o}=e,i=e9(r);return(0,n.jsx)(eK,{...i,...o,ref:t})});function tg(e){return e?"open":"closed"}tm.displayName="PopoverArrow";var tv=e.i(632137);let tx=r.createContext({trigger:"click",onMouseEnter:()=>{},onMouseLeave:()=>{}});e.s(["Popover",0,function({trigger:e="click",openDelay:t=0,closeDelay:o=300,open:i,onOpenChange:l,...a}){let[s,c]=r.useState(i||!1),u=r.useRef(null),f=r.useRef(null);r.useEffect(()=>{void 0!==i&&c(i)},[i]);let d=r.useCallback(e=>{c(e),l?.(e)},[l]);r.useEffect(()=>()=>{u.current&&clearTimeout(u.current),f.current&&clearTimeout(f.current)},[]);let p=r.useCallback(()=>{"hover"===e&&(f.current&&(clearTimeout(f.current),f.current=null),s||(u.current=setTimeout(()=>{d(!0)},t)))},[e,s,t,d]),h=r.useCallback(()=>{"hover"===e&&(u.current&&(clearTimeout(u.current),u.current=null),f.current=setTimeout(()=>{d(!1)},o))},[e,o,d]),m=r.useMemo(()=>({trigger:e,onMouseEnter:p,onMouseLeave:h}),[e,p,h]);return(0,n.jsx)(tx.Provider,{value:m,children:(0,n.jsx)(e8,{"data-slot":"popover",open:s,onOpenChange:d,...a})})},"PopoverAnchor",0,function({...e}){return(0,n.jsx)(tt,{"data-slot":"popover-anchor",...e})},"PopoverArrow",0,function({...e}){return(0,n.jsx)(tm,{"data-slot":"popover-arrow",...e})},"PopoverContent",0,function({className:e,align:t="center",sideOffset:o=4,children:i,showArrow:l=!0,arrowClassName:a,...s}){let{trigger:c,onMouseEnter:u,onMouseLeave:f}=r.useContext(tx);return(0,n.jsx)(ta,{children:(0,n.jsxs)(tc,{"data-slot":"popover-content",align:t,sideOffset:o,className:(0,tv.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-overlay w-72 origin-(--radix-popover-content-transform-origin) rounded-md border-none p-4 shadow-[0_2px_12px_0_#0003] outline-hidden",e),..."hover"===c?{onMouseEnter:u,onMouseLeave:f}:{},...s,children:[l&&(0,n.jsx)(tm,{className:(0,tv.cn)("border-none fill-white",a),height:12,width:20}),i]})})},"PopoverTrigger",0,function({triggerClass:e,...t}){let{trigger:o,onMouseEnter:i,onMouseLeave:l}=r.useContext(tx);return(0,n.jsx)(tr,{"data-slot":"popover-trigger",className:e,..."hover"===o?{onMouseEnter:i,onMouseLeave:l}:{},...t})}],809058)}]);