expo-device-hub 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -188,12 +188,12 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
188
188
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.installOnUIRuntime=function(t){const o=globalThis?.expo?.installOnUIRuntime;if(!o)throw Error("Native method to install Expo Modules on the worklets UI runtime wasn't found in `expo-modules-core`.");o(t)}},142,[]);
189
189
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useEvent=function(u,s,c=null){const[o,f]=(0,t.useState)(c);return n(u,s,t=>f(t)),o},e.useEventListener=n;var t=r(d[0]);function n(n,u,s){const c=(0,t.useRef)(s);c.current=s,(0,t.useEffect)(()=>{const t=n.addListener(u,(...t)=>c.current(...t));return()=>t.remove()},[n,u,c])}},143,[38]);
190
190
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);function l(){return(0,n.jsx)(u.default,{dom:{scrollEnabled:!1}})}},144,[145,151]);
191
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return z}}),r(d[0]),r(d[1]);var t=r(d[2]),o=r(d[3]),s=r(d[4]),n=r(d[5]),l=r(d[6]),c=r(d[7]),u=r(d[8]),f=r(d[9]),h=r(d[10]),b=r(d[11]);function x(t,o){const s=new Set(t.map(t=>t.id));return[...t,...o.filter(t=>!s.has(t.id))]}const v=767,p=1167,S=400,w=280,j=560,y=320;function k(t,o){const s=('undefined'==typeof window?1/0:window.innerWidth)-o-y,n=Math.max(w,Math.min(j,s));return Math.min(Math.max(t,w),n)}function z(w){const j=(0,c.useColorScheme)(),{booted:y,recent:z}=(0,u.useDeviceLists)(),D=(0,h.useNewDeviceOptions)(),[C,I]=(0,s.useState)(''),[R,E]=(0,s.useState)([]),O=(0,f.useIsNarrow)(v),M=(0,f.useIsNarrow)(p),[T,A]=(0,s.useState)(!0),[F,L]=(0,s.useState)(!0),[N,P]=(0,s.useState)(S),[_,H]=(0,s.useState)(S),U=(0,s.useRef)(S),W=(0,s.useRef)(S),q=(0,s.useMemo)(()=>x(y.simulators,R.filter(t=>'ios'===t.platform)),[y.simulators,R]),B=(0,s.useMemo)(()=>x(y.emulators,R.filter(t=>'android'===t.platform)),[y.emulators,R]);async function G(t){const o=t.device,s='new'===t.kind?await(0,l.createDevice)(o):o.booted?{id:o.id,error:null}:await(0,l.bootDevice)(o);if(!s.id)return{ok:!1,error:s.error??'The device did not come online.'};const n='new'===t.kind?{id:s.id,name:o.name,version:o.version,platform:o.platform,physical:!1,booted:!0,lastUsedAt:Date.now()}:Object.assign({},o,{id:s.id,booted:!0,lastUsedAt:Date.now()});return E(t=>[...t.filter(t=>t.id!==o.name&&t.id!==o.id&&t.id!==s.id),n]),I(s.id),{ok:!0}}async function J(t){await(0,l.shutdownDevice)(t),E(o=>o.filter(o=>o.id!==t.id)),I('')}async function K(t){await(0,l.removeDevice)(t),E(o=>o.filter(o=>o.id!==t.id)),I('')}(0,s.useEffect)(()=>{A(!O)},[O]),(0,s.useEffect)(()=>{L(!M)},[M]),(0,s.useEffect)(()=>{const t=document.documentElement;return t.classList.toggle('dark-theme','dark'===j),()=>t.classList.remove('dark-theme')},[j]),(0,s.useEffect)(()=>{const t=[...q,...B];t.some(t=>t.id===C)||I(t[0]?.id??'')},[q,B,C]);const Q=[...q,...B],V=Q.find(t=>t.id===C)??Q[0],X=(0,t.useActiveDeviceClient)(V?{platform:V.platform,device:V.id}:null,(0,n.basePath)());return(0,b.jsxs)("div",{className:'dark'===j?'dark-theme':void 0,style:{display:'flex',position:'relative',flex:1,width:'100%',minWidth:0,height:'100vh',boxSizing:'border-box',backgroundColor:o.bg.subtle,color:o.text.default,fontFamily:'var(--expo-font-sans)',overflow:'hidden'},children:[T&&!O&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.Sidebar,{simulators:q,emulators:B,recentSimulators:z.simulators,recentEmulators:z.emulators,simulatorOptions:D.ios,emulatorOptions:D.android,selectedId:C,onSelect:I,onAddDevice:G,onToggle:()=>A(!1),width:N}),(0,b.jsx)(o.ResizeHandle,{side:"left",offset:N,onResizeStart:()=>{U.current=N},onResize:t=>P(k(U.current+t,F&&!M?_:0))})]}),V?(0,b.jsx)(o.StreamPanel,{device:V,client:X,DeviceScreen:t.DeviceScreen,displayScreen:t.displayScreen,onShutdown:()=>J(V),onRemove:()=>K(V),framed:!O}):(0,b.jsx)(o.EmptyState,{}),F&&!M&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.ResizeHandle,{side:"right",offset:_,onResizeStart:()=>{W.current=_},onResize:t=>H(k(W.current+t,T&&!O?N:0))}),(0,b.jsx)(o.LogSidebar,{client:X,onToggle:()=>L(!1),width:_})]}),T&&O&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{onClick:()=>A(!1),style:{position:'absolute',inset:0,backgroundColor:'rgba(0, 0, 0, 0.35)',zIndex:10}}),(0,b.jsx)("div",{style:{position:'absolute',top:0,left:0,zIndex:11,backgroundColor:o.bg.subtle,boxShadow:o.shadow.lg},children:(0,b.jsx)(o.Sidebar,{simulators:q,emulators:B,recentSimulators:z.simulators,recentEmulators:z.emulators,simulatorOptions:D.ios,emulatorOptions:D.android,selectedId:C,onSelect:I,onAddDevice:G,onToggle:()=>A(!1),width:N})})]}),F&&M&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{onClick:()=>L(!1),style:{position:'absolute',inset:0,backgroundColor:'rgba(0, 0, 0, 0.35)',zIndex:10}}),(0,b.jsx)("div",{style:{position:'absolute',top:0,right:0,zIndex:11,backgroundColor:o.bg.subtle,boxShadow:o.shadow.lg},children:(0,b.jsx)(o.LogSidebar,{client:X,onToggle:()=>L(!1),width:_})})]}),!T&&(0,b.jsx)("div",{style:{position:'absolute',top:24,left:24,zIndex:12},children:(0,b.jsx)(o.SidebarToggle,{floating:!0,onClick:()=>A(!0)})}),!F&&(0,b.jsx)("div",{style:{position:'absolute',top:24,right:24,zIndex:12},children:(0,b.jsx)(o.SidebarToggle,{floating:!0,side:"right",onClick:()=>L(!0)})})]})}},145,[146,147,148,164,38,262,264,266,267,269,270,151]);
191
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return A}}),r(d[0]),r(d[1]);var t=r(d[2]),o=r(d[3]),s=r(d[4]),n=r(d[5]),l=r(d[6]),c=r(d[7]),u=r(d[8]),h=r(d[9]),f=r(d[10]),v=r(d[11]),b=r(d[12]),p=r(d[13]),D=r(d[14]),S=r(d[15]),O=r(d[16]),w=r(d[17]),y=r(d[18]);function x(t,o){const s=new Set(t.map(t=>t.id));return[...t,...o.filter(t=>!s.has(t.id))]}const k=280,M=560,j=320;function R(t,o){const s=('undefined'==typeof window?1/0:window.innerWidth)-o-j,n=Math.max(k,Math.min(M,s));return Math.min(Math.max(t,k),n)}function A(k){const M=(0,f.useColorScheme)(),A=(0,w.dashboardPlatformFilter)(),{booted:T,recent:L}=(0,v.useDeviceLists)(),W=(0,p.useNewDeviceOptions)(),E=(0,h.useHideUnsupportedDevices)(),I=(0,u.useDashboardStore)(t=>t.selectedDeviceId),z=(0,u.useDashboardStore)(t=>t.selectDevice),_=(0,u.useDashboardStore)(t=>t.reconcileSelectedDevice),C=(0,u.useDashboardStore)(t=>t.addedDevices),F=(0,u.useDashboardStore)(t=>t.trackAddedDevice),H=(0,u.useDashboardStore)(t=>t.dismissDevice),P=(0,s.useMemo)(O.browserStreamModeAvailability,[]),U=(0,u.useDashboardStore)(t=>t.streamMode),N=(0,u.useDashboardStore)(t=>t.chooseStreamMode),B=t=>{N(t,P)},q=(0,u.useDashboardStore)(t=>t.sidebarWidths.left),G=(0,u.useDashboardStore)(t=>t.sidebarWidths.right),J=(0,u.useDashboardStore)(t=>t.resizeSidebar),K=(0,s.useRef)(u.DEFAULT_SIDEBAR_WIDTH),Q=(0,s.useRef)(u.DEFAULT_SIDEBAR_WIDTH),V=(0,S.useSidebarLayout)({leftWidth:q,rightWidth:G,minStreamWidth:j}),X=(0,s.useMemo)(()=>'android'===A?[]:x(T.simulators,C.filter(t=>'ios'===t.platform)),[T.simulators,C,A]),Y=(0,s.useMemo)(()=>'ios'===A?[]:x(T.emulators,C.filter(t=>'android'===t.platform)),[T.emulators,C,A]),Z=(0,s.useMemo)(()=>(0,h.visibleDevices)(L.simulators,E),[L.simulators,E]),$=(0,s.useMemo)(()=>(0,h.visibleDevices)(L.emulators,E),[L.emulators,E]),ee=(0,s.useMemo)(()=>(0,h.visibleNewDeviceOptions)(W.ios,E),[W.ios,E]),te=(0,s.useMemo)(()=>(0,h.visibleNewDeviceOptions)(W.android,E),[W.android,E]);async function ie(t){const o='new'===t.kind?await(0,c.createDevice)(t.device):t.device.booted?{id:t.device.id,error:null}:await(0,c.bootDevice)(t.device);if(!o.id)return{ok:!1,error:o.error??'The device did not come online.'};const s='new'===t.kind?{id:o.id,name:t.device.name,version:t.device.version,platform:t.device.platform,physical:!1,booted:!0,supported:t.device.supported,lastUsedAt:Date.now()}:Object.assign({},t.device,{id:o.id,booted:!0,lastUsedAt:Date.now()}),n='new'===t.kind?[t.device.name,o.id]:[t.device.name,t.device.id,o.id];return F(s,n),{ok:!0}}async function oe(t){await(0,c.shutdownDevice)(t),H(t.id)}async function se(t){await(0,c.removeDevice)(t),H(t.id)}(0,s.useEffect)(()=>{const t=document.documentElement;return t.classList.toggle('dark-theme','dark'===M),()=>t.classList.remove('dark-theme')},[M]),(0,s.useEffect)(()=>{const t=[...X,...Y];_(t.map(t=>t.id))},[X,Y,_]);const re=[...X,...Y],de=re.find(t=>t.id===I)??re[0],ae=(0,t.useActiveDeviceClient)(de?{platform:de.platform,device:de.id,streamMode:U}:null,(0,l.basePath)());return(0,y.jsxs)("div",{ref:V.containerRef,className:'dark'===M?'dark-theme':void 0,style:{display:'flex',position:'relative',flex:1,width:'100%',minWidth:0,height:'100vh',boxSizing:'border-box',backgroundColor:o.bg.subtle,color:o.text.default,fontFamily:'var(--expo-font-sans)',overflow:'hidden'},children:[(0,y.jsx)(n.AnimatedDockedSidebar,{side:"left",width:q,open:V.leftDocked,sidebarOpen:V.leftOpen,children:(0,y.jsx)(o.Sidebar,{simulators:X,emulators:Y,recentSimulators:Z,recentEmulators:$,simulatorOptions:ee,emulatorOptions:te,selectedId:I,onSelect:z,onAddDevice:ie,onToggle:V.closeLeft,platform:A,width:q})}),V.leftDocked&&(0,y.jsx)(o.ResizeHandle,{side:"left",offset:q,onResizeStart:()=>{K.current=q},onResize:t=>J('left',R(K.current+t,V.rightDocked?G:0))}),de?(0,y.jsx)(o.StreamPanel,{device:de,client:ae,DeviceScreen:t.DeviceScreen,displayScreen:t.displayScreen,onShutdown:()=>oe(de),onRemove:()=>se(de),framed:V.containerWidth>=600}):(0,y.jsx)(o.EmptyState,{platform:A}),V.rightDocked&&(0,y.jsx)(o.ResizeHandle,{side:"right",offset:G,onResizeStart:()=>{Q.current=G},onResize:t=>J('right',R(Q.current+t,V.leftDocked?q:0))}),(0,y.jsx)(n.AnimatedDockedSidebar,{side:"right",width:G,open:V.rightDocked,sidebarOpen:V.rightOpen,children:(0,y.jsx)(o.LogSidebar,{client:ae,streamMode:U,streamModeAvailability:P,onStreamModeChange:B,onToggle:V.closeRight,width:G})}),(0,y.jsx)(D.SidebarOverlay,{side:"left",open:V.leftOverlay,sidebarOpen:V.leftOpen,topmost:'left'===V.lastOpened||!V.rightOverlay,onDismiss:V.closeLeft,children:(0,y.jsx)(o.Sidebar,{simulators:X,emulators:Y,recentSimulators:Z,recentEmulators:$,simulatorOptions:ee,emulatorOptions:te,selectedId:I,onSelect:z,onAddDevice:ie,onToggle:V.closeLeft,platform:A,width:q})}),(0,y.jsx)(D.SidebarOverlay,{side:"right",open:V.rightOverlay,sidebarOpen:V.rightOpen,topmost:'right'===V.lastOpened||!V.leftOverlay,onDismiss:V.closeRight,children:(0,y.jsx)(o.LogSidebar,{client:ae,streamMode:U,streamModeAvailability:P,onStreamModeChange:B,onToggle:V.closeRight,width:G})}),!V.leftOpen&&(0,y.jsx)(b.FloatingSidebarToggle,{side:"left",inset:(0,b.floatingSidebarToggleInset)(V.rightOverlay,V.containerWidth,G),onClick:V.openLeft}),!V.rightOpen&&(0,y.jsx)(b.FloatingSidebarToggle,{side:"right",inset:(0,b.floatingSidebarToggleInset)(V.leftOverlay,V.containerWidth,q),onClick:V.openRight})]})}},145,[146,147,148,171,38,275,277,279,281,287,288,289,291,292,293,294,286,295,151]);
192
192
  __d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, dependencyMap) {},146,[]);
193
193
  __d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, dependencyMap) {},147,[]);
194
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DeviceScreen",{enumerable:!0,get:function(){return n.DeviceScreen}}),Object.defineProperty(e,"displayScreen",{enumerable:!0,get:function(){return c.displayScreen}}),Object.defineProperty(e,"streamGeometry",{enumerable:!0,get:function(){return c.streamGeometry}}),Object.defineProperty(e,"useIosDeviceClient",{enumerable:!0,get:function(){return u.useIosDeviceClient}}),Object.defineProperty(e,"useAndroidDeviceClient",{enumerable:!0,get:function(){return o.useAndroidDeviceClient}}),Object.defineProperty(e,"useActiveDeviceClient",{enumerable:!0,get:function(){return l.useActiveDeviceClient}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]),c=r(d[2]),u=r(d[3]),o=r(d[4]),l=r(d[5])},148,[149,150,153,154,158,162]);
194
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DeviceScreen",{enumerable:!0,get:function(){return n.DeviceScreen}}),Object.defineProperty(e,"displayScreen",{enumerable:!0,get:function(){return c.displayScreen}}),Object.defineProperty(e,"streamGeometry",{enumerable:!0,get:function(){return c.streamGeometry}}),Object.defineProperty(e,"useIosDeviceClient",{enumerable:!0,get:function(){return u.useIosDeviceClient}}),Object.defineProperty(e,"useAndroidDeviceClient",{enumerable:!0,get:function(){return o.useAndroidDeviceClient}}),Object.defineProperty(e,"useActiveDeviceClient",{enumerable:!0,get:function(){return l.useActiveDeviceClient}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]),c=r(d[2]),u=r(d[3]),o=r(d[4]),l=r(d[5])},148,[149,150,153,154,165,169]);
195
195
  __d(function(g,r,i,a,m,e,d){},149,[]);
196
- __d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceScreen=function({client:u,borderRadius:a,squircle:l}){const{videoKind:p,attachVideo:h,sendTouch:f,sendMultiTouch:b,screen:v,status:x,error:y}=u,w=!!b,j=(0,n.useRef)(null),[R,C]=(0,n.useState)(null);(0,n.useEffect)(()=>{const t=j.current;if(!t||'undefined'==typeof ResizeObserver)return;const n=new ResizeObserver(t=>{const n=t[0]?.contentRect;n&&C({w:n.width,h:n.height})});return n.observe(t),()=>n.disconnect()},[]);const I=(0,n.useRef)(new Map),E=(0,n.useRef)('none'),O=(0,n.useRef)(null),D=(0,n.useRef)(!1),k=(0,n.useRef)({x:0,y:0}),[M,S]=(0,n.useState)(null),F=(0,n.useRef)({}),P=(0,n.useRef)(0),A=()=>{P.current=0;const t=F.current;F.current={},t.single&&f(Object.assign({phase:'move'},t.single)),t.multi&&(b?.(t.multi),S({a:t.multi.a,b:t.multi.b}))},z=()=>{P.current||(P.current=requestAnimationFrame(A))},T=(t,n)=>{const r=j.current?.getBoundingClientRect();return r&&0!==r.width&&0!==r.height?{x:o((t-r.left)/r.width),y:o((n-r.top)/r.height)}:null},_=t=>D.current?{x:o(t.x+k.current.x),y:o(t.y+k.current.y)}:{x:1-t.x,y:1-t.y},K=(t,n)=>{P.current&&(cancelAnimationFrame(P.current),P.current=0),F.current={},b?.({phase:'end',a:t,b:n}),S(null)},X=t=>{const n=I.current.get(t.pointerId);if(!n)return;t.preventDefault();const r=T(t.clientX,t.clientY)??n;try{j.current?.releasePointerCapture(t.pointerId)}catch{}if('alt'===E.current)return K(r,_(r)),E.current='none',void I.current.clear();if('two'===E.current){const[t,n]=[...I.current.values()];return K(t??r,n??r),E.current='none',void I.current.clear()}'single'===E.current&&t.pointerId===O.current&&(P.current&&(cancelAnimationFrame(P.current),P.current=0),F.current={},f(Object.assign({phase:'end'},r)),E.current='none',O.current=null),I.current.delete(t.pointerId)},Y=(0,r.streamGeometry)(v).rotationDegrees,$=90===Math.abs(Y),q=Object.assign({position:'relative',width:'100%',height:'100%',overflow:'hidden',backgroundColor:'#000',borderRadius:a},l?{cornerShape:'superellipse(1.3)'}:{}),U=0===Y?{display:'block',position:'absolute',inset:0,width:'100%',height:'100%',objectFit:'cover'}:{display:'block',position:'absolute',top:'50%',left:'50%',width:$&&R?`${R.h}px`:'100%',height:$&&R?`${R.w}px`:'100%',transform:`translate(-50%, -50%) rotate(${Y}deg)`,transformOrigin:'center center',objectFit:'cover'};return Object.assign(U,{userSelect:'none',WebkitUserSelect:'none',pointerEvents:'none'}),(0,t.jsxs)("div",{style:q,children:['canvas'===p?(0,t.jsx)("canvas",{ref:h,style:U}):(0,t.jsx)("img",{ref:h,alt:"Device screen",draggable:!1,style:U}),(0,t.jsx)("div",{ref:j,style:{position:'absolute',inset:0,cursor:c,touchAction:'none'},onPointerDown:t=>{if('mouse'===t.pointerType&&0!==t.button)return;const n=T(t.clientX,t.clientY);if(!n)return;t.preventDefault();try{j.current?.setPointerCapture(t.pointerId)}catch{}if(I.current.set(t.pointerId,n),w&&'mouse'===t.pointerType&&t.altKey&&'none'===E.current){E.current='alt',D.current=t.shiftKey,k.current={x:1-2*n.x,y:1-2*n.y};const r=_(n);return S({a:n,b:r}),void b?.({phase:'begin',a:n,b:r})}if(w&&I.current.size>=2&&'alt'!==E.current){'single'===E.current&&(f(Object.assign({phase:'end'},n)),O.current=null);const[t,r]=[...I.current.values()];return E.current='two',S({a:t,b:r}),void b?.({phase:'begin',a:t,b:r})}'none'===E.current&&(E.current='single',O.current=t.pointerId,f(Object.assign({phase:'begin'},n)))},onPointerMove:t=>{if(!I.current.get(t.pointerId))return;const n=t.nativeEvent,r='function'==typeof n.getCoalescedEvents?n.getCoalescedEvents():null,o=r&&r.length>0?r[r.length-1]:t,c=T(o.clientX,o.clientY);if(!c)return;if(t.preventDefault(),I.current.set(t.pointerId,c),'alt'===E.current)F.current.multi={phase:'move',a:c,b:_(c)},z();else if('two'===E.current){const[t,n]=[...I.current.values()];F.current.multi={phase:'move',a:t,b:n},z()}else'single'===E.current&&t.pointerId===O.current&&(F.current.single=c,z())},onPointerUp:X,onPointerCancel:X,onContextMenu:t=>t.preventDefault()}),M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s,{point:M.a}),(0,t.jsx)(s,{point:M.b})]}),'streaming'!==x&&(0,t.jsx)("div",{style:{position:'absolute',inset:0,display:'flex',alignItems:'center',justifyContent:'center',padding:24,textAlign:'center',pointerEvents:'none',backgroundColor:'rgba(0, 0, 0, 0.55)',color:'error'===x?'#fca5a5':'rgba(255, 255, 255, 0.7)',fontSize:13,fontFamily:'var(--expo-font-mono)'},children:'error'===x?y??'Disconnected':'connecting'===x?'Connecting\u2026':'Not connected'})]})};var t=_r(d[0]),n=_r(d[1]),r=_r(d[2]);const o=t=>Math.min(1,Math.max(0,t)),c="url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='9' fill='rgba(255,255,255,0.45)' stroke='rgba(0,0,0,0.55)' stroke-width='1.25'/%3E%3C/svg%3E\") 12 12, pointer";function s({point:n}){return(0,t.jsx)("div",{style:{position:'absolute',left:100*n.x+"%",top:100*n.y+"%",width:20,height:20,borderRadius:'50%',background:'rgba(255, 255, 255, 0.45)',border:'1.25px solid rgba(0, 0, 0, 0.55)',boxShadow:'0 1px 3px rgba(0, 0, 0, 0.45)',transform:'translate(-50%, -50%)',pointerEvents:'none'}})}},150,[151,38,153]);
196
+ __d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceScreen=function({client:u,borderRadius:a,squircle:l}){const{videoKind:p,attachVideo:f,sendTouch:v,sendMultiTouch:b,sendKey:h,screen:y,status:x,error:w}=u,j=!!b,E=(0,n.useRef)(null),[R,k]=(0,n.useState)(null),C=(0,n.useRef)(new Map),I=(0,n.useCallback)(()=>{for(const t of C.current.values())h(Object.assign({},t,{phase:'up',repeat:!1}));C.current.clear()},[h]);(0,n.useEffect)(()=>{const t=()=>I(),n=()=>{document.hidden&&I()};return window.addEventListener('blur',t),document.addEventListener('visibilitychange',n),()=>{window.removeEventListener('blur',t),document.removeEventListener('visibilitychange',n),I()}},[I]);const D=(t,n)=>({phase:n,code:t.code,key:t.key,repeat:t.repeat});(0,n.useEffect)(()=>{const t=E.current;if(!t||'undefined'==typeof ResizeObserver)return;const n=new ResizeObserver(t=>{const n=t[0]?.contentRect;n&&k({w:n.width,h:n.height})});return n.observe(t),()=>n.disconnect()},[]);const O=(0,n.useRef)(new Map),S=(0,n.useRef)('none'),M=(0,n.useRef)(null),P=(0,n.useRef)(!1),F=(0,n.useRef)({x:0,y:0}),[K,A]=(0,n.useState)(null),T=(0,n.useRef)({}),z=(0,n.useRef)(0),L=()=>{z.current=0;const t=T.current;T.current={},t.single&&v(Object.assign({phase:'move'},t.single)),t.multi&&(b?.(t.multi),A({a:t.multi.a,b:t.multi.b}))},_=()=>{z.current||(z.current=requestAnimationFrame(L))},U=(t,n)=>{const r=E.current?.getBoundingClientRect();return r&&0!==r.width&&0!==r.height?{x:o((t-r.left)/r.width),y:o((n-r.top)/r.height)}:null},X=t=>P.current?{x:o(t.x+F.current.x),y:o(t.y+F.current.y)}:{x:1-t.x,y:1-t.y},Y=(t,n)=>{z.current&&(cancelAnimationFrame(z.current),z.current=0),T.current={},b?.({phase:'end',a:t,b:n}),A(null)},$=t=>{const n=O.current.get(t.pointerId);if(!n)return;t.preventDefault();const r=U(t.clientX,t.clientY)??n;try{E.current?.releasePointerCapture(t.pointerId)}catch{}if('alt'===S.current)return Y(r,X(r)),S.current='none',void O.current.clear();if('two'===S.current){const[t,n]=[...O.current.values()];return Y(t??r,n??r),S.current='none',void O.current.clear()}'single'===S.current&&t.pointerId===M.current&&(z.current&&(cancelAnimationFrame(z.current),z.current=0),T.current={},v(Object.assign({phase:'end'},r)),S.current='none',M.current=null),O.current.delete(t.pointerId)},q=(0,r.streamGeometry)(y).rotationDegrees,B=90===Math.abs(q),G=Object.assign({position:'relative',width:'100%',height:'100%',overflow:'hidden',backgroundColor:'#000',borderRadius:a},l?{cornerShape:'superellipse(1.3)'}:{}),N=0===q?{display:'block',position:'absolute',inset:0,width:'100%',height:'100%',objectFit:'cover'}:{display:'block',position:'absolute',top:'50%',left:'50%',width:B&&R?`${R.h}px`:'100%',height:B&&R?`${R.w}px`:'100%',transform:`translate(-50%, -50%) rotate(${q}deg)`,transformOrigin:'center center',objectFit:'cover'};return Object.assign(N,{userSelect:'none',WebkitUserSelect:'none',pointerEvents:'none'}),(0,t.jsxs)("div",{style:G,children:['canvas'===p?(0,t.jsx)("canvas",{ref:f,style:N}):'video'===p?(0,t.jsx)("video",{ref:f,autoPlay:!0,muted:!0,playsInline:!0,style:N}):(0,t.jsx)("img",{ref:f,alt:"Device screen",draggable:!1,style:N}),(0,t.jsx)("div",{ref:E,role:"application","aria-label":"Interactive device screen. Focus to control it with your keyboard. Press Shift and Escape to stop keyboard control.",tabIndex:0,style:{position:'absolute',inset:0,cursor:c,touchAction:'none',borderRadius:a,outline:'none'},onBlur:()=>{I()},onKeyDown:t=>{if('Escape'===t.key&&t.shiftKey)return t.preventDefault(),I(),void t.currentTarget.blur();if(t.nativeEvent.isComposing)return;const n=D(t,'down');if(!h(n))return;t.preventDefault(),C.current.set(t.code||t.key,n)},onKeyUp:t=>{const n=t.code||t.key,r=C.current.delete(n),o=h(D(t,'up'));(r||o)&&t.preventDefault()},onPointerDown:t=>{if('mouse'===t.pointerType&&0!==t.button)return;const n=U(t.clientX,t.clientY);if(!n)return;t.preventDefault(),E.current?.focus({preventScroll:!0});try{E.current?.setPointerCapture(t.pointerId)}catch{}if(O.current.set(t.pointerId,n),j&&'mouse'===t.pointerType&&t.altKey&&'none'===S.current){S.current='alt',P.current=t.shiftKey,F.current={x:1-2*n.x,y:1-2*n.y};const r=X(n);return A({a:n,b:r}),void b?.({phase:'begin',a:n,b:r})}if(j&&O.current.size>=2&&'alt'!==S.current){'single'===S.current&&(v(Object.assign({phase:'end'},n)),M.current=null);const[t,r]=[...O.current.values()];return S.current='two',A({a:t,b:r}),void b?.({phase:'begin',a:t,b:r})}'none'===S.current&&(S.current='single',M.current=t.pointerId,v(Object.assign({phase:'begin'},n)))},onPointerMove:t=>{if(!O.current.get(t.pointerId))return;const n=t.nativeEvent,r='function'==typeof n.getCoalescedEvents?n.getCoalescedEvents():null,o=r&&r.length>0?r[r.length-1]:t,c=U(o.clientX,o.clientY);if(!c)return;if(t.preventDefault(),O.current.set(t.pointerId,c),'alt'===S.current)T.current.multi={phase:'move',a:c,b:X(c)},_();else if('two'===S.current){const[t,n]=[...O.current.values()];T.current.multi={phase:'move',a:t,b:n},_()}else'single'===S.current&&t.pointerId===M.current&&(T.current.single=c,_())},onPointerUp:$,onPointerCancel:$,onContextMenu:t=>t.preventDefault()}),K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s,{point:K.a}),(0,t.jsx)(s,{point:K.b})]}),'streaming'!==x&&(0,t.jsx)("div",{style:{position:'absolute',inset:0,display:'flex',alignItems:'center',justifyContent:'center',padding:24,textAlign:'center',pointerEvents:'none',backgroundColor:'rgba(0, 0, 0, 0.55)',color:'error'===x?'#fca5a5':'rgba(255, 255, 255, 0.7)',fontSize:13,fontFamily:'var(--expo-font-mono)'},children:'error'===x?w??'Disconnected':'connecting'===x?'Connecting\u2026':'Not connected'})]})};var t=_r(d[0]),n=_r(d[1]),r=_r(d[2]);const o=t=>Math.min(1,Math.max(0,t)),c="url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='9' fill='rgba(255,255,255,0.45)' stroke='rgba(0,0,0,0.55)' stroke-width='1.25'/%3E%3C/svg%3E\") 12 12, pointer";function s({point:n}){return(0,t.jsx)("div",{style:{position:'absolute',left:100*n.x+"%",top:100*n.y+"%",width:20,height:20,borderRadius:'50%',background:'rgba(255, 255, 255, 0.45)',border:'1.25px solid rgba(0, 0, 0, 0.55)',boxShadow:'0 1px 3px rgba(0, 0, 0, 0.45)',transform:'translate(-50%, -50%)',pointerEvents:'none'}})}},150,[151,38,153]);
197
197
  __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},151,[152]);
198
198
  __d(function(g,r,i,a,m,e,d){
199
199
  /**
@@ -207,122 +207,147 @@ __d(function(g,r,i,a,m,e,d){
207
207
  */
208
208
  "use strict";var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(t,o,f){var l=null;if(void 0!==f&&(l=""+f),void 0!==o.key&&(l=""+o.key),"key"in o)for(var y in f={},o)"key"!==y&&(f[y]=o[y]);else f=o;return o=f.ref,{$$typeof:n,type:t,key:l,ref:void 0!==o?o:null,props:f}}e.Fragment=t,e.jsx=o,e.jsxs=o},152,[]);
209
209
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HID_EDGE_LEFT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"HID_EDGE_TOP",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"HID_EDGE_BOTTOM",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"HID_EDGE_RIGHT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"HOME_INDICATOR_BAND_NORM",{enumerable:!0,get:function(){return s}}),e.homeIndicatorEdge=function(t){return t>=s?u:void 0},e.isLandscapeOrientation=o,e.rotationDegreesForOrientation=h,e.displayScreen=l,e.streamGeometry=function(t){const n=l(t),u=h(t?.orientation),c=90===Math.abs(u),s=!!t&&t.width>t.height,o=180===u||c&&!s;return{display:n,rotationDegrees:o?u:0,needsRotation:o,inputOrientation:o?t?.orientation:void 0}},e.rawPointForDisplayPoint=function(t,n,u){switch(t){case'landscape_left':return{x:u,y:1-n};case'landscape_right':return{x:1-u,y:n};case'portrait_upside_down':return{x:1-n,y:1-u};default:return{x:n,y:u}}},e.rawEdgeForDisplayEdge=function(s,o){switch(s){case'landscape_left':switch(o){case t:return u;case c:return n;case n:return t;case u:return c;default:return o}case'landscape_right':switch(o){case t:return n;case c:return u;case n:return c;case u:return t;default:return o}case'portrait_upside_down':switch(o){case t:return c;case c:return t;case n:return u;case u:return n;default:return o}default:return o}};const t=1,n=2,u=3,c=4,s=.93;function o(t){return'landscape_left'===t||'landscape_right'===t}function h(t){switch(t){case'landscape_left':return 90;case'landscape_right':return-90;case'portrait_upside_down':return 180;default:return 0}}function l(t){if(!t||t.width<=0||t.height<=0)return null;const n=o(t.orientation)||t.width>t.height,u=n?Math.max(t.width,t.height):Math.min(t.width,t.height),c=n?Math.min(t.width,t.height):Math.max(t.width,t.height);return u===t.width&&c===t.height?t:Object.assign({},t,{width:u,height:c})}},153,[]);
210
- __d(function(g,_r,_i,_a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.toQueryStyleHelperWsUrl=k,e.useIosDeviceClient=function(v){const{baseUrl:T,enabled:U=!0,device:N=null}=v,P=U&&!!T,[R,C]=(0,t.useState)('idle'),[W,$]=(0,t.useState)(null),[I,A]=(0,t.useState)(null),[J,_]=(0,t.useState)([]),[D,L]=(0,t.useState)(!1),[j,H]=(0,t.useState)(f),[M,B]=(0,t.useState)(null),[F,G]=(0,t.useState)(null),[K,Q]=(0,t.useState)(null),V=(0,t.useRef)(null),q=(0,t.useRef)(0),z=(0,t.useRef)(null),X=(0,t.useRef)(null),Y=(0,t.useRef)(!1),Z=(0,t.useRef)(null);(0,t.useEffect)(()=>{Z.current=I},[I]);const ee=(0,t.useRef)(!1),te=(0,t.useCallback)(()=>{const t=z.current,r=X.current;t&&r&&(t.src=`${r}${r.includes('?')?'&':'?'}t=${Date.now()}`)},[]),re=(0,t.useCallback)(t=>{z.current=t??null,t&&te()},[te]),ne=(0,t.useCallback)(t=>{const n=V.current;if(!n||n.readyState!==WebSocket.OPEN)return;const s=(0,r.streamGeometry)(Z.current).inputOrientation;let a;'begin'===t.phase?(Y.current=void 0!==(0,r.homeIndicatorEdge)(t.y),Y.current&&(a=r.HID_EDGE_BOTTOM)):Y.current&&(a=r.HID_EDGE_BOTTOM,'end'===t.phase&&(Y.current=!1));const c=(0,r.rawPointForDisplayPoint)(s,t.x,t.y),i=void 0===a?void 0:(0,r.rawEdgeForDisplayEdge)(s,a),l=void 0===i?Object.assign({type:t.phase},c):Object.assign({type:t.phase},c,{edge:i});n.send(b(o,l))},[]),se=(0,t.useCallback)(t=>{const n=V.current;if(!n||n.readyState!==WebSocket.OPEN)return;const s=(0,r.streamGeometry)(Z.current).inputOrientation,a=(0,r.rawPointForDisplayPoint)(s,t.a.x,t.a.y),c=(0,r.rawPointForDisplayPoint)(s,t.b.x,t.b.y);n.send(b(l,{type:t.phase,x1:a.x,y1:a.y,x2:c.x,y2:c.y}))},[]),ae=(0,t.useCallback)(t=>{const r=V.current;if(!r||r.readyState!==WebSocket.OPEN)return;const n=w[t];n&&r.send(b(i,{button:n}))},[]),ce=(0,t.useCallback)(async()=>{const t=V.current;if(!t||t.readyState!==WebSocket.OPEN)return;const r=(r,n)=>t.send(b(u,{type:r,usage:n}));r('down',h),await new Promise(t=>setTimeout(t,30)),r('up',h)},[]),oe=(0,t.useCallback)(()=>{const t=V.current;if(!t||t.readyState!==WebSocket.OPEN)return;const r=Z.current?.orientation??'portrait',n=y[(y.indexOf(r)+1)%y.length];t.send(b(d,{orientation:n}))},[]),ie=(0,t.useCallback)(async()=>{if(!T)return null;const t=M?.device??N,r=`${T.replace(/\/$/,'')}/api/screenshot${t?`?device=${encodeURIComponent(t)}`:''}`;try{const t=await fetch(r,{cache:'no-store'});return t.ok?await t.blob():null}catch{return null}},[T,N,M]),le=(0,t.useCallback)(t=>{const r=M;r&&r.execWsUrl&&r.execToken&&r.device&&(G(t),O(r.execWsUrl,r.execToken,{device:r.device,option:'appearance',value:t}).catch(()=>{}))},[M]),ue=(0,t.useCallback)(()=>L(!0),[]),de=(0,t.useCallback)(()=>L(!1),[]),pe=(0,t.useCallback)(()=>_([]),[]);(0,t.useEffect)(()=>{if(!P||!T)return B(null),void C('idle');let t=!1,r=null;C('connecting'),$(null);const s=`${T.replace(/\/$/,'')}/api${N?`?device=${encodeURIComponent(N)}`:''}`,o=t=>{const r=(0,a.proxyPreviewConfigForBrowser)(t,window.location),n=r.basePath??'';return{streamUrl:r.streamUrl??`${r.url}/stream.mjpeg`,wsUrl:k(r.wsUrl??`${E(r.url)}/ws`),device:r.device??null,execWsUrl:E(new URL(`${n}/exec-ws`,T).toString()),execToken:r.execToken??null,logsPath:r.logsEndpoint??null,appStateUrl:r.appStateEndpoint?new URL(r.appStateEndpoint,T).toString():null,gridApiUrl:new URL(r.gridApiEndpoint??'/grid/api',T).toString()}};let i=!1;const l=async()=>{if(!t)try{const a=await fetch(s,{signal:AbortSignal.timeout(3e3)});if(!a.ok)return void(t||(r=setTimeout(l,c)));const u=await a.json();if(u&&u.url&&u.device)return void(t||B(o(u)));N&&!i&&(i=!0,(0,n.startIosHelper)(N,T).catch(()=>{})),t||(r=setTimeout(l,c))}catch{t||(r=setTimeout(l,c))}};return l(),()=>{t=!0,r&&clearTimeout(r)}},[P,T,N]);const he=M?.streamUrl??null;(0,t.useEffect)(()=>{if(!he)return void(X.current=null);X.current=he,C('connecting'),$(null);let t=!1,r=!1,n=null;const s=z.current,a=()=>{if(t||r)return;const n=z.current;n&&0!==n.naturalWidth&&0!==n.naturalHeight&&(r=!0,C('streaming'),$(null),ee.current||A(t=>t&&t.width===n.naturalWidth&&t.height===n.naturalHeight?t:{width:n.naturalWidth,height:n.naturalHeight}))},o=()=>{t||(r=!1,C('error'),$('Stream unavailable \u2014 retrying\u2026'),n=setTimeout(()=>{t||te()},c))};s?.addEventListener('load',a),s?.addEventListener('error',o),te();const i=setInterval(a,400);return()=>{t=!0,clearInterval(i),n&&clearTimeout(n),s?.removeEventListener('load',a),s?.removeEventListener('error',o);const r=z.current;r&&r.removeAttribute('src'),A(null)}},[he,te]);const fe=M?.wsUrl??null;(0,t.useEffect)(()=>{if(!fe)return;let t=!1,r=null;ee.current=!1;const n=()=>{if(t)return;let s;try{s=new WebSocket(fe)}catch{return}s.binaryType='arraybuffer',V.current=s,s.onmessage=t=>{if(!(t.data instanceof ArrayBuffer))return;const r=new Uint8Array(t.data);if(!(r.length<1||r[0]!==p))try{const t=JSON.parse(S.decode(r.subarray(1)));t.width>0&&t.height>0&&(ee.current=!0,A(r=>r&&r.width===t.width&&r.height===t.height&&r.orientation===t.orientation?r:t))}catch{}},s.onclose=()=>{t||(V.current=null,r=setTimeout(n,c))},s.onerror=()=>{try{s.close()}catch{}}};return n(),()=>{t=!0,r&&clearTimeout(r);try{V.current?.close()}catch{}V.current=null}},[fe]);const ge=M?.execWsUrl??null,ye=M?.execToken??null,me=M?.logsPath??null;(0,t.useEffect)(()=>{if(!(D&&ge&&ye&&me))return;let t=!1,r=null,n=null,s='';const a=t=>{const r=t.split('\n').filter(t=>t.startsWith('data:')).map(t=>t.slice(5).replace(/^ /,'')).join('\n');if(!r)return;let n=r;try{const t=JSON.parse(r);'string'==typeof t.eventMessage&&(n=t.eventMessage)}catch{}n&&_(t=>[...t,{id:"i"+ ++q.current,source:'syslog',message:n}].slice(-200))},o=()=>{if(!t){s='';try{r=new WebSocket(ge)}catch{return}r.onopen=()=>r?.send(JSON.stringify({token:ye})),r.onmessage=t=>{let n;try{n=JSON.parse(String(t.data))}catch{return}if(n.ready)r?.send(JSON.stringify({sub:1,path:me}));else if(1===n.sub&&'string'==typeof n.data){let t;for(s+=n.data.replace(/\r\n/g,'\n');-1!==(t=s.indexOf('\n\n'));)a(s.slice(0,t)),s=s.slice(t+2)}},r.onclose=()=>{t||(n=setTimeout(o,c))},r.onerror=()=>{try{r?.close()}catch{}}}};return o(),()=>{t=!0,n&&clearTimeout(n);try{r?.close()}catch{}}},[D,ge,ye,me]);const we=M?.device??null;(0,t.useEffect)(()=>{if(!ge||!ye||!we)return void G(null);let t=!1;return O(ge,ye,{device:we}).then(r=>{const n=r.status?.appearance;t||'light'!==n&&'dark'!==n||G(n)}).catch(()=>{}),()=>{t=!0}},[ge,ye,we]);const ve=M?.appStateUrl??null;(0,t.useEffect)(()=>{if(Q(null),!ve)return;let t=null;try{t=new EventSource(ve)}catch{return}return t.onmessage=t=>{try{const r=JSON.parse(String(t.data));r.bundleId&&Q(t=>t&&t.id===r.bundleId?t.pid===r.pid&&t.isReactNative===r.isReactNative?t:Object.assign({},t,{pid:r.pid,isReactNative:r.isReactNative}):{id:r.bundleId,pid:r.pid,isReactNative:r.isReactNative})}catch{}},()=>t?.close()},[ve]);const Se=K?.id??null;(0,t.useEffect)(()=>{if(!(Se&&ge&&ye&&we))return;let t=!1;return(0,s.getIosAppDetails)(t=>x(ge,ye,t),we,Se).then(r=>{!t&&r&&Q(t=>t&&t.id===Se?Object.assign({},t,r):t)}).catch(()=>{}),()=>{t=!0}},[Se,ge,ye,we]);const be=M?.gridApiUrl??null;return(0,t.useEffect)(()=>{if(!be)return void H(f);let t=!1;return fetch(be,{signal:AbortSignal.timeout(3e3)}).then(t=>t.json()).then(r=>{!t&&Array.isArray(r.devices)&&0!==r.devices.length&&H(r.devices.map(t=>({id:String(t.device??t.id??'ios'),name:String(t.name??t.device??'Simulator'),system:'string'==typeof t.runtime?t.runtime:void 0,platform:'ios',current:null!=t.helper})))}).catch(()=>{}),()=>{t=!0}},[be]),{platform:'ios',status:R,error:W,screen:I,fps:0,devices:j,logs:J,logsEnabled:D,attachLogs:ue,detachLogs:de,clearLogs:pe,foregroundApp:K,videoKind:'img',attachVideo:re,sendTouch:ne,sendMultiTouch:se,pressButton:ae,reload:ce,rotate:oe,screenshot:ie,appearance:F,setAppearance:le}};var t=_r(_d[0]),r=_r(_d[1]),n=_r(_d[2]),s=_r(_d[3]),a=_r(_d[4]);const c=1500,o=3,i=4,l=5,u=6,d=7,p=130,h=21,f=[{id:'ios',name:'iPhone Simulator',platform:'ios',current:!0}],y=['portrait','landscape_left','portrait_upside_down','landscape_right'],w={home:'home',appSwitcher:'app_switcher',power:'lock',back:null,recents:null},v=new TextEncoder,S=new TextDecoder;function b(t,r){const n=v.encode(JSON.stringify(r)),s=new Uint8Array(1+n.length);return s[0]=t,s.set(n,1),s}function E(t){return t.replace(/^http/,'ws')}function k(t){const r=new URL(t),n=r.pathname.match(/^(.*\/helper)\/([^/]+)\/ws$/);if(!n)throw new Error(`Invalid helper ws url, no deviceId matched: ${t}`);return r.pathname=`${n[1]}/ws`,r.searchParams.has('device')||r.searchParams.set('device',decodeURIComponent(n[2])),r.toString()}function O(t,r,n){return new Promise((s,a)=>{let c;try{c=new WebSocket(t)}catch(t){return void a(t)}let o,i=!1;const l=t=>{if(!i){i=!0,clearTimeout(o);try{c.close()}catch{}t()}};o=setTimeout(()=>l(()=>a(new Error('exec-ws timeout'))),5e3),c.onopen=()=>c.send(JSON.stringify({token:r})),c.onmessage=t=>{let r;try{r=JSON.parse(String(t.data))}catch{return}r.ready?c.send(JSON.stringify({id:1,ui:n})):1===r.id&&(r.error?l(()=>a(new Error(r.error))):l(()=>s(r)))},c.onerror=()=>l(()=>a(new Error('exec-ws error'))),c.onclose=()=>l(()=>a(new Error('exec-ws closed')))})}function x(t,r,n){return new Promise((s,a)=>{let c;try{c=new WebSocket(t)}catch(t){return void a(t)}let o,i=!1;const l=t=>{if(!i){i=!0,clearTimeout(o);try{c.close()}catch{}t()}};o=setTimeout(()=>l(()=>a(new Error('exec-ws timeout'))),1e4),c.onopen=()=>c.send(JSON.stringify({token:r})),c.onmessage=t=>{let r;try{r=JSON.parse(String(t.data))}catch{return}r.ready?c.send(JSON.stringify({id:1,command:n})):1===r.id&&(r.error?l(()=>a(new Error(r.error))):l(()=>s({stdout:r.stdout??'',stderr:r.stderr??'',exitCode:r.exitCode??1})))},c.onerror=()=>l(()=>a(new Error('exec-ws error'))),c.onclose=()=>l(()=>a(new Error('exec-ws closed')))})}},154,[38,153,155,156,157]);
211
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.endpointFor=function(s,c){return o(`${t(c)}${n[s]}`)},e.startIosHelper=async function(n,s){const c=t(o(s));await fetch(`${c}/grid/api/start`,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({udid:n}),signal:AbortSignal.timeout(19e4)})};const n={ios:'/vendor/serve-sim',android:'/vendor/serve-emu'};function t(n){return n.replace(/\/+$/,'')}function o(n){return n.startsWith('http')?n:'undefined'!=typeof window&&window.location?.origin?`${window.location.origin}${n}`:n}},155,[]);
212
- __d(function(g,r,i,a,m,e,d){"use strict";function n(n){return`'${n.replace(/'/g,"'\\''")}'`}async function t(t,o,l){const s=await t(`xcrun simctl get_app_container ${o} ${n(l)} app`);if(0!==s.exitCode)return null;const c=s.stdout.trim();if(!c)return null;const u=await t(`plutil -convert json -o - ${n(`${c}/Info.plist`)}`);let p,$={};if(0===u.exitCode)try{$=JSON.parse(u.stdout)}catch{}const F=$?.CFBundleIcons?.CFBundlePrimaryIcon??$?.['CFBundleIcons~ipad']?.CFBundlePrimaryIcon,C=F?.CFBundleIconFiles??$?.CFBundleIconFiles;let f;if(C&&C.length>0?p=C[C.length-1]:'string'==typeof $?.CFBundleIconFile&&(p=$.CFBundleIconFile),p){const o=[`${p}@3x.png`,`${p}@2x.png`,`${p}.png`,`${p}60x60@3x.png`,`${p}60x60@2x.png`],l=(await t(`bash -c ${n(o.map(t=>`[ -f ${n(`${c}/${t}`)} ] && echo ${n(`${c}/${t}`)} && exit 0`).join('; ')+'; exit 1')}`)).stdout.trim();if(l){const o=await t(`base64 -i ${n(l)}`);0===o.exitCode&&(f=`data:image/png;base64,${o.stdout.replace(/\s+/g,'')}`)}}return{appPath:c,label:$.CFBundleDisplayName??$.CFBundleName,version:$.CFBundleShortVersionString,build:$.CFBundleVersion,minOS:$.MinimumOSVersion,executable:$.CFBundleExecutable,iconDataUrl:f}}Object.defineProperty(e,'__esModule',{value:!0}),e.shellEscape=n,e.fetchIosAppDetails=t,e.getIosAppDetails=function(n,l,s){const c=`${l}:${s}`,u=o.get(c);if(u)return u;const p=t(n,l,s).catch(n=>{throw o.delete(c),n});return o.set(c,p),p};const o=new Map},156,[]);
213
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.proxyPreviewConfigForBrowser=function(o,t){if(!o.device||!o.proxyHelpers)return o;const s=`${'/'===o.basePath?'':(o.basePath??'').replace(/\/+$/,'')}/helper/${encodeURIComponent(o.device)}`,n=`${t.protocol}//${t.host}`,c='https:'===t.protocol?'wss:':'ws:';return Object.assign({},o,{url:`${n}${s}`,streamUrl:`${n}${s}/stream.mjpeg`,wsUrl:`${c}//${t.host}${s}/ws`})}},157,[]);
214
- __d(function(g,_r,i,_a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAndroidDeviceClient=function(f){const{baseUrl:y,enabled:v=!0,device:b=null}=f,S=v&&!!y,[k,w]=(0,t.useState)('idle'),[C,$]=(0,t.useState)(null),[E,N]=(0,t.useState)(null),[O,R]=(0,t.useState)(0),[I,U]=(0,t.useState)([]),[P,z]=(0,t.useState)(!1),[T,A]=(0,t.useState)(d),[K,W]=(0,t.useState)(null),[j,F]=(0,t.useState)(null),L=(0,t.useRef)(null),M=(0,t.useRef)(null),J=(0,t.useRef)(0),H=(0,t.useCallback)(t=>{M.current=t??null},[]),_=(0,t.useCallback)(()=>z(!0),[]),x=(0,t.useCallback)(()=>z(!1),[]),D=(0,t.useCallback)(()=>U([]),[]),V=(0,t.useCallback)(t=>{const n=L.current;n&&n.readyState===WebSocket.OPEN&&n.send(JSON.stringify(Object.assign({ack:!1},t)))},[]),B=(0,t.useCallback)(t=>{V({type:'touch',action:u[t.phase],x:t.x,y:t.y,pointerId:0})},[V]),q=(0,t.useCallback)(t=>{const n=l[t];n&&V(n)},[V]),Q=(0,t.useCallback)(()=>{V({type:'key',keycode:s,record:!1})},[V]),G=(0,t.useCallback)(()=>{if(!y)return;const t=E&&E.width>E.height?'portrait':'landscape',n=`${p(y,'/api/orientation')}${b?`?device=${encodeURIComponent(b)}`:''}`;fetch(n,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({orientation:t})}).catch(()=>{})},[y,b,E]),X=(0,t.useCallback)(async()=>{if(!y)return null;const t=`${p(y,'/api/screenshot')}${b?`?device=${encodeURIComponent(b)}`:''}`;try{const n=await fetch(t,{cache:'no-store'});return n.ok?await n.blob():null}catch{return null}},[y,b]),Y=(0,t.useCallback)(t=>{if(!y)return;W(t);const n=`${p(y,'/api/uimode')}${b?`?device=${encodeURIComponent(b)}`:''}`;fetch(n,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({night:'dark'===t?'yes':'no'})}).catch(()=>{})},[y,b]);return(0,t.useEffect)(()=>{if(!S||!y)return void w('idle');const t=!(0,n.isWebCodecsSupported)();if(t&&!r.MsePlayer.isSupported())return w('error'),void $('This browser cannot decode H.264 (WebCodecs unavailable).');w('connecting'),$(null);let c=!1,s=null,d=!1,l=500,u=null,p=null,f=!1,v=!1,k=0,C=0,E=0,O=performance.now();const I=()=>{if(p&&'closed'!==p.state)try{p.close()}catch{}p=null},U=()=>{const t=L.current,n=performance.now();t&&t.readyState===WebSocket.OPEN&&(n-k<o||(k=n,t.send(JSON.stringify({type:'reset-video',ack:!1}))))},P=t=>{const n=M.current,r=n?.getContext('2d',{alpha:!1,desynchronized:!0});if(!n||!r)return void t.close();n.width===t.displayWidth&&n.height===t.displayHeight||(n.width=t.displayWidth,n.height=t.displayHeight,N({width:t.displayWidth,height:t.displayHeight})),r.drawImage(t,0,0),t.close(),c||d||(d=!0,w('streaming'),$(null)),E++;const a=performance.now();if(a-O>=1e3){const t=Math.round(1e3*E/(a-O));E=0,O=a,R(n=>n===t?n:t)}},z=t=>{if('configured'===p?.state)return!0;I();const r=new VideoDecoder({output:t=>{c||p!==r?t.close():P(t)},error:()=>{p===r&&(I(),f=!1,v=!0,U())}});try{return r.configure({codec:(0,n.buildCodecString)(t),optimizeForLatency:!0}),p=r,!0}catch{try{r.close()}catch{}return U(),!1}},T=o=>{const l=(0,n.parseFramePacket)(o);if(t){const t=l.isKey??(0,n.scanAU)(l.data).isKey;if(!s){const t=M.current;if(!t)return void U();s=new r.MsePlayer(t,{onFirstFrame:()=>{c||d||(d=!0,w('streaming'),$(null))},onResize:(t,n)=>{c||N({width:t,height:n})},onFps:t=>{c||R(n=>n===t?n:t)},onError:t=>{c||(w('error'),$(t))},requestKeyframe:U})}return void s.feed(l.data,t,l.timestamp)}const u=null===l.isKey||l.isKey&&(!p||'configured'!==p.state||v)?(0,n.scanAU)(l.data):null,h=l.isKey??u?.isKey??!1,y=u?.spsBytes??null;if(!y||z(y)){if(v){if(!h)return;if(!p||'configured'!==p.state)return void U();v=!1}if(p&&'configured'===p.state){if(p.decodeQueueSize>a)return I(),f=!1,v=!0,void U();if(!f){if(!h)return void U();f=!0}try{p.decode(new EncodedVideoChunk({type:h?'key':'delta',timestamp:l.timestamp??Math.round(1e6*C/60),data:l.data})),C++}catch{I(),f=!1,v=!0,U()}}else h||U()}},A=()=>{if(c)return;let n;try{n=new WebSocket(h(y,b))}catch(t){return w('error'),void $(t instanceof Error?t.message:'Invalid server URL')}n.binaryType='arraybuffer',L.current=n,n.onopen=()=>{c||(l=500,t&&U())},n.onerror=()=>{},n.onclose=()=>{c||(I(),s?.destroy(),s=null,f=!1,C=0,d&&(d=!1,w('error'),$(t=>t??'Disconnected \u2014 retrying\u2026')),u=setTimeout(A,l),l=Math.min(Math.round(1.6*l),5e3))},n.onmessage=t=>{if(!c)if('string'!=typeof t.data)T(t.data);else try{const n=JSON.parse(t.data);'video-session'===n.type&&n.size&&Number.isFinite(n.size.width)&&Number.isFinite(n.size.height)&&(I(),s?.destroy(),s=null,C=0,f=!1,v=!0,N({width:n.size.width,height:n.size.height}),U())}catch{}}};return A(),()=>{c=!0,u&&clearTimeout(u),I(),s?.destroy(),s=null;try{L.current?.close()}catch{}L.current=null,w('idle'),N(null),R(0)}},[S,y,b]),(0,t.useEffect)(()=>{if(!P||!S||!y)return;let t=null;try{t=new EventSource(p(y,"/api/logcat"+(b?`?device=${encodeURIComponent(b)}`:'')))}catch{return}return t.addEventListener('log',t=>{try{const n=JSON.parse(t.data);U(t=>[...t,{id:"a"+ ++J.current,source:'logcat',message:n.line}].slice(-200))}catch{}}),()=>t?.close()},[P,S,y,b]),(0,t.useEffect)(()=>{if(!S||!y)return void A(d);let t=!1;return fetch(p(y,'/api/devices')).then(t=>t.json()).then(n=>{if(t||!Array.isArray(n.devices)||0===n.devices.length)return;const r=b??n.defaultSerial??null;A(n.devices.map(t=>{const n=String(t.serial??t.id??'android');return{id:n,name:String(t.model??t.name??t.product??n),platform:'android',current:n===r}}))}).catch(()=>{}),()=>{t=!0}},[S,y,b]),(0,t.useEffect)(()=>{if(F(null),!S||!y)return;let t=!1;const n=`${p(y,'/api/foreground')}${b?`?device=${encodeURIComponent(b)}`:''}`,r=async()=>{try{const r=await fetch(n,{cache:'no-store'}),a=await r.json();if(t||!a.ok||!a.app?.packageName)return;const o={id:a.app.packageName,label:a.app.label??void 0,pid:a.app.pid??void 0,activity:a.app.activity??void 0,version:a.app.versionName??void 0,build:a.app.versionCode??void 0,minSdk:a.app.minSdk??void 0,debuggable:a.app.debuggable??void 0};F(t=>{return t&&(r=o,(n=t).id===r.id&&n.label===r.label&&n.pid===r.pid&&n.activity===r.activity&&n.version===r.version&&n.build===r.build&&n.minSdk===r.minSdk&&n.debuggable===r.debuggable)?t:o;var n,r})}catch{}};r();const a=setInterval(r,c);return()=>{t=!0,clearInterval(a)}},[S,y,b]),(0,t.useEffect)(()=>{if(!S||!y)return void W(null);let t=!1;const n=`${p(y,'/api/uimode')}${b?`?device=${encodeURIComponent(b)}`:''}`;return fetch(n,{cache:'no-store'}).then(t=>t.json()).then(n=>{!t&&n.ok&&W('yes'===n.night?'dark':'light')}).catch(()=>{}),()=>{t=!0}},[S,y,b]),{platform:'android',status:k,error:C,screen:E,fps:O,devices:T,logs:I,logsEnabled:P,attachLogs:_,detachLogs:x,clearLogs:D,foregroundApp:j,videoKind:'canvas',attachVideo:H,sendTouch:B,pressButton:q,reload:Q,rotate:G,screenshot:X,appearance:K,setAppearance:Y}};var t=_r(_d[0]),n=_r(_d[1]),r=_r(_d[2]);const a=4,o=1500,c=5e3,s=46;const d=[{id:'android',name:'Emulator Android',platform:'android',current:!0}],l={home:{type:'home'},back:{type:'back'},recents:{type:'recents'},appSwitcher:{type:'recents'},power:{type:'power'}},u={begin:'down',move:'move',end:'up'};function p(t,n){return`${t.replace(/\/$/,'')}${n}`}function h(t,n){const r=new URL(p(t,'/ws'));return r.protocol='https:'===r.protocol?'wss:':'ws:',r.searchParams.set('frame-meta','1'),n&&r.searchParams.set('device',n),r.toString()}},158,[38,159,160]);
215
- __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildCodecString=function(t){const n=t[1].toString(16).padStart(2,'0'),i=t[2].toString(16).padStart(2,'0'),o=t[3].toString(16).padStart(2,'0');return`avc1.${n}${i}${o}`},e.scanAU=function(t){let n=!1,i=null;const o=t.length;let s=0;for(;s+2<o;){if(0===t[s]&&0===t[s+1]){let u=0;if(1===t[s+2]?u=3:s+3<o&&0===t[s+2]&&1===t[s+3]&&(u=4),u){const o=31&t[s+u];7!==o||i||(i=t.subarray(s+u)),5===o&&(n=!0),s+=u+1;continue}}s++}return{isKey:n,spsBytes:i}},e.parseFramePacket=function(s){const u=s instanceof Uint8Array?s:new Uint8Array(s);if(u.byteLength>i){const s=new DataView(u.buffer,u.byteOffset,i);if(s.getUint32(0,!1)===t&&s.getUint8(4)===n){const t=s.getBigUint64(8,!1);return{data:u.subarray(i),isKey:0!==(s.getUint8(5)&o),timestamp:t<=BigInt(Number.MAX_SAFE_INTEGER)?Number(t):null}}}return{data:u,isKey:null,timestamp:null}},e.isWebCodecsSupported=function(){return'undefined'!=typeof globalThis&&'VideoDecoder'in globalThis&&'EncodedVideoChunk'in globalThis};const t=1397050709,n=1,i=16,o=1},159,[]);
216
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MsePlayer",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const s='video/mp4; codecs="avc1.42E01E"';class o{static isSupported(){if('undefined'==typeof window||'undefined'==typeof MediaSource)return!1;try{return MediaSource.isTypeSupported(s)}catch{return!1}}muxer=new t.FragmentedMp4Muxer;sourceBuffer=null;queue=[];destroyed=!1;painted=!1;rafHandle=0;fpsWindowStart=0;fpsBaseFrames=0;constructor(t,s={}){this.canvas=t,this.callbacks=s,this.ctx=t.getContext('2d',{alpha:!1,desynchronized:!0});const o=document.createElement('video');o.muted=!0,o.defaultMuted=!0,o.autoplay=!0,o.playsInline=!0,o.setAttribute('playsinline',''),o.style.cssText='position:fixed;left:0;bottom:0;width:4px;height:4px;opacity:0.01;pointer-events:none;z-index:-1;',(document.body??document.documentElement).appendChild(o),this.video=o,this.mediaSource=new MediaSource,this.objectUrl=URL.createObjectURL(this.mediaSource),o.src=this.objectUrl,this.mediaSource.addEventListener('sourceopen',this.onSourceOpen,{once:!0}),o.addEventListener('error',this.onVideoError),this.rafHandle=requestAnimationFrame(this.tick)}feed(t,s,o){if(this.destroyed)return;if(!this.muxer.ready&&!s)return void this.callbacks.requestKeyframe?.();const{init:n,segment:c}=this.muxer.append(t,s,o);n&&(this.queue.push(n),this.setupSourceBuffer()),c&&this.queue.push(c),this.pump()}destroy(){this.destroyed=!0,this.rafHandle&&cancelAnimationFrame(this.rafHandle),this.rafHandle=0,this.video.removeEventListener('error',this.onVideoError);try{this.sourceBuffer&&this.sourceBuffer.removeEventListener('updateend',this.pump)}catch{}try{'open'===this.mediaSource.readyState&&this.mediaSource.endOfStream()}catch{}try{this.video.pause(),this.video.removeAttribute('src'),this.video.load(),this.video.remove()}catch{}try{URL.revokeObjectURL(this.objectUrl)}catch{}this.queue.length=0}onSourceOpen=()=>{try{URL.revokeObjectURL(this.objectUrl)}catch{}this.setupSourceBuffer(),this.pump()};onVideoError=()=>{this.destroyed||this.callbacks.onError?.('Video playback error')};setupSourceBuffer(){if(this.sourceBuffer||'open'!==this.mediaSource.readyState)return;const t=this.muxer.codec;if(!t)return;let o=`video/mp4; codecs="${t}"`;if(!MediaSource.isTypeSupported(o)){if(!MediaSource.isTypeSupported(s))return void this.callbacks.onError?.('This browser cannot decode this H.264 profile.');o=s}try{const t=this.mediaSource.addSourceBuffer(o);t.mode='segments',t.addEventListener('updateend',this.pump),this.sourceBuffer=t}catch{this.callbacks.onError?.('Failed to start MSE video buffer.')}}pump=()=>{const t=this.sourceBuffer;if(this.destroyed||!t||t.updating||'open'!==this.mediaSource.readyState)return;if(this.pruneBackBuffer())return;const s=this.queue.shift();if(s)try{t.appendBuffer(s)}catch(t){'QuotaExceededError'===t?.name?(this.queue.unshift(s),this.pruneBackBuffer(!0)):this.callbacks.onError?.('Failed to append video data.')}};pruneBackBuffer(t=!1){const s=this.sourceBuffer;if(!s||s.updating||0===s.buffered.length)return!1;const o=s.buffered.start(0),n=this.video.currentTime-(t?3:30);if(n>o+.1)try{return s.remove(o,n),!0}catch{return!1}return!1}tick=()=>{if(this.destroyed)return;this.rafHandle=requestAnimationFrame(this.tick);const t=this.video,s=t.buffered;if(s.length>0){const o=s.start(0),n=s.end(s.length-1),c=n-t.currentTime;if(t.currentTime>n+.05||t.currentTime<o-.05||c>.5){try{t.currentTime=Math.max(o,n-.03)}catch{}t.playbackRate=1}else t.playbackRate=c>.05?1+Math.min(8*(c-.05),1.5):1}t.paused&&t.readyState>=2&&t.play().catch(()=>{}),0!==t.videoWidth&&(this.painted||(this.painted=!0,this.canvas.width=t.videoWidth,this.canvas.height=t.videoHeight,this.callbacks.onResize?.(t.videoWidth,t.videoHeight),this.callbacks.onFirstFrame?.(),this.fpsWindowStart=performance.now(),this.fpsBaseFrames=t.getVideoPlaybackQuality?.().totalVideoFrames??0),this.ctx&&this.ctx.drawImage(t,0,0),this.reportFps())};reportFps(){const t=performance.now();if(t-this.fpsWindowStart<1e3)return;const s=this.video.getVideoPlaybackQuality?.().totalVideoFrames;if(null!=s){const o=Math.round(1e3*(s-this.fpsBaseFrames)/(t-this.fpsWindowStart));this.callbacks.onFps?.(o),this.fpsBaseFrames=s}this.fpsWindowStart=t}}},160,[161]);
217
- __d(function(g,_r,_i,a,m,e,d){"use strict";function t(t){return new Uint8Array([t>>8&255,255&t])}function n(t){return new Uint8Array([t>>>24&255,t>>>16&255,t>>>8&255,255&t])}function i(t){const i=Math.floor(t/4294967296),s=t>>>0;return new Uint8Array([...n(i),...n(s)])}function s(t){return new Uint8Array([t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)])}function r(t){let n=0;for(const i of t)n+=i.byteLength;const i=new Uint8Array(n);let s=0;for(const n of t)i.set(n,s),s+=n.byteLength;return i}function o(t,...i){const o=r(i);return r([n(8+o.byteLength),s(t),o])}function*h(t){const n=t.length,i=i=>{for(let s=i;s+2<n;s++)if(0===t[s]&&0===t[s+1]){if(1===t[s+2])return{pos:s,len:3};if(s+3<n&&0===t[s+2]&&1===t[s+3])return{pos:s,len:4}}return null};let s=i(0);for(;s;){const r=s.pos+s.len,o=i(r),h=o?o.pos:n;h>r&&(yield t.subarray(r,h)),s=o}}function u(t){const n=[];for(let i=0;i<t.length;i++)i+2<t.length&&0===t[i]&&0===t[i+1]&&3===t[i+2]?(n.push(0,0),i+=2):n.push(t[i]);return new Uint8Array(n)}Object.defineProperty(e,'__esModule',{value:!0}),e.codecStringFromSps=y,Object.defineProperty(e,"FragmentedMp4Muxer",{enumerable:!0,get:function(){return w}});class c{pos=0;constructor(t){this.data=t}bit(){const t=(this.data[this.pos>>3]??0)>>7-(7&this.pos)&1;return this.pos++,t}bits(t){let n=0;for(let i=0;i<t;i++)n=n<<1|this.bit();return n>>>0}ue(){let t=0;for(;0===this.bit()&&t<32;)t++;return 0===t?0:(1<<t)-1+this.bits(t)}se(){const t=this.ue();return 1&t?t+1>>1:-(t>>1)}}const l=new Set([100,110,122,244,44,83,86,118,128,138,139,134,135]);function f(t,n){let i=8,s=8;for(let r=0;r<n;r++){if(0!==s){s=(i+t.se()+256)%256}i=0===s?i:s}}function b(t){const n=new c(u(t.subarray(1))),i=n.bits(8);n.bits(8),n.bits(8),n.ue();let s=1;if(l.has(i)&&(s=n.ue(),3===s&&n.bit(),n.ue(),n.ue(),n.bit(),n.bit())){const t=3!==s?8:12;for(let i=0;i<t;i++)n.bit()&&f(n,i<6?16:64)}n.ue();const r=n.ue();if(0===r)n.ue();else if(1===r){n.bit(),n.se(),n.se();const t=n.ue();for(let i=0;i<t;i++)n.se()}n.ue(),n.bit();const o=n.ue(),h=n.ue(),b=n.bit();b||n.bit(),n.bit();let y=0,p=0,w=0,A=0;n.bit()&&(y=n.ue(),p=n.ue(),w=n.ue(),A=n.ue());const U=16*(o+1),v=(2-b)*(h+1)*16,L=0===s?1:0===s?1:2,M=(0===s?1:0===s?1:2)*(2-b);return{width:Math.max(0,U-L*(y+p)),height:Math.max(0,v-M*(w+A))}}function y(t){const n=t=>t.toString(16).padStart(2,'0');return`avc1.${n(t[1])}${n(t[2])}${n(t[3])}`}const p=r([n(65536),n(0),n(0),n(0),n(65536),n(0),n(0),n(0),n(1073741824)]);class w{sps=null;pps=null;codecKey='';width=0;height=0;seq=1;baseMediaDecodeTime=0;prevPtsTicks=null;get codec(){return this.sps?y(this.sps):null}get ready(){return!!this.sps&&!!this.pps}append(t,n,i){const s=[];let r,o=null,u=null;for(const n of h(t)){const t=31&n[0];7===t?o=n.slice():8===t?u=n.slice():t>=1&&t<=6&&s.push(n)}if(o&&u){const t=`${o.join(',')}|${u.join(',')}`;if(t!==this.codecKey){this.sps=o,this.pps=u,this.codecKey=t;const n=b(o);this.width=n.width,this.height=n.height,r=this.buildInit()}}if(!this.ready||0===s.length)return{init:r};const c=null==i?null:Math.round(9e4*i/1e6);let l=3e3;if(null!=c&&null!=this.prevPtsTicks){const t=c-this.prevPtsTicks;l=t>0?Math.min(t,45e4):3e3}null!=c&&(this.prevPtsTicks=c);return{init:r,segment:this.buildSegment(s,n,l)}}get dimensions(){return this.width&&this.height?{width:this.width,height:this.height}:null}buildInit(){const i=this.sps,h=this.pps,u=o('avcC',new Uint8Array([1,i[1],i[2],i[3],255,225]),t(i.byteLength),i,new Uint8Array([1]),t(h.byteLength),h),c=o('avc1',new Uint8Array(6),t(1),new Uint8Array(16),t(this.width),t(this.height),n(4718592),n(4718592),n(0),t(1),new Uint8Array(32),t(24),new Uint8Array([255,255]),u),l=o('stbl',o('stsd',n(0),n(1),c),o('stts',n(0),n(0)),o('stsc',n(0),n(0)),o('stsz',n(0),n(0),n(0)),o('stco',n(0),n(0))),f=o('dinf',o('dref',n(0),n(1),o('url ',n(1)))),b=o('minf',o('vmhd',n(1),n(0),n(0)),f,l),y=o('mdhd',n(0),n(0),n(0),n(9e4),n(0),t(21956),t(0)),w=o('hdlr',n(0),n(0),s('vide'),n(0),n(0),n(0),new Uint8Array([...s('Vide'),...s('oHan'),...s('dler'),0])),A=o('mdia',y,w,b),U=o('tkhd',new Uint8Array([0,0,0,7]),n(0),n(0),n(1),n(0),n(0),n(0),n(0),t(0),t(0),t(0),t(0),p,n(this.width<<16),n(this.height<<16)),v=o('trak',U,A),L=o('mvhd',n(0),n(0),n(0),n(1e3),n(0),n(65536),t(256),t(0),n(0),n(0),p,n(0),n(0),n(0),n(0),n(0),n(0),n(2)),M=o('trex',n(0),n(1),n(1),n(0),n(0),n(0)),S=o('moov',L,v,o('mvex',M));return r([o('ftyp',s('isom'),n(0),s('isom'),s('iso6'),s('avc1'),s('mp41')),S])}buildSegment(t,s,h){let u=0;for(const n of t)u+=4+n.byteLength;const c=new Uint8Array(u);let l=0;for(const i of t)c.set(n(i.byteLength),l),l+=4,c.set(i,l),l+=i.byteLength;const f=o('mfhd',n(0),n(this.seq++)),b=o('tfhd',new Uint8Array([0,2,0,0]),n(1)),y=o('tfdt',new Uint8Array([1,0,0,0]),i(this.baseMediaDecodeTime)),p=o('trun',new Uint8Array([0,0,7,1]),n(1),n(0),n(h),n(u),n(s?33554432:16842752)),w=o('moof',f,o('traf',b,y,p));return new DataView(w.buffer,w.byteOffset,w.byteLength).setInt32(w.byteLength-16,w.byteLength+8,!1),this.baseMediaDecodeTime+=h,r([w,o('mdat',c)])}}},161,[]);
218
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useActiveDeviceClient=function(u,c){const s='ios'===u?.platform,v='android'===u?.platform,_=(0,o.useIosDeviceClient)({enabled:s,baseUrl:s?(0,n.endpointFor)('ios',c):null,device:s?u?.device??null:null}),b=(0,l.useAndroidDeviceClient)({enabled:v,baseUrl:v?(0,n.endpointFor)('android',c):null,device:v?u?.device??null:null});return s?_:v?b:t.NOOP_DEVICE_CLIENT};var n=r(d[0]),l=r(d[1]),o=r(d[2]),t=r(d[3])},162,[155,158,154,163]);
219
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NOOP_DEVICE_CLIENT",{enumerable:!0,get:function(){return t}});const t={platform:'ios',status:'idle',error:null,screen:null,fps:0,devices:[],logs:[],logsEnabled:!1,attachLogs:()=>{},detachLogs:()=>{},clearLogs:()=>{},foregroundApp:null,videoKind:'img',attachVideo:()=>{},sendTouch:()=>{},pressButton:()=>{},reload:()=>{},rotate:()=>{},screenshot:async()=>null,appearance:null,setAppearance:()=>{}}},163,[]);
220
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return t.Button}}),Object.defineProperty(e,"ControlButton",{enumerable:!0,get:function(){return n.ControlButton}}),Object.defineProperty(e,"DeviceListItem",{enumerable:!0,get:function(){return o.DeviceListItem}}),Object.defineProperty(e,"DialogRoot",{enumerable:!0,get:function(){return u.DialogRoot}}),Object.defineProperty(e,"DialogContent",{enumerable:!0,get:function(){return u.DialogContent}}),Object.defineProperty(e,"DialogTitle",{enumerable:!0,get:function(){return u.DialogTitle}}),Object.defineProperty(e,"DialogContentContainer",{enumerable:!0,get:function(){return u.DialogContentContainer}}),Object.defineProperty(e,"DialogFooter",{enumerable:!0,get:function(){return u.DialogFooter}}),Object.defineProperty(e,"DialogClose",{enumerable:!0,get:function(){return u.DialogClose}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return c.Dropdown}}),Object.defineProperty(e,"DropdownItem",{enumerable:!0,get:function(){return b.DropdownItem}}),Object.defineProperty(e,"Logo",{enumerable:!0,get:function(){return f.Logo}}),Object.defineProperty(e,"ResizeHandle",{enumerable:!0,get:function(){return l.ResizeHandle}}),Object.defineProperty(e,"SidebarToggle",{enumerable:!0,get:function(){return p.SidebarToggle}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return y.Switch}}),Object.defineProperty(e,"cx",{enumerable:!0,get:function(){return O.cx}}),Object.defineProperty(e,"Sidebar",{enumerable:!0,get:function(){return s.Sidebar}}),Object.defineProperty(e,"LogSidebar",{enumerable:!0,get:function(){return D.LogSidebar}}),Object.defineProperty(e,"StreamPanel",{enumerable:!0,get:function(){return S.StreamPanel}}),Object.defineProperty(e,"EmptyState",{enumerable:!0,get:function(){return C.EmptyState}}),Object.defineProperty(e,"DeviceSection",{enumerable:!0,get:function(){return L.DeviceSection}}),Object.defineProperty(e,"OutputSection",{enumerable:!0,get:function(){return w.OutputSection}}),Object.defineProperty(e,"CurrentAppSection",{enumerable:!0,get:function(){return h.CurrentAppSection}}),Object.defineProperty(e,"PhoneFrame",{enumerable:!0,get:function(){return v.PhoneFrame}}),Object.defineProperty(e,"LogControls",{enumerable:!0,get:function(){return R.LogControls}}),Object.defineProperty(e,"LogList",{enumerable:!0,get:function(){return E.LogList}}),Object.defineProperty(e,"LogRow",{enumerable:!0,get:function(){return B.LogRow}}),Object.defineProperty(e,"StreamControls",{enumerable:!0,get:function(){return M.StreamControls}}),Object.defineProperty(e,"RecentDevicesModal",{enumerable:!0,get:function(){return F.RecentDevicesModal}}),Object.defineProperty(e,"BootErrorModal",{enumerable:!0,get:function(){return I.BootErrorModal}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),b=r(d[5]),f=r(d[6]),l=r(d[7]),p=r(d[8]),y=r(d[9]),O=r(d[10]),P=r(d[11]);Object.keys(P).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return P[t]}})});var j=r(d[12]);Object.keys(j).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}})});var s=r(d[13]),D=r(d[14]),S=r(d[15]),C=r(d[16]),L=r(d[17]),w=r(d[18]),h=r(d[19]),v=r(d[20]),R=r(d[21]),E=r(d[22]),B=r(d[23]),M=r(d[24]),F=r(d[25]),I=r(d[26]),T=r(d[27]);Object.keys(T).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return T[t]}})})},164,[165,167,168,169,226,241,242,243,244,245,224,225,166,246,250,256,259,248,252,251,257,253,254,255,258,249,260,261]);
221
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Button=function({children:n,theme:l="primary",size:u="sm",leftSlot:b,rightSlot:h,block:x=!1,disabled:p=!1,type:y="button",href:v,target:j,onClick:f,className:k,style:S}){const[O,z]=(0,s.useState)(!1),[I,R]=(0,s.useState)(!1),C=o[l],B=Object.assign({display:'inline-flex',alignItems:'center',justifyContent:'center',gap:'2xs'===u?4:'xs'===u?6:8,border:'1px solid',fontWeight:500,whiteSpace:'nowrap',cursor:p?'default':'pointer',textDecoration:'none',transition:'background-color 150ms ease, transform 100ms ease, opacity 150ms ease',width:x?'100%':void 0,transform:!p&&I?'scale(0.98)':void 0},c[u],{backgroundColor:p?C.disabledBackground:O?C.hover:C.background,borderColor:p?C.disabledBorder:C.border,color:p?C.disabledText:C.text,opacity:p?.8:1,pointerEvents:p?'none':void 0},S),M=(0,t.jsxs)(t.Fragment,{children:[b,null!=n&&(0,t.jsx)("span",{style:{display:'flex',lineHeight:1},children:n}),h]}),w={onMouseEnter:()=>z(!0),onMouseLeave:()=>{z(!1),R(!1)},onMouseDown:()=>R(!0),onMouseUp:()=>R(!1)};if(v)return(0,t.jsx)("a",Object.assign({href:p?void 0:v,target:j,className:k,style:B,onClick:p?void 0:f},w,{children:M}));return(0,t.jsx)("button",Object.assign({type:y,className:k,style:B,disabled:p,onClick:p?void 0:f},w,{children:M}))};var t=r(d[0]),s=r(d[1]),n=r(d[2]);const o={primary:l('primary'),secondary:l('secondary'),tertiary:l('tertiary'),quaternary:l('quaternary'),'primary-destructive':l('primary-destructive'),'secondary-destructive':l('secondary-destructive'),'tertiary-destructive':l('tertiary-destructive')};function l(t){const s=s=>`var(--expo-theme-button-${t}-${s})`;return{background:s('background'),hover:s('hover'),text:s('text'),border:s('border'),disabledBackground:s('disabled-background'),disabledBorder:s('disabled-border'),disabledText:s('disabled-text')}}const c={'2xs':Object.assign({height:28,paddingInline:8,borderRadius:n.radius.lg},n.textSize.xs),xs:Object.assign({height:32,paddingInline:12,borderRadius:n.radius.lg},n.textSize.xs),sm:Object.assign({height:36,paddingInline:16,borderRadius:n.radius.lg},n.textSize.sm),md:Object.assign({height:40,paddingInline:16,borderRadius:n.radius.lg},n.textSize.sm),lg:Object.assign({height:44,paddingInline:24,borderRadius:n.radius.lg},n.textSize.base),xl:Object.assign({height:48,paddingInline:24,borderRadius:n.radius.lg},n.textSize.base),'2xl':Object.assign({height:60,paddingInline:24,borderRadius:n.radius.lg},n.textSize.lg)}},165,[151,38,166]);
222
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"text",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"icon",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"border",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"radius",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"font",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"textSize",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"heading",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"tokens",{enumerable:!0,get:function(){return u}});const t={default:'var(--expo-theme-background-default)',screen:'var(--expo-theme-background-screen)',subtle:'var(--expo-theme-background-subtle)',element:'var(--expo-theme-background-element)',hover:'var(--expo-theme-background-hover)',selected:'var(--expo-theme-background-selected)',overlay:'var(--expo-theme-background-overlay)',success:'var(--expo-theme-background-success)',warning:'var(--expo-theme-background-warning)',danger:'var(--expo-theme-background-danger)',info:'var(--expo-theme-background-info)',preview:'var(--expo-theme-background-preview)'},n={default:'var(--expo-theme-text-default)',secondary:'var(--expo-theme-text-secondary)',tertiary:'var(--expo-theme-text-tertiary)',quaternary:'var(--expo-theme-text-quaternary)',link:'var(--expo-theme-text-link)',success:'var(--expo-theme-text-success)',warning:'var(--expo-theme-text-warning)',danger:'var(--expo-theme-text-danger)',info:'var(--expo-theme-text-info)',preview:'var(--expo-theme-text-preview)'},o={default:'var(--expo-theme-icon-default)',secondary:'var(--expo-theme-icon-secondary)',tertiary:'var(--expo-theme-icon-tertiary)',quaternary:'var(--expo-theme-icon-quaternary)',success:'var(--expo-theme-icon-success)',warning:'var(--expo-theme-icon-warning)',danger:'var(--expo-theme-icon-danger)',info:'var(--expo-theme-icon-info)',preview:'var(--expo-theme-icon-preview)'},x={default:'var(--expo-theme-border-default)',secondary:'var(--expo-theme-border-secondary)',success:'var(--expo-theme-border-success)',warning:'var(--expo-theme-border-warning)',danger:'var(--expo-theme-border-danger)',info:'var(--expo-theme-border-info)',preview:'var(--expo-theme-border-preview)'},p={none:'0',xs:'var(--expo-radius-xs)',sm:'var(--expo-radius-sm)',md:'var(--expo-radius-md)',lg:'var(--expo-radius-lg)',xl:'var(--expo-radius-xl)','2xl':'var(--expo-radius-2xl)','3xl':'var(--expo-radius-3xl)',full:'var(--expo-radius-full)'},c={none:'var(--expo-theme-shadows-none)',xs:'var(--expo-theme-shadows-xs)',sm:'var(--expo-theme-shadows-sm)',md:'var(--expo-theme-shadows-md)',lg:'var(--expo-theme-shadows-lg)',xl:'var(--expo-theme-shadows-xl)'},h={sans:'var(--expo-font-sans)',mono:'var(--expo-font-mono)'},l={'2xl':{fontSize:24,fontWeight:500,lineHeight:1.2,letterSpacing:'-0.5px'},xl:{fontSize:20,fontWeight:500,lineHeight:1.2,letterSpacing:'-0.25px'},lg:{fontSize:18,fontWeight:400,lineHeight:1.4,letterSpacing:'0'},base:{fontSize:16,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},sm:{fontSize:14,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},xs:{fontSize:12,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},'2xs':{fontSize:10,fontWeight:500,lineHeight:1.6,letterSpacing:'0'}},s={'5xl':{fontSize:64,fontWeight:600,lineHeight:1.1,letterSpacing:'-3px'},'4xl':{fontSize:48,fontWeight:600,lineHeight:1.1,letterSpacing:'-2px'},'3xl':{fontSize:32,fontWeight:600,lineHeight:1.1,letterSpacing:'-0.5px'},'2xl':{fontSize:24,fontWeight:600,lineHeight:1.2,letterSpacing:'-0.5px'},xl:{fontSize:20,fontWeight:600,lineHeight:1.4,letterSpacing:'-0.25px'},lg:{fontSize:18,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},base:{fontSize:16,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},sm:{fontSize:14,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},xs:{fontSize:12,fontWeight:600,lineHeight:1.6,letterSpacing:'0'}},u={bg:t,text:n,icon:o,border:x,radius:p,shadow:c,font:h,textSize:l,heading:s}},166,[]);
223
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["icon","label","variant","style","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ControlButton",{enumerable:!0,get:function(){return c}});var n,o=r(d[0]),t=(n=o)&&n.__esModule?n:{default:n},s=r(d[1]),l=r(d[2]),u=r(d[3]);const c=(0,l.forwardRef)(function(n,o){let{icon:c,label:f,variant:b="default",style:p,onMouseEnter:y,onMouseLeave:x,onMouseDown:M,onMouseUp:j}=n,v=(0,t.default)(n,e);const[h,_]=(0,l.useState)(!1),[w,O]=(0,l.useState)(!1),D='primary'===b,S=D?60:32,k={display:'flex',alignItems:'center',justifyContent:'center',width:S,height:S,borderRadius:u.radius.full,boxSizing:'border-box',border:D?'none':`1px solid ${u.border.default}`,backgroundColor:D?u.text.default:h?u.bg.element:'transparent',color:D?u.bg.default:u.icon.default,opacity:D&&h?.85:1,transition:'background-color 150ms ease, opacity 150ms ease, transform 100ms ease',transform:w?'scale(0.98)':void 0};return(0,s.jsxs)("button",Object.assign({ref:o,type:"button",onMouseEnter:e=>{_(!0),y?.(e)},onMouseLeave:e=>{_(!1),O(!1),x?.(e)},onMouseDown:e=>{O(!0),M?.(e)},onMouseUp:e=>{O(!1),j?.(e)},style:Object.assign({display:'flex',flexDirection:'column',alignItems:'center',gap:6,padding:0,border:'none',background:'none',cursor:'pointer',fontFamily:'inherit'},p)},v,{children:[(0,s.jsx)("span",{style:k,children:c}),(0,s.jsx)("span",{style:Object.assign({},u.textSize['2xs'],{color:u.text.secondary,textAlign:'center'}),children:f})]}))})},167,[131,151,38,166]);
224
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceListItem=function({name:s,version:l,selected:c=!1,onClick:u}){const[p,f]=(0,n.useState)(!1),[b,h]=(0,n.useState)(!1),x={display:'flex',justifyContent:'space-between',alignItems:'center',gap:16,width:'100%',padding:16,border:'none',borderRadius:o.radius.xl,backgroundColor:c?o.bg.hover:p?o.bg.element:'transparent',cursor:'pointer',textAlign:'left',fontFamily:'inherit',transition:'background-color 150ms ease, transform 100ms ease',transform:b?'scale(0.98)':void 0};return(0,t.jsxs)("button",{type:"button",style:x,onClick:u,"aria-pressed":c,onMouseEnter:()=>f(!0),onMouseLeave:()=>{f(!1),h(!1)},onMouseDown:()=>h(!0),onMouseUp:()=>h(!1),children:[(0,t.jsx)("span",{title:s,style:Object.assign({},o.textSize.sm,{fontWeight:500,color:o.text.default,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap'}),children:s}),(0,t.jsx)("span",{style:Object.assign({},o.textSize.sm,{fontWeight:500,color:o.text.secondary,whiteSpace:'nowrap',flexShrink:0}),children:l})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2])},168,[151,38,166]);
225
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["children","className","containerClassName","overlayClassName"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.DialogRoot=function({children:e,open:l,onOpenChange:t}){return(0,s.jsx)(o.Root,{open:l,onOpenChange:t,children:e})},_e.DialogContent=function(l){let{children:t,className:u,containerClassName:h,overlayClassName:f}=l,p=(0,n.default)(l,e);return(0,s.jsx)(o.Portal,{children:(0,s.jsxs)(o.Overlay,{className:"dialog-overlay group absolute z-dialogOverlay-600",children:[(0,s.jsx)("div",{className:(0,x.cx)('fixed inset-0 bg-[#000000]/50','group-data-[state=open]:animate-fadeIn group-data-[state=closed]:animate-fadeOut',f)}),(0,s.jsx)("div",{className:"fixed top-0 left-0 z-dialogContent-601 flex h-dvh w-dvw items-center justify-center",children:(0,s.jsxs)(o.Content,Object.assign({className:(0,x.cx)('overflow-hidden rounded-lg shadow-md outline-0','data-[state=open]:animate-largeSlideUpAndFadeIn data-[state=closed]:animate-fadeOut',h)},p,{children:[(0,s.jsx)(c.VisuallyHidden,{asChild:!0,children:(0,s.jsx)(o.Description,{})}),(0,s.jsx)("div",{className:(0,x.cx)('w-[90vw] max-w-125 overflow-hidden rounded-lg border border-default bg-default text-default outline-0',u),children:t})]}))})]})})},_e.DialogTitle=function({title:e}){return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2.5 border-b border-b-default px-6 py-4",children:[(0,s.jsx)(o.Title,{asChild:!0,children:(0,s.jsx)("h2",{style:Object.assign({},u.heading.base,{margin:0}),children:e})}),(0,s.jsx)(f,{children:(0,s.jsx)("button",{type:"button","aria-label":"Close",className:"dialog-close-button",children:(0,s.jsx)(h.CloseIcon,{size:20})})})]})},_e.DialogContentContainer=function({children:e,className:l}){return(0,s.jsx)("div",{className:(0,x.cx)('flex max-h-[calc(90vh-69px-53px)] flex-col gap-1.5 overflow-y-auto p-6 pt-4 outline-0',l),children:e})},_e.DialogFooter=function({children:e}){return(0,s.jsx)("div",{className:"flex items-center justify-end gap-3 border-t border-t-default bg-subtle px-3 py-4 max-md:py-2",children:e})},_e.DialogClose=f;var l,t=r(d[0]),n=(l=t)&&l.__esModule?l:{default:l},s=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),x=r(d[5]),h=r(d[6]);function f({children:e}){return(0,s.jsx)(o.Close,{asChild:!0,children:e})}},169,[131,151,170,223,166,224,225]);
226
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["__scopeDialog"],t=["forceMount"],n=["__scopeDialog"],o=["forceMount"],s=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],c=["__scopeDialog"],u=["__scopeDialog"],l=["__scopeDialog"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Close",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"Content",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"Description",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"Dialog",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"DialogClose",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"DialogContent",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"DialogDescription",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"DialogOverlay",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"DialogPortal",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"DialogTitle",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"DialogTrigger",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"Overlay",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"Portal",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"Title",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"Trigger",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"WarningProvider",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(_e,"createDialogScope",{enumerable:!0,get:function(){return N}});var d,f=r(_d[0]),p=(d=f)&&d.__esModule?d:{default:d},b=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),O=r(_d[2]),j=r(_d[3]),D=r(_d[4]),_=r(_d[5]),v=r(_d[6]),y=r(_d[7]),P=r(_d[8]),C=r(_d[9]),R=r(_d[10]),h=r(_d[11]),x=r(_d[12]),F=r(_d[13]),w=r(_d[14]),I=r(_d[15]),E=r(_d[16]),M="Dialog",[A,N]=(0,D.createContextScope)(M),[S,T]=A(M),k=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,l=b.useRef(null),d=b.useRef(null),[f,p]=(0,v.useControllableState)({prop:o,defaultProp:s??!1,onChange:c,caller:M});return(0,E.jsx)(S,{scope:t,triggerRef:l,contentRef:d,contentId:(0,_.useId)(),titleId:(0,_.useId)(),descriptionId:(0,_.useId)(),open:f,onOpenChange:p,onOpenToggle:b.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};k.displayName=M;var H="DialogTrigger",L=b.forwardRef((t,n)=>{const{__scopeDialog:o}=t,s=(0,p.default)(t,e),c=T(H,o),u=(0,j.useComposedRefs)(n,c.triggerRef);return(0,E.jsx)(h.Primitive.button,Object.assign({type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":ae(c.open)},s,{ref:u,onClick:(0,O.composeEventHandlers)(t.onClick,c.onOpenToggle)}))});L.displayName=H;var G="DialogPortal",[K,U]=A(G,{forceMount:void 0}),W=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:s}=e,c=T(G,t);return(0,E.jsx)(K,{scope:t,forceMount:n,children:b.Children.map(o,e=>(0,E.jsx)(R.Presence,{present:n||c.open,children:(0,E.jsx)(C.Portal,{asChild:!0,container:s,children:e})}))})};W.displayName=G;var Z="DialogOverlay",q=b.forwardRef((e,n)=>{const o=U(Z,e.__scopeDialog),{forceMount:s=o.forceMount}=e,c=(0,p.default)(e,t),u=T(Z,e.__scopeDialog);return u.modal?(0,E.jsx)(R.Presence,{present:s||u.open,children:(0,E.jsx)(B,Object.assign({},c,{ref:n}))}):null});q.displayName=Z;var z=(0,I.createSlot)("DialogOverlay.RemoveScroll"),B=b.forwardRef((e,t)=>{const{__scopeDialog:o}=e,s=(0,p.default)(e,n),c=T(Z,o),u=(0,y.useDismissableLayerSurface)(),l=(0,j.useComposedRefs)(t,u);return(0,E.jsx)(F.RemoveScroll,{as:z,allowPinchZoom:!0,shards:[c.contentRef],children:(0,E.jsx)(h.Primitive.div,Object.assign({"data-state":ae(c.open)},s,{ref:l,style:Object.assign({pointerEvents:"auto"},s.style)}))})}),J="DialogContent",Q=b.forwardRef((e,t)=>{const n=U(J,e.__scopeDialog),{forceMount:s=n.forceMount}=e,c=(0,p.default)(e,o),u=T(J,e.__scopeDialog);return(0,E.jsx)(R.Presence,{present:s||u.open,children:u.modal?(0,E.jsx)(V,Object.assign({},c,{ref:t})):(0,E.jsx)(X,Object.assign({},c,{ref:t}))})});Q.displayName=J;var V=b.forwardRef((e,t)=>{const n=T(J,e.__scopeDialog),o=b.useRef(null),s=(0,j.useComposedRefs)(t,n.contentRef,o);return b.useEffect(()=>{const e=o.current;if(e)return(0,w.hideOthers)(e)},[]),(0,E.jsx)(Y,Object.assign({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,O.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,O.composeEventHandlers)(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,O.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())}))}),X=b.forwardRef((e,t)=>{const n=T(J,e.__scopeDialog),o=b.useRef(!1),s=b.useRef(!1);return(0,E.jsx)(Y,Object.assign({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));const c=t.target,u=n.triggerRef.current?.contains(c);u&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}}))}),Y=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:u}=e,l=(0,p.default)(e,s),d=T(J,n);return(0,x.useFocusGuards)(),(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(P.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:u,children:(0,E.jsx)(y.DismissableLayer,Object.assign({role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":ae(d.open)},l,{ref:t,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1)}))})})}),$="DialogTitle",ee=b.forwardRef((e,t)=>{const{__scopeDialog:n}=e,o=(0,p.default)(e,c),s=T($,n);return(0,E.jsx)(h.Primitive.h2,Object.assign({id:s.titleId},o,{ref:t}))});ee.displayName=$;var te="DialogDescription",ne=b.forwardRef((e,t)=>{const{__scopeDialog:n}=e,o=(0,p.default)(e,u),s=T(te,n);return(0,E.jsx)(h.Primitive.p,Object.assign({id:s.descriptionId},o,{ref:t}))});ne.displayName=te;var oe="DialogClose",re=b.forwardRef((e,t)=>{const{__scopeDialog:n}=e,o=(0,p.default)(e,l),s=T(oe,n);return(0,E.jsx)(h.Primitive.button,Object.assign({type:"button"},o,{ref:t,onClick:(0,O.composeEventHandlers)(e.onClick,()=>s.onOpenChange(!1))}))});re.displayName=oe;var ie=e=>e.children;function ae(e){return e?"open":"closed"}},170,[131,38,171,172,173,174,176,178,182,183,184,179,185,186,222,180,151]);
227
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"canUseDOM",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"composeEventHandlers",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getActiveElement",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getOwnerDocument",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getOwnerWindow",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isFrame",{enumerable:!0,get:function(){return f}});var n=!("undefined"==typeof window||!window.document||!window.document.createElement);function t(n,t,{checkForDefaultPrevented:o=!0}={}){return function(u){if(n?.(u),!1===o||!u||!u.defaultPrevented)return t?.(u)}}function o(t){if(!n)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}function u(t){if(!n)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}function c(n,t=!1){const{activeElement:o}=u(n);if(!o?.nodeName)return null;if(f(o)&&o.contentDocument)return c(o.contentDocument.body,t);if(t){const n=o.getAttribute("aria-activedescendant");if(n){const t=u(o).getElementById(n);if(t)return t}}return o}function f(n){return"IFRAME"===n.tagName}},171,[]);
228
- __d(function(g,r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"composeRefs",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"useComposedRefs",{enumerable:!0,get:function(){return u}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));function t(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return n=>{let u=!1;const o=e.map(e=>{const o=t(e,n);return u||"function"!=typeof o||(u=!0),o});if(u)return()=>{for(let n=0;n<o.length;n++){const u=o[n];"function"==typeof u?u():t(e[n],null)}}}}function u(...t){return e.useCallback(n(...t),t)}},172,[38]);
229
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["children"],t=["scope","children"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"createContext",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"createContextScope",{enumerable:!0,get:function(){return f}});var n,o=r(_d[0]),c=(n=o)&&n.__esModule?n:{default:n},u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),s=r(_d[2]);function d(t,n){const o=u.createContext(n);o.displayName=t+"Context";const d=t=>{const{children:n}=t,d=(0,c.default)(t,e),f=u.useMemo(()=>d,Object.values(d));return(0,s.jsx)(o.Provider,{value:f,children:n})};return d.displayName=t+"Provider",[d,function(e,c={}){const{optional:s=!1}=c,d=u.useContext(o);if(d)return d;if(void 0!==n)return n;if(!s)throw new Error(`\`${e}\` must be used within \`${t}\``)}]}function f(e,n=[]){let o=[];const d=()=>{const t=o.map(e=>u.createContext(e));return function(n){const o=n?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:Object.assign({},n,{[e]:o})}),[n,o])}};return d.scopeName=e,[function(n,d){const f=u.createContext(d);f.displayName=n+"Context";const l=o.length;o=[...o,d];const p=n=>{const{scope:o,children:d}=n,p=(0,c.default)(n,t),b=o?.[e]?.[l]||f,v=u.useMemo(()=>p,Object.values(p));return(0,s.jsx)(b.Provider,{value:v,children:d})};return p.displayName=n+"Provider",[p,function(t,o,c={}){const{optional:s=!1}=c,p=o?.[e]?.[l]||f,b=u.useContext(p);if(b)return b;if(void 0!==d)return d;if(!s)throw new Error(`\`${t}\` must be used within \`${n}\``)}]},l(d,...n)]}function l(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=n.reduce((t,{useScope:n,scopeName:o})=>{const c=n(e)[`__scope${o}`];return Object.assign({},t,c)},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}},173,[131,38,151]);
230
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useId",{enumerable:!0,get:function(){return o}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=e[" useId ".trim().toString()]||(()=>{}),u=0;function o(o){const[c,f]=e.useState(n());return(0,t.useLayoutEffect)(()=>{o||f(e=>e??String(u++))},[o]),o||(c?`radix-${c}`:"")}},174,[38,175]);
231
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useLayoutEffect",{enumerable:!0,get:function(){return t}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=globalThis?.document?e.useLayoutEffect:()=>{}},175,[38]);
232
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useControllableState",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"useControllableStateReducer",{enumerable:!0,get:function(){return f}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=e[" useInsertionEffect ".trim().toString()]||t.useLayoutEffect;function c({prop:t,defaultProp:n,onChange:o=()=>{},caller:c}){const[l,f,d]=u({defaultProp:n,onChange:o}),p=void 0!==t,b=p?t:l;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==p){const t=e?"controlled":"uncontrolled",n=p?"controlled":"uncontrolled";console.warn(`${c} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=p},[p,c])}return[b,e.useCallback(e=>{if(p){const n=s(e)?e(t):e;n!==t&&d.current?.(n)}else f(e)},[p,t,f,d])]}function u({defaultProp:t,onChange:n}){const[c,u]=e.useState(t),s=e.useRef(c),l=e.useRef(n);return o(()=>{l.current=n},[n]),e.useEffect(()=>{s.current!==c&&(l.current?.(c),s.current=c)},[c,s]),[c,u,l]}function s(e){return"function"==typeof e}var l=Symbol("RADIX:SYNC_STATE");function f(t,o,c,u){const{prop:s,defaultProp:f,onChange:d,caller:p}=o,b=void 0!==s,v=(0,n.useEffectEvent)(d);{const t=e.useRef(void 0!==s);e.useEffect(()=>{const e=t.current;if(e!==b){const t=e?"controlled":"uncontrolled",n=b?"controlled":"uncontrolled";console.warn(`${p} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=b},[b,p])}const h=[Object.assign({},c,{state:f})];u&&h.push(u);const[O,j]=e.useReducer((e,n)=>{if(n.type===l)return Object.assign({},e,{state:n.state});const o=t(e,n);return b&&!Object.is(o.state,e.state)&&v(o.state),o},...h),y=O.state,E=e.useRef(y);e.useEffect(()=>{E.current!==y&&(E.current=y,b||v(y))},[y,E,b]);const C=e.useMemo(()=>void 0!==s?Object.assign({},O,{state:s}):O,[O,s]);return e.useEffect(()=>{b&&!Object.is(s,O.state)&&j({type:l,state:s})},[s,O.state,b]),[C,j]}},176,[38,175,177]);
233
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useEffectEvent",{enumerable:!0,get:function(){return o}});var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=t[" useEffectEvent ".trim().toString()],u=t[" useInsertionEffect ".trim().toString()];function o(o){if("function"==typeof n)return n(o);const f=t.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof u?u(()=>{f.current=o}):(0,e.useLayoutEffect)(()=>{f.current=o}),t.useMemo(()=>(...e)=>f.current?.(...e),[])}},177,[175,38]);
234
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["disableOutsidePointerEvents","deferPointerDownOutside","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Branch",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"DismissableLayer",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"DismissableLayerBranch",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"useDismissableLayerSurface",{enumerable:!0,get:function(){return w}});var t,n,s=r(_d[0]),o=(t=s)&&t.__esModule?t:{default:t},u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),c=r(_d[2]),d=r(_d[3]),l=r(_d[4]),f=r(_d[5]),v=r(_d[6]),b="dismissableLayer.update",E=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),p=u.forwardRef((t,s)=>{const{disableOutsidePointerEvents:p=!1,deferPointerDownOutside:y=!1,onEscapeKeyDown:w,onPointerDownOutside:O,onFocusOutside:L,onInteractOutside:C,onDismiss:R}=t,k=(0,o.default)(t,e),S=u.useContext(E),[j,x]=u.useState(null),B=j?.ownerDocument??globalThis?.document,[,W]=u.useState({}),_=(0,l.useComposedRefs)(s,x),F=Array.from(S.layers),[T]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),H=T?F.indexOf(T):-1,M=j?F.indexOf(j):-1,N=S.layersWithOutsidePointerEventsDisabled.size>0,z=M>=H,A=u.useRef(!1),I=D(e=>{O?.(e),C?.(e),e.defaultPrevented||R?.()},{ownerDocument:B,deferPointerDownOutside:y,isDeferredPointerDownOutsideRef:A,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:u.useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...S.branches].some(t=>t.contains(e));return z&&!t},[S.branches,z])}),K=P(e=>{if(y&&A.current)return;const t=e.target;[...S.branches].some(e=>e.contains(t))||(L?.(e),C?.(e),e.defaultPrevented||R?.())},B),q=!!j&&M===F.length-1,G=(0,f.useCallbackRef)(e=>{"Escape"===e.key&&(w?.(e),!e.defaultPrevented&&R&&(e.preventDefault(),R()))});return u.useEffect(()=>{if(q)return B.addEventListener("keydown",G,{capture:!0}),()=>B.removeEventListener("keydown",G,{capture:!0})},[B,q,G]),u.useEffect(()=>{if(j)return p&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(n=B.body.style.pointerEvents,B.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(j)),S.layers.add(j),h(),()=>{p&&(S.layersWithOutsidePointerEventsDisabled.delete(j),0===S.layersWithOutsidePointerEventsDisabled.size&&(B.body.style.pointerEvents=n))}},[j,B,p,S]),u.useEffect(()=>()=>{j&&(S.layers.delete(j),S.layersWithOutsidePointerEventsDisabled.delete(j),h())},[j,S]),u.useEffect(()=>{const e=()=>W({});return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,v.jsx)(d.Primitive.div,Object.assign({},k,{ref:_,style:Object.assign({pointerEvents:N?z?"auto":"none":void 0},t.style),onFocusCapture:(0,c.composeEventHandlers)(t.onFocusCapture,K.onFocusCapture),onBlurCapture:(0,c.composeEventHandlers)(t.onBlurCapture,K.onBlurCapture),onPointerDownCapture:(0,c.composeEventHandlers)(t.onPointerDownCapture,I.onPointerDownCapture)}))});p.displayName="DismissableLayer";var y=u.forwardRef((e,t)=>{const n=u.useContext(E),s=u.useRef(null),o=(0,l.useComposedRefs)(t,s);return u.useEffect(()=>{const e=s.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,v.jsx)(d.Primitive.div,Object.assign({},e,{ref:o}))});function w(){const e=u.useContext(E),[t,n]=u.useState(null);return u.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}y.displayName="DismissableLayerBranch";var O=()=>!0;function D(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:c,shouldHandlePointerDownOutside:d=O}=t,l=(0,f.useCallbackRef)(e),v=u.useRef(!1),b=u.useRef(!1),E=u.useRef(new Map),p=u.useRef(()=>{});return u.useEffect(()=>{function e(){b.current=!1,o.current=!1,E.current.clear()}function t(e){if(!b.current)return;const t=e.target;t instanceof Node&&[...c].some(e=>e.contains(t))||E.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{b.current&&p.current()},0)}function u(e){b.current&&E.current.set(e.type,!1)}const f=t=>{if(t.target&&!v.current){let u=function(){n.removeEventListener("click",p.current);const t=Array.from(E.current.values()).some(Boolean);e(),t||L("dismissableLayer.pointerDownOutside",l,c,{discrete:!0})};if(!d(t.target))return n.removeEventListener("click",p.current),e(),void(v.current=!1);const c={originalEvent:t};b.current=!0,o.current=s&&0===t.button,E.current.clear(),s&&0===t.button?(n.removeEventListener("click",p.current),p.current=u,n.addEventListener("click",p.current,{once:!0})):u()}else n.removeEventListener("click",p.current),e();v.current=!1},y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const e of y)n.addEventListener(e,t,!0),n.addEventListener(e,u);const w=window.setTimeout(()=>{n.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(w),n.removeEventListener("pointerdown",f),n.removeEventListener("click",p.current);for(const e of y)n.removeEventListener(e,t,!0),n.removeEventListener(e,u)}},[n,l,s,o,c,d]),{onPointerDownCapture:()=>v.current=!0}}function P(e,t=globalThis?.document){const n=(0,f.useCallbackRef)(e),s=u.useRef(!1);return u.useEffect(()=>{const e=e=>{if(e.target&&!s.current){L("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function h(){const e=new CustomEvent(b);document.dispatchEvent(e)}function L(e,t,n,{discrete:s}){const o=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?(0,d.dispatchDiscreteCustomEvent)(o,u):o.dispatchEvent(u)}var C=p,R=y},178,[131,38,171,179,172,181,151]);
235
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["asChild"];function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Primitive",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"dispatchDiscreteCustomEvent",{enumerable:!0,get:function(){return b}});var n,u=r(_d[0]),o=(n=u)&&n.__esModule?n:{default:n},c=t(r(_d[1])),f=t(r(_d[2])),s=r(_d[3]),d=r(_d[4]),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const u=(0,s.createSlot)(`Primitive.${n}`),f=c.forwardRef((t,c)=>{const{asChild:f}=t,s=(0,o.default)(t,e),l=f?u:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(l,Object.assign({},s,{ref:c}))});return f.displayName=`Primitive.${n}`,Object.assign({},t,{[n]:f})},{});function b(e,t){e&&f.flushSync(()=>e.dispatchEvent(t))}var p=l},179,[131,38,40,180,151]);
236
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["children"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"Slot",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"Slottable",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"createSlot",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"createSlottable",{enumerable:!0,get:function(){return u}});var t,n=r(_d[0]),o=(t=n)&&t.__esModule?t:{default:t},l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),c=r(_d[2]);function s(t){const n=l.forwardRef((n,s)=>{let{children:d}=n,u=(0,o.default)(n,e),f=null,_=!1;const E=[];j(d)&&"function"==typeof S&&(d=S(d._payload)),l.Children.forEach(d,e=>{if(t=e,l.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p){_=!0;const t=e;let n="child"in t.props?t.props.child:t.props.children;j(n)&&"function"==typeof S&&(n=S(n._payload)),f=b(t,n),E.push(f?.props?.children)}else E.push(e);var t}),f?f=l.cloneElement(f,void 0,E):!_&&1===l.Children.count(d)&&l.isValidElement(d)&&(f=d);const P=f?h(f):void 0,R=(0,c.useComposedRefs)(s,P);if(!f){if(d||0===d)throw new Error(_?v(t):O(t));return d}const $=y(u,f.props??{});return f.type!==l.Fragment&&($.ref=s?R:P),l.cloneElement(f,$)});return n.displayName=`${t}.Slot`,n}var d=s("Slot"),p=Symbol.for("radix.slottable");function u(e){const t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=p,t}var f=u("Slottable"),b=(e,t)=>{if("child"in e.props){const t=e.props.child;return l.isValidElement(t)?l.cloneElement(t,void 0,e.props.children(t.props.children)):null}return l.isValidElement(t)?t:null};function y(e,t){const n=Object.assign({},t);for(const o in t){const l=e[o],c=t[o];/^on[A-Z]/.test(o)?l&&c?n[o]=(...e)=>{const t=c(...e);return l(...e),t}:l&&(n[o]=l):"style"===o?n[o]=Object.assign({},l,c):"className"===o&&(n[o]=[l,c].filter(Boolean).join(" "))}return Object.assign({},e,n)}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _=Symbol.for("react.lazy");function j(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===_&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}var O=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,v=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,S=l[" use ".trim().toString()]},180,[131,38,172]);
237
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useCallbackRef",{enumerable:!0,get:function(){return t}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));function t(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}},181,[38]);
238
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FocusScope",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return C}});var t,n=r(_d[0]),o=(t=n)&&t.__esModule?t:{default:t},u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),c=r(_d[2]),s=r(_d[3]),d=r(_d[4]),f=r(_d[5]),l="focusScope.autoFocusOnMount",p="focusScope.autoFocusOnUnmount",v={bubbles:!1,cancelable:!0},b=u.forwardRef((t,n)=>{const{loop:b=!1,trapped:F=!1,onMountAutoFocus:S,onUnmountAutoFocus:L}=t,O=(0,o.default)(t,e),[C,P]=u.useState(null),_=(0,d.useCallbackRef)(S),k=(0,d.useCallbackRef)(L),R=u.useRef(null),I=(0,c.useComposedRefs)(n,P),M=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(F){let e=function(e){if(M.paused||!C)return;const t=e.target;C.contains(t)?R.current=t:T(R.current,{select:!0})},t=function(e){if(M.paused||!C)return;const t=e.relatedTarget;null!==t&&(C.contains(t)||T(R.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&T(C)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return C&&o.observe(C,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[F,C,M.paused]),u.useEffect(()=>{if(C){N.add(M);const e=document.activeElement;if(!C.contains(e)){const t=new CustomEvent(l,v);C.addEventListener(l,_),C.dispatchEvent(t),t.defaultPrevented||(E(h(C).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&T(C))}return()=>{C.removeEventListener(l,_),setTimeout(()=>{const t=new CustomEvent(p,v);C.addEventListener(p,k),C.dispatchEvent(t),t.defaultPrevented||T(e??document.body,{select:!0}),C.removeEventListener(p,k),N.remove(M)},0)}}},[C,_,k,M]);const j=u.useCallback(e=>{if(!b&&!F)return;if(M.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,u]=y(t);o&&u?e.shiftKey||n!==u?e.shiftKey&&n===o&&(e.preventDefault(),b&&T(u,{select:!0})):(e.preventDefault(),b&&T(o,{select:!0})):n===t&&e.preventDefault()}},[b,F,M.paused]);return(0,f.jsx)(s.Primitive.div,Object.assign({tabIndex:-1},O,{ref:I,onKeyDown:j}))});function E(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(T(o,{select:t}),document.activeElement!==n)return}function y(e){const t=h(e);return[F(t,e),F(t.reverse(),e)]}function h(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function F(e,t){const n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e){if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):S(o,{upTo:t})))return o}}function S(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function L(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&L(e)&&t&&e.select()}}b.displayName="FocusScope";var N=(function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=O(e,t),e.unshift(t)},remove(t){e=O(e,t),e[0]?.resume()}}})();function O(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}var C=b},182,[131,38,172,179,181,151]);
239
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["container"];function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Portal",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return y}});var n,o=r(_d[0]),u=(n=o)&&n.__esModule?n:{default:n},c=t(r(_d[1])),f=t(r(_d[2])),l=r(_d[3]),s=r(_d[4]),d=r(_d[5]),b=c.forwardRef((t,n)=>{const{container:o}=t,b=(0,u.default)(t,e),[y,P]=c.useState(!1);(0,s.useLayoutEffect)(()=>P(!0),[]);const j=o||y&&globalThis?.document?.body;return j?f.createPortal((0,d.jsx)(l.Primitive.div,Object.assign({},b,{ref:n})),j):null});b.displayName="Portal";var y=b},183,[131,38,40,179,175,151]);
240
- __d(function(g,r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Presence",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return l}});var e=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[0])),n=r(_d[1]);function t(n,t){return e.useReducer((e,n)=>t[e][n]??e,n)}var u=n=>{const{present:t,children:u}=n,i=o(t),s="function"==typeof u?u({present:i.isPresent}):e.Children.only(u),l=c(i.ref,f(s));return"function"==typeof u||i.isPresent?e.cloneElement(s,{ref:l}):null};function o(u){const[o,i]=e.useState(),c=e.useRef(null),f=e.useRef(u),l=e.useRef("none"),d=e.useRef(void 0),p=u?"mounted":"unmounted",[N,O]=t(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{"mounted"===N?(l.current=d.current??s(c.current),d.current=void 0):l.current="none"},[N]),(0,n.useLayoutEffect)(()=>{const e=c.current,n=f.current;if(n!==u){const t=l.current,o=s(e);if(u)d.current=o,O("MOUNT");else if("none"===o||"none"===e?.display)O("UNMOUNT");else{O(n&&t!==o?"ANIMATION_OUT":"UNMOUNT")}f.current=u}},[u,O]),(0,n.useLayoutEffect)(()=>{if(o){let e;const n=o.ownerDocument.defaultView??window,t=t=>{const u=s(c.current).includes(CSS.escape(t.animationName));if(t.target===o&&u&&(O("ANIMATION_END"),!f.current)){const t=o.style.animationFillMode;o.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=t)})}},u=e=>{e.target===o&&(l.current=s(c.current))};return o.addEventListener("animationstart",u),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{n.clearTimeout(e),o.removeEventListener("animationstart",u),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}O("ANIMATION_END")},[o,O]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:e.useCallback(e=>{if(e){const n=getComputedStyle(e);c.current=n,d.current=s(n)}else c.current=null;i(e)},[])}}function i(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function c(...n){const t=e.useRef(n);return t.current=n,e.useCallback(e=>{const n=t.current;let u=!1;const o=n.map(n=>{const t=i(n,e);return u||"function"!=typeof t||(u=!0),t});if(u)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():i(n[e],null)}}},[])}function s(e){return e?.animationName||"none"}function f(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}u.displayName="Presence";var l=u},184,[38,175]);
241
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FocusGuards",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"useFocusGuards",{enumerable:!0,get:function(){return u}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=0,n=null;function o(e){return u(),e.children}function u(){e.useEffect(()=>{n||(n={start:c(),end:c()});const{start:e,end:o}=n;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==o&&document.body.insertAdjacentElement("beforeend",o),t++,()=>{1===t&&(n?.start.remove(),n?.end.remove(),n=null),t=Math.max(0,t-1)}},[])}function c(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},185,[38]);
242
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"RemoveScroll",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},186,[187]);
243
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=r(_d[2]),o=r(_d[3]),c=(e=o)&&e.__esModule?e:{default:e},f=n.forwardRef(function(e,o){return n.createElement(u.RemoveScroll,(0,t.__assign)({},e,{ref:o,sideCar:c.default}))});f.classNames=u.RemoveScroll.classNames;var l=f},187,[188,38,189,210]);
244
- __d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return G}}),_e.__extends=t,Object.defineProperty(_e,"__assign",{enumerable:!0,get:function(){return r}}),_e.__rest=n,_e.__decorate=o,_e.__param=a,_e.__esDecorate=i,_e.__runInitializers=c,_e.__propKey=u,_e.__setFunctionName=s,_e.__metadata=f,_e.__awaiter=l,_e.__generator=p,Object.defineProperty(_e,"__createBinding",{enumerable:!0,get:function(){return y}}),_e.__exportStar=_,_e.__values=d,_e.__read=h,_e.__spread=b,_e.__spreadArrays=v,_e.__spreadArray=w,_e.__await=m,_e.__asyncGenerator=g,_e.__asyncDelegator=O,_e.__asyncValues=j,_e.__makeTemplateObject=P,_e.__importStar=x,_e.__importDefault=T,_e.__classPrivateFieldGet=I,_e.__classPrivateFieldSet=D,_e.__classPrivateFieldIn=R,_e.__addDisposableResource=k,_e.__disposeResources=F,_e.__rewriteRelativeImportExtension=C;var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};function t(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function o(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function a(e,t){return function(r,n){t(r,n,e)}}function i(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,u=n.kind,s="getter"===u?"get":"setter"===u?"set":"value",f=!t&&e?n.static?e:e.prototype:null,l=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var _={};for(var d in n)_[d]="access"===d?{}:n[d];for(var d in n.access)_.access[d]=n.access[d];_.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var h=(0,r[y])("accessor"===u?{get:l.get,set:l.set}:l[s],_);if("accessor"===u){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(c=i(h.get))&&(l.get=c),(c=i(h.set))&&(l.set=c),(c=i(h.init))&&o.unshift(c)}else(c=i(h))&&("field"===u?o.unshift(c):l[s]=c)}f&&Object.defineProperty(f,n.name,l),p=!0}function c(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function u(e){return"symbol"==typeof e?e:"".concat(e)}function s(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function c(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,c)}u((n=n.apply(e,t||[])).next())})}function p(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return u([e,t])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function _(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function d(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function v(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function w(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function g(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),i("next"),i("throw"),i("return",function(e){return function(t){return Promise.resolve(t).then(e,s)}}),n[Symbol.asyncIterator]=function(){return this},n;function i(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||c(e,t)})},t&&(n[e]=t(n[e])))}function c(e,t){try{(r=o[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,s):f(a[0][2],r)}catch(e){f(a[0][3],e)}var r}function u(e){c("next",e)}function s(e){c("throw",e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:!1}:o?o(t):t}:o}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,a){o(n,a,(t=e[r](t)).done,t.value)})}}function o(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},E=function(e){return E=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},E(e)};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=E(e),n=0;n<r.length;n++)"default"!==r[n]&&y(t,e,r[n]);return S(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function k(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var A="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new A(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return(function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error})()}function C(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,a){return r?t?".jsx":".js":!n||o&&a?n+o+"."+a.toLowerCase()+"js":e}):e}var G={__extends:t,__assign:r,__rest:n,__decorate:o,__param:a,__esDecorate:i,__runInitializers:c,__propKey:u,__setFunctionName:s,__metadata:f,__awaiter:l,__generator:p,__createBinding:y,__exportStar:_,__values:d,__read:h,__spread:b,__spreadArrays:v,__spreadArray:w,__await:m,__asyncGenerator:g,__asyncDelegator:O,__asyncValues:j,__makeTemplateObject:P,__importStar:x,__importDefault:T,__classPrivateFieldGet:I,__classPrivateFieldSet:D,__classPrivateFieldIn:R,__addDisposableResource:k,__disposeResources:F,__rewriteRelativeImportExtension:C}},188,[]);
245
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"RemoveScroll",{enumerable:!0,get:function(){return c}});var e=r(_d[0]),o=(function(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),o.default=e,o})(r(_d[1])),n=r(_d[2]),l=r(_d[3]),t=r(_d[4]),s=function(){},c=o.forwardRef(function(n,c){var u=o.useRef(null),d=o.useState({onScrollCapture:s,onWheelCapture:s,onTouchMoveCapture:s}),f=d[0],_=d[1],h=n.forwardProps,v=n.children,p=n.className,b=n.removeScrollBar,C=n.enabled,P=n.shards,R=n.sideCar,w=n.noRelative,M=n.noIsolation,S=n.inert,y=n.allowPinchZoom,N=n.as,O=void 0===N?'div':N,j=n.gapMode,E=(0,e.__rest)(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=R,k=(0,l.useMergeRefs)([u,c]),I=(0,e.__assign)((0,e.__assign)({},E),f);return o.createElement(o.Fragment,null,C&&o.createElement(B,{sideCar:t.effectCar,removeScrollBar:b,shards:P,noRelative:w,noIsolation:M,inert:S,setCallbacks:_,allowPinchZoom:!!y,lockRef:u,gapMode:j}),h?o.cloneElement(o.Children.only(v),(0,e.__assign)((0,e.__assign)({},I),{ref:k})):o.createElement(O,(0,e.__assign)({},I,{className:p,ref:k}),v))});c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c.classNames={fullWidth:n.fullWidthClassName,zeroRight:n.zeroRightClassName}},189,[188,38,190,191,200]);
246
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"zeroRightClassName",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"fullWidthClassName",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"noScrollbarsClassName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"removedBarSizeVariable",{enumerable:!0,get:function(){return l}});var t='right-scroll-bar-position',n='width-before-scroll-bar',o='with-scroll-bars-hidden',l='--removed-body-scroll-bar-size'},190,[]);
247
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"assignRef",{enumerable:!0,get:function(){return n.assignRef}}),Object.defineProperty(e,"useCallbackRef",{enumerable:!0,get:function(){return t.useCallbackRef}}),Object.defineProperty(e,"createCallbackRef",{enumerable:!0,get:function(){return f.createCallbackRef}}),Object.defineProperty(e,"mergeRefs",{enumerable:!0,get:function(){return u.mergeRefs}}),Object.defineProperty(e,"useMergeRefs",{enumerable:!0,get:function(){return c.useMergeRefs}}),Object.defineProperty(e,"useTransformRef",{enumerable:!0,get:function(){return o.useTransformRef}}),Object.defineProperty(e,"transformRef",{enumerable:!0,get:function(){return b.transformRef}}),Object.defineProperty(e,"refToCallback",{enumerable:!0,get:function(){return l.refToCallback}}),Object.defineProperty(e,"useRefToCallback",{enumerable:!0,get:function(){return l.useRefToCallback}});var n=r(d[0]),t=r(d[1]),f=r(d[2]),u=r(d[3]),c=r(d[4]),o=r(d[5]),b=r(d[6]),l=r(d[7])},191,[192,193,194,195,196,197,198,199]);
248
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.assignRef=function(n,t){'function'==typeof n?n(t):n&&(n.current=t);return n}},192,[]);
249
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useCallbackRef=function(c,t){var l=(0,u.useState)(function(){return{value:c,callback:t,facade:{get current(){return l.value},set current(u){var c=l.value;c!==u&&(l.value=u,l.callback(u,c))}}}})[0];return l.callback=t,l.facade};var u=r(d[0])},193,[38]);
250
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createCallbackRef=function(t){var n=null;return{get current(){return n},set current(u){var c=n;c!==u&&(n=u,t(u,c))}}}},194,[]);
251
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.mergeRefs=function(u){return(0,t.createCallbackRef)(function(t){return u.forEach(function(u){return(0,n.assignRef)(u,t)})})};var n=r(d[0]),t=r(d[1])},195,[192,194]);
252
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useMergeRefs=function(e,c){var o=(0,t.useCallbackRef)(c||null,function(t){return e.forEach(function(e){return(0,n.assignRef)(e,t)})});return u(function(){var t=f.get(o);if(t){var u=new Set(t),c=new Set(e),s=o.current;u.forEach(function(e){c.has(e)||(0,n.assignRef)(e,null)}),c.forEach(function(e){u.has(e)||(0,n.assignRef)(e,s)})}f.set(o,e)},[e]),o};var e=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[0])),n=r(_d[1]),t=r(_d[2]),u='undefined'!=typeof window?e.useLayoutEffect:e.useEffect,f=new WeakMap},196,[38,192,193]);
253
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTransformRef=function(t,f){return(0,u.useCallbackRef)(null,function(u){return(0,n.assignRef)(t,f(u))})};var n=r(d[0]),u=r(d[1])},197,[192,193]);
254
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.transformRef=function(f,u){return(0,t.createCallbackRef)(function(t){return(0,n.assignRef)(f,u(t))})};var n=r(d[0]),t=r(d[1])},198,[192,194]);
255
- __d(function(g,r,i,a,m,e,d){"use strict";function n(n){return function(t){'function'==typeof n?n(t):n&&(n.current=t)}}Object.defineProperty(e,'__esModule',{value:!0}),e.refToCallback=n,e.useRefToCallback=function(n){return c(n)};var t=function(){return null},u=new WeakMap,c=function(c){var f=c||t,o=u.get(f);if(o)return o;var l=n(f);return u.set(f,l),l}},199,[]);
256
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"effectCar",{enumerable:!0,get:function(){return t}});var t=(0,r(d[0]).createSidecarMedium)()},200,[201]);
257
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sidecar",{enumerable:!0,get:function(){return t.sidecar}}),Object.defineProperty(e,"useSidecar",{enumerable:!0,get:function(){return n.useSidecar}}),Object.defineProperty(e,"setConfig",{enumerable:!0,get:function(){return u.setConfig}}),Object.defineProperty(e,"createMedium",{enumerable:!0,get:function(){return c.createMedium}}),Object.defineProperty(e,"createSidecarMedium",{enumerable:!0,get:function(){return c.createSidecarMedium}}),Object.defineProperty(e,"renderCar",{enumerable:!0,get:function(){return o.renderCar}}),Object.defineProperty(e,"exportSidecar",{enumerable:!0,get:function(){return f.exportSidecar}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),c=r(d[3]),o=r(d[4]),f=r(d[5])},201,[202,203,206,207,208,209]);
258
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.sidecar=function(u,c){var o=function(){return c};return function(f){var s=(0,n.useSidecar)(u,f.sideCar),d=s[0];return s[1]&&c?o:d?t.createElement(d,(0,e.__assign)({},f)):null}};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2])},202,[188,38,203]);
259
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useSidecar=function(e,t){var c=t&&t.options||o;if(n.env.isNode&&!c.ssr)return[null,null];return u(e,t)};var e=r(d[0]),n=r(d[1]),t=new WeakMap,o={};function u(u,c){var s=c&&c.options||o,f=n.env.forceCache||n.env.isNode&&!!s.ssr||!s.async,l=(0,e.useState)(f?function(){return t.get(u)}:void 0),v=l[0],w=l[1],S=(0,e.useState)(null),p=S[0],h=S[1];return(0,e.useEffect)(function(){v||u().then(function(e){var n,o=c?c.read():e.default||e;if(!o)throw console.error('Sidecar error: with importer',u),c?(console.error('Sidecar error: with medium',c),n=new Error('Sidecar medium was not found')):n=new Error('Sidecar was not found in exports'),h(function(){return n}),n;t.set(u,o),w(function(){return o})},function(e){return h(function(){return e})})},[]),[v,p]}},203,[38,204]);
260
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"env",{enumerable:!0,get:function(){return t}});var t={isNode:r(d[0]).isNode,forceCache:!1}},204,[205]);
261
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return t}});const t=!1},205,[]);
262
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"config",{enumerable:!0,get:function(){return e}}),Object.defineProperty(_e,"setConfig",{enumerable:!0,get:function(){return n}});var e={onError:function(e){return console.error(e)}},n=function(n){Object.assign(e,n)}},206,[]);
263
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createMedium=function(n,o){void 0===o&&(o=u);return t(n,o)},e.createSidecarMedium=function(u){void 0===u&&(u={});var o=t(null);return o.options=(0,n.__assign)({async:!0,ssr:!1},u),o};var n=r(d[0]);function u(n){return n}function t(n,t){void 0===t&&(t=u);var o=[],c=!1;return{read:function(){if(c)throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');return o.length?o[o.length-1]:n},useMedium:function(n){var u=t(n,c);return o.push(u),function(){o=o.filter(function(n){return n!==u})}},assignSyncMedium:function(n){for(c=!0;o.length;){var u=o;o=[],u.forEach(n)}o={push:function(u){return n(u)},filter:function(){return o}}},assignMedium:function(n){c=!0;var u=[];if(o.length){var t=o;o=[],t.forEach(n),u=o}var f=function(){var t=u;u=[],t.forEach(n)},a=function(){return Promise.resolve().then(f)};a(),o={push:function(n){u.push(n),a()},filter:function(n){return u=u.filter(n),o}}}}}},207,[188]);
264
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.renderCar=function(u,c){function f(c){var f=c.stateRef,o=c.props,l=(0,t.useCallback)(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.useLayoutEffect)(function(){f.current(e)}),null},[]);return n.createElement(u,(0,e.__assign)({},o,{children:l}))}var o=n.memo(function(e){var n=e.stateRef,u=e.defaultState,c=e.children,f=(0,t.useState)(u.current),o=f[0],l=f[1];return(0,t.useEffect)(function(){n.current=l},[]),c.apply(void 0,o)},function(){return!0});return function(e){var t=n.useRef(c(e)),u=n.useRef(function(e){return t.current=e});return n.createElement(n.Fragment,null,n.createElement(f,{stateRef:u,props:e}),n.createElement(o,{stateRef:u,defaultState:t,children:e.children}))}};var e=r(_d[0]),t=r(_d[1]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(t)},208,[188,38]);
265
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.exportSidecar=function(e,t){return e.useMedium(t),n};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=function(n){var o=n.sideCar,u=(0,e.__rest)(n,["sideCar"]);if(!o)throw new Error('Sidecar: please provide `sideCar` property to import the right car');var c=o.read();if(!c)throw new Error('Sidecar medium not found');return t.createElement(c,(0,e.__assign)({},u))};n.isSideCarExport=!0},209,[188,38]);
266
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),c=r(d[1]),n=r(d[2]),o=(0,t.exportSidecar)(n.effectCar,c.RemoveScrollSideCar)},210,[201,211,200]);
267
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"getTouchXY",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"getDeltaXY",{enumerable:!0,get:function(){return s}}),_e.RemoveScrollSideCar=function(y){var k=t.useRef([]),E=t.useRef([0,0]),P=t.useRef(),w=t.useState(h++)[0],C=t.useState(o.styleSingleton)[0],R=t.useRef(y);t.useEffect(function(){R.current=y},[y]),t.useEffect(function(){if(y.inert){document.body.classList.add("block-interactivity-".concat(w));var t=(0,e.__spreadArray)([y.lockRef.current],(y.shards||[]).map(f),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(w))}),function(){document.body.classList.remove("block-interactivity-".concat(w)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(w))})}}},[y.inert,y.lockRef.current,y.shards]);var S=t.useCallback(function(e,t){if('touches'in e&&2===e.touches.length||'wheel'===e.type&&e.ctrlKey)return!R.current.allowPinchZoom;var n,o=l(e),c=E.current,s='deltaX'in e?e.deltaX:c[0]-o[0],f='deltaY'in e?e.deltaY:c[1]-o[1],d=e.target,v=Math.abs(s)>Math.abs(f)?'h':'v';if('touches'in e&&'h'===v&&'range'===d.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(!!p&&(p===d||p.contains(d)))return!1;var b=(0,u.locationCouldBeScrolled)(v,d);if(!b)return!0;if(b?n=v:(n='v'===v?'h':'v',b=(0,u.locationCouldBeScrolled)(v,d)),!b)return!1;if(!P.current&&'changedTouches'in e&&(s||f)&&(P.current=n),!n)return!0;var y=P.current||n;return(0,u.handleScroll)(y,t,e,'h'===y?s:f,!0)},[]),L=t.useCallback(function(e){var t=e;if(p.length&&p[p.length-1]===C){var n='deltaY'in t?s(t):l(t),o=k.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&d(e.delta,n)})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var c=(R.current.shards||[]).map(f).filter(Boolean).filter(function(e){return e.contains(t.target)});(c.length>0?S(t,c[0]):!R.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),_=t.useCallback(function(e,t,n,o){var c={name:e,delta:t,target:n,should:o,shadowParent:b(n)};k.current.push(c),setTimeout(function(){k.current=k.current.filter(function(e){return e!==c})},1)},[]),M=t.useCallback(function(e){E.current=l(e),P.current=void 0},[]),O=t.useCallback(function(e){_(e.type,s(e),e.target,S(e,y.lockRef.current))},[]),T=t.useCallback(function(e){_(e.type,l(e),e.target,S(e,y.lockRef.current))},[]);t.useEffect(function(){return p.push(C),y.setCallbacks({onScrollCapture:O,onWheelCapture:O,onTouchMoveCapture:T}),document.addEventListener('wheel',L,c.nonPassive),document.addEventListener('touchmove',L,c.nonPassive),document.addEventListener('touchstart',M,c.nonPassive),function(){p=p.filter(function(e){return e!==C}),document.removeEventListener('wheel',L,c.nonPassive),document.removeEventListener('touchmove',L,c.nonPassive),document.removeEventListener('touchstart',M,c.nonPassive)}},[]);var Y=y.removeScrollBar,j=y.inert;return t.createElement(t.Fragment,null,j?t.createElement(C,{styles:v(w)}):null,Y?t.createElement(n.RemoveScrollBar,{noRelative:y.noRelative,gapMode:y.gapMode}):null)};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2]),o=r(_d[3]),c=r(_d[4]),u=r(_d[5]),l=function(e){return'changedTouches'in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},s=function(e){return[e.deltaX,e.deltaY]},f=function(e){return e&&'current'in e?e.current:e},d=function(e,t){return e[0]===t[0]&&e[1]===t[1]},v=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},h=0,p=[];function b(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}},211,[188,38,212,214,220,221]);
268
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RemoveScrollBar",{enumerable:!0,get:function(){return t.RemoveScrollBar}}),Object.defineProperty(e,"zeroRightClassName",{enumerable:!0,get:function(){return n.zeroRightClassName}}),Object.defineProperty(e,"fullWidthClassName",{enumerable:!0,get:function(){return n.fullWidthClassName}}),Object.defineProperty(e,"noScrollbarsClassName",{enumerable:!0,get:function(){return n.noScrollbarsClassName}}),Object.defineProperty(e,"removedBarSizeVariable",{enumerable:!0,get:function(){return n.removedBarSizeVariable}}),Object.defineProperty(e,"getGapWidth",{enumerable:!0,get:function(){return l.getGapWidth}});var t=r(d[0]),n=r(d[1]),l=r(d[2])},212,[213,190,219]);
269
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"lockAttribute",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"useLockAttribute",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"RemoveScrollBar",{enumerable:!0,get:function(){return f}});var n=(function(n){if(n&&n.__esModule)return n;var t={};return n&&Object.keys(n).forEach(function(e){var o=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:function(){return n[e]}})}),t.default=n,t})(r(_d[0])),t=r(_d[1]),e=r(_d[2]),o=r(_d[3]),c=(0,t.styleSingleton)(),u='data-scroll-locked',d=function(n,t,o,c){var d=n.left,l=n.top,s=n.right,f=n.gap;return void 0===o&&(o='margin'),"\n .".concat(e.noScrollbarsClassName," {\n overflow: hidden ").concat(c,";\n padding-right: ").concat(f,"px ").concat(c,";\n }\n body[").concat(u,"] {\n overflow: hidden ").concat(c,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(c,";"),'margin'===o&&"\n padding-left: ".concat(d,"px;\n padding-top: ").concat(l,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(f,"px ").concat(c,";\n "),'padding'===o&&"padding-right: ".concat(f,"px ").concat(c,";")].filter(Boolean).join(''),"\n }\n \n .").concat(e.zeroRightClassName," {\n right: ").concat(f,"px ").concat(c,";\n }\n \n .").concat(e.fullWidthClassName," {\n margin-right: ").concat(f,"px ").concat(c,";\n }\n \n .").concat(e.zeroRightClassName," .").concat(e.zeroRightClassName," {\n right: 0 ").concat(c,";\n }\n \n .").concat(e.fullWidthClassName," .").concat(e.fullWidthClassName," {\n margin-right: 0 ").concat(c,";\n }\n \n body[").concat(u,"] {\n ").concat(e.removedBarSizeVariable,": ").concat(f,"px;\n }\n")},l=function(){var n=parseInt(document.body.getAttribute(u)||'0',10);return isFinite(n)?n:0},s=function(){n.useEffect(function(){return document.body.setAttribute(u,(l()+1).toString()),function(){var n=l()-1;n<=0?document.body.removeAttribute(u):document.body.setAttribute(u,n.toString())}},[])},f=function(t){var e=t.noRelative,u=t.noImportant,l=t.gapMode,f=void 0===l?'margin':l;s();var p=n.useMemo(function(){return(0,o.getGapWidth)(f)},[f]);return n.createElement(c,{styles:d(p,!e,f,u?'':'!important')})}},213,[38,214,190,219]);
270
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"styleSingleton",{enumerable:!0,get:function(){return t.styleSingleton}}),Object.defineProperty(e,"stylesheetSingleton",{enumerable:!0,get:function(){return n.stylesheetSingleton}}),Object.defineProperty(e,"styleHookSingleton",{enumerable:!0,get:function(){return o.styleHookSingleton}});var t=r(d[0]),n=r(d[1]),o=r(d[2])},214,[215,217,216]);
271
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"styleSingleton",{enumerable:!0,get:function(){return t}});var n=r(d[0]),t=function(){var t=(0,n.styleHookSingleton)();return function(n){var u=n.styles,o=n.dynamic;return t(u,o),null}}},215,[216]);
272
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"styleHookSingleton",{enumerable:!0,get:function(){return n}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=function(){var n=(0,t.stylesheetSingleton)();return function(t,u){e.useEffect(function(){return n.add(t),function(){n.remove()}},[t&&u])}}},216,[38,217]);
273
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"stylesheetSingleton",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(){if(!document)return null;var n=document.createElement('style');n.type='text/css';var u=(0,t.getNonce)();return u&&n.setAttribute('nonce',u),n}function u(t){(document.head||document.getElementsByTagName('head')[0]).appendChild(t)}var o=function(){var t=0,o=null;return{add:function(c){var l,s;0==t&&(o=n())&&(s=c,(l=o).styleSheet?l.styleSheet.cssText=s:l.appendChild(document.createTextNode(s)),u(o)),t++},remove:function(){! --t&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}}},217,[218]);
274
- __d(function(g,r,i,a,m,e,d){"use strict";var n;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setNonce",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getNonce",{enumerable:!0,get:function(){return c}});var t=function(t){n=t},c=function(){return n||('undefined'!=typeof __webpack_nonce__?__webpack_nonce__:void 0)}},218,[]);
275
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"zeroGap",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getGapWidth",{enumerable:!0,get:function(){return u}});var t={left:0,top:0,right:0,gap:0},n=function(t){return parseInt(t||'',10)||0},o=function(t){var o=window.getComputedStyle(document.body),u=o['padding'===t?'paddingLeft':'marginLeft'],p=o['padding'===t?'paddingTop':'marginTop'],f=o['padding'===t?'paddingRight':'marginRight'];return[n(u),n(p),n(f)]},u=function(n){if(void 0===n&&(n='margin'),'undefined'==typeof window)return t;var u=o(n),p=document.documentElement.clientWidth,f=window.innerWidth;return{left:u[0],top:u[1],right:u[2],gap:Math.max(0,f-p+u[2]-u[0])}}},219,[]);
276
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"nonPassive",{enumerable:!0,get:function(){return o}});var t=!1;if('undefined'!=typeof window)try{var n=Object.defineProperty({},'passive',{get:function(){return t=!0,!0}});window.addEventListener('test',n,n),window.removeEventListener('test',n,n)}catch(n){t=!1}var o=!!t&&{passive:!1}},220,[]);
277
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"locationCouldBeScrolled",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"handleScroll",{enumerable:!0,get:function(){return h}});var t=function(t){return'TEXTAREA'===t.tagName},n=function(n,o){if(!(n instanceof Element))return!1;var u=window.getComputedStyle(n);return'hidden'!==u[o]&&!(u.overflowY===u.overflowX&&!t(n)&&'visible'===u[o])},o=function(t){return n(t,'overflowY')},u=function(t){return n(t,'overflowX')},c=function(t,n){var o=n.ownerDocument,u=n;do{if('undefined'!=typeof ShadowRoot&&u instanceof ShadowRoot&&(u=u.host),f(t,u)){var c=s(t,u);if(c[1]>c[2])return!0}u=u.parentNode}while(u&&u!==o.body);return!1},l=function(t){return[t.scrollLeft,t.scrollWidth,t.clientWidth]},f=function(t,n){return'v'===t?o(n):u(n)},s=function(t,n){return'v'===t?[(o=n).scrollTop,o.scrollHeight,o.clientHeight]:l(n);var o},v=function(t,n){return'h'===t&&'rtl'===n?-1:1},h=function(t,n,o,u,c){var l=v(t,window.getComputedStyle(n).direction),h=l*u,w=o.target,b=n.contains(w),p=!1,y=h>0,N=0,E=0;do{if(!w)break;var S=s(t,w),T=S[0],_=S[1]-S[2]-l*T;(T||_)&&f(t,w)&&(N+=_,E+=T);var M=w.parentNode;w=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!b&&w!==document.body||b&&(n.contains(w)||n===w));return(y&&(c&&Math.abs(N)<1||!c&&h>N)||!y&&(c&&Math.abs(E)<1||!c&&-h>E))&&(p=!0),p}},221,[]);
278
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"hideOthers",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"inertOthers",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"supportsInert",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"suppressOthers",{enumerable:!0,get:function(){return h}});var e=function(e){return'undefined'==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},t=new WeakMap,n=new WeakMap,o={},u=0,c=function(e){return e&&(e.host||c(e.parentNode))},f=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=c(t);return n&&e.contains(n)?n:(console.error('aria-hidden',t,'in not contained inside',e,'. Doing nothing'),null)}).filter(function(e){return Boolean(e)})},s=function(e,c,s,l){var p=f(c,Array.isArray(e)?e:[e]);o[s]||(o[s]=new WeakMap);var y=o[s],h=[],v=new Set,b=new Set(p),A=function(e){e&&!v.has(e)&&(v.add(e),A(e.parentNode))};p.forEach(A);var w=function(e){e&&!b.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(v.has(e))w(e);else try{var o=e.getAttribute(l),u=null!==o&&'false'!==o,c=(t.get(e)||0)+1,f=(y.get(e)||0)+1;t.set(e,c),y.set(e,f),h.push(e),1===c&&u&&n.set(e,!0),1===f&&e.setAttribute(s,'true'),u||e.setAttribute(l,'true')}catch(t){console.error('aria-hidden: cannot operate on ',e,t)}})};return w(c),v.clear(),u++,function(){h.forEach(function(e){var o=t.get(e)-1,u=y.get(e)-1;t.set(e,o),y.set(e,u),o||(n.has(e)||e.removeAttribute(l),n.delete(e)),u||e.removeAttribute(s)}),--u||(t=new WeakMap,t=new WeakMap,n=new WeakMap,o={})}},l=function(t,n,o){void 0===o&&(o='data-aria-hidden');var u=Array.from(Array.isArray(t)?t:[t]),c=n||e(t);return c?(u.push.apply(u,Array.from(c.querySelectorAll('[aria-live], script'))),s(u,c,o,'aria-hidden')):function(){return null}},p=function(t,n,o){void 0===o&&(o='data-inert-ed');var u=n||e(t);return u?s(t,u,o,'inert'):function(){return null}},y=function(){return'undefined'!=typeof HTMLElement&&HTMLElement.prototype.hasOwnProperty('inert')},h=function(e,t,n){return void 0===n&&(n='data-suppressed'),(y()?p:l)(e,t,n)}},222,[]);
279
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"VISUALLY_HIDDEN_STYLES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"VisuallyHidden",{enumerable:!0,get:function(){return u}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u=e.forwardRef((e,u)=>(0,n.jsx)(t.Primitive.span,Object.assign({},e,{ref:u,style:Object.assign({},o,e.style)})));u.displayName="VisuallyHidden";var c=u},223,[38,179,151]);
280
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.cx=function(...n){return n.filter(Boolean).join(' ')}},224,[]);
281
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PlusIcon=function({size:t=18,color:s="currentColor",strokeWidth:n=1.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M12 5v14M5 12h14",stroke:s,strokeWidth:n,strokeLinecap:"round"})})},e.CloseIcon=function({size:t=18,color:s="currentColor",strokeWidth:n=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M18 6 6 18M6 6l12 12",stroke:s,strokeWidth:n,strokeLinecap:"round"})})},e.PhoneIcon=function({size:t=28,color:s="currentColor",strokeWidth:n=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"6",y:"2",width:"12",height:"20",rx:"3",stroke:s,strokeWidth:n}),(0,o.jsx)("path",{d:"M10 18.5h4",stroke:s,strokeWidth:n,strokeLinecap:"round"})]})},e.RefreshIcon=function({size:t=16,color:s="currentColor",strokeWidth:n=1.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v4.5h-4.5",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})})},e.HomeIcon=function({size:t=20,color:s="currentColor",strokeWidth:n=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M3 9.5 12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V9.5Z",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})})},e.BackIcon=function({size:t=18,color:s="currentColor",strokeWidth:n=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})})},e.RecentsIcon=function({size:t=16,color:s="currentColor",strokeWidth:n=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("rect",{x:"5",y:"5",width:"14",height:"14",rx:"2",stroke:s,strokeWidth:n})})},e.ThemeIcon=function({size:t=16,color:s="currentColor",strokeWidth:n=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"9",stroke:s,strokeWidth:n}),(0,o.jsx)("path",{d:"M12 3a9 9 0 0 1 0 18Z",fill:s})]})},e.CameraIcon=function({size:t=16,color:s="currentColor",strokeWidth:n=1.33,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M3 8a2 2 0 0 1 2-2h1.5L8 4h8l1.5 2H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8Z",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("circle",{cx:"12",cy:"13",r:"3.25",stroke:s,strokeWidth:n})]})},e.DotsIcon=function({size:t=16,color:s="currentColor",style:n}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:s,style:n,children:[(0,o.jsx)("circle",{cx:"5",cy:"12",r:"1.5"}),(0,o.jsx)("circle",{cx:"12",cy:"12",r:"1.5"}),(0,o.jsx)("circle",{cx:"19",cy:"12",r:"1.5"})]})},e.SidebarIcon=function({size:t=20,color:s="currentColor",strokeWidth:n=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",stroke:s,strokeWidth:n}),(0,o.jsx)("path",{d:"M9 3v18",stroke:s,strokeWidth:n,strokeLinecap:"round"})]})},e.RotateIcon=function({size:t=16,color:s="currentColor",strokeWidth:n=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7L21 8",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M21 3v5h-5",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.PowerIcon=function({size:t=16,color:s="currentColor",strokeWidth:n=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M12 2v10",stroke:s,strokeWidth:n,strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M18.36 6.64a9 9 0 1 1-12.73 0",stroke:s,strokeWidth:n,strokeLinecap:"round"})]})},e.TrashIcon=function({size:t=16,color:s="currentColor",strokeWidth:n=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6M10 11v6M14 11v6",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})})},e.SmartphoneIcon=function({size:t=16,color:s="currentColor",strokeWidth:n=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2.5",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 18h.01",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.CheckIcon=function({size:t=17,color:s="currentColor",strokeWidth:n=2.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("polyline",{points:"20 6 9 17 4 12",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})})},e.ChevronDownIcon=function({size:t=14,color:s="currentColor",strokeWidth:n=2,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})})},e.ChevronsUpDownIcon=function({size:t=14,color:s="currentColor",strokeWidth:n=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("polyline",{points:"7 15 12 20 17 15",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("polyline",{points:"7 9 12 4 17 9",stroke:s,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})]})};var o=r(d[0])},225,[151]);
282
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["children","trigger","className","sideOffset","collisionPadding","side","disabled"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.Dropdown=function(s){let{children:t,trigger:f,className:b,sideOffset:h=8,collisionPadding:u={left:16,right:16},side:x="bottom",disabled:j=!1}=s,p=(0,l.default)(s,e);return(0,o.jsxs)(n.Root,{children:[(0,o.jsx)(n.Trigger,{disabled:j,asChild:!0,children:f}),(0,o.jsx)(n.Portal,{children:(0,o.jsxs)(n.Content,Object.assign({className:(0,c.cx)('z-overDialog-605 flex min-w-55 flex-col gap-1 rounded-xl border border-secondary bg-default p-2 shadow-md','will-change-[opacity,transform]','data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade',b),side:x,sideOffset:h,collisionPadding:u},p,{children:[(0,o.jsx)(n.Arrow,{asChild:!0,children:(0,o.jsx)("div",{className:"relative -top-1 size-2.5 rotate-45 border-r border-b border-secondary bg-default"})}),t]}))})]})};var s,t=r(d[0]),l=(s=t)&&s.__esModule?s:{default:s},o=r(d[1]),n=r(d[2]),c=r(d[3])},226,[131,151,227,224]);
283
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["__scopeDropdownMenu","disabled"],n=["__scopeDropdownMenu"],o=["__scopeDropdownMenu"],t=["__scopeDropdownMenu"],u=["__scopeDropdownMenu"],d=["__scopeDropdownMenu"],p=["__scopeDropdownMenu"],c=["__scopeDropdownMenu"],s=["__scopeDropdownMenu"],l=["__scopeDropdownMenu"],f=["__scopeDropdownMenu"],b=["__scopeDropdownMenu"],w=["__scopeDropdownMenu"],j=["__scopeDropdownMenu"];function D(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n.default=e,n}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Arrow",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(_e,"CheckboxItem",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(_e,"Content",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"DropdownMenu",{enumerable:!0,get:function(){return K}}),Object.defineProperty(_e,"DropdownMenuArrow",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"DropdownMenuCheckboxItem",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"DropdownMenuContent",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"DropdownMenuGroup",{enumerable:!0,get:function(){return J}}),Object.defineProperty(_e,"DropdownMenuItem",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"DropdownMenuItemIndicator",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"DropdownMenuLabel",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"DropdownMenuPortal",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"DropdownMenuRadioGroup",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"DropdownMenuRadioItem",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"DropdownMenuSeparator",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_e,"DropdownMenuSub",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"DropdownMenuSubContent",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"DropdownMenuSubTrigger",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"DropdownMenuTrigger",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"Group",{enumerable:!0,get:function(){return de}}),Object.defineProperty(_e,"Item",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(_e,"ItemIndicator",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(_e,"Label",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(_e,"Portal",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"RadioGroup",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"RadioItem",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"Separator",{enumerable:!0,get:function(){return be}}),Object.defineProperty(_e,"Sub",{enumerable:!0,get:function(){return we}}),Object.defineProperty(_e,"SubContent",{enumerable:!0,get:function(){return je}}),Object.defineProperty(_e,"SubTrigger",{enumerable:!0,get:function(){return me}}),Object.defineProperty(_e,"Trigger",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"createDropdownMenuScope",{enumerable:!0,get:function(){return A}});var O,M=r(_d[0]),_=(O=M)&&O.__esModule?O:{default:O},y=D(r(_d[1])),h=r(_d[2]),v=r(_d[3]),P=r(_d[4]),x=r(_d[5]),I=r(_d[6]),R=r(_d[7]),C=D(R),S=r(_d[8]),N=r(_d[9]),T="DropdownMenu",[k,A]=(0,P.createContextScope)(T,[R.createMenuScope]),E=(0,R.createMenuScope)(),[G,H]=k(T),K=e=>{const{__scopeDropdownMenu:n,children:o,dir:t,open:u,defaultOpen:d,onOpenChange:p,modal:c=!0}=e,s=E(n),l=y.useRef(null),[f,b]=(0,x.useControllableState)({prop:u,defaultProp:d??!1,onChange:p,caller:T});return(0,N.jsx)(G,{scope:n,triggerId:(0,S.useId)(),triggerRef:l,contentId:(0,S.useId)(),open:f,onOpenChange:b,onOpenToggle:y.useCallback(()=>b(e=>!e),[b]),modal:c,children:(0,N.jsx)(C.Root,Object.assign({},s,{open:f,onOpenChange:b,dir:t,modal:c,children:o}))})};K.displayName=T;var L="DropdownMenuTrigger",F=y.forwardRef((n,o)=>{const{__scopeDropdownMenu:t,disabled:u=!1}=n,d=(0,_.default)(n,e),p=H(L,t),c=E(t),s=(0,v.useComposedRefs)(o,p.triggerRef);return(0,N.jsx)(C.Anchor,Object.assign({asChild:!0},c,{children:(0,N.jsx)(I.Primitive.button,Object.assign({type:"button",id:p.triggerId,"aria-haspopup":"menu","aria-expanded":p.open,"aria-controls":p.open?p.contentId:void 0,"data-state":p.open?"open":"closed","data-disabled":u?"":void 0,disabled:u},d,{ref:s,onPointerDown:(0,h.composeEventHandlers)(n.onPointerDown,e=>{u||0!==e.button||!1!==e.ctrlKey||(p.onOpenToggle(),p.open||e.preventDefault())}),onKeyDown:(0,h.composeEventHandlers)(n.onKeyDown,e=>{u||(["Enter"," "].includes(e.key)&&p.onOpenToggle(),"ArrowDown"===e.key&&p.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})}))}))});F.displayName=L;var q=e=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,n),u=E(o);return(0,N.jsx)(C.Portal,Object.assign({},u,t))};q.displayName="DropdownMenuPortal";var z="DropdownMenuContent",B=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:t}=e,u=(0,_.default)(e,o),d=H(z,t),p=E(t),c=y.useRef(!1);return(0,N.jsx)(C.Content,Object.assign({id:d.contentId,"aria-labelledby":d.triggerId},p,u,{ref:n,onCloseAutoFocus:(0,h.composeEventHandlers)(e.onCloseAutoFocus,e=>{c.current||d.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,h.composeEventHandlers)(e.onInteractOutside,e=>{const n=e.detail.originalEvent,o=0===n.button&&!0===n.ctrlKey,t=2===n.button||o;d.modal&&!t||(c.current=!0)}),style:Object.assign({},e.style,{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});B.displayName=z;var J=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,u=(0,_.default)(e,t),d=E(o);return(0,N.jsx)(C.Group,Object.assign({},d,u,{ref:n}))});J.displayName="DropdownMenuGroup";var Q=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,u),d=E(o);return(0,N.jsx)(C.Label,Object.assign({},d,t,{ref:n}))});Q.displayName="DropdownMenuLabel";var U=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,d),u=E(o);return(0,N.jsx)(C.Item,Object.assign({},u,t,{ref:n}))});U.displayName="DropdownMenuItem";var V=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,p),u=E(o);return(0,N.jsx)(C.CheckboxItem,Object.assign({},u,t,{ref:n}))});V.displayName="DropdownMenuCheckboxItem";var W=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,c),u=E(o);return(0,N.jsx)(C.RadioGroup,Object.assign({},u,t,{ref:n}))});W.displayName="DropdownMenuRadioGroup";var X=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,s),u=E(o);return(0,N.jsx)(C.RadioItem,Object.assign({},u,t,{ref:n}))});X.displayName="DropdownMenuRadioItem";var Y=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,l),u=E(o);return(0,N.jsx)(C.ItemIndicator,Object.assign({},u,t,{ref:n}))});Y.displayName="DropdownMenuItemIndicator";var Z=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,f),u=E(o);return(0,N.jsx)(C.Separator,Object.assign({},u,t,{ref:n}))});Z.displayName="DropdownMenuSeparator";var $=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,b),u=E(o);return(0,N.jsx)(C.Arrow,Object.assign({},u,t,{ref:n}))});$.displayName="DropdownMenuArrow";var ee=e=>{const{__scopeDropdownMenu:n,children:o,open:t,onOpenChange:u,defaultOpen:d}=e,p=E(n),[c,s]=(0,x.useControllableState)({prop:t,defaultProp:d??!1,onChange:u,caller:"DropdownMenuSub"});return(0,N.jsx)(C.Sub,Object.assign({},p,{open:c,onOpenChange:s,children:o}))},ne=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,w),u=E(o);return(0,N.jsx)(C.SubTrigger,Object.assign({},u,t,{ref:n}))});ne.displayName="DropdownMenuSubTrigger";var re=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,j),u=E(o);return(0,N.jsx)(C.SubContent,Object.assign({},u,t,{ref:n,style:Object.assign({},e.style,{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});re.displayName="DropdownMenuSubContent";var oe=K,te=F,ae=q,ue=B,de=J,pe=Q,ie=U,ce=V,se=W,le=X,fe=Y,be=Z,ge=$,we=ee,me=ne,je=re},227,[131,38,171,172,173,176,179,228,174,151]);
284
- __d(function(g,r,_i,a,m,_e,_d){"use strict";const e=["__scopeMenu"],n=["forceMount"],t=["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"],o=["__scopeMenu"],u=["__scopeMenu"],c=["disabled","onSelect"],s=["__scopeMenu","disabled","textValue"],i=["checked","onCheckedChange"],l=["value","onValueChange"],d=["value"],f=["__scopeMenu","forceMount"],p=["__scopeMenu"],b=["__scopeMenu"],v=["forceMount","align"];function h(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Anchor",{enumerable:!0,get:function(){return on}}),Object.defineProperty(_e,"Arrow",{enumerable:!0,get:function(){return bn}}),Object.defineProperty(_e,"CheckboxItem",{enumerable:!0,get:function(){return dn}}),Object.defineProperty(_e,"Content",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(_e,"Group",{enumerable:!0,get:function(){return sn}}),Object.defineProperty(_e,"Item",{enumerable:!0,get:function(){return ln}}),Object.defineProperty(_e,"ItemIndicator",{enumerable:!0,get:function(){return mn}}),Object.defineProperty(_e,"Label",{enumerable:!0,get:function(){return an}}),Object.defineProperty(_e,"Menu",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"MenuAnchor",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"MenuArrow",{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(_e,"MenuCheckboxItem",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(_e,"MenuContent",{enumerable:!0,get:function(){return be}}),Object.defineProperty(_e,"MenuGroup",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(_e,"MenuItem",{enumerable:!0,get:function(){return we}}),Object.defineProperty(_e,"MenuItemIndicator",{enumerable:!0,get:function(){return He}}),Object.defineProperty(_e,"MenuLabel",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(_e,"MenuPortal",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(_e,"MenuRadioGroup",{enumerable:!0,get:function(){return De}}),Object.defineProperty(_e,"MenuRadioItem",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"MenuSeparator",{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(_e,"MenuSub",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(_e,"MenuSubContent",{enumerable:!0,get:function(){return We}}),Object.defineProperty(_e,"MenuSubTrigger",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(_e,"Portal",{enumerable:!0,get:function(){return un}}),Object.defineProperty(_e,"RadioGroup",{enumerable:!0,get:function(){return fn}}),Object.defineProperty(_e,"RadioItem",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return rn}}),Object.defineProperty(_e,"Separator",{enumerable:!0,get:function(){return gn}}),Object.defineProperty(_e,"Sub",{enumerable:!0,get:function(){return vn}}),Object.defineProperty(_e,"SubContent",{enumerable:!0,get:function(){return jn}}),Object.defineProperty(_e,"SubTrigger",{enumerable:!0,get:function(){return hn}}),Object.defineProperty(_e,"createMenuScope",{enumerable:!0,get:function(){return ee}});var j,y=r(_d[0]),O=(j=y)&&j.__esModule?j:{default:j},M=h(r(_d[1])),P=r(_d[2]),_=r(_d[3]),C=r(_d[4]),w=r(_d[5]),x=r(_d[6]),E=r(_d[7]),R=r(_d[8]),k=r(_d[9]),S=r(_d[10]),D=r(_d[11]),I=h(D),F=r(_d[12]),T=r(_d[13]),L=r(_d[14]),A=r(_d[15]),H=h(A),K=r(_d[16]),G=r(_d[17]),N=r(_d[18]),V=r(_d[19]),U=r(_d[20]),B=["Enter"," "],X=["ArrowUp","PageDown","End"],Y=["ArrowDown","PageUp","Home",...X],z={ltr:[...B,"ArrowRight"],rtl:[...B,"ArrowLeft"]},W={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Z="Menu",[q,J,Q]=(0,_.createCollection)(Z),[$,ee]=(0,w.createContextScope)(Z,[Q,D.createPopperScope,A.createRovingFocusGroupScope]),ne=(0,D.createPopperScope)(),te=(0,A.createRovingFocusGroupScope)(),[re,oe]=$(Z),[ue,ce]=$(Z),se=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:c,modal:s=!0}=e,i=ne(n),[l,d]=M.useState(null),f=M.useRef(!1),p=(0,G.useCallbackRef)(c),b=(0,x.useDirection)(u);return M.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),M.useEffect(()=>{if(!t)return;const e=()=>p(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[t,p]),(0,U.jsx)(I.Root,Object.assign({},i,{children:(0,U.jsx)(re,{scope:n,open:t,onOpenChange:p,content:l,onContentChange:d,children:(0,U.jsx)(ue,{scope:n,onClose:M.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:b,modal:s,children:o})})}))};se.displayName=Z;var ae=M.forwardRef((n,t)=>{const{__scopeMenu:o}=n,u=(0,O.default)(n,e),c=ne(o);return(0,U.jsx)(I.Anchor,Object.assign({},c,u,{ref:t}))});ae.displayName="MenuAnchor";var ie="MenuPortal",[le,de]=$(ie,{forceMount:void 0}),fe=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,c=oe(ie,n);return(0,U.jsx)(le,{scope:n,forceMount:t,children:(0,U.jsx)(T.Presence,{present:t||c.open,children:(0,U.jsx)(F.Portal,{asChild:!0,container:u,children:o})})})};fe.displayName=ie;var pe="MenuContent",[me,ge]=$(pe),be=M.forwardRef((e,t)=>{const o=de(pe,e.__scopeMenu),{forceMount:u=o.forceMount}=e,c=(0,O.default)(e,n),s=oe(pe,e.__scopeMenu),i=ce(pe,e.__scopeMenu);return(0,U.jsx)(q.Provider,{scope:e.__scopeMenu,children:(0,U.jsx)(T.Presence,{present:u||s.open,children:(0,U.jsx)(q.Slot,{scope:e.__scopeMenu,children:i.modal?(0,U.jsx)(ve,Object.assign({},c,{ref:t})):(0,U.jsx)(he,Object.assign({},c,{ref:t}))})})})}),ve=M.forwardRef((e,n)=>{const t=oe(pe,e.__scopeMenu),o=M.useRef(null),u=(0,C.useComposedRefs)(n,o);return M.useEffect(()=>{const e=o.current;if(e)return(0,N.hideOthers)(e)},[]),(0,U.jsx)(ye,Object.assign({},e,{ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:(0,P.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))}),he=M.forwardRef((e,n)=>{const t=oe(pe,e.__scopeMenu);return(0,U.jsx)(ye,Object.assign({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))}),je=(0,K.createSlot)("MenuContent.ScrollLock"),ye=M.forwardRef((e,n)=>{const{__scopeMenu:o,loop:u=!1,trapFocus:c,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:v,onDismiss:h,disableOutsideScroll:j}=e,y=(0,O.default)(e,t),_=oe(pe,o),w=ce(pe,o),x=ne(o),S=te(o),D=J(o),[F,T]=M.useState(null),L=M.useRef(null),A=(0,C.useComposedRefs)(n,L,_.onContentChange),K=M.useRef(0),G=M.useRef(""),N=M.useRef(0),B=M.useRef(null),z=M.useRef("right"),W=M.useRef(0),Z=j?V.RemoveScroll:M.Fragment,q=j?{as:je,allowPinchZoom:!0}:void 0,Q=e=>{const n=G.current+e,t=D().filter(e=>!e.disabled),o=document.activeElement,u=t.find(e=>e.ref.current===o)?.textValue,c=$e(t.map(e=>e.textValue),n,u),s=t.find(e=>e.textValue===c)?.ref.current;!(function e(n){G.current=n,window.clearTimeout(K.current),""!==n&&(K.current=window.setTimeout(()=>e(""),1e3))})(n),s&&setTimeout(()=>s.focus())};M.useEffect(()=>()=>window.clearTimeout(K.current),[]),(0,R.useFocusGuards)();const $=M.useCallback(e=>z.current===B.current?.side&&nn(e,B.current?.area),[]);return(0,U.jsx)(me,{scope:o,searchRef:G,onItemEnter:M.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:M.useCallback(e=>{$(e)||(L.current?.focus(),T(null))},[$]),onTriggerLeave:M.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:N,onPointerGraceIntentChange:M.useCallback(e=>{B.current=e},[]),children:(0,U.jsx)(Z,Object.assign({},q,{children:(0,U.jsx)(k.FocusScope,{asChild:!0,trapped:c,onMountAutoFocus:(0,P.composeEventHandlers)(s,e=>{e.preventDefault(),L.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,U.jsx)(E.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:v,onDismiss:h,children:(0,U.jsx)(H.Root,Object.assign({asChild:!0},S,{dir:w.dir,orientation:"vertical",loop:u,currentTabStopId:F,onCurrentTabStopIdChange:T,onEntryFocus:(0,P.composeEventHandlers)(d,e=>{w.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,U.jsx)(I.Content,Object.assign({role:"menu","aria-orientation":"vertical","data-state":Ze(_.open),"data-radix-menu-content":"",dir:w.dir},x,y,{ref:A,style:Object.assign({outline:"none"},y.style),onKeyDown:(0,P.composeEventHandlers)(y.onKeyDown,e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&o&&Q(e.key));const u=L.current;if(e.target!==u)return;if(!Y.includes(e.key))return;e.preventDefault();const c=D().filter(e=>!e.disabled).map(e=>e.ref.current);X.includes(e.key)&&c.reverse(),Qe(c)}),onBlur:(0,P.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(K.current),G.current="")}),onPointerMove:(0,P.composeEventHandlers)(e.onPointerMove,tn(e=>{const n=e.target,t=W.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>W.current?"right":"left";z.current=n,W.current=e.clientX}}))}))}))})})}))})});be.displayName=pe;var Oe=M.forwardRef((e,n)=>{const t=(0,O.default)(e,o);return(0,U.jsx)(L.Primitive.div,Object.assign({role:"group"},t,{ref:n}))});Oe.displayName="MenuGroup";var Me=M.forwardRef((e,n)=>{const t=(0,O.default)(e,u);return(0,U.jsx)(L.Primitive.div,Object.assign({},t,{ref:n}))});Me.displayName="MenuLabel";var Pe="MenuItem",Ce="menu.itemSelect",we=M.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o}=e,u=(0,O.default)(e,c),s=M.useRef(null),i=ce(Pe,e.__scopeMenu),l=ge(Pe,e.__scopeMenu),d=(0,C.useComposedRefs)(n,s),f=M.useRef(!1);return(0,U.jsx)(xe,Object.assign({},u,{ref:d,disabled:t,onClick:(0,P.composeEventHandlers)(e.onClick,()=>{const e=s.current;if(!t&&e){const n=new CustomEvent(Ce,{bubbles:!0,cancelable:!0});e.addEventListener(Ce,e=>o?.(e),{once:!0}),(0,L.dispatchDiscreteCustomEvent)(e,n),n.defaultPrevented?f.current=!1:i.onClose()}}),onPointerDown:n=>{e.onPointerDown?.(n),f.current=!0},onPointerUp:(0,P.composeEventHandlers)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,P.composeEventHandlers)(e.onKeyDown,e=>{if(t||e.target!==e.currentTarget)return;""!==l.searchRef.current&&" "===e.key||B.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))});we.displayName=Pe;var xe=M.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u}=e,c=(0,O.default)(e,s),i=ge(Pe,t),l=te(t),d=M.useRef(null),f=(0,C.useComposedRefs)(n,d),[p,b]=M.useState(!1),[v,h]=M.useState("");return M.useEffect(()=>{const e=d.current;e&&h((e.textContent??"").trim())},[c.children]),(0,U.jsx)(q.ItemSlot,{scope:t,disabled:o,textValue:u??v,children:(0,U.jsx)(H.Item,Object.assign({asChild:!0},l,{focusable:!o,children:(0,U.jsx)(L.Primitive.div,Object.assign({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},c,{ref:f,onPointerMove:(0,P.composeEventHandlers)(e.onPointerMove,tn(e=>{if(o)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:(0,P.composeEventHandlers)(e.onPointerLeave,tn(e=>i.onItemLeave(e))),onFocus:(0,P.composeEventHandlers)(e.onFocus,()=>b(!0)),onBlur:(0,P.composeEventHandlers)(e.onBlur,()=>b(!1))}))}))})}),Ee=M.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o}=e,u=(0,O.default)(e,i);return(0,U.jsx)(Le,{scope:e.__scopeMenu,checked:t,children:(0,U.jsx)(we,Object.assign({role:"menuitemcheckbox","aria-checked":qe(t)?"mixed":t},u,{ref:n,"data-state":Je(t),onSelect:(0,P.composeEventHandlers)(u.onSelect,()=>o?.(!!qe(t)||!t),{checkForDefaultPrevented:!1})}))})});Ee.displayName="MenuCheckboxItem";var Re="MenuRadioGroup",[ke,Se]=$(Re,{value:void 0,onValueChange:()=>{}}),De=M.forwardRef((e,n)=>{const{value:t,onValueChange:o}=e,u=(0,O.default)(e,l),c=(0,G.useCallbackRef)(o);return(0,U.jsx)(ke,{scope:e.__scopeMenu,value:t,onValueChange:c,children:(0,U.jsx)(Oe,Object.assign({},u,{ref:n}))})});De.displayName=Re;var Ie="MenuRadioItem",Fe=M.forwardRef((e,n)=>{const{value:t}=e,o=(0,O.default)(e,d),u=Se(Ie,e.__scopeMenu),c=t===u.value;return(0,U.jsx)(Le,{scope:e.__scopeMenu,checked:c,children:(0,U.jsx)(we,Object.assign({role:"menuitemradio","aria-checked":c},o,{ref:n,"data-state":Je(c),onSelect:(0,P.composeEventHandlers)(o.onSelect,()=>u.onValueChange?.(t),{checkForDefaultPrevented:!1})}))})});Fe.displayName=Ie;var Te="MenuItemIndicator",[Le,Ae]=$(Te,{checked:!1}),He=M.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o}=e,u=(0,O.default)(e,f),c=Ae(Te,t);return(0,U.jsx)(T.Presence,{present:o||qe(c.checked)||!0===c.checked,children:(0,U.jsx)(L.Primitive.span,Object.assign({},u,{ref:n,"data-state":Je(c.checked)}))})});He.displayName=Te;var Ke=M.forwardRef((e,n)=>{const t=(0,O.default)(e,p);return(0,U.jsx)(L.Primitive.div,Object.assign({role:"separator","aria-orientation":"horizontal"},t,{ref:n}))});Ke.displayName="MenuSeparator";var Ge=M.forwardRef((e,n)=>{const{__scopeMenu:t}=e,o=(0,O.default)(e,b),u=ne(t);return(0,U.jsx)(I.Arrow,Object.assign({},u,o,{ref:n}))});Ge.displayName="MenuArrow";var Ne="MenuSub",[Ve,Ue]=$(Ne),Be=e=>{const{__scopeMenu:n,children:t,open:o=!1,onOpenChange:u}=e,c=oe(Ne,n),s=ne(n),[i,l]=M.useState(null),[d,f]=M.useState(null),p=(0,G.useCallbackRef)(u);return M.useEffect(()=>(!1===c.open&&p(!1),()=>p(!1)),[c.open,p]),(0,U.jsx)(I.Root,Object.assign({},s,{children:(0,U.jsx)(re,{scope:n,open:o,onOpenChange:p,content:d,onContentChange:f,children:(0,U.jsx)(Ve,{scope:n,contentId:(0,S.useId)(),triggerId:(0,S.useId)(),trigger:i,onTriggerChange:l,children:t})})}))};Be.displayName=Ne;var Xe="MenuSubTrigger",Ye=M.forwardRef((e,n)=>{const t=oe(Xe,e.__scopeMenu),o=ce(Xe,e.__scopeMenu),u=Ue(Xe,e.__scopeMenu),c=ge(Xe,e.__scopeMenu),s=M.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=c,d={__scopeMenu:e.__scopeMenu},f=M.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);M.useEffect(()=>f,[f]),M.useEffect(()=>{const e=i.current;return()=>{window.clearTimeout(e),l(null)}},[i,l]);const p=(0,C.useComposedRefs)(n,u.onTriggerChange);return(0,U.jsx)(ae,Object.assign({asChild:!0},d,{children:(0,U.jsx)(xe,Object.assign({id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":t.open?u.contentId:void 0,"data-state":Ze(t.open)},e,{ref:p,onClick:n=>{e.onClick?.(n),e.disabled||n.defaultPrevented||(n.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:(0,P.composeEventHandlers)(e.onPointerMove,tn(n=>{c.onItemEnter(n),n.defaultPrevented||e.disabled||t.open||s.current||(c.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:(0,P.composeEventHandlers)(e.onPointerLeave,tn(e=>{f();const n=t.content?.getBoundingClientRect();if(n){const o=t.content?.dataset.side,u="right"===o,s=u?-5:5,l=n[u?"left":"right"],d=n[u?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:n.top},{x:d,y:n.top},{x:d,y:n.bottom},{x:l,y:n.bottom}],side:o}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,P.composeEventHandlers)(e.onKeyDown,n=>{if(e.disabled||n.target!==n.currentTarget)return;""!==c.searchRef.current&&" "===n.key||z[o.dir].includes(n.key)&&(t.onOpenChange(!0),t.content?.focus(),n.preventDefault())})}))}))});Ye.displayName=Xe;var ze="MenuSubContent",We=M.forwardRef((e,n)=>{const t=de(pe,e.__scopeMenu),{forceMount:o=t.forceMount,align:u="start"}=e,c=(0,O.default)(e,v),s=oe(pe,e.__scopeMenu),i=ce(pe,e.__scopeMenu),l=Ue(ze,e.__scopeMenu),d=M.useRef(null),f=(0,C.useComposedRefs)(n,d);return(0,U.jsx)(q.Provider,{scope:e.__scopeMenu,children:(0,U.jsx)(T.Presence,{present:o||s.open,children:(0,U.jsx)(q.Slot,{scope:e.__scopeMenu,children:(0,U.jsx)(ye,Object.assign({id:l.contentId,"aria-labelledby":l.triggerId},c,{ref:f,align:u,side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,P.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,P.composeEventHandlers)(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:(0,P.composeEventHandlers)(e.onKeyDown,e=>{const n=e.currentTarget.contains(e.target),t=W[i.dir].includes(e.key);n&&t&&(s.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})}))})})})});function Ze(e){return e?"open":"closed"}function qe(e){return"indeterminate"===e}function Je(e){return qe(e)?"indeterminate":e?"checked":"unchecked"}function Qe(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}function $e(e,n,t){const o=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,u=t?e.indexOf(t):-1;let c=(s=e,i=Math.max(u,0),s.map((e,n)=>s[(i+n)%s.length]));var s,i;1===o.length&&(c=c.filter(e=>e!==t));const l=c.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==t?l:void 0}function en(e,n){const{x:t,y:o}=e;let u=!1;for(let e=0,c=n.length-1;e<n.length;c=e++){const s=n[e],i=n[c],l=s.x,d=s.y,f=i.x,p=i.y;d>o!=p>o&&t<(f-l)*(o-d)/(p-d)+l&&(u=!u)}return u}function nn(e,n){if(!n)return!1;return en({x:e.clientX,y:e.clientY},n)}function tn(e){return n=>"mouse"===n.pointerType?e(n):void 0}We.displayName=ze;var rn=se,on=ae,un=fe,cn=be,sn=Oe,an=Me,ln=we,dn=Ee,fn=De,pn=Fe,mn=He,gn=Ke,bn=Ge,vn=Be,hn=Ye,jn=We},228,[131,38,171,229,172,173,230,178,185,182,174,231,183,184,179,239,180,181,222,186,151]);
285
- __d(function(g,r,_i,_a,m,_e,_d){"use strict";const e=["scope","children"],t=["state"],s=["scope","children"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"createCollection",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"unstable_createCollection",{enumerable:!0,get:function(){return b}});var n,i=r(_d[0]),o=(n=i)&&n.__esModule?n:{default:n},c=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[1])),l=r(_d[2]),u=r(_d[3]),f=r(_d[4]),a=r(_d[5]);function h(t){const s=t+"CollectionProvider",[n,i]=(0,l.createContextScope)(s),[h,d]=n(s,{collectionRef:{current:null},itemMap:new Map}),p=e=>{const{scope:t,children:s}=e,n=c.useRef(null),i=c.useRef(new Map).current;return(0,a.jsx)(h,{scope:t,itemMap:i,collectionRef:n,children:s})};p.displayName=s;const y=t+"CollectionSlot",O=(0,f.createSlot)(y),R=c.forwardRef((e,t)=>{const{scope:s,children:n}=e,i=d(y,s),o=(0,u.useComposedRefs)(t,i.collectionRef);return(0,a.jsx)(O,{ref:o,children:n})});R.displayName=y;const b=t+"CollectionItemSlot",j="data-radix-collection-item",k=(0,f.createSlot)(b),x=c.forwardRef((t,s)=>{const{scope:n,children:i}=t,l=(0,o.default)(t,e),f=c.useRef(null),h=(0,u.useComposedRefs)(s,f),p=d(b,n);return c.useEffect(()=>(p.itemMap.set(f,Object.assign({ref:f},l)),()=>{p.itemMap.delete(f)})),(0,a.jsx)(k,Object.assign({},{[j]:""},{ref:h,children:i}))});return x.displayName=b,[{Provider:p,Slot:R,ItemSlot:x},function(e){const s=d(t+"CollectionConsumer",e);return c.useCallback(()=>{const e=s.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${j}]`));return Array.from(s.itemMap.values()).sort((e,s)=>t.indexOf(e.ref.current)-t.indexOf(s.ref.current))},[s.collectionRef,s.itemMap])},i]}var d=new WeakMap,p=class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,s){const n=this.has(t),i=this.#e.length,o=R(e);let c=o>=0?o:i+o;const l=c<0||c>=i?-1:c;if(l===this.size||n&&l===this.size-1||-1===l)return this.set(t,s),this;const u=this.size+(n?0:1);o<0&&c++;const f=[...this.#e];let a,h=!1;for(let e=c;e<u;e++)if(c===e){let i=f[e];f[e]===t&&(i=f[e+1]),n&&this.delete(t),a=this.get(i),this.set(t,s)}else{h||f[e-1]!==t||(h=!0);const s=f[h?e:e-1],n=a;a=this.get(s),this.delete(s),this.set(s,n)}return this}with(t,s,n){const i=new e(this);return i.insert(t,s,n),i}before(e){const t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,s){const n=this.#e.indexOf(e);return-1===n?this:this.insert(n,t,s)}after(e){let t=this.#e.indexOf(e);if(t=-1===t||t===this.size-1?-1:t+1,-1!==t)return this.entryAt(t)}setAfter(e,t,s){const n=this.#e.indexOf(e);return-1===n?this:this.insert(n+1,t,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){const t=y(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=y(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return y(this.#e,e)}from(e,t){const s=this.indexOf(e);if(-1===s)return;let n=s+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){const s=this.indexOf(e);if(-1===s)return;let n=s+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let s=0;for(const n of this){if(Reflect.apply(e,t,[n,s,this]))return n;s++}}findIndex(e,t){let s=0;for(const n of this){if(Reflect.apply(e,t,[n,s,this]))return s;s++}return-1}filter(t,s){const n=[];let i=0;for(const e of this)Reflect.apply(t,s,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,s){const n=[];let i=0;for(const e of this)n.push([e[0],Reflect.apply(t,s,[e,i,this])]),i++;return new e(n)}reduce(...e){const[t,s]=e;let n=0,i=s??this.at(0);for(const s of this)i=0===n&&1===e.length?s:Reflect.apply(t,this,[i,s,n,this]),n++;return i}reduceRight(...e){const[t,s]=e;let n=s??this.at(-1);for(let s=this.size-1;s>=0;s--){const i=this.at(s);n=s===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,s,this])}return n}toSorted(t){const s=[...this.entries()].sort(t);return new e(s)}toReversed(){const t=new e;for(let e=this.size-1;e>=0;e--){const s=this.keyAt(e),n=this.get(s);t.set(s,n)}return t}toSpliced(...t){const s=[...this.entries()];return s.splice(...t),new e(s)}slice(t,s){const n=new e;let i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==s&&s>0&&(i=s-1);for(let e=t;e<=i;e++){const t=this.keyAt(e),s=this.get(t);n.set(t,s)}return n}every(e,t){let s=0;for(const n of this){if(!Reflect.apply(e,t,[n,s,this]))return!1;s++}return!0}some(e,t){let s=0;for(const n of this){if(Reflect.apply(e,t,[n,s,this]))return!0;s++}return!1}};function y(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const s=O(e,t);return-1===s?void 0:e[s]}function O(e,t){const s=e.length,n=R(t),i=n>=0?n:s+n;return i<0||i>=s?-1:i}function R(e){return e!=e||0===e?0:Math.trunc(e)}function b(e){const n=e+"CollectionProvider",[i,h]=(0,l.createContextScope)(n),[d,y]=i(n,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new p,setItemMap:()=>{}}),O=e=>{let{state:s}=e,n=(0,o.default)(e,t);return s?(0,a.jsx)(b,Object.assign({},n,{state:s})):(0,a.jsx)(R,Object.assign({},n))};O.displayName=n;const R=e=>{const t=z();return(0,a.jsx)(b,Object.assign({},e,{state:t}))};R.displayName=n+"Init";const b=e=>{const{scope:t,children:s,state:n}=e,i=c.useRef(null),[o,l]=c.useState(null),f=(0,u.useComposedRefs)(i,l),[h,p]=n;return c.useEffect(()=>{if(!o)return;const e=C(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,a.jsx)(d,{scope:t,itemMap:h,setItemMap:p,collectionRef:f,collectionRefObject:i,collectionElement:o,children:s})};b.displayName=n+"Impl";const k=e+"CollectionSlot",S=(0,f.createSlot)(k),M=c.forwardRef((e,t)=>{const{scope:s,children:n}=e,i=y(k,s),o=(0,u.useComposedRefs)(t,i.collectionRef);return(0,a.jsx)(S,{ref:o,children:n})});M.displayName=k;const v=e+"CollectionItemSlot",w="data-radix-collection-item",A=(0,f.createSlot)(v),I=c.forwardRef((e,t)=>{const{scope:n,children:i}=e,l=(0,o.default)(e,s),f=c.useRef(null),[h,d]=c.useState(null),O=(0,u.useComposedRefs)(t,f,d),R=y(v,n),{setItemMap:b}=R,k=c.useRef(l);j(k.current,l)||(k.current=l);const C=k.current;return c.useEffect(()=>{const e=C;return b(t=>h?t.has(h)?t.set(h,Object.assign({},e,{element:h})).toSorted(x):(t.set(h,Object.assign({},e,{element:h})),t.toSorted(x)):t),()=>{b(e=>h&&e.has(h)?(e.delete(h),new p(e)):e)}},[h,C,b]),(0,a.jsx)(A,Object.assign({},{[w]:""},{ref:O,children:i}))});function z(){return c.useState(new p)}I.displayName=v;return[{Provider:O,Slot:M,ItemSlot:I},{createCollectionScope:h,useCollection:function(t){const{itemMap:s}=y(e+"CollectionConsumer",t);return s},useInitCollection:z}]}function j(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const s=Object.keys(e),n=Object.keys(t);if(s.length!==n.length)return!1;for(const n of s){if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(e[n]!==t[n])return!1}return!0}function k(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function x(e,t){return e[1].element&&t[1].element?k(e[1].element,t[1].element)?-1:1:0}function C(e){return new MutationObserver(t=>{for(const s of t)if("childList"===s.type)return void e()})}},229,[131,38,173,172,180,151]);
286
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DirectionProvider",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"Provider",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"useDirection",{enumerable:!0,get:function(){return u}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=e.createContext(void 0),o=e=>{const{dir:o,children:u}=e;return(0,t.jsx)(n.Provider,{value:o,children:u})};function u(t){const o=e.useContext(n);return t||o||"ltr"}var c=o},230,[38,151]);
287
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["__scopePopper","virtualRef"],t=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],n=["__scopePopper"];function o(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ALIGN_OPTIONS",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"Anchor",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"Arrow",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"Content",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"Popper",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"PopperAnchor",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"PopperArrow",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"PopperContent",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"SIDE_OPTIONS",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"createPopperScope",{enumerable:!0,get:function(){return _}});var s,l=r(_d[0]),d=(s=l)&&s.__esModule?s:{default:s},p=o(r(_d[1])),c=r(_d[2]),u=o(r(_d[3])),f=r(_d[4]),h=r(_d[5]),b=r(_d[6]),y=r(_d[7]),P=r(_d[8]),w=r(_d[9]),O=r(_d[10]),x=["top","right","bottom","left"],j=["start","center","end"],v="Popper",[S,_]=(0,h.createContextScope)(v),[A,C]=S(v),R=e=>{const{__scopePopper:t,children:n}=e,[o,s]=p.useState(null),[l,d]=p.useState(void 0);return(0,O.jsx)(A,{scope:t,anchor:o,onAnchorChange:s,placementState:l,setPlacementState:d,children:n})};R.displayName=v;var $="PopperAnchor",E=p.forwardRef((t,n)=>{const{__scopePopper:o,virtualRef:s}=t,l=(0,d.default)(t,e),c=C($,o),u=p.useRef(null),h=c.onAnchorChange,y=p.useCallback(e=>{u.current=e,e&&h(e)},[h]),P=(0,f.useComposedRefs)(n,y),w=p.useRef(null);p.useEffect(()=>{if(!s)return;const e=w.current;w.current=s.current,e!==w.current&&h(w.current)});const x=c.placementState&&M(c.placementState),j=x?.[0],v=x?.[1];return s?null:(0,O.jsx)(b.Primitive.div,Object.assign({"data-radix-popper-side":j,"data-radix-popper-align":v},l,{ref:P}))});E.displayName=$;var H="PopperContent",[N,k]=S(H),D=p.forwardRef((e,n)=>{const{__scopePopper:o,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:h=0,arrowPadding:x=0,avoidCollisions:j=!0,collisionBoundary:v=[],collisionPadding:S=0,sticky:_="partial",hideWhenDetached:A=!1,updatePositionStrategy:R="optimized",onPlaced:$}=e,E=(0,d.default)(e,t),k=C(H,o),[D,I]=p.useState(null),W=(0,f.useComposedRefs)(n,I),[z,X]=p.useState(null),B=(0,w.useSize)(z),F=B?.width??0,T=B?.height??0,G=s+("center"!==u?"-"+u:""),U="number"==typeof S?S:Object.assign({top:0,right:0,bottom:0,left:0},S),q=Array.isArray(v)?v:[v],J=q.length>0,K={padding:U,boundary:q.filter(Y),altBoundary:J},{refs:Q,floatingStyles:V,placement:Z,isPositioned:ee,middlewareData:te}=(0,c.useFloating)({strategy:"fixed",placement:G,whileElementsMounted:(...e)=>(0,c.autoUpdate)(...e,{animationFrame:"always"===R}),elements:{reference:k.anchor},middleware:[(0,c.offset)({mainAxis:l+T,alignmentAxis:h}),j&&(0,c.shift)(Object.assign({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?(0,c.limitShift)():void 0},K)),j&&(0,c.flip)(Object.assign({},K)),(0,c.size)(Object.assign({},K,{apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{const{width:s,height:l}=t.reference,d=e.floating.style;d.setProperty("--radix-popper-available-width",`${n}px`),d.setProperty("--radix-popper-available-height",`${o}px`),d.setProperty("--radix-popper-anchor-width",`${s}px`),d.setProperty("--radix-popper-anchor-height",`${l}px`)}})),z&&(0,c.arrow)({element:z,padding:x}),L({arrowWidth:F,arrowHeight:T}),A&&(0,c.hide)(Object.assign({strategy:"referenceHidden"},K,{boundary:J?K.boundary:void 0}))]}),re=k.setPlacementState;(0,P.useLayoutEffect)(()=>(re(Z),()=>{re(void 0)}),[Z,re]);const[ne,oe]=M(Z),ae=(0,y.useCallbackRef)($);(0,P.useLayoutEffect)(()=>{ee&&ae?.()},[ee,ae]);const ie=te.arrow?.x,se=te.arrow?.y,le=0!==te.arrow?.centerOffset,[de,pe]=p.useState();return(0,P.useLayoutEffect)(()=>{D&&pe(window.getComputedStyle(D).zIndex)},[D]),(0,O.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:Object.assign({},V,{transform:ee?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(" ")},te.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,O.jsx)(N,{scope:o,placedSide:ne,placedAlign:oe,onArrowChange:X,arrowX:ie,arrowY:se,shouldHideArrow:le,children:(0,O.jsx)(b.Primitive.div,Object.assign({"data-side":ne,"data-align":oe},E,{ref:W,style:Object.assign({},E.style,{animation:ee?void 0:"none"})}))})})});D.displayName=H;var I="PopperArrow",W={top:"bottom",right:"left",bottom:"top",left:"right"},z=p.forwardRef(function(e,t){const{__scopePopper:o}=e,s=(0,d.default)(e,n),l=k(I,o),p=W[l.placedSide];return(0,O.jsx)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[p]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:(0,O.jsx)(u.Root,Object.assign({},s,{ref:t,style:Object.assign({},s.style,{display:"block"})}))})});function Y(e){return null!==e}z.displayName=I;var L=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:s}=t,l=0!==s.arrow?.centerOffset,d=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[c,u]=M(n),f={start:"0%",center:"50%",end:"100%"}[u],h=(s.arrow?.x??0)+d/2,b=(s.arrow?.y??0)+p/2;let y="",P="";return"bottom"===c?(y=l?f:`${h}px`,P=-p+"px"):"top"===c?(y=l?f:`${h}px`,P=`${o.floating.height+p}px`):"right"===c?(y=-p+"px",P=l?f:`${b}px`):"left"===c&&(y=`${o.floating.width+p}px`,P=l?f:`${b}px`),{data:{x:y,y:P}}}});function M(e){const[t,n="center"]=e.split("-");return[t,n]}var X=R,B=E,F=D,T=z},231,[131,38,232,237,172,173,179,181,175,238,151]);
288
- __d(function(g,r,_i,_a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"autoUpdate",{enumerable:!0,get:function(){return t.autoUpdate}}),Object.defineProperty(_e,"computePosition",{enumerable:!0,get:function(){return t.computePosition}}),Object.defineProperty(_e,"detectOverflow",{enumerable:!0,get:function(){return t.detectOverflow}}),Object.defineProperty(_e,"getOverflowAncestors",{enumerable:!0,get:function(){return t.getOverflowAncestors}}),Object.defineProperty(_e,"platform",{enumerable:!0,get:function(){return t.platform}}),Object.defineProperty(_e,"arrow",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"autoPlacement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"flip",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"hide",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"inline",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"limitShift",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"offset",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"shift",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"size",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"useFloating",{enumerable:!0,get:function(){return l}});var t=r(_d[0]),n=r(_d[1]),o=e(n),u=e(r(_d[2])),i='undefined'!=typeof document?n.useLayoutEffect:function(){};function f(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if('function'==typeof e&&e.toString()===t.toString())return!0;let n,o,u;if(e&&t&&'object'==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!==o--;)if(!f(e[o],t[o]))return!1;return!0}if(u=Object.keys(e),n=u.length,n!==Object.keys(t).length)return!1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(t,u[o]))return!1;for(o=n;0!==o--;){const n=u[o];if(('_owner'!==n||!e.$$typeof)&&!f(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if('undefined'==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function a(e,t){const n=c(e);return Math.round(t*n)/n}function s(e){const t=o.useRef(e);return i(()=>{t.current=e}),t}function l(e){void 0===e&&(e={});const{placement:n="bottom",strategy:l="absolute",middleware:p=[],platform:d,elements:{reference:b,floating:y}={},transform:O=!0,whileElementsMounted:P,open:j}=e,[w,h]=o.useState({x:0,y:0,strategy:l,placement:n,middlewareData:{},isPositioned:!1}),[v,S]=o.useState(p);f(v,p)||S(p);const[M,R]=o.useState(null),[_,k]=o.useState(null),x=o.useCallback(e=>{e!==E.current&&(E.current=e,R(e))},[]),A=o.useCallback(e=>{e!==z.current&&(z.current=e,k(e))},[]),C=b||M,D=y||_,E=o.useRef(null),z=o.useRef(null),F=o.useRef(w),U=null!=P,$=s(P),L=s(d),V=s(j),q=o.useCallback(()=>{if(!E.current||!z.current)return;const e={placement:n,strategy:l,middleware:v};L.current&&(e.platform=L.current),(0,t.computePosition)(E.current,z.current,e).then(e=>{const t=Object.assign({},e,{isPositioned:!1!==V.current});B.current&&!f(F.current,t)&&(F.current=t,u.flushSync(()=>{h(t)}))})},[v,n,l,L,V]);i(()=>{!1===j&&F.current.isPositioned&&(F.current.isPositioned=!1,h(e=>Object.assign({},e,{isPositioned:!1})))},[j]);const B=o.useRef(!1);i(()=>(B.current=!0,()=>{B.current=!1}),[]),i(()=>{if(C&&(E.current=C),D&&(z.current=D),C&&D){if($.current)return $.current(C,D,q);q()}},[C,D,q,$,U]);const G=o.useMemo(()=>({reference:E,floating:z,setReference:x,setFloating:A}),[x,A]),H=o.useMemo(()=>({reference:C,floating:D}),[C,D]),I=o.useMemo(()=>{const e={position:l,left:0,top:0};if(!H.floating)return e;const t=a(H.floating,w.x),n=a(H.floating,w.y);return O?Object.assign({},e,{transform:"translate("+t+"px, "+n+"px)"},c(H.floating)>=1.5&&{willChange:'transform'}):{position:l,left:t,top:n}},[l,O,H.floating,w.x,w.y]);return o.useMemo(()=>Object.assign({},w,{update:q,refs:G,elements:H,floatingStyles:I}),[w,q,G,H,I])}const p=e=>({name:'arrow',options:e,fn(n){const{element:o,padding:u}='function'==typeof e?e(n):e;return o&&(i=o,{}.hasOwnProperty.call(i,'current'))?null!=o.current?(0,t.arrow)({element:o.current,padding:u}).fn(n):{}:o?(0,t.arrow)({element:o,padding:u}).fn(n):{};var i}}),d=(e,n)=>{const o=(0,t.offset)(e);return{name:o.name,fn:o.fn,options:[e,n]}},b=(e,n)=>{const o=(0,t.shift)(e);return{name:o.name,fn:o.fn,options:[e,n]}},y=(e,n)=>({fn:(0,t.limitShift)(e).fn,options:[e,n]}),O=(e,n)=>{const o=(0,t.flip)(e);return{name:o.name,fn:o.fn,options:[e,n]}},P=(e,n)=>{const o=(0,t.size)(e);return{name:o.name,fn:o.fn,options:[e,n]}},j=(e,n)=>{const o=(0,t.autoPlacement)(e);return{name:o.name,fn:o.fn,options:[e,n]}},w=(e,n)=>{const o=(0,t.hide)(e);return{name:o.name,fn:o.fn,options:[e,n]}},h=(e,n)=>{const o=(0,t.inline)(e);return{name:o.name,fn:o.fn,options:[e,n]}},v=(e,t)=>{const n=p(e);return{name:n.name,fn:n.fn,options:[e,t]}}},232,[233,38,40]);
289
- __d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getOverflowAncestors",{enumerable:!0,get:function(){return o.getOverflowAncestors}}),Object.defineProperty(e,"arrow",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"autoPlacement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"autoUpdate",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"computePosition",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"detectOverflow",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"flip",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"hide",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"inline",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"limitShift",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"platform",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"shift",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"size",{enumerable:!0,get:function(){return H}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function i(t){const i=(0,o.getComputedStyle)(t);let l=parseFloat(i.width)||0,c=parseFloat(i.height)||0;const s=(0,o.isHTMLElement)(t),f=s?t.offsetWidth:l,u=s?t.offsetHeight:c,a=(0,n.round)(l)!==f||(0,n.round)(c)!==u;return a&&(l=f,c=u),{width:l,height:c,$:a}}function l(t){return(0,o.isElement)(t)?t:t.contextElement}function c(t){const c=l(t);if(!(0,o.isHTMLElement)(c))return(0,n.createCoords)(1);const s=c.getBoundingClientRect(),{width:f,height:u,$:a}=i(c);let h=(a?(0,n.round)(s.width):s.width)/f,p=(a?(0,n.round)(s.height):s.height)/u;return h&&Number.isFinite(h)||(h=1),p&&Number.isFinite(p)||(p=1),{x:h,y:p}}const s=(0,n.createCoords)(0);function f(t){const n=(0,o.getWindow)(t);return(0,o.isWebKit)()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:s}function u(t,n,i){return void 0===n&&(n=!1),!!i&&n&&i===(0,o.getWindow)(t)}function a(i,s,a,h){void 0===s&&(s=!1),void 0===a&&(a=!1);const p=i.getBoundingClientRect(),y=l(i);let b=(0,n.createCoords)(1);s&&(h?(0,o.isElement)(h)&&(b=c(h)):b=c(i));const w=u(y,a,h)?f(y):(0,n.createCoords)(0);let x=(p.left+w.x)/b.x,v=(p.top+w.y)/b.y,E=p.width/b.x,C=p.height/b.y;if(y&&h){const t=(0,o.getWindow)(y),n=(0,o.isElement)(h)?(0,o.getWindow)(h):h;let i=t,l=(0,o.getFrameElement)(i);for(;l&&n!==i;){const t=c(l),n=l.getBoundingClientRect(),s=(0,o.getComputedStyle)(l),f=n.left+(l.clientLeft+parseFloat(s.paddingLeft))*t.x,u=n.top+(l.clientTop+parseFloat(s.paddingTop))*t.y;x*=t.x,v*=t.y,E*=t.x,C*=t.y,x+=f,v+=u,i=(0,o.getWindow)(l),l=(0,o.getFrameElement)(i)}}return(0,t.rectToClientRect)({width:E,height:C,x:x,y:v})}function h(t,n){const i=(0,o.getNodeScroll)(t).scrollLeft;return n?n.left+i:a((0,o.getDocumentElement)(t)).left+i}function p(t,n){const o=t.getBoundingClientRect();return{x:o.left+n.scrollLeft-h(t,o),y:o.top+n.scrollTop}}function y(t){const i=(0,o.getNodeScroll)(t),l=t.ownerDocument.body,c=(0,n.max)(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),s=(0,n.max)(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+h(t);const u=-i.scrollTop;return'rtl'===(0,o.getComputedStyle)(l).direction&&(f+=(0,n.max)(t.clientWidth,l.clientWidth)-c),{width:c,height:s,x:f,y:u}}function b(t,n,i){void 0===i&&(i='viewport');const l='layoutViewport'===i,c=(0,o.getWindow)(t),s=(0,o.getDocumentElement)(t),f=c.visualViewport;let u=s.clientWidth,a=s.clientHeight,p=0,y=0;if(f){const t=!(0,o.isWebKit)()||'fixed'===n;l?t||(p=-f.offsetLeft,y=-f.offsetTop):(u=f.width,a=f.height,t&&(p=f.offsetLeft,y=f.offsetTop))}if(h(s)<=0){const t=s.ownerDocument,n=t.body,o=getComputedStyle(n),i='CSS1Compat'===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,l=Math.abs(s.clientWidth-n.clientWidth-i),c='stable both-edges'===getComputedStyle(s).scrollbarGutter?l/2:l;c<=25&&(u-=c)}return{width:u,height:a,x:p,y:y}}function w(t,n){const o=a(t,!0,'fixed'===n),i=o.top+t.clientTop,l=o.left+t.clientLeft,s=c(t);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:l*s.x,y:i*s.y}}function x(n,i,l){let c;if('viewport'===i||'layoutViewport'===i)c=b(n,l,i);else if('document'===i)c=y((0,o.getDocumentElement)(n));else if((0,o.isElement)(i))c=w(i,l);else{const t=f(n);c={x:i.x-t.x,y:i.y-t.y,width:i.width,height:i.height}}return(0,t.rectToClientRect)(c)}function v(t,n){const i=n.get(t);if(i)return i;let l=(0,o.getOverflowAncestors)(t,[],!1).filter(t=>(0,o.isElement)(t)&&'body'!==(0,o.getNodeName)(t)),c=null;const s='fixed'===(0,o.getComputedStyle)(t).position;let f=s?(0,o.getParentNode)(t):t;for(;(0,o.isElement)(f)&&!(0,o.isLastTraversableNode)(f);){const t=(0,o.getComputedStyle)(f),n=(0,o.isContainingBlock)(f),i=c?c.position:s?'fixed':'';!n&&('fixed'===i||'absolute'===i&&'static'===t.position)?l=l.filter(t=>t!==f):c=t,f=(0,o.getParentNode)(f)}return n.set(t,l),l}function E(t,i,l){const c=(0,o.isHTMLElement)(i),s=(0,o.getDocumentElement)(i),f='fixed'===l,u=a(t,!0,f,i);let y={scrollLeft:0,scrollTop:0};const b=(0,n.createCoords)(0);if((c||!f)&&(('body'!==(0,o.getNodeName)(i)||(0,o.isOverflowElement)(s))&&(y=(0,o.getNodeScroll)(i)),c)){const t=a(i,!0,f,i);b.x=t.x+i.clientLeft,b.y=t.y+i.clientTop}!c&&s&&(b.x=h(s));const w=!s||c||f?(0,n.createCoords)(0):p(s,y);return{x:u.left+y.scrollLeft-b.x-w.x,y:u.top+y.scrollTop-b.y-w.y,width:u.width,height:u.height}}function C(t){return'static'===(0,o.getComputedStyle)(t).position}function L(t,n){if(!(0,o.isHTMLElement)(t)||'fixed'===(0,o.getComputedStyle)(t).position)return null;if(n)return n(t);let i=t.offsetParent;return(0,o.getDocumentElement)(t)===i&&(i=i.ownerDocument.body),i}function O(t,n){const i=(0,o.getWindow)(t);if((0,o.isTopLayer)(t))return i;if(!(0,o.isHTMLElement)(t)){let n=(0,o.getParentNode)(t);for(;n&&!(0,o.isLastTraversableNode)(n);){if((0,o.isElement)(n)&&!C(n))return n;n=(0,o.getParentNode)(n)}return i}let l=L(t,n);for(;l&&(0,o.isTableElement)(l)&&C(l);)l=L(l,n);return l&&(0,o.isLastTraversableNode)(l)&&C(l)&&!(0,o.isContainingBlock)(l)?i:l||(0,o.getContainingBlock)(t)||i}const T={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:i,rect:l,offsetParent:s,strategy:f}=t;const u='fixed'===f,h=(0,o.getDocumentElement)(s),y=!!i&&(0,o.isTopLayer)(i.floating);if(s===h||y&&u)return l;let b={scrollLeft:0,scrollTop:0},w=(0,n.createCoords)(1);const x=(0,n.createCoords)(0),v=(0,o.isHTMLElement)(s);if((v||!u)&&(('body'!==(0,o.getNodeName)(s)||(0,o.isOverflowElement)(h))&&(b=(0,o.getNodeScroll)(s)),v)){const t=a(s);w=c(s),x.x=t.x+s.clientLeft,x.y=t.y+s.clientTop}const E=!h||v||u?(0,n.createCoords)(0):p(h,b);return{width:l.width*w.x,height:l.height*w.y,x:l.x*w.x-b.scrollLeft*w.x+x.x+E.x,y:l.y*w.y-b.scrollTop*w.y+x.y+E.y}},getDocumentElement:o.getDocumentElement,getClippingRect:function(t){let{element:i,boundary:l,rootBoundary:c,strategy:s}=t;const f=[...'clippingAncestors'===l?(0,o.isTopLayer)(i)?[]:v(i,this._c):[].concat(l),c],u=x(i,f[0],s);let a=u.top,h=u.right,p=u.bottom,y=u.left;for(let t=1;t<f.length;t++){const o=x(i,f[t],s);a=(0,n.max)(o.top,a),h=(0,n.min)(o.right,h),p=(0,n.min)(o.bottom,p),y=(0,n.max)(o.left,y)}return{width:h-y,height:p-a,x:y,y:a}},getOffsetParent:O,getElementRects:async function(t){const n=this.getOffsetParent||O,o=this.getDimensions,i=await o(t.floating);return{reference:E(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:n,height:o}=i(t);return{width:n,height:o}},getScale:c,isElement:o.isElement,isRTL:function(t){return'rtl'===(0,o.getComputedStyle)(t).direction}};function P(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function R(t,i,l){let c,s=null;const f=(0,o.getDocumentElement)(t);function u(){var t;clearTimeout(c),null==(t=s)||t.disconnect(),s=null}function a(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),u();const h=t.getBoundingClientRect(),{left:p,top:y,width:b,height:w}=h;if(o||i(),!b||!w)return;const x={rootMargin:-(0,n.floor)(y)+"px "+-(0,n.floor)(f.clientWidth-(p+b))+"px "+-(0,n.floor)(f.clientHeight-(y+w))+"px "+-(0,n.floor)(p)+"px",threshold:(0,n.max)(0,(0,n.min)(1,l))||1};let v=!0;function E(n){const o=n[0].intersectionRatio;if(!P(h,t.getBoundingClientRect()))return a();if(o!==l){if(!v)return a();o?a(!1,o):c=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{s=new IntersectionObserver(E,Object.assign({},x,{root:f.ownerDocument}))}catch(t){s=new IntersectionObserver(E,x)}s.observe(t)}const h=(0,o.getWindow)(t),p=()=>a(l);return h.addEventListener('resize',p),a(!0),()=>{h.removeEventListener('resize',p),u()}}function W(t,n,i,c){void 0===c&&(c={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:u='function'==typeof ResizeObserver,layoutShift:h='function'==typeof IntersectionObserver,animationFrame:p=!1}=c,y=l(t),b=s||f?[...y?(0,o.getOverflowAncestors)(y):[],...n?(0,o.getOverflowAncestors)(n):[]]:[];b.forEach(t=>{s&&t.addEventListener('scroll',i),f&&t.addEventListener('resize',i)});const w=y&&h?R(y,i,f):null;let x,v=-1,E=null;u&&(E=new ResizeObserver(t=>{let[o]=t;o&&o.target===y&&E&&n&&(E.unobserve(n),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var t;null==(t=E)||t.observe(n)})),i()}),y&&!p&&E.observe(y),n&&E.observe(n));let C=p?a(t):null;return p&&(function n(){const o=a(t);C&&!P(C,o)&&i();C=o,x=requestAnimationFrame(n)})(),i(),()=>{var t;b.forEach(t=>{s&&t.removeEventListener('scroll',i),f&&t.removeEventListener('resize',i)}),null==w||w(),null==(t=E)||t.disconnect(),E=null,p&&cancelAnimationFrame(x)}}const S=t.detectOverflow,N=t.offset,j=t.autoPlacement,D=t.shift,F=t.flip,H=t.size,A=t.hide,M=t.arrow,z=t.inline,B=t.limitShift,V=(n,o,i)=>{const l=new Map,c=null!=i?i:{},s=Object.assign({},T,c.platform,{_c:l});return(0,t.computePosition)(n,o,Object.assign({},c,{platform:s}))}},233,[234,235,236]);
290
- __d(function(g,r,_i,_a,m,_e,_d){"use strict";const e=["crossAxis","alignment","allowedPlacements","autoAlignment"],t=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],n=["strategy"],i=["mainAxis","crossAxis","limiter"],a=["apply"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"rectToClientRect",{enumerable:!0,get:function(){return c.rectToClientRect}}),Object.defineProperty(_e,"arrow",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"autoPlacement",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"computePosition",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"detectOverflow",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"flip",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"hide",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"inline",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"limitShift",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"offset",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"shift",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"size",{enumerable:!0,get:function(){return D}});var l,o=r(_d[0]),s=(l=o)&&l.__esModule?l:{default:l},c=r(_d[1]);function f(e,t,n){let{reference:i,floating:a}=e;const l=(0,c.getSideAxis)(t),o=(0,c.getAlignmentAxis)(t),s=(0,c.getAxisLength)(o),f=(0,c.getSide)(t),u='y'===l,d=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,y=i[s]/2-a[s]/2;let x;switch(f){case'top':x={x:d,y:i.y-a.height};break;case'bottom':x={x:d,y:i.y+i.height};break;case'right':x={x:i.x+i.width,y:p};break;case'left':x={x:i.x-a.width,y:p};break;default:x={x:i.x,y:i.y}}const h=(0,c.getAlignment)(t);return h&&(x[o]+=y*('end'===h?1:-1)*(n&&u?-1:1)),x}async function u(e,t){var n;void 0===t&&(t={});const{x:i,y:a,platform:l,rects:o,elements:s,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:y=!1,padding:x=0}=(0,c.evaluate)(t,e),h=(0,c.getPaddingObject)(x),w=s[y?'floating'===p?'reference':'floating':p],v=(0,c.rectToClientRect)(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(w)))||n?w:w.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:f})),b='floating'===p?{x:i,y:a,width:o.floating.width,height:o.floating.height}:o.reference,A=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),O=await(null==l.isElement?void 0:l.isElement(A))&&await(null==l.getScale?void 0:l.getScale(A))||{x:1,y:1},P=(0,c.rectToClientRect)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:A,strategy:f}):b);return{top:(v.top-P.top+h.top)/O.y,bottom:(P.bottom-v.bottom+h.bottom)/O.y,left:(v.left-P.left+h.left)/O.x,right:(P.right-v.right+h.right)/O.x}}const d=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:o}=n,s=o.detectOverflow?o:Object.assign({},o,{detectOverflow:u}),c=await(null==o.isRTL?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:y}=f(d,i,c),x=i,h=0;const w={};for(let n=0;n<l.length;n++){const u=l[n];if(!u)continue;const{name:v,fn:b}=u,{x:A,y:O,data:P,reset:R}=await b({x:p,y:y,initialPlacement:i,placement:x,strategy:a,middlewareData:w,rects:d,platform:s,elements:{reference:e,floating:t}});p=null!=A?A:p,y=null!=O?O:y,w[v]=Object.assign({},w[v],P),R&&h<50&&(h++,'object'==typeof R&&(R.placement&&(x=R.placement),R.rects&&(d=!0===R.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):R.rects),({x:p,y:y}=f(d,x,c))),n=-1)}return{x:p,y:y,placement:x,strategy:a,middlewareData:w}},p=e=>({name:'arrow',options:e,async fn(t){const{x:n,y:i,placement:a,rects:l,platform:o,elements:s,middlewareData:f}=t,{element:u,padding:d=0}=(0,c.evaluate)(e,t)||{};if(null==u)return{};const p=(0,c.getPaddingObject)(d),y={x:n,y:i},x=(0,c.getAlignmentAxis)(a),h=(0,c.getAxisLength)(x),w=await o.getDimensions(u),v='y'===x,b=v?'top':'left',A=v?'bottom':'right',O=v?'clientHeight':'clientWidth',P=l.reference[h]+l.reference[x]-y[x]-l.floating[h],R=y[x]-l.reference[x],S=await(null==o.getOffsetParent?void 0:o.getOffsetParent(u));let j=S?S[O]:0;j&&await(null==o.isElement?void 0:o.isElement(S))||(j=s.floating[O]||l.floating[h]);const T=P/2-R/2,C=j/2-w[h]/2-1,D=(0,c.min)(p[b],C),E=(0,c.min)(p[A],C),L=j-w[h]-E,k=j/2-w[h]/2+T,H=(0,c.clamp)(D,k,L),_=!f.arrow&&null!=(0,c.getAlignment)(a)&&k!==H&&l.reference[h]/2-(k<D?D:E)-w[h]/2<0,B=_?k<D?k-D:k-L:0;return{[x]:y[x]+B,data:Object.assign({[x]:H,centerOffset:k-H-B},_&&{alignmentOffset:B}),reset:_}}});function y(e,t,n){return(e?[...n.filter(t=>(0,c.getAlignment)(t)===e),...n.filter(t=>(0,c.getAlignment)(t)!==e)]:n.filter(e=>(0,c.getSide)(e)===e)).filter(n=>!e||((0,c.getAlignment)(n)===e||!!t&&(0,c.getOppositeAlignmentPlacement)(n)!==n))}const x=function(t){return void 0===t&&(t={}),{name:'autoPlacement',options:t,async fn(n){var i,a,l;const{rects:o,middlewareData:f,placement:u,platform:d,elements:p}=n,x=(0,c.evaluate)(t,n),{crossAxis:h=!1,alignment:w,allowedPlacements:v=c.placements,autoAlignment:b=!0}=x,A=(0,s.default)(x,e),O=void 0!==w||v===c.placements?y(w||null,b,v):v,P=(null==(i=f.autoPlacement)?void 0:i.index)||0,R=O[P];if(null==R)return{};if(u!==R)return{reset:{placement:O[0]}};const S=await d.detectOverflow(n,A),j=(0,c.getAlignmentSides)(R,o,await(null==d.isRTL?void 0:d.isRTL(p.floating))),T=[S[(0,c.getSide)(R)],S[j[0]],S[j[1]]],C=[...(null==(a=f.autoPlacement)?void 0:a.overflows)||[],{placement:R,overflows:T}],D=O[P+1];if(D)return{data:{index:P+1,overflows:C},reset:{placement:D}};const E=C.map(e=>{const t=(0,c.getAlignment)(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),L=(null==(l=E.filter(e=>e[2].slice(0,(0,c.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:l[0])||E[0][0];return L!==u?{data:{index:P+1,overflows:C},reset:{placement:L}}:{}}}},h=function(e){return void 0===e&&(e={}),{name:'flip',options:e,async fn(n){var i,a;const{placement:l,middlewareData:o,rects:f,initialPlacement:u,platform:d,elements:p}=n,y=(0,c.evaluate)(e,n),{mainAxis:x=!0,crossAxis:h=!0,fallbackPlacements:w,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:A=!0}=y,O=(0,s.default)(y,t);if(null!=(i=o.arrow)&&i.alignmentOffset)return{};const P=(0,c.getSide)(l),R=(0,c.getSideAxis)(u),S=(0,c.getSide)(u)===u,j=await(null==d.isRTL?void 0:d.isRTL(p.floating)),T=w||(S||!A?[(0,c.getOppositePlacement)(u)]:(0,c.getExpandedPlacements)(u)),C='none'!==b;!w&&C&&T.push(...(0,c.getOppositeAxisPlacements)(u,A,b,j));const D=[u,...T],E=await d.detectOverflow(n,O),L=[];let k=(null==(a=o.flip)?void 0:a.overflows)||[];if(x&&L.push(E[P]),h){const e=(0,c.getAlignmentSides)(l,f,j);L.push(E[e[0]],E[e[1]])}if(k=[...k,{placement:l,overflows:L}],!L.every(e=>e<=0)){var H,_;const e=((null==(H=o.flip)?void 0:H.index)||0)+1,t=D[e];if(t){if(!('alignment'===h&&R!==(0,c.getSideAxis)(t))||k.every(e=>(0,c.getSideAxis)(e.placement)!==R||e.overflows[0]>0))return{data:{index:e,overflows:k},reset:{placement:t}}}let n=null==(_=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!n)switch(v){case'bestFit':{var B;const e=null==(B=k.filter(e=>{if(C){const t=(0,c.getSideAxis)(e.placement);return t===R||'y'===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:B[0];e&&(n=e);break}case'initialPlacement':n=u}if(l!==n)return{reset:{placement:n}}}return{}}}};function w(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function v(e){return c.sides.some(t=>e[t]>=0)}const b=function(e){return void 0===e&&(e={}),{name:'hide',options:e,async fn(t){const{rects:i,platform:a}=t,l=(0,c.evaluate)(e,t),{strategy:o="referenceHidden"}=l,f=(0,s.default)(l,n);switch(o){case'referenceHidden':{const e=w(await a.detectOverflow(t,Object.assign({},f,{elementContext:'reference'})),i.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:v(e)}}}case'escaped':{const e=w(await a.detectOverflow(t,Object.assign({},f,{altBoundary:!0})),i.floating);return{data:{escapedOffsets:e,escaped:v(e)}}}default:return{}}}}};function A(e){const t=(0,c.min)(...e.map(e=>e.left)),n=(0,c.min)(...e.map(e=>e.top));return{x:t,y:n,width:(0,c.max)(...e.map(e=>e.right))-t,height:(0,c.max)(...e.map(e=>e.bottom))-n}}function O(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let i=null;for(let e=0;e<t.length;e++){const a=t[e];!i||a.y-i.y>i.height/2?n.push([a]):n[n.length-1].push(a),i=a}return n.map(e=>(0,c.rectToClientRect)(A(e)))}const P=function(e){return void 0===e&&(e={}),{name:'inline',options:e,async fn(t){const{placement:n,elements:i,rects:a,platform:l,strategy:o}=t,{padding:s=2,x:f,y:u}=(0,c.evaluate)(e,t),d=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(i.reference))||[]);if(!d.length)return{};const p=O(d),y=(0,c.rectToClientRect)(A(d)),x=(0,c.getPaddingObject)(s);const h=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&(p[0].left>p[1].right||p[1].left>p[0].right)&&null!=f&&null!=u)return p.find(e=>f>e.left-x.left&&f<e.right+x.right&&u>e.top-x.top&&u<e.bottom+x.bottom)||y;if(p.length>=2){if('y'===(0,c.getSideAxis)(n)){const e=p[0],t=p[p.length-1],i='top'===(0,c.getSide)(n),a=e.top,l=t.bottom,o=i?e.left:t.left,s=i?e.right:t.right;return(0,c.rectToClientRect)({x:o,y:a,width:s-o,height:l-a})}const e='left'===(0,c.getSide)(n),t=(0,c.max)(...p.map(e=>e.right)),i=(0,c.min)(...p.map(e=>e.left)),a=p.filter(n=>e?n.left===i:n.right===t),l=a[0].top,o=a[a.length-1].bottom;return(0,c.rectToClientRect)({x:i,y:l,width:t-i,height:o-l})}return y}},floating:i.floating,strategy:o});return a.reference.x!==h.reference.x||a.reference.y!==h.reference.y||a.reference.width!==h.reference.width||a.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},R=new Set(['left','top']);async function S(e,t){const{placement:n,platform:i,elements:a}=e,l=await(null==i.isRTL?void 0:i.isRTL(a.floating)),o=(0,c.getSide)(n),s=(0,c.getAlignment)(n),f='y'===(0,c.getSideAxis)(n),u=R.has(o)?-1:1,d=l&&f?-1:1,p=(0,c.evaluate)(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:h}='number'==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&'number'==typeof h&&(x='end'===s?-1*h:h),f?{x:x*d,y:y*u}:{x:y*u,y:x*d}}const j=function(e){return void 0===e&&(e=0),{name:'offset',options:e,async fn(t){var n,i;const{x:a,y:l,placement:o,middlewareData:s}=t,c=await S(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:a+c.x,y:l+c.y,data:Object.assign({},c,{placement:o})}}}},T=function(e){return void 0===e&&(e={}),{name:'shift',options:e,async fn(t){const{x:n,y:a,placement:l,platform:o}=t,f=(0,c.evaluate)(e,t),{mainAxis:u=!0,crossAxis:d=!1,limiter:p={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=f,y=(0,s.default)(f,i),x={x:n,y:a},h=await o.detectOverflow(t,y),w=(0,c.getSideAxis)(l),v=(0,c.getOppositeAxis)(w);let b=x[v],A=x[w];const O=(e,t)=>(0,c.clamp)(t+h['y'===e?'top':'left'],t,t-h['y'===e?'bottom':'right']);u&&(b=O(v,b)),d&&(A=O(w,A));const P=p.fn(Object.assign({},t,{[v]:b,[w]:A}));return Object.assign({},P,{data:{x:P.x-n,y:P.y-a,enabled:{[v]:u,[w]:d}}})}}},C=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,i;const{x:a,y:l,placement:o,rects:s,middlewareData:f}=t,{offset:u=0,mainAxis:d=!0,crossAxis:p=!0}=(0,c.evaluate)(e,t),y={x:a,y:l},x=(0,c.getSideAxis)(o),h=(0,c.getOppositeAxis)(x);let w=y[h],v=y[x];const b=(0,c.evaluate)(u,t),A='number'==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(n=b.mainAxis)?n:0,crossAxis:null!=(i=b.crossAxis)?i:0};if(d){const e='y'===h?'height':'width',t=s.reference[h]-s.floating[e]+A.mainAxis,n=s.reference[h]+s.reference[e]-A.mainAxis;w<t?w=t:w>n&&(w=n)}if(p){var O,P;const e='y'===h?'width':'height',t=R.has((0,c.getSide)(o)),n=s.reference[x]-s.floating[e]+(t&&(null==(O=f.offset)?void 0:O[x])||0)+(t?0:A.crossAxis),i=s.reference[x]+s.reference[e]+(t?0:(null==(P=f.offset)?void 0:P[x])||0)-(t?A.crossAxis:0);v<n?v=n:v>i&&(v=i)}return{[h]:w,[x]:v}}}},D=function(e){return void 0===e&&(e={}),{name:'size',options:e,async fn(t){const{placement:n,rects:i,platform:l,elements:o}=t,f=(0,c.evaluate)(e,t),{apply:u=()=>{}}=f,d=(0,s.default)(f,a),p=await l.detectOverflow(t,d),y=(0,c.getSide)(n),x=(0,c.getAlignment)(n),h='y'===(0,c.getSideAxis)(n),{width:w,height:v}=i.floating;let b,A;'top'===y||'bottom'===y?(b=y,A=x===(await(null==l.isRTL?void 0:l.isRTL(o.floating))?'start':'end')?'left':'right'):(A=y,b='end'===x?'top':'bottom');const O=v-p.top-p.bottom,P=w-p.left-p.right,R=(0,c.min)(v-p[b],O),S=(0,c.min)(w-p[A],P),j=t.middlewareData.shift,T=!j;let C=R,D=S;null!=j&&j.enabled.x&&(D=P),null!=j&&j.enabled.y&&(C=O),T&&!x&&(h?D=w-2*(0,c.max)(p.left,p.right):C=v-2*(0,c.max)(p.top,p.bottom)),await u(Object.assign({},t,{availableWidth:D,availableHeight:C}));const E=await l.getDimensions(o.floating);return w!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}}},234,[131,235]);
291
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"alignments",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createCoords",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"evaluate",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"expandPaddingObject",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"floor",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getAlignment",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getAlignmentAxis",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"getAlignmentSides",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"getAxisLength",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"getExpandedPlacements",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getOppositeAlignmentPlacement",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getOppositeAxis",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"getOppositeAxisPlacements",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"getOppositePlacement",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getPaddingObject",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getSide",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getSideAxis",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"placements",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"rectToClientRect",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"round",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"sides",{enumerable:!0,get:function(){return t}});const t=['top','right','bottom','left'],n=['start','end'],o=t.reduce((t,o)=>t.concat(o,o+"-"+n[0],o+"-"+n[1]),[]),u=Math.min,c=Math.max,f=Math.round,l=Math.floor,b=t=>({x:t,y:t}),p={left:'right',right:'left',bottom:'top',top:'bottom'};function s(t,n,o){return c(t,u(n,o))}function y(t,n){return'function'==typeof t?t(n):t}function O(t){return t.split('-')[0]}function P(t){return t.split('-')[1]}function h(t){return'x'===t?'y':'x'}function j(t){return'y'===t?'height':'width'}function x(t){const n=t[0];return't'===n||'b'===n?'y':'x'}function A(t){return h(x(t))}function M(t,n,o){void 0===o&&(o=!1);const u=P(t),c=A(t),f=j(c);let l='x'===c?u===(o?'end':'start')?'right':'left':'start'===u?'bottom':'top';return n.reference[f]>n.floating[f]&&(l=T(l)),[l,T(l)]}function v(t){const n=T(t);return[w(t),n,w(n)]}function w(t){return t.includes('start')?t.replace('start','end'):t.replace('end','start')}const _=['left','right'],S=['right','left'],C=['top','bottom'],E=['bottom','top'];function L(t,n,o){switch(t){case'top':case'bottom':return o?n?S:_:n?_:S;case'left':case'right':return n?C:E;default:return[]}}function R(t,n,o,u){const c=P(t);let f=L(O(t),'start'===o,u);return c&&(f=f.map(t=>t+"-"+c),n&&(f=f.concat(f.map(w)))),f}function T(t){const n=O(t);return p[n]+t.slice(n.length)}function k(t){var n,o,u,c;return{top:null!=(n=t.top)?n:0,right:null!=(o=t.right)?o:0,bottom:null!=(u=t.bottom)?u:0,left:null!=(c=t.left)?c:0}}function q(t){return'number'!=typeof t?k(t):{top:t,right:t,bottom:t,left:t}}function z(t){const{x:n,y:o,width:u,height:c}=t;return{width:u,height:c,top:o,left:n,right:n+u,bottom:o+c,x:n,y:o}}},235,[]);
292
- __d(function(g,r,i,a,m,e,d){"use strict";function t(){return'undefined'!=typeof window}function n(t){return c(t)?(t.nodeName||'').toLowerCase():'#document'}function o(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function u(t){var n;return null==(n=(c(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function c(n){return!!t()&&(n instanceof Node||n instanceof o(n).Node)}function l(n){return!!t()&&(n instanceof Element||n instanceof o(n).Element)}function f(n){return!!t()&&(n instanceof HTMLElement||n instanceof o(n).HTMLElement)}function s(n){return!(!t()||'undefined'==typeof ShadowRoot)&&(n instanceof ShadowRoot||n instanceof o(n).ShadowRoot)}function b(t){const{overflow:n,overflowX:o,overflowY:u,display:c}=N(t);return/auto|scroll|overlay|hidden|clip/.test(n+u+o)&&'inline'!==c&&'contents'!==c}function p(t){return/^(table|td|th)$/.test(n(t))}function y(t){try{if(t.matches(':popover-open'))return!0}catch(t){}try{return t.matches(':modal')}catch(t){return!1}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getComputedStyle",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"getContainingBlock",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"getDocumentElement",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getFrameElement",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"getNearestOverflowAncestor",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getNodeName",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getNodeScroll",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getOverflowAncestors",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"getParentNode",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"getWindow",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isContainingBlock",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isHTMLElement",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isLastTraversableNode",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isOverflowElement",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isShadowRoot",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isTableElement",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isTopLayer",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isWebKit",{enumerable:!0,get:function(){return S}});const w=/transform|translate|scale|rotate|perspective|filter/,O=/paint|layout|strict|content/,P=t=>!!t&&'none'!==t;let j;function v(t){const n=l(t)?N(t):t;return P(n.transform)||P(n.translate)||P(n.scale)||P(n.rotate)||P(n.perspective)||!S()&&(P(n.backdropFilter)||P(n.filter))||w.test(n.willChange||'')||O.test(n.contain||'')}function h(t){let n=L(t);for(;f(n)&&!E(n);){if(v(n))return n;if(y(n))return null;n=L(n)}return null}function S(){return null==j&&(j='undefined'!=typeof CSS&&CSS.supports&&CSS.supports('-webkit-backdrop-filter','none')),j}function E(t){return/^(html|body|#document)$/.test(n(t))}function N(t){return o(t).getComputedStyle(t)}function C(t){return l(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function L(t){if('html'===n(t))return t;const o=t.assignedSlot||t.parentNode||s(t)&&t.host||u(t);return s(o)?o.host:o}function T(t){const n=L(t);return E(n)?(t.ownerDocument||t).body:f(n)&&b(n)?n:T(n)}function k(t,n,u){var c;void 0===n&&(n=[]),void 0===u&&(u=!0);const l=T(t),f=l===(null==(c=t.ownerDocument)?void 0:c.body),s=o(l);if(f){const t=D(s);return n.concat(s,s.visualViewport||[],b(l)?l:[],t&&u?k(t):[])}return n.concat(l,k(l,[],u))}function D(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}},236,[]);
293
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["children","width","height"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Arrow",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return f}});var t,n=r(_d[0]),o=(t=n)&&t.__esModule?t:{default:t},u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),c=r(_d[2]),d=r(_d[3]),s=u.forwardRef((t,n)=>{const{children:u,width:s=10,height:f=5}=t,l=(0,o.default)(t,e);return(0,d.jsx)(c.Primitive.svg,Object.assign({},l,{ref:n,width:s,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?u:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})}))});s.displayName="Arrow";var f=s},237,[131,38,179,151]);
294
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useSize",{enumerable:!0,get:function(){return n}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]);function n(n){const[o,f]=e.useState(void 0);return(0,t.useLayoutEffect)(()=>{if(n){f({width:n.offsetWidth,height:n.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const t=e[0];let o,u;if("borderBoxSize"in t){const e=t.borderBoxSize,n=Array.isArray(e)?e[0]:e;o=n.inlineSize,u=n.blockSize}else o=n.offsetWidth,u=n.offsetHeight;f({width:o,height:u})});return e.observe(n,{box:"border-box"}),()=>e.unobserve(n)}f(void 0)},[n]),o}},238,[38,175]);
295
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"],t=["__scopeRovingFocusGroup","focusable","active","tabStopId","children"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Item",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"RovingFocusGroup",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"RovingFocusGroupItem",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"createRovingFocusGroupScope",{enumerable:!0,get:function(){return O}});var o,n=r(_d[0]),u=(o=n)&&o.__esModule?o:{default:o},c=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[1])),s=r(_d[2]),l=r(_d[3]),f=r(_d[4]),d=r(_d[5]),p=r(_d[6]),v=r(_d[7]),b=r(_d[8]),y=r(_d[9]),F=r(_d[10]),I=r(_d[11]),w=r(_d[12]),R=r(_d[13]),S="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},E="RovingFocusGroup",[j,_,T]=(0,l.createCollection)(E),[C,O]=(0,d.createContextScope)(E,[T]),[P,x]=C(E),A=c.forwardRef((e,t)=>(0,R.jsx)(j.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,R.jsx)(j.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,R.jsx)(D,Object.assign({},e,{ref:t}))})}));A.displayName=E;var D=c.forwardRef((t,o)=>{const{__scopeRovingFocusGroup:n,orientation:l,loop:d=!1,dir:p,currentTabStopId:I,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:T,preventScrollOnEntryFocus:C=!1}=t,O=(0,u.default)(t,e),x=c.useRef(null),A=(0,f.useComposedRefs)(o,x),D=(0,F.useDirection)(p),[G,k]=(0,y.useControllableState)({prop:I,defaultProp:w??null,onChange:j,caller:E}),[H,K]=c.useState(!1),L=(0,b.useCallbackRef)(T),B=_(n),U=c.useRef(!1),[N,z]=c.useState(0);return c.useEffect(()=>{const e=x.current;if(e)return e.addEventListener(S,L),()=>e.removeEventListener(S,L)},[L]),(0,R.jsx)(P,{scope:n,orientation:l,dir:D,loop:d,currentTabStopId:G,onItemFocus:c.useCallback(e=>k(e),[k]),onItemShiftTab:c.useCallback(()=>K(!0),[]),onFocusableItemAdd:c.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:c.useCallback(()=>z(e=>e-1),[]),children:(0,R.jsx)(v.Primitive.div,Object.assign({tabIndex:H||0===N?-1:0,"data-orientation":l},O,{ref:A,style:Object.assign({outline:"none"},t.style),onMouseDown:(0,s.composeEventHandlers)(t.onMouseDown,()=>{U.current=!0}),onFocus:(0,s.composeEventHandlers)(t.onFocus,e=>{const t=!U.current;if(e.target===e.currentTarget&&t&&!H){const t=new CustomEvent(S,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=B().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===G),...e].filter(Boolean).map(e=>e.ref.current),C)}}U.current=!1}),onBlur:(0,s.composeEventHandlers)(t.onBlur,()=>K(!1))}))})}),G="RovingFocusGroupItem",k=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,focusable:l=!0,active:f=!1,tabStopId:d,children:b}=e,y=(0,u.default)(e,t),F=(0,p.useId)(),S=d||F,h=x(G,n),E=h.currentTabStopId===S,T=_(n),{onFocusableItemAdd:C,onFocusableItemRemove:O,currentTabStopId:P}=h,A=(0,w.useIsHydrated)();return(0,I.useLayoutEffect)(()=>{if(A&&l)return C(),()=>O()},[A,l,C,O]),c.useEffect(()=>{if(!A&&l)return C(),()=>O()},[A,l,C,O]),(0,R.jsx)(j.ItemSlot,{scope:n,id:S,focusable:l,active:f,children:(0,R.jsx)(v.Primitive.span,Object.assign({tabIndex:E?0:-1,"data-orientation":h.orientation},y,{ref:o,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{l?h.onItemFocus(S):e.preventDefault()}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(S)),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=L(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let u=T().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)u.reverse();else if("prev"===t||"next"===t){"prev"===t&&u.reverse();const c=u.indexOf(e.currentTarget);u=h.loop?(n=c+1,(o=u).map((e,t)=>o[(n+t)%o.length])):u.slice(c+1)}setTimeout(()=>M(u))}var o,n}),children:"function"==typeof b?b({isCurrentTabStop:E,hasTabStop:null!=P}):b}))})});k.displayName=G;var H={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function K(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function L(e,t,o){const n=K(e.key,o);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return H[n]}function M(e,t=!1){const o=document.activeElement;for(const n of e){if(n===o)return;if(n.focus({preventScroll:t}),document.activeElement!==o)return}}var B=A,U=k},239,[131,38,171,229,172,173,174,179,181,176,230,175,240,151]);
296
- __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useIsHydrated",{enumerable:!0,get:function(){return o}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=!1;var n=e[" useSyncExternalStore ".trim().toString()];function u(){return()=>{}}var o="function"==typeof n?function(){return n(u,()=>!0,()=>!1)}:function(){const[n,u]=e.useState(t);return e.useEffect(()=>{t||(t=!0,u(!0))},[]),n}},240,[38]);
297
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["label","description","Icon","rightSlot","disabled","destructive","onSelect","preventAutoClose"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.DropdownItem=function(t){let{label:s,description:x,Icon:u,rightSlot:f,disabled:p,destructive:v,onSelect:h,preventAutoClose:j}=t,b=(0,l.default)(t,e);return(0,n.jsx)(c.Item,Object.assign({"aria-disabled":p,className:(0,o.cx)('relative z-40 flex cursor-pointer items-center justify-between rounded-lg p-2 transition select-none','hocus:bg-hover','hover:outline-0',!p&&'active:scale-98',p&&'cursor-default opacity-60 hocus:bg-default'),onSelect:e=>{p?e.preventDefault():(j&&e.preventDefault(),h?.(e))}},b,{children:(0,n.jsxs)("div",{className:"flex flex-1 flex-col gap-0.5",children:[(0,n.jsxs)("div",{className:(0,o.cx)('flex items-center justify-between',p&&'pointer-events-none'),children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[u&&(0,n.jsx)("span",{className:(0,o.cx)('flex',v?'text-icon-danger':'text-icon-default'),children:(0,n.jsx)(u,{size:16})}),'string'==typeof s?(0,n.jsx)("p",{className:(0,o.cx)(v?'text-danger':'text-default','text-sm font-medium'),children:s}):s]}),'string'==typeof f?(0,n.jsx)("p",{className:"text-xs text-secondary",children:f}):f]}),x&&'string'==typeof x?(0,n.jsx)("p",{className:"text-xs leading-4.5 text-tertiary",children:x}):null,x&&'string'!=typeof x?x:null]})}))};var t,s=r(d[0]),l=(t=s)&&t.__esModule?t:{default:t},n=r(d[1]),c=r(d[2]),o=r(d[3])},241,[131,151,227,224]);
298
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Logo=function({style:c}){return(0,l.jsx)("svg",{viewBox:"0 0 71 20",width:72,height:20,fill:"none",role:"img","aria-label":"Expo",style:Object.assign({color:t.text.default,userSelect:'none',WebkitUserSelect:'none',flexShrink:0},c),children:(0,l.jsx)("path",{d:"M9.258 6.342c.158-.23.331-.26.472-.26.14 0 .374.03.532.26 2.06 2.806 6.332 10.208 6.727 10.611.585.597 1.388.225 1.854-.452.46-.667.587-1.135.587-1.634 0-.34-6.653-12.614-7.324-13.636C11.462.248 11.252 0 10.15 0h-.825c-1.1 0-1.259.248-1.903 1.23C6.75 2.254.097 14.528.097 14.868c0 .5.127.967.587 1.634.466.677 1.269 1.05 1.854.452.395-.403 4.661-7.805 6.72-10.61zm14.941-5.237v15.344h9.35v-3.113h-6.125v-3.244h5.45V6.98h-5.45V4.218h6.125V1.105h-9.35zM46.25 16.449l-3.88-5.568 3.619-5.195h-3.662L40.54 8.23l-1.765-2.543h-3.706l3.618 5.217-3.857 5.546h3.661l2.027-2.915 2.027 2.915h3.705zm7.572-10.982c-1.482 0-2.637.614-3.378 1.732V5.686H47.37V20h3.073v-5.063c.74 1.117 1.896 1.731 3.378 1.731 2.768 0 4.97-2.52 4.97-5.611 0-3.091-2.202-5.59-4.97-5.59zm-.697 8.242c-1.504 0-2.681-1.14-2.681-2.652 0-1.49 1.177-2.653 2.68-2.653 1.483 0 2.681 1.184 2.681 2.653 0 1.49-1.198 2.652-2.68 2.652zm12.188-8.242c-3.16 0-5.558 2.411-5.558 5.612 0 3.2 2.397 5.59 5.557 5.59 3.139 0 5.558-2.39 5.558-5.59 0-3.2-2.42-5.612-5.558-5.612zm0 2.96c1.438 0 2.55 1.117 2.55 2.652 0 1.49-1.112 2.63-2.55 2.63-1.46 0-2.55-1.14-2.55-2.63 0-1.535 1.09-2.653 2.55-2.653z",fill:"currentColor"})})};var l=r(d[0]),t=r(d[1])},242,[151,166]);
299
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ResizeHandle=function({side:s,offset:c,onResize:u,onResizeStart:l,onResizeEnd:f}){const[p,b]=(0,n.useState)(!1),[P,y]=(0,n.useState)(!1),v=(0,n.useRef)(0),z=(0,n.useRef)(!1);function R(t){z.current&&(z.current=!1,y(!1),t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId),f?.())}const h=p||P;return(0,t.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",onPointerDown:function(t){0===t.button&&(t.preventDefault(),v.current=t.clientX,z.current=!0,y(!0),t.currentTarget.setPointerCapture(t.pointerId),l?.())},onPointerMove:function(t){if(!z.current)return;const n=t.clientX-v.current;u('left'===s?n:-n)},onPointerUp:R,onPointerCancel:R,onPointerEnter:()=>b(!0),onPointerLeave:()=>b(!1),style:{position:'absolute',top:0,bottom:0,[s]:c,transform:'left'===s?'translateX(-50%)':'translateX(50%)',width:12,display:'flex',alignItems:'center',justifyContent:'center',boxSizing:'border-box',cursor:'col-resize',touchAction:'none',zIndex:5},children:(0,t.jsx)("div",{style:{width:4,height:40,borderRadius:999,backgroundColor:P?o.icon.secondary:o.icon.tertiary,opacity:h?1:0,transition:'opacity 120ms ease, background-color 120ms ease'}})})};var t=r(d[0]),n=r(d[1]),o=r(d[2])},243,[151,38,166]);
300
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarToggle=function({onClick:l,floating:u=!1,side:c="left"}){const[b,f]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),y=u?{width:40,height:40,borderRadius:t.radius.lg,border:'none',backgroundColor:b?t.bg.element:'transparent'}:{width:32,height:32,borderRadius:t.radius.md,border:'none',backgroundColor:b?t.bg.element:'transparent'};return(0,o.jsx)("button",{type:"button","aria-label":"Toggle sidebar",onClick:l,onMouseEnter:()=>f(!0),onMouseLeave:()=>{f(!1),p(!1)},onMouseDown:()=>p(!0),onMouseUp:()=>p(!1),style:Object.assign({display:'flex',alignItems:'center',justifyContent:'center',padding:0,cursor:'pointer',boxSizing:'border-box',transition:'background-color 150ms ease, transform 100ms ease',transform:h?'scale(0.98)':void 0},y),children:(0,o.jsx)(s.SidebarIcon,{size:20,color:t.icon.default,style:'right'===c?{transform:'scaleX(-1)'}:void 0})})};var o=r(d[0]),n=r(d[1]),t=r(d[2]),s=r(d[3])},244,[151,38,166,225]);
301
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Switch=function({checked:s,onChange:l,label:c}){const[u,b]=(0,n.useState)(!1),[h,x]=(0,n.useState)(!1),f={display:'flex',alignItems:'center',justifyContent:'center',width:32,height:32,boxSizing:'border-box',borderRadius:o.radius.full,border:`1px solid ${o.border.default}`,backgroundColor:u?o.bg.element:'transparent',transition:'background-color 150ms ease, transform 100ms ease',transform:h?'scale(0.98)':void 0};return(0,t.jsxs)("button",{type:"button",role:"switch","aria-checked":s,"aria-label":c,onClick:()=>l?.(!s),onMouseEnter:()=>b(!0),onMouseLeave:()=>{b(!1),x(!1)},onMouseDown:()=>x(!0),onMouseUp:()=>x(!1),style:{display:'flex',flexDirection:'column',alignItems:'center',gap:6,padding:0,border:'none',background:'none',cursor:'pointer',fontFamily:'inherit'},children:[(0,t.jsx)("span",{style:f,children:(0,t.jsx)("span",{style:{width:16,height:16,borderRadius:o.radius.full,backgroundColor:o.text.default}})}),c&&(0,t.jsx)("span",{style:Object.assign({},o.textSize['2xs'],{color:o.text.secondary,textAlign:'center'}),children:c})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2])},245,[151,38,166]);
302
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Sidebar=function({simulators:n,emulators:s,recentSimulators:c,recentEmulators:u,simulatorOptions:p,emulatorOptions:x,selectedId:b,onSelect:v,onAddDevice:h,onToggle:S,width:f=400}){return(0,t.jsxs)("aside",{style:{display:'flex',flexDirection:'column',gap:32,width:`min(${f}px, 100vw)`,flexShrink:0,height:'100vh',boxSizing:'border-box',padding:'32px 24px 32px 48px',overflow:'hidden'},children:[(0,t.jsxs)("div",{style:{display:'flex',alignItems:'center',justifyContent:'space-between',gap:8},children:[(0,t.jsx)(o.Logo,{}),S&&(0,t.jsx)(o.SidebarToggle,{onClick:S})]}),(0,t.jsx)(l.DeviceSection,{title:"Simulators",addLabel:"Add simulator",kind:"simulator",emptyLabel:"No booted simulators. Use the + button to add one.",devices:n,recent:c,options:p,selectedId:b,onSelect:v,onAdd:h}),(0,t.jsx)(l.DeviceSection,{title:"Emulators",addLabel:"Add emulator",kind:"emulator",emptyLabel:"No booted emulators or devices. Use the + button to add one.",devices:s,recent:u,options:x,selectedId:b,onSelect:v,onAdd:h})]})};var t=r(d[0]),o=r(d[1]),l=r(d[2])},246,[151,247,248]);
303
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var c=r(d[2]);Object.keys(c).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var o=r(d[3]);Object.keys(o).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var u=r(d[4]);Object.keys(u).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var f=r(d[5]);Object.keys(f).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})});var l=r(d[6]);Object.keys(l).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})});var b=r(d[7]);Object.keys(b).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}})});var p=r(d[8]);Object.keys(p).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}})});var y=r(d[9]);Object.keys(y).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}})});var O=r(d[10]);Object.keys(O).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return O[t]}})});var j=r(d[11]);Object.keys(j).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}})});var s=r(d[12]);Object.keys(s).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})})},247,[165,167,168,169,226,241,242,243,244,245,224,225,166]);
304
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceSection=function({title:l,addLabel:c,kind:u,emptyLabel:p,devices:b,recent:x,options:y,selectedId:f,onSelect:v,onAdd:h}){const[j,k]=(0,t.useState)(!1),[S,C]=(0,t.useState)(!1),[M,D]=(0,t.useState)(!1),I=new Set(b.map(s=>s.id)),L=x.filter(s=>!I.has(s.id));return(0,s.jsxs)("section",{style:{display:'grid',gap:12},children:[(0,s.jsxs)("div",{style:{display:'flex',alignItems:'center',gap:8},children:[(0,s.jsx)("span",{style:Object.assign({},n.textSize.sm,{fontWeight:500,color:n.text.default}),children:l}),!!h&&(0,s.jsx)("button",{type:"button","aria-label":c,onClick:()=>D(!0),onMouseEnter:()=>k(!0),onMouseLeave:()=>{k(!1),C(!1)},onMouseDown:()=>C(!0),onMouseUp:()=>C(!1),style:{display:'flex',alignItems:'center',justifyContent:'center',width:26,height:26,padding:0,borderRadius:n.radius.full,border:`1px solid ${n.border.default}`,backgroundColor:j?n.bg.hover:n.bg.default,cursor:'pointer',transition:'background-color 150ms ease, transform 100ms ease',transform:S?'scale(0.98)':void 0},children:(0,s.jsx)(n.PlusIcon,{size:18,color:n.icon.secondary})})]}),(0,s.jsx)("div",{style:{display:'grid',gap:6},children:0===b.length?(0,s.jsx)("p",{style:Object.assign({},n.textSize.sm,{color:n.text.secondary,margin:0,padding:'12px 16px',borderRadius:n.radius.xl,border:`1px dashed ${n.border.default}`,backgroundColor:n.bg.default}),children:p}):b.map(t=>(0,s.jsx)(n.DeviceListItem,{name:t.name,version:t.version,selected:t.id===f,onClick:()=>v(t.id)},t.id))}),(0,s.jsx)(o.RecentDevicesModal,{open:M,onClose:()=>D(!1),kind:u,devices:L,options:y,onAdd:h||(async()=>({ok:!1,error:'Device actions are unavailable.'}))})]})};var s=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3])},248,[151,38,247,249]);
305
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RecentDevicesModal=function({open:h,onClose:f,kind:b,devices:y,options:v,onAdd:j}){const w='simulator'===b?'ios':'android',S=b,$=`Add a${'emulator'===b?'n':''} ${S}`,C=(0,t.useMemo)(()=>[...y].sort((n,t)=>(t.lastUsedAt??0)-(n.lastUsedAt??0)),[y]),[k,z]=(0,t.useState)({kind:'new'}),[A,D]=(0,t.useState)(''),[F,M]=(0,t.useState)(''),[_,R]=(0,t.useState)(''),[B,I]=(0,t.useState)(!1),[N,T]=(0,t.useState)(!1),[E,O]=(0,t.useState)(!1),[U,W]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(!h)return;const n=v.runtimes[0],t=n?.models[0];D(n?.value??''),M(t?.value??''),R(x(t?.label??'',C,w)),I(!1),T(!1),O(!1),W(null),z(C.length?{kind:'recent',id:C[0].id}:{kind:'new'})},[h,v]);const Z='new'===k.kind,H='recent'===k.kind?C.find(n=>n.id===k.id):void 0,q=v.runtimes.find(n=>n.value===A),L=q?.models??[],P=L.find(n=>n.value===F),V=()=>{z({kind:'new'}),W(null)};const Y=_.trim(),G=Y.length>0&&('android'!==w||l.test(Y)),J='android'===w&&B&&Y.length>0&&!l.test(Y),K=`new-${w}-device-name-hint`,Q=Z?G&&A.length>0&&F.length>0:!!H;return(0,n.jsx)(o.DialogRoot,{open:h,onOpenChange:n=>{n||f()},children:(0,n.jsxs)(o.DialogContent,{children:[(0,n.jsx)(o.DialogTitle,{title:$}),(0,n.jsxs)("form",{onSubmit:async function(n){if(n.preventDefault(),Q&&!E){O(!0),W(null);try{const n=Z&&q&&P?{kind:'new',device:{platform:w,name:Y,runtime:q.value,deviceType:P.value,version:q.label}}:{kind:'recent',device:H},t=await j(n);t.ok?f():W(t.error)}catch(n){W(n instanceof Error?n.message:String(n))}finally{O(!1)}}},children:[(0,n.jsxs)(o.DialogContentContainer,{children:[(0,n.jsx)(s,{children:"Recents"}),(0,n.jsx)("div",{style:{display:'flex',flexDirection:'column',gap:3},children:0===C.length?(0,n.jsxs)("p",{style:{margin:0,padding:'2px 2px 6px 2px',fontSize:13,color:o.text.tertiary},children:["No recent ",S,"s."]}):C.map(t=>(0,n.jsx)(c,{device:t,selected:'recent'===k.kind&&k.id===t.id,onSelect:()=>{z({kind:'recent',id:t.id}),W(null)}},t.id))}),(0,n.jsxs)("div",{style:{marginTop:10},children:[(0,n.jsxs)(s,{active:Z,children:["New ",S]}),(0,n.jsx)("div",{onClick:V,style:{borderRadius:o.radius.lg,overflow:'hidden',backgroundColor:o.bg.subtle,border:`1px solid ${Z?o.border.default:o.border.secondary}`,transition:'border-color 150ms ease'},children:0===v.runtimes.length?(0,n.jsxs)("p",{style:{margin:0,padding:13,color:o.text.tertiary,fontSize:13},children:["No usable ",'ios'===w?'iOS runtimes':'Android system images'," were found on this host."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Name"}),'android'===w&&(0,n.jsx)("span",{id:K,style:{color:J?o.text.danger:o.text.tertiary,fontSize:11,lineHeight:1.3},children:a})]}),htmlFor:`new-${w}-device-name`,last:!1,children:(0,n.jsx)("div",{style:{flex:'0 0 58%'},children:(0,n.jsx)("input",{id:`new-${w}-device-name`,type:"text",value:_,placeholder:P?.label||`New ${S}`,autoComplete:"off",spellCheck:!1,pattern:'android'===w?'[A-Za-z0-9._-]+':void 0,title:'android'===w?a:void 0,"aria-invalid":!!J||void 0,"aria-describedby":'android'===w?K:void 0,disabled:E,onChange:n=>{return t=n.currentTarget.value,R(t),I(!0),void V();var t},onFocus:()=>{T(!0),V()},onBlur:()=>T(!1),style:{width:'100%',boxSizing:'border-box',padding:'6px 10px',border:`1px solid ${J?o.border.danger:o.border.default}`,borderRadius:o.radius.md,backgroundColor:o.bg.default,color:Z?o.text.default:o.text.tertiary,caretColor:o.text.default,fontSize:16,fontFamily:'inherit',outline:'none',boxShadow:N?`0 0 0 3px ${o.bg.element}`:'none'}})})}),(0,n.jsx)(u,{label:"OS version",htmlFor:`new-${w}-runtime`,last:!1,children:(0,n.jsx)(p,{id:`new-${w}-runtime`,value:A,options:v.runtimes,disabled:E,onChange:function(n){const t=v.runtimes.find(t=>t.value===n),o=t?.models[0];D(n),M(o?.value??''),V(),B||R(x(o?.label??'',C,w))},onActivate:V,trailing:(0,n.jsx)(o.ChevronDownIcon,{size:14,color:o.icon.secondary})})}),(0,n.jsx)(u,{label:"Model",htmlFor:`new-${w}-model`,last:!0,children:(0,n.jsx)(p,{id:`new-${w}-model`,value:F,options:L,disabled:E,onChange:function(n){M(n),V();const t=L.find(t=>t.value===n);B||R(x(t?.label??'',C,w))},onActivate:V,trailing:(0,n.jsx)(o.ChevronsUpDownIcon,{size:14,color:o.icon.secondary})})})]})})]}),U&&(0,n.jsx)("p",{role:"alert",style:{margin:'12px 0 0',padding:'9px 11px',border:`1px solid ${o.border.danger}`,borderRadius:o.radius.lg,backgroundColor:o.bg.danger,color:o.text.danger,fontSize:13,whiteSpace:'pre-wrap'},children:U})]}),(0,n.jsxs)(o.DialogFooter,{children:[(0,n.jsx)(o.Button,{type:"button",theme:"quaternary",disabled:E,onClick:f,children:"Cancel"}),(0,n.jsx)(o.Button,{type:"submit",theme:"primary",disabled:!Q||E,children:E?Z?'Creating\u2026':'Booting\u2026':Z?'Create & Boot':'Boot'})]})]})]})})};var n=r(d[0]),t=r(d[1]),o=r(d[2]);const l=/^[A-Za-z0-9._-]+$/,a='Allowed: a-z A-Z 0-9 . _ -';function s({children:t,active:l=!1}){return(0,n.jsx)("span",{style:{display:'block',marginBottom:4,fontFamily:o.font.mono,fontSize:11,fontWeight:l?600:400,letterSpacing:'0.06em',textTransform:'uppercase',color:l?o.text.default:o.text.tertiary},children:t})}function c({device:l,selected:a,onSelect:s}){const[c,u]=(0,t.useState)(!1);return(0,n.jsxs)("button",{type:"button","aria-pressed":a,onClick:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{display:'flex',alignItems:'center',gap:12,width:'100%',padding:'9px 11px',border:'none',borderRadius:o.radius.lg,textAlign:'left',fontFamily:'inherit',cursor:'pointer',backgroundColor:a?o.bg.hover:c?o.bg.element:'transparent',transition:'background-color 150ms ease'},children:[(0,n.jsx)("span",{style:{display:'flex',alignItems:'center',justifyContent:'center',width:31,height:31,flex:'0 0 auto',borderRadius:o.radius.lg,backgroundColor:o.bg.element,color:a?o.text.default:o.icon.default},children:a?(0,n.jsx)(o.CheckIcon,{size:16}):(0,n.jsx)(o.SmartphoneIcon,{size:16})}),(0,n.jsxs)("span",{style:{display:'flex',flexDirection:'column',gap:2,minWidth:0},children:[(0,n.jsx)("span",{style:{fontSize:14,fontWeight:a?600:500,color:o.text.default,lineHeight:1.25},children:l.name}),(0,n.jsxs)("span",{style:{display:'flex',alignItems:'center',gap:6,fontSize:12,color:o.text.tertiary,lineHeight:1.25},children:[(0,n.jsx)("span",{style:{width:6,height:6,flex:'0 0 auto',borderRadius:'50%',backgroundColor:l.booted?o.icon.success:o.icon.quaternary}}),l.booted?'Booted \xb7 now':h(l.lastUsedAt)]})]}),(0,n.jsx)("span",{style:{marginLeft:'auto',flex:'0 0 auto',fontSize:11,color:o.text.secondary,backgroundColor:o.bg.element,borderRadius:o.radius.full,padding:'3px 9px',fontVariantNumeric:'tabular-nums',whiteSpace:'nowrap'},children:l.version})]})}function u({label:t,htmlFor:l,last:a,children:s}){return(0,n.jsxs)("div",{style:{display:'flex',alignItems:'center',justifyContent:'space-between',gap:12,padding:'11px 13px',borderBottom:a?void 0:`1px solid ${o.border.secondary}`},children:[(0,n.jsx)("label",{htmlFor:l,style:{display:'flex',flexDirection:'column',gap:2,fontSize:13,color:o.text.secondary,cursor:'pointer'},children:t}),s]})}function p({id:l,value:a,options:s,disabled:c,onChange:u,onActivate:p,trailing:x}){const[h,f]=(0,t.useState)(!1),b={width:'100%',boxSizing:'border-box',padding:'6px 28px 6px 10px',border:`1px solid ${o.border.default}`,borderRadius:o.radius.md,backgroundColor:o.bg.default,color:o.text.default,fontSize:16,fontFamily:'inherit',appearance:'none',WebkitAppearance:'none',MozAppearance:'none',outline:'none',cursor:'pointer',boxShadow:h?`0 0 0 3px ${o.bg.element}`:'none'};return(0,n.jsxs)("div",{style:{position:'relative',flex:'0 0 58%'},children:[(0,n.jsx)("select",{id:l,value:a,disabled:c,onChange:n=>u(n.currentTarget.value),onMouseDown:p,onFocus:()=>{f(!0),p()},onBlur:()=>f(!1),style:b,children:0===s.length?(0,n.jsx)("option",{value:"",children:"\u2014"}):s.map(t=>(0,n.jsx)("option",{value:t.value,children:t.label},t.value))}),(0,n.jsx)("span",{style:{position:'absolute',right:10,top:'50%',transform:'translateY(-50%)',pointerEvents:'none',display:'flex',color:o.icon.secondary},children:x})]})}function x(n,t,o){const l='android'===o?n.trim().replace(/[^A-Za-z0-9._-]+/g,'_').replace(/^_+|_+$/g,''):n;if(!l)return'';const a=new Set(t.map(n=>n.name));if(!a.has(l))return l;let s=2;const c='android'===o?'_':' ';for(;a.has(`${l}${c}${s}`);)s++;return`${l}${c}${s}`}function h(n){if(!n)return'Idle';const t=Date.now()-n,o=Math.round(t/6e4);if(o<1)return'now';if(o<60)return`${o}m ago`;const l=Math.round(o/60);if(l<24)return`${l}h ago`;const a=Math.round(l/24);if(a<7)return`${a} day${1===a?'':'s'} ago`;const s=Math.round(a/7);if(s<5)return`${s} week${1===s?'':'s'} ago`;const c=Math.round(a/30);return`${c} month${1===c?'':'s'} ago`}},249,[151,38,247]);
306
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogSidebar=function({onToggle:s,client:x,width:c=400}){return(0,t.jsxs)("aside",{style:{display:'flex',flexDirection:'column',gap:32,width:`min(${c}px, 100vw)`,flexShrink:0,height:'100vh',boxSizing:'border-box',padding:'32px 48px 32px 24px',overflow:'hidden'},children:[s&&(0,t.jsx)("div",{style:{display:'flex',alignItems:'center',justifyContent:'flex-start'},children:(0,t.jsx)(n.SidebarToggle,{side:"right",onClick:s})}),(0,t.jsx)(l.CurrentAppSection,{client:x}),(0,t.jsx)(o.OutputSection,{client:x})]})};var t=r(d[0]),n=r(d[1]),l=r(d[2]),o=r(d[3])},250,[151,247,251,252]);
307
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.CurrentAppSection=function({client:x}){const p=x?.foregroundApp??null,h=p?p.label??p.id:null,b=p?[p.version?{label:'Version',value:p.version}:null,p.build?{label:'Build Number',value:p.build}:null,null!=p.pid?{label:'PID',value:String(p.pid)}:null,p.label?{label:'App ID',value:p.id}:null,p.minOS?{label:'Minimum iOS',value:p.minOS}:null!=p.minSdk?{label:'Minimum SDK',value:String(p.minSdk)}:null].filter(l=>null!=l):[];return(0,l.jsxs)("section",{style:{display:'flex',flexDirection:'column',gap:16},children:[(0,l.jsxs)("div",{style:{display:'flex',alignItems:'center',justifyContent:'space-between',gap:8,minHeight:n},children:[(0,l.jsx)("span",{style:Object.assign({},t.textSize.sm,{fontWeight:500,color:t.text.default}),children:"Current app"}),(0,l.jsx)(o,{iconDataUrl:p?.iconDataUrl})]}),(0,l.jsx)("div",{style:{minHeight:s,minWidth:0},children:p&&h?(0,l.jsxs)("div",{style:{display:'flex',flexDirection:'column',gap:2,minWidth:0},children:[(0,l.jsxs)("div",{style:{display:'flex',alignItems:'center',gap:8,minWidth:0},children:[(0,l.jsx)("span",{title:h,style:Object.assign({},t.textSize.sm,{fontWeight:500,color:t.text.default,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap'}),children:h}),p.isReactNative&&(0,l.jsx)(u,{color:"info",children:"React Native"}),p.debuggable&&(0,l.jsx)(u,{color:"warning",children:"debuggable"})]}),b.map(t=>(0,l.jsx)(c,{detail:t},t.label))]}):(0,l.jsx)("span",{style:Object.assign({},t.textSize.xs,{fontWeight:500,color:t.text.tertiary}),children:"No foreground app detected yet."})})]})};var l=r(d[0]),t=r(d[1]);const n=32,s=129;function o({iconDataUrl:s}){return(0,l.jsx)("span",{"aria-hidden":"true",style:{display:'block',width:n,height:n,flexShrink:0},children:s&&(0,l.jsx)("img",{src:s,alt:"",width:n,height:n,style:{display:'block',borderRadius:t.radius.md}})})}function c({detail:n}){const s=`${n.label} ${n.value}`;return(0,l.jsx)("span",{title:s,style:Object.assign({},t.textSize.xs,{color:t.text.secondary,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap',fontVariantNumeric:'tabular-nums'}),children:s})}function u({color:n,children:s}){return(0,l.jsx)("span",{style:Object.assign({},t.textSize['2xs'],{color:t.text[n],background:t.bg[n],borderRadius:t.radius.full,padding:'0 8px',flexShrink:0}),children:s})}},251,[151,247]);
308
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.OutputSection=function({client:l}){const c=l?.logs,h=l?.logsEnabled??!1;return(0,t.jsxs)("section",{style:{display:'flex',flexDirection:'column',gap:16,flex:1,minHeight:0},children:[(0,t.jsx)("span",{style:Object.assign({},s.textSize.sm,{fontWeight:500,color:s.text.default}),children:"Logs"}),(0,t.jsx)(o.LogControls,{enabled:h,hasLogs:(c?.length??0)>0,onAttach:()=>l?.attachLogs(),onDetach:()=>l?.detachLogs(),onClear:()=>l?.clearLogs()}),(0,t.jsx)(n.LogList,{logs:c,enabled:h})]})};var t=r(d[0]),s=r(d[1]),o=r(d[2]),n=r(d[3])},252,[151,247,253,254]);
309
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogControls=function({enabled:n,hasLogs:l,onAttach:o,onDetach:c,onClear:h}){return(0,t.jsxs)("div",{style:{display:'flex',gap:8},children:[(0,t.jsx)(s.Button,{size:"2xs",theme:"secondary",disabled:n,onClick:o,children:"Attach"}),(0,t.jsx)(s.Button,{size:"2xs",theme:"secondary",disabled:!n,onClick:c,children:"Detach"}),(0,t.jsx)(s.Button,{size:"2xs",theme:"tertiary",disabled:!l,onClick:h,children:"Clear"})]})};var t=r(d[0]),s=r(d[1])},253,[151,247]);
310
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogList=function({logs:b=[],enabled:u=!1}){const h=(0,l.useRef)(null);(0,l.useEffect)(()=>{const o=h.current;o&&(o.scrollTop=o.scrollHeight)},[b]);const p=u?'Waiting for device logs\u2026':'Logs are paused. Press Attach to stream device logs.';return(0,o.jsxs)("div",{ref:h,className:"hub-log-scroll",style:c,children:[(0,o.jsx)("style",{children:s}),0===b.length?(0,o.jsx)("span",{style:Object.assign({},n.textSize.xs,{fontWeight:500,color:n.text.tertiary,paddingLeft:8}),children:p}):b.map(l=>(0,o.jsx)(t.LogRow,{entry:l},l.id))]})};var o=r(d[0]),l=r(d[1]),n=r(d[2]),t=r(d[3]);const s="\n.hub-log-scroll::-webkit-scrollbar { width: 12px; }\n.hub-log-scroll::-webkit-scrollbar-track { background: transparent; }\n.hub-log-scroll::-webkit-scrollbar-thumb {\n background-color: var(--expo-theme-background-selected);\n border-radius: 8px;\n border: 3px solid transparent;\n background-clip: padding-box;\n min-height: 24px;\n}\n.hub-log-scroll::-webkit-scrollbar-thumb:hover {\n background-color: var(--expo-theme-border-default);\n}\n",c={flex:1,minHeight:0,overflowY:'auto',overflowX:'hidden',display:'flex',flexDirection:'column',gap:8,margin:'0 -8px',padding:'0 8px',overflowAnchor:'none'}},254,[151,38,247,255]);
311
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogRow=function({entry:s}){const[l,c]=(0,n.useState)(!1);return(0,t.jsxs)("div",{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:{display:'flex',alignItems:'flex-start',gap:8,padding:'4px 8px',margin:'0 -8px',borderRadius:o.radius.md,backgroundColor:l?o.bg.element:'transparent',transition:'background-color 150ms ease'},children:[(0,t.jsx)("span",{style:{display:'flex',alignItems:'center',padding:4,borderRadius:o.radius.sm,backgroundColor:o.bg.element,fontFamily:o.font.mono,fontSize:10,lineHeight:1,letterSpacing:'-0.02em',color:o.text.tertiary,flexShrink:0},children:s.source}),(0,t.jsx)("span",{style:{flex:1,minWidth:0,fontSize:12,fontWeight:500,lineHeight:1.6,color:o.text.tertiary,overflowWrap:'anywhere'},children:s.message})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2])},255,[151,38,247]);
312
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamPanel=function({device:s,client:p,DeviceScreen:u,displayScreen:f,onShutdown:h,onRemove:b,framed:S=!0}){return(0,n.jsxs)("section",{style:{flex:1,minWidth:0,display:'flex',flexDirection:'column',alignItems:'center',justifyContent:'center',gap:40,padding:40,margin:S?'16px 8px':0,boxSizing:'border-box',backgroundColor:o.bg.default,border:S?`1px solid ${o.border.secondary}`:'none',borderRadius:S?o.radius.lg:0,boxShadow:S?o.shadow.sm:'none',overflow:'hidden'},children:[(0,n.jsx)(a.PhoneFrame,{platform:s.platform,client:p,DeviceScreen:u,displayScreen:f}),(0,n.jsx)(t.StreamControls,{platform:s.platform,physical:s.physical,appearance:p.appearance,onToggleAppearance:()=>p.setAppearance('dark'===p.appearance?'light':'dark'),onHome:()=>p.pressButton('home'),onBack:()=>p.pressButton('back'),onRecents:()=>p.pressButton('recents'),onReload:()=>p.reload(),onRotate:()=>p.rotate(),onSave:async()=>{const n=await p.screenshot();n&&c(n,l(s.name))},onShutdown:h,onRemove:b})]})};var n=r(d[0]),o=r(d[1]),a=r(d[2]),t=r(d[3]);function c(n,o){const a=URL.createObjectURL(n),t=document.createElement('a');t.href=a,t.download=o,document.body.appendChild(t),t.click(),t.remove(),setTimeout(()=>URL.revokeObjectURL(a),0)}function l(n){return`${n.trim().replace(/[^a-zA-Z0-9._-]+/g,'-').replace(/^-+|-+$/g,'')||'device'}-${(new Date).toISOString().replace(/[:.]/g,'-').replace(/Z$/,'')}.png`}},256,[151,247,257,258]);
313
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PhoneFrame=function({platform:u,client:h,DeviceScreen:p,displayScreen:x}){const{ratio:b,radiusFraction:j,squircle:v}=l[u],q=h?x(h.screen):null,w=q&&q.height>0?q.width/q.height:b,y={width:`min(${o*Math.max(w,1)}px, calc((100vh - ${c}px) * ${w}), 100%)`,aspectRatio:`${w}`,containerType:'inline-size'},F=`${(j/Math.max(w,1)*100).toFixed(3)}cqw`,$=h&&'idle'!==h.status;return(0,t.jsx)("div",{style:Object.assign({},y,{boxShadow:n,borderRadius:F}),children:$?(0,t.jsx)(p,{client:h,borderRadius:F,squircle:v}):(0,t.jsx)("div",{style:Object.assign({width:'100%',height:'100%',backgroundColor:s.bg.element,borderRadius:F},v?{cornerShape:'superellipse(1.3)'}:{})})})};var t=r(d[0]),s=r(d[1]);const n='0 40px 80px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.28)',c=210,o=480,l={ios:{ratio:.460431654676259,radiusFraction:.14066496163682865,squircle:!0},android:{ratio:.450070323488045,radiusFraction:.02564102564102564,squircle:!1}}},257,[151,247]);
314
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamControls=function({platform:t,physical:l,appearance:c,onToggleAppearance:s,onHome:I,onBack:p,onRecents:x,onReload:j,onRotate:u,onSave:b,onShutdown:h,onRemove:C}){const R='android'===t,S=(0,o.jsxs)(n.Dropdown,{side:"top",align:"end",alignOffset:-80,onCloseAutoFocus:o=>o.preventDefault(),trigger:(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.DotsIcon,{}),label:"More"}),children:[R&&(0,o.jsx)(n.DropdownItem,{label:"Back",Icon:n.BackIcon,onSelect:p}),R&&(0,o.jsx)(n.DropdownItem,{label:"Recents",Icon:n.RecentsIcon,onSelect:x}),(0,o.jsx)(n.DropdownItem,{label:"Rotate",Icon:n.RotateIcon,onSelect:u}),(0,o.jsx)(n.DropdownItem,{label:"Shutdown",Icon:n.PowerIcon,onSelect:h}),!l&&(0,o.jsx)(n.DropdownItem,{label:"Remove",Icon:n.TrashIcon,destructive:!0,onSelect:C})]});return(0,o.jsxs)("div",{style:{display:'flex',alignItems:'flex-end',gap:24},children:[(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.CameraIcon,{}),label:"Save",onClick:b}),(0,o.jsx)(n.Switch,{checked:'dark'===c,onChange:s,label:"Theme"}),(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.HomeIcon,{}),label:"Home",variant:"primary",onClick:I}),(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.RefreshIcon,{}),label:"Reload",onClick:j}),S]})};var o=r(d[0]),n=r(d[1])},258,[151,247]);
315
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.EmptyState=function(){return(0,o.jsxs)("section",{style:{flex:1,minWidth:0,display:'flex',flexDirection:'column',alignItems:'center',justifyContent:'center',gap:16,padding:40,margin:'16px 8px',boxSizing:'border-box',backgroundColor:t.bg.default,border:`1px solid ${t.border.secondary}`,borderRadius:t.radius.lg,boxShadow:t.shadow.sm,overflow:'hidden',textAlign:'center'},children:[(0,o.jsx)("div",{style:{display:'flex',alignItems:'center',justifyContent:'center',width:56,height:56,borderRadius:t.radius.full,border:`1px solid ${t.border.secondary}`,backgroundColor:t.bg.subtle},children:(0,o.jsx)(t.PhoneIcon,{size:28,color:t.icon.secondary})}),(0,o.jsx)("h2",{style:Object.assign({},t.heading.lg,{color:t.text.default,margin:0}),children:"No booted devices"}),(0,o.jsx)("p",{style:Object.assign({},t.textSize.sm,{color:t.text.secondary,margin:0,maxWidth:320}),children:"There are no booted simulators, emulators, or connected devices. Use the + button to add a simulator or emulator."})]})};var o=r(d[0]),t=r(d[1])},259,[151,247]);
316
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.BootErrorModal=function({open:n,onClose:l,deviceName:s,message:c}){return(0,o.jsx)(t.DialogRoot,{open:n,onOpenChange:o=>{o||l()},children:(0,o.jsxs)(t.DialogContent,{children:[(0,o.jsx)(t.DialogTitle,{title:"Failed to boot device"}),(0,o.jsxs)(t.DialogContentContainer,{children:[(0,o.jsxs)("p",{style:{margin:0,fontSize:14,lineHeight:1.5,color:t.text.secondary},children:[(0,o.jsx)("strong",{style:{color:t.text.default,fontWeight:600},children:s})," could not be booted."]}),(0,o.jsx)("pre",{style:{margin:'6px 0 0',padding:'10px 12px',overflowX:'auto',whiteSpace:'pre-wrap',overflowWrap:'anywhere',backgroundColor:t.bg.subtle,border:`1px solid ${t.border.default}`,borderRadius:t.radius.lg,color:t.text.danger,fontFamily:t.font.mono,fontSize:12,lineHeight:1.5},children:c})]}),(0,o.jsx)(t.DialogFooter,{children:(0,o.jsx)(t.Button,{theme:"primary",onClick:l,children:"Close"})})]})})};var o=r(d[0]),t=r(d[1])},260,[151,247]);
317
- __d(function(g,r,i,a,m,e,d){},261,[]);
318
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.basePath=function(){if(window.__DEV__)return'/_expo/plugins/expo-device-hub';const n=window.__EXPO_DEVICE_HUB_BASE_PATH__;if(null==n)throw new Error('window.__EXPO_DEVICE_HUB_BASE_PATH__ is not defined');return(0,_.trimTrailingSlash)(n)};var _=r(d[0])},262,[263]);
319
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.trimTrailingSlash=function(t){return t.replace(/\/+$/,'')}},263,[]);
320
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.shutdownDevice=function(t){return u(o(),t)},e.removeDevice=function(t){return u(c(),t)},e.bootDevice=async function(t){return p(s(),{platform:t.platform,id:t.id,name:t.name})},e.createDevice=async function(t){return p(l(),{platform:t.platform,name:t.name,runtime:t.runtime,deviceType:t.deviceType})};var t=r(d[0]),n=r(d[1]);const o=()=>`${(0,t.basePath)()}/api/devices/shutdown`,c=()=>`${(0,t.basePath)()}/api/devices/remove`,s=()=>`${(0,t.basePath)()}/api/devices/boot`,l=()=>`${(0,t.basePath)()}/api/devices/create`;async function u(t,o){try{const c=await fetch(t,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},body:JSON.stringify({platform:o.platform,id:o.id,name:o.name})});if(!c.ok)throw new Error(`Unexpected ${c.status}`);const s=await c.json();return(0,n.logUtilityErrors)(s.errors),!0===s.ok}catch(t){return console.warn('[expo-device-hub] Device action failed:',t),!1}}async function p(t,o){try{const c=await fetch(t,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},body:JSON.stringify(o),signal:AbortSignal.timeout(2e5)}),s=await c.json();if((0,n.logUtilityErrors)(s.errors),!c.ok)return{id:null,error:s.error??`Unexpected ${c.status}`};const l=s.id??s.serial;return s.ok&&l?{id:l,error:null}:{id:null,error:s.error??'The device did not come online.'}}catch(t){return console.warn('[expo-device-hub] Device start failed:',t),{id:null,error:t instanceof Error?t.message:String(t)}}}},264,[262,265]);
321
- __d(function(g,r,i,a,m,e,d){"use strict";function t(t){if(!t||'object'!=typeof t)return!1;const o=t;return'string'==typeof o.id&&'string'==typeof o.message&&'string'==typeof o.error}Object.defineProperty(e,'__esModule',{value:!0}),e.isUtilityError=t,e.logUtilityErrors=function(o,n=new Set){const s=new Set;if(!Array.isArray(o))return s;for(const f of o)t(f)&&!s.has(f.id)&&(s.add(f.id),n.has(f.id)||console.error(f.message,f.error));return s}},265,[]);
322
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useColorScheme=function(){const[n,c]=(0,t.useState)('light');return(0,t.useEffect)(()=>{if('undefined'==typeof window||!window.matchMedia)return;const t=window.matchMedia('(prefers-color-scheme: dark)'),n=()=>c(t.matches?'dark':'light');return n(),t.addEventListener('change',n),()=>t.removeEventListener('change',n)},[]),n};var t=r(d[0])},266,[38]);
323
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["errors"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.devicesWebSocketUrl=f,_e.parseDeviceListMessage=_,_e.splitDeviceList=b,_e.useDeviceLists=function(){const e=S();return(0,n.useMemo)(()=>b(e),[e])};var t,s=r(d[0]),o=(t=s)&&t.__esModule?t:{default:t},n=r(d[1]),u=r(d[2]),c=r(d[3]),l=r(d[4]);function f(e=window.location.href){const t=new URL(`${(0,c.basePath)()}/api/devices/ws`,e);return t.protocol='https:'===t.protocol?'wss:':'ws:',t.toString()}const v={simulators:[],emulators:[]},y=500,p=1e4;function S(){const[t,s]=(0,n.useState)(v);return(0,n.useEffect)(()=>{let t=!1,n=null,u=null,c=y,v=new Set;function S(){if(t)return;let u;try{u=new WebSocket(f())}catch{return void b()}n=u,u.onopen=()=>{c=y},u.onmessage=t=>{const n=_(t.data);if(!n)return;v=(0,l.logUtilityErrors)(n.errors,v);const u=(0,o.default)(n,e);s(u)},u.onerror=()=>u.close(),u.onclose=()=>{n===u&&(n=null,b())}}function b(){t||u||(u=setTimeout(()=>{u=null,S()},c),c=Math.min(2*c,p))}return S(),()=>{t=!0,u&&clearTimeout(u),n?.close()}},[]),t}function _(e){if('string'!=typeof e)return null;try{const t=JSON.parse(e);if(t.type!==u.DEVICE_LIST_MESSAGE_TYPE||!Array.isArray(t.devices?.simulators)||!Array.isArray(t.devices?.emulators)||void 0!==t.devices.errors&&!Array.isArray(t.devices.errors))return null;const s=t.devices.errors?.filter(l.isUtilityError);return Object.assign({simulators:t.devices.simulators,emulators:t.devices.emulators},s?{errors:s}:{})}catch{return null}}function b(e){const t=t=>({simulators:e.simulators.filter(e=>e.booted===t),emulators:e.emulators.filter(e=>e.booted===t)});return{booted:t(!0),recent:t(!1)}}},267,[131,38,268,262,265]);
324
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEVICE_LIST_MESSAGE_TYPE",{enumerable:!0,get:function(){return t}});const t='device-list'},268,[]);
325
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useIsNarrow=function(n){const[c,o]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if('undefined'==typeof window||!window.matchMedia)return;const t=window.matchMedia(`(max-width: ${n}px)`),c=()=>o(t.matches);return c(),t.addEventListener('change',c),()=>t.removeEventListener('change',c)},[n]),c};var t=r(d[0])},269,[38]);
326
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useNewDeviceOptions=function(){const[o,c]=(0,t.useState)(u);return(0,t.useEffect)(()=>{let t=!1;return(async()=>{try{const o=await fetch(s(),{headers:{Accept:'application/json'}});if(!o.ok)throw new Error(`Unexpected ${o.status}`);const u=await o.json();(0,n.logUtilityErrors)(u.errors),t||c({ios:u.ios,android:u.android})}catch(t){console.warn('[expo-device-hub] No new-device-options endpoint, using empty options:',t)}})(),()=>{t=!0}},[]),o};var t=r(d[0]),o=r(d[1]),n=r(d[2]);const s=()=>`${(0,o.basePath)()}/api/new-device-options`,c={runtimes:[]},u={ios:c,android:c}},270,[38,262,265]);
210
+ __d(function(g,_r,_i,_a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.toQueryStyleHelperWsUrl=P,e.useIosDeviceClient=function(x){const{baseUrl:I,enabled:$=!0,device:D=null,streamMode:_}=x,L=$&&!!I,[J,j]=(0,t.useState)('idle'),[M,H]=(0,t.useState)(null),[V,B]=(0,t.useState)(null),[K,G]=(0,t.useState)(0),[q,z]=(0,t.useState)([]),[Q,X]=(0,t.useState)(!1),[Y,Z]=(0,t.useState)(C),[ee,te]=(0,t.useState)(null),[re,ne]=(0,t.useState)(null),[ae,ce]=(0,t.useState)(null),[se,oe]=(0,t.useState)(null),le=(0,t.useRef)(null),ie=(0,t.useRef)(0),ue=(0,t.useRef)(null),de=(0,t.useRef)(null),fe=(0,t.useRef)(null),pe=(0,t.useRef)(null),[he,me]=(0,t.useReducer)(r.avccFallbackReducer,r.initialAvccFallback),[ge,ye]=(0,t.useState)('h264'),[be,ve]=(0,t.useState)(!1),we='webrtc'===_&&!be,Se=('h264'===_||be)&&(0,n.isAvccSupported)()&&!he.fellBack,Ee=(0,t.useRef)(!1),ke=(0,t.useRef)(null);(0,t.useEffect)(()=>{ke.current=V},[V]);const Oe=(0,t.useRef)(!1),Ce=(0,t.useCallback)(()=>{const t=ue.current,r=pe.current;t&&r&&(t.src=`${r}${r.includes('?')?'&':'?'}t=${Date.now()}`)},[]),Te=(0,t.useCallback)(t=>{we?(fe.current=t??null,de.current=null,ue.current=null):Se?(de.current=t??null,fe.current=null,ue.current=null):(ue.current=t??null,de.current=null,fe.current=null,t&&Ce())},[Ce,Se,we]),Re=(0,t.useCallback)(t=>{const r=le.current;if(!r||r.readyState!==WebSocket.OPEN)return;const n=(0,a.streamGeometry)(ke.current).inputOrientation;let c;'begin'===t.phase?(Ee.current=void 0!==(0,a.homeIndicatorEdge)(t.y),Ee.current&&(c=a.HID_EDGE_BOTTOM)):Ee.current&&(c=a.HID_EDGE_BOTTOM,'end'===t.phase&&(Ee.current=!1));const s=(0,a.rawPointForDisplayPoint)(n,t.x,t.y),o=void 0===c?void 0:(0,a.rawEdgeForDisplayEdge)(n,c),l=void 0===o?Object.assign({type:t.phase},s):Object.assign({type:t.phase},s,{edge:o});r.send(N(p,l))},[]),xe=(0,t.useCallback)(t=>{const r=le.current;if(!r||r.readyState!==WebSocket.OPEN)return;const n=(0,a.streamGeometry)(ke.current).inputOrientation,c=(0,a.rawPointForDisplayPoint)(n,t.a.x,t.a.y),s=(0,a.rawPointForDisplayPoint)(n,t.b.x,t.b.y);r.send(N(y,{type:t.phase,x1:c.x,y1:c.y,x2:s.x,y2:s.y}))},[]),Ue=(0,t.useCallback)(t=>{const r=le.current;if(!r||r.readyState!==WebSocket.OPEN)return!1;const n=(0,o.hidUsageForCode)(t.code);return null!==n&&(r.send(N(b,{type:t.phase,usage:n})),!0)},[]),Ne=(0,t.useCallback)(t=>{const r=le.current;r&&r.readyState===WebSocket.OPEN&&r.send(N(S,{enabled:t}))},[]),Ae=(0,t.useCallback)(()=>{const t=le.current;t&&t.readyState===WebSocket.OPEN&&t.send(N(w,{}))},[]),Pe=(0,t.useCallback)(t=>{const r=le.current;if(!r||r.readyState!==WebSocket.OPEN)return;const n=R[t];n&&r.send(N(h,{button:n}))},[]),We=(0,t.useCallback)(async()=>{const t=le.current;if(!t||t.readyState!==WebSocket.OPEN)return;const r=(r,n)=>t.send(N(b,{type:r,usage:n}));r('down',O),await new Promise(t=>setTimeout(t,30)),r('up',O)},[]),Fe=(0,t.useCallback)(()=>{const t=le.current;if(!t||t.readyState!==WebSocket.OPEN)return;const r=ke.current?.orientation??'portrait',n=T[(T.indexOf(r)+1)%T.length];t.send(N(v,{orientation:n}))},[]),Ie=(0,t.useCallback)(async()=>{if(!I)return null;const t=ee?.device??D,r=`${I.replace(/\/$/,'')}/api/screenshot${t?`?device=${encodeURIComponent(t)}`:''}`;try{const t=await fetch(r,{cache:'no-store'});return t.ok?await t.blob():null}catch{return null}},[I,D,ee]),$e=(0,t.useCallback)(t=>{const r=ee;r&&r.execWsUrl&&r.execToken&&r.device&&(ne(t),W(r.execWsUrl,r.execToken,{device:r.device,option:'appearance',value:t}).catch(()=>{}))},[ee]),De=(0,t.useCallback)(()=>X(!0),[]),_e=(0,t.useCallback)(()=>X(!1),[]),Le=(0,t.useCallback)(()=>z([]),[]);(0,t.useEffect)(()=>{if(!L||!I)return te(null),void j('idle');let t=!1,r=null;j('connecting'),H(null);const n=`${I.replace(/\/$/,'')}/api${D?`?device=${encodeURIComponent(D)}`:''}`,a=t=>{const r=(0,l.proxyPreviewConfigForBrowser)(t,window.location),n=r.basePath??'';return{url:r.url,streamUrl:r.streamUrl??`${r.url}/stream.mjpeg`,wsUrl:P(r.wsUrl??`${A(r.url)}/ws`),device:r.device??null,execWsUrl:A(new URL(`${n}/exec-ws`,I).toString()),execToken:r.execToken??null,logsPath:r.logsEndpoint??null,appStateUrl:r.appStateEndpoint?new URL(r.appStateEndpoint,I).toString():null,gridApiUrl:new URL(r.gridApiEndpoint??'/grid/api',I).toString()}};let s=!1;const o=async()=>{if(!t)try{const l=await fetch(n,{signal:AbortSignal.timeout(3e3)});if(!l.ok)return void(t||(r=setTimeout(o,f)));const i=await l.json();if(i&&i.url&&i.device)return void(t||te(a(i)));D&&!s&&(s=!0,(0,c.startIosHelper)(D,I).catch(()=>{})),t||(r=setTimeout(o,f))}catch{t||(r=setTimeout(o,f))}};return o(),()=>{t=!0,r&&clearTimeout(r)}},[L,I,D]);const Je=(0,t.useRef)({frames:0,startedAt:0}),je=(0,t.useCallback)(()=>{const t=performance.now(),r=Je.current;if(0===r.startedAt&&(r.startedAt=t),r.frames++,t-r.startedAt<1e3)return;const n=Math.round(1e3*r.frames/(t-r.startedAt));r.frames=0,r.startedAt=t,G(t=>t===n?t:n)},[]),{stream:Me,failure:He,error:Ve,markFrameDecoded:Be}=(0,u.useWebRtcStream)({offerUrl:ee?`${ee.url}/webrtc/offer`:'',closeUrl:ee?`${ee.url}/webrtc/close`:'',enabled:L&&we&&!!ee,codec:ge}),Ke=(0,t.useRef)(null);(0,t.useEffect)(()=>{if(!we||!He)return;if(Ke.current===He.sessionId)return;Ke.current=He.sessionId;const t=(0,d.webRtcFallbackDecision)('h264',ge,He);t&&('switch-to-http'===t.type?ve(!0):ye(t.codec))},[we,He,ge]),(0,t.useEffect)(()=>{we&&(Ve?(j('error'),H(Ve)):Me||(j('connecting'),H(null)))},[we,Ve,Me]),(0,t.useEffect)(()=>{if(!we)return;const t=fe.current;if(!t)return;let r=!1,n=!0,a=0;const c=()=>{r||(t.videoWidth>0&&t.videoHeight>0&&!Oe.current&&B({width:t.videoWidth,height:t.videoHeight}),je(),n&&(n=!1,Be(),j('streaming'),H(null)))},s=()=>{c(),a=t.requestVideoFrameCallback(s)},o=()=>c();if(t.srcObject=Me,Me){'function'==typeof t.requestVideoFrameCallback?a=t.requestVideoFrameCallback(s):t.addEventListener('timeupdate',o),t.addEventListener('loadeddata',c,{once:!0}),t.play().catch(()=>{})}return()=>{r=!0,t.removeEventListener('loadeddata',c),t.removeEventListener('timeupdate',o),a&&'function'==typeof t.cancelVideoFrameCallback&&t.cancelVideoFrameCallback(a),t.srcObject=null}},[we,Me,Be,je]),(0,t.useEffect)(()=>{me('reset'),ye('h264'),ve(!1),G(0)},[_,ee?.url]),(0,t.useEffect)(()=>{if(!Se||!ee?.url)return;const t=setTimeout(()=>me('timeout'),r.AVCC_FRAME_TIMEOUT_MS);return()=>clearTimeout(t)},[Se,ee?.url]),(0,i.useAvccStream)({url:ee?.url??'',enabled:L&&Se&&!!ee,canvasRef:de,onFirstFrame:()=>{j('streaming'),H(null)},onFrame:je,onDecodedFrame:()=>me('decoded-frame'),onResize:(t,r)=>{Oe.current||B({width:t,height:r})},onError:t=>{j('error'),H(t)},onDecoderError:()=>me('error')});const Ge=Se||we?null:ee?.streamUrl??null;(0,t.useEffect)(()=>{if(!Ge)return void(pe.current=null);pe.current=Ge,j('connecting'),H(null);let t=!1,r=!1,n=null;const a=ue.current,c=()=>{if(t||r)return;const n=ue.current;n&&0!==n.naturalWidth&&0!==n.naturalHeight&&(r=!0,j('streaming'),H(null),Oe.current||B(t=>t&&t.width===n.naturalWidth&&t.height===n.naturalHeight?t:{width:n.naturalWidth,height:n.naturalHeight}))},s=()=>{t||(r=!1,j('error'),H('Stream unavailable \u2014 retrying\u2026'),n=setTimeout(()=>{t||Ce()},f))};a?.addEventListener('load',c),a?.addEventListener('error',s),Ce();const o=setInterval(c,400);return()=>{t=!0,clearInterval(o),n&&clearTimeout(n),a?.removeEventListener('load',c),a?.removeEventListener('error',s);const r=ue.current;r&&r.removeAttribute('src'),B(null),G(0)}},[Ge,Ce]);const qe=ee?.wsUrl??null;(0,t.useEffect)(()=>{if(ce(null),!qe)return;let t=!1,r=null;Oe.current=!1;const n=()=>{if(t)return;let a;try{a=new WebSocket(qe)}catch{return}a.binaryType='arraybuffer',le.current=a,a.onopen=()=>{a.send(N(S,{enabled:!1}))},a.onmessage=r=>{if(!(r.data instanceof ArrayBuffer))return;const n=new Uint8Array(r.data);if(!(n.length<1))if(n[0]!==k){if(n[0]===E)try{const t=JSON.parse(U.decode(n.subarray(1)));t.width>0&&t.height>0&&(Oe.current=!0,B(r=>r&&r.width===t.width&&r.height===t.height&&r.orientation===t.orientation?r:t))}catch{}}else try{const r=JSON.parse(U.decode(n.subarray(1)));!t&&r.ok&&'boolean'==typeof r.enabled&&ce(r.enabled)}catch{}},a.onclose=()=>{t||(le.current=null,r=setTimeout(n,f))},a.onerror=()=>{try{a.close()}catch{}}};return n(),()=>{t=!0,r&&clearTimeout(r);try{le.current?.close()}catch{}le.current=null,ce(null)}},[qe]);const ze=ee?.execWsUrl??null,Qe=ee?.execToken??null,Xe=ee?.logsPath??null;(0,t.useEffect)(()=>{if(!(Q&&ze&&Qe&&Xe))return;let t=!1,r=null,n=null,a='';const c=t=>{const r=t.split('\n').filter(t=>t.startsWith('data:')).map(t=>t.slice(5).replace(/^ /,'')).join('\n');if(!r)return;let n=r;try{const t=JSON.parse(r);'string'==typeof t.eventMessage&&(n=t.eventMessage)}catch{}n&&z(t=>[...t,{id:"i"+ ++ie.current,source:'syslog',message:n}].slice(-200))},s=()=>{if(!t){a='';try{r=new WebSocket(ze)}catch{return}r.onopen=()=>r?.send(JSON.stringify({token:Qe})),r.onmessage=t=>{let n;try{n=JSON.parse(String(t.data))}catch{return}if(n.ready)r?.send(JSON.stringify({sub:1,path:Xe}));else if(1===n.sub&&'string'==typeof n.data){let t;for(a+=n.data.replace(/\r\n/g,'\n');-1!==(t=a.indexOf('\n\n'));)c(a.slice(0,t)),a=a.slice(t+2)}},r.onclose=()=>{t||(n=setTimeout(s,f))},r.onerror=()=>{try{r?.close()}catch{}}}};return s(),()=>{t=!0,n&&clearTimeout(n);try{r?.close()}catch{}}},[Q,ze,Qe,Xe]);const Ye=ee?.device??null;(0,t.useEffect)(()=>{if(!ze||!Qe||!Ye)return void ne(null);let t=!1;return W(ze,Qe,{device:Ye}).then(r=>{const n=r.status?.appearance;t||'light'!==n&&'dark'!==n||ne(n)}).catch(()=>{}),()=>{t=!0}},[ze,Qe,Ye]);const Ze=ee?.appStateUrl??null;(0,t.useEffect)(()=>{if(oe(null),!Ze)return;let t=null;try{t=new EventSource(Ze)}catch{return}return t.onmessage=t=>{try{const r=JSON.parse(String(t.data));r.bundleId&&oe(t=>t&&t.id===r.bundleId?t.pid===r.pid&&t.isReactNative===r.isReactNative?t:Object.assign({},t,{pid:r.pid,isReactNative:r.isReactNative}):{id:r.bundleId,pid:r.pid,isReactNative:r.isReactNative})}catch{}},()=>t?.close()},[Ze]);const et=se?.id??null;(0,t.useEffect)(()=>{if(!(et&&ze&&Qe&&Ye))return;let t=!1;return(0,s.getIosAppDetails)(t=>F(ze,Qe,t),Ye,et).then(r=>{!t&&r&&oe(t=>t&&t.id===et?Object.assign({},t,r):t)}).catch(()=>{}),()=>{t=!0}},[et,ze,Qe,Ye]);const tt=ee?.gridApiUrl??null;return(0,t.useEffect)(()=>{if(!tt)return void Z(C);let t=!1;return fetch(tt,{signal:AbortSignal.timeout(3e3)}).then(t=>t.json()).then(r=>{!t&&Array.isArray(r.devices)&&0!==r.devices.length&&Z(r.devices.map(t=>({id:String(t.device??t.id??'ios'),name:String(t.name??t.device??'Simulator'),system:'string'==typeof t.runtime?t.runtime:void 0,platform:'ios',current:null!=t.helper})))}).catch(()=>{}),()=>{t=!0}},[tt]),{platform:'ios',status:J,error:M,screen:V,fps:K,devices:Y,logs:q,logsEnabled:Q,attachLogs:De,detachLogs:_e,clearLogs:Le,foregroundApp:se,videoKind:we?'video':Se?'canvas':'img',attachVideo:Te,sendTouch:Re,sendMultiTouch:xe,sendKey:Ue,pressButton:Pe,reload:We,rotate:Fe,screenshot:Ie,appearance:re,setAppearance:$e,hardwareKeyboardConnected:ae,setHardwareKeyboardConnected:Ne,toggleSoftwareKeyboard:Ae}};var t=_r(_d[0]),r=_r(_d[1]),n=_r(_d[2]),a=_r(_d[3]),c=_r(_d[4]),s=_r(_d[5]),o=_r(_d[6]),l=_r(_d[7]),i=_r(_d[8]),u=_r(_d[9]),d=_r(_d[10]);const f=1500,p=3,h=4,y=5,b=6,v=7,w=12,S=13,E=130,k=131,O=21,C=[{id:'ios',name:'iPhone Simulator',platform:'ios',current:!0}],T=['portrait','landscape_left','portrait_upside_down','landscape_right'],R={home:'home',appSwitcher:'app_switcher',power:'lock',back:null,recents:null},x=new TextEncoder,U=new TextDecoder;function N(t,r){const n=x.encode(JSON.stringify(r)),a=new Uint8Array(1+n.length);return a[0]=t,a.set(n,1),a}function A(t){return t.replace(/^http/,'ws')}function P(t){const r=new URL(t),n=r.pathname.match(/^(.*\/helper)\/([^/]+)\/ws$/);if(!n)throw new Error(`Invalid helper ws url, no deviceId matched: ${t}`);return r.pathname=`${n[1]}/ws`,r.searchParams.has('device')||r.searchParams.set('device',decodeURIComponent(n[2])),r.toString()}function W(t,r,n){return new Promise((a,c)=>{let s;try{s=new WebSocket(t)}catch(t){return void c(t)}let o,l=!1;const i=t=>{if(!l){l=!0,clearTimeout(o);try{s.close()}catch{}t()}};o=setTimeout(()=>i(()=>c(new Error('exec-ws timeout'))),5e3),s.onopen=()=>s.send(JSON.stringify({token:r})),s.onmessage=t=>{let r;try{r=JSON.parse(String(t.data))}catch{return}r.ready?s.send(JSON.stringify({id:1,ui:n})):1===r.id&&(r.error?i(()=>c(new Error(r.error))):i(()=>a(r)))},s.onerror=()=>i(()=>c(new Error('exec-ws error'))),s.onclose=()=>i(()=>c(new Error('exec-ws closed')))})}function F(t,r,n){return new Promise((a,c)=>{let s;try{s=new WebSocket(t)}catch(t){return void c(t)}let o,l=!1;const i=t=>{if(!l){l=!0,clearTimeout(o);try{s.close()}catch{}t()}};o=setTimeout(()=>i(()=>c(new Error('exec-ws timeout'))),1e4),s.onopen=()=>s.send(JSON.stringify({token:r})),s.onmessage=t=>{let r;try{r=JSON.parse(String(t.data))}catch{return}r.ready?s.send(JSON.stringify({id:1,command:n})):1===r.id&&(r.error?i(()=>c(new Error(r.error))):i(()=>a({stdout:r.stdout??'',stderr:r.stderr??'',exitCode:r.exitCode??1})))},s.onerror=()=>i(()=>c(new Error('exec-ws error'))),s.onclose=()=>i(()=>c(new Error('exec-ws closed')))})}},154,[38,155,156,153,157,158,159,160,161,162,163]);
211
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initialAvccFallback",{enumerable:!0,get:function(){return t}}),e.avccFallbackReducer=function(c,n){switch(n){case'decoded-frame':return c.streamed?c:Object.assign({},c,{streamed:!0});case'timeout':return c.streamed||c.fellBack?c:Object.assign({},c,{fellBack:!0});case'error':return c.fellBack?c:Object.assign({},c,{fellBack:!0});case'reset':return t}},Object.defineProperty(e,"AVCC_FRAME_TIMEOUT_MS",{enumerable:!0,get:function(){return c}});const t={streamed:!1,fellBack:!1};const c=4e3},155,[]);
212
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AVCC_TAG_DESCRIPTION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"AVCC_TAG_KEYFRAME",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"AVCC_TAG_DELTA",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"AVCC_TAG_SEED",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"AvccDemuxer",{enumerable:!0,get:function(){return u}}),e.avcCodecString=function(t){if(t.length<4)return'avc1.42E01E';const n=t=>t.toString(16).padStart(2,'0');return`avc1.${n(t[1])}${n(t[2])}${n(t[3])}`},e.isAvccSupported=function(){return'undefined'!=typeof globalThis&&void 0!==globalThis.VideoDecoder};const t=1,n=2,s=3,h=4,f={[t]:'description',[n]:'keyframe',[s]:'delta',[h]:'seed'};class u{buffer=new Uint8Array(65536);length=0;start=0;append(t){if(this.length+t.length>this.buffer.length&&(this.start>0&&(this.buffer.copyWithin(0,this.start,this.length),this.length-=this.start,this.start=0),this.length+t.length>this.buffer.length)){let n=this.buffer.length;for(;n<this.length+t.length;)n*=2;const s=new Uint8Array(n);s.set(this.buffer.subarray(0,this.length)),this.buffer=s}this.buffer.set(t,this.length),this.length+=t.length}push(t){t.length>0&&this.append(t);const n=[],s=this.buffer;for(;this.length-this.start>=4;){const t=this.start,h=(s[t]<<24|s[t+1]<<16|s[t+2]<<8|s[t+3])>>>0;if(this.length-t-4<h)break;if(h<1){this.start+=4;continue}const u=f[s[t+4]];u&&n.push({type:u,payload:s.slice(t+5,t+4+h)}),this.start+=4+h}return this.start>0&&(this.start<this.length&&this.buffer.copyWithin(0,this.start,this.length),this.length-=this.start,this.start=0),n}reset(){this.length=0,this.start=0}}},156,[]);
213
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.endpointFor=function(s,c){return o(`${t(c)}${n[s]}`)},e.startIosHelper=async function(n,s){const c=t(o(s));await fetch(`${c}/grid/api/start`,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({udid:n}),signal:AbortSignal.timeout(19e4)})};const n={ios:'/vendor/serve-sim',android:'/vendor/serve-emu'};function t(n){return n.replace(/\/+$/,'')}function o(n){return n.startsWith('http')?n:'undefined'!=typeof window&&window.location?.origin?`${window.location.origin}${n}`:n}},157,[]);
214
+ __d(function(g,r,i,a,m,e,d){"use strict";function n(n){return`'${n.replace(/'/g,"'\\''")}'`}async function t(t,o,l){const s=await t(`xcrun simctl get_app_container ${o} ${n(l)} app`);if(0!==s.exitCode)return null;const c=s.stdout.trim();if(!c)return null;const u=await t(`plutil -convert json -o - ${n(`${c}/Info.plist`)}`);let p,$={};if(0===u.exitCode)try{$=JSON.parse(u.stdout)}catch{}const F=$?.CFBundleIcons?.CFBundlePrimaryIcon??$?.['CFBundleIcons~ipad']?.CFBundlePrimaryIcon,C=F?.CFBundleIconFiles??$?.CFBundleIconFiles;let f;if(C&&C.length>0?p=C[C.length-1]:'string'==typeof $?.CFBundleIconFile&&(p=$.CFBundleIconFile),p){const o=[`${p}@3x.png`,`${p}@2x.png`,`${p}.png`,`${p}60x60@3x.png`,`${p}60x60@2x.png`],l=(await t(`bash -c ${n(o.map(t=>`[ -f ${n(`${c}/${t}`)} ] && echo ${n(`${c}/${t}`)} && exit 0`).join('; ')+'; exit 1')}`)).stdout.trim();if(l){const o=await t(`base64 -i ${n(l)}`);0===o.exitCode&&(f=`data:image/png;base64,${o.stdout.replace(/\s+/g,'')}`)}}return{appPath:c,label:$.CFBundleDisplayName??$.CFBundleName,version:$.CFBundleShortVersionString,build:$.CFBundleVersion,minOS:$.MinimumOSVersion,executable:$.CFBundleExecutable,iconDataUrl:f}}Object.defineProperty(e,'__esModule',{value:!0}),e.shellEscape=n,e.fetchIosAppDetails=t,e.getIosAppDetails=function(n,l,s){const c=`${l}:${s}`,u=o.get(c);if(u)return u;const p=t(n,l,s).catch(n=>{throw o.delete(c),n});return o.set(c,p),p};const o=new Map},158,[]);
215
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.hidUsageForCode=function(o){return t[o]??null},e.androidMessageForKeyboardInput=function(t){if('down'!==t.phase)return null;if('Escape'===t.key)return{type:'back'};const u=o[t.key];return void 0!==u?{type:'key',keycode:u}:1===t.key.length?{type:'text',text:t.key}:null};const t={KeyA:4,KeyB:5,KeyC:6,KeyD:7,KeyE:8,KeyF:9,KeyG:10,KeyH:11,KeyI:12,KeyJ:13,KeyK:14,KeyL:15,KeyM:16,KeyN:17,KeyO:18,KeyP:19,KeyQ:20,KeyR:21,KeyS:22,KeyT:23,KeyU:24,KeyV:25,KeyW:26,KeyX:27,KeyY:28,KeyZ:29,Digit1:30,Digit2:31,Digit3:32,Digit4:33,Digit5:34,Digit6:35,Digit7:36,Digit8:37,Digit9:38,Digit0:39,Enter:40,Escape:41,Backspace:42,Tab:43,Space:44,Minus:45,Equal:46,BracketLeft:47,BracketRight:48,Backslash:49,Semicolon:51,Quote:52,Backquote:53,Comma:54,Period:55,Slash:56,CapsLock:57,F1:58,F2:59,F3:60,F4:61,F5:62,F6:63,F7:64,F8:65,F9:66,F10:67,F11:68,F12:69,PrintScreen:70,ScrollLock:71,Pause:72,Insert:73,Home:74,PageUp:75,Delete:76,End:77,PageDown:78,ArrowRight:79,ArrowLeft:80,ArrowDown:81,ArrowUp:82,NumLock:83,NumpadDivide:84,NumpadMultiply:85,NumpadSubtract:86,NumpadAdd:87,NumpadEnter:88,Numpad1:89,Numpad2:90,Numpad3:91,Numpad4:92,Numpad5:93,Numpad6:94,Numpad7:95,Numpad8:96,Numpad9:97,Numpad0:98,NumpadDecimal:99,ControlLeft:224,ShiftLeft:225,AltLeft:226,MetaLeft:227,ControlRight:228,ShiftRight:229,AltRight:230,MetaRight:231};const o={ArrowUp:19,ArrowDown:20,ArrowLeft:21,ArrowRight:22,Tab:61,Enter:66,Backspace:67,Delete:112,Home:122,End:123,PageUp:92,PageDown:93}},159,[]);
216
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.proxyPreviewConfigForBrowser=function(o,t){if(!o.device||!o.proxyHelpers)return o;const s=`${'/'===o.basePath?'':(o.basePath??'').replace(/\/+$/,'')}/helper/${encodeURIComponent(o.device)}`,n=`${t.protocol}//${t.host}`,c='https:'===t.protocol?'wss:':'ws:';return Object.assign({},o,{url:`${n}${s}`,streamUrl:`${n}${s}/stream.mjpeg`,wsUrl:`${c}//${t.host}${s}/ws`})}},160,[]);
217
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAvccStream=function({url:s,enabled:l,canvasRef:u,onFirstFrame:f,onFrame:h,onDecodedFrame:y,onResize:p,onError:w,onDecoderError:F}){const E=(0,t.useRef)({onFirstFrame:f,onFrame:h,onDecodedFrame:y,onResize:p,onError:w,onDecoderError:F});E.current={onFirstFrame:f,onFrame:h,onDecodedFrame:y,onResize:p,onError:w,onDecoderError:F},(0,t.useEffect)(()=>{if(!l||!s||!(0,o.isAvccSupported)())return;const t=new AbortController,f=new o.AvccDemuxer;let h=!1,y=!1,p=!1,w=0,F=null,D=null;const b=()=>!h&&!t.signal.aborted,v=t=>{E.current.onDecoderError?E.current.onDecoderError():E.current.onError?.(t)},k=(t,o,n,c)=>{if(!b())return;const s=u.current;if(!s)return;s.width===o&&s.height===n||(s.width=o,s.height=n,E.current.onResize?.(o,n));const l=s.getContext('2d');l&&(l.drawImage(t,0,0,o,n),E.current.onFrame?.(),c&&!p&&(p=!0,E.current.onDecodedFrame?.()),y||(y=!0,E.current.onFirstFrame?.()))},R=async t=>{const o=await createImageBitmap(new Blob([t],{type:'image/jpeg'}));try{b()&&k(o,o.width,o.height,!1)}finally{o.close()}},z=t=>{D&&'closed'!==D.state||(D=new VideoDecoder({output:t=>{try{b()&&k(t,t.displayWidth,t.displayHeight,!0)}finally{t.close()}},error:t=>v(`decoder: ${t.message}`)}));try{D.configure({codec:(0,o.avcCodecString)(t),description:t,optimizeForLatency:!0,hardwareAcceleration:'prefer-hardware'})}catch(t){v(`config: ${t.message}`)}},A=(t,o)=>{if('configured'===D?.state)try{D.decode(new EncodedVideoChunk({type:'keyframe'===t?'key':'delta',timestamp:w,data:o})),w+=c}catch{}},C=(t,o)=>{switch(t){case'seed':R(o).catch(()=>{});break;case'description':z(o);break;case'keyframe':case'delta':A(t,o)}},$=async()=>{f.reset();try{const o=await fetch(`${s}/stream.avcc`,{signal:t.signal});if(!o.ok)throw new Error(`H.264 stream failed (${o.status})`);const n=o.body?.getReader();if(!n)return;for(;;){const{done:t,value:o}=await n.read();if(t)break;if(o)for(const t of f.push(o))C(t.type,t.payload)}}catch{}finally{b()&&b()&&!F&&(F=setTimeout(()=>{F=null,$()},n))}};return $(),()=>{if(h=!0,F&&clearTimeout(F),t.abort(),f.reset(),D&&'closed'!==D.state)try{D.close()}catch{}D=null}},[s,l,u])};var t=r(d[0]),o=r(d[1]);const n=1e3,c=16667},161,[38,156]);
218
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useWebRtcStream=function({offerUrl:R,closeUrl:y,enabled:T,codec:C,iceServers:S}){const[h,W]=(0,t.useState)(null),[k,E]=(0,t.useState)(null),[L,P]=(0,t.useState)(null),[D,I]=(0,t.useState)(0),U=(0,t.useRef)(void 0),$=(0,t.useRef)(!1),M=(0,t.useRef)(0),F=(0,t.useCallback)(()=>{$.current=!0,M.current=0,void 0!==U.current&&(window.clearTimeout(U.current),U.current=void 0),E(null),P(null)},[]);return(0,t.useEffect)(()=>{M.current=0},[T,R,y,C,S]),(0,t.useEffect)(()=>{if(!T||!R)return;if(E(null),'undefined'==typeof RTCPeerConnection||'undefined'==typeof RTCRtpReceiver)return W(null),P('WebRTC is not supported by this browser.'),void E({sessionId:b(),kind:'permanent'});let t,h=!1,k=null,L=null,D=!1;const F=new AbortController,O=b(),_=S?.length?S:c;W(null),E(null),P(null),$.current=!1,void 0!==U.current&&(window.clearTimeout(U.current),U.current=void 0);const j=(t=!1)=>L||(L=(0,o.closeWebRtcSession)({url:y,sessionId:O,keepalive:t}),L),A=()=>{j(!0)};window.addEventListener('pagehide',A),window.addEventListener('beforeunload',A);const V=()=>{W(null),k?.close()},G=t=>{h||D||(D=!0,P(t),E({sessionId:O,kind:'permanent'}),V(),j())},H=n=>{if(h||D)return;D=!0,E(null);const o=M.current++,c=Math.min(v*2**Math.min(o,4),p);P(`${n} Retrying...`),V(),j().finally(()=>{h||(t=window.setTimeout(()=>{h||I(t=>t+1)},c))})};return(async()=>{try{k=new RTCPeerConnection({iceServers:_,iceTransportPolicy:'all'});const c=k.addTransceiver('video',{direction:'recvonly'}),v=RTCRtpReceiver.getCapabilities('video'),p='h264'===C?'video/H264':'vp9'===C?'video/VP9':'video/VP8';if(v?.codecs.length&&'setCodecPreferences'in c){const t=p.toLowerCase();c.setCodecPreferences([...v.codecs.filter(n=>n.mimeType.toLowerCase()===t),...v.codecs.filter(n=>n.mimeType.toLowerCase()!==t)])}k.ontrack=t=>{h||($.current=!1,t.track.onended=()=>H('WebRTC video track ended.'),W(t.streams[0]??new MediaStream([t.track])),void 0!==U.current&&window.clearTimeout(U.current),U.current=window.setTimeout(()=>{if(U.current=void 0,h||$.current)return;const t=k?.connectionState??'closed';'codec'===(0,n.webRtcFailureDisposition)('first-frame-timeout',t)?h||D||(D=!0,V(),j().finally(()=>{h||E({sessionId:O,kind:'codec',codec:C})})):H('WebRTC did not establish a video path.')},u))},k.onconnectionstatechange=()=>{!h&&k&&'failed'===k.connectionState&&'transport'===(0,n.webRtcFailureDisposition)('connection-failed',k.connectionState)&&H('WebRTC connection failed.')};const b=await k.createOffer();await k.setLocalDescription(b),await(t=k,new Promise(n=>{if('complete'===t.iceGatheringState)return void n();let o,c=!1;const l=()=>{c||(c=!0,t.removeEventListener('icegatheringstatechange',u),void 0!==o&&window.clearTimeout(o),n())},u=()=>{'complete'===t.iceGatheringState&&l()};t.addEventListener('icegatheringstatechange',u),o=window.setTimeout(l,s)}));const y=k.localDescription;if(!y)throw new Error('WebRTC offer was not created');const T=await(0,o.postWebRtcOffer)({url:R,signal:F.signal,requestTimeoutMs:l,busyRetryIntervalMs:f,busyRetryCount:w,body:JSON.stringify({type:y.type,sdp:y.sdp,sessionId:O,codec:C,iceServers:_})});if(!T.ok)return await(T.body?.cancel()),void G(`WebRTC offer failed: HTTP ${T.status}`);const S=await T.json();if(h)return void await j(!0);try{await k.setRemoteDescription(S)}catch{G('WebRTC returned an invalid session description.')}}catch(t){if(h||F.signal.aborted)return;if(t instanceof o.WebRtcSignalingBusyError)return void G(t.message);const c=t instanceof o.WebRtcSignalingTimeoutError?'WebRTC signaling timed out.':'WebRTC signaling failed.';'transport'===(0,n.webRtcFailureDisposition)('signaling-failed',k?.connectionState??'closed')&&H(c)}var t})(),()=>{h=!0,window.removeEventListener('pagehide',A),window.removeEventListener('beforeunload',A),F.abort(),void 0!==t&&window.clearTimeout(t),void 0!==U.current&&(window.clearTimeout(U.current),U.current=void 0),j(!0),W(null),k?.close()}},[T,R,y,C,S,D]),{stream:h,failure:k,error:L,markFrameDecoded:F}};var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c=[{urls:['stun:stun.l.google.com:19302']},{urls:['stun:stun1.l.google.com:19302']}],s=3e3,l=2e4,u=4e3,f=500,w=30,v=500,p=5e3;function b(){if('function'==typeof crypto.randomUUID)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint8Array(16));t[6]=15&t[6]|64,t[8]=63&t[8]|128;const n=Array.from(t,t=>t.toString(16).padStart(2,'0')).join('');return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}},162,[38,163,164]);
219
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.nextWebRtcFallbackCodec=n,e.webRtcFallbackDecision=function(t,c,o){if('permanent'===o.kind)return{type:'switch-to-http'};if(o.codec!==c)return null;const u=n(t,c);return u&&u!==c?{type:'retry-codec',codec:u}:{type:'switch-to-http'}},e.webRtcFailureDisposition=function(t,n){return'first-frame-timeout'===t&&'connected'===n?'codec':'transport'};const t={h264:['h264','vp8','vp9'],vp9:['vp9','vp8'],vp8:['vp8']};function n(n,c){const o=t[n],u=o.indexOf(c);return-1===u?o[0]??null:o[u+1]??null}},163,[]);
220
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WebRtcSignalingBusyError",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"WebRtcSignalingTimeoutError",{enumerable:!0,get:function(){return n}}),e.closeWebRtcSession=async function({url:t,sessionId:n,keepalive:o=!1,sendBeacon:s,fetchImpl:c=fetch}){const u=JSON.stringify({sessionId:n}),l=s??('undefined'!=typeof navigator&&'function'==typeof navigator.sendBeacon?navigator.sendBeacon.bind(navigator):void 0);if(o&&l)try{if(l(t,new Blob([u],{type:'text/plain;charset=UTF-8'})))return}catch{}await c(t,{method:'POST',headers:{'Content-Type':'application/json'},body:u,keepalive:o}).then(()=>{},()=>{})},e.postWebRtcOffer=async function({url:c,body:u,signal:l,requestTimeoutMs:b,busyRetryIntervalMs:f,busyRetryCount:y,fetchImpl:p=fetch}){for(let h=0;h<=y;h++){if(l?.aborted)throw o(l);const w=new AbortController;let v=!1;const T=()=>w.abort(l?o(l):void 0);l?.addEventListener('abort',T,{once:!0});const E=setTimeout(()=>{v=!0,w.abort()},b);let R;try{R=await p(c,{method:'POST',headers:{'Content-Type':'application/json'},signal:w.signal,body:u})}catch(t){if(v&&!l?.aborted)throw new n;throw t}finally{clearTimeout(E),l?.removeEventListener('abort',T)}if(409!==R.status)return R;if(await(R.body?.cancel()),h===y)throw new t;await s(f,l)}throw new t};class t extends Error{constructor(){super('WebRTC signaling stayed busy for too long. Reload to try again.'),this.name='WebRtcSignalingBusyError'}}class n extends Error{constructor(){super('WebRTC signaling timed out.'),this.name='WebRtcSignalingTimeoutError'}}function o(t){return t.reason??new DOMException('The operation was aborted','AbortError')}function s(t,n){return n?.aborted?Promise.reject(o(n)):new Promise((s,c)=>{const u=setTimeout(function(){n?.removeEventListener('abort',l),s()},t);function l(){clearTimeout(u),c(n?o(n):new DOMException('The operation was aborted','AbortError'))}n?.addEventListener('abort',l,{once:!0})})}},164,[]);
221
+ __d(function(g,_r,i,_a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAndroidDeviceClient=function(y){const{baseUrl:v,enabled:b=!0,device:S=null}=y,k=b&&!!v,[w,C]=(0,t.useState)('idle'),[$,E]=(0,t.useState)(null),[K,N]=(0,t.useState)(null),[I,O]=(0,t.useState)(0),[R,U]=(0,t.useState)([]),[P,z]=(0,t.useState)(!1),[T,A]=(0,t.useState)(l),[F,M]=(0,t.useState)(null),[W,j]=(0,t.useState)(null),L=(0,t.useRef)(null),J=(0,t.useRef)(null),H=(0,t.useRef)(0),_=(0,t.useCallback)(t=>{J.current=t??null},[]),x=(0,t.useCallback)(()=>z(!0),[]),D=(0,t.useCallback)(()=>z(!1),[]),V=(0,t.useCallback)(()=>U([]),[]),B=(0,t.useCallback)(t=>{const n=L.current;return!(!n||n.readyState!==WebSocket.OPEN)&&(n.send(JSON.stringify(Object.assign({ack:!1},t))),!0)},[]),q=(0,t.useCallback)(t=>{B({type:'touch',action:p[t.phase],x:t.x,y:t.y,pointerId:0})},[B]),Q=(0,t.useCallback)(t=>{const n=u[t];n&&B(n)},[B]),G=(0,t.useCallback)(t=>{const n=(0,r.androidMessageForKeyboardInput)(t);return!!n&&B(n)},[B]),X=(0,t.useCallback)(()=>{B({type:'key',keycode:d,record:!1})},[B]),Y=(0,t.useCallback)(()=>{if(!v)return;const t=K&&K.width>K.height?'portrait':'landscape',n=`${h(v,'/api/orientation')}${S?`?device=${encodeURIComponent(S)}`:''}`;fetch(n,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({orientation:t})}).catch(()=>{})},[v,S,K]),Z=(0,t.useCallback)(async()=>{if(!v)return null;const t=`${h(v,'/api/screenshot')}${S?`?device=${encodeURIComponent(S)}`:''}`;try{const n=await fetch(t,{cache:'no-store'});return n.ok?await n.blob():null}catch{return null}},[v,S]),ee=(0,t.useCallback)(t=>{if(!v)return;M(t);const n=`${h(v,'/api/uimode')}${S?`?device=${encodeURIComponent(S)}`:''}`;fetch(n,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({night:'dark'===t?'yes':'no'})}).catch(()=>{})},[v,S]);return(0,t.useEffect)(()=>{if(!k||!v)return void C('idle');const t=!(0,n.isWebCodecsSupported)();if(t&&!a.MsePlayer.isSupported())return C('error'),void E('This browser cannot decode H.264 (WebCodecs unavailable).');C('connecting'),E(null);let r=!1,c=null,d=!1,l=500,u=null,p=null,h=!1,y=!1,b=0,w=0,$=0,K=performance.now();const I=()=>{if(p&&'closed'!==p.state)try{p.close()}catch{}p=null},R=()=>{const t=L.current,n=performance.now();t&&t.readyState===WebSocket.OPEN&&(n-b<s||(b=n,t.send(JSON.stringify({type:'reset-video',ack:!1}))))},U=t=>{const n=J.current,a=n?.getContext('2d',{alpha:!1,desynchronized:!0});if(!n||!a)return void t.close();n.width===t.displayWidth&&n.height===t.displayHeight||(n.width=t.displayWidth,n.height=t.displayHeight,N({width:t.displayWidth,height:t.displayHeight})),a.drawImage(t,0,0),t.close(),r||d||(d=!0,C('streaming'),E(null)),$++;const o=performance.now();if(o-K>=1e3){const t=Math.round(1e3*$/(o-K));$=0,K=o,O(n=>n===t?n:t)}},P=t=>{if('configured'===p?.state)return!0;I();const a=new VideoDecoder({output:t=>{r||p!==a?t.close():U(t)},error:()=>{p===a&&(I(),h=!1,y=!0,R())}});try{return a.configure({codec:(0,n.buildCodecString)(t),optimizeForLatency:!0}),p=a,!0}catch{try{a.close()}catch{}return R(),!1}},z=s=>{const l=(0,n.parseFramePacket)(s);if(t){const t=l.isKey??(0,n.scanAU)(l.data).isKey;if(!c){const t=J.current;if(!t)return void R();c=new a.MsePlayer(t,{onFirstFrame:()=>{r||d||(d=!0,C('streaming'),E(null))},onResize:(t,n)=>{r||N({width:t,height:n})},onFps:t=>{r||O(n=>n===t?n:t)},onError:t=>{r||(C('error'),E(t))},requestKeyframe:R})}return void c.feed(l.data,t,l.timestamp)}const u=null===l.isKey||l.isKey&&(!p||'configured'!==p.state||y)?(0,n.scanAU)(l.data):null,f=l.isKey??u?.isKey??!1,v=u?.spsBytes??null;if(!v||P(v)){if(y){if(!f)return;if(!p||'configured'!==p.state)return void R();y=!1}if(p&&'configured'===p.state){if(p.decodeQueueSize>o)return I(),h=!1,y=!0,void R();if(!h){if(!f)return void R();h=!0}try{p.decode(new EncodedVideoChunk({type:f?'key':'delta',timestamp:l.timestamp??Math.round(1e6*w/60),data:l.data})),w++}catch{I(),h=!1,y=!0,R()}}else f||R()}},T=()=>{if(r)return;let n;try{n=new WebSocket(f(v,S))}catch(t){return C('error'),void E(t instanceof Error?t.message:'Invalid server URL')}n.binaryType='arraybuffer',L.current=n,n.onopen=()=>{r||(l=500,t&&R())},n.onerror=()=>{},n.onclose=()=>{r||(I(),c?.destroy(),c=null,h=!1,w=0,d&&(d=!1,C('error'),E(t=>t??'Disconnected \u2014 retrying\u2026')),u=setTimeout(T,l),l=Math.min(Math.round(1.6*l),5e3))},n.onmessage=t=>{if(!r)if('string'!=typeof t.data)z(t.data);else try{const n=JSON.parse(t.data);'video-session'===n.type&&n.size&&Number.isFinite(n.size.width)&&Number.isFinite(n.size.height)&&(I(),c?.destroy(),c=null,w=0,h=!1,y=!0,N({width:n.size.width,height:n.size.height}),R())}catch{}}};return T(),()=>{r=!0,u&&clearTimeout(u),I(),c?.destroy(),c=null;try{L.current?.close()}catch{}L.current=null,C('idle'),N(null),O(0)}},[k,v,S]),(0,t.useEffect)(()=>{if(!P||!k||!v)return;let t=null;try{t=new EventSource(h(v,"/api/logcat"+(S?`?device=${encodeURIComponent(S)}`:'')))}catch{return}return t.addEventListener('log',t=>{try{const n=JSON.parse(t.data);U(t=>[...t,{id:"a"+ ++H.current,source:'logcat',message:n.line}].slice(-200))}catch{}}),()=>t?.close()},[P,k,v,S]),(0,t.useEffect)(()=>{if(!k||!v)return void A(l);let t=!1;return fetch(h(v,'/api/devices')).then(t=>t.json()).then(n=>{if(t||!Array.isArray(n.devices)||0===n.devices.length)return;const r=S??n.defaultSerial??null;A(n.devices.map(t=>{const n=String(t.serial??t.id??'android');return{id:n,name:String(t.model??t.name??t.product??n),platform:'android',current:n===r}}))}).catch(()=>{}),()=>{t=!0}},[k,v,S]),(0,t.useEffect)(()=>{if(j(null),!k||!v)return;let t=!1;const n=`${h(v,'/api/foreground')}${S?`?device=${encodeURIComponent(S)}`:''}`,r=async()=>{try{const r=await fetch(n,{cache:'no-store'}),a=await r.json();if(t||!a.ok||!a.app?.packageName)return;const o={id:a.app.packageName,label:a.app.label??void 0,pid:a.app.pid??void 0,activity:a.app.activity??void 0,version:a.app.versionName??void 0,build:a.app.versionCode??void 0,minSdk:a.app.minSdk??void 0,debuggable:a.app.debuggable??void 0};j(t=>{return t&&(r=o,(n=t).id===r.id&&n.label===r.label&&n.pid===r.pid&&n.activity===r.activity&&n.version===r.version&&n.build===r.build&&n.minSdk===r.minSdk&&n.debuggable===r.debuggable)?t:o;var n,r})}catch{}};r();const a=setInterval(r,c);return()=>{t=!0,clearInterval(a)}},[k,v,S]),(0,t.useEffect)(()=>{if(!k||!v)return void M(null);let t=!1;const n=`${h(v,'/api/uimode')}${S?`?device=${encodeURIComponent(S)}`:''}`;return fetch(n,{cache:'no-store'}).then(t=>t.json()).then(n=>{!t&&n.ok&&M('yes'===n.night?'dark':'light')}).catch(()=>{}),()=>{t=!0}},[k,v,S]),{platform:'android',status:w,error:$,screen:K,fps:I,devices:T,logs:R,logsEnabled:P,attachLogs:x,detachLogs:D,clearLogs:V,foregroundApp:W,videoKind:'canvas',attachVideo:_,sendTouch:q,sendKey:G,pressButton:Q,reload:X,rotate:Y,screenshot:Z,appearance:F,setAppearance:ee,hardwareKeyboardConnected:null,setHardwareKeyboardConnected:()=>{},toggleSoftwareKeyboard:()=>{}}};var t=_r(_d[0]),n=_r(_d[1]),r=_r(_d[2]),a=_r(_d[3]);const o=4,s=1500,c=5e3,d=46;const l=[{id:'android',name:'Emulator Android',platform:'android',current:!0}],u={home:{type:'home'},back:{type:'back'},recents:{type:'recents'},appSwitcher:{type:'recents'},power:{type:'power'}},p={begin:'down',move:'move',end:'up'};function h(t,n){return`${t.replace(/\/$/,'')}${n}`}function f(t,n){const r=new URL(h(t,'/ws'));return r.protocol='https:'===r.protocol?'wss:':'ws:',r.searchParams.set('frame-meta','1'),n&&r.searchParams.set('device',n),r.toString()}},165,[38,166,159,167]);
222
+ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildCodecString=function(t){const n=t[1].toString(16).padStart(2,'0'),i=t[2].toString(16).padStart(2,'0'),o=t[3].toString(16).padStart(2,'0');return`avc1.${n}${i}${o}`},e.scanAU=function(t){let n=!1,i=null;const o=t.length;let s=0;for(;s+2<o;){if(0===t[s]&&0===t[s+1]){let u=0;if(1===t[s+2]?u=3:s+3<o&&0===t[s+2]&&1===t[s+3]&&(u=4),u){const o=31&t[s+u];7!==o||i||(i=t.subarray(s+u)),5===o&&(n=!0),s+=u+1;continue}}s++}return{isKey:n,spsBytes:i}},e.parseFramePacket=function(s){const u=s instanceof Uint8Array?s:new Uint8Array(s);if(u.byteLength>i){const s=new DataView(u.buffer,u.byteOffset,i);if(s.getUint32(0,!1)===t&&s.getUint8(4)===n){const t=s.getBigUint64(8,!1);return{data:u.subarray(i),isKey:0!==(s.getUint8(5)&o),timestamp:t<=BigInt(Number.MAX_SAFE_INTEGER)?Number(t):null}}}return{data:u,isKey:null,timestamp:null}},e.isWebCodecsSupported=function(){return'undefined'!=typeof globalThis&&'VideoDecoder'in globalThis&&'EncodedVideoChunk'in globalThis};const t=1397050709,n=1,i=16,o=1},166,[]);
223
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MsePlayer",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const s='video/mp4; codecs="avc1.42E01E"';class o{static isSupported(){if('undefined'==typeof window||'undefined'==typeof MediaSource)return!1;try{return MediaSource.isTypeSupported(s)}catch{return!1}}muxer=new t.FragmentedMp4Muxer;sourceBuffer=null;queue=[];destroyed=!1;painted=!1;rafHandle=0;fpsWindowStart=0;fpsBaseFrames=0;constructor(t,s={}){this.canvas=t,this.callbacks=s,this.ctx=t.getContext('2d',{alpha:!1,desynchronized:!0});const o=document.createElement('video');o.muted=!0,o.defaultMuted=!0,o.autoplay=!0,o.playsInline=!0,o.setAttribute('playsinline',''),o.style.cssText='position:fixed;left:0;bottom:0;width:4px;height:4px;opacity:0.01;pointer-events:none;z-index:-1;',(document.body??document.documentElement).appendChild(o),this.video=o,this.mediaSource=new MediaSource,this.objectUrl=URL.createObjectURL(this.mediaSource),o.src=this.objectUrl,this.mediaSource.addEventListener('sourceopen',this.onSourceOpen,{once:!0}),o.addEventListener('error',this.onVideoError),this.rafHandle=requestAnimationFrame(this.tick)}feed(t,s,o){if(this.destroyed)return;if(!this.muxer.ready&&!s)return void this.callbacks.requestKeyframe?.();const{init:n,segment:c}=this.muxer.append(t,s,o);n&&(this.queue.push(n),this.setupSourceBuffer()),c&&this.queue.push(c),this.pump()}destroy(){this.destroyed=!0,this.rafHandle&&cancelAnimationFrame(this.rafHandle),this.rafHandle=0,this.video.removeEventListener('error',this.onVideoError);try{this.sourceBuffer&&this.sourceBuffer.removeEventListener('updateend',this.pump)}catch{}try{'open'===this.mediaSource.readyState&&this.mediaSource.endOfStream()}catch{}try{this.video.pause(),this.video.removeAttribute('src'),this.video.load(),this.video.remove()}catch{}try{URL.revokeObjectURL(this.objectUrl)}catch{}this.queue.length=0}onSourceOpen=()=>{try{URL.revokeObjectURL(this.objectUrl)}catch{}this.setupSourceBuffer(),this.pump()};onVideoError=()=>{this.destroyed||this.callbacks.onError?.('Video playback error')};setupSourceBuffer(){if(this.sourceBuffer||'open'!==this.mediaSource.readyState)return;const t=this.muxer.codec;if(!t)return;let o=`video/mp4; codecs="${t}"`;if(!MediaSource.isTypeSupported(o)){if(!MediaSource.isTypeSupported(s))return void this.callbacks.onError?.('This browser cannot decode this H.264 profile.');o=s}try{const t=this.mediaSource.addSourceBuffer(o);t.mode='segments',t.addEventListener('updateend',this.pump),this.sourceBuffer=t}catch{this.callbacks.onError?.('Failed to start MSE video buffer.')}}pump=()=>{const t=this.sourceBuffer;if(this.destroyed||!t||t.updating||'open'!==this.mediaSource.readyState)return;if(this.pruneBackBuffer())return;const s=this.queue.shift();if(s)try{t.appendBuffer(s)}catch(t){'QuotaExceededError'===t?.name?(this.queue.unshift(s),this.pruneBackBuffer(!0)):this.callbacks.onError?.('Failed to append video data.')}};pruneBackBuffer(t=!1){const s=this.sourceBuffer;if(!s||s.updating||0===s.buffered.length)return!1;const o=s.buffered.start(0),n=this.video.currentTime-(t?3:30);if(n>o+.1)try{return s.remove(o,n),!0}catch{return!1}return!1}tick=()=>{if(this.destroyed)return;this.rafHandle=requestAnimationFrame(this.tick);const t=this.video,s=t.buffered;if(s.length>0){const o=s.start(0),n=s.end(s.length-1),c=n-t.currentTime;if(t.currentTime>n+.05||t.currentTime<o-.05||c>.5){try{t.currentTime=Math.max(o,n-.03)}catch{}t.playbackRate=1}else t.playbackRate=c>.05?1+Math.min(8*(c-.05),1.5):1}t.paused&&t.readyState>=2&&t.play().catch(()=>{}),0!==t.videoWidth&&(this.painted||(this.painted=!0,this.canvas.width=t.videoWidth,this.canvas.height=t.videoHeight,this.callbacks.onResize?.(t.videoWidth,t.videoHeight),this.callbacks.onFirstFrame?.(),this.fpsWindowStart=performance.now(),this.fpsBaseFrames=t.getVideoPlaybackQuality?.().totalVideoFrames??0),this.ctx&&this.ctx.drawImage(t,0,0),this.reportFps())};reportFps(){const t=performance.now();if(t-this.fpsWindowStart<1e3)return;const s=this.video.getVideoPlaybackQuality?.().totalVideoFrames;if(null!=s){const o=Math.round(1e3*(s-this.fpsBaseFrames)/(t-this.fpsWindowStart));this.callbacks.onFps?.(o),this.fpsBaseFrames=s}this.fpsWindowStart=t}}},167,[168]);
224
+ __d(function(g,_r,_i,a,m,e,d){"use strict";function t(t){return new Uint8Array([t>>8&255,255&t])}function n(t){return new Uint8Array([t>>>24&255,t>>>16&255,t>>>8&255,255&t])}function i(t){const i=Math.floor(t/4294967296),s=t>>>0;return new Uint8Array([...n(i),...n(s)])}function s(t){return new Uint8Array([t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)])}function r(t){let n=0;for(const i of t)n+=i.byteLength;const i=new Uint8Array(n);let s=0;for(const n of t)i.set(n,s),s+=n.byteLength;return i}function o(t,...i){const o=r(i);return r([n(8+o.byteLength),s(t),o])}function*h(t){const n=t.length,i=i=>{for(let s=i;s+2<n;s++)if(0===t[s]&&0===t[s+1]){if(1===t[s+2])return{pos:s,len:3};if(s+3<n&&0===t[s+2]&&1===t[s+3])return{pos:s,len:4}}return null};let s=i(0);for(;s;){const r=s.pos+s.len,o=i(r),h=o?o.pos:n;h>r&&(yield t.subarray(r,h)),s=o}}function u(t){const n=[];for(let i=0;i<t.length;i++)i+2<t.length&&0===t[i]&&0===t[i+1]&&3===t[i+2]?(n.push(0,0),i+=2):n.push(t[i]);return new Uint8Array(n)}Object.defineProperty(e,'__esModule',{value:!0}),e.codecStringFromSps=y,Object.defineProperty(e,"FragmentedMp4Muxer",{enumerable:!0,get:function(){return w}});class c{pos=0;constructor(t){this.data=t}bit(){const t=(this.data[this.pos>>3]??0)>>7-(7&this.pos)&1;return this.pos++,t}bits(t){let n=0;for(let i=0;i<t;i++)n=n<<1|this.bit();return n>>>0}ue(){let t=0;for(;0===this.bit()&&t<32;)t++;return 0===t?0:(1<<t)-1+this.bits(t)}se(){const t=this.ue();return 1&t?t+1>>1:-(t>>1)}}const l=new Set([100,110,122,244,44,83,86,118,128,138,139,134,135]);function f(t,n){let i=8,s=8;for(let r=0;r<n;r++){if(0!==s){s=(i+t.se()+256)%256}i=0===s?i:s}}function b(t){const n=new c(u(t.subarray(1))),i=n.bits(8);n.bits(8),n.bits(8),n.ue();let s=1;if(l.has(i)&&(s=n.ue(),3===s&&n.bit(),n.ue(),n.ue(),n.bit(),n.bit())){const t=3!==s?8:12;for(let i=0;i<t;i++)n.bit()&&f(n,i<6?16:64)}n.ue();const r=n.ue();if(0===r)n.ue();else if(1===r){n.bit(),n.se(),n.se();const t=n.ue();for(let i=0;i<t;i++)n.se()}n.ue(),n.bit();const o=n.ue(),h=n.ue(),b=n.bit();b||n.bit(),n.bit();let y=0,p=0,w=0,A=0;n.bit()&&(y=n.ue(),p=n.ue(),w=n.ue(),A=n.ue());const U=16*(o+1),v=(2-b)*(h+1)*16,L=0===s?1:0===s?1:2,M=(0===s?1:0===s?1:2)*(2-b);return{width:Math.max(0,U-L*(y+p)),height:Math.max(0,v-M*(w+A))}}function y(t){const n=t=>t.toString(16).padStart(2,'0');return`avc1.${n(t[1])}${n(t[2])}${n(t[3])}`}const p=r([n(65536),n(0),n(0),n(0),n(65536),n(0),n(0),n(0),n(1073741824)]);class w{sps=null;pps=null;codecKey='';width=0;height=0;seq=1;baseMediaDecodeTime=0;prevPtsTicks=null;get codec(){return this.sps?y(this.sps):null}get ready(){return!!this.sps&&!!this.pps}append(t,n,i){const s=[];let r,o=null,u=null;for(const n of h(t)){const t=31&n[0];7===t?o=n.slice():8===t?u=n.slice():t>=1&&t<=6&&s.push(n)}if(o&&u){const t=`${o.join(',')}|${u.join(',')}`;if(t!==this.codecKey){this.sps=o,this.pps=u,this.codecKey=t;const n=b(o);this.width=n.width,this.height=n.height,r=this.buildInit()}}if(!this.ready||0===s.length)return{init:r};const c=null==i?null:Math.round(9e4*i/1e6);let l=3e3;if(null!=c&&null!=this.prevPtsTicks){const t=c-this.prevPtsTicks;l=t>0?Math.min(t,45e4):3e3}null!=c&&(this.prevPtsTicks=c);return{init:r,segment:this.buildSegment(s,n,l)}}get dimensions(){return this.width&&this.height?{width:this.width,height:this.height}:null}buildInit(){const i=this.sps,h=this.pps,u=o('avcC',new Uint8Array([1,i[1],i[2],i[3],255,225]),t(i.byteLength),i,new Uint8Array([1]),t(h.byteLength),h),c=o('avc1',new Uint8Array(6),t(1),new Uint8Array(16),t(this.width),t(this.height),n(4718592),n(4718592),n(0),t(1),new Uint8Array(32),t(24),new Uint8Array([255,255]),u),l=o('stbl',o('stsd',n(0),n(1),c),o('stts',n(0),n(0)),o('stsc',n(0),n(0)),o('stsz',n(0),n(0),n(0)),o('stco',n(0),n(0))),f=o('dinf',o('dref',n(0),n(1),o('url ',n(1)))),b=o('minf',o('vmhd',n(1),n(0),n(0)),f,l),y=o('mdhd',n(0),n(0),n(0),n(9e4),n(0),t(21956),t(0)),w=o('hdlr',n(0),n(0),s('vide'),n(0),n(0),n(0),new Uint8Array([...s('Vide'),...s('oHan'),...s('dler'),0])),A=o('mdia',y,w,b),U=o('tkhd',new Uint8Array([0,0,0,7]),n(0),n(0),n(1),n(0),n(0),n(0),n(0),t(0),t(0),t(0),t(0),p,n(this.width<<16),n(this.height<<16)),v=o('trak',U,A),L=o('mvhd',n(0),n(0),n(0),n(1e3),n(0),n(65536),t(256),t(0),n(0),n(0),p,n(0),n(0),n(0),n(0),n(0),n(0),n(2)),M=o('trex',n(0),n(1),n(1),n(0),n(0),n(0)),S=o('moov',L,v,o('mvex',M));return r([o('ftyp',s('isom'),n(0),s('isom'),s('iso6'),s('avc1'),s('mp41')),S])}buildSegment(t,s,h){let u=0;for(const n of t)u+=4+n.byteLength;const c=new Uint8Array(u);let l=0;for(const i of t)c.set(n(i.byteLength),l),l+=4,c.set(i,l),l+=i.byteLength;const f=o('mfhd',n(0),n(this.seq++)),b=o('tfhd',new Uint8Array([0,2,0,0]),n(1)),y=o('tfdt',new Uint8Array([1,0,0,0]),i(this.baseMediaDecodeTime)),p=o('trun',new Uint8Array([0,0,7,1]),n(1),n(0),n(h),n(u),n(s?33554432:16842752)),w=o('moof',f,o('traf',b,y,p));return new DataView(w.buffer,w.byteOffset,w.byteLength).setInt32(w.byteLength-16,w.byteLength+8,!1),this.baseMediaDecodeTime+=h,r([w,o('mdat',c)])}}},168,[]);
225
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useActiveDeviceClient=function(s,u){const c='ios'===s?.platform,v='android'===s?.platform,_=(0,o.useIosDeviceClient)({enabled:c,baseUrl:c?(0,n.endpointFor)('ios',u):null,device:c?s?.device??null:null,streamMode:s?.streamMode}),b=(0,l.useAndroidDeviceClient)({enabled:v,baseUrl:v?(0,n.endpointFor)('android',u):null,device:v?s?.device??null:null,streamMode:s?.streamMode});return c?_:v?b:t.NOOP_DEVICE_CLIENT};var n=r(d[0]),l=r(d[1]),o=r(d[2]),t=r(d[3])},169,[157,165,154,170]);
226
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NOOP_DEVICE_CLIENT",{enumerable:!0,get:function(){return n}});const n={platform:'ios',status:'idle',error:null,screen:null,fps:0,devices:[],logs:[],logsEnabled:!1,attachLogs:()=>{},detachLogs:()=>{},clearLogs:()=>{},foregroundApp:null,videoKind:'img',attachVideo:()=>{},sendTouch:()=>{},sendKey:()=>!1,pressButton:()=>{},reload:()=>{},rotate:()=>{},screenshot:async()=>null,appearance:null,setAppearance:()=>{},hardwareKeyboardConnected:null,setHardwareKeyboardConnected:()=>{},toggleSoftwareKeyboard:()=>{}}},170,[]);
227
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return t.Button}}),Object.defineProperty(e,"ControlButton",{enumerable:!0,get:function(){return n.ControlButton}}),Object.defineProperty(e,"DeviceListItem",{enumerable:!0,get:function(){return o.DeviceListItem}}),Object.defineProperty(e,"DialogRoot",{enumerable:!0,get:function(){return u.DialogRoot}}),Object.defineProperty(e,"DialogContent",{enumerable:!0,get:function(){return u.DialogContent}}),Object.defineProperty(e,"DialogTitle",{enumerable:!0,get:function(){return u.DialogTitle}}),Object.defineProperty(e,"DialogContentContainer",{enumerable:!0,get:function(){return u.DialogContentContainer}}),Object.defineProperty(e,"DialogFooter",{enumerable:!0,get:function(){return u.DialogFooter}}),Object.defineProperty(e,"DialogClose",{enumerable:!0,get:function(){return u.DialogClose}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return c.Dropdown}}),Object.defineProperty(e,"DropdownItem",{enumerable:!0,get:function(){return b.DropdownItem}}),Object.defineProperty(e,"Logo",{enumerable:!0,get:function(){return f.Logo}}),Object.defineProperty(e,"ResizeHandle",{enumerable:!0,get:function(){return l.ResizeHandle}}),Object.defineProperty(e,"SegmentedControl",{enumerable:!0,get:function(){return p.SegmentedControl}}),Object.defineProperty(e,"SidebarToggle",{enumerable:!0,get:function(){return y.SidebarToggle}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return O.Switch}}),Object.defineProperty(e,"cx",{enumerable:!0,get:function(){return P.cx}}),Object.defineProperty(e,"Sidebar",{enumerable:!0,get:function(){return s.Sidebar}}),Object.defineProperty(e,"LogSidebar",{enumerable:!0,get:function(){return D.LogSidebar}}),Object.defineProperty(e,"StreamPanel",{enumerable:!0,get:function(){return C.StreamPanel}}),Object.defineProperty(e,"EmptyState",{enumerable:!0,get:function(){return L.EmptyState}}),Object.defineProperty(e,"DeviceSection",{enumerable:!0,get:function(){return v.DeviceSection}}),Object.defineProperty(e,"OutputSection",{enumerable:!0,get:function(){return w.OutputSection}}),Object.defineProperty(e,"CurrentAppSection",{enumerable:!0,get:function(){return h.CurrentAppSection}}),Object.defineProperty(e,"DeviceOptionsSection",{enumerable:!0,get:function(){return R.DeviceOptionsSection}}),Object.defineProperty(e,"KeyboardSection",{enumerable:!0,get:function(){return E.KeyboardSection}}),Object.defineProperty(e,"PhoneFrame",{enumerable:!0,get:function(){return B.PhoneFrame}}),Object.defineProperty(e,"LogControls",{enumerable:!0,get:function(){return M.LogControls}}),Object.defineProperty(e,"LogList",{enumerable:!0,get:function(){return F.LogList}}),Object.defineProperty(e,"LogRow",{enumerable:!0,get:function(){return I.LogRow}}),Object.defineProperty(e,"StreamControls",{enumerable:!0,get:function(){return T.StreamControls}}),Object.defineProperty(e,"StreamSection",{enumerable:!0,get:function(){return _.StreamSection}}),Object.defineProperty(e,"RecentDevicesModal",{enumerable:!0,get:function(){return k.RecentDevicesModal}}),Object.defineProperty(e,"BootErrorModal",{enumerable:!0,get:function(){return x.BootErrorModal}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),b=r(d[5]),f=r(d[6]),l=r(d[7]),p=r(d[8]),y=r(d[9]),O=r(d[10]),P=r(d[11]),j=r(d[12]);Object.keys(j).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}})});var S=r(d[13]);Object.keys(S).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return S[t]}})});var s=r(d[14]),D=r(d[15]),C=r(d[16]),L=r(d[17]),v=r(d[18]),w=r(d[19]),h=r(d[20]),R=r(d[21]),E=r(d[22]),B=r(d[23]),M=r(d[24]),F=r(d[25]),I=r(d[26]),T=r(d[27]),_=r(d[28]),k=r(d[29]),x=r(d[30]),z=r(d[31]);Object.keys(z).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return z[t]}})})},171,[172,174,175,177,233,248,249,250,251,252,253,232,176,173,254,258,269,272,256,264,259,261,262,270,265,266,267,271,268,257,273,274]);
228
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Button=function({children:n,theme:l="primary",size:u="sm",leftSlot:b,rightSlot:h,block:x=!1,disabled:p=!1,type:y="button",href:v,target:j,onClick:f,className:k,style:S}){const[O,z]=(0,s.useState)(!1),[I,R]=(0,s.useState)(!1),C=o[l],B=Object.assign({display:'inline-flex',alignItems:'center',justifyContent:'center',gap:'2xs'===u?4:'xs'===u?6:8,border:'1px solid',fontWeight:500,whiteSpace:'nowrap',cursor:p?'default':'pointer',textDecoration:'none',transition:'background-color 150ms ease, transform 100ms ease, opacity 150ms ease',width:x?'100%':void 0,transform:!p&&I?'scale(0.98)':void 0},c[u],{backgroundColor:p?C.disabledBackground:O?C.hover:C.background,borderColor:p?C.disabledBorder:C.border,color:p?C.disabledText:C.text,opacity:p?.8:1,pointerEvents:p?'none':void 0},S),M=(0,t.jsxs)(t.Fragment,{children:[b,null!=n&&(0,t.jsx)("span",{style:{display:'flex',lineHeight:1},children:n}),h]}),w={onMouseEnter:()=>z(!0),onMouseLeave:()=>{z(!1),R(!1)},onMouseDown:()=>R(!0),onMouseUp:()=>R(!1)};if(v)return(0,t.jsx)("a",Object.assign({href:p?void 0:v,target:j,className:k,style:B,onClick:p?void 0:f},w,{children:M}));return(0,t.jsx)("button",Object.assign({type:y,className:k,style:B,disabled:p,onClick:p?void 0:f},w,{children:M}))};var t=r(d[0]),s=r(d[1]),n=r(d[2]);const o={primary:l('primary'),secondary:l('secondary'),tertiary:l('tertiary'),quaternary:l('quaternary'),'primary-destructive':l('primary-destructive'),'secondary-destructive':l('secondary-destructive'),'tertiary-destructive':l('tertiary-destructive')};function l(t){const s=s=>`var(--expo-theme-button-${t}-${s})`;return{background:s('background'),hover:s('hover'),text:s('text'),border:s('border'),disabledBackground:s('disabled-background'),disabledBorder:s('disabled-border'),disabledText:s('disabled-text')}}const c={'2xs':Object.assign({height:28,paddingInline:8,borderRadius:n.radius.lg},n.textSize.xs),xs:Object.assign({height:32,paddingInline:12,borderRadius:n.radius.lg},n.textSize.xs),sm:Object.assign({height:36,paddingInline:16,borderRadius:n.radius.lg},n.textSize.sm),md:Object.assign({height:40,paddingInline:16,borderRadius:n.radius.lg},n.textSize.sm),lg:Object.assign({height:44,paddingInline:24,borderRadius:n.radius.lg},n.textSize.base),xl:Object.assign({height:48,paddingInline:24,borderRadius:n.radius.lg},n.textSize.base),'2xl':Object.assign({height:60,paddingInline:24,borderRadius:n.radius.lg},n.textSize.lg)}},172,[151,38,173]);
229
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"text",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"icon",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"border",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"radius",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"font",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"textSize",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"heading",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"tokens",{enumerable:!0,get:function(){return u}});const t={default:'var(--expo-theme-background-default)',screen:'var(--expo-theme-background-screen)',subtle:'var(--expo-theme-background-subtle)',element:'var(--expo-theme-background-element)',hover:'var(--expo-theme-background-hover)',selected:'var(--expo-theme-background-selected)',overlay:'var(--expo-theme-background-overlay)',success:'var(--expo-theme-background-success)',warning:'var(--expo-theme-background-warning)',danger:'var(--expo-theme-background-danger)',info:'var(--expo-theme-background-info)',preview:'var(--expo-theme-background-preview)'},n={default:'var(--expo-theme-text-default)',secondary:'var(--expo-theme-text-secondary)',tertiary:'var(--expo-theme-text-tertiary)',quaternary:'var(--expo-theme-text-quaternary)',link:'var(--expo-theme-text-link)',success:'var(--expo-theme-text-success)',warning:'var(--expo-theme-text-warning)',danger:'var(--expo-theme-text-danger)',info:'var(--expo-theme-text-info)',preview:'var(--expo-theme-text-preview)'},o={default:'var(--expo-theme-icon-default)',secondary:'var(--expo-theme-icon-secondary)',tertiary:'var(--expo-theme-icon-tertiary)',quaternary:'var(--expo-theme-icon-quaternary)',success:'var(--expo-theme-icon-success)',warning:'var(--expo-theme-icon-warning)',danger:'var(--expo-theme-icon-danger)',info:'var(--expo-theme-icon-info)',preview:'var(--expo-theme-icon-preview)'},x={default:'var(--expo-theme-border-default)',secondary:'var(--expo-theme-border-secondary)',success:'var(--expo-theme-border-success)',warning:'var(--expo-theme-border-warning)',danger:'var(--expo-theme-border-danger)',info:'var(--expo-theme-border-info)',preview:'var(--expo-theme-border-preview)'},p={none:'0',xs:'var(--expo-radius-xs)',sm:'var(--expo-radius-sm)',md:'var(--expo-radius-md)',lg:'var(--expo-radius-lg)',xl:'var(--expo-radius-xl)','2xl':'var(--expo-radius-2xl)','3xl':'var(--expo-radius-3xl)',full:'var(--expo-radius-full)'},c={none:'var(--expo-theme-shadows-none)',xs:'var(--expo-theme-shadows-xs)',sm:'var(--expo-theme-shadows-sm)',md:'var(--expo-theme-shadows-md)',lg:'var(--expo-theme-shadows-lg)',xl:'var(--expo-theme-shadows-xl)'},h={sans:'var(--expo-font-sans)',mono:'var(--expo-font-mono)'},l={'2xl':{fontSize:24,fontWeight:500,lineHeight:1.2,letterSpacing:'-0.5px'},xl:{fontSize:20,fontWeight:500,lineHeight:1.2,letterSpacing:'-0.25px'},lg:{fontSize:18,fontWeight:400,lineHeight:1.4,letterSpacing:'0'},base:{fontSize:16,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},sm:{fontSize:14,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},xs:{fontSize:12,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},'2xs':{fontSize:10,fontWeight:500,lineHeight:1.6,letterSpacing:'0'}},s={'5xl':{fontSize:64,fontWeight:600,lineHeight:1.1,letterSpacing:'-3px'},'4xl':{fontSize:48,fontWeight:600,lineHeight:1.1,letterSpacing:'-2px'},'3xl':{fontSize:32,fontWeight:600,lineHeight:1.1,letterSpacing:'-0.5px'},'2xl':{fontSize:24,fontWeight:600,lineHeight:1.2,letterSpacing:'-0.5px'},xl:{fontSize:20,fontWeight:600,lineHeight:1.4,letterSpacing:'-0.25px'},lg:{fontSize:18,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},base:{fontSize:16,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},sm:{fontSize:14,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},xs:{fontSize:12,fontWeight:600,lineHeight:1.6,letterSpacing:'0'}},u={bg:t,text:n,icon:o,border:x,radius:p,shadow:c,font:h,textSize:l,heading:s}},173,[]);
230
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["icon","label","variant","style","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ControlButton",{enumerable:!0,get:function(){return c}});var n,o=r(d[0]),t=(n=o)&&n.__esModule?n:{default:n},s=r(d[1]),l=r(d[2]),u=r(d[3]);const c=(0,l.forwardRef)(function(n,o){let{icon:c,label:f,variant:b="default",style:p,onMouseEnter:y,onMouseLeave:x,onMouseDown:M,onMouseUp:j}=n,v=(0,t.default)(n,e);const[h,_]=(0,l.useState)(!1),[w,O]=(0,l.useState)(!1),D='primary'===b,S=D?60:32,k={display:'flex',alignItems:'center',justifyContent:'center',width:S,height:S,borderRadius:u.radius.full,boxSizing:'border-box',border:D?'none':`1px solid ${u.border.default}`,backgroundColor:D?u.text.default:h?u.bg.element:'transparent',color:D?u.bg.default:u.icon.default,opacity:D&&h?.85:1,transition:'background-color 150ms ease, opacity 150ms ease, transform 100ms ease',transform:w?'scale(0.98)':void 0};return(0,s.jsxs)("button",Object.assign({ref:o,type:"button",onMouseEnter:e=>{_(!0),y?.(e)},onMouseLeave:e=>{_(!1),O(!1),x?.(e)},onMouseDown:e=>{O(!0),M?.(e)},onMouseUp:e=>{O(!1),j?.(e)},style:Object.assign({display:'flex',flexDirection:'column',alignItems:'center',gap:6,padding:0,border:'none',background:'none',cursor:'pointer',fontFamily:'inherit'},p)},v,{children:[(0,s.jsx)("span",{style:k,children:c}),(0,s.jsx)("span",{style:Object.assign({},u.textSize['2xs'],{color:u.text.secondary,textAlign:'center'}),children:f})]}))})},174,[131,151,38,173]);
231
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceListItem=function({name:l,version:c,unsupported:p=!1,selected:u=!1,onClick:x}){const[f,h]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),v={display:'flex',justifyContent:'space-between',alignItems:'center',gap:16,width:'100%',maxWidth:'100%',minWidth:0,boxSizing:'border-box',padding:16,border:'none',borderRadius:o.radius.xl,backgroundColor:u?o.bg.hover:f?o.bg.element:'transparent',cursor:'pointer',textAlign:'left',fontFamily:'inherit',transition:'background-color 150ms ease, transform 100ms ease',transform:b?'scale(0.98)':void 0};return(0,t.jsxs)("button",{type:"button",style:v,onClick:x,"aria-pressed":u,onMouseEnter:()=>h(!0),onMouseLeave:()=>{h(!1),y(!1)},onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),children:[(0,t.jsxs)("span",{style:{display:'flex',alignItems:'center',gap:8,flex:1,minWidth:0},children:[p&&(0,t.jsx)("span",{role:"img","aria-label":"Unsupported or untested device",title:"This device type is unsupported or untested.",style:{display:'flex',flex:'0 0 auto',color:o.icon.warning},children:(0,t.jsx)(s.WarningIcon,{size:16})}),(0,t.jsx)("span",{title:l,style:Object.assign({},o.textSize.sm,{flex:1,minWidth:0,fontWeight:500,color:o.text.default,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap'}),children:l})]}),(0,t.jsx)("span",{style:Object.assign({},o.textSize.sm,{fontWeight:500,color:o.text.secondary,whiteSpace:'nowrap',flexShrink:0}),children:c})]})};var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3])},175,[151,38,176,173]);
232
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PlusIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M12 5v14M5 12h14",stroke:n,strokeWidth:s,strokeLinecap:"round"})})},e.CloseIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M18 6 6 18M6 6l12 12",stroke:n,strokeWidth:s,strokeLinecap:"round"})})},e.PhoneIcon=function({size:t=28,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"6",y:"2",width:"12",height:"20",rx:"3",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M10 18.5h4",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})},e.RefreshIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v4.5h-4.5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.HomeIcon=function({size:t=20,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M3 9.5 12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V9.5Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.BackIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.RecentsIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("rect",{x:"5",y:"5",width:"14",height:"14",rx:"2",stroke:n,strokeWidth:s})})},e.ThemeIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"9",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M12 3a9 9 0 0 1 0 18Z",fill:n})]})},e.CameraIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.33,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M3 8a2 2 0 0 1 2-2h1.5L8 4h8l1.5 2H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("circle",{cx:"12",cy:"13",r:"3.25",stroke:n,strokeWidth:s})]})},e.DotsIcon=function({size:t=16,color:n="currentColor",style:s}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,style:s,children:[(0,o.jsx)("circle",{cx:"5",cy:"12",r:"1.5"}),(0,o.jsx)("circle",{cx:"12",cy:"12",r:"1.5"}),(0,o.jsx)("circle",{cx:"19",cy:"12",r:"1.5"})]})},e.SidebarIcon=function({size:t=20,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M9 3v18",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})},e.RotateIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7L21 8",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M21 3v5h-5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.PowerIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M12 2v10",stroke:n,strokeWidth:s,strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M18.36 6.64a9 9 0 1 1-12.73 0",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})},e.TrashIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6M10 11v6M14 11v6",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.SmartphoneIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2.5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 18h.01",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.WarningIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",style:h,children:[(0,o.jsx)("path",{d:"M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 9v4M12 17h.01",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.CheckIcon=function({size:t=17,color:n="currentColor",strokeWidth:s=2.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("polyline",{points:"20 6 9 17 4 12",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.ChevronDownIcon=function({size:t=14,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.ChevronsUpDownIcon=function({size:t=14,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("polyline",{points:"7 15 12 20 17 15",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("polyline",{points:"7 9 12 4 17 9",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})};var o=r(d[0])},176,[151]);
233
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["children","className","containerClassName","overlayClassName"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.DialogRoot=function({children:e,open:l,onOpenChange:t}){return(0,s.jsx)(o.Root,{open:l,onOpenChange:t,children:e})},_e.DialogContent=function(l){let{children:t,className:u,containerClassName:h,overlayClassName:f}=l,p=(0,n.default)(l,e);return(0,s.jsx)(o.Portal,{children:(0,s.jsxs)(o.Overlay,{className:"dialog-overlay group absolute z-dialogOverlay-600",children:[(0,s.jsx)("div",{className:(0,x.cx)('fixed inset-0 bg-[#000000]/50','group-data-[state=open]:animate-fadeIn group-data-[state=closed]:animate-fadeOut',f)}),(0,s.jsx)("div",{className:"fixed top-0 left-0 z-dialogContent-601 flex h-dvh w-dvw items-center justify-center",children:(0,s.jsxs)(o.Content,Object.assign({className:(0,x.cx)('overflow-hidden rounded-lg shadow-md outline-0','data-[state=open]:animate-largeSlideUpAndFadeIn data-[state=closed]:animate-fadeOut',h)},p,{children:[(0,s.jsx)(c.VisuallyHidden,{asChild:!0,children:(0,s.jsx)(o.Description,{})}),(0,s.jsx)("div",{className:(0,x.cx)('w-[90vw] max-w-125 overflow-hidden rounded-lg border border-default bg-default text-default outline-0',u),children:t})]}))})]})})},_e.DialogTitle=function({title:e}){return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2.5 border-b border-b-default px-6 py-4",children:[(0,s.jsx)(o.Title,{asChild:!0,children:(0,s.jsx)("h2",{style:Object.assign({},u.heading.base,{margin:0}),children:e})}),(0,s.jsx)(f,{children:(0,s.jsx)("button",{type:"button","aria-label":"Close",className:"dialog-close-button",children:(0,s.jsx)(h.CloseIcon,{size:20})})})]})},_e.DialogContentContainer=function({children:e,className:l}){return(0,s.jsx)("div",{className:(0,x.cx)('flex max-h-[calc(90vh-69px-53px)] flex-col gap-1.5 overflow-y-auto p-6 pt-4 outline-0',l),children:e})},_e.DialogFooter=function({children:e}){return(0,s.jsx)("div",{className:"flex items-center justify-end gap-3 border-t border-t-default bg-subtle px-3 py-4 max-md:py-2",children:e})},_e.DialogClose=f;var l,t=r(d[0]),n=(l=t)&&l.__esModule?l:{default:l},s=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),x=r(d[5]),h=r(d[6]);function f({children:e}){return(0,s.jsx)(o.Close,{asChild:!0,children:e})}},177,[131,151,178,231,173,232,176]);
234
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["__scopeDialog"],t=["forceMount"],n=["__scopeDialog"],o=["forceMount"],s=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],c=["__scopeDialog"],u=["__scopeDialog"],l=["__scopeDialog"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Close",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"Content",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"Description",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"Dialog",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"DialogClose",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"DialogContent",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"DialogDescription",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"DialogOverlay",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"DialogPortal",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"DialogTitle",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"DialogTrigger",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"Overlay",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"Portal",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"Title",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"Trigger",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"WarningProvider",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(_e,"createDialogScope",{enumerable:!0,get:function(){return N}});var d,f=r(_d[0]),p=(d=f)&&d.__esModule?d:{default:d},b=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),O=r(_d[2]),j=r(_d[3]),D=r(_d[4]),_=r(_d[5]),v=r(_d[6]),y=r(_d[7]),P=r(_d[8]),C=r(_d[9]),R=r(_d[10]),h=r(_d[11]),x=r(_d[12]),F=r(_d[13]),w=r(_d[14]),I=r(_d[15]),E=r(_d[16]),M="Dialog",[A,N]=(0,D.createContextScope)(M),[S,T]=A(M),k=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,l=b.useRef(null),d=b.useRef(null),[f,p]=(0,v.useControllableState)({prop:o,defaultProp:s??!1,onChange:c,caller:M});return(0,E.jsx)(S,{scope:t,triggerRef:l,contentRef:d,contentId:(0,_.useId)(),titleId:(0,_.useId)(),descriptionId:(0,_.useId)(),open:f,onOpenChange:p,onOpenToggle:b.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};k.displayName=M;var H="DialogTrigger",L=b.forwardRef((t,n)=>{const{__scopeDialog:o}=t,s=(0,p.default)(t,e),c=T(H,o),u=(0,j.useComposedRefs)(n,c.triggerRef);return(0,E.jsx)(h.Primitive.button,Object.assign({type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":ae(c.open)},s,{ref:u,onClick:(0,O.composeEventHandlers)(t.onClick,c.onOpenToggle)}))});L.displayName=H;var G="DialogPortal",[K,U]=A(G,{forceMount:void 0}),W=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:s}=e,c=T(G,t);return(0,E.jsx)(K,{scope:t,forceMount:n,children:b.Children.map(o,e=>(0,E.jsx)(R.Presence,{present:n||c.open,children:(0,E.jsx)(C.Portal,{asChild:!0,container:s,children:e})}))})};W.displayName=G;var Z="DialogOverlay",q=b.forwardRef((e,n)=>{const o=U(Z,e.__scopeDialog),{forceMount:s=o.forceMount}=e,c=(0,p.default)(e,t),u=T(Z,e.__scopeDialog);return u.modal?(0,E.jsx)(R.Presence,{present:s||u.open,children:(0,E.jsx)(B,Object.assign({},c,{ref:n}))}):null});q.displayName=Z;var z=(0,I.createSlot)("DialogOverlay.RemoveScroll"),B=b.forwardRef((e,t)=>{const{__scopeDialog:o}=e,s=(0,p.default)(e,n),c=T(Z,o),u=(0,y.useDismissableLayerSurface)(),l=(0,j.useComposedRefs)(t,u);return(0,E.jsx)(F.RemoveScroll,{as:z,allowPinchZoom:!0,shards:[c.contentRef],children:(0,E.jsx)(h.Primitive.div,Object.assign({"data-state":ae(c.open)},s,{ref:l,style:Object.assign({pointerEvents:"auto"},s.style)}))})}),J="DialogContent",Q=b.forwardRef((e,t)=>{const n=U(J,e.__scopeDialog),{forceMount:s=n.forceMount}=e,c=(0,p.default)(e,o),u=T(J,e.__scopeDialog);return(0,E.jsx)(R.Presence,{present:s||u.open,children:u.modal?(0,E.jsx)(V,Object.assign({},c,{ref:t})):(0,E.jsx)(X,Object.assign({},c,{ref:t}))})});Q.displayName=J;var V=b.forwardRef((e,t)=>{const n=T(J,e.__scopeDialog),o=b.useRef(null),s=(0,j.useComposedRefs)(t,n.contentRef,o);return b.useEffect(()=>{const e=o.current;if(e)return(0,w.hideOthers)(e)},[]),(0,E.jsx)(Y,Object.assign({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,O.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,O.composeEventHandlers)(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,O.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())}))}),X=b.forwardRef((e,t)=>{const n=T(J,e.__scopeDialog),o=b.useRef(!1),s=b.useRef(!1);return(0,E.jsx)(Y,Object.assign({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));const c=t.target,u=n.triggerRef.current?.contains(c);u&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}}))}),Y=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:u}=e,l=(0,p.default)(e,s),d=T(J,n);return(0,x.useFocusGuards)(),(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(P.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:u,children:(0,E.jsx)(y.DismissableLayer,Object.assign({role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":ae(d.open)},l,{ref:t,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1)}))})})}),$="DialogTitle",ee=b.forwardRef((e,t)=>{const{__scopeDialog:n}=e,o=(0,p.default)(e,c),s=T($,n);return(0,E.jsx)(h.Primitive.h2,Object.assign({id:s.titleId},o,{ref:t}))});ee.displayName=$;var te="DialogDescription",ne=b.forwardRef((e,t)=>{const{__scopeDialog:n}=e,o=(0,p.default)(e,u),s=T(te,n);return(0,E.jsx)(h.Primitive.p,Object.assign({id:s.descriptionId},o,{ref:t}))});ne.displayName=te;var oe="DialogClose",re=b.forwardRef((e,t)=>{const{__scopeDialog:n}=e,o=(0,p.default)(e,l),s=T(oe,n);return(0,E.jsx)(h.Primitive.button,Object.assign({type:"button"},o,{ref:t,onClick:(0,O.composeEventHandlers)(e.onClick,()=>s.onOpenChange(!1))}))});re.displayName=oe;var ie=e=>e.children;function ae(e){return e?"open":"closed"}},178,[131,38,179,180,181,182,184,186,190,191,192,187,193,194,230,188,151]);
235
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"canUseDOM",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"composeEventHandlers",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getActiveElement",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getOwnerDocument",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getOwnerWindow",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isFrame",{enumerable:!0,get:function(){return f}});var n=!("undefined"==typeof window||!window.document||!window.document.createElement);function t(n,t,{checkForDefaultPrevented:o=!0}={}){return function(u){if(n?.(u),!1===o||!u||!u.defaultPrevented)return t?.(u)}}function o(t){if(!n)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}function u(t){if(!n)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}function c(n,t=!1){const{activeElement:o}=u(n);if(!o?.nodeName)return null;if(f(o)&&o.contentDocument)return c(o.contentDocument.body,t);if(t){const n=o.getAttribute("aria-activedescendant");if(n){const t=u(o).getElementById(n);if(t)return t}}return o}function f(n){return"IFRAME"===n.tagName}},179,[]);
236
+ __d(function(g,r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"composeRefs",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"useComposedRefs",{enumerable:!0,get:function(){return u}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));function t(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return n=>{let u=!1;const o=e.map(e=>{const o=t(e,n);return u||"function"!=typeof o||(u=!0),o});if(u)return()=>{for(let n=0;n<o.length;n++){const u=o[n];"function"==typeof u?u():t(e[n],null)}}}}function u(...t){return e.useCallback(n(...t),t)}},180,[38]);
237
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["children"],t=["scope","children"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"createContext",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"createContextScope",{enumerable:!0,get:function(){return f}});var n,o=r(_d[0]),c=(n=o)&&n.__esModule?n:{default:n},u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),s=r(_d[2]);function d(t,n){const o=u.createContext(n);o.displayName=t+"Context";const d=t=>{const{children:n}=t,d=(0,c.default)(t,e),f=u.useMemo(()=>d,Object.values(d));return(0,s.jsx)(o.Provider,{value:f,children:n})};return d.displayName=t+"Provider",[d,function(e,c={}){const{optional:s=!1}=c,d=u.useContext(o);if(d)return d;if(void 0!==n)return n;if(!s)throw new Error(`\`${e}\` must be used within \`${t}\``)}]}function f(e,n=[]){let o=[];const d=()=>{const t=o.map(e=>u.createContext(e));return function(n){const o=n?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:Object.assign({},n,{[e]:o})}),[n,o])}};return d.scopeName=e,[function(n,d){const f=u.createContext(d);f.displayName=n+"Context";const l=o.length;o=[...o,d];const p=n=>{const{scope:o,children:d}=n,p=(0,c.default)(n,t),b=o?.[e]?.[l]||f,v=u.useMemo(()=>p,Object.values(p));return(0,s.jsx)(b.Provider,{value:v,children:d})};return p.displayName=n+"Provider",[p,function(t,o,c={}){const{optional:s=!1}=c,p=o?.[e]?.[l]||f,b=u.useContext(p);if(b)return b;if(void 0!==d)return d;if(!s)throw new Error(`\`${t}\` must be used within \`${n}\``)}]},l(d,...n)]}function l(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=n.reduce((t,{useScope:n,scopeName:o})=>{const c=n(e)[`__scope${o}`];return Object.assign({},t,c)},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}},181,[131,38,151]);
238
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useId",{enumerable:!0,get:function(){return o}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=e[" useId ".trim().toString()]||(()=>{}),u=0;function o(o){const[c,f]=e.useState(n());return(0,t.useLayoutEffect)(()=>{o||f(e=>e??String(u++))},[o]),o||(c?`radix-${c}`:"")}},182,[38,183]);
239
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useLayoutEffect",{enumerable:!0,get:function(){return t}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=globalThis?.document?e.useLayoutEffect:()=>{}},183,[38]);
240
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useControllableState",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"useControllableStateReducer",{enumerable:!0,get:function(){return f}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=e[" useInsertionEffect ".trim().toString()]||t.useLayoutEffect;function c({prop:t,defaultProp:n,onChange:o=()=>{},caller:c}){const[l,f,d]=u({defaultProp:n,onChange:o}),p=void 0!==t,b=p?t:l;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==p){const t=e?"controlled":"uncontrolled",n=p?"controlled":"uncontrolled";console.warn(`${c} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=p},[p,c])}return[b,e.useCallback(e=>{if(p){const n=s(e)?e(t):e;n!==t&&d.current?.(n)}else f(e)},[p,t,f,d])]}function u({defaultProp:t,onChange:n}){const[c,u]=e.useState(t),s=e.useRef(c),l=e.useRef(n);return o(()=>{l.current=n},[n]),e.useEffect(()=>{s.current!==c&&(l.current?.(c),s.current=c)},[c,s]),[c,u,l]}function s(e){return"function"==typeof e}var l=Symbol("RADIX:SYNC_STATE");function f(t,o,c,u){const{prop:s,defaultProp:f,onChange:d,caller:p}=o,b=void 0!==s,v=(0,n.useEffectEvent)(d);{const t=e.useRef(void 0!==s);e.useEffect(()=>{const e=t.current;if(e!==b){const t=e?"controlled":"uncontrolled",n=b?"controlled":"uncontrolled";console.warn(`${p} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=b},[b,p])}const h=[Object.assign({},c,{state:f})];u&&h.push(u);const[O,j]=e.useReducer((e,n)=>{if(n.type===l)return Object.assign({},e,{state:n.state});const o=t(e,n);return b&&!Object.is(o.state,e.state)&&v(o.state),o},...h),y=O.state,E=e.useRef(y);e.useEffect(()=>{E.current!==y&&(E.current=y,b||v(y))},[y,E,b]);const C=e.useMemo(()=>void 0!==s?Object.assign({},O,{state:s}):O,[O,s]);return e.useEffect(()=>{b&&!Object.is(s,O.state)&&j({type:l,state:s})},[s,O.state,b]),[C,j]}},184,[38,183,185]);
241
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useEffectEvent",{enumerable:!0,get:function(){return o}});var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=t[" useEffectEvent ".trim().toString()],u=t[" useInsertionEffect ".trim().toString()];function o(o){if("function"==typeof n)return n(o);const f=t.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof u?u(()=>{f.current=o}):(0,e.useLayoutEffect)(()=>{f.current=o}),t.useMemo(()=>(...e)=>f.current?.(...e),[])}},185,[183,38]);
242
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["disableOutsidePointerEvents","deferPointerDownOutside","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Branch",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"DismissableLayer",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"DismissableLayerBranch",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"useDismissableLayerSurface",{enumerable:!0,get:function(){return w}});var t,n,s=r(_d[0]),o=(t=s)&&t.__esModule?t:{default:t},u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),c=r(_d[2]),d=r(_d[3]),l=r(_d[4]),f=r(_d[5]),v=r(_d[6]),b="dismissableLayer.update",E=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),p=u.forwardRef((t,s)=>{const{disableOutsidePointerEvents:p=!1,deferPointerDownOutside:y=!1,onEscapeKeyDown:w,onPointerDownOutside:O,onFocusOutside:L,onInteractOutside:C,onDismiss:R}=t,k=(0,o.default)(t,e),S=u.useContext(E),[j,x]=u.useState(null),B=j?.ownerDocument??globalThis?.document,[,W]=u.useState({}),_=(0,l.useComposedRefs)(s,x),F=Array.from(S.layers),[T]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),H=T?F.indexOf(T):-1,M=j?F.indexOf(j):-1,N=S.layersWithOutsidePointerEventsDisabled.size>0,z=M>=H,A=u.useRef(!1),I=D(e=>{O?.(e),C?.(e),e.defaultPrevented||R?.()},{ownerDocument:B,deferPointerDownOutside:y,isDeferredPointerDownOutsideRef:A,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:u.useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...S.branches].some(t=>t.contains(e));return z&&!t},[S.branches,z])}),K=P(e=>{if(y&&A.current)return;const t=e.target;[...S.branches].some(e=>e.contains(t))||(L?.(e),C?.(e),e.defaultPrevented||R?.())},B),q=!!j&&M===F.length-1,G=(0,f.useCallbackRef)(e=>{"Escape"===e.key&&(w?.(e),!e.defaultPrevented&&R&&(e.preventDefault(),R()))});return u.useEffect(()=>{if(q)return B.addEventListener("keydown",G,{capture:!0}),()=>B.removeEventListener("keydown",G,{capture:!0})},[B,q,G]),u.useEffect(()=>{if(j)return p&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(n=B.body.style.pointerEvents,B.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(j)),S.layers.add(j),h(),()=>{p&&(S.layersWithOutsidePointerEventsDisabled.delete(j),0===S.layersWithOutsidePointerEventsDisabled.size&&(B.body.style.pointerEvents=n))}},[j,B,p,S]),u.useEffect(()=>()=>{j&&(S.layers.delete(j),S.layersWithOutsidePointerEventsDisabled.delete(j),h())},[j,S]),u.useEffect(()=>{const e=()=>W({});return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,v.jsx)(d.Primitive.div,Object.assign({},k,{ref:_,style:Object.assign({pointerEvents:N?z?"auto":"none":void 0},t.style),onFocusCapture:(0,c.composeEventHandlers)(t.onFocusCapture,K.onFocusCapture),onBlurCapture:(0,c.composeEventHandlers)(t.onBlurCapture,K.onBlurCapture),onPointerDownCapture:(0,c.composeEventHandlers)(t.onPointerDownCapture,I.onPointerDownCapture)}))});p.displayName="DismissableLayer";var y=u.forwardRef((e,t)=>{const n=u.useContext(E),s=u.useRef(null),o=(0,l.useComposedRefs)(t,s);return u.useEffect(()=>{const e=s.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,v.jsx)(d.Primitive.div,Object.assign({},e,{ref:o}))});function w(){const e=u.useContext(E),[t,n]=u.useState(null);return u.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}y.displayName="DismissableLayerBranch";var O=()=>!0;function D(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:c,shouldHandlePointerDownOutside:d=O}=t,l=(0,f.useCallbackRef)(e),v=u.useRef(!1),b=u.useRef(!1),E=u.useRef(new Map),p=u.useRef(()=>{});return u.useEffect(()=>{function e(){b.current=!1,o.current=!1,E.current.clear()}function t(e){if(!b.current)return;const t=e.target;t instanceof Node&&[...c].some(e=>e.contains(t))||E.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{b.current&&p.current()},0)}function u(e){b.current&&E.current.set(e.type,!1)}const f=t=>{if(t.target&&!v.current){let u=function(){n.removeEventListener("click",p.current);const t=Array.from(E.current.values()).some(Boolean);e(),t||L("dismissableLayer.pointerDownOutside",l,c,{discrete:!0})};if(!d(t.target))return n.removeEventListener("click",p.current),e(),void(v.current=!1);const c={originalEvent:t};b.current=!0,o.current=s&&0===t.button,E.current.clear(),s&&0===t.button?(n.removeEventListener("click",p.current),p.current=u,n.addEventListener("click",p.current,{once:!0})):u()}else n.removeEventListener("click",p.current),e();v.current=!1},y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const e of y)n.addEventListener(e,t,!0),n.addEventListener(e,u);const w=window.setTimeout(()=>{n.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(w),n.removeEventListener("pointerdown",f),n.removeEventListener("click",p.current);for(const e of y)n.removeEventListener(e,t,!0),n.removeEventListener(e,u)}},[n,l,s,o,c,d]),{onPointerDownCapture:()=>v.current=!0}}function P(e,t=globalThis?.document){const n=(0,f.useCallbackRef)(e),s=u.useRef(!1);return u.useEffect(()=>{const e=e=>{if(e.target&&!s.current){L("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function h(){const e=new CustomEvent(b);document.dispatchEvent(e)}function L(e,t,n,{discrete:s}){const o=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?(0,d.dispatchDiscreteCustomEvent)(o,u):o.dispatchEvent(u)}var C=p,R=y},186,[131,38,179,187,180,189,151]);
243
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["asChild"];function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Primitive",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"dispatchDiscreteCustomEvent",{enumerable:!0,get:function(){return b}});var n,u=r(_d[0]),o=(n=u)&&n.__esModule?n:{default:n},c=t(r(_d[1])),f=t(r(_d[2])),s=r(_d[3]),d=r(_d[4]),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const u=(0,s.createSlot)(`Primitive.${n}`),f=c.forwardRef((t,c)=>{const{asChild:f}=t,s=(0,o.default)(t,e),l=f?u:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(l,Object.assign({},s,{ref:c}))});return f.displayName=`Primitive.${n}`,Object.assign({},t,{[n]:f})},{});function b(e,t){e&&f.flushSync(()=>e.dispatchEvent(t))}var p=l},187,[131,38,40,188,151]);
244
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["children"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"Slot",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"Slottable",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"createSlot",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"createSlottable",{enumerable:!0,get:function(){return u}});var t,n=r(_d[0]),o=(t=n)&&t.__esModule?t:{default:t},l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),c=r(_d[2]);function s(t){const n=l.forwardRef((n,s)=>{let{children:d}=n,u=(0,o.default)(n,e),f=null,_=!1;const E=[];j(d)&&"function"==typeof S&&(d=S(d._payload)),l.Children.forEach(d,e=>{if(t=e,l.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p){_=!0;const t=e;let n="child"in t.props?t.props.child:t.props.children;j(n)&&"function"==typeof S&&(n=S(n._payload)),f=b(t,n),E.push(f?.props?.children)}else E.push(e);var t}),f?f=l.cloneElement(f,void 0,E):!_&&1===l.Children.count(d)&&l.isValidElement(d)&&(f=d);const P=f?h(f):void 0,R=(0,c.useComposedRefs)(s,P);if(!f){if(d||0===d)throw new Error(_?v(t):O(t));return d}const $=y(u,f.props??{});return f.type!==l.Fragment&&($.ref=s?R:P),l.cloneElement(f,$)});return n.displayName=`${t}.Slot`,n}var d=s("Slot"),p=Symbol.for("radix.slottable");function u(e){const t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=p,t}var f=u("Slottable"),b=(e,t)=>{if("child"in e.props){const t=e.props.child;return l.isValidElement(t)?l.cloneElement(t,void 0,e.props.children(t.props.children)):null}return l.isValidElement(t)?t:null};function y(e,t){const n=Object.assign({},t);for(const o in t){const l=e[o],c=t[o];/^on[A-Z]/.test(o)?l&&c?n[o]=(...e)=>{const t=c(...e);return l(...e),t}:l&&(n[o]=l):"style"===o?n[o]=Object.assign({},l,c):"className"===o&&(n[o]=[l,c].filter(Boolean).join(" "))}return Object.assign({},e,n)}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _=Symbol.for("react.lazy");function j(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===_&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}var O=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,v=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,S=l[" use ".trim().toString()]},188,[131,38,180]);
245
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useCallbackRef",{enumerable:!0,get:function(){return t}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0]));function t(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}},189,[38]);
246
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FocusScope",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return C}});var t,n=r(_d[0]),o=(t=n)&&t.__esModule?t:{default:t},u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),c=r(_d[2]),s=r(_d[3]),d=r(_d[4]),f=r(_d[5]),l="focusScope.autoFocusOnMount",p="focusScope.autoFocusOnUnmount",v={bubbles:!1,cancelable:!0},b=u.forwardRef((t,n)=>{const{loop:b=!1,trapped:F=!1,onMountAutoFocus:S,onUnmountAutoFocus:L}=t,O=(0,o.default)(t,e),[C,P]=u.useState(null),_=(0,d.useCallbackRef)(S),k=(0,d.useCallbackRef)(L),R=u.useRef(null),I=(0,c.useComposedRefs)(n,P),M=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(F){let e=function(e){if(M.paused||!C)return;const t=e.target;C.contains(t)?R.current=t:T(R.current,{select:!0})},t=function(e){if(M.paused||!C)return;const t=e.relatedTarget;null!==t&&(C.contains(t)||T(R.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&T(C)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return C&&o.observe(C,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[F,C,M.paused]),u.useEffect(()=>{if(C){N.add(M);const e=document.activeElement;if(!C.contains(e)){const t=new CustomEvent(l,v);C.addEventListener(l,_),C.dispatchEvent(t),t.defaultPrevented||(E(h(C).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&T(C))}return()=>{C.removeEventListener(l,_),setTimeout(()=>{const t=new CustomEvent(p,v);C.addEventListener(p,k),C.dispatchEvent(t),t.defaultPrevented||T(e??document.body,{select:!0}),C.removeEventListener(p,k),N.remove(M)},0)}}},[C,_,k,M]);const j=u.useCallback(e=>{if(!b&&!F)return;if(M.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,u]=y(t);o&&u?e.shiftKey||n!==u?e.shiftKey&&n===o&&(e.preventDefault(),b&&T(u,{select:!0})):(e.preventDefault(),b&&T(o,{select:!0})):n===t&&e.preventDefault()}},[b,F,M.paused]);return(0,f.jsx)(s.Primitive.div,Object.assign({tabIndex:-1},O,{ref:I,onKeyDown:j}))});function E(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(T(o,{select:t}),document.activeElement!==n)return}function y(e){const t=h(e);return[F(t,e),F(t.reverse(),e)]}function h(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function F(e,t){const n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e){if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):S(o,{upTo:t})))return o}}function S(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function L(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&L(e)&&t&&e.select()}}b.displayName="FocusScope";var N=(function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=O(e,t),e.unshift(t)},remove(t){e=O(e,t),e[0]?.resume()}}})();function O(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}var C=b},190,[131,38,180,187,189,151]);
247
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["container"];function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Portal",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return y}});var n,o=r(_d[0]),u=(n=o)&&n.__esModule?n:{default:n},c=t(r(_d[1])),f=t(r(_d[2])),l=r(_d[3]),s=r(_d[4]),d=r(_d[5]),b=c.forwardRef((t,n)=>{const{container:o}=t,b=(0,u.default)(t,e),[y,P]=c.useState(!1);(0,s.useLayoutEffect)(()=>P(!0),[]);const j=o||y&&globalThis?.document?.body;return j?f.createPortal((0,d.jsx)(l.Primitive.div,Object.assign({},b,{ref:n})),j):null});b.displayName="Portal";var y=b},191,[131,38,40,187,183,151]);
248
+ __d(function(g,r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Presence",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return l}});var e=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[0])),n=r(_d[1]);function t(n,t){return e.useReducer((e,n)=>t[e][n]??e,n)}var u=n=>{const{present:t,children:u}=n,i=o(t),s="function"==typeof u?u({present:i.isPresent}):e.Children.only(u),l=c(i.ref,f(s));return"function"==typeof u||i.isPresent?e.cloneElement(s,{ref:l}):null};function o(u){const[o,i]=e.useState(),c=e.useRef(null),f=e.useRef(u),l=e.useRef("none"),d=e.useRef(void 0),p=u?"mounted":"unmounted",[N,O]=t(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{"mounted"===N?(l.current=d.current??s(c.current),d.current=void 0):l.current="none"},[N]),(0,n.useLayoutEffect)(()=>{const e=c.current,n=f.current;if(n!==u){const t=l.current,o=s(e);if(u)d.current=o,O("MOUNT");else if("none"===o||"none"===e?.display)O("UNMOUNT");else{O(n&&t!==o?"ANIMATION_OUT":"UNMOUNT")}f.current=u}},[u,O]),(0,n.useLayoutEffect)(()=>{if(o){let e;const n=o.ownerDocument.defaultView??window,t=t=>{const u=s(c.current).includes(CSS.escape(t.animationName));if(t.target===o&&u&&(O("ANIMATION_END"),!f.current)){const t=o.style.animationFillMode;o.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=t)})}},u=e=>{e.target===o&&(l.current=s(c.current))};return o.addEventListener("animationstart",u),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{n.clearTimeout(e),o.removeEventListener("animationstart",u),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}O("ANIMATION_END")},[o,O]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:e.useCallback(e=>{if(e){const n=getComputedStyle(e);c.current=n,d.current=s(n)}else c.current=null;i(e)},[])}}function i(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function c(...n){const t=e.useRef(n);return t.current=n,e.useCallback(e=>{const n=t.current;let u=!1;const o=n.map(n=>{const t=i(n,e);return u||"function"!=typeof t||(u=!0),t});if(u)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():i(n[e],null)}}},[])}function s(e){return e?.animationName||"none"}function f(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}u.displayName="Presence";var l=u},192,[38,183]);
249
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FocusGuards",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"useFocusGuards",{enumerable:!0,get:function(){return u}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=0,n=null;function o(e){return u(),e.children}function u(){e.useEffect(()=>{n||(n={start:c(),end:c()});const{start:e,end:o}=n;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==o&&document.body.insertAdjacentElement("beforeend",o),t++,()=>{1===t&&(n?.start.remove(),n?.end.remove(),n=null),t=Math.max(0,t-1)}},[])}function c(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},193,[38]);
250
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"RemoveScroll",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},194,[195]);
251
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=r(_d[2]),o=r(_d[3]),c=(e=o)&&e.__esModule?e:{default:e},f=n.forwardRef(function(e,o){return n.createElement(u.RemoveScroll,(0,t.__assign)({},e,{ref:o,sideCar:c.default}))});f.classNames=u.RemoveScroll.classNames;var l=f},195,[196,38,197,218]);
252
+ __d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return G}}),_e.__extends=t,Object.defineProperty(_e,"__assign",{enumerable:!0,get:function(){return r}}),_e.__rest=n,_e.__decorate=o,_e.__param=a,_e.__esDecorate=i,_e.__runInitializers=c,_e.__propKey=u,_e.__setFunctionName=s,_e.__metadata=f,_e.__awaiter=l,_e.__generator=p,Object.defineProperty(_e,"__createBinding",{enumerable:!0,get:function(){return y}}),_e.__exportStar=_,_e.__values=d,_e.__read=h,_e.__spread=b,_e.__spreadArrays=v,_e.__spreadArray=w,_e.__await=m,_e.__asyncGenerator=g,_e.__asyncDelegator=O,_e.__asyncValues=j,_e.__makeTemplateObject=P,_e.__importStar=x,_e.__importDefault=T,_e.__classPrivateFieldGet=I,_e.__classPrivateFieldSet=D,_e.__classPrivateFieldIn=R,_e.__addDisposableResource=k,_e.__disposeResources=F,_e.__rewriteRelativeImportExtension=C;var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};function t(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function o(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function a(e,t){return function(r,n){t(r,n,e)}}function i(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,u=n.kind,s="getter"===u?"get":"setter"===u?"set":"value",f=!t&&e?n.static?e:e.prototype:null,l=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var _={};for(var d in n)_[d]="access"===d?{}:n[d];for(var d in n.access)_.access[d]=n.access[d];_.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var h=(0,r[y])("accessor"===u?{get:l.get,set:l.set}:l[s],_);if("accessor"===u){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(c=i(h.get))&&(l.get=c),(c=i(h.set))&&(l.set=c),(c=i(h.init))&&o.unshift(c)}else(c=i(h))&&("field"===u?o.unshift(c):l[s]=c)}f&&Object.defineProperty(f,n.name,l),p=!0}function c(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function u(e){return"symbol"==typeof e?e:"".concat(e)}function s(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function c(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,c)}u((n=n.apply(e,t||[])).next())})}function p(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return u([e,t])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function _(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function d(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function v(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function w(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function g(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),i("next"),i("throw"),i("return",function(e){return function(t){return Promise.resolve(t).then(e,s)}}),n[Symbol.asyncIterator]=function(){return this},n;function i(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||c(e,t)})},t&&(n[e]=t(n[e])))}function c(e,t){try{(r=o[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,s):f(a[0][2],r)}catch(e){f(a[0][3],e)}var r}function u(e){c("next",e)}function s(e){c("throw",e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:!1}:o?o(t):t}:o}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,a){o(n,a,(t=e[r](t)).done,t.value)})}}function o(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},E=function(e){return E=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},E(e)};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=E(e),n=0;n<r.length;n++)"default"!==r[n]&&y(t,e,r[n]);return S(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function k(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var A="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new A(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return(function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error})()}function C(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,a){return r?t?".jsx":".js":!n||o&&a?n+o+"."+a.toLowerCase()+"js":e}):e}var G={__extends:t,__assign:r,__rest:n,__decorate:o,__param:a,__esDecorate:i,__runInitializers:c,__propKey:u,__setFunctionName:s,__metadata:f,__awaiter:l,__generator:p,__createBinding:y,__exportStar:_,__values:d,__read:h,__spread:b,__spreadArrays:v,__spreadArray:w,__await:m,__asyncGenerator:g,__asyncDelegator:O,__asyncValues:j,__makeTemplateObject:P,__importStar:x,__importDefault:T,__classPrivateFieldGet:I,__classPrivateFieldSet:D,__classPrivateFieldIn:R,__addDisposableResource:k,__disposeResources:F,__rewriteRelativeImportExtension:C}},196,[]);
253
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"RemoveScroll",{enumerable:!0,get:function(){return c}});var e=r(_d[0]),o=(function(e){if(e&&e.__esModule)return e;var o={};return e&&Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),o.default=e,o})(r(_d[1])),n=r(_d[2]),l=r(_d[3]),t=r(_d[4]),s=function(){},c=o.forwardRef(function(n,c){var u=o.useRef(null),d=o.useState({onScrollCapture:s,onWheelCapture:s,onTouchMoveCapture:s}),f=d[0],_=d[1],h=n.forwardProps,v=n.children,p=n.className,b=n.removeScrollBar,C=n.enabled,P=n.shards,R=n.sideCar,w=n.noRelative,M=n.noIsolation,S=n.inert,y=n.allowPinchZoom,N=n.as,O=void 0===N?'div':N,j=n.gapMode,E=(0,e.__rest)(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=R,k=(0,l.useMergeRefs)([u,c]),I=(0,e.__assign)((0,e.__assign)({},E),f);return o.createElement(o.Fragment,null,C&&o.createElement(B,{sideCar:t.effectCar,removeScrollBar:b,shards:P,noRelative:w,noIsolation:M,inert:S,setCallbacks:_,allowPinchZoom:!!y,lockRef:u,gapMode:j}),h?o.cloneElement(o.Children.only(v),(0,e.__assign)((0,e.__assign)({},I),{ref:k})):o.createElement(O,(0,e.__assign)({},I,{className:p,ref:k}),v))});c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c.classNames={fullWidth:n.fullWidthClassName,zeroRight:n.zeroRightClassName}},197,[196,38,198,199,208]);
254
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"zeroRightClassName",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"fullWidthClassName",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"noScrollbarsClassName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"removedBarSizeVariable",{enumerable:!0,get:function(){return l}});var t='right-scroll-bar-position',n='width-before-scroll-bar',o='with-scroll-bars-hidden',l='--removed-body-scroll-bar-size'},198,[]);
255
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"assignRef",{enumerable:!0,get:function(){return n.assignRef}}),Object.defineProperty(e,"useCallbackRef",{enumerable:!0,get:function(){return t.useCallbackRef}}),Object.defineProperty(e,"createCallbackRef",{enumerable:!0,get:function(){return f.createCallbackRef}}),Object.defineProperty(e,"mergeRefs",{enumerable:!0,get:function(){return u.mergeRefs}}),Object.defineProperty(e,"useMergeRefs",{enumerable:!0,get:function(){return c.useMergeRefs}}),Object.defineProperty(e,"useTransformRef",{enumerable:!0,get:function(){return o.useTransformRef}}),Object.defineProperty(e,"transformRef",{enumerable:!0,get:function(){return b.transformRef}}),Object.defineProperty(e,"refToCallback",{enumerable:!0,get:function(){return l.refToCallback}}),Object.defineProperty(e,"useRefToCallback",{enumerable:!0,get:function(){return l.useRefToCallback}});var n=r(d[0]),t=r(d[1]),f=r(d[2]),u=r(d[3]),c=r(d[4]),o=r(d[5]),b=r(d[6]),l=r(d[7])},199,[200,201,202,203,204,205,206,207]);
256
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.assignRef=function(n,t){'function'==typeof n?n(t):n&&(n.current=t);return n}},200,[]);
257
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useCallbackRef=function(c,t){var l=(0,u.useState)(function(){return{value:c,callback:t,facade:{get current(){return l.value},set current(u){var c=l.value;c!==u&&(l.value=u,l.callback(u,c))}}}})[0];return l.callback=t,l.facade};var u=r(d[0])},201,[38]);
258
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createCallbackRef=function(t){var n=null;return{get current(){return n},set current(u){var c=n;c!==u&&(n=u,t(u,c))}}}},202,[]);
259
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.mergeRefs=function(u){return(0,t.createCallbackRef)(function(t){return u.forEach(function(u){return(0,n.assignRef)(u,t)})})};var n=r(d[0]),t=r(d[1])},203,[200,202]);
260
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useMergeRefs=function(e,c){var o=(0,t.useCallbackRef)(c||null,function(t){return e.forEach(function(e){return(0,n.assignRef)(e,t)})});return u(function(){var t=f.get(o);if(t){var u=new Set(t),c=new Set(e),s=o.current;u.forEach(function(e){c.has(e)||(0,n.assignRef)(e,null)}),c.forEach(function(e){u.has(e)||(0,n.assignRef)(e,s)})}f.set(o,e)},[e]),o};var e=(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n})(r(_d[0])),n=r(_d[1]),t=r(_d[2]),u='undefined'!=typeof window?e.useLayoutEffect:e.useEffect,f=new WeakMap},204,[38,200,201]);
261
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTransformRef=function(t,f){return(0,u.useCallbackRef)(null,function(u){return(0,n.assignRef)(t,f(u))})};var n=r(d[0]),u=r(d[1])},205,[200,201]);
262
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.transformRef=function(f,u){return(0,t.createCallbackRef)(function(t){return(0,n.assignRef)(f,u(t))})};var n=r(d[0]),t=r(d[1])},206,[200,202]);
263
+ __d(function(g,r,i,a,m,e,d){"use strict";function n(n){return function(t){'function'==typeof n?n(t):n&&(n.current=t)}}Object.defineProperty(e,'__esModule',{value:!0}),e.refToCallback=n,e.useRefToCallback=function(n){return c(n)};var t=function(){return null},u=new WeakMap,c=function(c){var f=c||t,o=u.get(f);if(o)return o;var l=n(f);return u.set(f,l),l}},207,[]);
264
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"effectCar",{enumerable:!0,get:function(){return t}});var t=(0,r(d[0]).createSidecarMedium)()},208,[209]);
265
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sidecar",{enumerable:!0,get:function(){return t.sidecar}}),Object.defineProperty(e,"useSidecar",{enumerable:!0,get:function(){return n.useSidecar}}),Object.defineProperty(e,"setConfig",{enumerable:!0,get:function(){return u.setConfig}}),Object.defineProperty(e,"createMedium",{enumerable:!0,get:function(){return c.createMedium}}),Object.defineProperty(e,"createSidecarMedium",{enumerable:!0,get:function(){return c.createSidecarMedium}}),Object.defineProperty(e,"renderCar",{enumerable:!0,get:function(){return o.renderCar}}),Object.defineProperty(e,"exportSidecar",{enumerable:!0,get:function(){return f.exportSidecar}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),c=r(d[3]),o=r(d[4]),f=r(d[5])},209,[210,211,214,215,216,217]);
266
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.sidecar=function(u,c){var o=function(){return c};return function(f){var s=(0,n.useSidecar)(u,f.sideCar),d=s[0];return s[1]&&c?o:d?t.createElement(d,(0,e.__assign)({},f)):null}};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2])},210,[196,38,211]);
267
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useSidecar=function(e,t){var c=t&&t.options||o;if(n.env.isNode&&!c.ssr)return[null,null];return u(e,t)};var e=r(d[0]),n=r(d[1]),t=new WeakMap,o={};function u(u,c){var s=c&&c.options||o,f=n.env.forceCache||n.env.isNode&&!!s.ssr||!s.async,l=(0,e.useState)(f?function(){return t.get(u)}:void 0),v=l[0],w=l[1],S=(0,e.useState)(null),p=S[0],h=S[1];return(0,e.useEffect)(function(){v||u().then(function(e){var n,o=c?c.read():e.default||e;if(!o)throw console.error('Sidecar error: with importer',u),c?(console.error('Sidecar error: with medium',c),n=new Error('Sidecar medium was not found')):n=new Error('Sidecar was not found in exports'),h(function(){return n}),n;t.set(u,o),w(function(){return o})},function(e){return h(function(){return e})})},[]),[v,p]}},211,[38,212]);
268
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"env",{enumerable:!0,get:function(){return t}});var t={isNode:r(d[0]).isNode,forceCache:!1}},212,[213]);
269
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return t}});const t=!1},213,[]);
270
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"config",{enumerable:!0,get:function(){return e}}),Object.defineProperty(_e,"setConfig",{enumerable:!0,get:function(){return n}});var e={onError:function(e){return console.error(e)}},n=function(n){Object.assign(e,n)}},214,[]);
271
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createMedium=function(n,o){void 0===o&&(o=u);return t(n,o)},e.createSidecarMedium=function(u){void 0===u&&(u={});var o=t(null);return o.options=(0,n.__assign)({async:!0,ssr:!1},u),o};var n=r(d[0]);function u(n){return n}function t(n,t){void 0===t&&(t=u);var o=[],c=!1;return{read:function(){if(c)throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');return o.length?o[o.length-1]:n},useMedium:function(n){var u=t(n,c);return o.push(u),function(){o=o.filter(function(n){return n!==u})}},assignSyncMedium:function(n){for(c=!0;o.length;){var u=o;o=[],u.forEach(n)}o={push:function(u){return n(u)},filter:function(){return o}}},assignMedium:function(n){c=!0;var u=[];if(o.length){var t=o;o=[],t.forEach(n),u=o}var f=function(){var t=u;u=[],t.forEach(n)},a=function(){return Promise.resolve().then(f)};a(),o={push:function(n){u.push(n),a()},filter:function(n){return u=u.filter(n),o}}}}}},215,[196]);
272
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.renderCar=function(u,c){function f(c){var f=c.stateRef,o=c.props,l=(0,t.useCallback)(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.useLayoutEffect)(function(){f.current(e)}),null},[]);return n.createElement(u,(0,e.__assign)({},o,{children:l}))}var o=n.memo(function(e){var n=e.stateRef,u=e.defaultState,c=e.children,f=(0,t.useState)(u.current),o=f[0],l=f[1];return(0,t.useEffect)(function(){n.current=l},[]),c.apply(void 0,o)},function(){return!0});return function(e){var t=n.useRef(c(e)),u=n.useRef(function(e){return t.current=e});return n.createElement(n.Fragment,null,n.createElement(f,{stateRef:u,props:e}),n.createElement(o,{stateRef:u,defaultState:t,children:e.children}))}};var e=r(_d[0]),t=r(_d[1]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(t)},216,[196,38]);
273
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.exportSidecar=function(e,t){return e.useMedium(t),n};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=function(n){var o=n.sideCar,u=(0,e.__rest)(n,["sideCar"]);if(!o)throw new Error('Sidecar: please provide `sideCar` property to import the right car');var c=o.read();if(!c)throw new Error('Sidecar medium not found');return t.createElement(c,(0,e.__assign)({},u))};n.isSideCarExport=!0},217,[196,38]);
274
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),c=r(d[1]),n=r(d[2]),o=(0,t.exportSidecar)(n.effectCar,c.RemoveScrollSideCar)},218,[209,219,208]);
275
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"getTouchXY",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"getDeltaXY",{enumerable:!0,get:function(){return s}}),_e.RemoveScrollSideCar=function(y){var k=t.useRef([]),E=t.useRef([0,0]),P=t.useRef(),w=t.useState(h++)[0],C=t.useState(o.styleSingleton)[0],R=t.useRef(y);t.useEffect(function(){R.current=y},[y]),t.useEffect(function(){if(y.inert){document.body.classList.add("block-interactivity-".concat(w));var t=(0,e.__spreadArray)([y.lockRef.current],(y.shards||[]).map(f),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(w))}),function(){document.body.classList.remove("block-interactivity-".concat(w)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(w))})}}},[y.inert,y.lockRef.current,y.shards]);var S=t.useCallback(function(e,t){if('touches'in e&&2===e.touches.length||'wheel'===e.type&&e.ctrlKey)return!R.current.allowPinchZoom;var n,o=l(e),c=E.current,s='deltaX'in e?e.deltaX:c[0]-o[0],f='deltaY'in e?e.deltaY:c[1]-o[1],d=e.target,v=Math.abs(s)>Math.abs(f)?'h':'v';if('touches'in e&&'h'===v&&'range'===d.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(!!p&&(p===d||p.contains(d)))return!1;var b=(0,u.locationCouldBeScrolled)(v,d);if(!b)return!0;if(b?n=v:(n='v'===v?'h':'v',b=(0,u.locationCouldBeScrolled)(v,d)),!b)return!1;if(!P.current&&'changedTouches'in e&&(s||f)&&(P.current=n),!n)return!0;var y=P.current||n;return(0,u.handleScroll)(y,t,e,'h'===y?s:f,!0)},[]),L=t.useCallback(function(e){var t=e;if(p.length&&p[p.length-1]===C){var n='deltaY'in t?s(t):l(t),o=k.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&d(e.delta,n)})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var c=(R.current.shards||[]).map(f).filter(Boolean).filter(function(e){return e.contains(t.target)});(c.length>0?S(t,c[0]):!R.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),_=t.useCallback(function(e,t,n,o){var c={name:e,delta:t,target:n,should:o,shadowParent:b(n)};k.current.push(c),setTimeout(function(){k.current=k.current.filter(function(e){return e!==c})},1)},[]),M=t.useCallback(function(e){E.current=l(e),P.current=void 0},[]),O=t.useCallback(function(e){_(e.type,s(e),e.target,S(e,y.lockRef.current))},[]),T=t.useCallback(function(e){_(e.type,l(e),e.target,S(e,y.lockRef.current))},[]);t.useEffect(function(){return p.push(C),y.setCallbacks({onScrollCapture:O,onWheelCapture:O,onTouchMoveCapture:T}),document.addEventListener('wheel',L,c.nonPassive),document.addEventListener('touchmove',L,c.nonPassive),document.addEventListener('touchstart',M,c.nonPassive),function(){p=p.filter(function(e){return e!==C}),document.removeEventListener('wheel',L,c.nonPassive),document.removeEventListener('touchmove',L,c.nonPassive),document.removeEventListener('touchstart',M,c.nonPassive)}},[]);var Y=y.removeScrollBar,j=y.inert;return t.createElement(t.Fragment,null,j?t.createElement(C,{styles:v(w)}):null,Y?t.createElement(n.RemoveScrollBar,{noRelative:y.noRelative,gapMode:y.gapMode}):null)};var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),n=r(_d[2]),o=r(_d[3]),c=r(_d[4]),u=r(_d[5]),l=function(e){return'changedTouches'in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},s=function(e){return[e.deltaX,e.deltaY]},f=function(e){return e&&'current'in e?e.current:e},d=function(e,t){return e[0]===t[0]&&e[1]===t[1]},v=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},h=0,p=[];function b(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}},219,[196,38,220,222,228,229]);
276
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RemoveScrollBar",{enumerable:!0,get:function(){return t.RemoveScrollBar}}),Object.defineProperty(e,"zeroRightClassName",{enumerable:!0,get:function(){return n.zeroRightClassName}}),Object.defineProperty(e,"fullWidthClassName",{enumerable:!0,get:function(){return n.fullWidthClassName}}),Object.defineProperty(e,"noScrollbarsClassName",{enumerable:!0,get:function(){return n.noScrollbarsClassName}}),Object.defineProperty(e,"removedBarSizeVariable",{enumerable:!0,get:function(){return n.removedBarSizeVariable}}),Object.defineProperty(e,"getGapWidth",{enumerable:!0,get:function(){return l.getGapWidth}});var t=r(d[0]),n=r(d[1]),l=r(d[2])},220,[221,198,227]);
277
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"lockAttribute",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"useLockAttribute",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"RemoveScrollBar",{enumerable:!0,get:function(){return f}});var n=(function(n){if(n&&n.__esModule)return n;var t={};return n&&Object.keys(n).forEach(function(e){var o=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:function(){return n[e]}})}),t.default=n,t})(r(_d[0])),t=r(_d[1]),e=r(_d[2]),o=r(_d[3]),c=(0,t.styleSingleton)(),u='data-scroll-locked',d=function(n,t,o,c){var d=n.left,l=n.top,s=n.right,f=n.gap;return void 0===o&&(o='margin'),"\n .".concat(e.noScrollbarsClassName," {\n overflow: hidden ").concat(c,";\n padding-right: ").concat(f,"px ").concat(c,";\n }\n body[").concat(u,"] {\n overflow: hidden ").concat(c,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(c,";"),'margin'===o&&"\n padding-left: ".concat(d,"px;\n padding-top: ").concat(l,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(f,"px ").concat(c,";\n "),'padding'===o&&"padding-right: ".concat(f,"px ").concat(c,";")].filter(Boolean).join(''),"\n }\n \n .").concat(e.zeroRightClassName," {\n right: ").concat(f,"px ").concat(c,";\n }\n \n .").concat(e.fullWidthClassName," {\n margin-right: ").concat(f,"px ").concat(c,";\n }\n \n .").concat(e.zeroRightClassName," .").concat(e.zeroRightClassName," {\n right: 0 ").concat(c,";\n }\n \n .").concat(e.fullWidthClassName," .").concat(e.fullWidthClassName," {\n margin-right: 0 ").concat(c,";\n }\n \n body[").concat(u,"] {\n ").concat(e.removedBarSizeVariable,": ").concat(f,"px;\n }\n")},l=function(){var n=parseInt(document.body.getAttribute(u)||'0',10);return isFinite(n)?n:0},s=function(){n.useEffect(function(){return document.body.setAttribute(u,(l()+1).toString()),function(){var n=l()-1;n<=0?document.body.removeAttribute(u):document.body.setAttribute(u,n.toString())}},[])},f=function(t){var e=t.noRelative,u=t.noImportant,l=t.gapMode,f=void 0===l?'margin':l;s();var p=n.useMemo(function(){return(0,o.getGapWidth)(f)},[f]);return n.createElement(c,{styles:d(p,!e,f,u?'':'!important')})}},221,[38,222,198,227]);
278
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"styleSingleton",{enumerable:!0,get:function(){return t.styleSingleton}}),Object.defineProperty(e,"stylesheetSingleton",{enumerable:!0,get:function(){return n.stylesheetSingleton}}),Object.defineProperty(e,"styleHookSingleton",{enumerable:!0,get:function(){return o.styleHookSingleton}});var t=r(d[0]),n=r(d[1]),o=r(d[2])},222,[223,225,224]);
279
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"styleSingleton",{enumerable:!0,get:function(){return t}});var n=r(d[0]),t=function(){var t=(0,n.styleHookSingleton)();return function(n){var u=n.styles,o=n.dynamic;return t(u,o),null}}},223,[224]);
280
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"styleHookSingleton",{enumerable:!0,get:function(){return n}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=function(){var n=(0,t.stylesheetSingleton)();return function(t,u){e.useEffect(function(){return n.add(t),function(){n.remove()}},[t&&u])}}},224,[38,225]);
281
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"stylesheetSingleton",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(){if(!document)return null;var n=document.createElement('style');n.type='text/css';var u=(0,t.getNonce)();return u&&n.setAttribute('nonce',u),n}function u(t){(document.head||document.getElementsByTagName('head')[0]).appendChild(t)}var o=function(){var t=0,o=null;return{add:function(c){var l,s;0==t&&(o=n())&&(s=c,(l=o).styleSheet?l.styleSheet.cssText=s:l.appendChild(document.createTextNode(s)),u(o)),t++},remove:function(){! --t&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}}},225,[226]);
282
+ __d(function(g,r,i,a,m,e,d){"use strict";var n;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setNonce",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getNonce",{enumerable:!0,get:function(){return c}});var t=function(t){n=t},c=function(){return n||('undefined'!=typeof __webpack_nonce__?__webpack_nonce__:void 0)}},226,[]);
283
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"zeroGap",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getGapWidth",{enumerable:!0,get:function(){return u}});var t={left:0,top:0,right:0,gap:0},n=function(t){return parseInt(t||'',10)||0},o=function(t){var o=window.getComputedStyle(document.body),u=o['padding'===t?'paddingLeft':'marginLeft'],p=o['padding'===t?'paddingTop':'marginTop'],f=o['padding'===t?'paddingRight':'marginRight'];return[n(u),n(p),n(f)]},u=function(n){if(void 0===n&&(n='margin'),'undefined'==typeof window)return t;var u=o(n),p=document.documentElement.clientWidth,f=window.innerWidth;return{left:u[0],top:u[1],right:u[2],gap:Math.max(0,f-p+u[2]-u[0])}}},227,[]);
284
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"nonPassive",{enumerable:!0,get:function(){return o}});var t=!1;if('undefined'!=typeof window)try{var n=Object.defineProperty({},'passive',{get:function(){return t=!0,!0}});window.addEventListener('test',n,n),window.removeEventListener('test',n,n)}catch(n){t=!1}var o=!!t&&{passive:!1}},228,[]);
285
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"locationCouldBeScrolled",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"handleScroll",{enumerable:!0,get:function(){return h}});var t=function(t){return'TEXTAREA'===t.tagName},n=function(n,o){if(!(n instanceof Element))return!1;var u=window.getComputedStyle(n);return'hidden'!==u[o]&&!(u.overflowY===u.overflowX&&!t(n)&&'visible'===u[o])},o=function(t){return n(t,'overflowY')},u=function(t){return n(t,'overflowX')},c=function(t,n){var o=n.ownerDocument,u=n;do{if('undefined'!=typeof ShadowRoot&&u instanceof ShadowRoot&&(u=u.host),f(t,u)){var c=s(t,u);if(c[1]>c[2])return!0}u=u.parentNode}while(u&&u!==o.body);return!1},l=function(t){return[t.scrollLeft,t.scrollWidth,t.clientWidth]},f=function(t,n){return'v'===t?o(n):u(n)},s=function(t,n){return'v'===t?[(o=n).scrollTop,o.scrollHeight,o.clientHeight]:l(n);var o},v=function(t,n){return'h'===t&&'rtl'===n?-1:1},h=function(t,n,o,u,c){var l=v(t,window.getComputedStyle(n).direction),h=l*u,w=o.target,b=n.contains(w),p=!1,y=h>0,N=0,E=0;do{if(!w)break;var S=s(t,w),T=S[0],_=S[1]-S[2]-l*T;(T||_)&&f(t,w)&&(N+=_,E+=T);var M=w.parentNode;w=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!b&&w!==document.body||b&&(n.contains(w)||n===w));return(y&&(c&&Math.abs(N)<1||!c&&h>N)||!y&&(c&&Math.abs(E)<1||!c&&-h>E))&&(p=!0),p}},229,[]);
286
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"hideOthers",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"inertOthers",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"supportsInert",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"suppressOthers",{enumerable:!0,get:function(){return h}});var e=function(e){return'undefined'==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},t=new WeakMap,n=new WeakMap,o={},u=0,c=function(e){return e&&(e.host||c(e.parentNode))},f=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=c(t);return n&&e.contains(n)?n:(console.error('aria-hidden',t,'in not contained inside',e,'. Doing nothing'),null)}).filter(function(e){return Boolean(e)})},s=function(e,c,s,l){var p=f(c,Array.isArray(e)?e:[e]);o[s]||(o[s]=new WeakMap);var y=o[s],h=[],v=new Set,b=new Set(p),A=function(e){e&&!v.has(e)&&(v.add(e),A(e.parentNode))};p.forEach(A);var w=function(e){e&&!b.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(v.has(e))w(e);else try{var o=e.getAttribute(l),u=null!==o&&'false'!==o,c=(t.get(e)||0)+1,f=(y.get(e)||0)+1;t.set(e,c),y.set(e,f),h.push(e),1===c&&u&&n.set(e,!0),1===f&&e.setAttribute(s,'true'),u||e.setAttribute(l,'true')}catch(t){console.error('aria-hidden: cannot operate on ',e,t)}})};return w(c),v.clear(),u++,function(){h.forEach(function(e){var o=t.get(e)-1,u=y.get(e)-1;t.set(e,o),y.set(e,u),o||(n.has(e)||e.removeAttribute(l),n.delete(e)),u||e.removeAttribute(s)}),--u||(t=new WeakMap,t=new WeakMap,n=new WeakMap,o={})}},l=function(t,n,o){void 0===o&&(o='data-aria-hidden');var u=Array.from(Array.isArray(t)?t:[t]),c=n||e(t);return c?(u.push.apply(u,Array.from(c.querySelectorAll('[aria-live], script'))),s(u,c,o,'aria-hidden')):function(){return null}},p=function(t,n,o){void 0===o&&(o='data-inert-ed');var u=n||e(t);return u?s(t,u,o,'inert'):function(){return null}},y=function(){return'undefined'!=typeof HTMLElement&&HTMLElement.prototype.hasOwnProperty('inert')},h=function(e,t,n){return void 0===n&&(n='data-suppressed'),(y()?p:l)(e,t,n)}},230,[]);
287
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"VISUALLY_HIDDEN_STYLES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"VisuallyHidden",{enumerable:!0,get:function(){return u}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=r(_d[2]),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u=e.forwardRef((e,u)=>(0,n.jsx)(t.Primitive.span,Object.assign({},e,{ref:u,style:Object.assign({},o,e.style)})));u.displayName="VisuallyHidden";var c=u},231,[38,187,151]);
288
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.cx=function(...n){return n.filter(Boolean).join(' ')}},232,[]);
289
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["children","trigger","className","sideOffset","collisionPadding","side","disabled"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.Dropdown=function(s){let{children:t,trigger:f,className:b,sideOffset:h=8,collisionPadding:u={left:16,right:16},side:x="bottom",disabled:j=!1}=s,p=(0,l.default)(s,e);return(0,o.jsxs)(n.Root,{children:[(0,o.jsx)(n.Trigger,{disabled:j,asChild:!0,children:f}),(0,o.jsx)(n.Portal,{children:(0,o.jsxs)(n.Content,Object.assign({className:(0,c.cx)('z-overDialog-605 flex min-w-55 flex-col gap-1 rounded-xl border border-secondary bg-default p-2 shadow-md','will-change-[opacity,transform]','data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade',b),side:x,sideOffset:h,collisionPadding:u},p,{children:[(0,o.jsx)(n.Arrow,{asChild:!0,children:(0,o.jsx)("div",{className:"relative -top-1 size-2.5 rotate-45 border-r border-b border-secondary bg-default"})}),t]}))})]})};var s,t=r(d[0]),l=(s=t)&&s.__esModule?s:{default:s},o=r(d[1]),n=r(d[2]),c=r(d[3])},233,[131,151,234,232]);
290
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["__scopeDropdownMenu","disabled"],n=["__scopeDropdownMenu"],o=["__scopeDropdownMenu"],t=["__scopeDropdownMenu"],u=["__scopeDropdownMenu"],d=["__scopeDropdownMenu"],p=["__scopeDropdownMenu"],c=["__scopeDropdownMenu"],s=["__scopeDropdownMenu"],l=["__scopeDropdownMenu"],f=["__scopeDropdownMenu"],b=["__scopeDropdownMenu"],w=["__scopeDropdownMenu"],j=["__scopeDropdownMenu"];function D(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n.default=e,n}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Arrow",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(_e,"CheckboxItem",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(_e,"Content",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"DropdownMenu",{enumerable:!0,get:function(){return K}}),Object.defineProperty(_e,"DropdownMenuArrow",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"DropdownMenuCheckboxItem",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"DropdownMenuContent",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"DropdownMenuGroup",{enumerable:!0,get:function(){return J}}),Object.defineProperty(_e,"DropdownMenuItem",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"DropdownMenuItemIndicator",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"DropdownMenuLabel",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(_e,"DropdownMenuPortal",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"DropdownMenuRadioGroup",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"DropdownMenuRadioItem",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"DropdownMenuSeparator",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_e,"DropdownMenuSub",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(_e,"DropdownMenuSubContent",{enumerable:!0,get:function(){return re}}),Object.defineProperty(_e,"DropdownMenuSubTrigger",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"DropdownMenuTrigger",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"Group",{enumerable:!0,get:function(){return de}}),Object.defineProperty(_e,"Item",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(_e,"ItemIndicator",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(_e,"Label",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(_e,"Portal",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"RadioGroup",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"RadioItem",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"Separator",{enumerable:!0,get:function(){return be}}),Object.defineProperty(_e,"Sub",{enumerable:!0,get:function(){return we}}),Object.defineProperty(_e,"SubContent",{enumerable:!0,get:function(){return je}}),Object.defineProperty(_e,"SubTrigger",{enumerable:!0,get:function(){return me}}),Object.defineProperty(_e,"Trigger",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"createDropdownMenuScope",{enumerable:!0,get:function(){return A}});var O,M=r(_d[0]),_=(O=M)&&O.__esModule?O:{default:O},y=D(r(_d[1])),h=r(_d[2]),v=r(_d[3]),P=r(_d[4]),x=r(_d[5]),I=r(_d[6]),R=r(_d[7]),C=D(R),S=r(_d[8]),N=r(_d[9]),T="DropdownMenu",[k,A]=(0,P.createContextScope)(T,[R.createMenuScope]),E=(0,R.createMenuScope)(),[G,H]=k(T),K=e=>{const{__scopeDropdownMenu:n,children:o,dir:t,open:u,defaultOpen:d,onOpenChange:p,modal:c=!0}=e,s=E(n),l=y.useRef(null),[f,b]=(0,x.useControllableState)({prop:u,defaultProp:d??!1,onChange:p,caller:T});return(0,N.jsx)(G,{scope:n,triggerId:(0,S.useId)(),triggerRef:l,contentId:(0,S.useId)(),open:f,onOpenChange:b,onOpenToggle:y.useCallback(()=>b(e=>!e),[b]),modal:c,children:(0,N.jsx)(C.Root,Object.assign({},s,{open:f,onOpenChange:b,dir:t,modal:c,children:o}))})};K.displayName=T;var L="DropdownMenuTrigger",F=y.forwardRef((n,o)=>{const{__scopeDropdownMenu:t,disabled:u=!1}=n,d=(0,_.default)(n,e),p=H(L,t),c=E(t),s=(0,v.useComposedRefs)(o,p.triggerRef);return(0,N.jsx)(C.Anchor,Object.assign({asChild:!0},c,{children:(0,N.jsx)(I.Primitive.button,Object.assign({type:"button",id:p.triggerId,"aria-haspopup":"menu","aria-expanded":p.open,"aria-controls":p.open?p.contentId:void 0,"data-state":p.open?"open":"closed","data-disabled":u?"":void 0,disabled:u},d,{ref:s,onPointerDown:(0,h.composeEventHandlers)(n.onPointerDown,e=>{u||0!==e.button||!1!==e.ctrlKey||(p.onOpenToggle(),p.open||e.preventDefault())}),onKeyDown:(0,h.composeEventHandlers)(n.onKeyDown,e=>{u||(["Enter"," "].includes(e.key)&&p.onOpenToggle(),"ArrowDown"===e.key&&p.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})}))}))});F.displayName=L;var q=e=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,n),u=E(o);return(0,N.jsx)(C.Portal,Object.assign({},u,t))};q.displayName="DropdownMenuPortal";var z="DropdownMenuContent",B=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:t}=e,u=(0,_.default)(e,o),d=H(z,t),p=E(t),c=y.useRef(!1);return(0,N.jsx)(C.Content,Object.assign({id:d.contentId,"aria-labelledby":d.triggerId},p,u,{ref:n,onCloseAutoFocus:(0,h.composeEventHandlers)(e.onCloseAutoFocus,e=>{c.current||d.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,h.composeEventHandlers)(e.onInteractOutside,e=>{const n=e.detail.originalEvent,o=0===n.button&&!0===n.ctrlKey,t=2===n.button||o;d.modal&&!t||(c.current=!0)}),style:Object.assign({},e.style,{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});B.displayName=z;var J=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,u=(0,_.default)(e,t),d=E(o);return(0,N.jsx)(C.Group,Object.assign({},d,u,{ref:n}))});J.displayName="DropdownMenuGroup";var Q=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,u),d=E(o);return(0,N.jsx)(C.Label,Object.assign({},d,t,{ref:n}))});Q.displayName="DropdownMenuLabel";var U=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,d),u=E(o);return(0,N.jsx)(C.Item,Object.assign({},u,t,{ref:n}))});U.displayName="DropdownMenuItem";var V=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,p),u=E(o);return(0,N.jsx)(C.CheckboxItem,Object.assign({},u,t,{ref:n}))});V.displayName="DropdownMenuCheckboxItem";var W=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,c),u=E(o);return(0,N.jsx)(C.RadioGroup,Object.assign({},u,t,{ref:n}))});W.displayName="DropdownMenuRadioGroup";var X=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,s),u=E(o);return(0,N.jsx)(C.RadioItem,Object.assign({},u,t,{ref:n}))});X.displayName="DropdownMenuRadioItem";var Y=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,l),u=E(o);return(0,N.jsx)(C.ItemIndicator,Object.assign({},u,t,{ref:n}))});Y.displayName="DropdownMenuItemIndicator";var Z=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,f),u=E(o);return(0,N.jsx)(C.Separator,Object.assign({},u,t,{ref:n}))});Z.displayName="DropdownMenuSeparator";var $=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,b),u=E(o);return(0,N.jsx)(C.Arrow,Object.assign({},u,t,{ref:n}))});$.displayName="DropdownMenuArrow";var ee=e=>{const{__scopeDropdownMenu:n,children:o,open:t,onOpenChange:u,defaultOpen:d}=e,p=E(n),[c,s]=(0,x.useControllableState)({prop:t,defaultProp:d??!1,onChange:u,caller:"DropdownMenuSub"});return(0,N.jsx)(C.Sub,Object.assign({},p,{open:c,onOpenChange:s,children:o}))},ne=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,w),u=E(o);return(0,N.jsx)(C.SubTrigger,Object.assign({},u,t,{ref:n}))});ne.displayName="DropdownMenuSubTrigger";var re=y.forwardRef((e,n)=>{const{__scopeDropdownMenu:o}=e,t=(0,_.default)(e,j),u=E(o);return(0,N.jsx)(C.SubContent,Object.assign({},u,t,{ref:n,style:Object.assign({},e.style,{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});re.displayName="DropdownMenuSubContent";var oe=K,te=F,ae=q,ue=B,de=J,pe=Q,ie=U,ce=V,se=W,le=X,fe=Y,be=Z,ge=$,we=ee,me=ne,je=re},234,[131,38,179,180,181,184,187,235,182,151]);
291
+ __d(function(g,r,_i,a,m,_e,_d){"use strict";const e=["__scopeMenu"],n=["forceMount"],t=["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"],o=["__scopeMenu"],u=["__scopeMenu"],c=["disabled","onSelect"],s=["__scopeMenu","disabled","textValue"],i=["checked","onCheckedChange"],l=["value","onValueChange"],d=["value"],f=["__scopeMenu","forceMount"],p=["__scopeMenu"],b=["__scopeMenu"],v=["forceMount","align"];function h(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n.default=e,n}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Anchor",{enumerable:!0,get:function(){return on}}),Object.defineProperty(_e,"Arrow",{enumerable:!0,get:function(){return bn}}),Object.defineProperty(_e,"CheckboxItem",{enumerable:!0,get:function(){return dn}}),Object.defineProperty(_e,"Content",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(_e,"Group",{enumerable:!0,get:function(){return sn}}),Object.defineProperty(_e,"Item",{enumerable:!0,get:function(){return ln}}),Object.defineProperty(_e,"ItemIndicator",{enumerable:!0,get:function(){return mn}}),Object.defineProperty(_e,"Label",{enumerable:!0,get:function(){return an}}),Object.defineProperty(_e,"Menu",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"MenuAnchor",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"MenuArrow",{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(_e,"MenuCheckboxItem",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(_e,"MenuContent",{enumerable:!0,get:function(){return be}}),Object.defineProperty(_e,"MenuGroup",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(_e,"MenuItem",{enumerable:!0,get:function(){return we}}),Object.defineProperty(_e,"MenuItemIndicator",{enumerable:!0,get:function(){return He}}),Object.defineProperty(_e,"MenuLabel",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(_e,"MenuPortal",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(_e,"MenuRadioGroup",{enumerable:!0,get:function(){return De}}),Object.defineProperty(_e,"MenuRadioItem",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"MenuSeparator",{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(_e,"MenuSub",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(_e,"MenuSubContent",{enumerable:!0,get:function(){return We}}),Object.defineProperty(_e,"MenuSubTrigger",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(_e,"Portal",{enumerable:!0,get:function(){return un}}),Object.defineProperty(_e,"RadioGroup",{enumerable:!0,get:function(){return fn}}),Object.defineProperty(_e,"RadioItem",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return rn}}),Object.defineProperty(_e,"Separator",{enumerable:!0,get:function(){return gn}}),Object.defineProperty(_e,"Sub",{enumerable:!0,get:function(){return vn}}),Object.defineProperty(_e,"SubContent",{enumerable:!0,get:function(){return jn}}),Object.defineProperty(_e,"SubTrigger",{enumerable:!0,get:function(){return hn}}),Object.defineProperty(_e,"createMenuScope",{enumerable:!0,get:function(){return ee}});var j,y=r(_d[0]),O=(j=y)&&j.__esModule?j:{default:j},M=h(r(_d[1])),P=r(_d[2]),_=r(_d[3]),C=r(_d[4]),w=r(_d[5]),x=r(_d[6]),E=r(_d[7]),R=r(_d[8]),k=r(_d[9]),S=r(_d[10]),D=r(_d[11]),I=h(D),F=r(_d[12]),T=r(_d[13]),L=r(_d[14]),A=r(_d[15]),H=h(A),K=r(_d[16]),G=r(_d[17]),N=r(_d[18]),V=r(_d[19]),U=r(_d[20]),B=["Enter"," "],X=["ArrowUp","PageDown","End"],Y=["ArrowDown","PageUp","Home",...X],z={ltr:[...B,"ArrowRight"],rtl:[...B,"ArrowLeft"]},W={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Z="Menu",[q,J,Q]=(0,_.createCollection)(Z),[$,ee]=(0,w.createContextScope)(Z,[Q,D.createPopperScope,A.createRovingFocusGroupScope]),ne=(0,D.createPopperScope)(),te=(0,A.createRovingFocusGroupScope)(),[re,oe]=$(Z),[ue,ce]=$(Z),se=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:c,modal:s=!0}=e,i=ne(n),[l,d]=M.useState(null),f=M.useRef(!1),p=(0,G.useCallbackRef)(c),b=(0,x.useDirection)(u);return M.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),M.useEffect(()=>{if(!t)return;const e=()=>p(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[t,p]),(0,U.jsx)(I.Root,Object.assign({},i,{children:(0,U.jsx)(re,{scope:n,open:t,onOpenChange:p,content:l,onContentChange:d,children:(0,U.jsx)(ue,{scope:n,onClose:M.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:b,modal:s,children:o})})}))};se.displayName=Z;var ae=M.forwardRef((n,t)=>{const{__scopeMenu:o}=n,u=(0,O.default)(n,e),c=ne(o);return(0,U.jsx)(I.Anchor,Object.assign({},c,u,{ref:t}))});ae.displayName="MenuAnchor";var ie="MenuPortal",[le,de]=$(ie,{forceMount:void 0}),fe=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,c=oe(ie,n);return(0,U.jsx)(le,{scope:n,forceMount:t,children:(0,U.jsx)(T.Presence,{present:t||c.open,children:(0,U.jsx)(F.Portal,{asChild:!0,container:u,children:o})})})};fe.displayName=ie;var pe="MenuContent",[me,ge]=$(pe),be=M.forwardRef((e,t)=>{const o=de(pe,e.__scopeMenu),{forceMount:u=o.forceMount}=e,c=(0,O.default)(e,n),s=oe(pe,e.__scopeMenu),i=ce(pe,e.__scopeMenu);return(0,U.jsx)(q.Provider,{scope:e.__scopeMenu,children:(0,U.jsx)(T.Presence,{present:u||s.open,children:(0,U.jsx)(q.Slot,{scope:e.__scopeMenu,children:i.modal?(0,U.jsx)(ve,Object.assign({},c,{ref:t})):(0,U.jsx)(he,Object.assign({},c,{ref:t}))})})})}),ve=M.forwardRef((e,n)=>{const t=oe(pe,e.__scopeMenu),o=M.useRef(null),u=(0,C.useComposedRefs)(n,o);return M.useEffect(()=>{const e=o.current;if(e)return(0,N.hideOthers)(e)},[]),(0,U.jsx)(ye,Object.assign({},e,{ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:(0,P.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))}),he=M.forwardRef((e,n)=>{const t=oe(pe,e.__scopeMenu);return(0,U.jsx)(ye,Object.assign({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))}),je=(0,K.createSlot)("MenuContent.ScrollLock"),ye=M.forwardRef((e,n)=>{const{__scopeMenu:o,loop:u=!1,trapFocus:c,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:v,onDismiss:h,disableOutsideScroll:j}=e,y=(0,O.default)(e,t),_=oe(pe,o),w=ce(pe,o),x=ne(o),S=te(o),D=J(o),[F,T]=M.useState(null),L=M.useRef(null),A=(0,C.useComposedRefs)(n,L,_.onContentChange),K=M.useRef(0),G=M.useRef(""),N=M.useRef(0),B=M.useRef(null),z=M.useRef("right"),W=M.useRef(0),Z=j?V.RemoveScroll:M.Fragment,q=j?{as:je,allowPinchZoom:!0}:void 0,Q=e=>{const n=G.current+e,t=D().filter(e=>!e.disabled),o=document.activeElement,u=t.find(e=>e.ref.current===o)?.textValue,c=$e(t.map(e=>e.textValue),n,u),s=t.find(e=>e.textValue===c)?.ref.current;!(function e(n){G.current=n,window.clearTimeout(K.current),""!==n&&(K.current=window.setTimeout(()=>e(""),1e3))})(n),s&&setTimeout(()=>s.focus())};M.useEffect(()=>()=>window.clearTimeout(K.current),[]),(0,R.useFocusGuards)();const $=M.useCallback(e=>z.current===B.current?.side&&nn(e,B.current?.area),[]);return(0,U.jsx)(me,{scope:o,searchRef:G,onItemEnter:M.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:M.useCallback(e=>{$(e)||(L.current?.focus(),T(null))},[$]),onTriggerLeave:M.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:N,onPointerGraceIntentChange:M.useCallback(e=>{B.current=e},[]),children:(0,U.jsx)(Z,Object.assign({},q,{children:(0,U.jsx)(k.FocusScope,{asChild:!0,trapped:c,onMountAutoFocus:(0,P.composeEventHandlers)(s,e=>{e.preventDefault(),L.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,U.jsx)(E.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:v,onDismiss:h,children:(0,U.jsx)(H.Root,Object.assign({asChild:!0},S,{dir:w.dir,orientation:"vertical",loop:u,currentTabStopId:F,onCurrentTabStopIdChange:T,onEntryFocus:(0,P.composeEventHandlers)(d,e=>{w.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,U.jsx)(I.Content,Object.assign({role:"menu","aria-orientation":"vertical","data-state":Ze(_.open),"data-radix-menu-content":"",dir:w.dir},x,y,{ref:A,style:Object.assign({outline:"none"},y.style),onKeyDown:(0,P.composeEventHandlers)(y.onKeyDown,e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&o&&Q(e.key));const u=L.current;if(e.target!==u)return;if(!Y.includes(e.key))return;e.preventDefault();const c=D().filter(e=>!e.disabled).map(e=>e.ref.current);X.includes(e.key)&&c.reverse(),Qe(c)}),onBlur:(0,P.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(K.current),G.current="")}),onPointerMove:(0,P.composeEventHandlers)(e.onPointerMove,tn(e=>{const n=e.target,t=W.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>W.current?"right":"left";z.current=n,W.current=e.clientX}}))}))}))})})}))})});be.displayName=pe;var Oe=M.forwardRef((e,n)=>{const t=(0,O.default)(e,o);return(0,U.jsx)(L.Primitive.div,Object.assign({role:"group"},t,{ref:n}))});Oe.displayName="MenuGroup";var Me=M.forwardRef((e,n)=>{const t=(0,O.default)(e,u);return(0,U.jsx)(L.Primitive.div,Object.assign({},t,{ref:n}))});Me.displayName="MenuLabel";var Pe="MenuItem",Ce="menu.itemSelect",we=M.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o}=e,u=(0,O.default)(e,c),s=M.useRef(null),i=ce(Pe,e.__scopeMenu),l=ge(Pe,e.__scopeMenu),d=(0,C.useComposedRefs)(n,s),f=M.useRef(!1);return(0,U.jsx)(xe,Object.assign({},u,{ref:d,disabled:t,onClick:(0,P.composeEventHandlers)(e.onClick,()=>{const e=s.current;if(!t&&e){const n=new CustomEvent(Ce,{bubbles:!0,cancelable:!0});e.addEventListener(Ce,e=>o?.(e),{once:!0}),(0,L.dispatchDiscreteCustomEvent)(e,n),n.defaultPrevented?f.current=!1:i.onClose()}}),onPointerDown:n=>{e.onPointerDown?.(n),f.current=!0},onPointerUp:(0,P.composeEventHandlers)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,P.composeEventHandlers)(e.onKeyDown,e=>{if(t||e.target!==e.currentTarget)return;""!==l.searchRef.current&&" "===e.key||B.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))});we.displayName=Pe;var xe=M.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u}=e,c=(0,O.default)(e,s),i=ge(Pe,t),l=te(t),d=M.useRef(null),f=(0,C.useComposedRefs)(n,d),[p,b]=M.useState(!1),[v,h]=M.useState("");return M.useEffect(()=>{const e=d.current;e&&h((e.textContent??"").trim())},[c.children]),(0,U.jsx)(q.ItemSlot,{scope:t,disabled:o,textValue:u??v,children:(0,U.jsx)(H.Item,Object.assign({asChild:!0},l,{focusable:!o,children:(0,U.jsx)(L.Primitive.div,Object.assign({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},c,{ref:f,onPointerMove:(0,P.composeEventHandlers)(e.onPointerMove,tn(e=>{if(o)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:(0,P.composeEventHandlers)(e.onPointerLeave,tn(e=>i.onItemLeave(e))),onFocus:(0,P.composeEventHandlers)(e.onFocus,()=>b(!0)),onBlur:(0,P.composeEventHandlers)(e.onBlur,()=>b(!1))}))}))})}),Ee=M.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o}=e,u=(0,O.default)(e,i);return(0,U.jsx)(Le,{scope:e.__scopeMenu,checked:t,children:(0,U.jsx)(we,Object.assign({role:"menuitemcheckbox","aria-checked":qe(t)?"mixed":t},u,{ref:n,"data-state":Je(t),onSelect:(0,P.composeEventHandlers)(u.onSelect,()=>o?.(!!qe(t)||!t),{checkForDefaultPrevented:!1})}))})});Ee.displayName="MenuCheckboxItem";var Re="MenuRadioGroup",[ke,Se]=$(Re,{value:void 0,onValueChange:()=>{}}),De=M.forwardRef((e,n)=>{const{value:t,onValueChange:o}=e,u=(0,O.default)(e,l),c=(0,G.useCallbackRef)(o);return(0,U.jsx)(ke,{scope:e.__scopeMenu,value:t,onValueChange:c,children:(0,U.jsx)(Oe,Object.assign({},u,{ref:n}))})});De.displayName=Re;var Ie="MenuRadioItem",Fe=M.forwardRef((e,n)=>{const{value:t}=e,o=(0,O.default)(e,d),u=Se(Ie,e.__scopeMenu),c=t===u.value;return(0,U.jsx)(Le,{scope:e.__scopeMenu,checked:c,children:(0,U.jsx)(we,Object.assign({role:"menuitemradio","aria-checked":c},o,{ref:n,"data-state":Je(c),onSelect:(0,P.composeEventHandlers)(o.onSelect,()=>u.onValueChange?.(t),{checkForDefaultPrevented:!1})}))})});Fe.displayName=Ie;var Te="MenuItemIndicator",[Le,Ae]=$(Te,{checked:!1}),He=M.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o}=e,u=(0,O.default)(e,f),c=Ae(Te,t);return(0,U.jsx)(T.Presence,{present:o||qe(c.checked)||!0===c.checked,children:(0,U.jsx)(L.Primitive.span,Object.assign({},u,{ref:n,"data-state":Je(c.checked)}))})});He.displayName=Te;var Ke=M.forwardRef((e,n)=>{const t=(0,O.default)(e,p);return(0,U.jsx)(L.Primitive.div,Object.assign({role:"separator","aria-orientation":"horizontal"},t,{ref:n}))});Ke.displayName="MenuSeparator";var Ge=M.forwardRef((e,n)=>{const{__scopeMenu:t}=e,o=(0,O.default)(e,b),u=ne(t);return(0,U.jsx)(I.Arrow,Object.assign({},u,o,{ref:n}))});Ge.displayName="MenuArrow";var Ne="MenuSub",[Ve,Ue]=$(Ne),Be=e=>{const{__scopeMenu:n,children:t,open:o=!1,onOpenChange:u}=e,c=oe(Ne,n),s=ne(n),[i,l]=M.useState(null),[d,f]=M.useState(null),p=(0,G.useCallbackRef)(u);return M.useEffect(()=>(!1===c.open&&p(!1),()=>p(!1)),[c.open,p]),(0,U.jsx)(I.Root,Object.assign({},s,{children:(0,U.jsx)(re,{scope:n,open:o,onOpenChange:p,content:d,onContentChange:f,children:(0,U.jsx)(Ve,{scope:n,contentId:(0,S.useId)(),triggerId:(0,S.useId)(),trigger:i,onTriggerChange:l,children:t})})}))};Be.displayName=Ne;var Xe="MenuSubTrigger",Ye=M.forwardRef((e,n)=>{const t=oe(Xe,e.__scopeMenu),o=ce(Xe,e.__scopeMenu),u=Ue(Xe,e.__scopeMenu),c=ge(Xe,e.__scopeMenu),s=M.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=c,d={__scopeMenu:e.__scopeMenu},f=M.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);M.useEffect(()=>f,[f]),M.useEffect(()=>{const e=i.current;return()=>{window.clearTimeout(e),l(null)}},[i,l]);const p=(0,C.useComposedRefs)(n,u.onTriggerChange);return(0,U.jsx)(ae,Object.assign({asChild:!0},d,{children:(0,U.jsx)(xe,Object.assign({id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":t.open?u.contentId:void 0,"data-state":Ze(t.open)},e,{ref:p,onClick:n=>{e.onClick?.(n),e.disabled||n.defaultPrevented||(n.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:(0,P.composeEventHandlers)(e.onPointerMove,tn(n=>{c.onItemEnter(n),n.defaultPrevented||e.disabled||t.open||s.current||(c.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:(0,P.composeEventHandlers)(e.onPointerLeave,tn(e=>{f();const n=t.content?.getBoundingClientRect();if(n){const o=t.content?.dataset.side,u="right"===o,s=u?-5:5,l=n[u?"left":"right"],d=n[u?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:n.top},{x:d,y:n.top},{x:d,y:n.bottom},{x:l,y:n.bottom}],side:o}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,P.composeEventHandlers)(e.onKeyDown,n=>{if(e.disabled||n.target!==n.currentTarget)return;""!==c.searchRef.current&&" "===n.key||z[o.dir].includes(n.key)&&(t.onOpenChange(!0),t.content?.focus(),n.preventDefault())})}))}))});Ye.displayName=Xe;var ze="MenuSubContent",We=M.forwardRef((e,n)=>{const t=de(pe,e.__scopeMenu),{forceMount:o=t.forceMount,align:u="start"}=e,c=(0,O.default)(e,v),s=oe(pe,e.__scopeMenu),i=ce(pe,e.__scopeMenu),l=Ue(ze,e.__scopeMenu),d=M.useRef(null),f=(0,C.useComposedRefs)(n,d);return(0,U.jsx)(q.Provider,{scope:e.__scopeMenu,children:(0,U.jsx)(T.Presence,{present:o||s.open,children:(0,U.jsx)(q.Slot,{scope:e.__scopeMenu,children:(0,U.jsx)(ye,Object.assign({id:l.contentId,"aria-labelledby":l.triggerId},c,{ref:f,align:u,side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,P.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,P.composeEventHandlers)(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:(0,P.composeEventHandlers)(e.onKeyDown,e=>{const n=e.currentTarget.contains(e.target),t=W[i.dir].includes(e.key);n&&t&&(s.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})}))})})})});function Ze(e){return e?"open":"closed"}function qe(e){return"indeterminate"===e}function Je(e){return qe(e)?"indeterminate":e?"checked":"unchecked"}function Qe(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}function $e(e,n,t){const o=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,u=t?e.indexOf(t):-1;let c=(s=e,i=Math.max(u,0),s.map((e,n)=>s[(i+n)%s.length]));var s,i;1===o.length&&(c=c.filter(e=>e!==t));const l=c.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==t?l:void 0}function en(e,n){const{x:t,y:o}=e;let u=!1;for(let e=0,c=n.length-1;e<n.length;c=e++){const s=n[e],i=n[c],l=s.x,d=s.y,f=i.x,p=i.y;d>o!=p>o&&t<(f-l)*(o-d)/(p-d)+l&&(u=!u)}return u}function nn(e,n){if(!n)return!1;return en({x:e.clientX,y:e.clientY},n)}function tn(e){return n=>"mouse"===n.pointerType?e(n):void 0}We.displayName=ze;var rn=se,on=ae,un=fe,cn=be,sn=Oe,an=Me,ln=we,dn=Ee,fn=De,pn=Fe,mn=He,gn=Ke,bn=Ge,vn=Be,hn=Ye,jn=We},235,[131,38,179,236,180,181,237,186,193,190,182,238,191,192,187,246,188,189,230,194,151]);
292
+ __d(function(g,r,_i,_a,m,_e,_d){"use strict";const e=["scope","children"],t=["state"],s=["scope","children"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"createCollection",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"unstable_createCollection",{enumerable:!0,get:function(){return b}});var n,i=r(_d[0]),o=(n=i)&&n.__esModule?n:{default:n},c=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[1])),l=r(_d[2]),u=r(_d[3]),f=r(_d[4]),a=r(_d[5]);function h(t){const s=t+"CollectionProvider",[n,i]=(0,l.createContextScope)(s),[h,d]=n(s,{collectionRef:{current:null},itemMap:new Map}),p=e=>{const{scope:t,children:s}=e,n=c.useRef(null),i=c.useRef(new Map).current;return(0,a.jsx)(h,{scope:t,itemMap:i,collectionRef:n,children:s})};p.displayName=s;const y=t+"CollectionSlot",O=(0,f.createSlot)(y),R=c.forwardRef((e,t)=>{const{scope:s,children:n}=e,i=d(y,s),o=(0,u.useComposedRefs)(t,i.collectionRef);return(0,a.jsx)(O,{ref:o,children:n})});R.displayName=y;const b=t+"CollectionItemSlot",j="data-radix-collection-item",k=(0,f.createSlot)(b),x=c.forwardRef((t,s)=>{const{scope:n,children:i}=t,l=(0,o.default)(t,e),f=c.useRef(null),h=(0,u.useComposedRefs)(s,f),p=d(b,n);return c.useEffect(()=>(p.itemMap.set(f,Object.assign({ref:f},l)),()=>{p.itemMap.delete(f)})),(0,a.jsx)(k,Object.assign({},{[j]:""},{ref:h,children:i}))});return x.displayName=b,[{Provider:p,Slot:R,ItemSlot:x},function(e){const s=d(t+"CollectionConsumer",e);return c.useCallback(()=>{const e=s.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${j}]`));return Array.from(s.itemMap.values()).sort((e,s)=>t.indexOf(e.ref.current)-t.indexOf(s.ref.current))},[s.collectionRef,s.itemMap])},i]}var d=new WeakMap,p=class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,s){const n=this.has(t),i=this.#e.length,o=R(e);let c=o>=0?o:i+o;const l=c<0||c>=i?-1:c;if(l===this.size||n&&l===this.size-1||-1===l)return this.set(t,s),this;const u=this.size+(n?0:1);o<0&&c++;const f=[...this.#e];let a,h=!1;for(let e=c;e<u;e++)if(c===e){let i=f[e];f[e]===t&&(i=f[e+1]),n&&this.delete(t),a=this.get(i),this.set(t,s)}else{h||f[e-1]!==t||(h=!0);const s=f[h?e:e-1],n=a;a=this.get(s),this.delete(s),this.set(s,n)}return this}with(t,s,n){const i=new e(this);return i.insert(t,s,n),i}before(e){const t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,s){const n=this.#e.indexOf(e);return-1===n?this:this.insert(n,t,s)}after(e){let t=this.#e.indexOf(e);if(t=-1===t||t===this.size-1?-1:t+1,-1!==t)return this.entryAt(t)}setAfter(e,t,s){const n=this.#e.indexOf(e);return-1===n?this:this.insert(n+1,t,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){const t=y(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=y(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return y(this.#e,e)}from(e,t){const s=this.indexOf(e);if(-1===s)return;let n=s+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){const s=this.indexOf(e);if(-1===s)return;let n=s+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let s=0;for(const n of this){if(Reflect.apply(e,t,[n,s,this]))return n;s++}}findIndex(e,t){let s=0;for(const n of this){if(Reflect.apply(e,t,[n,s,this]))return s;s++}return-1}filter(t,s){const n=[];let i=0;for(const e of this)Reflect.apply(t,s,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,s){const n=[];let i=0;for(const e of this)n.push([e[0],Reflect.apply(t,s,[e,i,this])]),i++;return new e(n)}reduce(...e){const[t,s]=e;let n=0,i=s??this.at(0);for(const s of this)i=0===n&&1===e.length?s:Reflect.apply(t,this,[i,s,n,this]),n++;return i}reduceRight(...e){const[t,s]=e;let n=s??this.at(-1);for(let s=this.size-1;s>=0;s--){const i=this.at(s);n=s===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,s,this])}return n}toSorted(t){const s=[...this.entries()].sort(t);return new e(s)}toReversed(){const t=new e;for(let e=this.size-1;e>=0;e--){const s=this.keyAt(e),n=this.get(s);t.set(s,n)}return t}toSpliced(...t){const s=[...this.entries()];return s.splice(...t),new e(s)}slice(t,s){const n=new e;let i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==s&&s>0&&(i=s-1);for(let e=t;e<=i;e++){const t=this.keyAt(e),s=this.get(t);n.set(t,s)}return n}every(e,t){let s=0;for(const n of this){if(!Reflect.apply(e,t,[n,s,this]))return!1;s++}return!0}some(e,t){let s=0;for(const n of this){if(Reflect.apply(e,t,[n,s,this]))return!0;s++}return!1}};function y(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const s=O(e,t);return-1===s?void 0:e[s]}function O(e,t){const s=e.length,n=R(t),i=n>=0?n:s+n;return i<0||i>=s?-1:i}function R(e){return e!=e||0===e?0:Math.trunc(e)}function b(e){const n=e+"CollectionProvider",[i,h]=(0,l.createContextScope)(n),[d,y]=i(n,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new p,setItemMap:()=>{}}),O=e=>{let{state:s}=e,n=(0,o.default)(e,t);return s?(0,a.jsx)(b,Object.assign({},n,{state:s})):(0,a.jsx)(R,Object.assign({},n))};O.displayName=n;const R=e=>{const t=z();return(0,a.jsx)(b,Object.assign({},e,{state:t}))};R.displayName=n+"Init";const b=e=>{const{scope:t,children:s,state:n}=e,i=c.useRef(null),[o,l]=c.useState(null),f=(0,u.useComposedRefs)(i,l),[h,p]=n;return c.useEffect(()=>{if(!o)return;const e=C(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,a.jsx)(d,{scope:t,itemMap:h,setItemMap:p,collectionRef:f,collectionRefObject:i,collectionElement:o,children:s})};b.displayName=n+"Impl";const k=e+"CollectionSlot",S=(0,f.createSlot)(k),M=c.forwardRef((e,t)=>{const{scope:s,children:n}=e,i=y(k,s),o=(0,u.useComposedRefs)(t,i.collectionRef);return(0,a.jsx)(S,{ref:o,children:n})});M.displayName=k;const v=e+"CollectionItemSlot",w="data-radix-collection-item",A=(0,f.createSlot)(v),I=c.forwardRef((e,t)=>{const{scope:n,children:i}=e,l=(0,o.default)(e,s),f=c.useRef(null),[h,d]=c.useState(null),O=(0,u.useComposedRefs)(t,f,d),R=y(v,n),{setItemMap:b}=R,k=c.useRef(l);j(k.current,l)||(k.current=l);const C=k.current;return c.useEffect(()=>{const e=C;return b(t=>h?t.has(h)?t.set(h,Object.assign({},e,{element:h})).toSorted(x):(t.set(h,Object.assign({},e,{element:h})),t.toSorted(x)):t),()=>{b(e=>h&&e.has(h)?(e.delete(h),new p(e)):e)}},[h,C,b]),(0,a.jsx)(A,Object.assign({},{[w]:""},{ref:O,children:i}))});function z(){return c.useState(new p)}I.displayName=v;return[{Provider:O,Slot:M,ItemSlot:I},{createCollectionScope:h,useCollection:function(t){const{itemMap:s}=y(e+"CollectionConsumer",t);return s},useInitCollection:z}]}function j(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const s=Object.keys(e),n=Object.keys(t);if(s.length!==n.length)return!1;for(const n of s){if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(e[n]!==t[n])return!1}return!0}function k(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function x(e,t){return e[1].element&&t[1].element?k(e[1].element,t[1].element)?-1:1:0}function C(e){return new MutationObserver(t=>{for(const s of t)if("childList"===s.type)return void e()})}},236,[131,38,181,180,188,151]);
293
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DirectionProvider",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"Provider",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"useDirection",{enumerable:!0,get:function(){return u}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]),n=e.createContext(void 0),o=e=>{const{dir:o,children:u}=e;return(0,t.jsx)(n.Provider,{value:o,children:u})};function u(t){const o=e.useContext(n);return t||o||"ltr"}var c=o},237,[38,151]);
294
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["__scopePopper","virtualRef"],t=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],n=["__scopePopper"];function o(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ALIGN_OPTIONS",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"Anchor",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"Arrow",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"Content",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"Popper",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"PopperAnchor",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"PopperArrow",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"PopperContent",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"SIDE_OPTIONS",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"createPopperScope",{enumerable:!0,get:function(){return _}});var s,l=r(_d[0]),d=(s=l)&&s.__esModule?s:{default:s},p=o(r(_d[1])),c=r(_d[2]),u=o(r(_d[3])),f=r(_d[4]),h=r(_d[5]),b=r(_d[6]),y=r(_d[7]),P=r(_d[8]),w=r(_d[9]),O=r(_d[10]),x=["top","right","bottom","left"],j=["start","center","end"],v="Popper",[S,_]=(0,h.createContextScope)(v),[A,C]=S(v),R=e=>{const{__scopePopper:t,children:n}=e,[o,s]=p.useState(null),[l,d]=p.useState(void 0);return(0,O.jsx)(A,{scope:t,anchor:o,onAnchorChange:s,placementState:l,setPlacementState:d,children:n})};R.displayName=v;var $="PopperAnchor",E=p.forwardRef((t,n)=>{const{__scopePopper:o,virtualRef:s}=t,l=(0,d.default)(t,e),c=C($,o),u=p.useRef(null),h=c.onAnchorChange,y=p.useCallback(e=>{u.current=e,e&&h(e)},[h]),P=(0,f.useComposedRefs)(n,y),w=p.useRef(null);p.useEffect(()=>{if(!s)return;const e=w.current;w.current=s.current,e!==w.current&&h(w.current)});const x=c.placementState&&M(c.placementState),j=x?.[0],v=x?.[1];return s?null:(0,O.jsx)(b.Primitive.div,Object.assign({"data-radix-popper-side":j,"data-radix-popper-align":v},l,{ref:P}))});E.displayName=$;var H="PopperContent",[N,k]=S(H),D=p.forwardRef((e,n)=>{const{__scopePopper:o,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:h=0,arrowPadding:x=0,avoidCollisions:j=!0,collisionBoundary:v=[],collisionPadding:S=0,sticky:_="partial",hideWhenDetached:A=!1,updatePositionStrategy:R="optimized",onPlaced:$}=e,E=(0,d.default)(e,t),k=C(H,o),[D,I]=p.useState(null),W=(0,f.useComposedRefs)(n,I),[z,X]=p.useState(null),B=(0,w.useSize)(z),F=B?.width??0,T=B?.height??0,G=s+("center"!==u?"-"+u:""),U="number"==typeof S?S:Object.assign({top:0,right:0,bottom:0,left:0},S),q=Array.isArray(v)?v:[v],J=q.length>0,K={padding:U,boundary:q.filter(Y),altBoundary:J},{refs:Q,floatingStyles:V,placement:Z,isPositioned:ee,middlewareData:te}=(0,c.useFloating)({strategy:"fixed",placement:G,whileElementsMounted:(...e)=>(0,c.autoUpdate)(...e,{animationFrame:"always"===R}),elements:{reference:k.anchor},middleware:[(0,c.offset)({mainAxis:l+T,alignmentAxis:h}),j&&(0,c.shift)(Object.assign({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?(0,c.limitShift)():void 0},K)),j&&(0,c.flip)(Object.assign({},K)),(0,c.size)(Object.assign({},K,{apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{const{width:s,height:l}=t.reference,d=e.floating.style;d.setProperty("--radix-popper-available-width",`${n}px`),d.setProperty("--radix-popper-available-height",`${o}px`),d.setProperty("--radix-popper-anchor-width",`${s}px`),d.setProperty("--radix-popper-anchor-height",`${l}px`)}})),z&&(0,c.arrow)({element:z,padding:x}),L({arrowWidth:F,arrowHeight:T}),A&&(0,c.hide)(Object.assign({strategy:"referenceHidden"},K,{boundary:J?K.boundary:void 0}))]}),re=k.setPlacementState;(0,P.useLayoutEffect)(()=>(re(Z),()=>{re(void 0)}),[Z,re]);const[ne,oe]=M(Z),ae=(0,y.useCallbackRef)($);(0,P.useLayoutEffect)(()=>{ee&&ae?.()},[ee,ae]);const ie=te.arrow?.x,se=te.arrow?.y,le=0!==te.arrow?.centerOffset,[de,pe]=p.useState();return(0,P.useLayoutEffect)(()=>{D&&pe(window.getComputedStyle(D).zIndex)},[D]),(0,O.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:Object.assign({},V,{transform:ee?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(" ")},te.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,O.jsx)(N,{scope:o,placedSide:ne,placedAlign:oe,onArrowChange:X,arrowX:ie,arrowY:se,shouldHideArrow:le,children:(0,O.jsx)(b.Primitive.div,Object.assign({"data-side":ne,"data-align":oe},E,{ref:W,style:Object.assign({},E.style,{animation:ee?void 0:"none"})}))})})});D.displayName=H;var I="PopperArrow",W={top:"bottom",right:"left",bottom:"top",left:"right"},z=p.forwardRef(function(e,t){const{__scopePopper:o}=e,s=(0,d.default)(e,n),l=k(I,o),p=W[l.placedSide];return(0,O.jsx)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[p]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:(0,O.jsx)(u.Root,Object.assign({},s,{ref:t,style:Object.assign({},s.style,{display:"block"})}))})});function Y(e){return null!==e}z.displayName=I;var L=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:s}=t,l=0!==s.arrow?.centerOffset,d=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[c,u]=M(n),f={start:"0%",center:"50%",end:"100%"}[u],h=(s.arrow?.x??0)+d/2,b=(s.arrow?.y??0)+p/2;let y="",P="";return"bottom"===c?(y=l?f:`${h}px`,P=-p+"px"):"top"===c?(y=l?f:`${h}px`,P=`${o.floating.height+p}px`):"right"===c?(y=-p+"px",P=l?f:`${b}px`):"left"===c&&(y=`${o.floating.width+p}px`,P=l?f:`${b}px`),{data:{x:y,y:P}}}});function M(e){const[t,n="center"]=e.split("-");return[t,n]}var X=R,B=E,F=D,T=z},238,[131,38,239,244,180,181,187,189,183,245,151]);
295
+ __d(function(g,r,_i,_a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"autoUpdate",{enumerable:!0,get:function(){return t.autoUpdate}}),Object.defineProperty(_e,"computePosition",{enumerable:!0,get:function(){return t.computePosition}}),Object.defineProperty(_e,"detectOverflow",{enumerable:!0,get:function(){return t.detectOverflow}}),Object.defineProperty(_e,"getOverflowAncestors",{enumerable:!0,get:function(){return t.getOverflowAncestors}}),Object.defineProperty(_e,"platform",{enumerable:!0,get:function(){return t.platform}}),Object.defineProperty(_e,"arrow",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"autoPlacement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"flip",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"hide",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"inline",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"limitShift",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"offset",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"shift",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"size",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"useFloating",{enumerable:!0,get:function(){return l}});var t=r(_d[0]),n=r(_d[1]),o=e(n),u=e(r(_d[2])),i='undefined'!=typeof document?n.useLayoutEffect:function(){};function f(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if('function'==typeof e&&e.toString()===t.toString())return!0;let n,o,u;if(e&&t&&'object'==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!==o--;)if(!f(e[o],t[o]))return!1;return!0}if(u=Object.keys(e),n=u.length,n!==Object.keys(t).length)return!1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(t,u[o]))return!1;for(o=n;0!==o--;){const n=u[o];if(('_owner'!==n||!e.$$typeof)&&!f(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if('undefined'==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function a(e,t){const n=c(e);return Math.round(t*n)/n}function s(e){const t=o.useRef(e);return i(()=>{t.current=e}),t}function l(e){void 0===e&&(e={});const{placement:n="bottom",strategy:l="absolute",middleware:p=[],platform:d,elements:{reference:b,floating:y}={},transform:O=!0,whileElementsMounted:P,open:j}=e,[w,h]=o.useState({x:0,y:0,strategy:l,placement:n,middlewareData:{},isPositioned:!1}),[v,S]=o.useState(p);f(v,p)||S(p);const[M,R]=o.useState(null),[_,k]=o.useState(null),x=o.useCallback(e=>{e!==E.current&&(E.current=e,R(e))},[]),A=o.useCallback(e=>{e!==z.current&&(z.current=e,k(e))},[]),C=b||M,D=y||_,E=o.useRef(null),z=o.useRef(null),F=o.useRef(w),U=null!=P,$=s(P),L=s(d),V=s(j),q=o.useCallback(()=>{if(!E.current||!z.current)return;const e={placement:n,strategy:l,middleware:v};L.current&&(e.platform=L.current),(0,t.computePosition)(E.current,z.current,e).then(e=>{const t=Object.assign({},e,{isPositioned:!1!==V.current});B.current&&!f(F.current,t)&&(F.current=t,u.flushSync(()=>{h(t)}))})},[v,n,l,L,V]);i(()=>{!1===j&&F.current.isPositioned&&(F.current.isPositioned=!1,h(e=>Object.assign({},e,{isPositioned:!1})))},[j]);const B=o.useRef(!1);i(()=>(B.current=!0,()=>{B.current=!1}),[]),i(()=>{if(C&&(E.current=C),D&&(z.current=D),C&&D){if($.current)return $.current(C,D,q);q()}},[C,D,q,$,U]);const G=o.useMemo(()=>({reference:E,floating:z,setReference:x,setFloating:A}),[x,A]),H=o.useMemo(()=>({reference:C,floating:D}),[C,D]),I=o.useMemo(()=>{const e={position:l,left:0,top:0};if(!H.floating)return e;const t=a(H.floating,w.x),n=a(H.floating,w.y);return O?Object.assign({},e,{transform:"translate("+t+"px, "+n+"px)"},c(H.floating)>=1.5&&{willChange:'transform'}):{position:l,left:t,top:n}},[l,O,H.floating,w.x,w.y]);return o.useMemo(()=>Object.assign({},w,{update:q,refs:G,elements:H,floatingStyles:I}),[w,q,G,H,I])}const p=e=>({name:'arrow',options:e,fn(n){const{element:o,padding:u}='function'==typeof e?e(n):e;return o&&(i=o,{}.hasOwnProperty.call(i,'current'))?null!=o.current?(0,t.arrow)({element:o.current,padding:u}).fn(n):{}:o?(0,t.arrow)({element:o,padding:u}).fn(n):{};var i}}),d=(e,n)=>{const o=(0,t.offset)(e);return{name:o.name,fn:o.fn,options:[e,n]}},b=(e,n)=>{const o=(0,t.shift)(e);return{name:o.name,fn:o.fn,options:[e,n]}},y=(e,n)=>({fn:(0,t.limitShift)(e).fn,options:[e,n]}),O=(e,n)=>{const o=(0,t.flip)(e);return{name:o.name,fn:o.fn,options:[e,n]}},P=(e,n)=>{const o=(0,t.size)(e);return{name:o.name,fn:o.fn,options:[e,n]}},j=(e,n)=>{const o=(0,t.autoPlacement)(e);return{name:o.name,fn:o.fn,options:[e,n]}},w=(e,n)=>{const o=(0,t.hide)(e);return{name:o.name,fn:o.fn,options:[e,n]}},h=(e,n)=>{const o=(0,t.inline)(e);return{name:o.name,fn:o.fn,options:[e,n]}},v=(e,t)=>{const n=p(e);return{name:n.name,fn:n.fn,options:[e,t]}}},239,[240,38,40]);
296
+ __d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getOverflowAncestors",{enumerable:!0,get:function(){return o.getOverflowAncestors}}),Object.defineProperty(e,"arrow",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"autoPlacement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"autoUpdate",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"computePosition",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"detectOverflow",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"flip",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"hide",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"inline",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"limitShift",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"platform",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"shift",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"size",{enumerable:!0,get:function(){return H}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function i(t){const i=(0,o.getComputedStyle)(t);let l=parseFloat(i.width)||0,c=parseFloat(i.height)||0;const s=(0,o.isHTMLElement)(t),f=s?t.offsetWidth:l,u=s?t.offsetHeight:c,a=(0,n.round)(l)!==f||(0,n.round)(c)!==u;return a&&(l=f,c=u),{width:l,height:c,$:a}}function l(t){return(0,o.isElement)(t)?t:t.contextElement}function c(t){const c=l(t);if(!(0,o.isHTMLElement)(c))return(0,n.createCoords)(1);const s=c.getBoundingClientRect(),{width:f,height:u,$:a}=i(c);let h=(a?(0,n.round)(s.width):s.width)/f,p=(a?(0,n.round)(s.height):s.height)/u;return h&&Number.isFinite(h)||(h=1),p&&Number.isFinite(p)||(p=1),{x:h,y:p}}const s=(0,n.createCoords)(0);function f(t){const n=(0,o.getWindow)(t);return(0,o.isWebKit)()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:s}function u(t,n,i){return void 0===n&&(n=!1),!!i&&n&&i===(0,o.getWindow)(t)}function a(i,s,a,h){void 0===s&&(s=!1),void 0===a&&(a=!1);const p=i.getBoundingClientRect(),y=l(i);let b=(0,n.createCoords)(1);s&&(h?(0,o.isElement)(h)&&(b=c(h)):b=c(i));const w=u(y,a,h)?f(y):(0,n.createCoords)(0);let x=(p.left+w.x)/b.x,v=(p.top+w.y)/b.y,E=p.width/b.x,C=p.height/b.y;if(y&&h){const t=(0,o.getWindow)(y),n=(0,o.isElement)(h)?(0,o.getWindow)(h):h;let i=t,l=(0,o.getFrameElement)(i);for(;l&&n!==i;){const t=c(l),n=l.getBoundingClientRect(),s=(0,o.getComputedStyle)(l),f=n.left+(l.clientLeft+parseFloat(s.paddingLeft))*t.x,u=n.top+(l.clientTop+parseFloat(s.paddingTop))*t.y;x*=t.x,v*=t.y,E*=t.x,C*=t.y,x+=f,v+=u,i=(0,o.getWindow)(l),l=(0,o.getFrameElement)(i)}}return(0,t.rectToClientRect)({width:E,height:C,x:x,y:v})}function h(t,n){const i=(0,o.getNodeScroll)(t).scrollLeft;return n?n.left+i:a((0,o.getDocumentElement)(t)).left+i}function p(t,n){const o=t.getBoundingClientRect();return{x:o.left+n.scrollLeft-h(t,o),y:o.top+n.scrollTop}}function y(t){const i=(0,o.getNodeScroll)(t),l=t.ownerDocument.body,c=(0,n.max)(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),s=(0,n.max)(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+h(t);const u=-i.scrollTop;return'rtl'===(0,o.getComputedStyle)(l).direction&&(f+=(0,n.max)(t.clientWidth,l.clientWidth)-c),{width:c,height:s,x:f,y:u}}function b(t,n,i){void 0===i&&(i='viewport');const l='layoutViewport'===i,c=(0,o.getWindow)(t),s=(0,o.getDocumentElement)(t),f=c.visualViewport;let u=s.clientWidth,a=s.clientHeight,p=0,y=0;if(f){const t=!(0,o.isWebKit)()||'fixed'===n;l?t||(p=-f.offsetLeft,y=-f.offsetTop):(u=f.width,a=f.height,t&&(p=f.offsetLeft,y=f.offsetTop))}if(h(s)<=0){const t=s.ownerDocument,n=t.body,o=getComputedStyle(n),i='CSS1Compat'===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,l=Math.abs(s.clientWidth-n.clientWidth-i),c='stable both-edges'===getComputedStyle(s).scrollbarGutter?l/2:l;c<=25&&(u-=c)}return{width:u,height:a,x:p,y:y}}function w(t,n){const o=a(t,!0,'fixed'===n),i=o.top+t.clientTop,l=o.left+t.clientLeft,s=c(t);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:l*s.x,y:i*s.y}}function x(n,i,l){let c;if('viewport'===i||'layoutViewport'===i)c=b(n,l,i);else if('document'===i)c=y((0,o.getDocumentElement)(n));else if((0,o.isElement)(i))c=w(i,l);else{const t=f(n);c={x:i.x-t.x,y:i.y-t.y,width:i.width,height:i.height}}return(0,t.rectToClientRect)(c)}function v(t,n){const i=n.get(t);if(i)return i;let l=(0,o.getOverflowAncestors)(t,[],!1).filter(t=>(0,o.isElement)(t)&&'body'!==(0,o.getNodeName)(t)),c=null;const s='fixed'===(0,o.getComputedStyle)(t).position;let f=s?(0,o.getParentNode)(t):t;for(;(0,o.isElement)(f)&&!(0,o.isLastTraversableNode)(f);){const t=(0,o.getComputedStyle)(f),n=(0,o.isContainingBlock)(f),i=c?c.position:s?'fixed':'';!n&&('fixed'===i||'absolute'===i&&'static'===t.position)?l=l.filter(t=>t!==f):c=t,f=(0,o.getParentNode)(f)}return n.set(t,l),l}function E(t,i,l){const c=(0,o.isHTMLElement)(i),s=(0,o.getDocumentElement)(i),f='fixed'===l,u=a(t,!0,f,i);let y={scrollLeft:0,scrollTop:0};const b=(0,n.createCoords)(0);if((c||!f)&&(('body'!==(0,o.getNodeName)(i)||(0,o.isOverflowElement)(s))&&(y=(0,o.getNodeScroll)(i)),c)){const t=a(i,!0,f,i);b.x=t.x+i.clientLeft,b.y=t.y+i.clientTop}!c&&s&&(b.x=h(s));const w=!s||c||f?(0,n.createCoords)(0):p(s,y);return{x:u.left+y.scrollLeft-b.x-w.x,y:u.top+y.scrollTop-b.y-w.y,width:u.width,height:u.height}}function C(t){return'static'===(0,o.getComputedStyle)(t).position}function L(t,n){if(!(0,o.isHTMLElement)(t)||'fixed'===(0,o.getComputedStyle)(t).position)return null;if(n)return n(t);let i=t.offsetParent;return(0,o.getDocumentElement)(t)===i&&(i=i.ownerDocument.body),i}function O(t,n){const i=(0,o.getWindow)(t);if((0,o.isTopLayer)(t))return i;if(!(0,o.isHTMLElement)(t)){let n=(0,o.getParentNode)(t);for(;n&&!(0,o.isLastTraversableNode)(n);){if((0,o.isElement)(n)&&!C(n))return n;n=(0,o.getParentNode)(n)}return i}let l=L(t,n);for(;l&&(0,o.isTableElement)(l)&&C(l);)l=L(l,n);return l&&(0,o.isLastTraversableNode)(l)&&C(l)&&!(0,o.isContainingBlock)(l)?i:l||(0,o.getContainingBlock)(t)||i}const T={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:i,rect:l,offsetParent:s,strategy:f}=t;const u='fixed'===f,h=(0,o.getDocumentElement)(s),y=!!i&&(0,o.isTopLayer)(i.floating);if(s===h||y&&u)return l;let b={scrollLeft:0,scrollTop:0},w=(0,n.createCoords)(1);const x=(0,n.createCoords)(0),v=(0,o.isHTMLElement)(s);if((v||!u)&&(('body'!==(0,o.getNodeName)(s)||(0,o.isOverflowElement)(h))&&(b=(0,o.getNodeScroll)(s)),v)){const t=a(s);w=c(s),x.x=t.x+s.clientLeft,x.y=t.y+s.clientTop}const E=!h||v||u?(0,n.createCoords)(0):p(h,b);return{width:l.width*w.x,height:l.height*w.y,x:l.x*w.x-b.scrollLeft*w.x+x.x+E.x,y:l.y*w.y-b.scrollTop*w.y+x.y+E.y}},getDocumentElement:o.getDocumentElement,getClippingRect:function(t){let{element:i,boundary:l,rootBoundary:c,strategy:s}=t;const f=[...'clippingAncestors'===l?(0,o.isTopLayer)(i)?[]:v(i,this._c):[].concat(l),c],u=x(i,f[0],s);let a=u.top,h=u.right,p=u.bottom,y=u.left;for(let t=1;t<f.length;t++){const o=x(i,f[t],s);a=(0,n.max)(o.top,a),h=(0,n.min)(o.right,h),p=(0,n.min)(o.bottom,p),y=(0,n.max)(o.left,y)}return{width:h-y,height:p-a,x:y,y:a}},getOffsetParent:O,getElementRects:async function(t){const n=this.getOffsetParent||O,o=this.getDimensions,i=await o(t.floating);return{reference:E(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:n,height:o}=i(t);return{width:n,height:o}},getScale:c,isElement:o.isElement,isRTL:function(t){return'rtl'===(0,o.getComputedStyle)(t).direction}};function P(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function R(t,i,l){let c,s=null;const f=(0,o.getDocumentElement)(t);function u(){var t;clearTimeout(c),null==(t=s)||t.disconnect(),s=null}function a(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),u();const h=t.getBoundingClientRect(),{left:p,top:y,width:b,height:w}=h;if(o||i(),!b||!w)return;const x={rootMargin:-(0,n.floor)(y)+"px "+-(0,n.floor)(f.clientWidth-(p+b))+"px "+-(0,n.floor)(f.clientHeight-(y+w))+"px "+-(0,n.floor)(p)+"px",threshold:(0,n.max)(0,(0,n.min)(1,l))||1};let v=!0;function E(n){const o=n[0].intersectionRatio;if(!P(h,t.getBoundingClientRect()))return a();if(o!==l){if(!v)return a();o?a(!1,o):c=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{s=new IntersectionObserver(E,Object.assign({},x,{root:f.ownerDocument}))}catch(t){s=new IntersectionObserver(E,x)}s.observe(t)}const h=(0,o.getWindow)(t),p=()=>a(l);return h.addEventListener('resize',p),a(!0),()=>{h.removeEventListener('resize',p),u()}}function W(t,n,i,c){void 0===c&&(c={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:u='function'==typeof ResizeObserver,layoutShift:h='function'==typeof IntersectionObserver,animationFrame:p=!1}=c,y=l(t),b=s||f?[...y?(0,o.getOverflowAncestors)(y):[],...n?(0,o.getOverflowAncestors)(n):[]]:[];b.forEach(t=>{s&&t.addEventListener('scroll',i),f&&t.addEventListener('resize',i)});const w=y&&h?R(y,i,f):null;let x,v=-1,E=null;u&&(E=new ResizeObserver(t=>{let[o]=t;o&&o.target===y&&E&&n&&(E.unobserve(n),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var t;null==(t=E)||t.observe(n)})),i()}),y&&!p&&E.observe(y),n&&E.observe(n));let C=p?a(t):null;return p&&(function n(){const o=a(t);C&&!P(C,o)&&i();C=o,x=requestAnimationFrame(n)})(),i(),()=>{var t;b.forEach(t=>{s&&t.removeEventListener('scroll',i),f&&t.removeEventListener('resize',i)}),null==w||w(),null==(t=E)||t.disconnect(),E=null,p&&cancelAnimationFrame(x)}}const S=t.detectOverflow,N=t.offset,j=t.autoPlacement,D=t.shift,F=t.flip,H=t.size,A=t.hide,M=t.arrow,z=t.inline,B=t.limitShift,V=(n,o,i)=>{const l=new Map,c=null!=i?i:{},s=Object.assign({},T,c.platform,{_c:l});return(0,t.computePosition)(n,o,Object.assign({},c,{platform:s}))}},240,[241,242,243]);
297
+ __d(function(g,r,_i,_a,m,_e,_d){"use strict";const e=["crossAxis","alignment","allowedPlacements","autoAlignment"],t=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],n=["strategy"],i=["mainAxis","crossAxis","limiter"],a=["apply"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"rectToClientRect",{enumerable:!0,get:function(){return c.rectToClientRect}}),Object.defineProperty(_e,"arrow",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"autoPlacement",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"computePosition",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"detectOverflow",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"flip",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"hide",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"inline",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"limitShift",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"offset",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"shift",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"size",{enumerable:!0,get:function(){return D}});var l,o=r(_d[0]),s=(l=o)&&l.__esModule?l:{default:l},c=r(_d[1]);function f(e,t,n){let{reference:i,floating:a}=e;const l=(0,c.getSideAxis)(t),o=(0,c.getAlignmentAxis)(t),s=(0,c.getAxisLength)(o),f=(0,c.getSide)(t),u='y'===l,d=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,y=i[s]/2-a[s]/2;let x;switch(f){case'top':x={x:d,y:i.y-a.height};break;case'bottom':x={x:d,y:i.y+i.height};break;case'right':x={x:i.x+i.width,y:p};break;case'left':x={x:i.x-a.width,y:p};break;default:x={x:i.x,y:i.y}}const h=(0,c.getAlignment)(t);return h&&(x[o]+=y*('end'===h?1:-1)*(n&&u?-1:1)),x}async function u(e,t){var n;void 0===t&&(t={});const{x:i,y:a,platform:l,rects:o,elements:s,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:y=!1,padding:x=0}=(0,c.evaluate)(t,e),h=(0,c.getPaddingObject)(x),w=s[y?'floating'===p?'reference':'floating':p],v=(0,c.rectToClientRect)(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(w)))||n?w:w.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:f})),b='floating'===p?{x:i,y:a,width:o.floating.width,height:o.floating.height}:o.reference,A=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),O=await(null==l.isElement?void 0:l.isElement(A))&&await(null==l.getScale?void 0:l.getScale(A))||{x:1,y:1},P=(0,c.rectToClientRect)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:A,strategy:f}):b);return{top:(v.top-P.top+h.top)/O.y,bottom:(P.bottom-v.bottom+h.bottom)/O.y,left:(v.left-P.left+h.left)/O.x,right:(P.right-v.right+h.right)/O.x}}const d=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:o}=n,s=o.detectOverflow?o:Object.assign({},o,{detectOverflow:u}),c=await(null==o.isRTL?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:y}=f(d,i,c),x=i,h=0;const w={};for(let n=0;n<l.length;n++){const u=l[n];if(!u)continue;const{name:v,fn:b}=u,{x:A,y:O,data:P,reset:R}=await b({x:p,y:y,initialPlacement:i,placement:x,strategy:a,middlewareData:w,rects:d,platform:s,elements:{reference:e,floating:t}});p=null!=A?A:p,y=null!=O?O:y,w[v]=Object.assign({},w[v],P),R&&h<50&&(h++,'object'==typeof R&&(R.placement&&(x=R.placement),R.rects&&(d=!0===R.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):R.rects),({x:p,y:y}=f(d,x,c))),n=-1)}return{x:p,y:y,placement:x,strategy:a,middlewareData:w}},p=e=>({name:'arrow',options:e,async fn(t){const{x:n,y:i,placement:a,rects:l,platform:o,elements:s,middlewareData:f}=t,{element:u,padding:d=0}=(0,c.evaluate)(e,t)||{};if(null==u)return{};const p=(0,c.getPaddingObject)(d),y={x:n,y:i},x=(0,c.getAlignmentAxis)(a),h=(0,c.getAxisLength)(x),w=await o.getDimensions(u),v='y'===x,b=v?'top':'left',A=v?'bottom':'right',O=v?'clientHeight':'clientWidth',P=l.reference[h]+l.reference[x]-y[x]-l.floating[h],R=y[x]-l.reference[x],S=await(null==o.getOffsetParent?void 0:o.getOffsetParent(u));let j=S?S[O]:0;j&&await(null==o.isElement?void 0:o.isElement(S))||(j=s.floating[O]||l.floating[h]);const T=P/2-R/2,C=j/2-w[h]/2-1,D=(0,c.min)(p[b],C),E=(0,c.min)(p[A],C),L=j-w[h]-E,k=j/2-w[h]/2+T,H=(0,c.clamp)(D,k,L),_=!f.arrow&&null!=(0,c.getAlignment)(a)&&k!==H&&l.reference[h]/2-(k<D?D:E)-w[h]/2<0,B=_?k<D?k-D:k-L:0;return{[x]:y[x]+B,data:Object.assign({[x]:H,centerOffset:k-H-B},_&&{alignmentOffset:B}),reset:_}}});function y(e,t,n){return(e?[...n.filter(t=>(0,c.getAlignment)(t)===e),...n.filter(t=>(0,c.getAlignment)(t)!==e)]:n.filter(e=>(0,c.getSide)(e)===e)).filter(n=>!e||((0,c.getAlignment)(n)===e||!!t&&(0,c.getOppositeAlignmentPlacement)(n)!==n))}const x=function(t){return void 0===t&&(t={}),{name:'autoPlacement',options:t,async fn(n){var i,a,l;const{rects:o,middlewareData:f,placement:u,platform:d,elements:p}=n,x=(0,c.evaluate)(t,n),{crossAxis:h=!1,alignment:w,allowedPlacements:v=c.placements,autoAlignment:b=!0}=x,A=(0,s.default)(x,e),O=void 0!==w||v===c.placements?y(w||null,b,v):v,P=(null==(i=f.autoPlacement)?void 0:i.index)||0,R=O[P];if(null==R)return{};if(u!==R)return{reset:{placement:O[0]}};const S=await d.detectOverflow(n,A),j=(0,c.getAlignmentSides)(R,o,await(null==d.isRTL?void 0:d.isRTL(p.floating))),T=[S[(0,c.getSide)(R)],S[j[0]],S[j[1]]],C=[...(null==(a=f.autoPlacement)?void 0:a.overflows)||[],{placement:R,overflows:T}],D=O[P+1];if(D)return{data:{index:P+1,overflows:C},reset:{placement:D}};const E=C.map(e=>{const t=(0,c.getAlignment)(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),L=(null==(l=E.filter(e=>e[2].slice(0,(0,c.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:l[0])||E[0][0];return L!==u?{data:{index:P+1,overflows:C},reset:{placement:L}}:{}}}},h=function(e){return void 0===e&&(e={}),{name:'flip',options:e,async fn(n){var i,a;const{placement:l,middlewareData:o,rects:f,initialPlacement:u,platform:d,elements:p}=n,y=(0,c.evaluate)(e,n),{mainAxis:x=!0,crossAxis:h=!0,fallbackPlacements:w,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:A=!0}=y,O=(0,s.default)(y,t);if(null!=(i=o.arrow)&&i.alignmentOffset)return{};const P=(0,c.getSide)(l),R=(0,c.getSideAxis)(u),S=(0,c.getSide)(u)===u,j=await(null==d.isRTL?void 0:d.isRTL(p.floating)),T=w||(S||!A?[(0,c.getOppositePlacement)(u)]:(0,c.getExpandedPlacements)(u)),C='none'!==b;!w&&C&&T.push(...(0,c.getOppositeAxisPlacements)(u,A,b,j));const D=[u,...T],E=await d.detectOverflow(n,O),L=[];let k=(null==(a=o.flip)?void 0:a.overflows)||[];if(x&&L.push(E[P]),h){const e=(0,c.getAlignmentSides)(l,f,j);L.push(E[e[0]],E[e[1]])}if(k=[...k,{placement:l,overflows:L}],!L.every(e=>e<=0)){var H,_;const e=((null==(H=o.flip)?void 0:H.index)||0)+1,t=D[e];if(t){if(!('alignment'===h&&R!==(0,c.getSideAxis)(t))||k.every(e=>(0,c.getSideAxis)(e.placement)!==R||e.overflows[0]>0))return{data:{index:e,overflows:k},reset:{placement:t}}}let n=null==(_=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!n)switch(v){case'bestFit':{var B;const e=null==(B=k.filter(e=>{if(C){const t=(0,c.getSideAxis)(e.placement);return t===R||'y'===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:B[0];e&&(n=e);break}case'initialPlacement':n=u}if(l!==n)return{reset:{placement:n}}}return{}}}};function w(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function v(e){return c.sides.some(t=>e[t]>=0)}const b=function(e){return void 0===e&&(e={}),{name:'hide',options:e,async fn(t){const{rects:i,platform:a}=t,l=(0,c.evaluate)(e,t),{strategy:o="referenceHidden"}=l,f=(0,s.default)(l,n);switch(o){case'referenceHidden':{const e=w(await a.detectOverflow(t,Object.assign({},f,{elementContext:'reference'})),i.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:v(e)}}}case'escaped':{const e=w(await a.detectOverflow(t,Object.assign({},f,{altBoundary:!0})),i.floating);return{data:{escapedOffsets:e,escaped:v(e)}}}default:return{}}}}};function A(e){const t=(0,c.min)(...e.map(e=>e.left)),n=(0,c.min)(...e.map(e=>e.top));return{x:t,y:n,width:(0,c.max)(...e.map(e=>e.right))-t,height:(0,c.max)(...e.map(e=>e.bottom))-n}}function O(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let i=null;for(let e=0;e<t.length;e++){const a=t[e];!i||a.y-i.y>i.height/2?n.push([a]):n[n.length-1].push(a),i=a}return n.map(e=>(0,c.rectToClientRect)(A(e)))}const P=function(e){return void 0===e&&(e={}),{name:'inline',options:e,async fn(t){const{placement:n,elements:i,rects:a,platform:l,strategy:o}=t,{padding:s=2,x:f,y:u}=(0,c.evaluate)(e,t),d=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(i.reference))||[]);if(!d.length)return{};const p=O(d),y=(0,c.rectToClientRect)(A(d)),x=(0,c.getPaddingObject)(s);const h=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&(p[0].left>p[1].right||p[1].left>p[0].right)&&null!=f&&null!=u)return p.find(e=>f>e.left-x.left&&f<e.right+x.right&&u>e.top-x.top&&u<e.bottom+x.bottom)||y;if(p.length>=2){if('y'===(0,c.getSideAxis)(n)){const e=p[0],t=p[p.length-1],i='top'===(0,c.getSide)(n),a=e.top,l=t.bottom,o=i?e.left:t.left,s=i?e.right:t.right;return(0,c.rectToClientRect)({x:o,y:a,width:s-o,height:l-a})}const e='left'===(0,c.getSide)(n),t=(0,c.max)(...p.map(e=>e.right)),i=(0,c.min)(...p.map(e=>e.left)),a=p.filter(n=>e?n.left===i:n.right===t),l=a[0].top,o=a[a.length-1].bottom;return(0,c.rectToClientRect)({x:i,y:l,width:t-i,height:o-l})}return y}},floating:i.floating,strategy:o});return a.reference.x!==h.reference.x||a.reference.y!==h.reference.y||a.reference.width!==h.reference.width||a.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},R=new Set(['left','top']);async function S(e,t){const{placement:n,platform:i,elements:a}=e,l=await(null==i.isRTL?void 0:i.isRTL(a.floating)),o=(0,c.getSide)(n),s=(0,c.getAlignment)(n),f='y'===(0,c.getSideAxis)(n),u=R.has(o)?-1:1,d=l&&f?-1:1,p=(0,c.evaluate)(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:h}='number'==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&'number'==typeof h&&(x='end'===s?-1*h:h),f?{x:x*d,y:y*u}:{x:y*u,y:x*d}}const j=function(e){return void 0===e&&(e=0),{name:'offset',options:e,async fn(t){var n,i;const{x:a,y:l,placement:o,middlewareData:s}=t,c=await S(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:a+c.x,y:l+c.y,data:Object.assign({},c,{placement:o})}}}},T=function(e){return void 0===e&&(e={}),{name:'shift',options:e,async fn(t){const{x:n,y:a,placement:l,platform:o}=t,f=(0,c.evaluate)(e,t),{mainAxis:u=!0,crossAxis:d=!1,limiter:p={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=f,y=(0,s.default)(f,i),x={x:n,y:a},h=await o.detectOverflow(t,y),w=(0,c.getSideAxis)(l),v=(0,c.getOppositeAxis)(w);let b=x[v],A=x[w];const O=(e,t)=>(0,c.clamp)(t+h['y'===e?'top':'left'],t,t-h['y'===e?'bottom':'right']);u&&(b=O(v,b)),d&&(A=O(w,A));const P=p.fn(Object.assign({},t,{[v]:b,[w]:A}));return Object.assign({},P,{data:{x:P.x-n,y:P.y-a,enabled:{[v]:u,[w]:d}}})}}},C=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,i;const{x:a,y:l,placement:o,rects:s,middlewareData:f}=t,{offset:u=0,mainAxis:d=!0,crossAxis:p=!0}=(0,c.evaluate)(e,t),y={x:a,y:l},x=(0,c.getSideAxis)(o),h=(0,c.getOppositeAxis)(x);let w=y[h],v=y[x];const b=(0,c.evaluate)(u,t),A='number'==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(n=b.mainAxis)?n:0,crossAxis:null!=(i=b.crossAxis)?i:0};if(d){const e='y'===h?'height':'width',t=s.reference[h]-s.floating[e]+A.mainAxis,n=s.reference[h]+s.reference[e]-A.mainAxis;w<t?w=t:w>n&&(w=n)}if(p){var O,P;const e='y'===h?'width':'height',t=R.has((0,c.getSide)(o)),n=s.reference[x]-s.floating[e]+(t&&(null==(O=f.offset)?void 0:O[x])||0)+(t?0:A.crossAxis),i=s.reference[x]+s.reference[e]+(t?0:(null==(P=f.offset)?void 0:P[x])||0)-(t?A.crossAxis:0);v<n?v=n:v>i&&(v=i)}return{[h]:w,[x]:v}}}},D=function(e){return void 0===e&&(e={}),{name:'size',options:e,async fn(t){const{placement:n,rects:i,platform:l,elements:o}=t,f=(0,c.evaluate)(e,t),{apply:u=()=>{}}=f,d=(0,s.default)(f,a),p=await l.detectOverflow(t,d),y=(0,c.getSide)(n),x=(0,c.getAlignment)(n),h='y'===(0,c.getSideAxis)(n),{width:w,height:v}=i.floating;let b,A;'top'===y||'bottom'===y?(b=y,A=x===(await(null==l.isRTL?void 0:l.isRTL(o.floating))?'start':'end')?'left':'right'):(A=y,b='end'===x?'top':'bottom');const O=v-p.top-p.bottom,P=w-p.left-p.right,R=(0,c.min)(v-p[b],O),S=(0,c.min)(w-p[A],P),j=t.middlewareData.shift,T=!j;let C=R,D=S;null!=j&&j.enabled.x&&(D=P),null!=j&&j.enabled.y&&(C=O),T&&!x&&(h?D=w-2*(0,c.max)(p.left,p.right):C=v-2*(0,c.max)(p.top,p.bottom)),await u(Object.assign({},t,{availableWidth:D,availableHeight:C}));const E=await l.getDimensions(o.floating);return w!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}}},241,[131,242]);
298
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"alignments",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createCoords",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"evaluate",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"expandPaddingObject",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"floor",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getAlignment",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getAlignmentAxis",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"getAlignmentSides",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"getAxisLength",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"getExpandedPlacements",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getOppositeAlignmentPlacement",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getOppositeAxis",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"getOppositeAxisPlacements",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"getOppositePlacement",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getPaddingObject",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getSide",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getSideAxis",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"placements",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"rectToClientRect",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"round",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"sides",{enumerable:!0,get:function(){return t}});const t=['top','right','bottom','left'],n=['start','end'],o=t.reduce((t,o)=>t.concat(o,o+"-"+n[0],o+"-"+n[1]),[]),u=Math.min,c=Math.max,f=Math.round,l=Math.floor,b=t=>({x:t,y:t}),p={left:'right',right:'left',bottom:'top',top:'bottom'};function s(t,n,o){return c(t,u(n,o))}function y(t,n){return'function'==typeof t?t(n):t}function O(t){return t.split('-')[0]}function P(t){return t.split('-')[1]}function h(t){return'x'===t?'y':'x'}function j(t){return'y'===t?'height':'width'}function x(t){const n=t[0];return't'===n||'b'===n?'y':'x'}function A(t){return h(x(t))}function M(t,n,o){void 0===o&&(o=!1);const u=P(t),c=A(t),f=j(c);let l='x'===c?u===(o?'end':'start')?'right':'left':'start'===u?'bottom':'top';return n.reference[f]>n.floating[f]&&(l=T(l)),[l,T(l)]}function v(t){const n=T(t);return[w(t),n,w(n)]}function w(t){return t.includes('start')?t.replace('start','end'):t.replace('end','start')}const _=['left','right'],S=['right','left'],C=['top','bottom'],E=['bottom','top'];function L(t,n,o){switch(t){case'top':case'bottom':return o?n?S:_:n?_:S;case'left':case'right':return n?C:E;default:return[]}}function R(t,n,o,u){const c=P(t);let f=L(O(t),'start'===o,u);return c&&(f=f.map(t=>t+"-"+c),n&&(f=f.concat(f.map(w)))),f}function T(t){const n=O(t);return p[n]+t.slice(n.length)}function k(t){var n,o,u,c;return{top:null!=(n=t.top)?n:0,right:null!=(o=t.right)?o:0,bottom:null!=(u=t.bottom)?u:0,left:null!=(c=t.left)?c:0}}function q(t){return'number'!=typeof t?k(t):{top:t,right:t,bottom:t,left:t}}function z(t){const{x:n,y:o,width:u,height:c}=t;return{width:u,height:c,top:o,left:n,right:n+u,bottom:o+c,x:n,y:o}}},242,[]);
299
+ __d(function(g,r,i,a,m,e,d){"use strict";function t(){return'undefined'!=typeof window}function n(t){return c(t)?(t.nodeName||'').toLowerCase():'#document'}function o(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function u(t){var n;return null==(n=(c(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function c(n){return!!t()&&(n instanceof Node||n instanceof o(n).Node)}function l(n){return!!t()&&(n instanceof Element||n instanceof o(n).Element)}function f(n){return!!t()&&(n instanceof HTMLElement||n instanceof o(n).HTMLElement)}function s(n){return!(!t()||'undefined'==typeof ShadowRoot)&&(n instanceof ShadowRoot||n instanceof o(n).ShadowRoot)}function b(t){const{overflow:n,overflowX:o,overflowY:u,display:c}=N(t);return/auto|scroll|overlay|hidden|clip/.test(n+u+o)&&'inline'!==c&&'contents'!==c}function p(t){return/^(table|td|th)$/.test(n(t))}function y(t){try{if(t.matches(':popover-open'))return!0}catch(t){}try{return t.matches(':modal')}catch(t){return!1}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getComputedStyle",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"getContainingBlock",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"getDocumentElement",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getFrameElement",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"getNearestOverflowAncestor",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getNodeName",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getNodeScroll",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getOverflowAncestors",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"getParentNode",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"getWindow",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isContainingBlock",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isHTMLElement",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isLastTraversableNode",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isOverflowElement",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isShadowRoot",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isTableElement",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isTopLayer",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isWebKit",{enumerable:!0,get:function(){return S}});const w=/transform|translate|scale|rotate|perspective|filter/,O=/paint|layout|strict|content/,P=t=>!!t&&'none'!==t;let j;function v(t){const n=l(t)?N(t):t;return P(n.transform)||P(n.translate)||P(n.scale)||P(n.rotate)||P(n.perspective)||!S()&&(P(n.backdropFilter)||P(n.filter))||w.test(n.willChange||'')||O.test(n.contain||'')}function h(t){let n=L(t);for(;f(n)&&!E(n);){if(v(n))return n;if(y(n))return null;n=L(n)}return null}function S(){return null==j&&(j='undefined'!=typeof CSS&&CSS.supports&&CSS.supports('-webkit-backdrop-filter','none')),j}function E(t){return/^(html|body|#document)$/.test(n(t))}function N(t){return o(t).getComputedStyle(t)}function C(t){return l(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function L(t){if('html'===n(t))return t;const o=t.assignedSlot||t.parentNode||s(t)&&t.host||u(t);return s(o)?o.host:o}function T(t){const n=L(t);return E(n)?(t.ownerDocument||t).body:f(n)&&b(n)?n:T(n)}function k(t,n,u){var c;void 0===n&&(n=[]),void 0===u&&(u=!0);const l=T(t),f=l===(null==(c=t.ownerDocument)?void 0:c.body),s=o(l);if(f){const t=D(s);return n.concat(s,s.visualViewport||[],b(l)?l:[],t&&u?k(t):[])}return n.concat(l,k(l,[],u))}function D(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}},243,[]);
300
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["children","width","height"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Arrow",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return f}});var t,n=r(_d[0]),o=(t=n)&&t.__esModule?t:{default:t},u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),c=r(_d[2]),d=r(_d[3]),s=u.forwardRef((t,n)=>{const{children:u,width:s=10,height:f=5}=t,l=(0,o.default)(t,e);return(0,d.jsx)(c.Primitive.svg,Object.assign({},l,{ref:n,width:s,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?u:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})}))});s.displayName="Arrow";var f=s},244,[131,38,187,151]);
301
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useSize",{enumerable:!0,get:function(){return n}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]);function n(n){const[o,f]=e.useState(void 0);return(0,t.useLayoutEffect)(()=>{if(n){f({width:n.offsetWidth,height:n.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const t=e[0];let o,u;if("borderBoxSize"in t){const e=t.borderBoxSize,n=Array.isArray(e)?e[0]:e;o=n.inlineSize,u=n.blockSize}else o=n.offsetWidth,u=n.offsetHeight;f({width:o,height:u})});return e.observe(n,{box:"border-box"}),()=>e.unobserve(n)}f(void 0)},[n]),o}},245,[38,183]);
302
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"],t=["__scopeRovingFocusGroup","focusable","active","tabStopId","children"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Item",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"Root",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"RovingFocusGroup",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"RovingFocusGroupItem",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"createRovingFocusGroupScope",{enumerable:!0,get:function(){return O}});var o,n=r(_d[0]),u=(o=n)&&o.__esModule?o:{default:o},c=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[1])),s=r(_d[2]),l=r(_d[3]),f=r(_d[4]),d=r(_d[5]),p=r(_d[6]),v=r(_d[7]),b=r(_d[8]),y=r(_d[9]),F=r(_d[10]),I=r(_d[11]),w=r(_d[12]),R=r(_d[13]),S="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},E="RovingFocusGroup",[j,_,T]=(0,l.createCollection)(E),[C,O]=(0,d.createContextScope)(E,[T]),[P,x]=C(E),A=c.forwardRef((e,t)=>(0,R.jsx)(j.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,R.jsx)(j.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,R.jsx)(D,Object.assign({},e,{ref:t}))})}));A.displayName=E;var D=c.forwardRef((t,o)=>{const{__scopeRovingFocusGroup:n,orientation:l,loop:d=!1,dir:p,currentTabStopId:I,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:T,preventScrollOnEntryFocus:C=!1}=t,O=(0,u.default)(t,e),x=c.useRef(null),A=(0,f.useComposedRefs)(o,x),D=(0,F.useDirection)(p),[G,k]=(0,y.useControllableState)({prop:I,defaultProp:w??null,onChange:j,caller:E}),[H,K]=c.useState(!1),L=(0,b.useCallbackRef)(T),B=_(n),U=c.useRef(!1),[N,z]=c.useState(0);return c.useEffect(()=>{const e=x.current;if(e)return e.addEventListener(S,L),()=>e.removeEventListener(S,L)},[L]),(0,R.jsx)(P,{scope:n,orientation:l,dir:D,loop:d,currentTabStopId:G,onItemFocus:c.useCallback(e=>k(e),[k]),onItemShiftTab:c.useCallback(()=>K(!0),[]),onFocusableItemAdd:c.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:c.useCallback(()=>z(e=>e-1),[]),children:(0,R.jsx)(v.Primitive.div,Object.assign({tabIndex:H||0===N?-1:0,"data-orientation":l},O,{ref:A,style:Object.assign({outline:"none"},t.style),onMouseDown:(0,s.composeEventHandlers)(t.onMouseDown,()=>{U.current=!0}),onFocus:(0,s.composeEventHandlers)(t.onFocus,e=>{const t=!U.current;if(e.target===e.currentTarget&&t&&!H){const t=new CustomEvent(S,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=B().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===G),...e].filter(Boolean).map(e=>e.ref.current),C)}}U.current=!1}),onBlur:(0,s.composeEventHandlers)(t.onBlur,()=>K(!1))}))})}),G="RovingFocusGroupItem",k=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,focusable:l=!0,active:f=!1,tabStopId:d,children:b}=e,y=(0,u.default)(e,t),F=(0,p.useId)(),S=d||F,h=x(G,n),E=h.currentTabStopId===S,T=_(n),{onFocusableItemAdd:C,onFocusableItemRemove:O,currentTabStopId:P}=h,A=(0,w.useIsHydrated)();return(0,I.useLayoutEffect)(()=>{if(A&&l)return C(),()=>O()},[A,l,C,O]),c.useEffect(()=>{if(!A&&l)return C(),()=>O()},[A,l,C,O]),(0,R.jsx)(j.ItemSlot,{scope:n,id:S,focusable:l,active:f,children:(0,R.jsx)(v.Primitive.span,Object.assign({tabIndex:E?0:-1,"data-orientation":h.orientation},y,{ref:o,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{l?h.onItemFocus(S):e.preventDefault()}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(S)),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=L(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let u=T().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)u.reverse();else if("prev"===t||"next"===t){"prev"===t&&u.reverse();const c=u.indexOf(e.currentTarget);u=h.loop?(n=c+1,(o=u).map((e,t)=>o[(n+t)%o.length])):u.slice(c+1)}setTimeout(()=>M(u))}var o,n}),children:"function"==typeof b?b({isCurrentTabStop:E,hasTabStop:null!=P}):b}))})});k.displayName=G;var H={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function K(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function L(e,t,o){const n=K(e.key,o);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return H[n]}function M(e,t=!1){const o=document.activeElement;for(const n of e){if(n===o)return;if(n.focus({preventScroll:t}),document.activeElement!==o)return}}var B=A,U=k},246,[131,38,179,236,180,181,182,187,189,184,237,183,247,151]);
303
+ __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useIsHydrated",{enumerable:!0,get:function(){return o}});var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=!1;var n=e[" useSyncExternalStore ".trim().toString()];function u(){return()=>{}}var o="function"==typeof n?function(){return n(u,()=>!0,()=>!1)}:function(){const[n,u]=e.useState(t);return e.useEffect(()=>{t||(t=!0,u(!0))},[]),n}},247,[38]);
304
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["label","description","Icon","rightSlot","disabled","destructive","onSelect","preventAutoClose"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.DropdownItem=function(t){let{label:s,description:x,Icon:u,rightSlot:f,disabled:p,destructive:v,onSelect:h,preventAutoClose:j}=t,b=(0,l.default)(t,e);return(0,n.jsx)(c.Item,Object.assign({"aria-disabled":p,className:(0,o.cx)('relative z-40 flex cursor-pointer items-center justify-between rounded-lg p-2 transition select-none','hocus:bg-hover','hover:outline-0',!p&&'active:scale-98',p&&'cursor-default opacity-60 hocus:bg-default'),onSelect:e=>{p?e.preventDefault():(j&&e.preventDefault(),h?.(e))}},b,{children:(0,n.jsxs)("div",{className:"flex flex-1 flex-col gap-0.5",children:[(0,n.jsxs)("div",{className:(0,o.cx)('flex items-center justify-between',p&&'pointer-events-none'),children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[u&&(0,n.jsx)("span",{className:(0,o.cx)('flex',v?'text-icon-danger':'text-icon-default'),children:(0,n.jsx)(u,{size:16})}),'string'==typeof s?(0,n.jsx)("p",{className:(0,o.cx)(v?'text-danger':'text-default','text-sm font-medium'),children:s}):s]}),'string'==typeof f?(0,n.jsx)("p",{className:"text-xs text-secondary",children:f}):f]}),x&&'string'==typeof x?(0,n.jsx)("p",{className:"text-xs leading-4.5 text-tertiary",children:x}):null,x&&'string'!=typeof x?x:null]})}))};var t,s=r(d[0]),l=(t=s)&&t.__esModule?t:{default:t},n=r(d[1]),c=r(d[2]),o=r(d[3])},248,[131,151,234,232]);
305
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Logo=function({style:c}){return(0,l.jsx)("svg",{viewBox:"0 0 71 20",width:72,height:20,fill:"none",role:"img","aria-label":"Expo",style:Object.assign({color:t.text.default,userSelect:'none',WebkitUserSelect:'none',flexShrink:0},c),children:(0,l.jsx)("path",{d:"M9.258 6.342c.158-.23.331-.26.472-.26.14 0 .374.03.532.26 2.06 2.806 6.332 10.208 6.727 10.611.585.597 1.388.225 1.854-.452.46-.667.587-1.135.587-1.634 0-.34-6.653-12.614-7.324-13.636C11.462.248 11.252 0 10.15 0h-.825c-1.1 0-1.259.248-1.903 1.23C6.75 2.254.097 14.528.097 14.868c0 .5.127.967.587 1.634.466.677 1.269 1.05 1.854.452.395-.403 4.661-7.805 6.72-10.61zm14.941-5.237v15.344h9.35v-3.113h-6.125v-3.244h5.45V6.98h-5.45V4.218h6.125V1.105h-9.35zM46.25 16.449l-3.88-5.568 3.619-5.195h-3.662L40.54 8.23l-1.765-2.543h-3.706l3.618 5.217-3.857 5.546h3.661l2.027-2.915 2.027 2.915h3.705zm7.572-10.982c-1.482 0-2.637.614-3.378 1.732V5.686H47.37V20h3.073v-5.063c.74 1.117 1.896 1.731 3.378 1.731 2.768 0 4.97-2.52 4.97-5.611 0-3.091-2.202-5.59-4.97-5.59zm-.697 8.242c-1.504 0-2.681-1.14-2.681-2.652 0-1.49 1.177-2.653 2.68-2.653 1.483 0 2.681 1.184 2.681 2.653 0 1.49-1.198 2.652-2.68 2.652zm12.188-8.242c-3.16 0-5.558 2.411-5.558 5.612 0 3.2 2.397 5.59 5.557 5.59 3.139 0 5.558-2.39 5.558-5.59 0-3.2-2.42-5.612-5.558-5.612zm0 2.96c1.438 0 2.55 1.117 2.55 2.652 0 1.49-1.112 2.63-2.55 2.63-1.46 0-2.55-1.14-2.55-2.63 0-1.535 1.09-2.653 2.55-2.653z",fill:"currentColor"})})};var l=r(d[0]),t=r(d[1])},249,[151,173]);
306
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ResizeHandle=function({side:s,offset:c,onResize:u,onResizeStart:l,onResizeEnd:f}){const[p,b]=(0,n.useState)(!1),[P,y]=(0,n.useState)(!1),v=(0,n.useRef)(0),z=(0,n.useRef)(!1);function R(t){z.current&&(z.current=!1,y(!1),t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId),f?.())}const h=p||P;return(0,t.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",onPointerDown:function(t){0===t.button&&(t.preventDefault(),v.current=t.clientX,z.current=!0,y(!0),t.currentTarget.setPointerCapture(t.pointerId),l?.())},onPointerMove:function(t){if(!z.current)return;const n=t.clientX-v.current;u('left'===s?n:-n)},onPointerUp:R,onPointerCancel:R,onPointerEnter:()=>b(!0),onPointerLeave:()=>b(!1),style:{position:'absolute',top:0,bottom:0,[s]:c,transform:'left'===s?'translateX(-50%)':'translateX(50%)',width:12,display:'flex',alignItems:'center',justifyContent:'center',boxSizing:'border-box',cursor:'col-resize',touchAction:'none',zIndex:5},children:(0,t.jsx)("div",{style:{width:4,height:40,borderRadius:999,backgroundColor:P?o.icon.secondary:o.icon.tertiary,opacity:h?1:0,transition:'opacity 120ms ease, background-color 120ms ease'}})})};var t=r(d[0]),n=r(d[1]),o=r(d[2])},250,[151,38,173]);
307
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SegmentedControl=function({ariaLabel:c,ariaDescribedBy:f,options:h,value:p,onChange:x}){const v=h.findIndex(t=>t.value===p),y=(0,o.useRef)([]),[w,z]=(0,o.useState)(null),S=(0,o.useCallback)(()=>{const t=y.current[v];if(!t)return void z(null);const o={left:t.offsetLeft,width:t.offsetWidth};z(t=>t?.left===o.left&&t.width===o.width?t:o)},[v]);return(0,o.useLayoutEffect)(()=>{if(S(),'undefined'==typeof ResizeObserver)return;const t=new ResizeObserver(S);return y.current.forEach(o=>{o&&t.observe(o)}),()=>t.disconnect()},[S,h.length]),(0,t.jsxs)("div",{role:"group","aria-label":c,"aria-describedby":f,style:{display:'flex',position:'relative',flexShrink:0,gap:u,height:l,padding:u,boxSizing:'border-box',border:`1px solid ${n.border.default}`,borderRadius:n.radius.full,backgroundColor:n.bg.subtle},children:[w&&(0,t.jsx)("span",{"aria-hidden":"true",style:{position:'absolute',top:u,left:w.left,width:w.width,height:s,borderRadius:n.radius.full,backgroundColor:n.text.default,transition:'left 180ms cubic-bezier(.4, 0, .2, 1), width 180ms cubic-bezier(.4, 0, .2, 1)'}}),h.map((o,l)=>{const u=p===o.value;return(0,t.jsx)("button",{ref:t=>{y.current[l]=t},type:"button",disabled:o.disabled,"aria-pressed":u,onClick:()=>x(o.value),style:Object.assign({},n.textSize.xs,{position:'relative',zIndex:1,width:'auto',height:s,flexShrink:0,boxSizing:'border-box',padding:`0 ${b}px`,border:0,borderRadius:n.radius.full,backgroundColor:'transparent',color:u?n.bg.default:n.text.secondary,fontFamily:'inherit',fontWeight:500,whiteSpace:'nowrap',cursor:o.disabled?'default':'pointer',opacity:o.disabled?.5:1,transition:'color 120ms cubic-bezier(.4, 0, .2, 1)'}),children:o.label},o.value)})]})};var t=r(d[0]),o=r(d[1]),n=r(d[2]);const l=28,s=22,u=2,b=8},251,[151,38,173]);
308
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarToggle=function({onClick:l,floating:u=!1,side:c="left"}){const[b,f]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),y=u?{width:40,height:40,borderRadius:t.radius.lg,border:'none',backgroundColor:b?t.bg.element:'transparent'}:{width:32,height:32,borderRadius:t.radius.md,border:'none',backgroundColor:b?t.bg.element:'transparent'};return(0,o.jsx)("button",{type:"button","aria-label":"Toggle sidebar",onClick:l,onMouseEnter:()=>f(!0),onMouseLeave:()=>{f(!1),p(!1)},onMouseDown:()=>p(!0),onMouseUp:()=>p(!1),style:Object.assign({display:'flex',alignItems:'center',justifyContent:'center',padding:0,cursor:'pointer',boxSizing:'border-box',transition:'background-color 150ms ease, transform 100ms ease',transform:h?'scale(0.98)':void 0},y),children:(0,o.jsx)(s.SidebarIcon,{size:20,color:t.icon.default,style:'right'===c?{transform:'scaleX(-1)'}:void 0})})};var o=r(d[0]),n=r(d[1]),t=r(d[2]),s=r(d[3])},252,[151,38,173,176]);
309
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Switch=function({checked:s,onChange:l,label:c}){const[u,b]=(0,n.useState)(!1),[h,x]=(0,n.useState)(!1),f={display:'flex',alignItems:'center',justifyContent:'center',width:32,height:32,boxSizing:'border-box',borderRadius:o.radius.full,border:`1px solid ${o.border.default}`,backgroundColor:u?o.bg.element:'transparent',transition:'background-color 150ms ease, transform 100ms ease',transform:h?'scale(0.98)':void 0};return(0,t.jsxs)("button",{type:"button",role:"switch","aria-checked":s,"aria-label":c,onClick:()=>l?.(!s),onMouseEnter:()=>b(!0),onMouseLeave:()=>{b(!1),x(!1)},onMouseDown:()=>x(!0),onMouseUp:()=>x(!1),style:{display:'flex',flexDirection:'column',alignItems:'center',gap:6,padding:0,border:'none',background:'none',cursor:'pointer',fontFamily:'inherit'},children:[(0,t.jsx)("span",{style:f,children:(0,t.jsx)("span",{style:{width:16,height:16,borderRadius:o.radius.full,backgroundColor:o.text.default}})}),c&&(0,t.jsx)("span",{style:Object.assign({},o.textSize['2xs'],{color:o.text.secondary,textAlign:'center'}),children:c})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2])},253,[151,38,173]);
310
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Sidebar=function({simulators:n,emulators:s,recentSimulators:c,recentEmulators:u,simulatorOptions:p,emulatorOptions:b,selectedId:x,onSelect:v,onAddDevice:h,onToggle:S,platform:f,width:j=400}){return(0,t.jsxs)("aside",{style:{display:'flex',flexDirection:'column',gap:32,width:`min(${j}px, 100vw)`,flexShrink:0,height:'100vh',boxSizing:'border-box',padding:'32px 24px',overflow:'hidden'},children:[(0,t.jsxs)("div",{style:{display:'flex',alignItems:'center',justifyContent:'space-between',gap:8},children:[(0,t.jsx)(o.Logo,{}),S&&(0,t.jsx)(o.SidebarToggle,{onClick:S})]}),'android'!==f&&(0,t.jsx)(l.DeviceSection,{title:"Simulators",addLabel:"Add simulator",kind:"simulator",emptyLabel:"No booted simulators. Use the + button to add one.",devices:n,recent:c,options:p,selectedId:x,onSelect:v,onAdd:h}),'ios'!==f&&(0,t.jsx)(l.DeviceSection,{title:"Emulators",addLabel:"Add emulator",kind:"emulator",emptyLabel:"No booted emulators or devices. Use the + button to add one.",devices:s,recent:u,options:b,selectedId:x,onSelect:v,onAdd:h})]})};var t=r(d[0]),o=r(d[1]),l=r(d[2])},254,[151,255,256]);
311
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var c=r(d[2]);Object.keys(c).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var o=r(d[3]);Object.keys(o).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var u=r(d[4]);Object.keys(u).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var f=r(d[5]);Object.keys(f).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})});var l=r(d[6]);Object.keys(l).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})});var b=r(d[7]);Object.keys(b).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}})});var p=r(d[8]);Object.keys(p).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}})});var y=r(d[9]);Object.keys(y).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}})});var O=r(d[10]);Object.keys(O).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return O[t]}})});var j=r(d[11]);Object.keys(j).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}})});var s=r(d[12]);Object.keys(s).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})})},255,[172,174,175,177,233,248,249,250,252,253,232,176,173]);
312
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceSection=function({title:l,addLabel:c,kind:u,emptyLabel:p,devices:b,recent:x,options:y,selectedId:f,onSelect:v,onAdd:h}){const[j,k]=(0,t.useState)(!1),[S,C]=(0,t.useState)(!1),[M,D]=(0,t.useState)(!1),I=new Set(b.map(s=>s.id)),L=x.filter(s=>!I.has(s.id));return(0,s.jsxs)("section",{style:{display:'grid',gap:12},children:[(0,s.jsxs)("div",{style:{display:'flex',alignItems:'center',gap:8},children:[(0,s.jsx)("span",{style:Object.assign({},o.textSize.sm,{fontWeight:500,color:o.text.default}),children:l}),!!h&&(0,s.jsx)("button",{type:"button","aria-label":c,onClick:()=>D(!0),onMouseEnter:()=>k(!0),onMouseLeave:()=>{k(!1),C(!1)},onMouseDown:()=>C(!0),onMouseUp:()=>C(!1),style:{display:'flex',alignItems:'center',justifyContent:'center',width:26,height:26,padding:0,borderRadius:o.radius.full,border:`1px solid ${o.border.default}`,backgroundColor:j?o.bg.hover:o.bg.default,cursor:'pointer',transition:'background-color 150ms ease, transform 100ms ease',transform:S?'scale(0.98)':void 0},children:(0,s.jsx)(o.PlusIcon,{size:18,color:o.icon.secondary})})]}),(0,s.jsx)("div",{style:{display:'grid',gap:6},children:0===b.length?(0,s.jsx)("p",{style:Object.assign({},o.textSize.sm,{color:o.text.secondary,margin:0,padding:'12px 16px',borderRadius:o.radius.xl,border:`1px dashed ${o.border.default}`,backgroundColor:o.bg.default}),children:p}):b.map(t=>(0,s.jsx)(o.DeviceListItem,{name:t.name,version:t.version,unsupported:!t.supported,selected:t.id===f,onClick:()=>v(t.id)},t.id))}),(0,s.jsx)(n.RecentDevicesModal,{open:M,onClose:()=>D(!1),kind:u,devices:L,options:y,onAdd:h||(async()=>({ok:!1,error:'Device actions are unavailable.'}))})]})};var s=r(d[0]),t=r(d[1]),o=r(d[2]),n=r(d[3])},256,[151,38,255,257]);
313
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RecentDevicesModal=function({open:h,onClose:f,kind:b,devices:v,options:y,onAdd:j}){const w='simulator'===b?'ios':'android',C=b,S=`Add a${'emulator'===b?'n':''} ${C}`,$=(0,t.useMemo)(()=>[...v].sort((n,t)=>(t.lastUsedAt??0)-(n.lastUsedAt??0)),[v]),[k,z]=(0,t.useState)({kind:'new'}),[A,F]=(0,t.useState)(''),[D,M]=(0,t.useState)(''),[_,I]=(0,t.useState)(''),[R,B]=(0,t.useState)(!1),[N,T]=(0,t.useState)(!1),[O,U]=(0,t.useState)(!1),[E,W]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(!h)return;const n=y.runtimes[0],t=n?.models[0];F(n?.value??''),M(t?.value??''),I(x(t?.label??'',$,w)),B(!1),T(!1),U(!1),W(null),z($.length?{kind:'recent',id:$[0].id}:{kind:'new'})},[h,y]);const Z='new'===k.kind,H='recent'===k.kind?$.find(n=>n.id===k.id):void 0,q=(0,t.useMemo)(()=>{const n=new Map;for(const t of y.runtimes)for(const o of t.models)n.has(o.value)||n.set(o.value,o);return[...n.values()].sort((n,t)=>n.label.localeCompare(t.label,void 0,{numeric:!0}))},[y.runtimes]),L='android'===w?y.runtimes.filter(n=>n.models.some(n=>n.value===D)):y.runtimes,P=L.find(n=>n.value===A),V='android'===w?q:P?.models??[],Y=P?.models.find(n=>n.value===D),G=()=>{z({kind:'new'}),W(null)};function J(n){const t=y.runtimes.find(t=>t.value===n);if(F(n),G(),'ios'===w){const n=t?.models[0];M(n?.value??''),R||I(x(n?.label??'',$,w))}}function K(n){M(n),G();const t=V.find(t=>t.value===n);if('android'===w){const t=y.runtimes.find(t=>t.models.some(t=>t.value===n));F(t?.value??'')}R||I(x(t?.label??'',$,w))}const Q=_.trim(),X=Q.length>0&&('android'!==w||l.test(Q)),ee='android'===w&&R&&Q.length>0&&!l.test(Q),ne=`new-${w}-device-name-hint`,te=Z?X&&A.length>0&&D.length>0:!!H;return(0,n.jsx)(o.DialogRoot,{open:h,onOpenChange:n=>{n||f()},children:(0,n.jsxs)(o.DialogContent,{children:[(0,n.jsx)(o.DialogTitle,{title:S}),(0,n.jsxs)("form",{onSubmit:async function(n){if(n.preventDefault(),te&&!O){U(!0),W(null);try{const n=Z&&P&&Y?{kind:'new',device:{platform:w,name:Q,runtime:P.value,deviceType:Y.value,version:P.label,supported:Y.supported}}:{kind:'recent',device:H},t=await j(n);t.ok?f():W(t.error)}catch(n){W(n instanceof Error?n.message:String(n))}finally{U(!1)}}},children:[(0,n.jsxs)(o.DialogContentContainer,{children:[(0,n.jsx)(s,{children:"Recents"}),(0,n.jsx)("div",{style:{display:'flex',flexDirection:'column',gap:3},children:0===$.length?(0,n.jsxs)("p",{style:{margin:0,padding:'2px 2px 6px 2px',fontSize:13,color:o.text.tertiary},children:["No recent ",C,"s."]}):$.map(t=>(0,n.jsx)(c,{device:t,selected:'recent'===k.kind&&k.id===t.id,onSelect:()=>{z({kind:'recent',id:t.id}),W(null)}},t.id))}),(0,n.jsxs)("div",{style:{marginTop:10},children:[(0,n.jsxs)(s,{active:Z,children:["New ",C]}),(0,n.jsx)("div",{onClick:G,style:{borderRadius:o.radius.lg,overflow:'hidden',backgroundColor:o.bg.subtle,border:`1px solid ${Z?o.border.default:o.border.secondary}`,transition:'border-color 150ms ease'},children:0===y.runtimes.length?(0,n.jsxs)("p",{style:{margin:0,padding:13,color:o.text.tertiary,fontSize:13},children:["No usable ",'ios'===w?'iOS runtimes':'Android system images'," were found on this host."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Name"}),'android'===w&&(0,n.jsx)("span",{id:ne,style:{color:ee?o.text.danger:o.text.tertiary,fontSize:11,lineHeight:1.3},children:a})]}),htmlFor:`new-${w}-device-name`,last:!1,children:(0,n.jsx)("div",{style:{flex:'0 0 58%'},children:(0,n.jsx)("input",{id:`new-${w}-device-name`,type:"text",value:_,placeholder:Y?.label||`New ${C}`,autoComplete:"off",spellCheck:!1,pattern:'android'===w?'[A-Za-z0-9._-]+':void 0,title:'android'===w?a:void 0,"aria-invalid":!!ee||void 0,"aria-describedby":'android'===w?ne:void 0,disabled:O,onChange:n=>{return t=n.currentTarget.value,I(t),B(!0),void G();var t},onFocus:()=>{T(!0),G()},onBlur:()=>T(!1),style:{width:'100%',boxSizing:'border-box',padding:'6px 10px',border:`1px solid ${ee?o.border.danger:o.border.default}`,borderRadius:o.radius.md,backgroundColor:o.bg.default,color:Z?o.text.default:o.text.tertiary,caretColor:o.text.default,fontSize:16,fontFamily:'inherit',outline:'none',boxShadow:N?`0 0 0 3px ${o.bg.element}`:'none'}})})}),'android'===w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:"Model",htmlFor:`new-${w}-model`,last:!1,children:(0,n.jsx)(p,{id:`new-${w}-model`,value:D,options:V,disabled:O,onChange:K,onActivate:G,trailing:(0,n.jsx)(o.ChevronsUpDownIcon,{size:14,color:o.icon.secondary})})}),(0,n.jsx)(u,{label:"OS version",htmlFor:`new-${w}-runtime`,last:!0,children:(0,n.jsx)(p,{id:`new-${w}-runtime`,value:A,options:L,disabled:O,onChange:J,onActivate:G,trailing:(0,n.jsx)(o.ChevronDownIcon,{size:14,color:o.icon.secondary})})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:"OS version",htmlFor:`new-${w}-runtime`,last:!1,children:(0,n.jsx)(p,{id:`new-${w}-runtime`,value:A,options:L,disabled:O,onChange:J,onActivate:G,trailing:(0,n.jsx)(o.ChevronDownIcon,{size:14,color:o.icon.secondary})})}),(0,n.jsx)(u,{label:"Model",htmlFor:`new-${w}-model`,last:!0,children:(0,n.jsx)(p,{id:`new-${w}-model`,value:D,options:V,disabled:O,onChange:K,onActivate:G,trailing:(0,n.jsx)(o.ChevronsUpDownIcon,{size:14,color:o.icon.secondary})})})]})]})})]}),E&&(0,n.jsx)("p",{role:"alert",style:{margin:'12px 0 0',padding:'9px 11px',border:`1px solid ${o.border.danger}`,borderRadius:o.radius.lg,backgroundColor:o.bg.danger,color:o.text.danger,fontSize:13,whiteSpace:'pre-wrap'},children:E})]}),(0,n.jsxs)(o.DialogFooter,{children:[(0,n.jsx)(o.Button,{type:"button",theme:"quaternary",disabled:O,onClick:f,children:"Cancel"}),(0,n.jsx)(o.Button,{type:"submit",theme:"primary",disabled:!te||O,children:O?Z?'Creating\u2026':'Booting\u2026':Z?'Create & Boot':'Boot'})]})]})]})})};var n=r(d[0]),t=r(d[1]),o=r(d[2]);const l=/^[A-Za-z0-9._-]+$/,a='Allowed: a-z A-Z 0-9 . _ -';function s({children:t,active:l=!1}){return(0,n.jsx)("span",{style:{display:'block',marginBottom:4,fontFamily:o.font.mono,fontSize:11,fontWeight:l?600:400,letterSpacing:'0.06em',textTransform:'uppercase',color:l?o.text.default:o.text.tertiary},children:t})}function c({device:l,selected:a,onSelect:s}){const[c,u]=(0,t.useState)(!1);return(0,n.jsxs)("button",{type:"button","aria-pressed":a,onClick:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{display:'flex',alignItems:'center',gap:12,width:'100%',padding:'9px 11px',border:'none',borderRadius:o.radius.lg,textAlign:'left',fontFamily:'inherit',cursor:'pointer',backgroundColor:a?o.bg.hover:c?o.bg.element:'transparent',transition:'background-color 150ms ease'},children:[(0,n.jsx)("span",{style:{display:'flex',alignItems:'center',justifyContent:'center',width:31,height:31,flex:'0 0 auto',borderRadius:o.radius.lg,backgroundColor:o.bg.element,color:a?o.text.default:o.icon.default},children:a?(0,n.jsx)(o.CheckIcon,{size:16}):(0,n.jsx)(o.SmartphoneIcon,{size:16})}),(0,n.jsxs)("span",{style:{display:'flex',flexDirection:'column',gap:2,minWidth:0},children:[(0,n.jsx)("span",{style:{fontSize:14,fontWeight:a?600:500,color:o.text.default,lineHeight:1.25},children:l.name}),(0,n.jsxs)("span",{style:{display:'flex',alignItems:'center',gap:6,fontSize:12,color:o.text.tertiary,lineHeight:1.25},children:[(0,n.jsx)("span",{style:{width:6,height:6,flex:'0 0 auto',borderRadius:'50%',backgroundColor:l.booted?o.icon.success:o.icon.quaternary}}),l.booted?'Booted \xb7 now':h(l.lastUsedAt)]})]}),(0,n.jsx)("span",{style:{marginLeft:'auto',flex:'0 0 auto',fontSize:11,color:o.text.secondary,backgroundColor:o.bg.element,borderRadius:o.radius.full,padding:'3px 9px',fontVariantNumeric:'tabular-nums',whiteSpace:'nowrap'},children:l.version})]})}function u({label:t,htmlFor:l,last:a,children:s}){return(0,n.jsxs)("div",{style:{display:'flex',alignItems:'center',justifyContent:'space-between',gap:12,padding:'11px 13px',borderBottom:a?void 0:`1px solid ${o.border.secondary}`},children:[(0,n.jsx)("label",{htmlFor:l,style:{display:'flex',flexDirection:'column',gap:2,fontSize:13,color:o.text.secondary,cursor:'pointer'},children:t}),s]})}function p({id:l,value:a,options:s,disabled:c,onChange:u,onActivate:p,trailing:x}){const[h,f]=(0,t.useState)(!1),b={width:'100%',boxSizing:'border-box',padding:'6px 28px 6px 10px',border:`1px solid ${o.border.default}`,borderRadius:o.radius.md,backgroundColor:o.bg.default,color:o.text.default,fontSize:16,fontFamily:'inherit',appearance:'none',WebkitAppearance:'none',MozAppearance:'none',outline:'none',cursor:'pointer',boxShadow:h?`0 0 0 3px ${o.bg.element}`:'none'};return(0,n.jsxs)("div",{style:{position:'relative',flex:'0 0 58%'},children:[(0,n.jsx)("select",{id:l,value:a,disabled:c,onChange:n=>u(n.currentTarget.value),onMouseDown:p,onFocus:()=>{f(!0),p()},onBlur:()=>f(!1),style:b,children:0===s.length?(0,n.jsx)("option",{value:"",children:"\u2014"}):s.map(t=>(0,n.jsx)("option",{value:t.value,children:t.label},t.value))}),(0,n.jsx)("span",{style:{position:'absolute',right:10,top:'50%',transform:'translateY(-50%)',pointerEvents:'none',display:'flex',color:o.icon.secondary},children:x})]})}function x(n,t,o){const l='android'===o?n.trim().replace(/[^A-Za-z0-9._-]+/g,'_').replace(/^_+|_+$/g,''):n;if(!l)return'';const a=new Set(t.map(n=>n.name));if(!a.has(l))return l;let s=2;const c='android'===o?'_':' ';for(;a.has(`${l}${c}${s}`);)s++;return`${l}${c}${s}`}function h(n){if(!n)return'Idle';const t=Date.now()-n,o=Math.round(t/6e4);if(o<1)return'now';if(o<60)return`${o}m ago`;const l=Math.round(o/60);if(l<24)return`${l}h ago`;const a=Math.round(l/24);if(a<7)return`${a} day${1===a?'':'s'} ago`;const s=Math.round(a/7);if(s<5)return`${s} week${1===s?'':'s'} ago`;const c=Math.round(a/30);return`${c} month${1===c?'':'s'} ago`}},257,[151,38,255]);
314
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogSidebar=function({onToggle:s,client:c,streamMode:x,streamModeAvailability:h,onStreamModeChange:f,width:p=400}){return(0,t.jsxs)("aside",{style:{display:'flex',flexDirection:'column',width:`min(${p}px, 100vw)`,flexShrink:0,height:'100vh',boxSizing:'border-box',gap:12,padding:'32px 24px',overflow:'hidden'},children:[s&&(0,t.jsx)("div",{style:{display:'flex',alignItems:'center',justifyContent:'flex-start'},children:(0,t.jsx)(n.SidebarToggle,{side:"right",onClick:s})}),(0,t.jsxs)("div",{style:{display:'flex',flex:1,minHeight:0,flexDirection:'column',overflow:'hidden'},children:[(0,t.jsx)(l.CurrentAppSection,{client:c}),(0,t.jsx)(o.DeviceOptionsSection,{client:c,streamMode:x,streamModeAvailability:h,onStreamModeChange:f})]})]})};var t=r(d[0]),n=r(d[1]),l=r(d[2]),o=r(d[3])},258,[151,255,259,261]);
315
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.CurrentAppSection=function({client:s}){const h=s?.foregroundApp??null,p=h?h.label??h.id:o,b=[{label:'App ID',value:h?.id??o},{label:'Version',value:h?.version??o},{label:'Build number',value:h?.build??o},'android'===s?.platform?{label:'Minimum SDK',value:null!=h?.minSdk?String(h.minSdk):o}:{label:'Minimum iOS',value:h?.minOS??o},{label:'PID',value:null!=h?.pid?String(h.pid):o}];return(0,t.jsxs)("section",{"aria-label":"Current app",style:{padding:'18px 0 20px'},children:[(0,t.jsxs)("div",{style:{display:'flex',alignItems:'flex-start',justifyContent:'space-between',gap:16,marginBottom:18},children:[(0,t.jsxs)("div",{style:{display:'flex',flexDirection:'column',gap:4,minWidth:0},children:[(0,t.jsx)(n.SidebarSectionHeading,{children:"Current app"}),(0,t.jsxs)("div",{style:{display:'flex',flexWrap:'wrap',alignItems:'center',gap:6},children:[(0,t.jsx)("span",{title:p,style:Object.assign({},l.heading.xl,{color:h?l.text.default:l.text.tertiary,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap'}),children:p}),h?.isReactNative&&(0,t.jsx)(x,{color:"info",children:"React Native"}),h?.debuggable&&(0,t.jsx)(x,{color:"warning",children:"debuggable"})]})]}),(0,t.jsx)(c,{iconDataUrl:h?.iconDataUrl})]}),(0,t.jsx)("dl",{style:{display:'grid',gridTemplateColumns:'auto minmax(0, 1fr)',rowGap:4,columnGap:16,margin:0},children:b.map(l=>(0,t.jsx)(u,{detail:l},l.label))})]})};var t=r(d[0]),l=r(d[1]),n=r(d[2]);const s=52,o='unknown';function c({iconDataUrl:n}){return(0,t.jsx)("span",{"aria-hidden":"true",style:{display:'flex',alignItems:'center',justifyContent:'center',width:s,height:s,flexShrink:0,boxSizing:'border-box',overflow:'hidden',border:n?void 0:`1px solid ${l.border.default}`,borderRadius:l.radius.lg,backgroundColor:l.bg.element},children:n?(0,t.jsx)("img",{src:n,alt:"",width:s,height:s,style:{display:'block',width:'100%',height:'100%',objectFit:'cover'}}):(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",stroke:l.icon.quaternary}),(0,t.jsx)("path",{d:"M10 4v4h12",stroke:l.icon.quaternary})]})})}function u({detail:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{style:Object.assign({},l.textSize.xs,{color:l.text.tertiary}),children:n.label}),(0,t.jsx)("dd",{title:n.value,style:Object.assign({},l.textSize.xs,{minWidth:0,margin:0,color:l.text.default,fontFamily:l.font.mono,textAlign:'right',overflowWrap:'anywhere',fontVariantNumeric:'tabular-nums'}),children:n.value})]})}function x({color:n,children:s}){return(0,t.jsx)("span",{style:Object.assign({},l.textSize['2xs'],{color:l.text[n],background:l.bg[n],borderRadius:l.radius.full,padding:'0 8px',flexShrink:0}),children:s})}},259,[151,255,260]);
316
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarSectionHeading=function({children:n}){return(0,t.jsx)("span",{style:Object.assign({},o.textSize.xs,{display:"block",fontFamily:o.font.mono,color:o.text.tertiary}),children:n})},e.SidebarRow=function({label:n,children:l,borderBottom:s=!0}){return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:16,height:51,boxSizing:"border-box",padding:"11px 0",borderBottom:s?`1px solid ${o.border.secondary}`:void 0},children:[(0,t.jsx)("span",{style:Object.assign({},o.textSize.sm,{flex:1,fontWeight:500,color:o.text.default}),children:n}),l]})},e.SidebarSwitch=function({checked:n,disabled:l=!1,label:s,onChange:c}){return(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":n,"aria-label":s,disabled:l,onClick:()=>c(!n),style:{width:44,height:26,padding:3,boxSizing:"border-box",flexShrink:0,border:0,borderRadius:o.radius.full,backgroundColor:n?o.text.default:o.bg.selected,cursor:l?"default":"pointer",opacity:l?.5:1,transition:"background-color 180ms cubic-bezier(.4, 0, .2, 1)"},children:(0,t.jsx)("span",{style:{display:"block",width:20,height:20,borderRadius:o.radius.full,backgroundColor:o.bg.default,boxShadow:o.shadow.xs,transform:`translateX(${n?18:0}px)`,transition:"transform 180ms cubic-bezier(.4, 0, .2, 1)"}})})};var t=r(d[0]),o=r(d[1])},260,[151,255]);
317
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceOptionsSection=function({client:s,streamMode:p,streamModeAvailability:x,onStreamModeChange:u}){return(0,t.jsxs)("section",{"aria-label":"Device options",style:{display:'flex',flex:1,minWidth:0,minHeight:0,flexDirection:'column'},children:[(0,t.jsx)("div",{style:{padding:'8px 0'},children:(0,t.jsx)(l.SidebarSectionHeading,{children:"Device options"})}),'ios'===s?.platform&&(0,t.jsx)(n.KeyboardSection,{client:s}),p&&x&&u&&'ios'===s?.platform&&(0,t.jsx)(c.StreamSection,{mode:p,availability:x,onChange:u}),(0,t.jsx)(o.OutputSection,{client:s})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2]),l=r(d[3]),c=r(d[4])},261,[151,262,264,260,268]);
318
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.KeyboardSection=function({client:t}){const c=t.hardwareKeyboardConnected;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.SidebarRow,{label:"Hardware keyboard",children:(0,n.jsx)(o.SidebarActionButton,{disabled:null===c,onClick:()=>t.setHardwareKeyboardConnected(!c),children:"Toggle"})}),(0,n.jsx)(l.SidebarRow,{label:"Software keyboard",children:(0,n.jsx)(o.SidebarActionButton,{disabled:null===c,onClick:()=>t.toggleSoftwareKeyboard(),children:"Toggle"})})]})};var n=r(d[0]),o=r(d[1]),l=r(d[2])},262,[151,263,260]);
319
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarActionButton=function({children:l,disabled:o,onClick:s}){return(0,n.jsx)(t.Button,{size:"2xs",theme:"secondary",disabled:o,onClick:s,style:{flexShrink:0,borderRadius:t.radius.full,paddingInline:14,fontWeight:600},children:l})};var n=r(d[0]),t=r(d[1])},263,[151,255]);
320
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.OutputSection=function({client:c}){const h=c?.logs??[],u=c?.logsEnabled??!1,[x,L]=(0,n.useState)(u);return(0,t.jsxs)("div",{style:{display:'flex',flexDirection:'column',flex:1,minWidth:0,minHeight:0},children:[(0,t.jsx)(l.SidebarRow,{label:"Logs",borderBottom:!1,children:(0,t.jsx)(l.SidebarSwitch,{checked:x,disabled:!c,label:"Logs",onChange:function(t){L(t),t?c?.attachLogs():c?.detachLogs()}})}),x&&(0,t.jsxs)("div",{style:{width:'100%',minWidth:0},children:[(0,t.jsx)(o.LogControls,{count:h.length,running:u,onClear:()=>c?.clearLogs(),onStart:()=>c?.attachLogs(),onStop:()=>c?.detachLogs()}),(0,t.jsx)(s.LogList,{logs:h,enabled:u})]}),(0,t.jsx)("div",{style:{flex:1,minHeight:0}})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4])},264,[151,38,265,266,260]);
321
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogControls=function({count:l,running:s,onClear:c,onStart:u,onStop:x}){return(0,t.jsxs)("div",{style:{display:'flex',alignItems:'center',gap:10,width:'100%',minWidth:0,boxSizing:'border-box',backgroundColor:n.bg.subtle},children:[(0,t.jsxs)("span",{style:Object.assign({},n.textSize['2xs'],{flex:1,minWidth:0,fontFamily:n.font.mono,fontWeight:400,color:n.text.tertiary,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap'}),children:[l," ",1===l?'line':'lines']}),(0,t.jsx)(o.SidebarActionButton,{onClick:s?x:u,children:s?'Stop':'Start'}),(0,t.jsx)(o.SidebarActionButton,{disabled:0===l,onClick:c,children:"Clear"})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2])},265,[151,255,263]);
322
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogList=function({logs:u=[],enabled:b=!1}){const h=(0,l.useRef)(null);(0,l.useEffect)(()=>{const o=h.current;o&&(o.scrollTop=o.scrollHeight)},[u]);const x=b?'No logs. The stream resumes on the next event.':'Logs are paused. Press Start to stream device logs.';return(0,o.jsxs)("div",{ref:h,className:"hub-log-scroll",style:c,children:[(0,o.jsx)("style",{children:s}),0===u.length?(0,o.jsx)("div",{style:{display:'flex',flex:1,alignItems:'center',justifyContent:'center',padding:'40px 24px',textAlign:'center'},children:(0,o.jsx)("span",{style:Object.assign({},n.textSize.xs,{color:n.text.secondary}),children:x})}):u.map(l=>(0,o.jsx)(t.LogRow,{entry:l},l.id))]})};var o=r(d[0]),l=r(d[1]),n=r(d[2]),t=r(d[3]);const s="\n.hub-log-scroll::-webkit-scrollbar { width: 12px; }\n.hub-log-scroll::-webkit-scrollbar-track { background: transparent; }\n.hub-log-scroll::-webkit-scrollbar-thumb {\n background-color: var(--expo-theme-background-selected);\n border-radius: 8px;\n border: 3px solid transparent;\n background-clip: padding-box;\n min-height: 24px;\n}\n.hub-log-scroll::-webkit-scrollbar-thumb:hover {\n background-color: var(--expo-theme-border-default);\n}\n",c={height:200,flexShrink:0,overflowY:'auto',overflowX:'hidden',display:'flex',flexDirection:'column',overflowAnchor:'none'}},266,[151,38,255,267]);
323
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogRow=function({entry:n}){const o=n.message.length>68?`${n.message.slice(0,68)}\u2026`:n.message;return(0,s.jsxs)("div",{style:{display:'flex',alignItems:'flex-start',gap:8,padding:'8px 0',borderBottom:`1px solid ${t.border.secondary}`},children:[(0,s.jsx)("span",{style:Object.assign({},t.textSize['2xs'],{padding:'1px 5px',borderRadius:t.radius.sm,backgroundColor:t.bg.element,fontFamily:t.font.mono,color:t.text.tertiary,flexShrink:0,marginTop:1}),children:n.source}),(0,s.jsx)("span",{title:n.message,style:Object.assign({},t.textSize.xs,{flex:1,minWidth:0,color:t.text.secondary,overflowWrap:'anywhere'}),children:o})]})};var s=r(d[0]),t=r(d[1])},267,[151,255]);
324
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamSection=function({mode:b,availability:u,onChange:v}){const h=(0,l.useId)(),j=!u.h264||!u.webrtc,p=c.map(t=>Object.assign({},t,{disabled:!u[t.value]}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.SidebarRow,{label:"Stream",children:(0,t.jsx)(n.SegmentedControl,{ariaLabel:"Stream mode",ariaDescribedBy:j?h:void 0,options:p,value:b,onChange:v})}),j&&(0,t.jsx)("span",{id:h,style:Object.assign({},s.textSize.xs,{display:'block',padding:'0 0 11px',color:s.text.tertiary}),children:"H.264 and WebRTC require localhost or HTTPS. MJPEG is used on insecure HTTP."})]})};var t=r(d[0]),l=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]);const c=[{value:'mjpeg',label:'MJPEG'},{value:'h264',label:'H.264'},{value:'webrtc',label:'WebRTC'}]},268,[151,38,251,255,260]);
325
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamPanel=function({device:s,client:p,DeviceScreen:u,displayScreen:f,onShutdown:h,onRemove:b,framed:S=!0}){return(0,n.jsxs)("section",{style:{flex:1,minWidth:0,display:'flex',flexDirection:'column',alignItems:'center',justifyContent:'center',gap:40,padding:40,margin:S?'16px 8px':0,boxSizing:'border-box',backgroundColor:o.bg.default,border:S?`1px solid ${o.border.secondary}`:'none',borderRadius:S?o.radius.lg:0,boxShadow:S?o.shadow.sm:'none',overflow:'hidden'},children:[(0,n.jsx)(a.PhoneFrame,{platform:s.platform,client:p,DeviceScreen:u,displayScreen:f}),(0,n.jsx)(t.StreamControls,{platform:s.platform,physical:s.physical,appearance:p.appearance,onToggleAppearance:()=>p.setAppearance('dark'===p.appearance?'light':'dark'),onHome:()=>p.pressButton('home'),onBack:()=>p.pressButton('back'),onRecents:()=>p.pressButton('recents'),onReload:()=>p.reload(),onRotate:()=>p.rotate(),onSave:async()=>{const n=await p.screenshot();n&&c(n,l(s.name))},onShutdown:h,onRemove:b})]})};var n=r(d[0]),o=r(d[1]),a=r(d[2]),t=r(d[3]);function c(n,o){const a=URL.createObjectURL(n),t=document.createElement('a');t.href=a,t.download=o,document.body.appendChild(t),t.click(),t.remove(),setTimeout(()=>URL.revokeObjectURL(a),0)}function l(n){return`${n.trim().replace(/[^a-zA-Z0-9._-]+/g,'-').replace(/^-+|-+$/g,'')||'device'}-${(new Date).toISOString().replace(/[:.]/g,'-').replace(/Z$/,'')}.png`}},269,[151,255,270,271]);
326
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PhoneFrame=function({platform:u,client:h,DeviceScreen:p,displayScreen:x}){const{ratio:b,radiusFraction:j,squircle:v}=l[u],q=h?x(h.screen):null,w=q&&q.height>0?q.width/q.height:b,y={width:`min(${o*Math.max(w,1)}px, calc((100vh - ${c}px) * ${w}), 100%)`,aspectRatio:`${w}`,containerType:'inline-size'},F=`${(j/Math.max(w,1)*100).toFixed(3)}cqw`,$=h&&'idle'!==h.status;return(0,t.jsx)("div",{style:Object.assign({},y,{boxShadow:n,borderRadius:F}),children:$?(0,t.jsx)(p,{client:h,borderRadius:F,squircle:v}):(0,t.jsx)("div",{style:Object.assign({width:'100%',height:'100%',backgroundColor:s.bg.element,borderRadius:F},v?{cornerShape:'superellipse(1.3)'}:{})})})};var t=r(d[0]),s=r(d[1]);const n='0 40px 80px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.28)',c=210,o=480,l={ios:{ratio:.460431654676259,radiusFraction:.14066496163682865,squircle:!0},android:{ratio:.450070323488045,radiusFraction:.02564102564102564,squircle:!1}}},270,[151,255]);
327
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamControls=function({platform:t,physical:l,appearance:c,onToggleAppearance:s,onHome:I,onBack:p,onRecents:x,onReload:j,onRotate:u,onSave:b,onShutdown:h,onRemove:C}){const R='android'===t,S=(0,o.jsxs)(n.Dropdown,{side:"top",align:"end",alignOffset:-80,onCloseAutoFocus:o=>o.preventDefault(),trigger:(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.DotsIcon,{}),label:"More"}),children:[R&&(0,o.jsx)(n.DropdownItem,{label:"Back",Icon:n.BackIcon,onSelect:p}),R&&(0,o.jsx)(n.DropdownItem,{label:"Recents",Icon:n.RecentsIcon,onSelect:x}),(0,o.jsx)(n.DropdownItem,{label:"Rotate",Icon:n.RotateIcon,onSelect:u}),(0,o.jsx)(n.DropdownItem,{label:"Shutdown",Icon:n.PowerIcon,onSelect:h}),!l&&(0,o.jsx)(n.DropdownItem,{label:"Remove",Icon:n.TrashIcon,destructive:!0,onSelect:C})]});return(0,o.jsxs)("div",{style:{display:'flex',alignItems:'flex-end',gap:24},children:[(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.CameraIcon,{}),label:"Save",onClick:b}),(0,o.jsx)(n.Switch,{checked:'dark'===c,onChange:s,label:"Theme"}),(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.HomeIcon,{}),label:"Home",variant:"primary",onClick:I}),(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.RefreshIcon,{}),label:"Reload",onClick:j}),S]})};var o=r(d[0]),n=r(d[1])},271,[151,255]);
328
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.EmptyState=function({platform:n}){const s='ios'===n?'No booted simulators':'android'===n?'No booted emulators':'No booted devices',l='ios'===n?'There are no booted simulators. Use the + button to add one.':'android'===n?'There are no booted emulators or connected devices. Use the + button to add one.':'There are no booted simulators, emulators, or connected devices. Use the + button to add a simulator or emulator.';return(0,o.jsxs)("section",{style:{flex:1,minWidth:0,display:'flex',flexDirection:'column',alignItems:'center',justifyContent:'center',gap:16,padding:40,margin:'16px 8px',boxSizing:'border-box',backgroundColor:t.bg.default,border:`1px solid ${t.border.secondary}`,borderRadius:t.radius.lg,boxShadow:t.shadow.sm,overflow:'hidden',textAlign:'center'},children:[(0,o.jsx)("div",{style:{display:'flex',alignItems:'center',justifyContent:'center',width:56,height:56,borderRadius:t.radius.full,border:`1px solid ${t.border.secondary}`,backgroundColor:t.bg.subtle},children:(0,o.jsx)(t.PhoneIcon,{size:28,color:t.icon.secondary})}),(0,o.jsx)("h2",{style:Object.assign({},t.heading.lg,{color:t.text.default,margin:0}),children:s}),(0,o.jsx)("p",{style:Object.assign({},t.textSize.sm,{color:t.text.secondary,margin:0,maxWidth:320}),children:l})]})};var o=r(d[0]),t=r(d[1])},272,[151,255]);
329
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.BootErrorModal=function({open:n,onClose:l,deviceName:s,message:c}){return(0,o.jsx)(t.DialogRoot,{open:n,onOpenChange:o=>{o||l()},children:(0,o.jsxs)(t.DialogContent,{children:[(0,o.jsx)(t.DialogTitle,{title:"Failed to boot device"}),(0,o.jsxs)(t.DialogContentContainer,{children:[(0,o.jsxs)("p",{style:{margin:0,fontSize:14,lineHeight:1.5,color:t.text.secondary},children:[(0,o.jsx)("strong",{style:{color:t.text.default,fontWeight:600},children:s})," could not be booted."]}),(0,o.jsx)("pre",{style:{margin:'6px 0 0',padding:'10px 12px',overflowX:'auto',whiteSpace:'pre-wrap',overflowWrap:'anywhere',backgroundColor:t.bg.subtle,border:`1px solid ${t.border.default}`,borderRadius:t.radius.lg,color:t.text.danger,fontFamily:t.font.mono,fontSize:12,lineHeight:1.5},children:c})]}),(0,o.jsx)(t.DialogFooter,{children:(0,o.jsx)(t.Button,{theme:"primary",onClick:l,children:"Close"})})]})})};var o=r(d[0]),t=r(d[1])},273,[151,255]);
330
+ __d(function(g,r,i,a,m,e,d){},274,[]);
331
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.AnimatedDockedSidebar=function({side:s,width:o,open:l,sidebarOpen:h,children:S}){const{present:c,reducedMotion:I,visible:_}=(0,t.useSidebarPresence)(l,!h);if(!c)return null;const u=I?void 0:`width ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`,A=I?void 0:`transform ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`;return(0,n.jsx)("div",{"aria-hidden":!_||void 0,"data-sidebar-docked":s,"data-state":_?'open':'closed',style:{width:_?o:0,height:'100%',flexShrink:0,overflow:'hidden',pointerEvents:_?'auto':'none',transition:u},children:(0,n.jsx)("div",{style:{width:o,height:'100%',transform:_?'translateX(0)':`translateX(${'left'===s?'-100%':'100%'})`,transition:A,willChange:'transform'},children:S})})};var t=r(d[0]),n=r(d[1])},275,[276,151]);
332
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SIDEBAR_TRANSITION_MS",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SIDEBAR_TRANSITION_EASING",{enumerable:!0,get:function(){return c}}),e.useSidebarPresence=function(c,o){const s=u(),[f,w]=(0,t.useState)(c),[S,b]=(0,t.useState)(c),l=(0,t.useRef)(c);return(0,t.useEffect)(()=>{if(c){const t=l.current;if(l.current=!0,w(!0),s||t)return void b(!0);let n=0;const c=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>b(!0))});return()=>{cancelAnimationFrame(c),cancelAnimationFrame(n)}}if(b(!1),!o||s)return l.current=!1,void w(!1);const t=window.setTimeout(()=>{l.current=!1,w(!1)},n);return()=>window.clearTimeout(t)},[o,c,s]),{present:f,reducedMotion:s,visible:c&&S}};var t=r(d[0]);const n=200,c='cubic-bezier(0.16, 1, 0.3, 1)';function u(){const[n,c]=(0,t.useState)(()=>'undefined'!=typeof window&&!0===window.matchMedia?.('(prefers-reduced-motion: reduce)').matches);return(0,t.useEffect)(()=>{const t=window.matchMedia?.('(prefers-reduced-motion: reduce)');if(!t)return;const n=()=>c(t.matches);return t.addEventListener('change',n),()=>t.removeEventListener('change',n)},[]),n}},276,[38]);
333
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.basePath=function(){if(window.__DEV__)return'/_expo/plugins/expo-device-hub';const n=window.__EXPO_DEVICE_HUB_BASE_PATH__;if(null==n)throw new Error('window.__EXPO_DEVICE_HUB_BASE_PATH__ is not defined');return(0,_.trimTrailingSlash)(n)};var _=r(d[0])},277,[278]);
334
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.trimTrailingSlash=function(t){return t.replace(/\/+$/,'')}},278,[]);
335
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.shutdownDevice=function(t){return u(o(),t)},e.removeDevice=function(t){return u(c(),t)},e.bootDevice=async function(t){return p(s(),{platform:t.platform,id:t.id,name:t.name})},e.createDevice=async function(t){return p(l(),{platform:t.platform,name:t.name,runtime:t.runtime,deviceType:t.deviceType})};var t=r(d[0]),n=r(d[1]);const o=()=>`${(0,t.basePath)()}/api/devices/shutdown`,c=()=>`${(0,t.basePath)()}/api/devices/remove`,s=()=>`${(0,t.basePath)()}/api/devices/boot`,l=()=>`${(0,t.basePath)()}/api/devices/create`;async function u(t,o){try{const c=await fetch(t,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},body:JSON.stringify({platform:o.platform,id:o.id,name:o.name})});if(!c.ok)throw new Error(`Unexpected ${c.status}`);const s=await c.json();return(0,n.logUtilityErrors)(s.errors),!0===s.ok}catch(t){return console.warn('[expo-device-hub] Device action failed:',t),!1}}async function p(t,o){try{const c=await fetch(t,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},body:JSON.stringify(o),signal:AbortSignal.timeout(2e5)}),s=await c.json();if((0,n.logUtilityErrors)(s.errors),!c.ok)return{id:null,error:s.error??`Unexpected ${c.status}`};const l=s.id??s.serial;return s.ok&&l?{id:l,error:null}:{id:null,error:s.error??'The device did not come online.'}}catch(t){return console.warn('[expo-device-hub] Device start failed:',t),{id:null,error:t instanceof Error?t.message:String(t)}}}},279,[277,280]);
336
+ __d(function(g,r,i,a,m,e,d){"use strict";function t(t){if(!t||'object'!=typeof t)return!1;const o=t;return'string'==typeof o.id&&'string'==typeof o.message&&'string'==typeof o.error}Object.defineProperty(e,'__esModule',{value:!0}),e.isUtilityError=t,e.logUtilityErrors=function(o,n=new Set){const s=new Set;if(!Array.isArray(o))return s;for(const f of o)t(f)&&!s.has(f.id)&&(s.add(f.id),n.has(f.id)||console.error(f.message,f.error));return s}},280,[]);
337
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_SIDEBAR_WIDTH",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY",{enumerable:!0,get:function(){return o}}),e.readHideUnsupportedDevices=u,e.persistHideUnsupportedDevicesDefault=function(t){try{null===t.getItem(o)&&t.setItem(o,'true')}catch{}},e.createDashboardStore=b,Object.defineProperty(e,"useDashboardStore",{enumerable:!0,get:function(){return v}});var t=r(d[0]),s=r(d[1]),c=r(d[2]);const n=400,o='expo-device-hub.hideUnsupportedDevices';function u(t){try{return'false'!==t.getItem(o)}catch{return!0}}function l(){if('undefined'==typeof window)return!0;try{return u(window.localStorage)}catch{return!0}}function D(){const t=(0,c.browserStreamModeAvailability)();return{selectedDeviceId:'',addedDevices:[],streamMode:(0,c.resolveStreamMode)((0,s.dashboardTransport)(),t),sidebarWidths:{left:n,right:n},sidebarPreferences:{left:'auto',right:'auto'},lastOpenedSidebar:'right',hideUnsupportedDevices:l()}}function b(s={}){return(0,t.create)()(t=>Object.assign({},D(),s,{selectDevice:s=>t({selectedDeviceId:s}),reconcileSelectedDevice:s=>t(t=>s.includes(t.selectedDeviceId)?t:{selectedDeviceId:s[0]??''}),trackAddedDevice:(s,c)=>t(t=>{const n=new Set([...c,s.id]);return{addedDevices:[...t.addedDevices.filter(t=>!n.has(t.id)),s],selectedDeviceId:s.id}}),dismissDevice:s=>t(t=>({addedDevices:t.addedDevices.filter(t=>t.id!==s),selectedDeviceId:t.selectedDeviceId===s?'':t.selectedDeviceId})),chooseStreamMode:(s,n)=>t({streamMode:(0,c.resolveStreamMode)(s,n)}),resizeSidebar:(s,c)=>t(t=>({sidebarWidths:Object.assign({},t.sidebarWidths,{[s]:c})})),openSidebar:(s,c)=>t(t=>({sidebarPreferences:Object.assign({},t.sidebarPreferences,{[s]:c?'auto':'open'}),lastOpenedSidebar:s})),closeSidebar:s=>t(t=>({sidebarPreferences:Object.assign({},t.sidebarPreferences,{[s]:'hidden'})})),setHideUnsupportedDevices:s=>t({hideUnsupportedDevices:s})}))}const v=b()},281,[282,285,286]);
338
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},282,[283,284]);
339
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStore",{enumerable:!0,get:function(){return n}});const t=t=>{let n;const c=new Set,o=(t,o)=>{const s="function"==typeof t?t(n):t;if(!Object.is(s,n)){const t=n;n=(null!=o?o:"object"!=typeof s||null===s)?s:Object.assign({},n,s),c.forEach(c=>c(n,t))}},s=()=>n,u={setState:o,getState:s,getInitialState:()=>l,subscribe:t=>(c.add(t),()=>c.delete(t))},l=n=t(o,s,u);return u},n=n=>n?t(n):t},283,[]);
340
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"create",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"useStore",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);const c=e=>e;function l(e,t=c){const n=u.default.useSyncExternalStore(e.subscribe,u.default.useCallback(()=>t(e.getState()),[e,t]),u.default.useCallback(()=>t(e.getInitialState()),[e,t]));return u.default.useDebugValue(n),n}const s=e=>{const t=(0,n.createStore)(e),u=e=>l(t,e);return Object.assign(u,t),u},o=e=>e?s(e):s},284,[38,283]);
341
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TRANSPORT",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TRANSPORTS",{enumerable:!0,get:function(){return t}}),e.parseTransport=o,e.dashboardTransport=function(){return'undefined'==typeof window?n:o(window.__EXPO_DEVICE_HUB_TRANSPORT__)??n};const n='mjpeg',t=['mjpeg','h264','webrtc'];function o(n){return t.includes(n)?n:void 0}},285,[]);
342
+ __d(function(g,r,i,a,m,e,d){"use strict";function t(t){return{mjpeg:!0,h264:t.secureContext&&t.h264Decoder,webrtc:t.secureContext&&t.webRtc}}Object.defineProperty(e,'__esModule',{value:!0}),e.streamModeAvailability=t,e.browserStreamModeAvailability=function(){if('undefined'==typeof window)return{mjpeg:!0,h264:!1,webrtc:!1};return t({secureContext:window.isSecureContext,h264Decoder:void 0!==window.VideoDecoder,webRtc:void 0!==window.RTCPeerConnection&&void 0!==window.RTCRtpReceiver})},e.resolveStreamMode=function(t,o){return o[t]?t:'mjpeg'}},286,[]);
343
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY",{enumerable:!0,get:function(){return n.HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY}}),Object.defineProperty(e,"persistHideUnsupportedDevicesDefault",{enumerable:!0,get:function(){return n.persistHideUnsupportedDevicesDefault}}),Object.defineProperty(e,"readHideUnsupportedDevices",{enumerable:!0,get:function(){return n.readHideUnsupportedDevices}}),e.useHideUnsupportedDevices=function(){const s=(0,n.useDashboardStore)(t=>t.hideUnsupportedDevices),o=(0,n.useDashboardStore)(t=>t.setHideUnsupportedDevices);return(0,t.useEffect)(()=>{(0,n.persistHideUnsupportedDevicesDefault)(window.localStorage);const t=t=>{t&&null!==t.key&&t.key!==n.HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY||o((0,n.readHideUnsupportedDevices)(window.localStorage))};return t(),window.addEventListener('storage',t),()=>window.removeEventListener('storage',t)},[o]),s},e.visibleDevices=function(t,n){return n?t.filter(t=>t.supported):t},e.visibleNewDeviceOptions=function(t,n){return n?{runtimes:t.runtimes.map(t=>Object.assign({},t,{models:t.models.filter(t=>t.supported)})).filter(t=>t.models.length>0)}:t};var t=r(d[0]),n=r(d[1])},287,[38,281]);
344
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useColorScheme=function(){const[n,c]=(0,t.useState)('light');return(0,t.useEffect)(()=>{if('undefined'==typeof window||!window.matchMedia)return;const t=window.matchMedia('(prefers-color-scheme: dark)'),n=()=>c(t.matches?'dark':'light');return n(),t.addEventListener('change',n),()=>t.removeEventListener('change',n)},[]),n};var t=r(d[0])},288,[38]);
345
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["errors"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.devicesWebSocketUrl=f,_e.parseDeviceListMessage=_,_e.splitDeviceList=b,_e.useDeviceLists=function(){const e=S();return(0,n.useMemo)(()=>b(e),[e])};var t,s=r(d[0]),o=(t=s)&&t.__esModule?t:{default:t},n=r(d[1]),u=r(d[2]),c=r(d[3]),l=r(d[4]);function f(e=window.location.href){const t=new URL(`${(0,c.basePath)()}/api/devices/ws`,e);return t.protocol='https:'===t.protocol?'wss:':'ws:',t.toString()}const v={simulators:[],emulators:[]},y=500,p=1e4;function S(){const[t,s]=(0,n.useState)(v);return(0,n.useEffect)(()=>{let t=!1,n=null,u=null,c=y,v=new Set;function S(){if(t)return;let u;try{u=new WebSocket(f())}catch{return void b()}n=u,u.onopen=()=>{c=y},u.onmessage=t=>{const n=_(t.data);if(!n)return;v=(0,l.logUtilityErrors)(n.errors,v);const u=(0,o.default)(n,e);s(u)},u.onerror=()=>u.close(),u.onclose=()=>{n===u&&(n=null,b())}}function b(){t||u||(u=setTimeout(()=>{u=null,S()},c),c=Math.min(2*c,p))}return S(),()=>{t=!0,u&&clearTimeout(u),n?.close()}},[]),t}function _(e){if('string'!=typeof e)return null;try{const t=JSON.parse(e);if(t.type!==u.DEVICE_LIST_MESSAGE_TYPE||!Array.isArray(t.devices?.simulators)||!Array.isArray(t.devices?.emulators)||void 0!==t.devices.errors&&!Array.isArray(t.devices.errors))return null;const s=t.devices.errors?.filter(l.isUtilityError);return Object.assign({simulators:t.devices.simulators,emulators:t.devices.emulators},s?{errors:s}:{})}catch{return null}}function b(e){const t=t=>({simulators:e.simulators.filter(e=>e.booted===t),emulators:e.emulators.filter(e=>e.booted===t)});return{booted:t(!0),recent:t(!1)}}},289,[131,38,290,277,280]);
346
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEVICE_LIST_MESSAGE_TYPE",{enumerable:!0,get:function(){return t}});const t='device-list'},290,[]);
347
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.floatingSidebarToggleInset=function(t,n,c){return t&&n<c+s?l:o},e.FloatingSidebarToggle=function({side:l,inset:s=o,onClick:c}){return(0,n.jsx)("div",{"data-floating-sidebar-toggle":l,style:{position:'absolute',top:24,[l]:s,zIndex:15},children:(0,n.jsx)(t.SidebarToggle,{floating:!0,side:l,onClick:c})})};var t=r(d[0]),n=r(d[1]);const o=24,l=80,s=40},291,[171,151]);
348
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useNewDeviceOptions=function(){const[o,c]=(0,t.useState)(u);return(0,t.useEffect)(()=>{let t=!1;return(async()=>{try{const o=await fetch(s(),{headers:{Accept:'application/json'}});if(!o.ok)throw new Error(`Unexpected ${o.status}`);const u=await o.json();(0,n.logUtilityErrors)(u.errors),t||c({ios:u.ios,android:u.android})}catch(t){console.warn('[expo-device-hub] No new-device-options endpoint, using empty options:',t)}})(),()=>{t=!0}},[]),o};var t=r(d[0]),o=r(d[1]),n=r(d[2]);const s=()=>`${(0,o.basePath)()}/api/new-device-options`,c={runtimes:[]},u={ios:c,android:c}},292,[38,277,280]);
349
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarOverlay=function({side:s,open:l,sidebarOpen:c,topmost:u,onDismiss:b,children:p}){const{present:v,reducedMotion:I,visible:S}=(0,t.useSidebarPresence)(l,!c);if(!v)return null;const _=u?12:10,f=I?void 0:`opacity ${t.SIDEBAR_TRANSITION_MS}ms ease`,h=I?void 0:`transform ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"aria-hidden":"true","data-sidebar-backdrop":s,onClick:b,style:{position:'absolute',inset:0,backgroundColor:o.bg.overlay,opacity:S?.35:0,pointerEvents:S?'auto':'none',transition:f,zIndex:_}}),(0,n.jsx)("div",{"aria-hidden":!S||void 0,"data-sidebar-overlay":s,"data-state":S?'open':'closed',style:{position:'absolute',top:0,[s]:0,zIndex:_+1,backgroundColor:o.bg.subtle,boxShadow:o.shadow.lg,pointerEvents:S?'auto':'none',transform:S?'translateX(0)':`translateX(${'left'===s?'-100%':'100%'})`,transition:h,willChange:'transform'},children:p})]})};var o=r(d[0]),t=r(d[1]),n=r(d[2])},293,[171,276,151]);
350
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveSidebarLayout=o,e.useSidebarLayout=function({leftWidth:s,rightWidth:c,minStreamWidth:h}){const f=(0,t.useRef)(null),[u,l]=(0,t.useState)(()=>'undefined'==typeof window?0:window.innerWidth),b=(0,n.useDashboardStore)(t=>t.sidebarPreferences.left),S=(0,n.useDashboardStore)(t=>t.sidebarPreferences.right),p=(0,n.useDashboardStore)(t=>t.lastOpenedSidebar),W=(0,n.useDashboardStore)(t=>t.openSidebar),O=(0,n.useDashboardStore)(t=>t.closeSidebar);(0,t.useEffect)(()=>{const t=f.current;if(!t)return;const n=()=>l(t.getBoundingClientRect().width);n();const o=new ResizeObserver(n);return o.observe(t),()=>o.disconnect()},[]);const D=o({leftPreference:b,rightPreference:S,containerWidth:u,leftWidth:s,rightWidth:c,minStreamWidth:h});return Object.assign({},D,{containerRef:f,containerWidth:u,leftOpen:D.leftOpen,lastOpened:p,openLeft:()=>{const t=u>=s+h+(D.rightDocked?c:0);W('left',t)},closeLeft:()=>O('left'),openRight:()=>{W('right',u>=c+h)},closeRight:()=>O('right')})};var t=r(d[0]),n=r(d[1]);function o({leftPreference:t,rightPreference:n,containerWidth:o,leftWidth:s,rightWidth:c,minStreamWidth:h}){const f=o>=c+h,u='open'===n||'auto'===n&&f,l=u&&f,b=o>=s+h+(l?c:0),S='open'===t||'auto'===t&&b,p=S&&b;return{leftOpen:S,leftDocked:p,leftOverlay:S&&!p,rightOpen:u,rightDocked:l,rightOverlay:u&&!l}}},294,[38,281]);
351
+ __d(function(g,r,i,a,m,e,d){"use strict";function o(o){return'ios'===o||'android'===o?o:void 0}Object.defineProperty(e,'__esModule',{value:!0}),e.parsePlatformFilter=o,e.dashboardPlatformFilter=function(){return'undefined'==typeof window?void 0:o(window.__EXPO_DEVICE_HUB_PLATFORM__)}},295,[]);
327
352
  __r(3);
328
353
  __r(0);