Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/
Upload File :
Current File : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/Combination-CaeH2GTD.js

import{r as g,t as hn,j as I,a as mn}from"./app-CaLFrJ2c.js";import{d as $e,S as pn,f as gn,e as He,u as Xe,P as Re,c as vn}from"./index-__0AZvTB.js";import{c as Pt}from"./createLucideIcon-B-5LVL5F.js";import{c as yn}from"./utils-CytzSlOG.js";import{u as wn}from"./index-DxWl4fl1.js";var xn=hn.useId||(()=>{}),bn=0;function Lo(e){const[t,n]=g.useState(xn());return $e(()=>{n(r=>r??String(bn++))},[e]),e||(t?`radix-${t}`:"")}/**
 * @license lucide-react v0.474.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sn=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],No=Pt("Check",Sn);/**
 * @license lucide-react v0.474.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const En=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Do=Pt("ChevronDown",En);var An=g.createContext(void 0);function Fo(e){const t=g.useContext(An);return e||t||"ltr"}function Wo(e,[t,n]){return Math.min(n,Math.max(t,e))}const Cn=gn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Rn=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?pn:"button";return I.jsx(s,{className:yn(Cn({variant:t,size:n,className:e})),ref:i,...o})});Rn.displayName="Button";var Me=0;function _o(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??lt()),document.body.insertAdjacentElement("beforeend",e[1]??lt()),Me++,()=>{Me===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Me--}},[])}function lt(){const 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 Le="focusScope.autoFocusOnMount",Ne="focusScope.autoFocusOnUnmount",ut={bubbles:!1,cancelable:!0},Pn="FocusScope",On=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,f]=g.useState(null),u=He(o),d=He(i),l=g.useRef(null),m=Xe(t,a=>f(a)),h=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let a=function(w){if(h.paused||!c)return;const x=w.target;c.contains(x)?l.current=x:q(l.current,{select:!0})},p=function(w){if(h.paused||!c)return;const x=w.relatedTarget;x!==null&&(c.contains(x)||q(l.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const b of w)b.removedNodes.length>0&&q(c)};document.addEventListener("focusin",a),document.addEventListener("focusout",p);const S=new MutationObserver(v);return c&&S.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",p),S.disconnect()}}},[r,c,h.paused]),g.useEffect(()=>{if(c){dt.add(h);const a=document.activeElement;if(!c.contains(a)){const v=new CustomEvent(Le,ut);c.addEventListener(Le,u),c.dispatchEvent(v),v.defaultPrevented||(Tn(Dn(Ot(c)),{select:!0}),document.activeElement===a&&q(c))}return()=>{c.removeEventListener(Le,u),setTimeout(()=>{const v=new CustomEvent(Ne,ut);c.addEventListener(Ne,d),c.dispatchEvent(v),v.defaultPrevented||q(a??document.body,{select:!0}),c.removeEventListener(Ne,d),dt.remove(h)},0)}}},[c,u,d,h]);const y=g.useCallback(a=>{if(!n&&!r||h.paused)return;const p=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,v=document.activeElement;if(p&&v){const S=a.currentTarget,[w,x]=kn(S);w&&x?!a.shiftKey&&v===x?(a.preventDefault(),n&&q(w,{select:!0})):a.shiftKey&&v===w&&(a.preventDefault(),n&&q(x,{select:!0})):v===S&&a.preventDefault()}},[n,r,h.paused]);return I.jsx(Re.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});On.displayName=Pn;function Tn(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(q(r,{select:t}),document.activeElement!==n)return}function kn(e){const t=Ot(e),n=ft(t,e),r=ft(t.reverse(),e);return[n,r]}function Ot(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 ft(e,t){for(const n of e)if(!Mn(n,{upTo:t}))return n}function Mn(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 Ln(e){return e instanceof HTMLInputElement&&"select"in e}function q(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ln(e)&&t&&e.select()}}var dt=Nn();function Nn(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ht(e,t),e.unshift(t)},remove(t){var n;e=ht(e,t),(n=e[0])==null||n.resume()}}}function ht(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Dn(e){return e.filter(t=>t.tagName!=="A")}const Fn=["top","right","bottom","left"],Z=Math.min,W=Math.max,Se=Math.round,me=Math.floor,z=e=>({x:e,y:e}),Wn={left:"right",right:"left",bottom:"top",top:"bottom"},_n={start:"end",end:"start"};function je(e,t,n){return W(e,Z(t,n))}function U(e,t){return typeof e=="function"?e(t):e}function K(e){return e.split("-")[0]}function se(e){return e.split("-")[1]}function Ue(e){return e==="x"?"y":"x"}function Ke(e){return e==="y"?"height":"width"}function G(e){return["top","bottom"].includes(K(e))?"y":"x"}function qe(e){return Ue(G(e))}function Bn(e,t,n){n===void 0&&(n=!1);const r=se(e),o=qe(e),i=Ke(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ee(s)),[s,Ee(s)]}function In(e){const t=Ee(e);return[Ve(e),t,Ve(t)]}function Ve(e){return e.replace(/start|end/g,t=>_n[t])}function $n(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Hn(e,t,n,r){const o=se(e);let i=$n(K(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ve)))),i}function Ee(e){return e.replace(/left|right|bottom|top/g,t=>Wn[t])}function jn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tt(e){return typeof e!="number"?jn(e):{top:e,right:e,bottom:e,left:e}}function Ae(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 mt(e,t,n){let{reference:r,floating:o}=e;const i=G(t),s=qe(t),c=Ke(s),f=K(t),u=i==="y",d=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let h;switch(f){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:l};break;case"left":h={x:r.x-o.width,y:l};break;default:h={x:r.x,y:r.y}}switch(se(t)){case"start":h[s]-=m*(n&&u?-1:1);break;case"end":h[s]+=m*(n&&u?-1:1);break}return h}const Vn=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:l}=mt(u,r,f),m=r,h={},y=0;for(let a=0;a<c.length;a++){const{name:p,fn:v}=c[a],{x:S,y:w,data:x,reset:b}=await v({x:d,y:l,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});d=S??d,l=w??l,h={...h,[p]:{...h[p],...x}},b&&y<=50&&(y++,typeof b=="object"&&(b.placement&&(m=b.placement),b.rects&&(u=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:d,y:l}=mt(u,m,f)),a=-1)}return{x:d,y:l,placement:m,strategy:o,middlewareData:h}};async function le(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:l="floating",altBoundary:m=!1,padding:h=0}=U(t,e),y=Tt(h),p=c[m?l==="floating"?"reference":"floating":l],v=Ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(p)))==null||n?p:p.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:f})),S=l==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},b=Ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:S,offsetParent:w,strategy:f}):S);return{top:(v.top-b.top+y.top)/x.y,bottom:(b.bottom-v.bottom+y.bottom)/x.y,left:(v.left-b.left+y.left)/x.x,right:(b.right-v.right+y.right)/x.x}}const zn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:f}=t,{element:u,padding:d=0}=U(e,t)||{};if(u==null)return{};const l=Tt(d),m={x:n,y:r},h=qe(o),y=Ke(h),a=await s.getDimensions(u),p=h==="y",v=p?"top":"left",S=p?"bottom":"right",w=p?"clientHeight":"clientWidth",x=i.reference[y]+i.reference[h]-m[h]-i.floating[y],b=m[h]-i.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let A=E?E[w]:0;(!A||!await(s.isElement==null?void 0:s.isElement(E)))&&(A=c.floating[w]||i.floating[y]);const R=x/2-b/2,M=A/2-a[y]/2-1,L=Z(l[v],M),D=Z(l[S],M),F=L,O=A-a[y]-D,P=A/2-a[y]/2+R,B=je(F,P,O),T=!f.arrow&&se(o)!=null&&P!==B&&i.reference[y]/2-(P<F?L:D)-a[y]/2<0,k=T?P<F?P-F:P-O:0;return{[h]:m[h]+k,data:{[h]:B,centerOffset:P-B-k,...T&&{alignmentOffset:k}},reset:T}}}),Yn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:f,elements:u}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:a=!0,...p}=U(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=K(o),S=G(c),w=K(c)===c,x=await(f.isRTL==null?void 0:f.isRTL(u.floating)),b=m||(w||!a?[Ee(c)]:In(c)),E=y!=="none";!m&&E&&b.push(...Hn(c,a,y,x));const A=[c,...b],R=await le(t,p),M=[];let L=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(R[v]),l){const P=Bn(o,s,x);M.push(R[P[0]],R[P[1]])}if(L=[...L,{placement:o,overflows:M}],!M.every(P=>P<=0)){var D,F;const P=(((D=i.flip)==null?void 0:D.index)||0)+1,B=A[P];if(B)return{data:{index:P,overflows:L},reset:{placement:B}};let T=(F=L.filter(k=>k.overflows[0]<=0).sort((k,C)=>k.overflows[1]-C.overflows[1])[0])==null?void 0:F.placement;if(!T)switch(h){case"bestFit":{var O;const k=(O=L.filter(C=>{if(E){const N=G(C.placement);return N===S||N==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(N=>N>0).reduce((N,j)=>N+j,0)]).sort((C,N)=>C[1]-N[1])[0])==null?void 0:O[0];k&&(T=k);break}case"initialPlacement":T=c;break}if(o!==T)return{reset:{placement:T}}}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 Fn.some(t=>e[t]>=0)}const Xn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=U(e,t);switch(r){case"referenceHidden":{const i=await le(t,{...o,elementContext:"reference"}),s=pt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:gt(s)}}}case"escaped":{const i=await le(t,{...o,altBoundary:!0}),s=pt(i,n.floating);return{data:{escapedOffsets:s,escaped:gt(s)}}}default:return{}}}}};async function Un(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=K(n),c=se(n),f=G(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&f?-1:1,l=U(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:y}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof y=="number"&&(h=c==="end"?y*-1:y),f?{x:h*d,y:m*u}:{x:m*u,y:h*d}}const Kn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,f=await Un(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:s}}}}},qn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:p=>{let{x:v,y:S}=p;return{x:v,y:S}}},...f}=U(e,t),u={x:n,y:r},d=await le(t,f),l=G(K(o)),m=Ue(l);let h=u[m],y=u[l];if(i){const p=m==="y"?"top":"left",v=m==="y"?"bottom":"right",S=h+d[p],w=h-d[v];h=je(S,h,w)}if(s){const p=l==="y"?"top":"left",v=l==="y"?"bottom":"right",S=y+d[p],w=y-d[v];y=je(S,y,w)}const a=c.fn({...t,[m]:h,[l]:y});return{...a,data:{x:a.x-n,y:a.y-r,enabled:{[m]:i,[l]:s}}}}}},Zn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=U(e,t),d={x:n,y:r},l=G(o),m=Ue(l);let h=d[m],y=d[l];const a=U(c,t),p=typeof a=="number"?{mainAxis:a,crossAxis:0}:{mainAxis:0,crossAxis:0,...a};if(f){const w=m==="y"?"height":"width",x=i.reference[m]-i.floating[w]+p.mainAxis,b=i.reference[m]+i.reference[w]-p.mainAxis;h<x?h=x:h>b&&(h=b)}if(u){var v,S;const w=m==="y"?"width":"height",x=["top","left"].includes(K(o)),b=i.reference[l]-i.floating[w]+(x&&((v=s.offset)==null?void 0:v[l])||0)+(x?0:p.crossAxis),E=i.reference[l]+i.reference[w]+(x?0:((S=s.offset)==null?void 0:S[l])||0)-(x?p.crossAxis:0);y<b?y=b:y>E&&(y=E)}return{[m]:h,[l]:y}}}},Gn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:c}=t,{apply:f=()=>{},...u}=U(e,t),d=await le(t,u),l=K(o),m=se(o),h=G(o)==="y",{width:y,height:a}=i.floating;let p,v;l==="top"||l==="bottom"?(p=l,v=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(v=l,p=m==="end"?"top":"bottom");const S=a-d.top-d.bottom,w=y-d.left-d.right,x=Z(a-d[p],S),b=Z(y-d[v],w),E=!t.middlewareData.shift;let A=x,R=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=S),E&&!m){const L=W(d.left,0),D=W(d.right,0),F=W(d.top,0),O=W(d.bottom,0);h?R=y-2*(L!==0||D!==0?L+D:W(d.left,d.right)):A=a-2*(F!==0||O!==0?F+O:W(d.top,d.bottom))}await f({...t,availableWidth:R,availableHeight:A});const M=await s.getDimensions(c.floating);return y!==M.width||a!==M.height?{reset:{rects:!0}}:{}}}};function Pe(){return typeof window<"u"}function ce(e){return kt(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){var t;return(t=(kt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kt(e){return Pe()?e instanceof Node||e instanceof _(e).Node:!1}function $(e){return Pe()?e instanceof Element||e instanceof _(e).Element:!1}function Y(e){return Pe()?e instanceof HTMLElement||e instanceof _(e).HTMLElement:!1}function vt(e){return!Pe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _(e).ShadowRoot}function fe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qn(e){return["table","td","th"].includes(ce(e))}function Oe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ze(e){const t=Ge(),n=$(e)?H(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Jn(e){let t=Q(e);for(;Y(t)&&!ie(t);){if(Ze(t))return t;if(Oe(t))return null;t=Q(t)}return null}function Ge(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ie(e){return["html","body","#document"].includes(ce(e))}function H(e){return _(e).getComputedStyle(e)}function Te(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vt(e)&&e.host||X(e);return vt(t)?t.host:t}function Mt(e){const t=Q(e);return ie(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&fe(t)?t:Mt(t)}function ue(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Mt(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=_(o);if(i){const c=ze(s);return t.concat(s,s.visualViewport||[],fe(o)?o:[],c&&n?ue(c):[])}return t.concat(o,ue(o,[],n))}function ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lt(e){const t=H(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Y(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Se(n)!==i||Se(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function Qe(e){return $(e)?e:e.contextElement}function re(e){const t=Qe(e);if(!Y(t))return z(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lt(t);let s=(i?Se(n.width):n.width)/r,c=(i?Se(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const er=z(0);function Nt(e){const t=_(e);return!Ge()||!t.visualViewport?er:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_(e)?!1:t}function J(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Qe(e);let s=z(1);t&&(r?$(r)&&(s=re(r)):s=re(e));const c=tr(i,n,r)?Nt(i):z(0);let f=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,d=o.width/s.x,l=o.height/s.y;if(i){const m=_(i),h=r&&$(r)?_(r):r;let y=m,a=ze(y);for(;a&&r&&h!==y;){const p=re(a),v=a.getBoundingClientRect(),S=H(a),w=v.left+(a.clientLeft+parseFloat(S.paddingLeft))*p.x,x=v.top+(a.clientTop+parseFloat(S.paddingTop))*p.y;f*=p.x,u*=p.y,d*=p.x,l*=p.y,f+=w,u+=x,y=_(a),a=ze(y)}}return Ae({width:d,height:l,x:f,y:u})}function Je(e,t){const n=Te(e).scrollLeft;return t?t.left+n:J(X(e)).left+n}function Dt(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Je(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function nr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=X(r),c=t?Oe(t.floating):!1;if(r===s||c&&i)return n;let f={scrollLeft:0,scrollTop:0},u=z(1);const d=z(0),l=Y(r);if((l||!l&&!i)&&((ce(r)!=="body"||fe(s))&&(f=Te(r)),Y(r))){const h=J(r);u=re(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=s&&!l&&!i?Dt(s,f,!0):z(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-f.scrollTop*u.y+d.y+m.y}}function rr(e){return Array.from(e.getClientRects())}function or(e){const t=X(e),n=Te(e),r=e.ownerDocument.body,o=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Je(e);const c=-n.scrollTop;return H(r).direction==="rtl"&&(s+=W(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}function ir(e,t){const n=_(e),r=X(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,f=0;if(o){i=o.width,s=o.height;const u=Ge();(!u||u&&t==="fixed")&&(c=o.offsetLeft,f=o.offsetTop)}return{width:i,height:s,x:c,y:f}}function sr(e,t){const n=J(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Y(e)?re(e):z(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:s,height:c,x:f,y:u}}function yt(e,t,n){let r;if(t==="viewport")r=ir(e,n);else if(t==="document")r=or(X(e));else if($(t))r=sr(t,n);else{const o=Nt(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ae(r)}function Ft(e,t){const n=Q(e);return n===t||!$(n)||ie(n)?!1:H(n).position==="fixed"||Ft(n,t)}function cr(e,t){const n=t.get(e);if(n)return n;let r=ue(e,[],!1).filter(c=>$(c)&&ce(c)!=="body"),o=null;const i=H(e).position==="fixed";let s=i?Q(e):e;for(;$(s)&&!ie(s);){const c=H(s),f=Ze(s);!f&&c.position==="fixed"&&(o=null),(i?!f&&!o:!f&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||fe(s)&&!f&&Ft(e,s))?r=r.filter(d=>d!==s):o=c,s=Q(s)}return t.set(e,r),r}function ar(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Oe(t)?[]:cr(t,this._c):[].concat(n),r],c=s[0],f=s.reduce((u,d)=>{const l=yt(t,d,o);return u.top=W(l.top,u.top),u.right=Z(l.right,u.right),u.bottom=Z(l.bottom,u.bottom),u.left=W(l.left,u.left),u},yt(t,c,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function lr(e){const{width:t,height:n}=Lt(e);return{width:t,height:n}}function ur(e,t,n){const r=Y(t),o=X(t),i=n==="fixed",s=J(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const f=z(0);if(r||!r&&!i)if((ce(t)!=="body"||fe(o))&&(c=Te(t)),r){const m=J(t,!0,i,t);f.x=m.x+t.clientLeft,f.y=m.y+t.clientTop}else o&&(f.x=Je(o));const u=o&&!r&&!i?Dt(o,c):z(0),d=s.left+c.scrollLeft-f.x-u.x,l=s.top+c.scrollTop-f.y-u.y;return{x:d,y:l,width:s.width,height:s.height}}function De(e){return H(e).position==="static"}function wt(e,t){if(!Y(e)||H(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function Wt(e,t){const n=_(e);if(Oe(e))return n;if(!Y(e)){let o=Q(e);for(;o&&!ie(o);){if($(o)&&!De(o))return o;o=Q(o)}return n}let r=wt(e,t);for(;r&&Qn(r)&&De(r);)r=wt(r,t);return r&&ie(r)&&De(r)&&!Ze(r)?n:r||Jn(e)||n}const fr=async function(e){const t=this.getOffsetParent||Wt,n=this.getDimensions,r=await n(e.floating);return{reference:ur(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dr(e){return H(e).direction==="rtl"}const hr={convertOffsetParentRelativeRectToViewportRelativeRect:nr,getDocumentElement:X,getClippingRect:ar,getOffsetParent:Wt,getElementRects:fr,getClientRects:rr,getDimensions:lr,getScale:re,isElement:$,isRTL:dr};function _t(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mr(e,t){let n=null,r;const o=X(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),i();const u=e.getBoundingClientRect(),{left:d,top:l,width:m,height:h}=u;if(c||t(),!m||!h)return;const y=me(l),a=me(o.clientWidth-(d+m)),p=me(o.clientHeight-(l+h)),v=me(d),w={rootMargin:-y+"px "+-a+"px "+-p+"px "+-v+"px",threshold:W(0,Z(1,f))||1};let x=!0;function b(E){const A=E[0].intersectionRatio;if(A!==f){if(!x)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!_t(u,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(e)}return s(!0),i}function pr(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=Qe(e),d=o||i?[...u?ue(u):[],...ue(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const l=u&&c?mr(u,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(v=>{let[S]=v;S&&S.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!f&&h.observe(u),h.observe(t));let y,a=f?J(e):null;f&&p();function p(){const v=J(e);a&&!_t(a,v)&&n(),a=v,y=requestAnimationFrame(p)}return n(),()=>{var v;d.forEach(S=>{o&&S.removeEventListener("scroll",n),i&&S.removeEventListener("resize",n)}),l==null||l(),(v=h)==null||v.disconnect(),h=null,f&&cancelAnimationFrame(y)}}const gr=Kn,vr=qn,yr=Yn,wr=Gn,xr=Xn,xt=zn,br=Zn,Sr=(e,t,n)=>{const r=new Map,o={platform:hr,...n},i={...o.platform,_c:r};return Vn(e,t,{...o,platform:i})};var we=typeof document<"u"?g.useLayoutEffect:g.useEffect;function Ce(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(!Ce(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)&&!Ce(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Bt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bt(e,t){const n=Bt(e);return Math.round(t*n)/n}function Fe(e){const t=g.useRef(e);return we(()=>{t.current=e}),t}function Er(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:f,open:u}=e,[d,l]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=g.useState(r);Ce(m,r)||h(r);const[y,a]=g.useState(null),[p,v]=g.useState(null),S=g.useCallback(C=>{C!==E.current&&(E.current=C,a(C))},[]),w=g.useCallback(C=>{C!==A.current&&(A.current=C,v(C))},[]),x=i||y,b=s||p,E=g.useRef(null),A=g.useRef(null),R=g.useRef(d),M=f!=null,L=Fe(f),D=Fe(o),F=Fe(u),O=g.useCallback(()=>{if(!E.current||!A.current)return;const C={placement:t,strategy:n,middleware:m};D.current&&(C.platform=D.current),Sr(E.current,A.current,C).then(N=>{const j={...N,isPositioned:F.current!==!1};P.current&&!Ce(R.current,j)&&(R.current=j,mn.flushSync(()=>{l(j)}))})},[m,t,n,D,F]);we(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,l(C=>({...C,isPositioned:!1})))},[u]);const P=g.useRef(!1);we(()=>(P.current=!0,()=>{P.current=!1}),[]),we(()=>{if(x&&(E.current=x),b&&(A.current=b),x&&b){if(L.current)return L.current(x,b,O);O()}},[x,b,O,L,M]);const B=g.useMemo(()=>({reference:E,floating:A,setReference:S,setFloating:w}),[S,w]),T=g.useMemo(()=>({reference:x,floating:b}),[x,b]),k=g.useMemo(()=>{const C={position:n,left:0,top:0};if(!T.floating)return C;const N=bt(T.floating,d.x),j=bt(T.floating,d.y);return c?{...C,transform:"translate("+N+"px, "+j+"px)",...Bt(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:j}},[n,c,T.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:O,refs:B,elements:T,floatingStyles:k}),[d,O,B,T,k])}const Ar=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?xt({element:r.current,padding:o}).fn(n):{}:r?xt({element:r,padding:o}).fn(n):{}}}},Cr=(e,t)=>({...gr(e),options:[e,t]}),Rr=(e,t)=>({...vr(e),options:[e,t]}),Pr=(e,t)=>({...br(e),options:[e,t]}),Or=(e,t)=>({...yr(e),options:[e,t]}),Tr=(e,t)=>({...wr(e),options:[e,t]}),kr=(e,t)=>({...xr(e),options:[e,t]}),Mr=(e,t)=>({...Ar(e),options:[e,t]});var Lr="Arrow",It=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return I.jsx(Re.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"})})});It.displayName=Lr;var Nr=It,et="Popper",[$t,Bo]=vn(et),[Dr,Ht]=$t(et),jt=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return I.jsx(Dr,{scope:t,anchor:r,onAnchorChange:o,children:n})};jt.displayName=et;var Vt="PopperAnchor",zt=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ht(Vt,n),s=g.useRef(null),c=Xe(t,s);return g.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:I.jsx(Re.div,{...o,ref:c})});zt.displayName=Vt;var tt="PopperContent",[Fr,Wr]=$t(tt),Yt=g.forwardRef((e,t)=>{var nt,rt,ot,it,st,ct;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:l="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:y,...a}=e,p=Ht(tt,n),[v,S]=g.useState(null),w=Xe(t,ae=>S(ae)),[x,b]=g.useState(null),E=wn(x),A=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,M=r+(i!=="center"?"-"+i:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],F=D.length>0,O={padding:L,boundary:D.filter(Br),altBoundary:F},{refs:P,floatingStyles:B,placement:T,isPositioned:k,middlewareData:C}=Er({strategy:"fixed",placement:M,whileElementsMounted:(...ae)=>pr(...ae,{animationFrame:h==="always"}),elements:{reference:p.anchor},middleware:[Cr({mainAxis:o+R,alignmentAxis:s}),f&&Rr({mainAxis:!0,crossAxis:!1,limiter:l==="partial"?Pr():void 0,...O}),f&&Or({...O}),Tr({...O,apply:({elements:ae,rects:at,availableWidth:ln,availableHeight:un})=>{const{width:fn,height:dn}=at.reference,he=ae.floating.style;he.setProperty("--radix-popper-available-width",`${ln}px`),he.setProperty("--radix-popper-available-height",`${un}px`),he.setProperty("--radix-popper-anchor-width",`${fn}px`),he.setProperty("--radix-popper-anchor-height",`${dn}px`)}}),x&&Mr({element:x,padding:c}),Ir({arrowWidth:A,arrowHeight:R}),m&&kr({strategy:"referenceHidden",...O})]}),[N,j]=Kt(T),de=He(y);$e(()=>{k&&(de==null||de())},[k,de]);const rn=(nt=C.arrow)==null?void 0:nt.x,on=(rt=C.arrow)==null?void 0:rt.y,sn=((ot=C.arrow)==null?void 0:ot.centerOffset)!==0,[cn,an]=g.useState();return $e(()=>{v&&an(window.getComputedStyle(v).zIndex)},[v]),I.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:k?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:cn,"--radix-popper-transform-origin":[(it=C.transformOrigin)==null?void 0:it.x,(st=C.transformOrigin)==null?void 0:st.y].join(" "),...((ct=C.hide)==null?void 0:ct.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:I.jsx(Fr,{scope:n,placedSide:N,onArrowChange:b,arrowX:rn,arrowY:on,shouldHideArrow:sn,children:I.jsx(Re.div,{"data-side":N,"data-align":j,...a,ref:w,style:{...a.style,animation:k?void 0:"none"}})})})});Yt.displayName=tt;var Xt="PopperArrow",_r={top:"bottom",right:"left",bottom:"top",left:"right"},Ut=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Wr(Xt,r),s=_r[i.placedSide];return I.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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(Nr,{...o,ref:n,style:{...o.style,display:"block"}})})});Ut.displayName=Xt;function Br(e){return e!==null}var Ir=e=>({name:"transformOrigin",options:e,fn(t){var p,v,S;const{placement:n,rects:r,middlewareData:o}=t,s=((p=o.arrow)==null?void 0:p.centerOffset)!==0,c=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[u,d]=Kt(n),l={start:"0%",center:"50%",end:"100%"}[d],m=(((v=o.arrow)==null?void 0:v.x)??0)+c/2,h=(((S=o.arrow)==null?void 0:S.y)??0)+f/2;let y="",a="";return u==="bottom"?(y=s?l:`${m}px`,a=`${-f}px`):u==="top"?(y=s?l:`${m}px`,a=`${r.floating.height+f}px`):u==="right"?(y=`${-f}px`,a=s?l:`${h}px`):u==="left"&&(y=`${r.floating.width+f}px`,a=s?l:`${h}px`),{data:{x:y,y:a}}}});function Kt(e){const[t,n="center"]=e.split("-");return[t,n]}var Io=jt,$o=zt,Ho=Yt,jo=Ut,$r=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ee=new WeakMap,pe=new WeakMap,ge={},We=0,qt=function(e){return e&&(e.host||qt(e.parentNode))},Hr=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qt(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})},jr=function(e,t,n,r){var o=Hr(t,Array.isArray(e)?e:[e]);ge[n]||(ge[n]=new WeakMap);var i=ge[n],s=[],c=new Set,f=new Set(o),u=function(l){!l||c.has(l)||(c.add(l),u(l.parentNode))};o.forEach(u);var d=function(l){!l||f.has(l)||Array.prototype.forEach.call(l.children,function(m){if(c.has(m))d(m);else try{var h=m.getAttribute(r),y=h!==null&&h!=="false",a=(ee.get(m)||0)+1,p=(i.get(m)||0)+1;ee.set(m,a),i.set(m,p),s.push(m),a===1&&y&&pe.set(m,!0),p===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return d(t),c.clear(),We++,function(){s.forEach(function(l){var m=ee.get(l)-1,h=i.get(l)-1;ee.set(l,m),i.set(l,h),m||(pe.has(l)||l.removeAttribute(r),pe.delete(l)),h||l.removeAttribute(n)}),We--,We||(ee=new WeakMap,ee=new WeakMap,pe=new WeakMap,ge={})}},Vo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=$r(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),jr(r,o,n,"aria-hidden")):function(){return null}},V=function(){return V=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},V.apply(this,arguments)};function Zt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Vr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var xe="right-scroll-bar-position",be="width-before-scroll-bar",zr="with-scroll-bars-hidden",Yr="--removed-body-scroll-bar-size";function _e(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xr(e,t){var n=g.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 Ur=typeof window<"u"?g.useLayoutEffect:g.useEffect,St=new WeakMap;function Kr(e,t){var n=Xr(null,function(r){return e.forEach(function(o){return _e(o,r)})});return Ur(function(){var r=St.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(c){i.has(c)||_e(c,null)}),i.forEach(function(c){o.has(c)||_e(c,s)})}St.set(n,e)},[e]),n}function qr(e){return e}function Zr(e,t){t===void 0&&(t=qr);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 s=t(i,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(i),s=n}var f=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(f)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function Gr(e){e===void 0&&(e={});var t=Zr(null);return t.options=V({async:!0,ssr:!1},e),t}var Gt=function(e){var t=e.sideCar,n=Zt(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 g.createElement(r,V({},n))};Gt.isSideCarExport=!0;function Qr(e,t){return e.useMedium(t),Gt}var Qt=Gr(),Be=function(){},ke=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Be,onWheelCapture:Be,onTouchMoveCapture:Be}),o=r[0],i=r[1],s=e.forwardProps,c=e.children,f=e.className,u=e.removeScrollBar,d=e.enabled,l=e.shards,m=e.sideCar,h=e.noIsolation,y=e.inert,a=e.allowPinchZoom,p=e.as,v=p===void 0?"div":p,S=e.gapMode,w=Zt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=m,b=Kr([n,t]),E=V(V({},w),o);return g.createElement(g.Fragment,null,d&&g.createElement(x,{sideCar:Qt,removeScrollBar:u,shards:l,noIsolation:h,inert:y,setCallbacks:i,allowPinchZoom:!!a,lockRef:n,gapMode:S}),s?g.cloneElement(g.Children.only(c),V(V({},E),{ref:b})):g.createElement(v,V({},E,{className:f,ref:b}),c))});ke.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ke.classNames={fullWidth:be,zeroRight:xe};var Jr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Jr();return t&&e.setAttribute("nonce",t),e}function to(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function no(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ro=function(){var e=0,t=null;return{add:function(n){e==0&&(t=eo())&&(to(t,n),no(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oo=function(){var e=ro();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jt=function(){var e=oo(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},io={left:0,top:0,right:0,gap:0},Ie=function(e){return parseInt(e||"",10)||0},so=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[Ie(n),Ie(r),Ie(o)]},co=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return io;var t=so(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])}},ao=Jt(),oe="data-scroll-locked",lo=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(zr,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(c,"px ").concat(r,`;
  }
  body[`).concat(oe,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(c,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(xe,` {
    right: `).concat(c,"px ").concat(r,`;
  }
  
  .`).concat(be,` {
    margin-right: `).concat(c,"px ").concat(r,`;
  }
  
  .`).concat(xe," .").concat(xe,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(be," .").concat(be,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(oe,`] {
    `).concat(Yr,": ").concat(c,`px;
  }
`)},Et=function(){var e=parseInt(document.body.getAttribute(oe)||"0",10);return isFinite(e)?e:0},uo=function(){g.useEffect(function(){return document.body.setAttribute(oe,(Et()+1).toString()),function(){var e=Et()-1;e<=0?document.body.removeAttribute(oe):document.body.setAttribute(oe,e.toString())}},[])},fo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;uo();var i=g.useMemo(function(){return co(o)},[o]);return g.createElement(ao,{styles:lo(i,!t,o,n?"":"!important")})},Ye=!1;if(typeof window<"u")try{var ve=Object.defineProperty({},"passive",{get:function(){return Ye=!0,!0}});window.addEventListener("test",ve,ve),window.removeEventListener("test",ve,ve)}catch{Ye=!1}var te=Ye?{passive:!1}:!1,ho=function(e){return e.tagName==="TEXTAREA"},en=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ho(e)&&n[t]==="visible")},mo=function(e){return en(e,"overflowY")},po=function(e){return en(e,"overflowX")},At=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=tn(e,r);if(o){var i=nn(e,r),s=i[1],c=i[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},go=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vo=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tn=function(e,t){return e==="v"?mo(t):po(t)},nn=function(e,t){return e==="v"?go(t):vo(t)},yo=function(e,t){return e==="h"&&t==="rtl"?-1:1},wo=function(e,t,n,r,o){var i=yo(e,window.getComputedStyle(t).direction),s=i*r,c=n.target,f=t.contains(c),u=!1,d=s>0,l=0,m=0;do{var h=nn(e,c),y=h[0],a=h[1],p=h[2],v=a-p-i*y;(y||v)&&tn(e,c)&&(l+=v,m+=y),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(d&&Math.abs(l)<1||!d&&Math.abs(m)<1)&&(u=!0),u},ye=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ct=function(e){return[e.deltaX,e.deltaY]},Rt=function(e){return e&&"current"in e?e.current:e},xo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bo=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},So=0,ne=[];function Eo(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(So++)[0],i=g.useState(Jt)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var a=Vr([e.lockRef.current],(e.shards||[]).map(Rt),!0).filter(Boolean);return a.forEach(function(p){return p.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),a.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=g.useCallback(function(a,p){if("touches"in a&&a.touches.length===2||a.type==="wheel"&&a.ctrlKey)return!s.current.allowPinchZoom;var v=ye(a),S=n.current,w="deltaX"in a?a.deltaX:S[0]-v[0],x="deltaY"in a?a.deltaY:S[1]-v[1],b,E=a.target,A=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in a&&A==="h"&&E.type==="range")return!1;var R=At(A,E);if(!R)return!0;if(R?b=A:(b=A==="v"?"h":"v",R=At(A,E)),!R)return!1;if(!r.current&&"changedTouches"in a&&(w||x)&&(r.current=b),!b)return!0;var M=r.current||b;return wo(M,p,a,M==="h"?w:x)},[]),f=g.useCallback(function(a){var p=a;if(!(!ne.length||ne[ne.length-1]!==i)){var v="deltaY"in p?Ct(p):ye(p),S=t.current.filter(function(b){return b.name===p.type&&(b.target===p.target||p.target===b.shadowParent)&&xo(b.delta,v)})[0];if(S&&S.should){p.cancelable&&p.preventDefault();return}if(!S){var w=(s.current.shards||[]).map(Rt).filter(Boolean).filter(function(b){return b.contains(p.target)}),x=w.length>0?c(p,w[0]):!s.current.noIsolation;x&&p.cancelable&&p.preventDefault()}}},[]),u=g.useCallback(function(a,p,v,S){var w={name:a,delta:p,target:v,should:S,shadowParent:Ao(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),d=g.useCallback(function(a){n.current=ye(a),r.current=void 0},[]),l=g.useCallback(function(a){u(a.type,Ct(a),a.target,c(a,e.lockRef.current))},[]),m=g.useCallback(function(a){u(a.type,ye(a),a.target,c(a,e.lockRef.current))},[]);g.useEffect(function(){return ne.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:m}),document.addEventListener("wheel",f,te),document.addEventListener("touchmove",f,te),document.addEventListener("touchstart",d,te),function(){ne=ne.filter(function(a){return a!==i}),document.removeEventListener("wheel",f,te),document.removeEventListener("touchmove",f,te),document.removeEventListener("touchstart",d,te)}},[]);var h=e.removeScrollBar,y=e.inert;return g.createElement(g.Fragment,null,y?g.createElement(i,{styles:bo(o)}):null,h?g.createElement(fo,{gapMode:e.gapMode}):null)}function Ao(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Co=Qr(Qt,Eo);var Ro=g.forwardRef(function(e,t){return g.createElement(ke,V({},e,{ref:t,sideCar:Co}))});Ro.classNames=ke.classNames;export{$o as A,Rn as B,No as C,On as F,Io as R,Do as a,Lo as b,Bo as c,_o as d,Ro as e,Ho as f,Wo as g,Vo as h,jo as i,Fo as u};

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]