(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,343084,101534,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,o=Math.max,r=Math.round,l=Math.floor,a=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function c(e,t,n){return o(e,i(t,n))}function u(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}let p=new Set(["top","bottom"]);function w(e){return p.has(d(e))?"y":"x"}function y(e){return g(w(e))}function v(e,t,n){void 0===n&&(n=!1);let i=m(e),o=y(e),r=h(o),l="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=S(l)),[l,S(l)]}function x(e){let t=S(e);return[b(e),t,b(t)]}function b(e){return e.replace(/start|end/g,e=>f[e])}let E=["left","right"],T=["right","left"],C=["top","bottom"],R=["bottom","top"];function L(e,t,n,i){let o=m(e),r=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?T:E;return t?E:T;case"left":case"right":return t?C:R;default:return[]}}(d(e),"start"===n,i);return o&&(r=r.map(e=>e+"-"+o),t&&(r=r.concat(r.map(b)))),r}function S(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function P(e){let{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function O(e,t,n){let i,{reference:o,floating:r}=e,l=w(t),a=y(t),s=h(a),f=d(t),c="y"===l,u=o.x+o.width/2-r.width/2,g=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;switch(f){case"top":i={x:u,y:o.y-r.height};break;case"bottom":i={x:u,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:g};break;case"left":i={x:o.x-r.width,y:g};break;default:i={x:o.x,y:o.y}}switch(m(t)){case"start":i[a]-=p*(n&&c?-1:1);break;case"end":i[a]+=p*(n&&c?-1:1)}return i}e.s(["clamp",()=>c,"createCoords",()=>a,"evaluate",()=>u,"floor",()=>l,"getAlignment",()=>m,"getAlignmentAxis",()=>y,"getAlignmentSides",()=>v,"getAxisLength",()=>h,"getExpandedPlacements",()=>x,"getOppositeAlignmentPlacement",()=>b,"getOppositeAxis",()=>g,"getOppositeAxisPlacements",()=>L,"getOppositePlacement",()=>S,"getPaddingObject",()=>A,"getSide",()=>d,"getSideAxis",()=>w,"max",()=>o,"min",()=>i,"placements",()=>n,"rectToClientRect",()=>P,"round",()=>r,"sides",()=>t],343084);let D=async(e,t,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:l}=n,a=r.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),f=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=O(f,i,s),d=i,m={},g=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:r,rects:l,platform:a,elements:s,middlewareData:f}=t,{element:d,padding:g=0}=u(e,t)||{};if(null==d)return{};let p=A(g),w={x:n,y:o},v=y(r),x=h(v),b=await a.getDimensions(d),E="y"===v,T=E?"clientHeight":"clientWidth",C=l.reference[x]+l.reference[v]-w[v]-l.floating[x],R=w[v]-l.reference[v],L=await (null==a.getOffsetParent?void 0:a.getOffsetParent(d)),S=L?L[T]:0;S&&await (null==a.isElement?void 0:a.isElement(L))||(S=s.floating[T]||l.floating[x]);let P=S/2-b[x]/2-1,O=i(p[E?"top":"left"],P),D=i(p[E?"bottom":"right"],P),N=S-b[x]-D,H=S/2-b[x]/2+(C/2-R/2),M=c(O,H,N),W=!f.arrow&&null!=m(r)&&H!==M&&l.reference[x]/2-(Hm(e)===l),...w.filter(e=>m(e)!==l)]:w.filter(e=>d(e)===e)).filter(e=>!l||m(e)===l||!!y&&b(e)!==e):w,T=await N(t,x),C=(null==(i=s.autoPlacement)?void 0:i.index)||0,R=E[C];if(null==R)return{};let L=v(R,a,await (null==c.isRTL?void 0:c.isRTL(g.floating)));if(f!==R)return{reset:{placement:E[0]}};let S=[T[d(R)],T[L[0]],T[L[1]]],A=[...(null==(o=s.autoPlacement)?void 0:o.overflows)||[],{placement:R,overflows:S}],P=E[C+1];if(P)return{data:{index:C+1,overflows:A},reset:{placement:P}};let O=A.map(e=>{let t=m(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),D=(null==(r=O.filter(e=>e[2].slice(0,m(e[0])?2:3).every(e=>e<=0))[0])?void 0:r[0])||O[0][0];return D!==f?{data:{index:C+1,overflows:A},reset:{placement:D}}:{}}}},W=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,o,r,l;let{placement:a,middlewareData:s,rects:f,initialPlacement:c,platform:m,elements:g}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...C}=u(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let R=d(a),A=w(c),P=d(c)===c,O=await (null==m.isRTL?void 0:m.isRTL(g.floating)),D=y||(P||!T?[S(c)]:x(c)),H="none"!==E;!y&&H&&D.push(...L(c,T,E,O));let M=[c,...D],W=await N(t,C),k=[],F=(null==(i=s.flip)?void 0:i.overflows)||[];if(h&&k.push(W[R]),p){let e=v(a,f,O);k.push(W[e[0]],W[e[1]])}if(F=[...F,{placement:a,overflows:k}],!k.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=M[e];if(t&&("alignment"!==p||A===w(t)||F.every(e=>w(e.placement)!==A||e.overflows[0]>0)))return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(r=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:r.placement;if(!n)switch(b){case"bestFit":{let e=null==(l=F.filter(e=>{if(H){let t=w(e.placement);return t===A||"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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}};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 F(e){return t.some(t=>e[t]>=0)}let B=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:i="referenceHidden",...o}=u(e,t);switch(i){case"referenceHidden":{let e=k(await N(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:F(e)}}}case"escaped":{let e=k(await N(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:F(e)}}}default:return{}}}}};function V(e){let t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top));return{x:t,y:n,width:o(...e.map(e=>e.right))-t,height:o(...e.map(e=>e.bottom))-n}}let z=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:l,platform:a,strategy:s}=t,{padding:f=2,x:c,y:m}=u(e,t),g=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),h=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],i=null;for(let e=0;ei.height/2?n.push([o]):n[n.length-1].push(o),i=o}return n.map(e=>P(V(e)))}(g),p=P(V(g)),y=A(f),v=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=c&&null!=m)return h.find(e=>c>e.left-y.left&&ce.top-y.top&&m=2){if("y"===w(n)){let e=h[0],t=h[h.length-1],i="top"===d(n),o=e.top,r=t.bottom,l=i?e.left:t.left,a=i?e.right:t.right;return{top:o,bottom:r,left:l,right:a,width:a-l,height:r-o,x:l,y:o}}let e="left"===d(n),t=o(...h.map(e=>e.right)),r=i(...h.map(e=>e.left)),l=h.filter(n=>e?n.left===r:n.right===t),a=l[0].top,s=l[l.length-1].bottom;return{top:a,bottom:s,left:r,right:t,width:t-r,height:s-a,x:r,y:a}}return p}},floating:r.floating,strategy:s});return l.reference.x!==v.reference.x||l.reference.y!==v.reference.y||l.reference.width!==v.reference.width||l.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},j=new Set(["left","top"]);async function K(e,t){let{placement:n,platform:i,elements:o}=e,r=await (null==i.isRTL?void 0:i.isRTL(o.floating)),l=d(n),a=m(n),s="y"===w(n),f=j.has(l)?-1:1,c=r&&s?-1:1,g=u(t,e),{mainAxis:h,crossAxis:p,alignmentAxis:y}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return a&&"number"==typeof y&&(p="end"===a?-1*y:y),s?{x:p*c,y:h*f}:{x:h*f,y:p*c}}let _=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;let{x:o,y:r,placement:l,middlewareData:a}=t,s=await K(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:o+s.x,y:r+s.y,data:{...s,placement:l}}}}},I=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:i,placement:o}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=u(e,t),f={x:n,y:i},m=await N(t,s),h=w(d(o)),p=g(h),y=f[p],v=f[h];if(r){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=y+m[e],i=y-m[t];y=c(n,y,i)}if(l){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=v+m[e],i=v-m[t];v=c(n,v,i)}let x=a.fn({...t,[p]:y,[h]:v});return{...x,data:{x:x.x-n,y:x.y-i,enabled:{[p]:r,[h]:l}}}}}},U=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:i,placement:o,rects:r,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:f=!0}=u(e,t),c={x:n,y:i},m=w(o),h=g(m),p=c[h],y=c[m],v=u(a,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){let e="y"===h?"height":"width",t=r.reference[h]-r.floating[e]+x.mainAxis,n=r.reference[h]+r.reference[e]-x.mainAxis;pn&&(p=n)}if(f){var b,E;let e="y"===h?"width":"height",t=j.has(d(o)),n=r.reference[m]-r.floating[e]+(t&&(null==(b=l.offset)?void 0:b[m])||0)+(t?0:x.crossAxis),i=r.reference[m]+r.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[m])||0)-(t?x.crossAxis:0);yi&&(y=i)}return{[h]:p,[m]:y}}}},$=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,a,{placement:s,rects:f,platform:c,elements:g}=t,{apply:h=()=>{},...p}=u(e,t),y=await N(t,p),v=d(s),x=m(s),b="y"===w(s),{width:E,height:T}=f.floating;"top"===v||"bottom"===v?(l=v,a=x===(await (null==c.isRTL?void 0:c.isRTL(g.floating))?"start":"end")?"left":"right"):(a=v,l="end"===x?"top":"bottom");let C=T-y.top-y.bottom,R=E-y.left-y.right,L=i(T-y[l],C),S=i(E-y[a],R),A=!t.middlewareData.shift,P=L,O=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=R),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=C),A&&!x){let e=o(y.left,0),t=o(y.right,0),n=o(y.top,0),i=o(y.bottom,0);b?O=E-2*(0!==e||0!==t?e+t:o(y.left,y.right)):P=T-2*(0!==n||0!==i?n+i:o(y.top,y.bottom))}await h({...t,availableWidth:O,availableHeight:P});let D=await c.getDimensions(g.floating);return E!==D.width||T!==D.height?{reset:{rects:!0}}:{}}}};e.s(["arrow",()=>H,"autoPlacement",()=>M,"computePosition",()=>D,"detectOverflow",()=>N,"flip",()=>W,"hide",()=>B,"inline",()=>z,"limitShift",()=>U,"offset",()=>_,"shift",()=>I,"size",()=>$],101534)},229315,e=>{"use strict";function t(){return"u">typeof window}function n(e){return r(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(r(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function r(e){return!!t()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!t()&&(e instanceof Element||e instanceof i(e).Element)}function a(e){return!!t()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function s(e){return!(!t()||"u"{try{return e.matches(t)}catch(e){return!1}})}let h=["transform","translate","scale","rotate","perspective"],p=["transform","translate","scale","rotate","perspective","filter"],w=["paint","layout","strict","content"];function y(e){let t=x(),n=l(e)?T(e):e;return h.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||p.some(e=>(n.willChange||"").includes(e))||w.some(e=>(n.contain||"").includes(e))}function v(e){let t=R(e);for(;a(t)&&!E(t);){if(y(t))return t;if(g(t))break;t=R(t)}return null}function x(){return!("u"T,"getContainingBlock",()=>v,"getDocumentElement",()=>o,"getFrameElement",()=>L,"getNodeName",()=>n,"getNodeScroll",()=>C,"getOverflowAncestors",()=>function e(t,n,o){var r;void 0===n&&(n=[]),void 0===o&&(o=!0);let l=function e(t){let n=R(t);return E(n)?t.ownerDocument?t.ownerDocument.body:t.body:a(n)&&c(n)?n:e(n)}(t),s=l===(null==(r=t.ownerDocument)?void 0:r.body),f=i(l);if(s){let t=L(f);return n.concat(f,f.visualViewport||[],c(l)?l:[],t&&o?e(t):[])}return n.concat(l,e(l,[],o))},"getParentNode",()=>R,"getWindow",()=>i,"isContainingBlock",()=>y,"isElement",()=>l,"isHTMLElement",()=>a,"isLastTraversableNode",()=>E,"isNode",()=>r,"isOverflowElement",()=>c,"isShadowRoot",()=>s,"isTableElement",()=>d,"isTopLayer",()=>g,"isWebKit",()=>x])},258950,953760,e=>{"use strict";var t=e.i(343084),n=e.i(101534),i=e.i(229315);function o(e){let n=(0,i.getComputedStyle)(e),o=parseFloat(n.width)||0,r=parseFloat(n.height)||0,l=(0,i.isHTMLElement)(e),a=l?e.offsetWidth:o,s=l?e.offsetHeight:r,f=(0,t.round)(o)!==a||(0,t.round)(r)!==s;return f&&(o=a,r=s),{width:o,height:r,$:f}}function r(e){return(0,i.isElement)(e)?e:e.contextElement}function l(e){let n=r(e);if(!(0,i.isHTMLElement)(n))return(0,t.createCoords)(1);let l=n.getBoundingClientRect(),{width:a,height:s,$:f}=o(n),c=(f?(0,t.round)(l.width):l.width)/a,u=(f?(0,t.round)(l.height):l.height)/s;return c&&Number.isFinite(c)||(c=1),u&&Number.isFinite(u)||(u=1),{x:c,y:u}}let a=(0,t.createCoords)(0);function s(e){let t=(0,i.getWindow)(e);return(0,i.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:a}function f(e,n,o,a){var f;void 0===n&&(n=!1),void 0===o&&(o=!1);let c=e.getBoundingClientRect(),u=r(e),d=(0,t.createCoords)(1);n&&(a?(0,i.isElement)(a)&&(d=l(a)):d=l(e));let m=(void 0===(f=o)&&(f=!1),a&&(!f||a===(0,i.getWindow)(u))&&f)?s(u):(0,t.createCoords)(0),g=(c.left+m.x)/d.x,h=(c.top+m.y)/d.y,p=c.width/d.x,w=c.height/d.y;if(u){let e=(0,i.getWindow)(u),t=a&&(0,i.isElement)(a)?(0,i.getWindow)(a):a,n=e,o=(0,i.getFrameElement)(n);for(;o&&a&&t!==n;){let e=l(o),t=o.getBoundingClientRect(),r=(0,i.getComputedStyle)(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;g*=e.x,h*=e.y,p*=e.x,w*=e.y,g+=a,h+=s,n=(0,i.getWindow)(o),o=(0,i.getFrameElement)(n)}}return(0,t.rectToClientRect)({width:p,height:w,x:g,y:h})}function c(e,t){let n=(0,i.getNodeScroll)(e).scrollLeft;return t?t.left+n:f((0,i.getDocumentElement)(e)).left+n}function u(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-c(e,n),y:n.top+t.scrollTop}}let d=new Set(["absolute","fixed"]);function m(e,n,o){var r;let a;if("viewport"===n)a=function(e,t){let n=(0,i.getWindow)(e),o=(0,i.getDocumentElement)(e),r=n.visualViewport,l=o.clientWidth,a=o.clientHeight,s=0,f=0;if(r){l=r.width,a=r.height;let e=(0,i.isWebKit)();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,f=r.offsetTop)}let u=c(o);if(u<=0){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(o.clientWidth-t.clientWidth-i);r<=25&&(l-=r)}else u<=25&&(l+=u);return{width:l,height:a,x:s,y:f}}(e,o);else if("document"===n){let n,o,l,s,f,u,d;r=(0,i.getDocumentElement)(e),n=(0,i.getDocumentElement)(r),o=(0,i.getNodeScroll)(r),l=r.ownerDocument.body,s=(0,t.max)(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),f=(0,t.max)(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight),u=-o.scrollLeft+c(r),d=-o.scrollTop,"rtl"===(0,i.getComputedStyle)(l).direction&&(u+=(0,t.max)(n.clientWidth,l.clientWidth)-s),a={width:s,height:f,x:u,y:d}}else if((0,i.isElement)(n)){let e,r,s,c,u,d;r=(e=f(n,!0,"fixed"===o)).top+n.clientTop,s=e.left+n.clientLeft,c=(0,i.isHTMLElement)(n)?l(n):(0,t.createCoords)(1),u=n.clientWidth*c.x,d=n.clientHeight*c.y,a={width:u,height:d,x:s*c.x,y:r*c.y}}else{let t=s(e);a={x:n.x-t.x,y:n.y-t.y,width:n.width,height:n.height}}return(0,t.rectToClientRect)(a)}function g(e){return"static"===(0,i.getComputedStyle)(e).position}function h(e,t){if(!(0,i.isHTMLElement)(e)||"fixed"===(0,i.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,i.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function p(e,t){let n=(0,i.getWindow)(e);if((0,i.isTopLayer)(e))return n;if(!(0,i.isHTMLElement)(e)){let t=(0,i.getParentNode)(e);for(;t&&!(0,i.isLastTraversableNode)(t);){if((0,i.isElement)(t)&&!g(t))return t;t=(0,i.getParentNode)(t)}return n}let o=h(e,t);for(;o&&(0,i.isTableElement)(o)&&g(o);)o=h(o,t);return o&&(0,i.isLastTraversableNode)(o)&&g(o)&&!(0,i.isContainingBlock)(o)?n:o||(0,i.getContainingBlock)(e)||n}let w=async function(e){let n=this.getOffsetParent||p,o=this.getDimensions,r=await o(e.floating);return{reference:function(e,n,o){let r=(0,i.isHTMLElement)(n),l=(0,i.getDocumentElement)(n),a="fixed"===o,s=f(e,!0,a,n),d={scrollLeft:0,scrollTop:0},m=(0,t.createCoords)(0);if(r||!r&&!a)if(("body"!==(0,i.getNodeName)(n)||(0,i.isOverflowElement)(l))&&(d=(0,i.getNodeScroll)(n)),r){let e=f(n,!0,a,n);m.x=e.x+n.clientLeft,m.y=e.y+n.clientTop}else l&&(m.x=c(l));a&&!r&&l&&(m.x=c(l));let g=!l||r||a?(0,t.createCoords)(0):u(l,d);return{x:s.left+d.scrollLeft-m.x-g.x,y:s.top+d.scrollTop-m.y-g.y,width:s.width,height:s.height}}(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},y={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:n,rect:o,offsetParent:r,strategy:a}=e,s="fixed"===a,c=(0,i.getDocumentElement)(r),d=!!n&&(0,i.isTopLayer)(n.floating);if(r===c||d&&s)return o;let m={scrollLeft:0,scrollTop:0},g=(0,t.createCoords)(1),h=(0,t.createCoords)(0),p=(0,i.isHTMLElement)(r);if((p||!p&&!s)&&(("body"!==(0,i.getNodeName)(r)||(0,i.isOverflowElement)(c))&&(m=(0,i.getNodeScroll)(r)),(0,i.isHTMLElement)(r))){let e=f(r);g=l(r),h.x=e.x+r.clientLeft,h.y=e.y+r.clientTop}let w=!c||p||s?(0,t.createCoords)(0):u(c,m);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-m.scrollLeft*g.x+h.x+w.x,y:o.y*g.y-m.scrollTop*g.y+h.y+w.y}},getDocumentElement:i.getDocumentElement,getClippingRect:function(e){let{element:n,boundary:o,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===o?(0,i.isTopLayer)(n)?[]:function(e,t){let n=t.get(e);if(n)return n;let o=(0,i.getOverflowAncestors)(e,[],!1).filter(e=>(0,i.isElement)(e)&&"body"!==(0,i.getNodeName)(e)),r=null,l="fixed"===(0,i.getComputedStyle)(e).position,a=l?(0,i.getParentNode)(e):e;for(;(0,i.isElement)(a)&&!(0,i.isLastTraversableNode)(a);){let t=(0,i.getComputedStyle)(a),n=(0,i.isContainingBlock)(a);n||"fixed"!==t.position||(r=null),(l?!n&&!r:!n&&"static"===t.position&&!!r&&d.has(r.position)||(0,i.isOverflowElement)(a)&&!n&&function e(t,n){let o=(0,i.getParentNode)(t);return!(o===n||!(0,i.isElement)(o)||(0,i.isLastTraversableNode)(o))&&("fixed"===(0,i.getComputedStyle)(o).position||e(o,n))}(e,a))?o=o.filter(e=>e!==a):r=t,a=(0,i.getParentNode)(a)}return t.set(e,o),o}(n,this._c):[].concat(o),r],s=a[0],f=a.reduce((e,i)=>{let o=m(n,i,l);return e.top=(0,t.max)(o.top,e.top),e.right=(0,t.min)(o.right,e.right),e.bottom=(0,t.min)(o.bottom,e.bottom),e.left=(0,t.max)(o.left,e.left),e},m(n,s,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},getOffsetParent:p,getElementRects:w,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=o(e);return{width:t,height:n}},getScale:l,isElement:i.isElement,isRTL:function(e){return"rtl"===(0,i.getComputedStyle)(e).direction}};function v(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function x(e,n,o,l){let a;void 0===l&&(l={});let{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:m=!1}=l,g=r(e),h=s||c?[...g?(0,i.getOverflowAncestors)(g):[],...(0,i.getOverflowAncestors)(n)]:[];h.forEach(e=>{s&&e.addEventListener("scroll",o,{passive:!0}),c&&e.addEventListener("resize",o)});let p=g&&d?function(e,n){let o,r=null,l=(0,i.getDocumentElement)(e);function a(){var e;clearTimeout(o),null==(e=r)||e.disconnect(),r=null}return!function i(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),a();let c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=c;if(s||n(),!m||!g)return;let h={rootMargin:-(0,t.floor)(d)+"px "+-(0,t.floor)(l.clientWidth-(u+m))+"px "+-(0,t.floor)(l.clientHeight-(d+g))+"px "+-(0,t.floor)(u)+"px",threshold:(0,t.max)(0,(0,t.min)(1,f))||1},p=!0;function w(t){let n=t[0].intersectionRatio;if(n!==f){if(!p)return i();n?i(!1,n):o=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||v(c,e.getBoundingClientRect())||i(),p=!1}try{r=new IntersectionObserver(w,{...h,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(w,h)}r.observe(e)}(!0),a}(g,o):null,w=-1,y=null;u&&(y=new ResizeObserver(e=>{let[t]=e;t&&t.target===g&&y&&(y.unobserve(n),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(n)})),o()}),g&&!m&&y.observe(g),y.observe(n));let x=m?f(e):null;return m&&function t(){let n=f(e);x&&!v(x,n)&&o(),x=n,a=requestAnimationFrame(t)}(),o(),()=>{var e;h.forEach(e=>{s&&e.removeEventListener("scroll",o),c&&e.removeEventListener("resize",o)}),null==p||p(),null==(e=y)||e.disconnect(),y=null,m&&cancelAnimationFrame(a)}}n.detectOverflow;let b=n.offset,E=n.autoPlacement,T=n.shift,C=n.flip,R=n.size,L=n.hide,S=n.arrow,A=n.inline,P=n.limitShift,O=(e,t,i)=>{let o=new Map,r={platform:y,...i},l={...r.platform,_c:o};return(0,n.computePosition)(e,t,{...r,platform:l})};e.s(["arrow",()=>S,"autoPlacement",()=>E,"autoUpdate",()=>x,"computePosition",()=>O,"flip",()=>C,"hide",()=>L,"inline",()=>A,"limitShift",()=>P,"offset",()=>b,"shift",()=>T,"size",()=>R],953760);var D=e.i(271645),N=e.i(174080),H="u">typeof document?D.useLayoutEffect:function(){};function M(e,t){let n,i,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(i=n;0!=i--;)if(!M(e[i],t[i]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(("_owner"!==n||!e.$$typeof)&&!M(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function W(e){return"u"{t.current=e}),t}function B(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:r,floating:l}={},transform:a=!0,whileElementsMounted:s,open:f}=e,[c,u]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=D.useState(i);M(d,i)||m(i);let[g,h]=D.useState(null),[p,w]=D.useState(null),y=D.useCallback(e=>{e!==E.current&&(E.current=e,h(e))},[]),v=D.useCallback(e=>{e!==T.current&&(T.current=e,w(e))},[]),x=r||g,b=l||p,E=D.useRef(null),T=D.useRef(null),C=D.useRef(c),R=null!=s,L=F(s),S=F(o),A=F(f),P=D.useCallback(()=>{if(!E.current||!T.current)return;let e={placement:t,strategy:n,middleware:d};S.current&&(e.platform=S.current),O(E.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};B.current&&!M(C.current,t)&&(C.current=t,N.flushSync(()=>{u(t)}))})},[d,t,n,S,A]);H(()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[f]);let B=D.useRef(!1);H(()=>(B.current=!0,()=>{B.current=!1}),[]),H(()=>{if(x&&(E.current=x),b&&(T.current=b),x&&b){if(L.current)return L.current(x,b,P);P()}},[x,b,P,L,R]);let V=D.useMemo(()=>({reference:E,floating:T,setReference:y,setFloating:v}),[y,v]),z=D.useMemo(()=>({reference:x,floating:b}),[x,b]),j=D.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=k(z.floating,c.x),i=k(z.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+i+"px)",...W(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}},[n,a,z.floating,c.x,c.y]);return D.useMemo(()=>({...c,update:P,refs:V,elements:z,floatingStyles:j}),[c,P,V,z,j])}let V=(e,t)=>({...b(e),options:[e,t]}),z=(e,t)=>({...T(e),options:[e,t]}),j=(e,t)=>({...P(e),options:[e,t]}),K=(e,t)=>({...C(e),options:[e,t]}),_=(e,t)=>({...R(e),options:[e,t]}),I=(e,t)=>({...L(e),options:[e,t]}),U=(e,t)=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?S({element:n.current,padding:i}).fn(t):{}:n?S({element:n,padding:i}).fn(t):{}},options:[e,t]});e.s(["arrow",()=>U,"flip",()=>K,"hide",()=>I,"limitShift",()=>j,"offset",()=>V,"shift",()=>z,"size",()=>_,"useFloating",()=>B],258950)}]); //# sourceMappingURL=902240d2bf8261af.js.map