vendor: 5,004 bytes, line 1
1import{c as gn,r as m,Y as Ce,u as he,j as I,P as te,b as Ne,a7 as yn,Z as wn,d as bn,ad as xn,ae as q,af as Lt,ag as En}from"./index-Ch2YoLWu.js";const Sn=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vo=gn("check",Sn);function jo(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Cn(e){const[t,n]=m.useState(void 0);return Ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let c,s;if("borderBoxSize"in i){const f=i.borderBoxSize,l=Array.isArray(f)?f[0]:f;c=l.inlineSize,s=l.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function ce(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>t.current?.(...n),[])}function An(e,t=globalThis?.document){const n=ce(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Rn="DismissableLayer",Ue="dismissableLayer.update",Pn="dismissableLayer.pointerDownOutside",On="dismissableLayer.focusOutside",st,Tt=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ln=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...f}=e,l=m.useContext(Tt),[u,d]=m.useState(null),v=u?.ownerDocument??globalThis?.document,[,h]=m.useState({}),p=he(t,E=>d(E)),a=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=a.indexOf(g),x=u?a.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,S=Mn(E=>{const R=E.target,O=[...l.branches].some(P=>P.contains(R));!w||O||(o?.(E),c?.(E),E.defaultPrevented||s?.())},v),C=kn(E=>{const R=E.target;[...l.branches].some(P=>P.contains(R))||(i?.(E),c?.(E),E.defaultPrevented||s?.())},v);return An(E=>{x===l.layers.size-1&&(r?.(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},v),m.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(st=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ct(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=st)}},[u,v,n,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ct())},[u,l]),m.useEffect(()=>{const E=()=>h({});return document.addEventListener(Ue,E),()=>document.removeEventListener(Ue,E)},[]),I.jsx(te.div,{...f,ref:p,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,S.onPointerDownCapture)})});Ln.displayName=Rn;var Tn="DismissableLayerBranch",Dn=m.forwardRef((e,t)=>{const n=m.useContext(Tt),r=m.useRef(null),o=he(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),I.jsx(te.div,{...e,ref:o})});Dn.displayName=Tn;function Mn(e,t=globalThis?.document){const n=ce(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let f=function(){Dt(Pn,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function kn(e,t=globalThis?.document){const n=ce(e),r=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!r.current&&Dt(On,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ct(){const e=new CustomEvent(Ue);document.dispatchEvent(e)}function Dt(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yn(o,i):o.dispatchEvent(i)}var Fe=0;function Uo(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??at()),document.body.insertAdjacentElement("beforeend",e[1]??at()),Fe++,()=>{Fe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fe--}},[])}function at(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 1,566 bytes, line 1
1style.position="fixed",e.style.pointerEvents="none",e}var We="focusScope.autoFocusOnMount",Be="focusScope.autoFocusOnUnmount",lt={bubbles:!1,cancelable:!0},Nn="FocusScope",Fn=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,f]=m.useState(null),l=ce(o),u=ce(i),d=m.useRef(null),v=he(t,a=>f(a)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let a=function(b){if(h.paused||!s)return;const w=b.target;s.contains(w)?d.current=w:Z(d.current,{select:!0})},g=function(b){if(h.paused||!s)return;const w=b.relatedTarget;w!==null&&(s.contains(w)||Z(d.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&Z(s)};document.addEventListener("focusin",a),document.addEventListener("focusout",g);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",g),x.disconnect()}}},[r,s,h.paused]),m.useEffect(()=>{if(s){ft.add(h);const a=document.activeElement;if(!s.contains(a)){const y=new CustomEvent(We,lt);s.addEventListener(We,l),s.dispatchEvent(y),y.defaultPrevented||(Wn($n(Mt(s)),{select:!0}),document.activeElement===a&&Z(s))}return()=>{s.removeEventListener(We,l),setTimeout(()=>{const y=new CustomEvent(Be,lt);s.addEventListener(Be,u),s.dispatchEvent(y),y.defaultPrevented||Z(a??document.body,{select:!0}),s.removeEventListener(Be,u),ft.remove(h)},0)}}},[s,l,u,h]);const p=m.useCallback(a=>
vendor: 13,523 bytes, line 1
1{if(!n&&!r||h.paused)return;const g=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,y=document.activeElement;if(g&&y){const x=a.currentTarget,[b,w]=Bn(x);b&&w?!a.shiftKey&&y===w?(a.preventDefault(),n&&Z(b,{select:!0})):a.shiftKey&&y===b&&(a.preventDefault(),n&&Z(w,{select:!0})):y===x&&a.preventDefault()}},[n,r,h.paused]);return I.jsx(te.div,{tabIndex:-1,...c,ref:v,onKeyDown:p})});Fn.displayName=Nn;function Wn(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Z(r,{select:t}),document.activeElement!==n)return}function Bn(e){const t=Mt(e),n=ut(t,e),r=ut(t.reverse(),e);return[n,r]}function Mt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ut(e,t){for(const n of e)if(!In(n,{upTo:t}))return n}function In(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _n(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_n(e)&&t&&e.select()}}var ft=Hn();function Hn(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=dt(e,t),e.unshift(t)},remove(t){e=dt(e,t),e[0]?.resume()}}}function dt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $n(e){return e.filter(t=>t.tagName!=="A")}const zn=["top","right","bottom","left"],G=Math.min,B=Math.max,Ae=Math.round,pe=Math.floor,j=e=>({x:e,y:e}),Vn={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(e,t,n){return B(e,G(t,n))}function X(e,t){return typeof e=="function"?e(t):e}function Y(e){return e.split("-")[0]}function le(e){return e.split("-")[1]}function qe(e){return e==="x"?"y":"x"}function Ge(e){return e==="y"?"height":"width"}function V(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qe(e){return qe(V(e))}function jn(e,t,n){n===void 0&&(n=!1);const r=le(e),o=Qe(e),i=Ge(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Re(c)),[c,Re(c)]}function Un(e){const t=Re(e);return[Ye(e),t,Ye(t)]}function Ye(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ht=["left","right"],mt=["right","left"],Xn=["top","bottom"],Yn=["bottom","top"];function Kn(e,t,n){switch(e){case"top":case"bottom":return n?t?mt:ht:t?ht:mt;case"left":case"right":return t?Xn:Yn;default:return[]}}function Zn(e,t,n,r){const o=le(e);let i=Kn(Y(e),n==="start",r);return o&&(i=i.map(c=>c+"-"+o),t&&(i=i.concat(i.map(Ye)))),i}function Re(e){const t=Y(e);return Vn[t]+e.slice(t.length)}function qn(e){return{top:0,right:0,bottom:0,left:0,...e}}function kt(e){return typeof e!="number"?qn(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vt(e,t,n){let{reference:r,floating:o}=e;const i=V(t),c=Qe(t),s=Ge(c),f=Y(t),l=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,v=r[s]/2-o[s]/2;let h;switch(f){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(le(t)){case"start":h[c]-=v*(n&&l?-1:1);break;case"end":h[c]+=v*(n&&l?-1:1);break}return h}async function Gn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:c,elements:s,strategy:f}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:v=!1,padding:h=0}=X(t,e),p=kt(h),g=s[v?d==="floating"?"reference":"floating":d],y=Pe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:f})),x=d==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Pe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:b,strategy:f}):x);return{top:(y.top-S.top+p.top)/w.y,bottom:(S.bottom-y.bottom+p.bottom)/w.y,left:(y.left-S.left+p.left)/w.x,right:(S.right-y.right+p.right)/w.x}}const Qn=50,Jn=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:c}=n,s=c.detectOverflow?c:{...c,detectOverflow:Gn},f=await(c.isRTL==null?void 0:c.isRTL(t));let l=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=vt(l,r,f),v=r,h=0;const p={};for(let a=0;a<i.length;a++){const g=i[a];if(!g)continue;const{name:y,fn:x}=g,{x:b,y:w,data:S,reset:C}=await x({x:u,y:d,initialPlacement:r,placement:v,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=b??u,d=w??d,p[y]={...p[y],...S},C&&h<Qn&&(h++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(l=C.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:d}=vt(l,v,f)),a=-1)}return{x:u,y:d,placement:v,strategy:o,middlewareData:p}},er=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:c,elements:s,middlewareData:f}=t,{element:l,padding:u=0}=X(e,t)||{};if(l==null)return{};const d=kt(u),v={x:n,y:r},h=Qe(o),p=Ge(h),a=await c.getDimensions(l),g=h==="y",y=g?"top":"left",x=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[h]-v[h]-i.floating[p],S=v[h]-i.reference[h],C=await(c.getOffsetParent==null?void 0:c.getOffsetParent(l));let E=C?C[b]:0;(!E||!await(c.isElement==null?void 0:c.isElement(C)))&&(E=s.floating[b]||i.floating[p]);const R=w/2-S/2,O=E/2-a[p]/2-1,P=G(d[y],O),T=G(d[x],O),N=P,D=E-a[p]-T,L=E/2-a[p]/2+R,W=Xe(N,L,D),M=!f.arrow&&le(o)!=null&&L!==W&&i.reference[p]/2-(L<N?P:T)-a[p]/2<0,k=M?L<N?L-N:L-D:0;return{[h]:v[h]+k,data:{[h]:W,centerOffset:L-W-k,...M&&{alignmentOffset:k}},reset:M}}}),tr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:c,initialPlacement:s,platform:f,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:a=!0,...g}=X(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Y(o),x=V(s),b=Y(s)===s,w=await(f.isRTL==null?void 0:f.isRTL(l.floating)),S=v||(b||!a?[Re(s)]:Un(s)),C=p!=="none";!v&&C&&S.push(...Zn(s,a,p,w));const E=[s,...S],R=await f.detectOverflow(t,g),O=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&O.push(R[y]),d){const L=jn(o,c,w);O.push(R[L[0]],R[L[1]])}if(P=[...P,{placement:o,overflows:O}],!O.every(L=>L<=0)){var T,N;const L=(((T=i.flip)==null?void 0:T.index)||0)+1,W=E[L];if(W&&(!(d==="alignment"?x!==V(W):!1)||P.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:L,overflows:P},reset:{placement:W}};let M=(N=P.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:N.placement;if(!M)switch(h){case"bestFit":{var D;const k=(D=P.filter(A=>{if(C){const F=V(A.placement);return F===x||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,z)=>F+z,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:D[0];k&&(M=k);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function pt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gt(e){return zn.some(t=>e[t]>=0)}const nr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=X(e,t);switch(o){case"referenceHidden":{const c=await r.detectOverflow(t,{...i,elementContext:"reference"}),s=pt(c,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:gt(s)}}}case"escaped":{const c=await r.detectOverflow(t,{...i,altBoundary:!0}),s=pt(c,n.floating);return{data:{escapedOffsets:s,escaped:gt(s)}}}default:return{}}}}},Nt=new Set(["left","top"]);async function rr(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=Y(n),s=le(n),f=V(n)==="y",l=Nt.has(c)?-1:1,u=i&&f?-1:1,d=X(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),f?{x:h*u,y:v*l}:{x:v*l,y:h*u}}const or=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:c,middlewareData:s}=t,f=await rr(t,e);return c===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:c}}}}},ir=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:c=!0,crossAxis:s=!1,limiter:f={fn:y=>{let{x,y:b}=y;return{x,y:b}}},...l}=X(e,t),u={x:n,y:r},d=await i.detectOverflow(t,l),v=V(Y(o)),h=qe(v);let p=u[h],a=u[v];if(c){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=p+d[y],w=p-d[x];p=Xe(b,p,w)}if(s){const y=v==="y"?"top":"left",x=v==="y"?"bottom":"right",b=a+d[y],w=a-d[x];a=Xe(b,a,w)}const g=f.fn({...t,[h]:p,[v]:a});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:c,[v]:s}}}}}},sr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:c}=t,{offset:s=0,mainAxis:f=!0,crossAxis:l=!0}=X(e,t),u={x:n,y:r},d=V(o),v=qe(d);let h=u[v],p=u[d];const a=X(s,t),g=typeof a=="number"?{mainAxis:a,crossAxis:0}:{mainAxis:0,crossAxis:0,...a};if(f){const b=v==="y"?"height":"width",w=i.reference[v]-i.floating[b]+g.mainAxis,S=i.reference[v]+i.reference[b]-g.mainAxis;h<w?h=w:h>S&&(h=S)}if(l){var y,x;const b=v==="y"?"width":"height",w=Nt.has(Y(o)),S=i.reference[d]-i.floating[b]+(w&&((y=c.offset)==null?void 0:y[d])||0)+(w?0:g.crossAxis),C=i.reference[d]+i.reference[b]+(w?0:((x=c.offset)==null?void 0:x[d])||0)-(w?g.crossAxis:0);p<S?p=S:p>C&&(p=C)}return{[v]:h,[d]:p}}}},cr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:c,elements:s}=t,{apply:f=()=>{},...l}=X(e,t),u=await c.detectOverflow(t,l),d=Y(o),v=le(o),h=V(o)==="y",{width:p,height:a}=i.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=v===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g=v==="end"?"top":"bottom");const x=a-u.top-u.bottom,b=p-u.left-u.right,w=G(a-u[g],x),S=G(p-u[y],b),C=!t.middlewareData.shift;let E=w,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=x),C&&!v){const P=B(u.left,0),T=B(u.right,0),N=B(u.top,0),D=B(u.bottom,0);h?R=p-2*(P!==0||T!==0?P+T:B(u.left,u.right)):E=a-2*(N!==0||D!==0?N+D:B(u.top,u.bottom))}await f({...t,availableWidth:R,availableHeight:E});const O=await c.getDimensions(s.floating);return p!==O.width||a!==O.height?{reset:{rects:!0}}:{}}}};function Le(){return typeof window<"u"}function ue(e){return Ft(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(Ft(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ft(e){return Le()?e instanceof Node||e instanceof _(e).Node:!1}function H(e){return Le()?e instanceof Element||e instanceof _(e).Element:!1}function K(e){return Le()?e instanceof HTMLElement||e instanceof _(e).HTMLElement:!1}function yt(e){return!Le()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _(e).ShadowRoot}function me(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function ar(e){return/^(table|td|th)$/.test(ue(e))}function Te(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const lr=/transform|translate|scale|rotate|perspective|filter/,ur=/paint|layout|strict|content/,J=e=>!!e&&e!=="none";let Ie;function Je(e){const t=H(e)?$(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!et()&&(J(t.backdropFilter)||J(t.filter))||lr.test(t.willChange||"")||ur.test(t.contain||"")}function fr(e){let t=Q(e);for(;K(t)&&!ae(t);){if(Je(t))return t;if(Te(t))return null;t=Q(t)}return null}function et(){return Ie==null&&(Ie=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ie}function ae(e){return/^(html|body|#document)$/.test(ue(e))}function $(e){return _(e).getComputedStyle(e)}function De(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yt(e)&&e.host||U(e);return yt(t)?t.host:t}function Wt(e){const t=Q(e);return ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:K(t)&&me(t)?t:Wt(t)}function de(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Wt(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),c=_(o);if(i){const s=Ke(c);
vendor: 1,204 bytes, line 1
1return t.concat(c,c.visualViewport||[],me(o)?o:[],s&&n?de(s):[])}else return t.concat(o,de(o,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bt(e){const t=$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=K(e),i=o?e.offsetWidth:n,c=o?e.offsetHeight:r,s=Ae(n)!==i||Ae(r)!==c;return s&&(n=i,r=c),{width:n,height:r,$:s}}function tt(e){return H(e)?e:e.contextElement}function ie(e){const t=tt(e);if(!K(t))return j(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Bt(t);let c=(i?Ae(n.width):n.width)/r,s=(i?Ae(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const dr=j(0);function It(e){const t=_(e);return!et()||!t.visualViewport?dr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_(e)?!1:t}function ee(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=tt(e);let c=j(1);t&&(r?H(r)&&(c=ie(r)):c=ie(e));const s=hr(i,n,r)?It(i):j(0);let f=(o.left+s.x)/c.x,l=(o.top+s.y)/c.y,u=o.width/c.x,d=o.height/c.y;if(i){const v=_(i),h=r&&H(r)?_(r):r;let p=v,a=Ke(p);for(;a&&r&&h!==p;
vendor: 14,873 bytes, line 1
1){const g=ie(a),y=a.getBoundingClientRect(),x=$(a),b=y.left+(a.clientLeft+parseFloat(x.paddingLeft))*g.x,w=y.top+(a.clientTop+parseFloat(x.paddingTop))*g.y;f*=g.x,l*=g.y,u*=g.x,d*=g.y,f+=b,l+=w,p=_(a),a=Ke(p)}}return Pe({width:u,height:d,x:f,y:l})}function Me(e,t){const n=De(e).scrollLeft;return t?t.left+n:ee(U(e)).left+n}function _t(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Me(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function mr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",c=U(r),s=t?Te(t.floating):!1;if(r===c||s&&i)return n;let f={scrollLeft:0,scrollTop:0},l=j(1);const u=j(0),d=K(r);if((d||!d&&!i)&&((ue(r)!=="body"||me(c))&&(f=De(r)),d)){const h=ee(r);l=ie(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const v=c&&!d&&!i?_t(c,f):j(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-f.scrollLeft*l.x+u.x+v.x,y:n.y*l.y-f.scrollTop*l.y+u.y+v.y}}function vr(e){return Array.from(e.getClientRects())}function pr(e){const t=U(e),n=De(e),r=e.ownerDocument.body,o=B(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=B(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Me(e);const s=-n.scrollTop;return $(r).direction==="rtl"&&(c+=B(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:c,y:s}}const wt=25;function gr(e,t){const n=_(e),r=U(e),o=n.visualViewport;let i=r.clientWidth,c=r.clientHeight,s=0,f=0;if(o){i=o.width,c=o.height;const u=et();(!u||u&&t==="fixed")&&(s=o.offsetLeft,f=o.offsetTop)}const l=Me(r);if(l<=0){const u=r.ownerDocument,d=u.body,v=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,p=Math.abs(r.clientWidth-d.clientWidth-h);p<=wt&&(i-=p)}else l<=wt&&(i+=l);return{width:i,height:c,x:s,y:f}}function yr(e,t){const n=ee(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=K(e)?ie(e):j(1),c=e.clientWidth*i.x,s=e.clientHeight*i.y,f=o*i.x,l=r*i.y;return{width:c,height:s,x:f,y:l}}function bt(e,t,n){let r;if(t==="viewport")r=gr(e,n);else if(t==="document")r=pr(U(e));else if(H(t))r=yr(t,n);else{const o=It(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pe(r)}function Ht(e,t){const n=Q(e);return n===t||!H(n)||ae(n)?!1:$(n).position==="fixed"||Ht(n,t)}function wr(e,t){const n=t.get(e);if(n)return n;let r=de(e,[],!1).filter(s=>H(s)&&ue(s)!=="body"),o=null;const i=$(e).position==="fixed";let c=i?Q(e):e;for(;H(c)&&!ae(c);){const s=$(c),f=Je(c);!f&&s.position==="fixed"&&(o=null),(i?!f&&!o:!f&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||me(c)&&!f&&Ht(e,c))?r=r.filter(u=>u!==c):o=s,c=Q(c)}return t.set(e,r),r}function br(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Te(t)?[]:wr(t,this._c):[].concat(n),r],s=bt(t,c[0],o);let f=s.top,l=s.right,u=s.bottom,d=s.left;for(let v=1;v<c.length;v++){const h=bt(t,c[v],o);f=B(h.top,f),l=G(h.right,l),u=G(h.bottom,u),d=B(h.left,d)}return{width:l-d,height:u-f,x:d,y:f}}function xr(e){const{width:t,height:n}=Bt(e);return{width:t,height:n}}function Er(e,t,n){const r=K(t),o=U(t),i=n==="fixed",c=ee(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const f=j(0);function l(){f.x=Me(o)}if(r||!r&&!i)if((ue(t)!=="body"||me(o))&&(s=De(t)),r){const h=ee(t,!0,i,t);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=o&&!r&&!i?_t(o,s):j(0),d=c.left+s.scrollLeft-f.x-u.x,v=c.top+s.scrollTop-f.y-u.y;return{x:d,y:v,width:c.width,height:c.height}}function _e(e){return $(e).position==="static"}function xt(e,t){if(!K(e)||$(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function $t(e,t){const n=_(e);if(Te(e))return n;if(!K(e)){let o=Q(e);for(;o&&!ae(o);){if(H(o)&&!_e(o))return o;o=Q(o)}return n}let r=xt(e,t);for(;r&&ar(r)&&_e(r);)r=xt(r,t);return r&&ae(r)&&_e(r)&&!Je(r)?n:r||fr(e)||n}const Sr=async function(e){const t=this.getOffsetParent||$t,n=this.getDimensions,r=await n(e.floating);return{reference:Er(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cr(e){return $(e).direction==="rtl"}const Ar={convertOffsetParentRelativeRectToViewportRelativeRect:mr,getDocumentElement:U,getClippingRect:br,getOffsetParent:$t,getElementRects:Sr,getClientRects:vr,getDimensions:xr,getScale:ie,isElement:H,isRTL:Cr};function zt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rr(e,t){let n=null,r;const o=U(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function c(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:v,height:h}=l;if(s||t(),!v||!h)return;const p=pe(d),a=pe(o.clientWidth-(u+v)),g=pe(o.clientHeight-(d+h)),y=pe(u),b={rootMargin:-p+"px "+-a+"px "+-g+"px "+-y+"px",threshold:B(0,G(1,f))||1};let w=!0;function S(C){const E=C[0].intersectionRatio;if(E!==f){if(!w)return c();E?c(!1,E):r=setTimeout(()=>{c(!1,1e-7)},1e3)}E===1&&!zt(l,e.getBoundingClientRect())&&c(),w=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return c(!0),i}function Pr(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,l=tt(e),u=o||i?[...l?de(l):[],...t?de(t):[]]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&s?Rr(l,n):null;let v=-1,h=null;c&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&h&&t&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),l&&!f&&h.observe(l),t&&h.observe(t));let p,a=f?ee(e):null;f&&g();function g(){const y=ee(e);a&&!zt(a,y)&&n(),a=y,p=requestAnimationFrame(g)}return n(),()=>{var y;u.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d?.(),(y=h)==null||y.disconnect(),h=null,f&&cancelAnimationFrame(p)}}const Or=or,Lr=ir,Tr=tr,Dr=cr,Mr=nr,Et=er,kr=sr,Nr=(e,t,n)=>{const r=new Map,o={platform:Ar,...n},i={...o.platform,_c:r};return Jn(e,t,{...o,platform:i})};var Fr=typeof document<"u",Wr=function(){},xe=Fr?m.useLayoutEffect:Wr;function Oe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Oe(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Oe(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Vt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function St(e,t){const n=Vt(e);return Math.round(t*n)/n}function He(e){const t=m.useRef(e);return xe(()=>{t.current=e}),t}function Br(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:c}={},transform:s=!0,whileElementsMounted:f,open:l}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=m.useState(r);Oe(v,r)||h(r);const[p,a]=m.useState(null),[g,y]=m.useState(null),x=m.useCallback(A=>{A!==C.current&&(C.current=A,a(A))},[]),b=m.useCallback(A=>{A!==E.current&&(E.current=A,y(A))},[]),w=i||p,S=c||g,C=m.useRef(null),E=m.useRef(null),R=m.useRef(u),O=f!=null,P=He(f),T=He(o),N=He(l),D=m.useCallback(()=>{if(!C.current||!E.current)return;const A={placement:t,strategy:n,middleware:v};T.current&&(A.platform=T.current),Nr(C.current,E.current,A).then(F=>{const z={...F,isPositioned:N.current!==!1};L.current&&!Oe(R.current,z)&&(R.current=z,wn.flushSync(()=>{d(z)}))})},[v,t,n,T,N]);xe(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[l]);const L=m.useRef(!1);xe(()=>(L.current=!0,()=>{L.current=!1}),[]),xe(()=>{if(w&&(C.current=w),S&&(E.current=S),w&&S){if(P.current)return P.current(w,S,D);D()}},[w,S,D,P,O]);const W=m.useMemo(()=>({reference:C,floating:E,setReference:x,setFloating:b}),[x,b]),M=m.useMemo(()=>({reference:w,floating:S}),[w,S]),k=m.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const F=St(M.floating,u.x),z=St(M.floating,u.y);return s?{...A,transform:"translate("+F+"px, "+z+"px)",...Vt(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:z}},[n,s,M.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:D,refs:W,elements:M,floatingStyles:k}),[u,D,W,M,k])}const Ir=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Et({element:r.current,padding:o}).fn(n):{}:r?Et({element:r,padding:o}).fn(n):{}}}},_r=(e,t)=>{const n=Or(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hr=(e,t)=>{const n=Lr(e);return{name:n.name,fn:n.fn,options:[e,t]}},$r=(e,t)=>({fn:kr(e).fn,options:[e,t]}),zr=(e,t)=>{const n=Tr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vr=(e,t)=>{const n=Dr(e);return{name:n.name,fn:n.fn,options:[e,t]}},jr=(e,t)=>{const n=Mr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ur=(e,t)=>{const n=Ir(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Xr="Arrow",jt=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return I.jsx(te.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:I.jsx("polygon",{points:"0,0 30,0 15,10"})})});jt.displayName=Xr;var Yr=jt,nt="Popper",[Ut,Xo]=bn(nt),[Kr,Xt]=Ut(nt),Yt=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return I.jsx(Kr,{scope:t,anchor:r,onAnchorChange:o,children:n})};Yt.displayName=nt;var Kt="PopperAnchor",Zt=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Xt(Kt,n),c=m.useRef(null),s=he(t,c),f=m.useRef(null);return m.useEffect(()=>{const l=f.current;f.current=r?.current||c.current,l!==f.current&&i.onAnchorChange(f.current)}),r?null:I.jsx(te.div,{...o,ref:s})});Zt.displayName=Kt;var rt="PopperContent",[Zr,qr]=Ut(rt),qt=m.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:f=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:p,...a}=e,g=Xt(rt,n),[y,x]=m.useState(null),b=he(t,fe=>x(fe)),[w,S]=m.useState(null),C=Cn(w),E=C?.width??0,R=C?.height??0,O=r+(i!=="center"?"-"+i:""),P=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},T=Array.isArray(l)?l:[l],N=T.length>0,D={padding:P,boundary:T.filter(Qr),altBoundary:N},{refs:L,floatingStyles:W,placement:M,isPositioned:k,middlewareData:A}=Br({strategy:"fixed",placement:O,whileElementsMounted:(...fe)=>Pr(...fe,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[_r({mainAxis:o+R,alignmentAxis:c}),f&&Hr({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?$r():void 0,...D}),f&&zr({...D}),Vr({...D,apply:({elements:fe,rects:it,availableWidth:hn,availableHeight:mn})=>{const{width:vn,height:pn}=it.reference,ve=fe.floating.style;ve.setProperty("--radix-popper-available-width",`${hn}px`),ve.setProperty("--radix-popper-available-height",`${mn}px`),ve.setProperty("--radix-popper-anchor-width",`${vn}px`),ve.setProperty("--radix-popper-anchor-height",`${pn}px`)}}),w&&Ur({element:w,padding:s}),Jr({arrowWidth:E,arrowHeight:R}),v&&jr({strategy:"referenceHidden",...D})]}),[F,z]=Jt(M),ot=ce(p);Ce(()=>{k&&ot?.()},[k,ot]);const an=A.arrow?.x,ln=A.arrow?.y,un=A.arrow?.centerOffset!==0,[fn,dn]=m.useState();return Ce(()=>{y&&dn(window.getComputedStyle(y).zIndex)},[y]),I.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:k?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fn,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:I.jsx(Zr,{scope:n,placedSide:F,onArrowChange:S,arrowX:an,arrowY:ln,shouldHideArrow:un,children:I.jsx(te.div,{"data-side":F,"data-align":z,...a,ref:b,style:{...a.style,animation:k?void 0:"none"}})})})});qt.displayName=rt;var Gt="PopperArrow",Gr={top:"bottom",right:"left",bottom:"top",left:"right"},Qt=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=qr(Gt,r),c=Gr[i.placedSide];return I.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]: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:I.jsx(Yr,{...o,ref:n,style:{...o.style,display:"block"}})})});Qt.displayName=Gt;function Qr(e){return e!==null}var Jr=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,s=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[l,u]=Jt(n),d={start:"0%",center:"50%",end:"100%"}[u],v=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+f/2;let p="",a="";return l==="bottom"?(p=c?d:`${v}px`,a=`${-f}px`):l==="top"?(p=c?d:`${v}px`,a=`${r.floating.height+f}px`):l==="right"?(p=`${-f}px`,a=c?d:`${h}px`):l==="left"&&(p=`${r.floating.width+f}px`,a=c?d:`${h}px`),{data:{x:p,y:a}}}});function Jt(e){const[t,n="center"]=e.split("-");return[t,n]}var Yo=Yt,Ko=Zt,Zo=qt,qo=Qt,eo="Portal",to=m.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=m.useState(!1);Ce(()=>i(!0),[]);const c=n||o&&globalThis?.document?.body;return c?xn.createPortal(I.jsx(te.div,{...r,ref:t}),c):null});to.displayName=eo;var no=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ne=new WeakMap,ge=new WeakMap,ye={},$e=0,en=function(e){return e&&(e.host||en(e.parentNode))},ro=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=en(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},oo=function(e,t,n,r){var o=ro(t,Array.isArray(e)?e:[e]);ye[n]||(ye[n]=new WeakMap);var i=ye[n],c=[],s=new Set,f=new Set(o),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};o.forEach(l);var u=function(d){!d||f.has(d)||Array.prototype.forEach.call(d.children,function(v){if(s.has(v))u(v);else try{var h=v.getAttribute(r),p=h!==null&&h!=="false",a=(ne.get(v)||0)+1,g=(i.get(v)||0)+1;ne.set(v,a),i.set(v,g),c.push(v),a===1&&p&&ge.set(v,!0),g===1&&v.setAttribute(n,"true"),p||v.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};
vendor: 5,326 bytes, lines 1-16
1return u(t),s.clear(),$e++,function(){c.forEach(function(d){var v=ne.get(d)-1,h=i.get(d)-1;ne.set(d,v),i.set(d,h),v||(ge.has(d)||d.removeAttribute(r),ge.delete(d)),h||d.removeAttribute(n)}),$e--,$e||(ne=new WeakMap,ne=new WeakMap,ge=new WeakMap,ye={})}},Go=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=no(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),oo(r,o,n,"aria-hidden")):function(){return null}},Ee="right-scroll-bar-position",Se="width-before-scroll-bar",io="with-scroll-bars-hidden",so="--removed-body-scroll-bar-size";function ze(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function co(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ao=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ct=new WeakMap;function lo(e,t){var n=co(null,function(r){return e.forEach(function(o){return ze(o,r)})});return ao(function(){var r=Ct.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||ze(s,null)}),i.forEach(function(s){o.has(s)||ze(s,c)})}Ct.set(n,e)},[e]),n}function uo(e){return e}function fo(e,t){t===void 0&&(t=uo);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var c=t(i,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(i),c=n}var f=function(){var u=c;c=[],u.forEach(i)},l=function(){return Promise.resolve().then(f)};l(),n={push:function(u){c.push(u),l()},filter:function(u){return c=c.filter(u),n}}}};return o}function ho(e){e===void 0&&(e={});var t=fo(null);return t.options=q({async:!0,ssr:!1},e),t}var tn=function(e){var t=e.sideCar,n=Lt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,q({},n))};tn.isSideCarExport=!0;function mo(e,t){return e.useMedium(t),tn}var nn=ho(),Ve=function(){},ke=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Ve,onWheelCapture:Ve,onTouchMoveCapture:Ve}),o=r[0],i=r[1],c=e.forwardProps,s=e.children,f=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,v=e.sideCar,h=e.noRelative,p=e.noIsolation,a=e.inert,g=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,b=e.gapMode,w=Lt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,C=lo([n,t]),E=q(q({},w),o);return m.createElement(m.Fragment,null,u&&m.createElement(S,{sideCar:nn,removeScrollBar:l,shards:d,noRelative:h,noIsolation:p,inert:a,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:b}),c?m.cloneElement(m.Children.only(s),q(q({},E),{ref:C})):m.createElement(x,q({},E,{className:f,ref:C}),s))});ke.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ke.classNames={fullWidth:Se,zeroRight:Ee};var vo=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function po(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vo();return t&&e.setAttribute("nonce",t),e}function go(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yo(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=po())&&(go(t,n),yo(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bo=function(){var e=wo();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rn=function(){var e=bo(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},xo={left:0,top:0,right:0,gap:0},je=function(e){return parseInt(e||"",10)||0},Eo=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[je(n),je(r),je(o)]},So=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xo;var t=Eo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Co=rn(),se="data-scroll-locked",Ao=function(e,t,n,r){var o=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(io,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(s,"px ").concat(r,`; 5 } 6 body[`).concat(se,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(i,`px; 12 padding-right: `).concat(c,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(s,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(Ee,` { 20 right: `).concat(s,"px ").concat(r,`; 21 } 22 23 .`).concat(Se,` { 24 margin-right: `).concat(s,"px ").concat(r,`; 25 } 26 27 .`).concat(Ee," .").concat(Ee,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(Se," .").concat(Se,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(se,`] { 36 `).concat(so,": ").concat(s,`px; 37 } 38`)},At=function(){var e=parseInt(document.body.getAttribute(se)||"0",10);return isFinite(e)?e:0},Ro=function(){m.useEffect(function(){return document.body.setAttribute(se,(At()+1).toString()),function(){var e=At()-1;e<=0?document.body.removeAttribute(se):document.body.setAttribute(se,e.toString())}},[])},Po=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ro();var i=m.useMemo(function(){return So(o)},[o]);return m.createElement(Co,{styles:Ao(i,!t,o,n?"":"!important")})},Ze=!1;if(typeof window<"u")try{var we=Object.defineProperty({},"passive",{get:function(){return Ze=!0,!0}});window.addEventListener("test",we,we),window.removeEventListener("test",we,we)}catch{Ze=!1}var re=Ze?{passive:!1}:!1,Oo=function(e){return e.tagName==="TEXTAREA"},on=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Oo(e)&&n[t]==="visible")},Lo=function(e){return on(e,"overflowY")},To=function(e){return on(e,"overflowX")},Rt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=sn(e,r);if(o){var i=cn(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Do=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Mo=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sn=function(e,t){return e==="v"?Lo(t):To(t)},cn=function(e,t){return e==="v"?Do(t):Mo(t)},ko=function(e,t){return e==="h"&&t==="rtl"?-1:1},No=function(e,t,n,r,o){var i=ko(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,f=t.contains(s),l=!1,u=c>0,d=0,v=0;do{if(!s)break;var h=cn(e,s),p=h[0],a=h[1],g=h[2],y=a-g-i*p;(p||y)&&sn(e,s)&&(d+=y,v+=p);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!f&&s!==document.body||f&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(v)<1)&&(l=!0),l},be=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pt=function(e){return[e.deltaX,e.deltaY]},Ot=function(e){return e&&"current"in e?e.current:e},Fo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Wo=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},Bo=0,oe=[];function Io(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(Bo++)[0],i=m.useState(rn)[0],c=m.useRef(e);m.useEffect(function(){c.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var a=En([e.lockRef.current],(e.shards||[]).map(Ot),!0).filter(Boolean);return a.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),a.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback(function(a,g){if("touches"in a&&a.touches.length===2||a.type==="wheel"&&a.ctrlKey)return!c.current.allowPinchZoom;var y=be(a),x=n.current,b="deltaX"in a?a.deltaX:x[0]-y[0],w="deltaY"in a?a.deltaY:x[1]-y[1],S,C=a.target,E=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in a&&E==="h"&&C.type==="range")return!1;var R=window.getSelection(),O=R&&R.anchorNode,P=O?O===C||O.contains(C):!1;if(P)return!1;var T=Rt(E,C);if(!T)return!0;if(T?S=E:(S=E==="v"?"h":"v",T=Rt(E,C)),!T)return!1;if(!r.current&&"changedTouches"in a&&(b||w)&&(r.current=S),!S)return!0;var N=r.current||S;return No(N,g,a,N==="h"?b:w)},[]),f=m.useCallback(function(a){var g=a;if(!(!oe.length||oe[oe.length-1]!==i)){var y="deltaY"in g?Pt(g):be(g),x=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&Fo(S.delta,y)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}
vendor: 1,623 bytes, line 41
41if(!x){var b=(c.current.shards||[]).map(Ot).filter(Boolean).filter(function(S){return S.contains(g.target)}),w=b.length>0?s(g,b[0]):!c.current.noIsolation;w&&g.cancelable&&g.preventDefault()}}},[]),l=m.useCallback(function(a,g,y,x){var b={name:a,delta:g,target:y,should:x,shadowParent:_o(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),u=m.useCallback(function(a){n.current=be(a),r.current=void 0},[]),d=m.useCallback(function(a){l(a.type,Pt(a),a.target,s(a,e.lockRef.current))},[]),v=m.useCallback(function(a){l(a.type,be(a),a.target,s(a,e.lockRef.current))},[]);m.useEffect(function(){return oe.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:v}),document.addEventListener("wheel",f,re),document.addEventListener("touchmove",f,re),document.addEventListener("touchstart",u,re),function(){oe=oe.filter(function(a){return a!==i}),document.removeEventListener("wheel",f,re),document.removeEventListener("touchmove",f,re),document.removeEventListener("touchstart",u,re)}},[]);var h=e.removeScrollBar,p=e.inert;return m.createElement(m.Fragment,null,p?m.createElement(i,{styles:Wo(o)}):null,h?m.createElement(Po,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _o(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ho=mo(nn,Io);var $o=m.forwardRef(function(e,t){return m.createElement(ke,q({},e,{ref:t,sideCar:Ho}))});$o.classNames=ke.classNames;export{Ko as A,Zo as C,Ln as D,Fn as F,to as P,Yo as R,Cn as a,$o as b,Xo as c,Uo as d,qo as e,Vo as f,ce as g,Go as h,jo as u};
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.