;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7ed829ac-e9d8-e0fe-83a9-76d63a7d1b4a")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,851871,793646,484567,356171,t=>{"use strict";var e=t.i(35203),n=t.i(687652);let i=["top","right","bottom","left"],r=i.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]),o=Math.min,l=Math.max,a=Math.round,f=Math.floor,c=t=>({x:t,y:t}),s={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(t,e,n){return l(t,o(e,n))}function h(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function w(t){return"y"===t?"height":"width"}let y=new Set(["top","bottom"]);function v(t){return y.has(m(t))?"y":"x"}function x(t){return p(v(t))}function b(t,e,n){void 0===n&&(n=!1);let i=g(t),r=x(t),o=w(r),l="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=S(l)),[l,S(l)]}function R(t){let e=S(t);return[T(t),e,T(e)]}function T(t){return t.replace(/start|end/g,t=>u[t])}let A=["left","right"],E=["right","left"],L=["top","bottom"],O=["bottom","top"];function C(t,e,n,i){let r=g(t),o=function(t,e,n){switch(t){case"top":case"bottom":if(n)return e?E:A;return e?A:E;case"left":case"right":return e?L:O;default:return[]}}(m(t),"start"===n,i);return r&&(o=o.map(t=>t+"-"+r),e&&(o=o.concat(o.map(T)))),o}function S(t){return t.replace(/left|right|bottom|top/g,t=>s[t])}function P(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function D(t){let{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function F(t,e,n){let i,{reference:r,floating:o}=t,l=v(e),a=x(e),f=w(a),c=m(e),s="y"===l,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[f]/2-o[f]/2;switch(c){case"top":i={x:u,y:r.y-o.height};break;case"bottom":i={x:u,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:d};break;case"left":i={x:r.x-o.width,y:d};break;default:i={x:r.x,y:r.y}}switch(g(e)){case"start":i[a]-=h*(n&&s?-1:1);break;case"end":i[a]+=h*(n&&s?-1:1)}return i}t.s(["clamp",0,d,"createCoords",0,c,"evaluate",0,h,"floor",0,f,"getAlignment",0,g,"getAlignmentAxis",0,x,"getAlignmentSides",0,b,"getAxisLength",0,w,"getExpandedPlacements",0,R,"getOppositeAlignmentPlacement",0,T,"getOppositeAxis",0,p,"getOppositeAxisPlacements",0,C,"getOppositePlacement",0,S,"getPaddingObject",0,P,"getSide",0,m,"getSideAxis",0,v,"max",0,l,"min",0,o,"placements",0,r,"rectToClientRect",0,D,"round",0,a,"sides",0,i],793646);let H=async(t,e,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(e)),c=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:s,y:u}=F(c,i,f),d=i,h={},m=0;for(let n=0;nt[e]>=0)}function N(t){let e=o(...t.map(t=>t.left)),n=o(...t.map(t=>t.top));return{x:e,y:n,width:l(...t.map(t=>t.right))-e,height:l(...t.map(t=>t.bottom))-n}}let M=new Set(["left","top"]);async function V(t,e){let{placement:n,platform:i,elements:r}=t,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),l=m(n),a=g(n),f="y"===v(n),c=M.has(l)?-1:1,s=o&&f?-1:1,u=h(e,t),{mainAxis:d,crossAxis:p,alignmentAxis:w}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof w&&(p="end"===a?-1*w:w),f?{x:p*s,y:d*c}:{x:d*c,y:p*s}}function z(){return"u">typeof window}function j(t){return _(t)?(t.nodeName||"").toLowerCase():"#document"}function I(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function U(t){var e;return null==(e=(_(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function _(t){return!!z()&&(t instanceof Node||t instanceof I(t).Node)}function K(t){return!!z()&&(t instanceof Element||t instanceof I(t).Element)}function $(t){return!!z()&&(t instanceof HTMLElement||t instanceof I(t).HTMLElement)}function q(t){return!(!z()||"u"{try{return t.matches(e)}catch(t){return!1}})}let tt=["transform","translate","scale","rotate","perspective"],te=["transform","translate","scale","rotate","perspective","filter"],tn=["paint","layout","strict","content"];function ti(t){let e=to(),n=K(t)?tf(t):t;return tt.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||te.some(t=>(n.willChange||"").includes(t))||tn.some(t=>(n.contain||"").includes(t))}function tr(t){let e=ts(t);for(;$(e)&&!ta(e);){if(ti(e))return e;if(Z(e))break;e=ts(e)}return null}function to(){return!("u"K(t)&&"body"!==j(t)),r=null,o="fixed"===tf(t).position,l=o?ts(t):t;for(;K(l)&&!ta(l);){let e=tf(l),n=ti(l);n||"fixed"!==e.position||(r=null),(o?!n&&!r:!n&&"static"===e.position&&!!r&&tb.has(r.position)||Y(l)&&!n&&function t(e,n){let i=ts(e);return!(i===n||!K(i)||ta(i))&&("fixed"===tf(i).position||t(i,n))}(t,l))?i=i.filter(t=>t!==l):r=e,l=ts(l)}return e.set(t,i),i}(e,this._c):[].concat(n),i],f=a[0],c=a.reduce((t,n)=>{let i=tR(e,n,r);return t.top=l(i.top,t.top),t.right=o(i.right,t.right),t.bottom=o(i.bottom,t.bottom),t.left=l(i.left,t.left),t},tR(e,f,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:tE,getElementRects:tL,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=th(t);return{width:e,height:n}},getScale:tg,isElement:K,isRTL:function(t){return"rtl"===tf(t).direction}};function tC(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function tS(t,e,n,i){let r;void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,h=tm(t),m=a||c?[...h?tu(h):[],...tu(e)]:[];m.forEach(t=>{a&&t.addEventListener("scroll",n,{passive:!0}),c&&t.addEventListener("resize",n)});let g=h&&u?function(t,e){let n,i=null,r=U(t);function a(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return!function c(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),a();let d=t.getBoundingClientRect(),{left:h,top:m,width:g,height:p}=d;if(s||e(),!g||!p)return;let w={rootMargin:-f(m)+"px "+-f(r.clientWidth-(h+g))+"px "+-f(r.clientHeight-(m+p))+"px "+-f(h)+"px",threshold:l(0,o(1,u))||1},y=!0;function v(e){let i=e[0].intersectionRatio;if(i!==u){if(!y)return c();i?c(!1,i):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==i||tC(d,t.getBoundingClientRect())||c(),y=!1}try{i=new IntersectionObserver(v,{...w,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(v,w)}i.observe(t)}(!0),a}(h,n):null,p=-1,w=null;s&&(w=new ResizeObserver(t=>{let[i]=t;i&&i.target===h&&w&&(w.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=w)||t.observe(e)})),n()}),h&&!d&&w.observe(h),w.observe(e));let y=d?ty(t):null;return d&&function e(){let i=ty(t);y&&!tC(y,i)&&n(),y=i,r=requestAnimationFrame(e)}(),n(),()=>{var t;m.forEach(t=>{a&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)}),null==g||g(),null==(t=w)||t.disconnect(),w=null,d&&cancelAnimationFrame(r)}}let tP=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:r,y:o,placement:l,middlewareData:a}=e,f=await V(e,t);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+f.x,y:o+f.y,data:{...f,placement:l}}}}},tD=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i,r,o,l;let{placement:a,middlewareData:f,rects:c,initialPlacement:s,platform:u,elements:d}=e,{mainAxis:g=!0,crossAxis:p=!0,fallbackPlacements:w,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,...A}=h(t,e);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let E=m(a),L=v(s),O=m(s)===s,P=await (null==u.isRTL?void 0:u.isRTL(d.floating)),D=w||(O||!T?[S(s)]:R(s)),F="none"!==x;!w&&F&&D.push(...C(s,T,x,P));let H=[s,...D],k=await W(e,A),B=[],N=(null==(i=f.flip)?void 0:i.overflows)||[];if(g&&B.push(k[E]),p){let t=b(a,c,P);B.push(k[t[0]],k[t[1]])}if(N=[...N,{placement:a,overflows:B}],!B.every(t=>t<=0)){let t=((null==(r=f.flip)?void 0:r.index)||0)+1,e=H[t];if(e&&("alignment"!==p||L===v(e)||N.every(t=>v(t.placement)!==L||t.overflows[0]>0)))return{data:{index:t,overflows:N},reset:{placement:e}};let n=null==(o=N.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!n)switch(y){case"bestFit":{let t=null==(l=N.filter(t=>{if(F){let e=v(t.placement);return e===L||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:l[0];t&&(n=t);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},tF=(t,e,n)=>{let i=new Map,r={platform:tO,...n},o={...r.platform,_c:i};return H(t,e,{...r,platform:o})};function tH(t){console.error("Floating UI update failed:",t)}function tW(t){console.warn("Floating UI computePosition failed:",t)}t.s(["arrow",0,t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:r,rects:l,platform:a,elements:f,middlewareData:c}=e,{element:s,padding:u=0}=h(t,e)||{};if(null==s)return{};let m=P(u),p={x:n,y:i},y=x(r),v=w(y),b=await a.getDimensions(s),R="y"===y,T=R?"clientHeight":"clientWidth",A=l.reference[v]+l.reference[y]-p[y]-l.floating[v],E=p[y]-l.reference[y],L=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s)),O=L?L[T]:0;O&&await (null==a.isElement?void 0:a.isElement(L))||(O=f.floating[T]||l.floating[v]);let C=O/2-b[v]/2-1,S=o(m[R?"top":"left"],C),D=o(m[R?"bottom":"right"],C),F=O-b[v]-D,H=O/2-b[v]/2+(A/2-E/2),W=d(S,H,F),k=!c.arrow&&null!=g(r)&&H!==W&&l.reference[v]/2-(Hg(t)===l),...w.filter(t=>g(t)!==l)]:w.filter(t=>m(t)===t)).filter(t=>!l||g(t)===l||!!y&&T(t)!==t):w,R=await W(e,v),A=(null==(n=f.autoPlacement)?void 0:n.index)||0,E=x[A];if(null==E)return{};let L=b(E,a,await (null==s.isRTL?void 0:s.isRTL(u.floating)));if(c!==E)return{reset:{placement:x[0]}};let O=[R[m(E)],R[L[0]],R[L[1]]],C=[...(null==(i=f.autoPlacement)?void 0:i.overflows)||[],{placement:E,overflows:O}],S=x[A+1];if(S)return{data:{index:A+1,overflows:C},reset:{placement:S}};let P=C.map(t=>{let e=g(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),D=(null==(o=P.filter(t=>t[2].slice(0,g(t[0])?2:3).every(t=>t<=0))[0])?void 0:o[0])||P[0][0];return D!==c?{data:{index:A+1,overflows:C},reset:{placement:D}}:{}}}},"autoUpdate",0,tS,"computePosition",0,tF,"detectOverflow",0,W,"flip",0,tD,"hide",0,function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...r}=h(t,e);switch(i){case"referenceHidden":{let t=k(await W(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:B(t)}}}case"escaped":{let t=k(await W(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:B(t)}}}default:return{}}}}},"inline",0,function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){let{placement:n,elements:i,rects:r,platform:a,strategy:f}=e,{padding:c=2,x:s,y:u}=h(t,e),d=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(i.reference))||[]),g=function(t){let e=t.slice().sort((t,e)=>t.y-e.y),n=[],i=null;for(let t=0;ti.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(t=>D(N(t)))}(d),p=D(N(d)),w=P(c),y=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&g[0].left>g[1].right&&null!=s&&null!=u)return g.find(t=>s>t.left-w.left&&st.top-w.top&&u=2){if("y"===v(n)){let t=g[0],e=g[g.length-1],i="top"===m(n),r=t.top,o=e.bottom,l=i?t.left:e.left,a=i?t.right:e.right;return{top:r,bottom:o,left:l,right:a,width:a-l,height:o-r,x:l,y:r}}let t="left"===m(n),e=l(...g.map(t=>t.right)),i=o(...g.map(t=>t.left)),r=g.filter(n=>t?n.left===i:n.right===e),a=r[0].top,f=r[r.length-1].bottom;return{top:a,bottom:f,left:i,right:e,width:e-i,height:f-a,x:i,y:a}}return p}},floating:i.floating,strategy:f});return r.reference.x!==y.reference.x||r.reference.y!==y.reference.y||r.reference.width!==y.reference.width||r.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},"limitShift",0,function(t){return void 0===t&&(t={}),{options:t,fn(e){let{x:n,y:i,placement:r,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:f=!0,crossAxis:c=!0}=h(t,e),s={x:n,y:i},u=v(r),d=p(u),g=s[d],w=s[u],y=h(a,e),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){let t="y"===d?"height":"width",e=o.reference[d]-o.floating[t]+x.mainAxis,n=o.reference[d]+o.reference[t]-x.mainAxis;gn&&(g=n)}if(c){var b,R;let t="y"===d?"width":"height",e=M.has(m(r)),n=o.reference[u]-o.floating[t]+(e&&(null==(b=l.offset)?void 0:b[u])||0)+(e?0:x.crossAxis),i=o.reference[u]+o.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[u])||0)-(e?x.crossAxis:0);wi&&(w=i)}return{[d]:g,[u]:w}}}},"offset",0,tP,"shift",0,function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:r}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...f}=h(t,e),c={x:n,y:i},s=await W(e,f),u=v(m(r)),g=p(u),w=c[g],y=c[u];if(o){let t="y"===g?"top":"left",e="y"===g?"bottom":"right",n=w+s[t],i=w-s[e];w=d(n,w,i)}if(l){let t="y"===u?"top":"left",e="y"===u?"bottom":"right",n=y+s[t],i=y-s[e];y=d(n,y,i)}let x=a.fn({...e,[g]:w,[u]:y});return{...x,data:{x:x.x-n,y:x.y-i,enabled:{[g]:o,[u]:l}}}}}},"size",0,function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;let r,a,{placement:f,rects:c,platform:s,elements:u}=e,{apply:d=()=>{},...p}=h(t,e),w=await W(e,p),y=m(f),x=g(f),b="y"===v(f),{width:R,height:T}=c.floating;"top"===y||"bottom"===y?(r=y,a=x===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(a=y,r="end"===x?"top":"bottom");let A=T-w.top-w.bottom,E=R-w.left-w.right,L=o(T-w[r],A),O=o(R-w[a],E),C=!e.middlewareData.shift,S=L,P=O;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(P=E),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(S=A),C&&!x){let t=l(w.left,0),e=l(w.right,0),n=l(w.top,0),i=l(w.bottom,0);b?P=R-2*(0!==t||0!==e?t+e:l(w.left,w.right)):S=T-2*(0!==n||0!==i?n+i:l(w.top,w.bottom))}await d({...e,availableWidth:P,availableHeight:S});let D=await s.getDimensions(u.floating);return R!==D.width||T!==D.height?{reset:{rects:!0}}:{}}}}],356171),t.s(["default",0,function(t){let i,r,o=(0,e.c)(6),{anchorRef:l,popperRef:a,placement:f,enabled:c}=t,s=void 0===c||c;o[0]!==l||o[1]!==s||o[2]!==f||o[3]!==a?(i=()=>{if(!s||!l?.current||!a?.current||!(l.current instanceof Element)||!(a.current instanceof Element))return;let t=function(){!l?.current||!a?.current||l.current instanceof Element&&a.current instanceof Element&&tF(l.current,a.current,{placement:f,middleware:[tP(8),tD()]}).then(t=>{let{x:e,y:n}=t;a?.current&&a.current instanceof Element&&Object.assign(a.current.style,{left:`${e}px`,top:`${n}px`})}).catch(tW)};t();let e=tS(l.current,a.current,t,{onError:tH});return()=>{"function"==typeof e&&e()}},r=[l,a,f,s],o[0]=l,o[1]=s,o[2]=f,o[3]=a,o[4]=i,o[5]=r):(i=o[4],r=o[5]),(0,n.useEffect)(i,r)}],851871)}]); //# debugId=7ed829ac-e9d8-e0fe-83a9-76d63a7d1b4a //# sourceMappingURL=0ycrujsw06w.b.js.map