1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9675],{150999:function(e,t,n){n.d(t,{x7:function(){return L},Me:function(){return P},oo:function(){return F},RR:function(){return A},Cp:function(){return j},dr:function(){return O},cv:function(){return S},uY:function(){return T},dp:function(){return N}});var r=n(481534);function o(e,t,n){let o,{reference:i,floating:l}=e,a=(0,r.Qq)(t),u=(0,r.Wh)(t),c=(0,r.I4)(u),s=(0,r.k3)(t),d="y"===a,f=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,v=i[c]/2-l[c]/2;switch(s){case"top":o={x:f,y:i.y-l.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-l.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[u]-=v*(n&&d?-1:1);break;case"end":o[u]+=v*(n&&d?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:a}=n,u=l.filter(Boolean),c=await (null==a.isRTL?void 0:a.isRTL(t)),s=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(s,r,c),p=r,v={},m=0;for(let n=0;n<u.length;n++){let{name:l,fn:h}=u[n],{x:g,y:w,data:y,reset:x}=await h({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:v,rects:s,platform:a,elements:{reference:e,floating:t}});d=null!=g?g:d,f=null!=w?w:f,v={...v,[l]:{...v[l],...y}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:d,y:f}=o(s,p,c)),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:v}};async function l(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:l,rects:a,elements:u,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=(0,r.ku)(t,e),m=(0,r.yd)(v),h=u[p?"floating"===f?"reference":"floating":f],g=(0,r.JB)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(h)))||n?h:h.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(u.floating)),boundary:s,rootBoundary:d,strategy:c})),w="floating"===f?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u.floating)),x=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},b=(0,r.JB)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:y,strategy:c}):w);return{top:(g.top-b.top+m.top)/x.y,bottom:(b.bottom-g.bottom+m.bottom)/x.y,left:(g.left-b.left+m.left)/x.x,right:(b.right-g.right+m.right)/x.x}}function a(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function u(e){return r.mA.some(t=>e[t]>=0)}let c=new Set(["left","top"]);async function s(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),a=(0,r.k3)(n),u=(0,r.hp)(n),s="y"===(0,r.Qq)(n),d=c.has(a)?-1:1,f=l&&s?-1:1,p=(0,r.ku)(t,e),{mainAxis:v,crossAxis:m,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof h&&(m="end"===u?-1*h:h),s?{x:m*f,y:v*d}:{x:v*d,y:m*f}}var d=n(775908);function f(e){let t=(0,d.Dx)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=(0,d.Re)(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:o,u=(0,r.NM)(n)!==l||(0,r.NM)(o)!==a;return u&&(n=l,o=a),{width:n,height:o,$:u}}function p(e){return(0,d.kK)(e)?e:e.contextElement}function v(e){let t=p(e);if(!(0,d.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:l}=f(t),a=(l?(0,r.NM)(n.width):n.width)/o,u=(l?(0,r.NM)(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let m=(0,r.ze)(0);function h(e){let t=(0,d.Jj)(e);return(0,d.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:m}function g(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),a=p(e),u=(0,r.ze)(1);t&&(o?(0,d.kK)(o)&&(u=v(o)):u=v(e));let c=(void 0===(i=n)&&(i=!1),o&&(!i||o===(0,d.Jj)(a))&&i)?h(a):(0,r.ze)(0),s=(l.left+c.x)/u.x,f=(l.top+c.y)/u.y,m=l.width/u.x,g=l.height/u.y;if(a){let e=(0,d.Jj)(a),t=o&&(0,d.kK)(o)?(0,d.Jj)(o):o,n=e,r=(0,d.wK)(n);for(;r&&o&&t!==n;){let e=v(r),t=r.getBoundingClientRect(),o=(0,d.Dx)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,f*=e.y,m*=e.x,g*=e.y,s+=i,f+=l,n=(0,d.Jj)(r),r=(0,d.wK)(n)}}return(0,r.JB)({width:m,height:g,x:s,y:f})}function w(e,t){let n=(0,d.Lw)(e).scrollLeft;return t?t.left+n:g((0,d.tF)(e)).left+n}function y(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-w(e,n),y:n.top+t.scrollTop}}let x=new Set(["absolute","fixed"]);function b(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,d.Jj)(e),r=(0,d.tF)(e),o=n.visualVie
1wport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=(0,d.Pf)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let c=w(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)o=function(e){let t=(0,d.tF)(e),n=(0,d.Lw)(e),o=e.ownerDocument.body,i=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+w(e),u=-n.scrollTop;return"rtl"===(0,d.Dx)(o).direction&&(a+=(0,r.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:a,y:u}}((0,d.tF)(e));else if((0,d.kK)(t))o=function(e,t){let n=g(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,d.Re)(e)?v(e):(0,r.ze)(1),a=e.clientWidth*l.x;return{width:a,height:e.clientHeight*l.y,x:i*l.x,y:o*l.y}}(t,n);else{let n=h(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.JB)(o)}function R(e){return"static"===(0,d.Dx)(e).position}function E(e,t){if(!(0,d.Re)(e)||"fixed"===(0,d.Dx)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,d.tF)(e)===n&&(n=n.ownerDocument.body),n}function C(e,t){let n=(0,d.Jj)(e);if((0,d.tR)(e))return n;if(!(0,d.Re)(e)){let t=(0,d.Ow)(e);for(;t&&!(0,d.Py)(t);){if((0,d.kK)(t)&&!R(t))return t;t=(0,d.Ow)(t)}return n}let r=E(e,t);for(;r&&(0,d.Ze)(r)&&R(r);)r=E(r,t);return r&&(0,d.Py)(r)&&R(r)&&!(0,d.hT)(r)?n:r||(0,d.gQ)(e)||n}let M=async function(e){let t=this.getOffsetParent||C,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=(0,d.Re)(t),i=(0,d.tF)(t),l="fixed"===n,a=g(e,!0,l,t),u={scrollLeft:0,scrollTop:0},c=(0,r.ze)(0);if(o||!o&&!l){if(("body"!==(0,d.wk)(t)||(0,d.ao)(i))&&(u=(0,d.Lw)(t)),o){let e=g(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=w(i))}l&&!o&&i&&(c.x=w(i));let s=!i||o||l?(0,r.ze)(0):y(i,u);return{x:a.left+u.scrollLeft-c.x-s.x,y:a.top+u.scrollTop-c.y-s.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},k={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,l="fixed"===i,a=(0,d.tF)(o),u=!!t&&(0,d.tR)(t.floating);if(o===a||u&&l)return n;let c={scrollLeft:0,scrollTop:0},s=(0,r.ze)(1),f=(0,r.ze)(0),p=(0,d.Re)(o);if((p||!p&&!l)&&(("body"!==(0,d.wk)(o)||(0,d.ao)(a))&&(c=(0,d.Lw)(o)),(0,d.Re)(o))){let e=g(o);s=v(o),f.x=e.x+o.clientLeft,f.y=e.y+o.clientTop}let m=!a||p||l?(0,r.ze)(0):y(a,c);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+f.x+m.x,y:n.y*s.y-c.scrollTop*s.y+f.y+m.y}},getDocumentElement:d.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?(0,d.tR)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,d.Kx)(e,[],!1).filter(e=>(0,d.kK)(e)&&"body"!==(0,d.wk)(e)),o=null,i="fixed"===(0,d.Dx)(e).position,l=i?(0,d.Ow)(e):e;for(;(0,d.kK)(l)&&!(0,d.Py)(l);){let t=(0,d.Dx)(l),n=(0,d.hT)(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&x.has(o.position)||(0,d.ao)(l)&&!n&&function e(t,n){let r=(0,d.Ow)(t);return!(r===n||!(0,d.kK)(r)||(0,d.Py)(r))&&("fixed"===(0,d.Dx)(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=(0,d.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=l[0],u=l.reduce((e,n)=>{let o=b(t,n,i);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},b(t,a,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:C,getElementRects:M,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=f(e);return{width:t,height:n}},getScale:v,isElement:d.kK,isRTL:function(e){return"rtl"===(0,d.Dx)(e).direction}};function D(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function P(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,f=p(e),v=l||a?[...f?(0,d.Kx)(f):[],...(0,d.Kx)(t)]:[];
1v.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let m=f&&c?function(e,t){let n,o=null,i=(0,d.tF)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function a(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),l();let s=e.getBoundingClientRect(),{left:d,top:f,width:p,height:v}=s;if(u||t(),!p||!v)return;let m=(0,r.GW)(f),h=(0,r.GW)(i.clientWidth-(d+p)),g={rootMargin:-m+"px "+-h+"px "+-(0,r.GW)(i.clientHeight-(f+v))+"px "+-(0,r.GW)(d)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,c))||1},w=!0;function y(t){let r=t[0].intersectionRatio;if(r!==c){if(!w)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||D(s,e.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,g)}o.observe(e)}(!0),l}(f,n):null,h=-1,w=null;u&&(w=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&w&&(w.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=w)||e.observe(t)})),n()}),f&&!s&&w.observe(f),w.observe(t));let y=s?g(e):null;return s&&function t(){let r=g(e);y&&!D(y,r)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;v.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=w)||e.disconnect(),w=null,s&&cancelAnimationFrame(i)}}let S=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await s(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},T=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=(0,r.ku)(e,t),d={x:n,y:o},f=await l(t,s),p=(0,r.Qq)((0,r.k3)(i)),v=(0,r.Rn)(p),m=d[v],h=d[p];if(a){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=m+f[e],o=m-f[t];m=(0,r.uZ)(n,m,o)}
1if(u){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=h+f[e],o=h-f[t];h=(0,r.uZ)(n,h,o)}let g=c.fn({...t,[v]:m,[p]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[v]:a,[p]:u}}}}}},A=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,a,u;let{placement:c,middlewareData:s,rects:d,initialPlacement:f,platform:p,elements:v}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...b}=(0,r.ku)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let R=(0,r.k3)(c),E=(0,r.Qq)(f),C=(0,r.k3)(f)===f,M=await (null==p.isRTL?void 0:p.isRTL(v.floating)),k=g||(C||!x?[(0,r.pw)(f)]:(0,r.gy)(f)),D="none"!==y;!g&&D&&k.push(...(0,r.KX)(f,x,y,M));let P=[f,...k],S=await l(t,b),T=[],A=(null==(o=s.flip)?void 0:o.overflows)||[];if(m&&T.push(S[R]),h){let e=(0,r.i8)(c,d,M);T.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:c,overflows:T}],!T.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=P[e];if(t&&(!("alignment"===h&&E!==(0,r.Qq)(t))||A.every(e=>(0,r.Qq)(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(a=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(w){case"bestFit":{let e=null==(u=A.filter(e=>{if(D){let t=(0,r.Qq)(e.placement);return t===E||"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:u[0];e&&(n=e);break}case"initialPlacement":n=f}if(c!==n)return{reset:{placement:n}}}return{}}}},N=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let i,a;let{placement:u,rects:c,platform:s,elements:d}=t,{apply:f=()=>{},...p}=(0,r.ku)(e,t),v=await l(t,p),m=(0,r.k3)(u),h=(0,r.hp)(u),g="y"===(0,r.Qq)(u),{width:w,height:y}=c.floating;"top"===m||"bottom"===m?(i=m,a=h===(await (null==s.isRTL?void 0:s.isRTL(d.floating))?"start":"end")?"left":"right"):(a=m,i="end"===h?"top":"bottom");let x=y-v.top-v.bottom,b=w-v.left-v.right,R=(0,r.VV)(y-v[i],x),E=(0,r.VV)(w-v[a],b),C=!t.middlewareData.shift,M=R,k=E;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(M=x),C&&!h){let e=(0,r.Fp)(v.left,0),t=(0,r.Fp)(v.right,0),n=(0,r.Fp)(v.top,0),o=(0,r.Fp)(v.bottom,0);g?k=w-2*(0!==e||0!==t?e+t:(0,r.Fp)(v.left,v.right)):M=y-2*(0!==n||0!==o?n+o:(0,r.Fp)(v.top,v.bottom))}await f({...t,availableWidth:k,availableHeight:M});let D=await s.getDimensions(d.floating);return w!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}},j=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:o="referenceHidden",...i}=(0,r.ku)(e,t);switch(o){case"referenceHidden":{let e=a(await l(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:u(e)}}}case"escaped":{let e=a(await l(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:u(e)}}}default:return{}}}}},L=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:l,platform:a,elements:u,middlewareData:c}=t,{element:s,padding:d=0}=(0,r.ku)(e,t)||{};if(null==s)return{};let f=(0,r.yd)(d),p={x:n,y:o},v=(0,r.Wh)(i),m=(0,r.I4)(v),h=await a.getDimensions(s),g="y"===v,w=g?"clientHeight":"clientWidth",y=l.reference[m]+l.reference[v]-p[v]-l.floating[m],x=p[v]-l.reference[v],b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s)),R=b?b[w]:0;R&&await (null==a.isElement?void 0:a.isElement(b))||(R=u.floating[w]||l.floating[m]);let E=R/2-h[m]/2-1,C=(0,r.VV)(f[g?"top":"left"],E),M=(0,r.VV)(f[g?"bottom":"right"],E),k=R-h[m]-M,D=R/2-h[m]/2+(y/2-x/2),P=(0,r.uZ)(C,D,k),S=!c.arrow&&null!=(0,r.hp)(i)&&D!==P&&l.reference[m]/2-(D<C?C:M)-h[m]/2<0,T=S?D<C?D-C:D-k:0;return{[v]:p[v]+T,data:{[v]:P,centerOffset:D-P-T,...S&&{alignmentOffset:T}},reset:S}}}),O=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:o,placement:i,rects:l,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:d=!0}=(0,r.ku)(e,t),f={x:n,y:o},p=(0,r.Qq)(i),v=(0,r.Rn)(p),m=f[v],h=f[p],g=(0,r.ku)(u,t),w="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){let e="y"===v?"height":"width",t=l.reference[v]-l.floating[e]+w.mainAxis,n=l.reference[v]+l.reference[e]-w.mainAxis;m<t?m=t:m>n&&(m=n)}if(d){var y,x;let e="y"===v?"width":"height",t=c.has((0,r.k3)(i)),n=l.reference[p]-l.floating[e]+(t&&(null==(y=a.offset)?void 0:y[p])||0)+(t?0:w.crossAxis),o=l.reference[p]+l.reference[e]+(t?0:(null==(x=a.offset)?void 0:x[p])||0)-(t?w.crossAxis:0);h<n?h=n:h>o&&(h=o)}return{[v]:m,[p]:h}}}},F=(e,t,n)=>{let r=new Map,o={platform:k,...n},l={...o.platform,_c:r};return i(e,t,{...o,platform:l})}},281968:function(e,t,n){n.d(t,{Cp:function(){return w},RR:function(){return h},YF:function(){return d},cv:function(){return p},dp:function(){return g},dr:function(){return m},uY:function(){return v},x7:function(){return y}});var r=n(150999),o=n(437839),i=n(742167),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function a(e,t){let n,r,o;
1if(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(!a(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)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=u(e);return Math.round(t*n)/n}function s(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:v}={},transform:m=!0,whileElementsMounted:h,open:g}=e,[w,y]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,b]=o.useState(d);a(x,d)||b(d);let[R,E]=o.useState(null),[C,M]=o.useState(null),k=o.useCallback(e=>{e!==T.current&&(T.current=e,E(e))},[]),D=o.useCallback(e=>{e!==A.current&&(A.current=e,M(e))},[]),P=p||R,S=v||C,T=o.useRef(null),A=o.useRef(null),N=o.useRef(w),j=null!=h,L=s(h),O=s(f),F=s(g),_=o.useCallback(()=>{if(!T.current||!A.current)return;let e={placement:t,strategy:n,middleware:x};O.current&&(e.platform=O.current),(0,r.oo)(T.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};I.current&&!a(N.current,t)&&(N.current=t,i.flushSync(()=>{y(t)}))})},[x,t,n,O,F]);l(()=>{!1===g&&N.current.isPositioned&&(N.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[g]);let I=o.useRef(!1);l(()=>(I.current=!0,()=>{I.current=!1}),[]),l(()=>{if(P&&(T.current=P),S&&(A.current=S),P&&S){if(L.current)return L.current(P,S,_);_()}},[P,S,_,L,j]);let W=o.useMemo(()=>({reference:T,floating:A,setReference:k,setFloating:D}),[k,D]),V=o.useMemo(()=>({reference:P,floating:S}),[P,S]),K=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!V.floating)return e;let t=c(V.floating,w.x),r=c(V.floating,w.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...u(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,V.floating,w.x,w.y]);return o.useMemo(()=>({...w,update:_,refs:W,elements:V,floatingStyles:K}),[w,_,W,V,K])}let f=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),v=(e,t)=>
1({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.dr)(e),options:[e,t]}),h=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),g=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),w=(e,t)=>({...(0,r.Cp)(e),options:[e,t]}),y=(e,t)=>({...f(e),options:[e,t]})},868138:function(e,t,n){n.d(t,{F:function(){return i},e:function(){return l}});var r=n(437839);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function l(...e){return r.useCallback(i(...e),e)}},134274:function(e,t,n){let r;n.d(t,{oC:function(){return nv},VY:function(){return ns},ZA:function(){return nd},ck:function(){return np},wU:function(){return ng},__:function(){return nf},Uv:function(){return nc},Ee:function(){return nm},Rk:function(){return nh},fC:function(){return na},Z0:function(){return nw},Tr:function(){return ny},tu:function(){return nb},fF:function(){return nx},xz:function(){return nu}});var o,i=n(437839),l=n.t(i,2);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var u=n(868138),c=n(282730);function s(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||o,s=i.useMemo(()=>a,Object.values(a));return(0,c.jsx)(u.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||o,c=i.useContext(u);if(c)return c;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var d=globalThis?.document?i.useLayoutEffect:()=>{},f=l[" useInsertionEffect ".trim().toString()]||d;function p({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return f(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}Symbol("RADIX:SYNC_STATE");var v=n(721671),m=n(868910);function h(e){let t=e+"CollectionProvider",[n,r]=s(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,c.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let d=e+"CollectionSlot",f=(0,m.Z8)(d),p=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(d,n),i=(0,u.e)(t,o.collectionRef);return(0,c.jsx)(f,{ref:i,children:r})});p.displayName=d;let v=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,m.Z8)(v),w=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),s=(0,u.e)(t,a),d=l(v,n);return i.useEffect(()=>(d.itemMap.set(a,{ref:a,...o}),()=>void d.itemMap.delete(a))),(0,c.jsx)(g,{[h]:"",ref:s,children:r})});return w.displayName=v,[{Provider:a,Slot:p,ItemSlot:w},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var g=i.createContext(void 0);function w(e){let t=i.useContext(g);return e||t||"ltr"}function y(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var x="dismissableLayer.update",b=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R=i.forwardRef((e,t)=>
1{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,...h}=e,g=i.useContext(b),[w,R]=i.useState(null),M=null!==(r=null==w?void 0:w.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,k]=i.useState({}),D=(0,u.e)(t,e=>R(e)),P=Array.from(g.layers),[S]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),T=P.indexOf(S),A=w?P.indexOf(w):-1,N=g.layersWithOutsidePointerEventsDisabled.size>0,j=A>=T,L=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=y(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){C("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!j||n||(null==d||d(e),null==p||p(e),e.defaultPrevented||null==m||m())},M),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=y(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&C("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(null==f||f(e),null==p||p(e),e.defaultPrevented||null==m||m())},M);return!function(e,t=globalThis?.document){let n=y(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{A!==g.layers.size-1||(null==s||s(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))},M),i.useEffect(()=>{if(w)return l&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(o=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(w)),g.layers.add(w),E(),()=>{l&&1===g.layersWithOutsidePointerEventsDisabled.size&&(M.body.style.pointerEvents=o)}},[w,M,l,g]),i.useEffect(()=>()=>{w&&(g.layers.delete(w),g.layersWithOutsidePointerEventsDisabled.delete(w),E())},[w,g]),i.useEffect(()=>{let e=()=>k({});return document.addEventListener(x,e),()=>document.removeEventListener(x,e)},[]),(0,c.jsx)(v.WV.div,{...h,ref:D,style:{pointerEvents:N?j?"auto":"none":void 0,...e.style},onFocusCapture:a(e.onFocusCapture,O.onFocusCapture),onBlurCapture:a(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,L.onPointerDownCapture)})});function E(){let e=new CustomEvent(x);document.dispatchEvent(e)}function C(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,v.jH)(i,l):i.dispatchEvent(l)}R.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(b),r=i.useRef(null),o=(0,u.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(v.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var M=0;function k(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var D="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},T=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[s,d]=i.useState(null),f=y(o),p=y(l),m=i.useRef(null),h=(0,u.e)(t,e=>d(e)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?m.current=t:j(m.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||j(m.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&j(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,g.paused]),i.useEffect(()=>{if(s){L.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(D,S);
1s.addEventListener(D,f),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}(A(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&j(s))}return()=>{s.removeEventListener(D,f),setTimeout(()=>{let t=new CustomEvent(P,S);s.addEventListener(P,p),s.dispatchEvent(t),t.defaultPrevented||j(null!=e?e:document.body,{select:!0}),s.removeEventListener(P,p),L.remove(g)},0)}}},[s,f,p,g]);let w=i.useCallback(e=>{if(!n&&!r||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=A(e);return[N(t,e),N(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&j(i,{select:!0})):(e.preventDefault(),n&&j(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,g.paused]);return(0,c.jsx)(v.WV.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});function A(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function N(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function j(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}T.displayName="FocusScope";var L=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=O(r,e)).unshift(e)},remove(e){var t;null===(t=(r=O(r,e))[0])||void 0===t||t.resume()}});function O(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var F=l[" useId ".trim().toString()]||(()=>void 0),_=0;function I(e){let[t,n]=i.useState(F());return d(()=>{e||n(e=>e??String(_++))},[e]),e||(t?`radix-${t}`:"")}var W=n(281968),V=n(150999),K=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,c.jsx)(v.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});K.displayName="Arrow";var B="Popper",[z,H]=s(B),[U,Y]=z(B),G=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,c.jsx)(U,{scope:t,anchor:r,onAnchorChange:o,children:n})};G.displayName=B;var X="PopperAnchor",Z=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=Y(X,n),a=i.useRef(null),s=(0,u.e)(t,a),d=i.useRef(null);return i.useEffect(()=>{let e=d.current;d.current=(null==r?void 0:r.current)||a.current,e!==d.current&&l.onAnchorChange(d.current)}),r?null:(0,c.jsx)(v.WV.div,{...o,ref:s})});Z.displayName=X;var $="PopperContent",[q,J]=z($),Q=i.forwardRef((e,t)=>{var n,r,o,l,a,s,f,p;let{__scopePopper:m,side:h="bottom",sideOffset:g=0,align:w="center",alignOffset:x=0,arrowPadding:b=0,avoidCollisions:R=!0,collisionBoundary:E=[],collisionPadding:C=0,sticky:M="partial",hideWhenDetached:k=!1,updatePositionStrategy:D="optimized",onPlaced:P,...S}=e,T=Y($,m),[A,N]=i.useState(null),j=(0,u.e)(t,e=>N(e)),[L,O]=i.useState(null),F=function(e){let[t,n]=i.useState(void 0);return d(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(L),_=null!==(f=null==F?void 0:F.width)&&void 0!==f?f:0,I=null!==(p=null==F?void 0:F.height)&&void 0!==p?p:0,K="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},B=Array.isArray(E)?E:[E],z=B.length>0,H={padding:K,boundary:B.filter(er),altBoundary:z},{refs:U,floatingStyles:G,placement:X,isPositioned:Z,middlewareData:J}=(0,W.YF)({strategy:"fixed",placement:h+("center"!==w?"-"+w:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,V.Me)(...t,{animationFrame:"always"===D})},elements:{reference:T.anchor},middleware:[(0,W.cv)({mainAxis:g+I,alignmentAxis:x}),R&&(0,W.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(0,W.dr)():void 0,...H}),R&&(0,W.RR)({...H}),(0,W.dp)({...H,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),L&&(0,W.x7)({element:L,padding:b}),eo({arrowWidth:_,arrowHeight:I}),k&&(0,W.Cp)({strategy:"referenceHidden",...H})]}),[Q,ee]=ei(X),et=y(P);d(()=>{Z&&(null==et||et())},[Z,et]);let en=null===(n=J.arrow)||void 0===n?void 0:n.x,el=null===(r=J.arrow)||void 0===r?void 0:r.y,ea=(null===(o=J.arrow)||void 0===o?void 0:o.centerOffset)!==0,[eu,ec]=i.useState();return d(()=>{A&&ec(window.getComputedStyle(A).zIndex)},[A]),(0,c.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:Z?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(l=J.transformOrigin)||void 0===l?void 0:l.x,null===(a=J.transformOrigin)||void 0===a?void 0:a.y].join(" "),...(null===(s=J.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(q,{scope:m,placedSide:Q,onArrowChange:O,arrowX:en,arrowY:el,shouldHideArrow:ea,children:(0,c.jsx)(v.WV.div,{"data-side":Q,"data-align":ee,...S,ref:j,style:{...S.style,animation:Z?void 0:"none"}})})})});Q.displayName=$;var ee="PopperArrow",et={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},en=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=J(ee,n),i=et[o.placedSide];return(0,c.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(K,{...r,ref:t,style:{...r.style,display:"block"}})})});function er(e){return null!==e}en.displayName=ee;var eo=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=ei(a),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,w="",y="";return"bottom"===p?(w=s?m:"".concat(h,"px"),y="".concat(-f,"px")):"top"===p?(w=s?m:"".concat(h,"px"),y="".concat(u.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=s?m:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+f,"px"),y=s?m:"".concat(g,"px")),{data:{x:w,y}}}});function ei(e){let[t,n="center"]=e.split("-");return[t,n]}var el=n(742167),ea=i.forwardRef((e,t)=>{var n,r;let{container:o,...l}=e,[a,u]=i.useState(!1);d(()=>u(!0),[]);let s=o||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?el.createPortal((0,c.jsx)(v.WV.div,{...l,ref:t}),s):null});ea.displayName="Portal";var eu=e=>{var t,n;let r,o;let{present:l,children:a}=e,c=function(e){var t,n;let[r,o]=i.useState(),l=i.useRef(null),a=i.useRef(e),u=i.useRef("none"),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=ec(l.current);u.current="mounted"===c?e:"none"},[c]),d(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=ec(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),a.current=e}},[e,s]),d(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=ec(l.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(s("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=ec(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(l),s="function"==typeof a?a({present:c.isPresent}):i.Children.only(a),f=(0,u.e)(c.ref,(r=null===(t=Object.getOwnPropertyDescriptor(s.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?s.ref:(r=null===(n=Object.getOwnPropertyDescriptor(s,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?s.props.ref:s.props.ref||s.ref);return"function"==typeof a||c.isPresent?i.cloneElement(s,{ref:f}):null};function ec(e){return(null==e?void 0:e.animationName)||"none"}eu.displayName="Presence";var es="rovingFocusGroup.onEntryFocus",ed={bubbles:!1,cancelable:!0},ef="RovingFocusGroup",[ep,ev,em]=h(ef),[eh,eg]=s(ef,[em]),[ew,ey]=eh(ef),ex=i.forwardRef((e,t)=>(0,c.jsx)(ep.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(ep.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(eb,{...e,ref:t})})}));ex.displayName=ef;var eb=i.forwardRef((e,t)=>
1{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:m,preventScrollOnEntryFocus:h=!1,...g}=e,x=i.useRef(null),b=(0,u.e)(t,x),R=w(l),[E,C]=p({prop:s,defaultProp:null!=d?d:null,onChange:f,caller:ef}),[M,k]=i.useState(!1),D=y(m),P=ev(n),S=i.useRef(!1),[T,A]=i.useState(0);return i.useEffect(()=>{let e=x.current;if(e)return e.addEventListener(es,D),()=>e.removeEventListener(es,D)},[D]),(0,c.jsx)(ew,{scope:n,orientation:r,dir:R,loop:o,currentTabStopId:E,onItemFocus:i.useCallback(e=>C(e),[C]),onItemShiftTab:i.useCallback(()=>k(!0),[]),onFocusableItemAdd:i.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>A(e=>e-1),[]),children:(0,c.jsx)(v.WV.div,{tabIndex:M||0===T?-1:0,"data-orientation":r,...g,ref:b,style:{outline:"none",...e.style},onMouseDown:a(e.onMouseDown,()=>{S.current=!0}),onFocus:a(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!M){let t=new CustomEvent(es,ed);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);eM([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),h)}}S.current=!1}),onBlur:a(e.onBlur,()=>k(!1))})})}),eR="RovingFocusGroupItem",eE=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:l,children:u,...s}=e,d=I(),f=l||d,p=ey(eR,n),m=p.currentTabStopId===f,h=ev(n),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:y}=p;return i.useEffect(()=>{if(r)return g(),()=>w()},[r,g,w]),(0,c.jsx)(ep.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:(0,c.jsx)(v.WV.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:a(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:a(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:a(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return eC[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=p.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>eM(o))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=y}):u})})});eE.displayName=eR;var eC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eM(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var ek=n(688127),eD=n(321737),eP=n(709465),eS=n(196594),eT=(0,n(120532)._)(),eA=function(){},eN=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:eA,onWheelCapture:eA,onTouchMoveCapture:eA}),o=r[0],l=r[1],a=e.forwardProps,u=e.children,c=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,w=e.as,y=e.gapMode,x=(0,eD.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,eS.q)([n,t]),R=(0,eD.__assign)((0,eD.__assign)({},x),o);return i.createElement(i.Fragment,null,d&&i.createElement(p,{sideCar:eT,removeScrollBar:s,shards:f,noRelative:v,noIsolation:m,inert:h,setCallbacks:l,allowPinchZoom:!!g,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(u),(0,eD.__assign)((0,eD.__assign)({},R),{ref:b})):i.createElement(void 0===w?"div":w,(0,eD.__assign)({},R,{className:c,ref:b}),u))});eN.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eN.classNames={fullWidth:eP.zi,zeroRight:eP.pF};var ej=n(514434),eL=n(452350),eO=n(617477),eF=!1;if("undefined"!=typeof window)try{var e_=Object.defineProperty({},"passive",{get:function(){return eF=!0,!0}});window.addEventListener("test",e_,e_),window.removeEventListener("test",e_,e_)}catch(e){eF=!1}var eI=!!eF&&{passive:!1},eW=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},eV=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eK(e,r)){var o=eB(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eK=function(e,t){return"v"===e?eW(t,"overflowY"):eW(t,"overflowX")},eB=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ez=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,d=a>0,f=0,p=0;
1do{if(!u)break;var v=eB(e,u),m=v[0],h=v[1]-v[2]-l*m;(m||h)&&eK(e,u)&&(f+=h,p+=m);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},eH=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eU=function(e){return[e.deltaX,e.deltaY]},eY=function(e){return e&&"current"in e?e.current:e},eG=0,eX=[],eZ=(0,ej.L)(eT,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eG++)[0],l=i.useState(eO.Ws)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,eD.__spreadArray)([e.lockRef.current],(e.shards||[]).map(eY),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eH(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=eV(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eV(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return ez(p,t,e,"h"===p?u:c,!0)},[]),c=i.useCallback(function(e){if(eX.length&&eX[eX.length-1]===l){var n="deltaY"in e?eU(e):eH(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eY).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=eH(e),r.current=void 0},[]),f=i.useCallback(function(t){s(t.type,eU(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){s(t.type,eH(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return eX.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,eI),document.addEventListener("touchmove",c,eI),document.addEventListener("touchstart",d,eI),function(){eX=eX.filter(function(e){return e!==l}),document.removeEventListener("wheel",c,eI),document.removeEventListener("touchmove",c,eI),document.removeEventListener("touchstart",d,eI)}},[]);var v=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?i.createElement(eL.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}),e$=i.forwardRef(function(e,t){return i.createElement(eN,(0,eD.__assign)({},e,{ref:t,sideCar:eZ}))});e$.classNames=eN.classNames;var eq=["Enter"," "],eJ=["ArrowUp","PageDown","End"],eQ=["ArrowDown","PageUp","Home",...eJ],e0={ltr:[...eq,"ArrowRight"],rtl:[...eq,"ArrowLeft"]},e1={ltr:["ArrowLeft"],rtl:["ArrowRight"]},e2="Menu",[e8,e3,e7]=h(e2),[e5,e9]=s(e2,[e7,H,eg]),e4=H(),e6=eg(),[te,tt]=e5(e2),[tn,tr]=e5(e2),to=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:l,modal:a=!0}=e,u=e4(t),[s,d]=i.useState(null),f=i.useRef(!1),p=y(l),v=w(o);return i.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.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,c.jsx)(G,{...u,children:(0,c.jsx)(te,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:d,children:(0,c.jsx)(tn,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:a,children:r})})})};to.displayName=e2;var ti=i.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e,o=e4(n);return(0,c.jsx)(Z,{...o,...r,ref:t})});ti.displayName="MenuAnchor";var tl="MenuPortal",[ta,tu]=e5(tl,{forceMount:void 0}),tc=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tt(tl,t);return(0,c.jsx)(ta,{scope:t,forceMount:n,children:(0,c.jsx)(eu,{present:n||i.open,children:(0,c.jsx)(ea,{asChild:!0,container:o,children:r})})})};tc.displayName=tl;var ts="MenuContent",[td,tf]=e5(ts),tp=i.forwardRef((e,t)=>{let n=tu(ts,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tt(ts,e.__scopeMenu),l=tr(ts,e.__scopeMenu);return(0,c.jsx)(e8.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(eu,{present:r||i.open,children:(0,c.jsx)(e8.Slot,{scope:e.__scopeMenu,children:l.modal?(0,c.jsx)(tv,{...o,ref:t}):(0,c.jsx)(tm,{...o,ref:t})})})})}),tv=i.forwardRef((e,t)=>{let n=tt(ts,e.__scopeMenu),r=i.useRef(null),o=(0,u.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,ek.Ry)(e)},[]),(0,c.jsx)(tg,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:a(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tm=i.forwardRef((e,t)=>{let n=tt(ts,e.__scopeMenu);return(0,c.jsx)(tg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),th=(0,m.Z8)("MenuContent.ScrollLock"),tg=i.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:d,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:h,onDismiss:g,disableOutsideScroll:w,...y}=e,x=tt(ts,n),b=tr(ts,n),E=e4(n),C=e6(n),D=e3(n),[P,S]=i.useState(null),A=i.useRef(null),N=(0,u.e)(t,A,x.onContentChange),j=i.useRef(0),L=i.useRef(""),O=i.useRef(0),F=i.useRef(null),_=i.useRef("right"),I=i.useRef(0),W=w?e$:i.Fragment,V=e=>{var t,n;let r=L.current+e,o=D().filter(e=>!e.disabled),i=document.activeElement,l=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===a))||void 0===n?void 0:n.ref.current;!function e(t){L.current=t,window.clearTimeout(j.current),""!==t&&(j.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};i.useEffect(()=>()=>window.clearTimeout(j.current),[]),i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:k()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:k()),M++,()=>{1===M&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),M--}},[]);let K=i.useCallback(e=>{var t,n,r;return _.current===(null===(t=F.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=F.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,c=l.y,s=a.x,d=a.y;c>r!=d>r&&n<(s-u)*(r-c)/(d-c)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,c.jsx)(td,{scope:n,searchRef:L,onItemEnter:i.useCallback(e=>{K(e)&&e.preventDefault()},[K]),onItemLeave:i.useCallback(e=>{var t;K(e)||(null===(t=A.current)||void 0===t||t.focus(),S(null))},[K]),onTriggerLeave:i.useCallback(e=>{K(e)&&e.preventDefault()},[K]),pointerGraceTimerRef:O,onPointerGraceIntentChange:i.useCallback(e=>{F.current=e},[]),children:(0,c.jsx)(W,{...w?{as:th,allowPinchZoom:!0}:void 0,children:(0,c.jsx)(T,{asChild:!0,trapped:o,onMountAutoFocus:a(l,e=>{var t;e.preventDefault(),null===(t=A.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,c.jsx)(R,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:h,onDismiss:g,children:(0,c.jsx)(ex,{asChild:!0,...C,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:S,onEntryFocus:a(f,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,c.jsx)(Q,{role:"menu","aria-orientation":"vertical","data-state":tU(x.open),"data-radix-menu-content":"",dir:b.dir,...E,...y,ref:N,style:{outline:"none",...y.style},onKeyDown:a(y.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&V(e.key));let o=A.current;if(e.target!==o||!eQ.includes(e.key))return;e.preventDefault();let i=D().filter(e=>!e.disabled).map(e=>e.ref.current);eJ.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:a(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(j.current),L.current="")}),onPointerMove:a(e.onPointerMove,tX(e=>{let t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>I.current?"right":"left";_.current=t,I.current=e.clientX}}))})})})})})})});tp.displayName=ts;var tw=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(v.WV.div,{role:"group",...r,ref:t})});tw.displayName="MenuGroup";var ty=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(v.WV.div,{...r,ref:t})});ty.displayName="MenuLabel";var tx="MenuItem",tb="menu.itemSelect",tR=i.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...o}=e,l=i.useRef(null),s=tr(tx,e.__scopeMenu),d=tf(tx,e.__scopeMenu),f=(0,u.e)(t,l),p=i.useRef(!1);return(0,c.jsx)(tE,{...o,ref:f,disabled:n,onClick:a(e.onClick,()=>{let e=l.current;if(!n&&e){let t=new CustomEvent(tb,{bubbles:!0,cancelable:!0});e.addEventListener(tb,e=>null==r?void 0:r(e),{once:!0}),(0,v.jH)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:a(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:a(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&eq.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tR.displayName=tx;var tE=i.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:o,...l}=e,s=tf(tx,n),d=e6(n),f=i.useRef(null),p=(0,u.e)(t,f),[m,h]=i.useState(!1),[g,w]=i.useState("");return i.useEffect(()=>{let e=f.current;if(e){var t;w((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[l.children]),(0,c.jsx)(e8.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:g,children:(0,c.jsx)(eE,{asChild:!0,...d,focusable:!r,children:(0,c.jsx)(v.WV.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:p,onPointerMove:a(e.onPointerMove,tX(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:a(e.onPointerLeave,tX(e=>s.onItemLeave(e))),onFocus:a(e.onFocus,()=>h(!0)),onBlur:a(e.onBlur,()=>h(!1))})})})}),tC=i.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,c.jsx)(tN,{scope:e.__scopeMenu,checked:n,children:(0,c.jsx)(tR,{role:"menuitemcheckbox","aria-checked":tY(n)?"mixed":n,...o,ref:t,"data-state":tG(n),onSelect:a(o.onSelect,()=>null==r?void 0:r(!!tY(n)||!n),{checkForDefaultPrevented:!1})})})});tC.displayName="MenuCheckboxItem";var tM="MenuRadioGroup",[tk,tD]=e5(tM,{value:void 0,onValueChange:()=>{}}),tP=i.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=y(r);return(0,c.jsx)(tk,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,c.jsx)(tw,{...o,ref:t})})});tP.displayName=tM;var tS="MenuRadioItem",tT=i.forwardRef((e,t)=>{let{value:n,...r}=e,o=tD(tS,e.__scopeMenu),i=n===o.value;return(0,c.jsx)(tN,{scope:e.__scopeMenu,checked:i,children:(0,c.jsx)(tR,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":tG(i),onSelect:a(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});tT.displayName=tS;var tA="MenuItemIndicator",[tN,tj]=e5(tA,{checked:!1}),tL=i.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=tj(tA,n);return(0,c.jsx)(eu,{present:r||tY(i.checked)||!0===i.checked,children:(0,c.jsx)(v.WV.span,{...o,ref:t,"data-state":tG(i.checked)})})});tL.displayName=tA;var tO=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(v.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tO.displayName="MenuSeparator";var tF=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=e4(n);return(0,c.jsx)(en,{...o,...r,ref:t})});tF.displayName="MenuArrow";var t_="MenuSub",[tI,tW]=e5(t_),tV=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,l=tt(t_,t),a=e4(t),[u,s]=i.useState(null),[d,f]=i.useState(null),p=y(o);return i.useEffect(()=>(!1===l.open&&p(!1),()=>p(!1)),[l.open,p]),(0,c.jsx)(G,{...a,children:(0,c.jsx)(te,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:(0,c.jsx)(tI,{scope:t,contentId:I(),triggerId:I(),trigger:u,onTriggerChange:s,children:n})})})};tV.displayName=t_;var tK="MenuSubTrigger",tB=i.forwardRef((e,t)=>
1{let n=tt(tK,e.__scopeMenu),r=tr(tK,e.__scopeMenu),o=tW(tK,e.__scopeMenu),l=tf(tK,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=l,p={__scopeMenu:e.__scopeMenu},v=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>v,[v]),i.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,c.jsx)(ti,{asChild:!0,...p,children:(0,c.jsx)(tE,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":tU(n.open),...e,ref:(0,u.F)(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:a(e.onPointerMove,tX(t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(l.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),v()},100))})),onPointerLeave:a(e.onPointerLeave,tX(e=>{var t,r;v();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],u=o[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:a(e.onKeyDown,t=>{let o=""!==l.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&e0[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})})});tB.displayName=tK;var tz="MenuSubContent",tH=i.forwardRef((e,t)=>{let n=tu(ts,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,l=tt(ts,e.__scopeMenu),s=tr(ts,e.__scopeMenu),d=tW(tz,e.__scopeMenu),f=i.useRef(null),p=(0,u.e)(t,f);return(0,c.jsx)(e8.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(eu,{present:r||l.open,children:(0,c.jsx)(e8.Slot,{scope:e.__scopeMenu,children:(0,c.jsx)(tg,{id:d.contentId,"aria-labelledby":d.triggerId,...o,ref:p,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:a(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:a(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:a(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=e1[s.dir].includes(e.key);if(t&&n){var r;l.onOpenChange(!1),null===(r=d.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function tU(e){return e?"open":"closed"}function tY(e){return"indeterminate"===e}function tG(e){return tY(e)?"indeterminate":e?"checked":"unchecked"}function tX(e){return t=>"mouse"===t.pointerType?e(t):void 0}tH.displayName=tz;var tZ="DropdownMenu",[t$,tq]=s(tZ,[e9]),tJ=e9(),[tQ,t0]=t$(tZ),t1=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:l,onOpenChange:a,modal:u=!0}=e,s=tJ(t),d=i.useRef(null),[f,v]=p({prop:o,defaultProp:null!=l&&l,onChange:a,caller:tZ});return(0,c.jsx)(tQ,{scope:t,triggerId:I(),triggerRef:d,contentId:I(),open:f,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(e=>!e),[v]),modal:u,children:(0,c.jsx)(to,{...s,open:f,onOpenChange:v,dir:r,modal:u,children:n})})};t1.displayName=tZ;var t2="DropdownMenuTrigger",t8=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=t0(t2,n),l=tJ(n);return(0,c.jsx)(ti,{asChild:!0,...l,children:(0,c.jsx)(v.WV.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,u.F)(t,i.triggerRef),onPointerDown:a(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:a(e.onKeyDown,e=>
1{!r&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});t8.displayName=t2;var t3=e=>{let{__scopeDropdownMenu:t,...n}=e,r=tJ(t);return(0,c.jsx)(tc,{...r,...n})};t3.displayName="DropdownMenuPortal";var t7="DropdownMenuContent",t5=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t0(t7,n),l=tJ(n),u=i.useRef(!1);return(0,c.jsx)(tp,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...r,ref:t,onCloseAutoFocus:a(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:a(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(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)"}})});t5.displayName=t7;var t9=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tw,{...o,...r,ref:t})});t9.displayName="DropdownMenuGroup";var t4=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(ty,{...o,...r,ref:t})});t4.displayName="DropdownMenuLabel";var t6=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tR,{...o,...r,ref:t})});t6.displayName="DropdownMenuItem";var ne=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tC,{...o,...r,ref:t})});ne.displayName="DropdownMenuCheckboxItem";var nt=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tP,{...o,...r,ref:t})});nt.displayName="DropdownMenuRadioGroup";var nn=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tT,{...o,...r,ref:t})});nn.displayName="DropdownMenuRadioItem";var nr=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tL,{...o,...r,ref:t})});nr.displayName="DropdownMenuItemIndicator";var no=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tO,{...o,...r,ref:t})});no.displayName="DropdownMenuSeparator",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tF,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var ni=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tB,{...o,...r,ref:t})});ni.displayName="DropdownMenuSubTrigger";var nl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tJ(n);return(0,c.jsx)(tH,{...o,...r,ref:t,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)"}})});nl.displayName="DropdownMenuSubContent";var na=t1,nu=t8,nc=t3,ns=t5,nd=t9,nf=t4,np=t6,nv=ne,nm=nt,nh=nn,ng=nr,nw=no,ny=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=tJ(t),[a,u]=p({prop:r,defaultProp:null!=i&&i,onChange:o,caller:"DropdownMenuSub"});return(0,c.jsx)(tV,{...l,open:a,onOpenChange:u,children:n})},nx=ni,nb=nl},721671:function(e,t,n){n.d(t,{WV:function(){return a},jH:function(){return u}});var r=n(437839),o=n(742167),i=n(868910),l=n(282730),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.Z8)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>
1e.dispatchEvent(t))}},868910:function(e,t,n){n.d(t,{Z8:function(){return l},g7:function(){return a}});var r=n(437839),o=n(868138),i=n(282730);function l(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,o.F)(t,a):a),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...l}=e,a=r.Children.toArray(o),u=a.find(c);if(u){let e=u.props.children,o=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...l,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var a=l("Slot"),u=Symbol("radix.slottable");function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}},407250:function(e,t,n){n.d(t,{T_:function(){return i}});var r=n(130111);function o(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let i=o(0,r.T_);o(0,r.Gb)}}]);
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.