PageSourceSearch

https://snowchat.ai/_next/static/immutable/chunks/1691jx02mxb7c.js

js snowchat.ai collected 2026-10-05 12:45:59 UTC 53,705 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0804f-8512-75c2-b4b7-195428c9ef68")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,964842,e=>{"use strict";var t,r,n,i,l,o,s,u=e.i(943306),a=e.i(297068);e.s([],871247),e.i(871247);var c=e.i(564690),f=e.i(190657),d=e.i(145353),p=e.i(487811);let m=((t={}).nestedDrawers="--nested-drawers",t.height="--drawer-height",t.frontmostHeight="--drawer-frontmost-height",t.swipeMovementX="--drawer-swipe-movement-x",t.swipeMovementY="--drawer-swipe-movement-y",t.snapPointOffset="--drawer-snap-point-offset",t.swipeStrength="--drawer-swipe-strength",t),g=((r={}).swipeProgress="--drawer-swipe-progress",r),h={...d.popupStateMapping,...p.transitionStatusMapping},v=a.forwardRef(function(e,t){let{render:r,className:n,style:i,forceRender:l=!1,...o}=e,{store:s}=(0,c.useDialogRootContext)(),u=s.useState("open"),a=s.useState("nested"),d=s.useState("mounted"),p=s.useState("transitionStatus");return(0,f.useRenderElement)("div",e,{state:{open:u,transitionStatus:p},ref:[s.context.backdropRef,t],stateAttributesMapping:h,props:[{role:"presentation",hidden:!d,style:{pointerEvents:u?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[g.swipeProgress]:"0",[m.swipeStrength]:"1"}},o],enabled:l||!a})}),w=e.i(752344).DialogClose,b="data-drawer-content",y=a.forwardRef(function(e,t){let{render:r,className:n,style:i,...l}=e;return(0,c.useDialogRootContext)(),(0,f.useRenderElement)("div",e,{ref:t,props:[{[b]:""},l]})}),x=e.i(366983).DialogDescription;var S=e.i(809937),P=e.i(200622);let C=a.createContext(void 0);function E(e){let t=a.useContext(C);if(!1===e&&void 0===t)throw Error((0,P.default)(91));return t}let R={active:e=>e?{"data-active":""}:{"data-inactive":""}},M=a.forwardRef(function(e,t){let{render:r,className:n,style:i,...l}=e,o=E(!0),s=o?.active??!1,u=o?.visualStateStore,c=a.useRef(null);return(0,S.useIsoLayoutEffect)(()=>{let e=c.current;if(!e||!u)return;let t=()=>{let{swipeProgress:t,frontmostHeight:r}=u.getSnapshot();t<=0?e.style.setProperty(g.swipeProgress,"0"):e.style.setProperty(g.swipeProgress,`${t}`),r<=0?e.style.removeProperty(m.height):e.style.setProperty(m.height,`${r}px`)};t();let r=u.subscribe(t);return()=>{r(),e.style.setProperty(g.swipeProgress,"0"),e.style.removeProperty(m.height)}},[u]),(0,f.useRenderElement)("div",e,{ref:[t,c],state:{active:s},props:[{style:{[g.swipeProgress]:"0"}},l],stateAttributesMapping:R})}),D={active:e=>e?{"data-active":""}:{"data-inactive":""}},T=a.forwardRef(function(e,t){let{render:r,className:n,style:i,...l}=e,o=E(!0),s=o?.active??!1;return(0,f.useRenderElement)("div",e,{ref:t,state:{active:s},props:l,stateAttributesMapping:D})});var N=e.i(114396),k=e.i(832817),O=e.i(103435);let F=((n={})[n.open=d.CommonPopupDataAttributes.open]="open",n[n.closed=d.CommonPopupDataAttributes.closed]="closed",n[n.startingStyle=d.CommonPopupDataAttributes.startingStyle]="startingStyle",n[n.endingStyle=d.CommonPopupDataAttributes.endingStyle]="endingStyle",n.expanded="data-expanded",n.nestedDrawerOpen="data-nested-drawer-open",n.nestedDrawerSwiping="data-nested-drawer-swiping",n.swipeDismiss="data-swipe-dismiss",n.swipeDirection="data-swipe-direction",n.swiping="data-swiping",n);var A=e.i(980001),H=e.i(752080),Y=e.i(306733);let j=a.createContext(void 0);function X(e){let t=a.useContext(j);if(!1===e&&void 0===t)throw Error((0,P.default)(90));return t}var I=e.i(595410),B=e.i(232697);function W(e,t){let r=e+t;return r>=0?t:-Math.sqrt(-r)-e}function L(e,t,r){if(!Number.isFinite(t)||t<=0)return null;if("number"==typeof e)return Number.isFinite(e)?e<=1?(0,B.clamp)(e,0,1)*t:e:null;let n=e.trim();if(n.endsWith("px")){let e=Number.parseFloat(n);return Number.isFinite(e)?e:null}if(n.endsWith("rem")){let e=Number.parseFloat(n);return Number.isFinite(e)?e*r:null}return null}function $(){let{store:e}=(0,c.useDialogRootContext)(),{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:i}=X(),l=e.useState("viewportElement"),[o,s]=a.useState(0),[u,f]=a.useState(16),d=(0,N.useStableCallback)(()=>{let e=(0,I.ownerDocument)(l).documentElement;l&&s(l.offsetHeight),l||s(e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&f(t)});(0,S.useIsoLayoutEffect)(()=>
1{if(d(),!l||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(d);return e.observe(l),()=>{e.disconnect()}},[d,l]);let p=a.useMemo(()=>{if(!t||0===t.length||o<=0||i<=0)return[];let e=Math.min(i,o);if(!Number.isFinite(e)||e<=0)return[];let r=t.map(t=>{let r=L(t,o,u);if(null===r||!Number.isFinite(r))return null;let n=(0,B.clamp)(r,0,e);return{value:t,height:n,offset:Math.max(0,i-n)}}).filter(e=>!!e);if(r.length<=1)return r;let n=[],l=[];for(let e=r.length-1;e>=0;e-=1){let t=r[e];l.some(e=>1>=Math.abs(e-t.height))||(l.push(t.height),n.push(t))}return n.reverse(),n},[i,u,t,o]),m=a.useMemo(()=>{if(void 0===r)return p[0];if(null===r)return;let e=p.find(e=>Object.is(e.value,r));if(e)return e;let t=Math.min(i,o),n=L(r,o,u);if(null!==n&&Number.isFinite(n))return function(e,t){let r=null,n=1/0;for(let i of t){let t=Math.abs(i.height-e);t<n&&(n=t,r=i)}return r}((0,B.clamp)(n,0,t),p)??void 0},[r,i,p,u,o]);return{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:i,viewportHeight:o,resolvedSnapPoints:p,activeSnapPointOffset:m?.offset??null}}let z=a.createContext(null);var V=e.i(904876);let U=!1,_={...d.popupStateMapping,...p.transitionStatusMapping,expanded:e=>e?{[F.expanded]:""}:null,nestedDrawerOpen:e=>e?{[F.nestedDrawerOpen]:""}:null,nestedDrawerSwiping:e=>e?{[F.nestedDrawerSwiping]:""}:null,swipeDirection:e=>e?{[F.swipeDirection]:e}:null,swiping:e=>e?{[F.swiping]:""}:null},q=a.forwardRef(function(e,t){let r,{render:n,className:i,style:l,finalFocus:o,initialFocus:s,...d}=e,{store:p}=(0,c.useDialogRootContext)(),h=p.context.popupRef,{swipeDirection:v,frontmostHeight:w,hasNestedDrawer:b,nestedSwiping:y,nestedSwipeProgressStore:x,onPopupHeightChange:C,notifyParentFrontmostHeight:E,notifyParentHasNestedDrawer:R}=X(),M=p.useState("descriptionElementId"),D=p.useState("disablePointerDismissal"),T=p.useState("floatingRootContext"),F=p.useState("popupProps"),j=p.useState("modal"),I=p.useState("mounted"),B=p.useState("nested"),L=p.useState("nestedOpenDrawerCount"),q=p.useState("transitionStatus"),K=p.useState("open"),G=p.useState("openMethod"),J=p.useState("titleElementId"),Q=p.useState("role"),Z=T.useState("floatingId"),ee=d.id??Z,et=function(e){let t=a.useContext(z);if(!1===e&&null===t)throw Error((0,P.default)(92));return t}(!0);(0,A.useDialogPortalContext)();let{snapPoints:er,activeSnapPoint:en,activeSnapPointOffset:ei}=$(),el=L>0,eo=et?.swiping??!1,es=et?.swipeStrength??null,[eu,ea]=a.useState(0),ec=a.useRef(0),ef=(0,N.useStableCallback)(()=>{let e=h.current;if(!e)return;let t=e.offsetHeight;if(!(ec.current>0)||!(w>ec.current)||!(t>ec.current)){if(ec.current>0&&b){let e=ec.current;ea(e),C(e);return}t!==ec.current&&(ec.current=t,ea(t),C(t))}});(0,S.useIsoLayoutEffect)(()=>{if(!I){ec.current=0,ea(0),C(0);return}let e=h.current;if(!e||(U||("u">typeof CSS&&"registerProperty"in CSS&&([m.swipeMovementX,m.swipeMovementY,m.snapPointOffset].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),[{name:g.swipeProgress,initialValue:"0"},{name:m.swipeStrength,initialValue:"1"}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:"<number>",inherits:!1,initialValue:t})}catch{}})),U=!0),ef(),"function"!=typeof ResizeObserver))return;let t=new ResizeObserver(ef);return t.observe(e),()=>{t.disconnect()}},[ef,I,el,C,h]),(0,S.useIsoLayoutEffect)(()=>{let e=()=>{let e=h.current;if(!e)return;let t=x.getSnapshot();t>0?e.style.setProperty(g.swipeProgress,`${t}`):e.style.setProperty(g.swipeProgress,"0")};e();let t=x.subscribe(e),r=h.current;return()=>{t(),r&&r.style.setProperty(g.swipeProgress,"0")}},[x,h]),a.useEffect(()=>{if(K)return E?.(w),()=>{E?.(0)}},[w,K,E]),a.useEffect(()=>{if(R)return R(K||"ending"===q),()=>{R(!1)}},[R,K,q]),(0,H.useOpenChangeComplete)({open:K,ref:h,onComplete(){K&&p.context.onOpenChangeComplete?.(!0)}});let ed=void 0===s?h:s,ep=p.useStateSetter("popupElement"),em=!b&&"ending"!==q;eu&&!em&&(r=`${eu}px`);let eg=er&&er.length>0&&("down"===v||"up"===v),eh=null;eg&&null!==ei&&(eh="up"===v?-ei:ei);let ev=et?et.getDragStyles():k.EMPTY_OBJECT;if(eg&&"down"===v){let e=Number.parseFloat(String(ev[m.swipeMovementY]??0));ev=eo&&Number.isFinite(e)?{...ev,transform:void 0,[m.swipeMovementY]:`${W(ei??0,e)}px`}:{...ev,transform:void 0}}let ew=(0,f.useRenderElement)("div",e,{state:{open:K,nested:B,transitionStatus:q,expanded:1===en,nestedDrawerOpen:el,nestedDrawerSwiping:y,swipeDirection:v,swiping:eo},props:[F,{id:ee,"aria-labelledby":J,"aria-describedby":M,role:Q,...V.FOCUSABLE_POPUP_PROPS,hidden:!I,onKeyDown(e){Y.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{...ev,[g.swipeProgress]:"0",[m.nestedDrawers]:L,[m.height]:r,[m.snapPointOffset]:"number"==typeof eh?`${eh}px`:"0px",[m.frontmostHeight]:w?`${w}px`:void 0,[m.swipeStrength]:"number"==typeof es&&Number.isFinite(es)&&es>0?`${es}`:"1"}},d],ref:[t,h,ep],stateAttributesMapping:_});return(0,u.jsx)(O.FloatingFocusManager,{context:T,openInteractionType:G,disabled:!I,closeOnFocusOut:!D,initialFocus:ed,returnFocus:o,modal:!1!==j,restoreFocus:"popup",children:ew})}),K=e.i(665825).DialogPortal;function G(){let e={swipeProgress:0,frontmostHeight:0},t=new Set;return{getSnapshot:()=>e,set(r){let n=e.swipeProgress;void 0!==r.swipeProgress&&(n=Number.isFinite(r.swipeProgress)?r.swipeProgress:0);let i=e.frontmostHeight;void 0!==r.frontmostHeight&&(i=Number.isFinite(r.frontmostHeight)?r.frontmostHeight:0),(n!==e.swipeProgress||i!==e.frontmostHeight)&&(e={swipeProgress:n,frontmostHeight:i}
1,t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}var J=e.i(835300),Q=e.i(410596),Z=e.i(479995),ee=e.i(67019),et=e.i(654975),er=e.i(762458),en=e.i(593713),ei=e.i(507679);function el(){let e=0,t=new Set;return{getSnapshot:()=>e,set(r){let n=Number.isFinite(r)?r:0;n!==e&&(e=n,t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}function eo(){let e=(0,et.useId)(),t=E(!0),{store:r}=(0,c.useDialogRootContext)(!1),n=r.useState("open"),i=r.useState("nestedOpenDialogCount"),l=r.useState("popupElement"),o=0===i;return a.useEffect(()=>{if(t&&null!=e)return()=>{t.removeDrawer(e)}},[e,t]),a.useEffect(()=>{null!=e&&t?.setDrawerOpen(e,n)},[e,n,t]),a.useEffect(()=>{if(!n||!o||!ee.platform.os.android)return;let e=(0,Z.ownerWindow)(l).CloseWatcher;if(!e)return;let t=new e,i=(0,J.addEventListener)(t,"close",function(e){r.select("open")&&r.setOpen(!1,(0,en.createChangeEventDetails)(ei.REASONS.closeWatcher,e))});return()=>{i(),t.destroy()}},[r,o,n,l]),null}var es=e.i(222769),eu=e.i(804652),ea=e.i(880269);function ec(e,t,r=!1){let n=(0,ea.getComputedStyle)(e);if("vertical"===t){let t=n.overflowY;return("auto"===t||"scroll"===t)&&(r?e.clientHeight>0:e.scrollHeight>e.clientHeight)}let i=n.overflowX;return("auto"===i||"scroll"===i)&&(r?e.clientWidth>0:e.scrollWidth>e.clientWidth)}function ef(e,t,r="vertical",n=!1){let i=(0,ea.isHTMLElement)(e)?e:null;for(;(0,ea.isHTMLElement)(i)&&i!==t&&!(0,ea.isLastTraversableNode)(i);){if(ec(i,r,n))return i;i=(0,ea.getParentNode)(i)}return ec(t,r,n)?t:null}function ed(e,t,r){return"function"==typeof e?.elementFromPoint?e.elementFromPoint(t,r):null}function ep(e,t,r){switch(e){case"up":return-r;case"down":return r;case"left":return-t;case"right":return t;default:return 0}}function em(e){let t=(0,Z.ownerWindow)(e).getComputedStyle(e).transform,r=0,n=0,i=1;if(t&&"none"!==t){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(r=t[4],n=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(r=t[12],n=t[13],i=t[0])}}return{x:r,y:n,scale:i}}function eg(e){return Number.isFinite(e)&&e>0?e:null}function eh(e,t){return`translate3d(${e.x}px,${e.y}px,0) scale(${t})`}function ev(e,t,r){let n=e[r];if("function"==typeof n)try{n.call(e,t)}catch(e){if(e&&"object"==typeof e&&"name"in e&&"NotFoundError"===e.name)return;throw e}}function ew(e){let{enabled:t,directions:r,elementRef:n,movementCssVars:i,canStart:l,ignoreSelectorWhenTouch:o=!0,ignoreScrollableAncestors:s=!1,swipeThreshold:u,onDismiss:c,onProgress:f,onCancel:d,onSwipeStart:p,onRelease:m,onSwipingChange:g,trackDrag:h=!0}=e,v=1===r.length?r[0]:void 0,w=Math.max(0,"number"==typeof u?u:40),b=r.includes("left"),y=r.includes("right"),x=r.includes("up"),S=r.includes("down"),P=b||y,C=x||S,E=a.useMemo(()=>{let e=[];return C&&e.push("vertical"),P&&e.push("horizontal"),e},[P,C]),[R,M]=a.useState(void 0),[D,T]=a.useState(!1),[k,O]=a.useState(!1),F=a.useRef({x:0,y:0}),A=a.useRef({x:0,y:0}),H=a.useRef(null),Y=a.useRef({x:0,y:0,scale:1}),j=a.useRef(void 0),X=a.useRef(0),W=a.useRef(!1),L=a.useRef({x:0,y:0}),$=a.useRef(null),z=a.useRef(!1),V=a.useRef(!1),U=a.useRef(null),_=a.useRef(!1),q=a.useRef(!1),K=a.useRef({width:0,height:0}),G=a.useRef(0),J=a.useRef(w),Q=a.useRef(null),Z=a.useRef(null),ee=a.useRef({x:0,y:0}),et=a.useRef(null),er=a.useRef(!1),en=a.useRef(null),ei=(0,N.useStableCallback)(e=>{er.current!==e&&(er.current=e,T(e),g?.(e))});function el(e){if(!e)return;if("function"!=typeof u){J.current=w;return}let t=n.current;t&&(J.current=Math.max(0,u({element:t,direction:e})))}let eo=(0,N.useStableCallback)((e,t)=>{let r=Number.isFinite(e)?(0,B.clamp)(e,0,1):0,n=r!==G.current,i=!1;if(t){let e=et.current;i=!e||e.deltaX!==t.deltaX||e.deltaY!==t.deltaY||e.direction!==t.direction}(n||i)&&(G.current=r,t?et.current=t:n&&(et.current=null),f?.(r,t))}),es=(0,N.useStableCallback)(e=>{let t=n.current;if(!h||!t){e||(en.current=null);return}let r=t.style,l=en.current;e?(l||(en.current=[r.transition,r.transform]),r.transition="none"):l&&([r.transition,r.transform]=l,en.current=null);let o=A.current,s=Y.current,u=o.x-s.x,a=o.y-s.y;e&&(r.transform=eh(o,s.scale)),r.setProperty(i.x,`${u}px`),r.setProperty(i.y,`${a}px`)});function ew(e,t){if(null===t)return;let r=Z.current;if(r&&t>r.time){let n=Math.max(t-r.time,16);ee.current={x:(e.x-r.x)/n,y:(e.y-r.y)/n}}Z.current={x:e.x,y:e.y,time:t}}let eb=a.useCallback(()=>{M(void 0),ei(!1),O(!1),eo(0),J.current=w,F.current={x:0,y:0},A.current={x:0,y:0},Y.current={x:0,y:0,scale:1},j.current=void 0,X.current=0,W.current=!1,L.current={x:0,y:0}
1,$.current=null,z.current=!1,H.current=null,V.current=!1,U.current=null,_.current=!1,q.current=!1,K.current={width:0,height:0},Q.current=null,Z.current=null,ee.current={x:0,y:0},et.current=null,es(!1)},[ei,w,es,eo]);function ey(e){if("touches"in e){let t=e.touches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function ex(e){return"touches"in e||"touch"===e.pointerType}function eS(e,t){return ed((0,I.ownerDocument)(n.current),e.x,e.y)??(0,eu.getTarget)(t)}function eP(e,t){return P&&!C?ef(e,t,"horizontal"):C&&!P?ef(e,t,"vertical"):ef(e,t,"vertical")??ef(e,t,"horizontal")}function eC(e,t,r){_.current=!1;let i=ex(e),l=eS(t,e.nativeEvent),u=(0,I.ownerDocument)(n.current).body,a=i&&u?eP(l,u):null,c=r?.ignoreScrollableTarget??!1;if(a&&!c||(_.current=!!(a&&c),l&&l.closest('button,a,input,select,textarea,label,[role="button"]')&&(!i||o)))return!1;let f=n.current;if(s&&f&&l&&E.length>0&&!r?.ignoreScrollableAncestors&&function(e,t,r){let n=e;for(;(0,ea.isHTMLElement)(n)&&n!==t&&!(0,ea.isLastTraversableNode)(n);){for(let e of r)if(ec(n,e))return!0;n=(0,ea.getParentNode)(n)}return!1}(l,f,E))return!1;if(W.current=!1,j.current=void 0,X.current=0,F.current=t,Q.current=eg(e.timeStamp),L.current=t,H.current=t,f){K.current={width:f.offsetWidth,height:f.offsetHeight},el(v);let t=em(f);Y.current=t,A.current={x:t.x,y:t.y},ew({x:t.x,y:t.y},Q.current),"touches"in e||ev(f,e.pointerId,"setPointerCapture")}return p?.(e.nativeEvent),ei(!0),$.current=null,z.current=!0,eo(0),es(!0),!0}function eE(){eR(),_.current=!1,H.current=null}function eR(){V.current=!1,U.current=null}a.useEffect(()=>{"function"!=typeof u&&(J.current=w)},[w,u]);let eM=(0,N.useStableCallback)(e=>{if(!t||e.defaultPrevented||e.nativeEvent.defaultPrevented||!("touches"in e)&&0!==e.button)return;let r=ey(e);!r||(V.current=!0,U.current=r,_.current=!1,q.current=!1,(!l||l(r,{nativeEvent:e.nativeEvent,direction:v}))&&eC(e,r)&&eR())}),eD=(0,N.useStableCallback)(e=>{let i;if(!t)return;let l=A.current,o=Y.current,s=l.x-o.x,u=l.y-o.y,a={deltaX:s,deltaY:u,direction:j.current};if(!er.current){eE(),eo(0,a);return}ei(!1),$.current=null,eE(),q.current=!1;let f=n.current;!f||"touches"in e||ev(f,e.pointerId,"releasePointerCapture");let d=Q.current,p=eg(e.timeStamp),g=null!==d&&null!==p&&p>d?p-d:0,h=g>0?Math.max(g,50):0,w=ee.current.x,b=ee.current.y,y=Z.current;if(y&&null!==p&&p>=y.time){let e=p-y.time;if(e<=80){let t=Math.max(e,16),r=l.x-y.x,n=l.y-y.y,i=r/t,o=n/t;0!==i&&(w=i),0!==o&&(b=o)}else w=0,b=0}let x=m?.({event:e.nativeEvent,direction:j.current,deltaX:s,deltaY:u,velocityX:h>0?s/h:0,velocityY:h>0?u/h:0,releaseVelocityX:w,releaseVelocityY:b}),S="boolean"==typeof x;if(W.current&&!S){A.current={x:o.x,y:o.y},M(void 0),es(!1),eo(0,a);return}let P=!1;if(S)P=x,i=j.current??v;else for(let e of r){switch(e){case"right":s>J.current&&(P=!0,i="right");break;case"left":s<-J.current&&(P=!0,i="left");break;case"down":u>J.current&&(P=!0,i="down");break;case"up":u<-J.current&&(P=!0,i="up")}if(P)break}P&&i?(M(i),O(!0),es(!1),c?.(e.nativeEvent,{direction:i})):(A.current={x:o.x,y:o.y},M(void 0),es(!1),eo(0,a))}),eT=(0,N.useStableCallback)(e=>{let r=ey(e);if(!r)return;let i=!1;if(!("touches"in e)){let t=e.buttons%2==1;if(t&&(q.current=!0),0!==e.buttons&&!t)return void function(e){if(eE(),!er.current)return;ei(!1),$.current=null;let t=Y.current;A.current={x:t.x,y:t.y},M(void 0),q.current=!1,es(!1);let r=n.current;r&&ev(r,e.pointerId,"releasePointerCapture"),eo(0,{deltaX:0,deltaY:0,direction:void 0}),d?.(e.nativeEvent)}(e);if(0===e.buttons&&q.current){if(!er.current)return void eD(e);i=!0}}if(!D&&V.current){if(!ex(e)&&(e.defaultPrevented||e.nativeEvent.defaultPrevented))return void eE();if(!l||l(r,{nativeEvent:e.nativeEvent,direction:v})){let t=U.current,i=!1;if(ex(e)){let l=n.current;if(t&&l){let n=eS(r,e.nativeEvent),o=(0,I.ownerDocument)(l).body,s=o?eP(n,o):null;if(s&&((0,eu.contains)(l,s)||(0,eu.contains)(s,l))){let e=function(e,t,r){let n=Math.abs(t),i=Math.abs(r);if(C&&0!==r&&(!P||i>=n)){let t=Math.max(0,e.scrollHeight-e.clientHeight),n=e.scrollTop<=0,i=e.scrollTop>=t,l=r>0&&n&&S,o=r<0&&i&&x;return l||o}if(P&&0!==t&&(!C||n>i)){let r=Math.max(0,e.scrollWidth-e.clientWidth),n=e.scrollLeft<=0,i=e.scrollLeft>=r,l=t>0&&n&&y,o=t<0&&i&&b;return l||o}return null}(s,r.x-t.x,r.y-t.y);if(!1===e)return;!0===e&&(i=!0)}}}eC(e,r,{ignoreScrollableTarget:i,ignoreScrollableAncestors:i})&&(t&&i?(eR(),F.current=t,L.current=t,H.current=t,z.current=!1):(eR(),_.current=!1))}}let o=H.current,s=null===o?{x:0,y:0}:{x:r.x-o.x,y:r.y-o.y};H.current=r,function(e,r,n){let i,l,o;if(!t||!er.current)return;let s=(0,eu.getTarget)(e.nativeEvent);if(ex(e)&&!_.current&&eP(s,e.currentTarget))return;if("touches"in e||e.preventDefault(),z.current){F.current=r;let t=eg(e.timeStamp);null!==t&&(Q.current=t),z.current=!1}let u=r.x,a=r.y,c=n.x,f=n.y;(f<0&&a>L.current.y||f>0&&a<L.current.y)&&(L.current={x:L.current.x,y:a}),(c<0&&u>L.current.x||c>0&&u<L.current.x)&&(L.current={x:u,y:L.current.y});let d=u-F.current.x,p=a-F.current.y,m=a-L.current.y,g=u-L.current.x,h=$.current;if(null===h&&P&&C&&Math.sqrt(d*d+p*p)>=1&&($.current=h=Math.abs(d)>Math.abs(p)?"horizontal":"vertical"),j.current){let e=j.current,t=ep(e,g,m);t>J.current?(W.current=!1,M(e)):b&&y||x&&S||!(X.current-t>=10)||(W.current=!0)}else"vertical"===h?p>0?i="down":p<0&&(i="up"):"horizontal"===h?d>0?i="right":d<0&&(i="left"):i=Math.abs(d)>=Math.abs(p)?d>0?"right":"left":p>0?"down":"up",i&&("left"===i&&b||"right"===i&&y||"up"===i&&x||"down"===i&&S)&&(j.current=i,X.current=ep(i,d,p),M(i),el(i));let w=(l=e=>e>=0?e**.5:-(Math.abs(e)**.5),o=(e,t,r)=>!t&&e<0||!r&&e>0?l(e):e,{x:P?o(d,b,y):l(d),y:C?o(p,x,S):l(p)}),E=Y.current.x,R=Y.current.y;"horizontal"===h?P&&(E+=w.x):("vertical"===h||P&&(E+=w.x),C&&(R+=w.y)),A.current={x:E,y:R},es(!0),ew({x:E,y:R},eg(e.timeStamp));let D=E-Y.current.x,T=R-Y.current.y,N=j.current,k=v??j.current;if(!k)return eo(0,{deltaX:D,deltaY:T,direction:N});let O="left"===k||"right"===k?K.current.width:K.current.height,H=Y.current.scale||1;if(O<=0||H<=0)return eo(0,{deltaX:D,deltaY:T,direction:N});let I=ep(k,E-Y.current.x,R-Y.current.y);I<=0?eo(0,{deltaX:D,deltaY:T,direction:N}
1):eo(I/(O*H),{deltaX:D,deltaY:T,direction:N})}(e,r,s),!i||"touches"in e||eD(e)}),eN=(0,N.useStableCallback)((e,t)=>{eT({touches:e.touches,currentTarget:t,nativeEvent:e,defaultPrevented:e.defaultPrevented,timeStamp:e.timeStamp})}),ek=a.useCallback(()=>{let e=A.current,t=Y.current,r=e.x-t.x,n=e.y-t.y;return D||0!==r||0!==n||k?{transition:D?"none":void 0,transform:D?eh(e,t.scale):void 0,[i.x]:`${r}px`,[i.y]:`${n}px`}:{[i.x]:"0px",[i.y]:"0px"}},[k,D,i]);return{swiping:D,swipeDirection:R,dragDismissed:k,getPointerProps:a.useCallback(()=>t?{onPointerDown:eM,onPointerMove:eT,onPointerUp:eD,onPointerCancel:eD}:{},[t,eD,eT,eM]),getTouchProps:a.useCallback(()=>t?{onTouchStart:eM,onTouchMove:eT,onTouchEnd:eD,onTouchCancel:eD}:{},[t,eD,eT,eM]),moveNative:eN,getDragStyles:ek,reset:eb}}var eb=e.i(549822);let ey=((i={})[i.open=d.CommonPopupDataAttributes.open]="open",i[i.closed=d.CommonPopupDataAttributes.closed]="closed",i.disabled="data-disabled",i.swipeDirection="data-swipe-direction",i.swiping="data-swiping",i),ex={[ey.open]:""},eS={[ey.closed]:""},eP={[ey.swiping]:""},eC={[ey.disabled]:""},eE={open:e=>e?ex:eS,swiping:e=>e?eP:null,swipeDirection:e=>e?{[ey.swipeDirection]:e}:null,disabled:e=>e?eC:null},eR={up:"down",down:"up",left:"right",right:"left"},eM=a.forwardRef(function(e,t){let{render:r,className:n,style:i,disabled:l=!1,swipeDirection:o,...s}=e,{store:u}=(0,c.useDialogRootContext)(),{swipeDirection:d,frontmostHeight:p}=X(),h=E(!0),[v,w]=a.useState(!1),b=(0,es.useTimeout)(),y=a.useRef(null),x=a.useRef(null),S=a.useRef(!1),P=a.useRef({x:0,y:0}),C=a.useRef(null),R=a.useRef(!1),M=a.useRef(null),D=(0,eb.useBaseUiId)(e.id),T=(0,V.useTriggerRegistration)(D,u),k=u.useState("open"),O=(0,N.useStableCallback)(()=>{P.current.x=0,P.current.y=0}),A=o??eR[d],H=eR[A],Y=!l&&(!k||v);function j(){let e=u.context.popupRef.current;if(!e)return null;let t="left"===H||"right"===H?e.offsetWidth:e.offsetHeight;return t<=0?null:t}let I=(0,N.useStableCallback)(()=>{let e=u.context.popupRef.current;e&&R.current&&(e.style.removeProperty(m.swipeMovementX),e.style.removeProperty(m.swipeMovementY),e.removeAttribute(F.swiping)),e&&null!==M.current&&(e.style.transition=M.current,M.current=null);let t=u.context.backdropRef.current;t&&(t.removeAttribute(F.swiping),t.style.setProperty(g.swipeProgress,"0"),t.style.removeProperty(m.height)),h?.visualStateStore.set({swipeProgress:0,frontmostHeight:0}),R.current=!1});function B(e){u.select("open")||(S.current=!0,u.setOpen(!0,(0,en.createChangeEventDetails)(ei.REASONS.swipe,e,y.current??void 0)))}function W(){x.current=null,S.current=!1,C.current=null,w(!1)}function L(){W(),b.start(0,()=>{u.context.outsidePressEnabledRef.current=!0}),O(),I()}let $=ew({enabled:Y,directions:[A],elementRef:y,trackDrag:!1,movementCssVars:{x:m.swipeMovementX,y:m.swipeMovementY},onSwipeStart(e){b.clear(),u.context.outsidePressEnabledRef.current=!1,x.current=e,S.current=!1,w(!0),O()},onProgress(e,t){t&&x.current&&(P.current.x=t.deltaX,P.current.y=t.deltaY,t.direction!==A||(!(1>ep(A,t.deltaX,t.deltaY))||S.current)&&(S.current||B(x.current),function(){if(!v)return;let e=u.context.popupRef.current;if(!e||!u.select("open")||!u.select("mounted"))return;null==C.current&&(C.current=function(){let e=j();if(null==e)return null;let t=u.context.popupRef.current;if(!t)return e;let r=em(t),n="left"===H||"right"===H?r.x:r.y;return Number.isFinite(n)&&Math.abs(n)>.5?Math.min(e,Math.abs(n)):e}());let t=C.current;if(!t||!Number.isFinite(t)||t<=0)return;let{x:r,y:n}=P.current,i=Math.max(0,ep(A,r,n)),l=i>t?t+Math.sqrt(i-t):i,o=(t-l)*("left"===H||"up"===H?-1:1),s="left"===H||"right"===H,a=Math.max(0,Math.min(1,i/t)),c=Math.max(0,Math.min(1,1-a));e.style.setProperty(m.swipeMovementX,`${s?o:0}px`),e.style.setProperty(m.swipeMovementY,`${s?0:o}px`),e.setAttribute(F.swiping,""),null===M.current&&(M.current=e.style.transition),e.style.transition="none";let f=u.context.backdropRef.current;f&&(f.setAttribute(F.swiping,""),f.style.setProperty(g.swipeProgress,`${c}`),a>0&&p>0?f.style.setProperty(m.height,`${p}px`):f.style.removeProperty(m.height)),h?.visualStateStore.set({swipeProgress:a,frontmostHeight:a>0?p:0}),R.current=!0}()))},onRelease({event:e,direction:t,deltaX:r,deltaY:n,releaseVelocityX:i,releaseVelocityY:o}){let s,a=ep(A,r,n),c=ep(A,i,o),f=null==(s=j())?40:.5*s;if(null!=f&&t===A&&(null!=f&&a>=f||c>=.1)&&!l)u.select("open")||B(e);else S.current&&u.select("open")&&u.setOpen(!1,(0,en.createChangeEventDetails)(ei.REASONS.swipe,e,y.current??void 0));return L(),!1},onCancel:L}),z=$.getPointerProps(),U=$.getTouchProps(),_=$.reset;a.useEffect(()=>{Y||(_(),O(),I(),W())},[I,Y,O,_]),a.useEffect(()=>()=>{u.context.outsidePressEnabledRef.current=!0},[u]);let q={open:k,swiping:$.swiping,swipeDirection:A,disabled:l};return(0,f.useRenderElement)("div",e,{state:q,ref:[t,y,T],stateAttributesMapping:eE,props:[{role:"presentation","aria-hidden":!0,style:{pointerEvents:Y?void 0:"none",touchAction:"left"===A||"right"===A?"pan-y":"pan-x"},onPointerDown(e){"touch"!==e.pointerType&&(z.onPointerDown?.(e),e.cancelable&&e.preventDefault())},onPointerMove(e){"touch"!==e.pointerType&&z.onPointerMove?.(e)},onPointerUp(e){"touch"!==e.pointerType&&z.onPointerUp?.(e)},onPointerCancel(e){"touch"!==e.pointerType&&z.onPointerCancel?.(e)}},U,D?{id:D}:void 0,s]})}),eD=e.i(68024).DialogTitle,eT=e.i(208089).DialogTrigger;var eN=e.i(123334),ek=e.i(473361),eO=e.i(193170),eF=e.i(243832),eA=e.i(13536);let eH=a.createContext(void 0),eY=`[${b}]`,ej=a.forwardRef(function(e,t){let{render:r,className:n,style:i,children:l,...o}=e,{store:s}=(0,c.useDialogRootContext)(),f=s.context.popupRef,d=s.context.backdropRef,{swipeDirection:h,notifyParentSwipingChange:v,notifyParentSwipeProgressChange:w,frontmostHeight:b,snapToSequentialPoints:y}=X(),x=E(!0),{snapPoints:S,resolvedSnapPoints:P,activeSnapPoint:C,activeSnapPointOffset:R,setActiveSnapPoint:M,popupHeight:D}=$(),T=s.useState("open"),k=s.useState("mounted"),O=s.useState("nested"),A=s.useState("nestedOpenDrawerCount"),H=s.useState("viewportElement"),Y=s.useState("popupElement"),j=x?.visualStateStore,L=A>
10,V="left"===h||"right"===h?"horizontal":"vertical",U="vertical"===V,_=U?"horizontal":"vertical",[q,K]=a.useState(null),G=a.useRef(void 0),Q=a.useRef(null),ee=(0,ek.useAnimationFrame)(),et=a.useRef(!1),er=a.useRef(!1),el=a.useRef(""),eo=a.useRef(!1),es=a.useRef(!1),ec=a.useRef(null),ep=a.useContext(eH),em=a.useMemo(()=>{if(!S||S.length<2||"down"!==h&&"up"!==h||P.length<2)return null;let e=P.map(e=>e.offset).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(e.length<2)return null;let t=e[0],r=e[1],n=e[e.length-1],i=r-t;if(!Number.isFinite(i)||i<=0){let e=n-t;if(!Number.isFinite(e)||e<=0)return null;i=e}return{minOffset:t,range:i}},[P,S,h]),eg=a.useMemo(()=>em&&null!==R?(0,B.clamp)((R-em.minOffset)/em.range,0,1):null,[R,em]),eh=a.useMemo(()=>S&&S.length>0&&("down"===h||"up"===h)?"down"===h?["down","up"]:["up","down"]:[h],[S,h]),ev=(0,N.useStableCallback)(e=>{!function(e,t,r){if(r){e?.setAttribute(F.swipeDismiss,""),t?.setAttribute(F.swipeDismiss,"");return}e?.removeAttribute(F.swipeDismiss),t?.removeAttribute(F.swipeDismiss)}(f.current,d.current,e)}),eb=(0,N.useStableCallback)(()=>{ev(!1),f.current?.removeAttribute(p.TransitionStatusDataAttributes.endingStyle),K(null)}),ey=(0,N.useStableCallback)(()=>{er.current&&(er.current=!1,v?.(!1))}),ex=(0,N.useStableCallback)(({resolvedProgress:e,shouldTrackProgress:t,notifyParent:r})=>{let n=T&&!O&&t,i=n?e:0,l=T&&t?e:0;r&&w&&(w(l),l<=0&&ey()),j?.set({swipeProgress:i,frontmostHeight:i>0?b:0});let o=d.current;if(o){if(!n||i<=0){o.style.setProperty(g.swipeProgress,"0"),o.style.removeProperty(m.height);return}o.style.setProperty(g.swipeProgress,`${i}`),b>0?o.style.setProperty(m.height,`${b}px`):o.style.removeProperty(m.height)}}),eS=ew({enabled:k&&!L,directions:eh,elementRef:s.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:m.swipeMovementX,y:m.swipeMovementY},onSwipeStart(e){if("touches"in e||"pointerType"in e&&"touch"===e.pointerType)return;let t=f.current;if(!t)return;let r=(0,I.ownerDocument)(t),n=r.getSelection?.();if(!n||n.isCollapsed)return;let i=(0,ea.isElement)(n.anchorNode)?n.anchorNode:n.anchorNode?.parentElement,l=(0,ea.isElement)(n.focusNode)?n.focusNode:n.focusNode?.parentElement;((0,eu.contains)(t,i)||(0,eu.contains)(t,l))&&n.removeAllRanges()},onSwipingChange(e){et.current=e,eX(s.context.backdropRef.current,e),e||w||ey()},swipeThreshold:({element:e,direction:t})=>eB(e,t),canStart(e,t){let r=s.context.popupRef.current;if(!r)return!1;let n=r.ownerDocument,i=ed(n,e.x,e.y);if(!i||!(0,eu.contains)(r,i))return!1;let l=t.nativeEvent;return!(("touches"in l||"pointerType"in l&&"touch"===l.pointerType)&&eL(n,r)||"touchstart"===l.type&&eI(i))},onProgress(e,t){!function(e){if(er.current||!e)return;let t=e.direction??h,r="left"===t||"right"===t?e.deltaX:e.deltaY;!Number.isFinite(r)||10>Math.abs(r)||(er.current=!0,v?.(!0))}(t);let r=!!(S&&S.length>0);if(et.current&&"down"===h&&r&&t&&Number.isFinite(t.deltaY)){let e=s.context.popupRef.current;e&&(e.style.removeProperty("transform"),e.style.setProperty(m.swipeMovementY,`${W(R??0,t.deltaY)}px`))}let n=t?.direction??eS.swipeDirection,i=void 0===n||n===h,l="down"===h||"up"===h,o=r&&l||!r||"left"===h||"right"===h||i,u=e;if(em&&D>0){if(t&&Number.isFinite(t.deltaY)){let e=R??em.minOffset,r=(0,B.clamp)(e+t.deltaY,0,D);u=(0,B.clamp)((r-em.minOffset)/em.range,0,1)}else if(null!==eg)u=eg;else if("down"===n||"up"===n){let t=e*D,r=R??em.minOffset;u=(0,B.clamp)((("down"===n?r+t:r-t)-em.minOffset)/em.range,0,1)}}ex({resolvedProgress:u,shouldTrackProgress:o,notifyParent:!0})},onRelease({event:e,deltaX:t,deltaY:r,direction:n,velocityX:i,velocityY:l,releaseVelocityX:o,releaseVelocityY:u}){let a={deltaX:t,deltaY:r,velocityX:i,velocityY:l,releaseVelocityX:o,releaseVelocityY:u};function c(e){let t=s.context.popupRef.current;t&&(ey(),ev(!0),t.style.removeProperty("transition"),t.setAttribute(p.TransitionStatusDataAttributes.endingStyle,""),eN.flushSync(()=>{K(function({direction:e,deltaX:t,deltaY:r,velocityX:n,velocityY:i,releaseVelocityX:l,releaseVelocityY:o}){if(!e)return null;let u=s.context.popupRef.current;if(!u)return null;let a="left"===e||"right"===e?u.offsetWidth:u.offsetHeight;if(!Number.isFinite(a)||a<=0)return null;
1let c=S&&S.length>0?R??0:0,f=0;"down"===e?f=c:"up"===e&&(f=-c);let d=f+("left"===e||"right"===e?t:r),p=Math.max(0,a-("left"===e||"up"===e?-d:d));if(!Number.isFinite(p)||p<=0)return null;let m="left"===e||"right"===e?l:o,g=Math.abs(m)>0&&Number.isFinite(m)?m:"left"===e||"right"===e?n:i,h="left"===e||"up"===e?-g:g;if(!Number.isFinite(h)||h<=.2)return null;let v=(0,B.clamp)(h,.2,4),w=(0,B.clamp)(p/v,80,360);if(!Number.isFinite(w))return null;let b=(0,B.clamp)(.1+(w-80)/280*.9,.1,1);return!Number.isFinite(b)||b<=0?null:b}({direction:e,...a}))}))}if(!S||0===S.length){if(!n)return void eb();let e=s.context.popupRef.current;if(!e)return void eb();let o=eB(e,n),u="left"===n||"right"===n?t:r;if(!Number.isFinite(u))return void eb();let a="left"===n||"up"===n?-u:u;if(a<=0)return eb(),!1;let f="left"===n||"right"===n?i:l;if(("left"===n||"up"===n?-f:f)>=.5&&a>0)return c(n),!0;let d=a>o;return d?c(n):eb(),d}if("down"!==h&&"up"!==h||!D||0===P.length)return void eb();let f="down"===h?r:-r;if(!Number.isFinite(f))return void eb();let d=Math.sign(f),m="down"===h?u:-u,g="down"===h?l:-l,v=Number.isFinite(m)?m:g;if(0!==d&&Math.abs(f)>=10&&Number.isFinite(v)){let e=Math.sign(v);0!==e&&e!==d&&(v=g)}let w=R??0,b=(0,B.clamp)(w+f,0,D),x=Number.isFinite(v)&&Math.abs(v)>=.5?300*(0,B.clamp)(v,-4,4):0,E=y?b:(0,B.clamp)(b+x,0,D),T=(0,en.createChangeEventDetails)(ei.REASONS.swipe,e),N=()=>(G.current=C,M?.(null,T),c(h),!0);if(y){let e=[...P].sort((e,t)=>e.offset-t.offset);if(0===e.length)return eb(),!1;let t=0,r=Math.abs(w-e[0].offset);for(let n=1;n<e.length;n+=1){let i=Math.abs(w-e[n].offset);i<r&&(r=i,t=n)}let n=e[0];for(let t of(r=Math.abs(E-n.offset),e)){let e=Math.abs(E-t.offset);e<r&&(r=e,n=t)}let i=Math.sign(v),l=E;if(0!==d&&0!==i&&i===d&&Math.abs(v)>=.5){let r=(0,B.clamp)(t+d,0,e.length-1);if(r!==t){let t=e[r];(d>0?E<t.offset:E>t.offset)&&(n=t,l=t.offset)}else if(d>0)return N()}return Math.abs(l-D)<Math.abs(l-n.offset)?N():(M?.(n.value,T),eb(),!1)}if(v>=.5&&f>0)return N();let k=P[0],O=Math.abs(E-k.offset);for(let e of P){let t=Math.abs(E-e.offset);t<O&&(O=t,k=e)}return Math.abs(E-D)<O?N():(M?.(k.value,T),eb(),!1)},onDismiss(e){j?.set({swipeProgress:0,frontmostHeight:0});let t=s.context.backdropRef.current;t&&(t.style.setProperty(g.swipeProgress,"0"),t.style.removeProperty(m.height));let r=(0,en.createChangeEventDetails)(ei.REASONS.swipe,e);if(s.setOpen(!1,r),r.isCanceled){let t=G.current;void 0!==t&&M?.(t,(0,en.createChangeEventDetails)(ei.REASONS.swipe,e)),G.current=void 0,Q.current?.(),eb();return}s.select("open")?ee.request(()=>{if(s.select("open")){let t=G.current;void 0!==t&&M?.(t,(0,en.createChangeEventDetails)(ei.REASONS.swipe,e)),G.current=void 0,eb(),Q.current?.()}else G.current=void 0}):(G.current=void 0,ev(!0))}}),eP=eS.getPointerProps(),eC=eS.getTouchProps(),{moveNative:eE,reset:eR}=eS;Q.current=eR,a.useEffect(()=>{let e=H??Y;if(!e)return;let t=(0,I.ownerDocument)(e),r=(0,Z.ownerWindow)(t);return(0,J.addEventListener)(t,"touchmove",function(n){var i;if(ep?.onTouchMove(n),es.current)return;let l=ec.current,o=n.touches[0];if(!o||!l)return;let s=U?o.clientY-l.lastY:o.clientX-l.lastX;if(e$(n,r)){l.allowSwipe=!1,ez(l,o);return}if(2===n.touches.length||eL(t,e)||!T||!k||L||function(e,t,r){if(e.preserveNativeCrossAxisScroll)return!0;if(!0===e.allowSwipe||!e.hasCrossAxisScrollableContent)return!1;let n=r?t.clientY-e.startY:t.clientX-e.startX,i=r?t.clientX-e.startX:t.clientY-e.startY,l=Math.abs(n),o=Math.abs(i);return!(o<6)&&!(o<=l+2)&&(e.preserveNativeCrossAxisScroll=!0,!0)}(l,o,U))return void ez(l,o);let u=l.scrollTarget;if(!u||u===t.documentElement||u===t.body){n.cancelable&&n.preventDefault(),n.stopPropagation(),eE(n,e),ez(l,o);return}if(i=u,"vertical"===V?!(i.scrollHeight>i.clientHeight):!(i.scrollWidth>i.clientWidth)){n.cancelable&&n.preventDefault(),n.stopPropagation(),ez(l,o);return}if(0!==s){let e=function(e,t,r,n){let{offset:i,max:l}=eV(e,t),o=eU(r,t);return null!==o&&!!(o?n>0:n<0)&&(o?i<=0:i>=l)}(u,V,h,s);l.allowSwipe?n.cancelable&&n.preventDefault():n.cancelable&&e?(l.allowSwipe=!0,n.preventDefault()):l.allowSwipe=!1}!0===l.allowSwipe&&(n.stopPropagation(),eE(n,e)),ez(l,o)},{passive:!1,capture:!0})},[k,L,T,Y,U,V,h,eE,H,ep]),a.useEffect(()=>{!em||eS.swiping||ex({resolvedProgress:!T||O?0:eg??0,shouldTrackProgress:!0,notifyParent:!1})},[ex,b,O,w,T,eg,em,eS.swiping,s,j]),a.useEffect(()=>{if(w)return T||w(0),()=>{w(0)}},[w,T]),a.useEffect(()=>{T&&(eR(),eb())},[eb,T,eR]),a.useEffect(()=>{let e=d.current;return()=>{j?.set({swipeProgress:0,frontmostHeight:0}),eX(e,!1);let t=d.current;t!==e&&eX(t,!1),ey()}},[d,ey,j]);let eM=a.useMemo(()=>({swiping:eS.swiping,getDragStyles:eS.getDragStyles,swipeStrength:q??null,setSwipeDismissed:ev}),[ev,eS.getDragStyles,eS.swiping,q]);function eD(){es.current=!1,ec.current=null,el.current="",eo.current=!1}return(0,u.jsx)(eO.DialogViewport,{ref:t,className:n,style:i,render:r,...(0,eF.mergeProps)(o,{onPointerDown(e){var t;if(el.current=e.pointerType,eo.current="pen"===e.pointerType,!T||!k||L)return;let r=ed((0,I.ownerDocument)(e.currentTarget),e.clientX,e.clientY);eI(r)||(t=r,t?.closest(eY))||"touch"!==e.pointerType&&eP.onPointerDown?.(e)},onPointerMove(e){"touch"!==e.pointerType&&eP.onPointerMove?.(e)},onPointerUp(e){el.current===e.pointerType&&(el.current=""),"touch"!==e.pointerType&&eP.onPointerUp?.(e)},onPointerCancel(e){el.current===e.pointerType&&(el.current=""),"touch"!==e.pointerType&&eP.onPointerCancel?.(e)},onTouchStart(e){var t;if("pen"===el.current&&eo.current){eo.current=!1,es.current=!1,ec.current=null;return}if(!T||!k||L){es.current=!1,ec.current=null;return}let r=e.touches[0];if(!r)return;if(e$((t=e).nativeEvent,(0,Z.ownerWindow)(t.currentTarget))){es.current=!1,ec.current=null;return}let n=ed((0,I.ownerDocument)(e.currentTarget),r.clientX,r.clientY),i=H??Y,l=(0,eu.getTarget)(e.nativeEvent),o=(0,ea.isElement)(l)?l:null;if(i&&o&&!(0,eu.contains)(i,o)){es.current=!0,ec.current=null;return}if(ep?.onTouchStart(e),es.current=eI(n),es.current){ec.current=null;return}let s=null,u=!1;i&&o&&(s=ef(o,i,V),u=null!=ef(o,i,_));let a=null;s&&(a=!!function(e,t,r){let{offset:n,max:i}=eV(e,t),l=eU(r,t);return null!==l&&(l?n<=0:n>=i)}(s,V,h)&&null),ec.current={startX:r.clientX,startY:r.clientY,lastX:r.clientX,lastY:r.clientY,scrollTarget:s,hasCrossAxisScrollableContent:u,allowSwipe:a,preserveNativeCrossAxisScroll:!1},eC.onTouchStart?.(e)},onTouchEnd(e){ep?.onTouchEnd(e),eD(),eC.onTouchEnd?.(e)},onTouchCancel(e){ep?.onTouchCancel(),eD(),eC.onTouchCancel?.(e)},"data-nested-dialog-open":void 0}),children:(0,u.jsx)(z.Provider,{value:eM,children:l})})});function eX(e,t){if(e){if(t)return void e.setAttribute(F.swiping,"");e.removeAttribute(F.swiping)}}function eI(e){return!!e?.closest(eA.BASE_UI_SWIPE_IGNORE_SELECTOR)}function eB(e,t){return Math.max(.5*("left"===t||"right"===t?e.offsetWidth:e.offsetHeight),10)}function eW(e,t){return e instanceof t.HTMLInputElement&&"range"===e.type}function eL(e,t){let r,n,i=(0,eu.activeElement)(e);if(i&&(0,eu.contains)(t,i)&&(0,ea.isElement)(i)&&("INPUT"===i.tagName||"TEXTAREA"===i.tagName)){let{selectionStart:e,selectionEnd:t}=i;if(null!=e&&null!=t&&e<t)return!0}let l=e.getSelection?.();return!!l&&!l.isCollapsed&&(r=(0,ea.isElement)(l.anchorNode)?l.anchorNode:l.anchorNode?.parentElement,n=(0,ea.isElement)(l.focusNode)?l.focusNode:l.focusNode?.parentElement,l.containsNode(t,!0)||(0,eu.contains)(t,r)||(0,eu.contains)(t,
1n))}function e$(e,t){let r=e.composedPath();return r?r.some(e=>eW(e,t)):eW((0,eu.getTarget)(e),t)}function ez(e,t){e.lastX=t.clientX,e.lastY=t.clientY}function eV(e,t){if("vertical"===t){let t=Math.max(0,e.scrollHeight-e.clientHeight);return{offset:e.scrollTop,max:t}}let r=Math.max(0,e.scrollWidth-e.clientWidth);return{offset:e.scrollLeft,max:r}}function eU(e,t){return"vertical"===t?"down"===e||"up"!==e&&null:"right"===e||"left"!==e&&null}var e_=e.i(90231);let eq=((l={}).keyboardInset="--drawer-keyboard-inset",l),eK=new Set(["email","number","password","search","tel","text","url"]),eG=Symbol("KeyboardTapBlocked");function eJ(e){if(e.isContentEditable)return!0;let t=(0,Z.ownerWindow)(e);return!!(e instanceof t.HTMLTextAreaElement||e instanceof t.HTMLInputElement&&eK.has(e.type))&&!e.matches(":disabled")}function eQ(e){if(!(0,ea.isHTMLElement)(e))return null;if(eJ(e))return e.isContentEditable?function(e){let t=e;for(;t.parentElement?.isContentEditable;)t=t.parentElement;return t}(e):e;let t=e.closest("label"),r=t?.control??null;return(0,ea.isHTMLElement)(r)&&eJ(r)?r:null}function eZ(e){let t=e.visualViewport;if(!t||1!==t.scale||e.innerHeight-t.height<=60)return null;let r=Math.max(0,t.offsetTop);return{top:r,bottom:Math.min(e.innerHeight,r+t.height)}}var e0=e.i(294976);e.s(["Backdrop",0,v,"Close",0,w,"Content",0,y,"Description",0,x,"Handle",()=>e0.DialogHandle,"Indent",0,M,"IndentBackground",0,T,"Popup",0,q,"Portal",0,K,"Provider",0,function(e){let{children:t}=e,[r,n]=a.useState(()=>new Map),[i]=a.useState(G),l=(0,N.useStableCallback)((e,t)=>{n(r=>{if(r.get(e)===t)return r;let n=new Map(r);return n.set(e,t),n})}),o=(0,N.useStableCallback)(e=>{n(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r})}),s=a.useMemo(()=>{for(let e of r.values())if(e)return!0;return!1},[r]),c=a.useMemo(()=>({setDrawerOpen:l,removeDrawer:o,active:s,visualStateStore:i}),[s,o,l,i]);return(0,u.jsx)(C.Provider,{value:c,children:t})},"Root",0,function(e){let{children:t,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:l,disablePointerDismissal:f=!1,modal:d=!0,actionsRef:p,handle:m,triggerId:g,defaultTriggerId:h=null,swipeDirection:v="down",snapToSequentialPoints:w=!1,snapPoints:b,snapPoint:y,defaultSnapPoint:x,onSnapPointChange:S}=e,P=X(!0),C=P?.onNestedSwipeProgressChange,E=P?.onNestedFrontmostHeightChange,R=P?.onNestedSwipingChange,M=P?.onNestedDrawerPresenceChange,[D,T]=a.useState(0),[k,O]=a.useState(0),[F,A]=a.useState(!1),[H,Y]=a.useState(!1),[I]=a.useState(el),B=void 0!==x?x:b?.[0]??null,W=void 0!==y,[L,$]=(0,Q.useControlled)({controlled:y,default:B,name:"Drawer",state:"snapPoint"}),z=a.useRef(!1),V=(0,N.useStableCallback)((e,t)=>{let r=t??(0,en.createChangeEventDetails)(ei.REASONS.none);S?.(e,r),r.isCanceled||$(e)}),U=a.useMemo(()=>W||!b||0===b.length||null!==L&&b.some(e=>Object.is(e,L))?L:B,[L,W,B,b]),_=(0,N.useStableCallback)(e=>{T(e),!z.current&&e>0&&O(e)}),q=(0,N.useStableCallback)(e=>{if(e>0){z.current=!0,O(e);return}z.current=!1,D>0&&O(D)}),K=(0,N.useStableCallback)(e=>{A(e)}),G=(0,N.useStableCallback)(e=>{I.set(e),C?.(e)}),J=(0,N.useStableCallback)(e=>{Y(e),R?.(e)}),Z=(0,N.useStableCallback)((e,t)=>
1{i?.(e,t),!t.isCanceled&&!e&&b&&b.length>0&&V(B,(0,en.createChangeEventDetails)(t.reason,t.event,t.trigger))}),ee=a.useMemo(()=>({swipeDirection:v,snapToSequentialPoints:w,snapPoints:b,activeSnapPoint:U,setActiveSnapPoint:V,frontmostHeight:k,popupHeight:D,hasNestedDrawer:F,nestedSwiping:H,nestedSwipeProgressStore:I,onNestedDrawerPresenceChange:K,onPopupHeightChange:_,onNestedFrontmostHeightChange:q,onNestedSwipingChange:J,onNestedSwipeProgressChange:G,notifyParentFrontmostHeight:E,notifyParentSwipingChange:R,notifyParentSwipeProgressChange:C,notifyParentHasNestedDrawer:M}),[U,k,F,H,I,M,C,R,E,K,q,G,J,_,D,V,b,w,v]),et="function"==typeof t?e=>(0,u.jsxs)(a.Fragment,{children:[o||(o=(0,u.jsx)(eo,{})),t(e)]}):(0,u.jsxs)(a.Fragment,{children:[s||(s=(0,u.jsx)(eo,{})),t]});return(0,u.jsx)(j.Provider,{value:ee,children:(0,u.jsx)(c.IsDrawerContext.Provider,{value:!0,children:(0,u.jsx)(er.Dialog.Root,{open:r,defaultOpen:n,onOpenChange:Z,onOpenChangeComplete:l,disablePointerDismissal:f,modal:d,actionsRef:p,handle:m,triggerId:g,defaultTriggerId:h,children:et})})})},"SwipeArea",0,eM,"Title",0,eD,"Trigger",0,eT,"Viewport",0,ej,"VirtualKeyboardProvider",0,function(e){let{children:t}=e,{store:r}=(0,c.useDialogRootContext)(),n=r.useState("open"),i=r.useState("mounted"),l=r.useState("nestedOpenDialogCount"),o=r.useState("viewportElement"),s=l>0,f=a.useRef(!1),d=a.useRef(null),p=a.useRef(null),m=a.useRef(null),g=(0,ek.useAnimationFrame)(),h=(0,N.useStableCallback)(()=>{let e=m.current;e&&(e.element.style.overflowAnchor=e.overflowAnchor,e.element.style.paddingBottom=e.paddingBottom,e.element.style.scrollPaddingBottom=e.scrollPaddingBottom,m.current=null)}),v=(0,N.useStableCallback)((e,t)=>{let r=Math.max(0,Math.ceil(t)),n=m.current;if(n&&!n.element.isConnected&&(h(),n=null),0===r)return void h();if(n&&n.element!==e&&(h(),n=null),!n){let t=(0,ea.getComputedStyle)(e);m.current=n={element:e,overflowAnchor:e.style.overflowAnchor,paddingBottom:e.style.paddingBottom,scrollPaddingBottom:e.style.scrollPaddingBottom,computedPaddingBottom:Number.parseFloat(t.paddingBottom)||0,computedScrollPaddingBottom:Number.parseFloat(t.scrollPaddingBottom)||0}}e.style.overflowAnchor="none",e.style.paddingBottom=`${n.computedPaddingBottom+r}px`,e.style.scrollPaddingBottom=`${n.computedScrollPaddingBottom+16}px`}),w=(0,N.useStableCallback)((e,t)=>{let r=(0,Z.ownerWindow)(e),n=r.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches?"auto":"smooth";e.scrollTo({top:t,behavior:n})}),b=(0,N.useStableCallback)(()=>{f.current=!1,d.current=null});a.useEffect(()=>{if(!i||!n){p.current=null,h(),g.cancel();return}if(!o)return void h();let e=(0,I.ownerDocument)(o),t=(0,Z.ownerWindow)(o),r=t.visualViewport,l=e=>{o.style.setProperty(eq.keyboardInset,`${Math.max(0,Math.ceil(e))}px`)},u=()=>{l(0)},a=()=>{p.current=null,u(),h(),g.cancel()},c=()=>{var e,r,n,i;let a,c=p.current;if(s||!c||!(0,eu.contains)(o,c)){u(),h();return}let f=eZ(t);if(!f){u(),h();return}
1l((e=t,r=f,Math.max(0,e.innerHeight-r.bottom)));let d=(n=c,i=o,ef(a=(0,ea.getParentNode)(n),i,"vertical")??ef(a,i,"vertical",!0));if(!d)return void h();if(!d.isConnected||!(0,eu.contains)(o,d)){u(),h();return}let m=d.getBoundingClientRect(),g=Math.min(m.bottom,f.bottom),b=Math.max(0,m.bottom-f.bottom);v(d,b>0?b+48:0);let y=Math.max(0,d.scrollHeight-d.clientHeight);if(y<=0)return;let x=Math.max(m.top,f.top)+16,S=g-16;if(S<=x)return;let P=c.getBoundingClientRect(),C=(P.top+P.bottom)/2,E=d.scrollTop+C-(x+S)/2;w(d,(0,B.clamp)(E,0,y))},f=()=>{g.request(c)},d=e=>{if(s)return!1;let t=eQ(e);return!!t&&!!(0,eu.contains)(o,t)&&(p.current=t,!0)},m=()=>{(p.current||d((0,eu.activeElement)(e)))&&f()},b=[];return r&&b.push((0,J.addEventListener)(r,"resize",m),(0,J.addEventListener)(r,"scroll",m)),b.push((0,J.addEventListener)(e,"focusin",e=>{d((0,eu.getTarget)(e))&&f()},!0),(0,J.addEventListener)(e,"focusout",e=>{d(e.relatedTarget)?f():a()},!0)),d((0,eu.activeElement)(e))&&f(),()=>{b.forEach(e=>e()),a(),o.style.removeProperty(eq.keyboardInset)}},[w,g,i,s,n,h,o,v]);let y=(0,N.useStableCallback)(e=>{if(!n||!i||s)return void b();let t=e.touches[0];t&&(f.current=!1,d.current={x:t.clientX,y:t.clientY})}),x=(0,N.useStableCallback)(e=>{let t=e.touches[0],r=d.current;t&&r&&!f.current&&(Math.abs(t.clientX-r.x)>10||Math.abs(t.clientY-r.y)>10)&&(f.current=!0)}),S=(0,N.useStableCallback)(e=>{var t,r,l,u;let a;if(!n||!i||s||!o||!d.current||f.current)return void b();let c=e.changedTouches[0]??e.touches[0],p=(0,I.ownerDocument)(e.currentTarget),m=(0,eu.getTarget)(e.nativeEvent),g=c?function(e,t,r){let n=ed(e,t,r),i=eQ(n);if(i)return{focusTarget:i,clickTarget:(0,ea.isHTMLElement)(n)?n:i};if((0,e_.isInteractiveElement)(n)||n?.closest("label")!=null)return eG;for(let[n,i]of[[0,16],[0,-16],[16,0],[-16,0]]){let l=eQ(ed(e,t+n,r+i));if(l)return{focusTarget:l,clickTarget:l}}return null}(p,c.clientX,c.clientY):null;if(g===eG)return void b();let h=c&&(g??((a=eQ(t=m))?{focusTarget:a,clickTarget:(0,ea.isHTMLElement)(t)?t:a}:null));if(h&&(!(0,eu.contains)(o,h.focusTarget)||!(0,eu.contains)(o,h.clickTarget)))return void b();if(h){let t,n,{clickTarget:i,focusTarget:o}=h,s=(0,Z.ownerWindow)(o);return s.visualViewport&&1!==s.visualViewport.scale||(0,eu.activeElement)((0,I.ownerDocument)(o))===o&&(!(r=s).visualViewport||null!=eZ(r))?void b():(e.preventDefault(),function(e){let t=(0,eu.activeElement)((0,I.ownerDocument)(e))===e,r=e.style.opacity,n=e.style.transform,i=e.style.transition;e.style.transition="none",e.style.opacity="0",e.style.transform="translateY(-2000px)";try{t&&e.blur(),e.focus({preventScroll:!0})}finally{e.style.opacity=r,e.style.transform=n,e.style.transition=i}}(o),l=i,u=c,n=(t=(0,Z.ownerWindow)(l)).PointerEvent??t.MouseEvent,l.dispatchEvent(new n("click",{bubbles:!0,cancelable:!0,clientX:u.clientX,clientY:u.clientY,detail:1,view:t})),void b())}b()}),P=a.useMemo(()=>({onTouchStart:y,onTouchMove:x,onTouchEnd:S,onTouchCancel:b}),[S,x,y,b]);return(0,u.jsx)(eH.Provider,{value:P,children:t})},"createHandle",()=>e0.createDialogHandle],195520);var e1=e.i(195520),e1=e1,e2=e.i(656204),e6=e.i(260756),e3=e.i(432067),e4=e.i(839221);let e5=new Set(["outside-press","escape-key","focus-out","swipe"]),e9="--drawer-nested-swipe-progress",e8=a.createContext({handleOnly:!1});function e7({...e}){return(0,u.jsx)(e1.Portal,{"data-slot":"drawer-portal",...e})}let te=a.forwardRef(({className:e,...t},r)=>(0,u.jsx)(e1.Backdrop,{ref:r,"data-slot":"drawer-overlay",className:(0,e4.cn)("fixed inset-0 z-50 min-h-dvh bg-black/25 opacity-[calc(1-max(var(--drawer-swipe-progress,0),var(--drawer-nested-swipe-progress,0)))] backdrop-blur-xs transition-opacity duration-420 ease-[cubic-bezier(0.32,0.72,0,1)] data-ending-style:pointer-events-none data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*360ms)] data-starting-style:opacity-0 data-swiping:duration-0 data-swiping:[transition:none]",e),...t}));te.displayName="DrawerOverlay";let tt=a.forwardRef(({className:e,children:t,forceMount:r=!1,hidePullIndicator:n=!1,pullIndicatorAbsolute:i=!1,suppressTransitions:l=!1,style:o,...s},c)=>{let{handleOnly:f}=a.use(e8),d=(0,e2.useOverlayIntentPopupRef)(),p=a.useRef(null),[m,g]=a.useState(null),h=a.useMemo(()=>(0,e6.composeRefs)(c,g,r?void 0:d),[r,d,c]);return a.useEffect(()=>{let e=p.current;if(!m||!e)return;let t=m.offsetHeight,r=t=>{e.style.setProperty(e9,`${Math.max(0,Math.min(1,t))}`)},n=()=>
1{if(!m.hasAttribute("data-swiping")&&!m.hasAttribute("data-ending-style"))return void r(0);let e=Number.parseFloat(m.style.getPropertyValue("--drawer-swipe-movement-y"));!Number.isFinite(e)||t<=0?r(0):r(e/t)},i="function"==typeof ResizeObserver?new ResizeObserver(()=>{t=m.offsetHeight,n()}):null;i&&i.observe(m);let l=new MutationObserver(n);return l.observe(m,{attributes:!0,attributeFilter:["style","data-swiping","data-ending-style"]}),n(),()=>{l.disconnect(),i?.disconnect(),r(0),e.style.removeProperty(e9)}},[m]),(0,u.jsxs)(e7,{keepMounted:r,children:[(0,u.jsx)(te,{forceRender:!0,ref:p,style:l?{transition:"none"}:void 0}),(0,u.jsx)(e1.Viewport,{className:"fixed inset-0 z-50 flex items-end justify-center",children:(0,u.jsx)(e1.Popup,{"data-slot":"drawer-popup","data-surface":"",ref:h,className:(0,e4.cn)("group/popup relative flex w-full min-h-0 max-h-[85vh] flex-col overflow-hidden overscroll-contain rounded-t-2xl bg-background text-foreground shadow-lg ring-1 ring-foreground/10 transform-[translate3d(0,var(--drawer-swipe-movement-y),0)] will-change-transform data-swiping:select-none data-swiping:duration-0 data-swiping:[transition:none] data-starting-style:transform-[translate3d(0,100%,0)] data-ending-style:transform-[translate3d(0,100%,0)] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*360ms)] [transition:transform_420ms_cubic-bezier(0.32,0.72,0,1)]",e),style:l?{...o,transition:"none"}:o,...s,children:(0,u.jsxs)(e6.OverlayPortalContainerProvider,{container:m,children:[!r&&(0,u.jsx)(e2.OverlayIntentPopupProbe,{}),!n&&(i?(0,u.jsx)("div",{"data-slot":"drawer-pull-indicator",className:(0,e4.cn)("absolute top-0 left-1/2 z-40 -translate-x-1/2",f?"touch-none":"pointer-events-none"),children:(0,u.jsx)("div",{className:"mt-2 mb-2 flex h-6 w-24 items-start justify-center",children:(0,u.jsx)("div",{className:"h-1 w-12 shrink-0 rounded-full bg-muted-foreground/30"})})}):(0,u.jsx)("div",{"data-slot":"drawer-pull-indicator",className:(0,e4.cn)("mx-auto mt-4 mb-3 flex h-6 w-24 items-start justify-center",f&&"touch-none"),children:(0,u.jsx)("div",{className:"h-1 w-12 shrink-0 rounded-full bg-muted-foreground/30"})})),(0,u.jsx)(e1.Content,{"data-slot":"drawer-content",className:"mx-auto flex min-h-0 w-full max-w-lg flex-1 touch-auto flex-col overflow-hidden",children:t})]})})})]})});tt.displayName="DrawerContent";let tr=a.forwardRef(({className:e,...t},r)=>(0,u.jsx)("div",{ref:r,className:(0,e4.cn)("flex shrink-0 flex-col gap-2 border-b border-border bg-background px-6 pb-4",e),...t}));tr.displayName="DrawerHeader";let tn=a.forwardRef(({className:e,...t},r)=>(0,u.jsx)("div",{ref:r,className:(0,e4.cn)("min-h-0 flex-1 overflow-y-auto px-6 py-4",e),...t}));tn.displayName="DrawerBody";let ti=a.forwardRef(({className:e,...t},r)=>(0,u.jsx)("div",{ref:r,className:(0,e4.cn)("mt-auto flex shrink-0 items-center justify-end gap-2 border-t border-border bg-background px-6 pt-4 pb-[calc(1rem+env(safe-area-inset-bottom,0px))]",e),...t}));ti.displayName="DrawerFooter";let tl=a.forwardRef(({className:e,...t},r)=>(0,u.jsx)(e1.Title,{ref:r,className:(0,e4.cn)("text-2xl leading-none font-semibold tracking-tight text-foreground",e),...t}));tl.displayName="DrawerTitle";let to=a.forwardRef(({className:e,...t},r)=>(0,u.jsx)(e1.Description,{ref:r,className:(0,e4.cn)("text-sm text-muted-foreground",e),...t}));to.displayName="DrawerDescription",e.s(["Drawer",0,function({actionsRef:e,dismissible:t=!0,handleOnly:r=!1,onOpenChange:n,open:i,direction:l,shouldScaleBackground:o,...s}){let c=a.useRef(null),f=a.useCallback(()=>{c.current?.close()},[]),d=(0,e2.useOverlayIntentRoot)({open:i,requestClose:t?f:null});a.useLayoutEffect(()=>{if(e)return e.current=c.current,()=>{e.current=null}});let p=a.useCallback((e,r)=>{let i=!1;e||"focus-out"!==r.reason||(i=!0),e||"escape-key"!==r.reason||r.event.isTrusted||(i=!0),!t&&!e&&e5.has(r.reason)&&(i=!0),i||n?.(e,r),d.reportActualOpenChange(e,r.isCanceled)},[t,d,n]);return(0,u.jsx)(e8.Provider,{value:{handleOnly:r},children:(0,u.jsx)(e2.OverlayIntentProvider,{value:d.intentContextValue,children:(0,u.jsx)(e1.Root,{"data-slot":"drawer",disablePointerDismissal:!t,open:i,actionsRef:c,onOpenChange:p,...s})})})},"DrawerBody",0,tn,"DrawerClose",0,function({asChild:e=!1,render:t,...r}){return e?(0,u.jsx)(e1.Close,{render:(0,u.jsx)(e3.Slot,{}),...r}):t?(0,u.jsx)(e1.Close,{render:t,...r}):(0,u.jsx)(e1.Close,{...r})},"DrawerContent",0,tt,"DrawerDescription",0,to,"DrawerFooter",0,ti,"DrawerHeader",0,tr,"DrawerTitle",0,tl,"DrawerTrigger",0,function({asChild:e=!1,render:t,...r}){return e?(0,u.jsx)(e1.Trigger,{render:(0,u.jsx)(e3.Slot,{}),...r}):t?(0,u.jsx)(e1.Trigger,{render:t,...r}):(0,u.jsx)(e1.Trigger,{...r})}],964842)}]);
2
3//# chunkId=01a0804f-8512-75c2-b4b7-195428c9ef68

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.