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-Bxy8jxZP.js

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

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