1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,394846,e=>{"use strict";var t=e.i(958922),n=e.i(394087);function r(e){let[r,i]=t.useState(void 0);return(0,n.useLayoutEffect)(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,r;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,r=t.blockSize}else n=e.offsetWidth,r=e.offsetHeight;i({width:n,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),r}(0,Object.defineProperty)(r,"name",{value:"useSize",configurable:!0}),e.s(["useSize",0,r])},722113,e=>{"use strict";var t=e.i(958922);let n=["top","right","bottom","left"],r=Math.min,i=Math.max,o=Math.round,l=Math.floor,a=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function u(e,t){return"function"==typeof e?e(t):e}function c(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(c(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>s[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>f[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function v(e,t,n){let r,{reference:i,floating:o}=e,l=m(t),a=p(m(t)),f=h(a),s=c(t),u="y"===l,g=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,w=i[f]/2-o[f]/2;switch(s){case"top":r={x:g,y:i.y-o.height};break;case"bottom":r={x:g,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-o.width,y:y};break;default:r={x:i.x,y:i.y}}switch(d(t)){case"start":r[a]-=w*(n&&u?-1:1);break;case"end":r[a]+=w*(n&&u?-1:1)}return r}let b=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=v(s,r,f),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:y,data:w,reset:x}=await m({x:u,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});u=null!=g?g:u,c=null!=y?y:c,p={...p,[o]:{...p[o],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:c}=v(s,d,f)),n=-1)}return{x:u,y:c,placement:d,strategy:i,middlewareData:p}};async function A(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:f}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=u(t,e),m=w(h),g=a[p?"floating"===d?"reference":"floating":d],y=x(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:f})),v="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),A=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},R=x(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:f}):v);return{top:(y.top-R.top+m.top)/A.y,bottom:(R.bottom-y.bottom+m.bottom)/A.y,left:(y.left-R.left+m.left)/A.x,right:(R.right-y.right+m.right)/A.x}}function R(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return n.some(t=>e[t]>=0)}async function S(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=c(n),a=d(n),f="y"===m(n),s=["left","top"].includes(l)?-1:1,p=o&&f?-1:1,h=u(t,e),{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}
1:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof w&&(y="end"===a?-1*w:w),f?{x:y*p,y:g*s}:{x:g*s,y:y*p}}function L(){return"u">typeof window}function T(e){return E(e)?(e.nodeName||"").toLowerCase():"#document"}function C(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){var t;return null==(t=(E(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function E(e){return!!L()&&(e instanceof Node||e instanceof C(e).Node)}function H(e){return!!L()&&(e instanceof Element||e instanceof C(e).Element)}function k(e){return!!L()&&(e instanceof HTMLElement||e instanceof C(e).HTMLElement)}function D(e){return!(!L()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof C(e).ShadowRoot)}function j(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function F(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function z(e){let t=M(),n=H(e)?$(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function M(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function W(e){return["html","body","#document"].includes(T(e))}function $(e){return C(e).getComputedStyle(e)}function B(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function V(e){if("html"===T(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||O(e);return D(t)?t.host:t}function N(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=V(t);return W(n)?t.ownerDocument?t.ownerDocument.body:t.body:k(n)&&j(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=C(i);if(o){let e=I(l);return t.concat(l,l.visualViewport||[],j(i)?i:[],e&&n?N(e):[])}return t.concat(i,N(i,[],n))}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y(e){let t=$(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=k(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:r,f
1=o(n)!==l||o(r)!==a;return f&&(n=l,r=a),{width:n,height:r,$:f}}function X(e){return H(e)?e:e.contextElement}function _(e){let t=X(e);if(!k(t))return a(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=Y(t),f=(l?o(n.width):n.width)/r,s=(l?o(n.height):n.height)/i;return f&&Number.isFinite(f)||(f=1),s&&Number.isFinite(s)||(s=1),{x:f,y:s}}let q=a(0);function K(e){let t=C(e);return M()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}function U(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=X(e),f=a(1);t&&(r?H(r)&&(f=_(r)):f=_(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===C(l))&&i)?K(l):a(0),u=(o.left+s.x)/f.x,c=(o.top+s.y)/f.y,d=o.width/f.x,p=o.height/f.y;if(l){let e=C(l),t=r&&H(r)?C(r):r,n=e,i=I(n);for(;i&&r&&t!==n;){let e=_(i),t=i.getBoundingClientRect(),r=$(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,p*=e.y,u+=o,c+=l,i=I(n=C(i))}}return x({width:d,height:p,x:u,y:c})}function G(e,t){let n=B(e).scrollLeft;return t?t.left+n:U(O(e)).left+n}function J(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:G(e,r)),y:r.top+t.scrollTop}}function Q(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=C(e),r=O(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let e=M();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:l,x:a,y:f}}(e,n);else if("document"===t){let t,n,l,a,f,s,u;r=O(e),t=O(r),n=B(r),l=r.ownerDocument.body,a=i(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),f=i(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),s=-n.scrollLeft+G(r),u=-n.scrollTop,"rtl"===$(l).direction&&(s+=i(t.clientWidth,l.clientWidth)-a),o={width:a,height:f,x:s,y:u}}else if(H(t)){let e,r,i,l,f,s;r=(e=U(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=k(t)?_(t):a(1),f=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:f,height:s,x:i*l.x,y:r*l.y}}else{let n=K(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(o)}function Z(e){return"static"===$(e).position}function ee(e,t){if(!k(e)||"fixed"===$(e).position)return null;if(t)return t(e);let n=e.offsetParent;return O(e)===n&&(n=n.ownerDocument.body),n}function et(e,t){let n=C(e);if(F(e))return n;if(!k(e)){let t=V(e);for(;t&&!W(t);){if(H(t)&&!Z(t))return t;t=V(t)}return n}let r=ee(e,t);for(;r&&["table","td","th"].includes(T(r))&&Z(r);)r=ee(r,t);return r&&W(r)&&Z(r)&&!z(r)?n:r||function(e){let t=V(e);for(;k(t)&&!W(t);){if(z(t))return t;if(F(t))break;t=V(t)}return null}(e)||n}let en=async function(e){let t=this.getOffsetParent||et,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=k(t),i=O(t),o="fixed"===n,l=U(e,!0,o,t),f={scrollLeft:0,scrollTop:0},s=a(0);if(r||!r&&!o)if(("body"!==T(t)||j(i))&&(f=B(t)),r){let e=U(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=G(i));o&&!r&&i&&(s.x=G(i));let u=!i||r||o?a(0):J(i,f);return{x:l.left+f.scrollLeft-s.x-u.x,y:l.top+f.scrollTop-s.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},er={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=O(r),f=!!t&&F(t.floating);if(r===l||f&&o)return n;let s={scrollLeft:0,scrollTop:0},u=a(1),c=a(0),d=k(r);if((d||!d&&!o)&&(("body"!==T(r)||j(l))&&(s=B(r)),k(r))){let e=U(r);u=_(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let p=!l||d||o?a(0):J(l,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-s.scrollTop*u.y+c.y+p.y}},getDocumentElement:O,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,a=[..."clippingAncestors"===n?F(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=N(e,[],!1).filter(e=>H(e)&&"body"!==T(e)),i=null,o="fixed"===$(e).position,l=o?V(e):e;for(;H(l)&&!W(l);){let t=$(l),n=z(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||j(l)&&!n&&function e(t,n){let r=V(t);return!(r===n||!H(r)||W(r))&&("fixed"===$(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=V(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],f=a[0],s=a.reduce((e,n)=>{let o=Q(t,n,l);return e.top=i(o.top,e.top),e.right=r(o.right,e.right),e.bottom=r(o.bottom,e.bottom),e.left=i(o.left,e.left),e},Q(t,f,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:et,getElementRects:en,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:_,isElement:H,isRTL:function(e){return"rtl"===$(e).direction}};function ei(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eo=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:l,rects:a,platform:f,elements:s,middlewareData:c}=t,{element:g,padding:y=0}=u(e,t)||{};if(null==g)return{};let x=w(y),v={x:n,y:o},b=p(m(l)),A=h(b),R=await f.getDimensions(g),P="y"===b,S=P?"clientHeight":"clientWidth",L=a.reference[A]+a.reference[b]-v[b]-a.floating[A],T=v[b]-a.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(g)),O
1=C?C[S]:0;O&&await (null==f.isElement?void 0:f.isElement(C))||(O=s.floating[S]||a.floating[A]);let E=O/2-R[A]/2-1,H=r(x[P?"top":"left"],E),k=r(x[P?"bottom":"right"],E),D=O-R[A]-k,j=O/2-R[A]/2+(L/2-T/2),F=i(H,r(j,D)),z=!c.arrow&&null!=d(l)&&j!==F&&a.reference[A]/2-(j<H?H:k)-R[A]/2<0,M=z?j<H?j-H:j-D:0;return{[b]:v[b]+M,data:{[b]:F,centerOffset:j-F-M,...z&&{alignmentOffset:M}},reset:z}}});var el=e.i(647999),ea="u">typeof document?t.useLayoutEffect:function(){};function ef(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ef(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ef(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function es(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eu(e,t){let n=es(e);return Math.round(t*n)/n}function ec(e){let n=t.useRef(e);return ea(()=>{n.current=e}),n}var ed=e.i(662566),ep=e.i(657941),eh=Object.defineProperty,em=t.forwardRef(eh(function(e,t){let{children:n,width:r=10,height:i=5,...o}=e;return(0,ep.jsx)(ed.Primitive.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ep.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),eg=e.i(396385),ey=e.i(307931),ew=e.i(658537),ex=e.i(394087),ev=e.i(394846),eb=Object.defineProperty,eA=(e,t)=>eb(e,"name",{value:t,configurable:!0}),eR="Popper",[eP,eS]=(0,ey.createContextScope)(eR),[eL,eT]=eP(eR),eC=eA(e=>{let{__scopePopper:n,children:r}=e,[i,o]=t.useState(null),[l,a]=t.useState(void 0);return(0,ep.jsx)(eL,{scope:n,anchor:i,onAnchorChange:o,placementState:l,setPlacementState:a,children:r})},"Popper"),eO=t.forwardRef(eA(function(e,n){let{__scopePopper:r,virtualRef:i,...o}=e,l=eT("PopperAnchor",r),a=t.useRef(null),f=l.onAnchorChange,s=t.useCallback(e=>{a.current=e,e&&f(e)},[f]),u=(0,eg.useComposedRefs)(n,s),c=t.useRef(null);t.useEffect(()=>{if(!i)return;let e=c.current;c.current=i.current,e!==c.current&&f(c.current)});let d=l.placementState&&eW(l.placementState),p=d?.[0],h=d?.[1];return i?null:(0,ep.jsx)(ed.Primitive.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...o,ref:u})},"PopperAnchor")),eE="PopperContent",[eH,ek]=eP(eE),eD=t.forwardRef(eA(function(e,n){var o,a,f,s,w,x,v,L,T,C,E,H,k;let{__scopePopper:D,side:j="bottom",sideOffset:F=0,align:z="center",alignOffset:M=0,arrowPadding:W=0,avoidCollisions:$=!0,collisionBoundary:B=[],collisionPadding:V=0,sticky:I="partial",hideWhenDetached:Y=!1,updatePositionStrategy:_="optimized",onPlaced:q,...K}=e,G=eT(eE,D),[J,Q]=t.useState(null),Z=(0,eg.useComposedRefs)(n,Q),[ee,et]=t.useState(null),en=(0,ev.useSize)(ee),eh=en?.width??0,em=en?.height??0,ey="number"==typeof V?V:{top:0,right:0,bottom:0,left:0,...V},eb=Array.isArray(B)?B:[B],eR=eb.length>0,eP={padding:ey,boundary:eb.filter(ez),altBoundary:eR},{refs:eS,floatingStyles:eL,placement:eC,isPositioned:eO,middlewareData:ek}=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:s,open:u}=e,[c,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,h]=t.useState(i);ef(p,i)||h(i);let[m,g]=t.useState(null),[y,w]=t.useState(null),x=t.useCallback(e=>{e!==P.current&&(P.current=e,g(e))},[]),v=t.useCallback(e=>{e!==S.current&&(S.current=e,w(e))},[]),A=l||m,R=a||y,P=t.useRef(null),S=t.useRef(null),L=t.useRef(c),T=null!=s,C=ec(s),O=ec(o),E=ec(u),H=t.useCallback(()=>{var e,t;let i,o,l;if(!P.current||!S.current)return;let a={placement:n,strategy:r,middleware:p};O.current&&(a.platform=O.current),(e=P.current,t=S.current,i=new Map,l={...(o={platform:er,...a}).platform,_c:i},b(e,t,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==E.current};k.current&&!ef(L.current,t)&&(L.current=t,el.flushSync(()=>{d(t)}))})},[p,n,r,O,E]);ea(()=>{!1===u&&L.current.isPositioned&&(L.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let k=t.useRef(!1);ea(()=>(k.current=!0,()=>{k.current=!1}),[]),ea(()=>
1{if(A&&(P.current=A),R&&(S.current=R),A&&R){if(C.current)return C.current(A,R,H);H()}},[A,R,H,C,T]);let D=t.useMemo(()=>({reference:P,floating:S,setReference:x,setFloating:v}),[x,v]),j=t.useMemo(()=>({reference:A,floating:R}),[A,R]),F=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!j.floating)return e;let t=eu(j.floating,c.x),n=eu(j.floating,c.y);return f?{...e,transform:"translate("+t+"px, "+n+"px)",...es(j.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,f,j.floating,c.x,c.y]);return t.useMemo(()=>({...c,update:H,refs:D,elements:j,floatingStyles:F}),[c,H,D,j,F])}({strategy:"fixed",placement:j+("center"!==z?"-"+z:""),whileElementsMounted:eA((...e)=>(function(e,t,n,o){let a;void 0===o&&(o={});let{ancestorScroll:f=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=X(e),h=f||s?[...p?N(p):[],...N(t)]:[];h.forEach(e=>{f&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let m=p&&c?function(e,t){let n,o=null,a=O(e);function f(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function s(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),f();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;let y={rootMargin:-l(h)+"px "+-l(a.clientWidth-(p+m))+"px "+-l(a.clientHeight-(h+g))+"px "+-l(p)+"px",threshold:i(0,r(1,c))||1},w=!0;function x(t){let r=t[0].intersectionRatio;if(r!==c){if(!w)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||ei(d,e.getBoundingClientRect())||s(),w=!1}try{o=new IntersectionObserver(x,{...y,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(x,y)}o.observe(e)}(!0),f}(p,n):null,g=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let w=d?U(e):null;return d&&function t(){let r=U(e);w&&!ei(w,r)&&n(),w=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{f&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===_}),"whileElementsMounted"),elements:{reference:G.anchor},middleware:[{...{name:"offset",options:a=o={mainAxis:F+em,alignmentAxis:M},async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:l}=e,f=await S(e,a);return o===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:o}}}},options:[o,void 0]},$&&{...{name:"shift",options:w=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===I?{...(f=void 0,{options:f={},fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:a=!0,crossAxis:s=!0}=u(f,e),d={x:t,y:n},h=m(r),g=p(h),y=d[g],w=d[h],x=u(l,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(a){let e="y"===g?"height":"width",t=i.reference[g]-i.floating[e]+v.mainAxis,n=i.reference[g]+i.reference[e]-v.mainAxis;y<t?y=t:y>n&&(y=n)}if(s){var b,A;let e="y"===g?"width":"height",t=["top","left"].includes(c(r)),n=i.reference[h]-i.floating[e]+(t&&(null==(b=o.offset)?void 0:b[h])||0)+(t?0:v.crossAxis),l=i.reference[h]+i.reference[e]+(t?0:(null==(A=o.offset)?void 0:A[h])||0)-(t?v.crossAxis:0);w<n?w=n:w>l&&(w=l)}return{[g]:y,[h]:w}}}),options:[void 0,void 0]}:void 0,...eP},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=u(w,e),d={x:t,y:n},h=await A(e,s),g=m(c(o)),y=p(g),x=d[y],v=d[g];if(l){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+h[e],o=x-h[t];x=i(n,r(x,o))}if(a){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=v+h[e],o=v-h[t];v=i(n,r(v,o))}let b=f.fn({...e,[y]:x,[g]:v});return{...b,data:{x:b.x-t,y:b.y-n,enabled:{[y]:l,[g]:a}}}}},options:[s,void 0]},$&&{...{name:"flip",options:v=x={...eP},async fn(e){var t,n,r,i,o,l,a,f;let s,w,x,{placement:b,middlewareData:R,rects:P,initialPlacement:S,platform:L,elements:T}=e,{mainAxis:C=!0,crossAxis:O=!0,fallbackPlacements:E,fallbackStrategy:H="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:D=!0,...j}=u(v,e);if(null!=(t=R.arrow)&&t.alignmentOffset)return{};let F=c(b),z=m(S),M=c(S)===S,W=await (null==L.isRTL?void 0:L.isRTL(T.floating)),$=E||(M||!D?[y(S)]:(s=y(S),[g(S),s,g(s)])),B="none"!==k;!E&&B&&$.push(...(w=d(S),x=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(c(S),"start"===k,W),w&&(x=x.map(e=>e+"-"+w),D&&(x=x.concat(x.map(g)))),x));let V=[S,...$],N=await A(e,j),I=[],Y=(null==(n=R.flip)?void 0:n.overflows)||[];if(C&&I.push(N[F]),O){let e,t,n,r,i=(l=b,a=P,void 0===(f=W)&&(f=!1),e=d(l),n=h(t=p(m(l))),r="x"===t?e===(f?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=y(r)),[r,y(r)]);I.push(N[i[0]],N[i[1]])}if(Y=[...Y,{placement:b,overflows:I}],!I.every(e=>e<=0)){let e=((null==(r=R.flip)?void 0:r.index)||0)+1,t=V[e];if(t&&("alignment"!==O||z===m(t)||Y.every(e=>e.overflows[0]>0&&m(e.placement)===z)))return{data:{index:e,overflows:Y},reset:{placement:t}};let n=null==(i=Y.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(H){case"bestFit":{let e=null==(o=Y.filter(e=>{if(B){let t=m(e.placement);return t===z||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=S}if(b!==n)return{reset:{placement:n}}}return{}}},options:[x,void 0]},{...{name:"size",options:T=L={...eP,apply:eA(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)},"apply")},async fn(e){var t,n;let o,l,{placement:a,rects:f,platform:s,elements:p}=e,{apply:h=()=>{},...g}=u(T,e),y=await A(e,g),w=c(a),x=d(a),v="y"===m(a),{width:b,height:R}=f.floating;"top"===w||"bottom"===w?(o=w,l=x===(await (null==s.isRTL?void 0:s.isRTL(p.floating))?"start":"end")?"left":"right"):(l=w,o="end"===x?"top":"bottom");let P=R-y.top-y.bottom,S=b-y.left-y.right,L=r(R-y[o],P),C=r(b-y[l],S),O=!e.middlewareData.shift,E=L,H=C;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(H=S),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(E=P),O&&!x){let e=i(y.left,0),t=i(y.right,0),n=i(y.top,0),r=i(y.bottom,0);v?H=b-2*(0!==e||0!==t?e+t:i(y.left,y.right)):E=R-2*(0!==n||0!==r?n+r:i(y.top,y.bottom))}await h({...e,availableWidth:H,availableHeight:E});let k=await s.getDimensions(p.floating);return b!==k.width||R!==k.height?{reset:{rects:!0}}:{}}},options:[L,void 0]},ee&&{...{name:"arrow",options:E=C={element:ee,padding:W},fn(e){let{element:t,padding:n}="function"==typeof E?E(e):E;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eo({element:t.current,padding:n}).fn(e):{}:t?eo({element:t,padding:n}).fn(e):{}}},options:[C,void 0]},eM({arrowWidth:eh,arrowHeight:em}),Y&&{...{name:"hide",options:k=H={strategy:"referenceHidden",...eP,boundary:eR?eP.boundary:void 0},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=u(k,e);switch(n){case"referenceHidden":{let n=R(await A(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:P(n)}}}case"escaped":{let n=R(await A(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:P(n)}}}default:return{}}}},options:[H,void 0]}]}),eD=G.setPlacementState;(0,ex.useLayoutEffect)(()=>(eD(eC),()=>{eD(void 0)}),[eC,eD]);let[ej,eF]=eW(eC),e$=(0,ew.useCallbackRef)(q);(0,ex.useLayoutEffect)(()=>{eO&&e$?.()},[eO,e$]);let eB=ek.arrow?.x,eV=ek.arrow?.y,eN=ek.arrow?.centerOffset!==0,[eI,eY]=t.useState();return(0,ex.useLayoutEffect)(()=>{J&&eY(window.getComputedStyle(J).zIndex)},[J]),(0,ep.jsx)("div",{ref:eS.setFloating,"data-radix-popper-content-wrapper":"",style:{...eL,transform:eO?eL.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eI,"--radix-popper-transform-origin":[ek.transformOrigin?.x,ek.transformOrigin?.y].join(" "),...ek.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ep.jsx)(eH,{scope:D,placedSide:ej,placedAlign:eF,onArrowChange:et,arrowX:eB,arrowY:eV,shouldHideArrow:eN,children:(0,ep.jsx)(ed.Primitive.div,{"data-side":ej,"data-align":eF,...K,ref:Z,style:{...K.style,animation:eO?K.style?.animation:"none"}})})})},"PopperContent")),ej={top:"bottom",right:"left",bottom:"top",left:"right"},eF=t.forwardRef(eA(function(e,t){let{__scopePopper:n,...r}=e,i=ek("PopperArrow",n),o=ej[i.placedSide];return(0,ep.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ep.jsx)(em,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function ez(e){return null!==e}eA(ez,"isNotNull");var eM=eA(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[f,s]=eW(n),u={start:"0%",center:"50%",end:"100%"}[s],c=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+a/2,p="",h="";return"bottom"===f?(p=o?u:`${c}px`,h=`${-a}px`):"top"===f?(p=o?u:`${c}px`,h=`${r.floating.height+a}px`):"right"===f?(p=`${-a}px`,h=o?u:`${d}px`):"left"===f&&(p=`${r.floating.width+a}px`,h=o?u:`${d}px`),{data:{x:p,y:h}}}}),"transformOrigin");function eW(e){let[t,n="center"]=e.split("-");return[t,n]}eA(eW,"getSideAndAlignFromPlacement"),e.s(["Anchor",0,eO,"Arrow",0,eF,"Content",0,eD,"Root",0,eC,"createPopperScope",0,eS],722113)}]); 2 3//# sourceMappingURL=0zyy1mjropf9d.js.map
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.