@lunora/studio 1.0.0-alpha.342 → 1.0.0-alpha.343

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.
@@ -1 +1 @@
1
- import{a as $o}from"./chunk-XGCIDUJF.js";import{a as Ua,b as Za}from"./chunk-S7XJPD6Z.js";import{a as qa,d as Wa}from"./chunk-CCDX5RYT.js";import{a as Kt,b as Jt,c as Xt,d as eo,e as to,f as Aa,g as Zo,h as qo}from"./chunk-OYCUPD3Q.js";import{$ as Vo,A as ka,B as Oo,C as Do,D as Oa,E as zt,G as Ut,J as Zt,K as Mo,L as qt,M as Wt,O as Io,P as Da,Q as Ma,R as $t,S as Gt,T as Qt,U as Yt,V as _o,W as Re,Y as Ia,Z as _a,_ as Ao,b as ba,ca as Lo,da as Ho,fa as Bo,j as Ft,k as jt,l as Ca,la as Fo,m as Ra,ma as jo,n as Sa,na as zo,o as Ta,oa as Ko,p as Tr,pa as Va,q as wo,qa as La,ra as Uo,s as Eo,sa as Ha,t as Na,u as ko,y as wa,z as Ea}from"./chunk-NXQW5E6W.js";import{a as Wo}from"./chunk-SA2OGF3F.js";import{c as Ba,h as Fa,k as Nr}from"./chunk-GHQ2VDI2.js";import{b as Ka}from"./chunk-WJRYEML4.js";import{a as Yr,b as Jr,h as Xr,i as io,j as Cr,k as ea,l as ta,m as oa,n as ra,o as aa}from"./chunk-OQ6I6OXT.js";import{i as Sr}from"./chunk-E4PXACVL.js";import{C as xa,D as ya,H as Pa,I as Bt,M as K,N as re,b as fe,e as po,f as fa,l as ga,m as uo,o as Lt,p as ha,q as Ht,r as we,s as va}from"./chunk-MVWZMWPD.js";import{a as Qr}from"./chunk-7Y3SY37W.js";import{a as wr}from"./chunk-7G4Z6Q7X.js";import{c as Ee}from"./chunk-3YXASVTP.js";import{a as xe,c as ua,h as No,i as ma}from"./chunk-AUAECCXB.js";import{a as Rr,b as Vt}from"./chunk-Q6ED4KUL.js";import{a as lo,c as Y,g as co,i as da,j as B}from"./chunk-BOMPSVRC.js";import{a as na,b as sa}from"./chunk-55UGUCQ6.js";import{a as mo}from"./chunk-DFVQBXUZ.js";import{a as pa}from"./chunk-QAQDMS6R.js";import{d as yr}from"./chunk-35Q6XYRL.js";import{a as ja}from"./chunk-RWVIV3U7.js";import{a as ia,b as la,c as ca,d as ge,q as oo,t as za}from"./chunk-74IYYDDI.js";import{a as i,c as xr,d as T,e as A,f as Pr,g as se,i as U}from"./chunk-I26MS5PJ.js";var I=T(Pr(),1);var be=T(A(),1),O=T(A(),1);var n=T(se(),1);var $a=T(A(),1),Se=T(se(),1);var Qs={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},Ys={overflow:"auto",whiteSpace:"pre-wrap"},Go=class extends $a.Component{static{i(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=i(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:a}=this.props,{error:s}=this.state;if(s===null)return(0,Se.jsx)(Se.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Se.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:Qs,children:[(0,Se.jsx)("strong",{children:l}),(0,Se.jsx)("pre",{"data-testid":"dash-error-message",style:Ys,children:s.message}),(0,Se.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:a??"Try again"})]})}};var De={};xr(De,{Arrow:()=>mn,Backdrop:()=>gn,Close:()=>Pn,Description:()=>xn,Handle:()=>vo,Popup:()=>pn,Portal:()=>nn,Positioner:()=>sn,Root:()=>tn,Title:()=>vn,Trigger:()=>on,Viewport:()=>Rn,createHandle:()=>Sn});var fo=T(A(),1);var Qo=T(A(),1);var Er=Qo.createContext(void 0);function J(t){let e=Qo.useContext(Er);if(e===void 0&&!t)throw new Error(Y(47));return e}i(J,"usePopoverRootContext");var Yo=T(A(),1),Ga=T(Qr(),1);var Qa={...Xt,disabled:i(t=>t.disabled,"disabled"),instantType:i(t=>t.instantType,"instantType"),openMethod:i(t=>t.openMethod,"openMethod"),openChangeReason:i(t=>t.openChangeReason,"openChangeReason"),modal:i(t=>t.modal,"modal"),focusManagerModal:i(t=>t.focusManagerModal,"focusManagerModal"),stickIfOpen:i(t=>t.stickIfOpen,"stickIfOpen"),titleElementId:i(t=>t.titleElementId,"titleElementId"),descriptionElementId:i(t=>t.descriptionElementId,"descriptionElementId"),openOnHover:i(t=>t.openOnHover,"openOnHover"),closeDelay:i(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:i(t=>t.adaptiveOrigin,"adaptiveOrigin")},Jo=class extends Ut{static{i(this,"PopoverStore")}constructor(e,o,r){let a=new Re;super(Ja(e,a,o,r),Xa(a),Qa)}setOpen=i((e,o)=>{let r=o.reason===K.triggerHover,a=o.reason===K.triggerPress&&o.event.detail===0,s=!e&&(o.reason===K.escapeKey||o.reason==null),l=Da(o),c=this.select("activeTriggerId");if(!e&&o.reason===K.closePress&&o.trigger==null&&c!=null&&(o.trigger=this.context.triggerElements.getById(c)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=i(()=>{let u=Io(this.state,e,o.trigger,l());u.openChangeReason=o.reason,this.update(u)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),Ga.flushSync(p)):p();let d;a?d="click":s?d="dismiss":o.reason===K.focusOut&&(d="focus"),this.set("instantType",d)},"setOpen")};function Ya(){let t=new Re,e=new to(Object.freeze(Ja(void 0,t)),Object.freeze(Xa(t)),Qa);return Object.assign(e,{setOpen:co})}i(Ya,"createNullPopoverStore");function Ja(t,e,o,r=!1){let a={...Jt(e,o,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...t};return a.open&&t?.mounted===void 0&&(a.mounted=!0),a}i(Ja,"createInitialState");function Xa(t){return{popupRef:Yo.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Yo.createRef(),beforeContentFocusGuardRef:Yo.createRef(),stickIfOpenTimeout:new xa,triggerElements:t}}i(Xa,"createInitialContext");var ke=T(se(),1);var en=Ft(i(function({props:e}){let{children:o,open:r,defaultOpen:a=!1,onOpenChange:s,onOpenChangeComplete:l,modal:c=!1,handle:p,triggerId:d,defaultTriggerId:u=null}=e,f=Js(p,{modal:c,open:a,openProp:r,activeTriggerId:u,triggerIdProp:d});f.useControlledProp("openProp",r),f.useControlledProp("triggerIdProp",d);let h=f.useState("open"),g=f.useState("mounted"),m=f.useState("payload");f.useContextCallback("onOpenChange",s),f.useContextCallback("onOpenChangeComplete",l),_o(f,h),Gt(f);let{forceUnmount:x}=Qt(h,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:c}),fo.useEffect(()=>{h||f.context.stickIfOpenTimeout.clear()},[f,h]),fo.useImperativeHandle(e.actionsRef,()=>({unmount:x,close:i(()=>f.setOpen(!1,re(K.imperativeAction)),"close")}),[x,f]);let v=h||g;return(0,ke.jsxs)(Er.Provider,{value:f,children:[p&&(0,ke.jsx)(Wt,{handle:p,store:f}),v&&(0,ke.jsx)(Xs,{store:f,modal:c}),typeof o=="function"?o({payload:m}):o]})},"PopoverRootComponent"));function tn(t){return J(!0)?(0,ke.jsx)(en,{props:t}):(0,ke.jsx)(ka,{children:(0,ke.jsx)(en,{props:t})})}i(tn,"PopoverRoot");function Js(t,e){let o=qt((r,a)=>new Jo(e,r,a));return fo.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o}i(Js,"usePopoverRootStore");function Xs({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=zt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),a=r.reference,s=r.floating;return Yt(t,{activeTriggerProps:a,inactiveTriggerProps:a,popupProps:s}),null}i(Xs,"PopoverInteractions");var go=T(A(),1);var ro=T(se(),1);var on=jt(i(function(e,o){let{render:r,className:a,style:s,disabled:l=!1,nativeButton:c=!0,handle:p,payload:d,openOnHover:u=!1,delay:f=300,closeDelay:h=0,id:g,...m}=e,x=J(!0),b=eo(p)??x;if(!b)throw new Error(Y(74));let P=fe(g),y=b.useState("isTriggerActive",P),C=b.useState("floatingRootContext"),R=b.useState("isOpenedByTrigger",P),w=b.useState("triggerPopupId",P),S=go.useRef(null),{registerTrigger:N,isMountedByThisTrigger:E}=$t(P,S,b,{payload:d,disabled:l,openOnHover:u,closeDelay:h}),k=b.useState("openChangeReason"),M=b.useState("stickIfOpen"),L=b.useState("openMethod"),_=b.useState("focusManagerModal"),j=Vo(C,{enabled:!l&&u&&(L!=="touch"||k!==K.triggerPress),mouseOnly:!0,move:!1,handleClose:Lo(),restMs:f,delay:{close:h},triggerElementRef:S,isActiveTrigger:y,isClosing:i(()=>b.select("transitionStatus")==="ending","isClosing")}),z=Do(C,{stickIfOpen:M}),H=Ho(()=>b.select("open"),$=>{b.set("openMethod",$)}),F=b.useState("triggerProps",E),{getButtonProps:Z,buttonRef:D}=Ee({disabled:l,native:c}),V={open($){return $&&k===K.triggerPress?ha.open($):Lt.open($)}},{preFocusGuardRef:W,handlePreFocusGuardFocus:G,handleFocusTargetFocus:ee}=Aa(b,S),te=B("button",e,{state:{disabled:l,open:R},ref:[D,o,N,S],props:[z.reference,j,F,H,{[wo]:"",id:P,"aria-haspopup":"dialog","aria-expanded":R,"aria-controls":w},m,Z],stateAttributesMapping:V}),X=(0,ro.jsx)(go.Fragment,{children:te},P);return E&&!_?(0,ro.jsxs)(go.Fragment,{children:[(0,ro.jsx)(Tr,{ref:W,onFocus:G}),X,(0,ro.jsx)(Tr,{ref:b.context.triggerFocusTargetRef,onFocus:ee})]}):X},"PopoverTrigger"));var an=T(A(),1);var Xo=T(A(),1);var kr=Xo.createContext(void 0);function rn(){let t=Xo.useContext(kr);if(t===void 0)throw new Error(Y(45));return t}i(rn,"usePopoverPortalContext");var Or=T(se(),1);var nn=an.forwardRef(i(function(e,o){let{keepMounted:r=!1,...a}=e;return J().useState("mounted")||r?(0,Or.jsx)(kr.Provider,{value:r,children:(0,Or.jsx)(ko,{ref:o,...a})}):null},"PopoverPortal"));var tr=T(A(),1);var er=T(A(),1);var Dr=er.createContext(void 0);function ao(){let t=er.useContext(Dr);if(!t)throw new Error(Y(46));return t}i(ao,"usePopoverPositionerContext");var ho=T(se(),1);var sn=tr.forwardRef(i(function(e,o){let{render:r,className:a,style:s,anchor:l,positionMethod:c,side:p,align:d,sideOffset:u,alignOffset:f,collisionBoundary:h="clipping-ancestors",collisionPadding:g,arrowPadding:m,sticky:x,disableAnchorTracking:v=!1,collisionAvoidance:b=Eo,...P}=e,y=J(),C=rn(),R=wa(),w=y.useState("floatingRootContext"),S=y.useState("mounted"),N=y.useState("open"),E=y.useState("openChangeReason"),k=y.useState("activeTriggerElement"),M=y.useState("modal"),L=y.useState("openMethod"),_=y.useState("positionerElement"),j=y.useState("instantType"),z=y.useState("transitionStatus"),H=y.useState("adaptiveOrigin"),F=tr.useRef(null),Z=Pa(_),D=Fo({anchor:l,floatingRootContext:w,positionMethod:c,mounted:S,side:p,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:x,disableAnchorTracking:v,keepMounted:C,nodeId:R,collisionAvoidance:b,adaptiveOrigin:H}),V=w.useState("domReferenceElement");xe(()=>{let te=V,X=F.current;if(te&&(F.current=te),X&&te&&te!==X){y.set("instantType",void 0);let $=new AbortController;return Z(()=>{y.set("instantType","trigger-change")},$.signal),()=>{$.abort()}}},[V,Z,y]);let W=M===!0&&E!==K.triggerHover;La(N&&W,L==="touch",_,k);let G=y.useStateSetter("positionerElement"),ee={open:N,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:j},ne=Ko(e,ee,{styles:D.positionerStyles,transitionStatus:z,props:P,refs:[o,G],hidden:!S,inert:!N});return(0,ho.jsxs)(Dr.Provider,{value:D,children:[S&&W&&(0,ho.jsx)(jo,{inert:Bo(!N),cutout:k}),(0,ho.jsx)(Ea,{id:R,children:ne})]})},"PopoverPositioner"));var dn=T(A(),1);var Oe=T(A(),1);var Mr=Oe.createContext(void 0);function ln(){let[t,e]=Oe.useState(0),o=ua(()=>(e(a=>a+1),()=>{e(a=>Math.max(0,a-1))}));return{context:Oe.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}i(ln,"useClosePartCount");function cn(){let t=Oe.useContext(Mr);xe(()=>t?.register(),[t])}i(cn,"useClosePartRegistration");var Ir=T(se(),1);var pn=dn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,initialFocus:l,finalFocus:c,...p}=e,d=J(),u=ao(),f=Ha(!0)!=null,{context:h,hasClosePart:g}=ln(),m=d.useState("open"),x=d.useState("openMethod"),v=d.useState("instantType"),b=d.useState("transitionStatus"),P=d.useState("popupProps"),y=d.useState("titleElementId"),C=d.useState("descriptionElementId"),R=d.useState("modal"),w=d.useState("mounted"),S=d.useState("openChangeReason"),N=d.useState("activeTriggerElement"),E=d.useState("floatingRootContext"),k=E.useState("floatingId"),M=d.useState("disabled"),L=d.useState("openOnHover"),_=d.useState("closeDelay");Bt({open:m,ref:d.context.popupRef,onComplete(){m&&d.context.onOpenChangeComplete?.(!0)}}),Ao(E,{enabled:L&&!M,closeDelay:_});let j=l===void 0?Mo(d.context.popupRef):l,z=R!==!1&&g;d.useSyncedValue("focusManagerModal",z);let H=d.useStateSetter("popupElement"),F={open:m,side:u.side,align:u.align,instant:v,transitionStatus:b},Z=B("div",e,{state:F,ref:[o,d.context.popupRef,H],props:[P,{id:k,role:"dialog",...Zt,"aria-labelledby":y,"aria-describedby":C,onKeyDown(D){f&&Uo.has(D.key)&&D.stopPropagation()}},zo(b),p],stateAttributesMapping:we});return(0,Ir.jsx)(Oo,{context:E,openInteractionType:x,modal:z,disabled:!w||S===K.triggerHover,initialFocus:j,returnFocus:c,restoreFocus:"popup",previousFocusableElement:ma(N)?N:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,Ir.jsx)(Mr.Provider,{value:h,children:Z})})},"PopoverPopup"));var un=T(A(),1);var mn=un.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,p=J().useState("open"),{arrowRef:d,side:u,align:f,arrowUncentered:h,arrowStyles:g}=ao();return B("div",e,{state:{open:p,side:u,align:f,uncentered:h},ref:[o,d],props:[{style:g,"aria-hidden":!0},l],stateAttributesMapping:Ht})},"PopoverArrow"));var fn=T(A(),1);var gn=fn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=J(),p=c.useState("open"),d=c.useState("mounted"),u=c.useState("transitionStatus"),f=c.useState("openChangeReason");return B("div",e,{state:{open:p,transitionStatus:u},ref:o,props:[{role:"presentation",hidden:!d,style:{pointerEvents:f===K.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:we})},"PopoverBackdrop"));var hn=T(A(),1);var vn=hn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=J(),p=fe(l.id);return c.useSyncedValueWithCleanup("titleElementId",p),B("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var bn=T(A(),1);var xn=bn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=J(),p=fe(l.id);return c.useSyncedValueWithCleanup("descriptionElementId",p),B("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var yn=T(A(),1);var Pn=yn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,disabled:l=!1,nativeButton:c=!0,...p}=e,{buttonRef:d,getButtonProps:u}=Ee({disabled:l,focusableWhenDisabled:!1,native:c}),f=J();return cn(),B("button",e,{ref:[o,d],props:[{onClick(g){f.setOpen(!1,re(K.closePress,g.nativeEvent))}},p,u]})},"PopoverClose"));var Cn=T(A(),1);var Rn=Cn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,children:l,...c}=e,p=J(),{side:d}=ao(),u=p.useState("instantType"),{children:f,state:h}=qo({store:p,side:d,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:Zo})},"PopoverViewport"));var vo=class extends Kt{static{i(this,"PopoverHandle")}constructor(){super(Ya(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Sn(){return new vo}i(Sn,"createPopoverHandle");var le={};xr(le,{Backdrop:()=>Nn,Close:()=>En,Description:()=>On,Handle:()=>yo,Popup:()=>An,Portal:()=>Ln,Root:()=>Zn,Title:()=>Gn,Trigger:()=>Yn,Viewport:()=>Wn,createHandle:()=>Jn});var Tn=T(A(),1);var or=T(A(),1);var _r=or.createContext(void 0);function ae(t){let e=or.useContext(_r);if(!t&&e===void 0)throw new Error(Y(27));return e}i(ae,"useDialogRootContext");var Nn=Tn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,forceRender:l=!1,...c}=e,p=ae(),d=p.useState("open"),u=p.useState("nested"),f=p.useState("mounted"),h=p.useState("transitionStatus");return B("div",e,{state:{open:d,transitionStatus:h},ref:[p.context.backdropRef,o],stateAttributesMapping:we,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},c],enabled:l||!u})},"DialogBackdrop"));var wn=T(A(),1);var En=wn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,disabled:l=!1,nativeButton:c=!0,...p}=e,d=ae(),u=d.useState("open"),{getButtonProps:f,buttonRef:h}=Ee({disabled:l,native:c}),g={disabled:l};function m(x){u&&d.setOpen(!1,re(K.closePress,x.nativeEvent))}return i(m,"handleClick"),B("button",e,{state:g,ref:[o,h],props:[{onClick:m},p,f]})},"DialogClose"));var kn=T(A(),1);var On=kn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,id:l,...c}=e,p=ae(),d=fe(l);return p.useSyncedValueWithCleanup("descriptionElementId",d),B("p",e,{ref:o,props:[{id:d},c]})},"DialogDescription"));var In=T(A(),1);var rr=T(A(),1);var Ar=rr.createContext(void 0);function ar(){let t=rr.useContext(Ar);if(t===void 0)throw new Error(Y(26));return t}i(ar,"useDialogPortalContext");var Dn="--nested-dialogs";var ku=uo.open,Ou=uo.closed,Du=uo.startingStyle,Mu=uo.endingStyle;var Mn="data-nested-dialog-open";var nr={...Ht,...ga,nestedDialogOpen(t){return t?{[Mn]:""}:null}};var _n=T(se(),1);var An=In.forwardRef(i(function(e,o){let{render:r,className:a,style:s,finalFocus:l,initialFocus:c,...p}=e,d=ae(),u=d.useState("descriptionElementId"),f=d.useState("disablePointerDismissal"),h=d.useState("floatingRootContext"),g=d.useState("popupProps"),m=d.useState("modal"),x=d.useState("mounted"),v=d.useState("nested"),b=d.useState("nestedOpenDialogCount"),P=d.useState("open"),y=d.useState("openMethod"),C=d.useState("titleElementId"),R=d.useState("transitionStatus"),w=d.useState("role"),S=h.useState("floatingId");ar(),Bt({open:P,ref:d.context.popupRef,onComplete(){P&&d.context.onOpenChangeComplete?.(!0)}});let N=c===void 0?Mo(d.context.popupRef):c,E=b>0,k=d.useStateSetter("popupElement"),L=B("div",e,{state:{open:P,nested:v,transitionStatus:R,nestedDialogOpen:E},props:[g,{id:S,"aria-labelledby":C,"aria-describedby":u,role:w,...Zt,hidden:!x,onKeyDown(_){Uo.has(_.key)&&_.stopPropagation()},style:{[Dn]:b}},p],ref:[o,d.context.popupRef,k],stateAttributesMapping:nr});return(0,_n.jsx)(Oo,{context:h,openInteractionType:y,disabled:!x,closeOnFocusOut:!f,initialFocus:N,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:L})},"DialogPopup"));var Vn=T(A(),1);var bo=T(se(),1);var Ln=Vn.forwardRef(i(function(e,o){let{keepMounted:r=!1,...a}=e,s=ae(),l=s.useState("mounted"),c=s.useState("modal"),p=s.useState("open");return l||r?(0,bo.jsx)(Ar.Provider,{value:r,children:(0,bo.jsxs)(ko,{ref:o,...a,children:[l&&c===!0&&(0,bo.jsx)(jo,{ref:s.context.internalBackdropRef,inert:Bo(!p)}),e.children]})}):null},"DialogPortal"));var Kn=T(A(),1);var Vr=T(A(),1);function Hn({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),a=t.useState("disablePointerDismissal"),s=t.useState("modal"),l=t.useState("popupElement"),c=t.useState("floatingRootContext"),[p,d]=Vr.useState(0),[u,f]=Vr.useState(0),h=p===0,g=zt(c,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!t.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0)return!1;if("touches"in m){if(m.type==="touchend"){if(m.changedTouches.length!==1||m.touches.length!==0)return!1}else if(m.touches.length!==1)return!1}let x=fa(m);if(h&&!a){if(s){let v=t.context.internalBackdropRef.current,b=t.context.backdropRef.current;return v||b?v===x||b===x||po(x,l)&&!x?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:h});return Va(r&&s===!0,l),t.useContextCallback("onNestedDialogOpen",(m,x)=>{d(m),f(x)}),xe(()=>(e?.onNestedDialogOpen&&(r?e.onNestedDialogOpen(p+1,u+(o?1:0)):e.onNestedDialogOpen(0,0)),()=>{e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(0,0)}),[o,r,p,u,e]),Yt(t,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}i(Hn,"DialogInteractions");var sr=T(A(),1);var Bn={...Xt,modal:i(t=>t.modal,"modal"),nested:i(t=>t.nested,"nested"),nestedOpenDialogCount:i(t=>t.nestedOpenDialogCount,"nestedOpenDialogCount"),nestedOpenDrawerCount:i(t=>t.nestedOpenDrawerCount,"nestedOpenDrawerCount"),disablePointerDismissal:i(t=>t.disablePointerDismissal,"disablePointerDismissal"),openMethod:i(t=>t.openMethod,"openMethod"),descriptionElementId:i(t=>t.descriptionElementId,"descriptionElementId"),titleElementId:i(t=>t.titleElementId,"titleElementId"),viewportElement:i(t=>t.viewportElement,"viewportElement"),role:i(t=>t.role,"role")},ir=class extends Ut{static{i(this,"DialogStore")}constructor(e,o,r){let a=new Re,s=jn(e,a,o,r);super(s,zn(a),Bn)}setOpen=i((e,o)=>{o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,o),!o.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(e,o),this.update(Io(this.state,e,o.trigger)))},"setOpen")};function Fn(){let t=new Re;return new to(Object.freeze(jn(void 0,t)),Object.freeze(zn(t)),Bn)}i(Fn,"createNullDialogStore");function jn(t,e,o,r=!1){return{...Jt(e,o,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}i(jn,"createInitialState");function zn(t){return{popupRef:sr.createRef(),backdropRef:sr.createRef(),internalBackdropRef:sr.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:t,onOpenChange:void 0,onOpenChangeComplete:void 0}}i(zn,"createInitialContext");var xo=T(se(),1);function Un(t,e){let{children:o,open:r,defaultOpen:a=!1,onOpenChange:s,onOpenChangeComplete:l,disablePointerDismissal:c=!1,modal:p=!0,actionsRef:d,handle:u,triggerId:f,defaultTriggerId:h=null}=e,g=t==="drawer",m=t==="alert-dialog",x=m?!0:p,v=m||c,b=m?"alertdialog":"dialog",P=ae(!0),y=P!=null,C={modal:x,disablePointerDismissal:v,nested:y,role:b},R=qt((M,L)=>new ir({open:a,openProp:r,activeTriggerId:h,triggerIdProp:f,...C},M,L),!0);R.useControlledProp("openProp",r),R.useControlledProp("triggerIdProp",f),R.useSyncedValues(C),R.useContextCallback("onOpenChange",s),R.useContextCallback("onOpenChangeComplete",l);let w=R.useState("open"),S=R.useState("mounted"),N=R.useState("payload");_o(R,w),Gt(R);let{forceUnmount:E}=Qt(w,R);Kn.useImperativeHandle(d,()=>({unmount:E,close:i(()=>R.setOpen(!1,re(K.imperativeAction)),"close")}),[E,R]);let k=w||S;return(0,xo.jsxs)(_r.Provider,{value:R,children:[u&&(0,xo.jsx)(Wt,{handle:u,store:R}),k&&(0,xo.jsx)(Hn,{store:R,parentContext:P?.context,isDrawer:g}),typeof o=="function"?o({payload:N}):o]})}i(Un,"useRenderDialogRoot");var Zn=Ft(i(function(e){return Un("dialog",e)},"DialogRoot"));var qn=T(A(),1);var Wn=qn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,children:l,...c}=e,p=ar(),d=ae(),u=d.useState("open"),f=d.useState("nested"),h=d.useState("transitionStatus"),g=d.useState("nestedOpenDialogCount"),m=d.useState("mounted"),x=d.useStateSetter("viewportElement"),v=g>0;return B("div",e,{enabled:p||m,state:{open:u,nested:f,transitionStatus:h,nestedDialogOpen:v},ref:[o,x],stateAttributesMapping:nr,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},c]})},"DialogViewport"));var $n=T(A(),1);var Gn=$n.forwardRef(i(function(e,o){let{render:r,className:a,style:s,id:l,...c}=e,p=ae(),d=fe(l);return p.useSyncedValueWithCleanup("titleElementId",d),B("h2",e,{ref:o,props:[{id:d},c]})},"DialogTitle"));var Qn=T(A(),1);var Yn=jt(i(function(e,o){let{render:r,className:a,style:s,disabled:l=!1,nativeButton:c=!0,id:p,payload:d,handle:u,...f}=e,h=ae(!0),m=eo(u)??h;if(!m)throw new Error(Y(79));let x=fe(p),v=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",x),P=m.useState("triggerPopupId",x),y=Qn.useRef(null),{registerTrigger:C,isMountedByThisTrigger:R}=$t(x,y,m,{payload:d}),{getButtonProps:w,buttonRef:S}=Ee({disabled:l,native:c}),N=Do(v),E=Ho(()=>m.select("open"),L=>{m.set("openMethod",L)}),k={disabled:l,open:b},M=m.useState("triggerProps",R);return B("button",e,{state:k,ref:[S,o,C,y],props:[N.reference,M,E,{[wo]:"",id:x,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":P},f,w],stateAttributesMapping:Lt})},"DialogTrigger"));var yo=class extends Kt{static{i(this,"DialogHandle")}constructor(){super(Fn(),"Dialog",!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let o=this.attachedStore;o!==null&&(o.set("payload",e),o.setOpen(!0,re(K.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Jn(){return new yo}i(Jn,"createDialogHandle");var ye={};xr(ye,{Arrow:()=>ys,Handle:()=>Co,Popup:()=>bs,Portal:()=>fs,Positioner:()=>hs,Provider:()=>Cs,Root:()=>as,Trigger:()=>ls,Viewport:()=>Ss,createHandle:()=>Ts});var no=T(A(),1);var lr=T(A(),1);var Lr=lr.createContext(void 0);function ve(t){let e=lr.useContext(Lr);if(e===void 0&&!t)throw new Error(Y(72));return e}i(ve,"useTooltipRootContext");var Xn=T(A(),1);var es={...Xt,disabled:i(t=>t.disabled,"disabled"),instantType:i(t=>t.instantType,"instantType"),isInstantPhase:i(t=>t.isInstantPhase,"isInstantPhase"),trackCursorAxis:i(t=>t.trackCursorAxis,"trackCursorAxis"),disableHoverablePopup:i(t=>t.disableHoverablePopup,"disableHoverablePopup"),lastOpenChangeReason:i(t=>t.openChangeReason,"lastOpenChangeReason"),closeOnClick:i(t=>t.closeOnClick,"closeOnClick"),closeDelay:i(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:i(t=>t.adaptiveOrigin,"adaptiveOrigin")},cr=class extends Ut{static{i(this,"TooltipStore")}constructor(e,o,r){let a=new Re;super(os(e,a,o,r),rs(a),es)}setOpen=i((e,o)=>{Ma(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,re(K.triggerPress,e))}};function ts(){let t=new Re,e=new to(Object.freeze(os(void 0,t)),Object.freeze(rs(t)),es);return Object.assign(e,{setOpen:co,cancelPendingOpen:co})}i(ts,"createNullTooltipStore");function os(t,e,o,r=!1){return{...Jt(e,o,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...t}}i(os,"createInitialState");function rs(t){return{popupRef:Xn.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}i(rs,"createInitialContext");var Po=T(se(),1);var as=Ft(i(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:a,disableHoverablePopup:s=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:p,onOpenChangeComplete:d,handle:u,triggerId:f,defaultTriggerId:h=null,children:g}=e,m=qt((M,L)=>new cr({open:r,openProp:a,activeTriggerId:h,triggerIdProp:f},M,L));m.useControlledProp("openProp",a),m.useControlledProp("triggerIdProp",f),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",d);let x=m.useState("open"),v=!o&&x,b=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:s,disabled:o}),Gt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:C,transitionStatus:R}=Qt(v,m),w=m.useState("isInstantPhase"),S=m.useState("instantType"),N=m.useState("lastOpenChangeReason"),E=no.useRef(null);xe(()=>{x&&o&&m.setOpen(!1,re(K.disabled))},[x,o,m]),xe(()=>{R==="ending"&&N===K.none||R!=="ending"&&w?(S!=="delay"&&(E.current=S),m.set("instantType","delay")):E.current!==null&&(m.set("instantType",E.current),E.current=null)},[R,w,N,S,m]),xe(()=>{v&&b==null&&m.set("payload",void 0)},[m,b,v]),no.useImperativeHandle(c,()=>({unmount:C,close:i(()=>m.setOpen(!1,re(K.imperativeAction)),"close")}),[C,m]);let k=v||P||!o&&l!=="none";return(0,Po.jsxs)(Lr.Provider,{value:m,children:[u&&(0,Po.jsx)(Wt,{handle:u,store:m}),k&&(0,Po.jsx)(oi,{store:m,disabled:o,trackCursorAxis:l}),typeof g=="function"?g({payload:y}):g]})},"TooltipRoot"));function oi({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),a=zt(r,{enabled:!e,referencePress:i(()=>t.select("closeOnClick"),"referencePress")}),s=Oa(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=no.useMemo(()=>lo(s.reference,a.reference),[s.reference,a.reference]);return Yt(t,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:a.floating??da}),null}i(oi,"TooltipInteractions");var pr=T(A(),1);var dr=T(A(),1);var Hr=dr.createContext(void 0);function ns(){return dr.useContext(Hr)}i(ns,"useTooltipProviderContext");var is="data-base-ui-tooltip-trigger";function ss(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let a=o[r];if(No(a))return a}}let e=t.target;return No(e)?e:null}i(ss,"getTargetElement");function ri(t){let e=t;for(;e;){let o=e.closest(`[${is}]`);if(o)return o;let r=e.getRootNode();e="host"in r&&No(r.host)?r.host:null}return null}i(ri,"closestEnabledTooltipTrigger");var ls=jt(i(function(e,o){let{render:r,className:a,style:s,handle:l,payload:c,disabled:p,delay:d,closeOnClick:u=!0,closeDelay:f,id:h,...g}=e,m=ve(!0),v=eo(l)??m;if(!v)throw new Error(Y(82));let b=fe(h),P=v.useState("isTriggerActive",b),y=v.useState("isOpenedByTrigger",b),C=v.useState("floatingRootContext"),R=pr.useRef(null),w=f??0,{registerTrigger:S,isMountedByThisTrigger:N}=$t(b,R,v,{payload:c,closeOnClick:u,closeDelay:w}),E=ns(),{activeIdRef:k,delayRef:M,isInstantPhase:L,hasProvider:_}=Sa(C,{open:y}),j=_a(C);v.useSyncedValue("isInstantPhase",L);let z=v.useState("disabled"),H=p??z,F=Ta(H),Z=v.useState("trackCursorAxis"),D=v.useState("disableHoverablePopup"),V=pr.useRef(!1),W=ya(),G=pr.useRef(void 0);function ee(){return _&&k.current!=null?0:d??E??600}i(ee,"getOpenDelay");function ne(q){let ie=R.current;if(!ie||!q)return!1;let me=ri(q);return me!==null&&me!==ie&&po(ie,me)}i(ne,"isEnabledNestedTriggerTarget");function te(q){let ie=ne(q);return V.current=ie,ie&&(j.openChangeTimeout.clear(),j.restTimeout.clear(),j.restTimeoutPending=!1,W.clear()),ie}i(te,"detectNestedTriggerHover");let X=Vo(C,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!D&&Z!=="both"?Lo():null,restMs:ee,delay(){return f==null&&_?{close:Ca(M.current,"close")}:{close:w}},triggerElementRef:R,isActiveTrigger:P,isClosing:i(()=>v.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!V.current}}),$=Ia(C,{enabled:!H}).reference,ce=i(q=>{let ie=V.current,me=ss(q),Ie=te(me),Te=R.current,Ne=Te&&me&&po(Te,me);if(Ie&&v.select("open")&&v.select("lastOpenChangeReason")===K.triggerHover){v.setOpen(!1,re(K.triggerHover,q));return}if(ie&&!Ie&&Ne&&!F.current&&!v.select("open")&&Te&&ba(G.current)){let Pe=i(()=>{!V.current&&!F.current&&!v.select("open")&&v.setOpen(!0,re(K.triggerHover,q,Te))},"open"),Ce=ee();Ce===0?(W.clear(),Pe()):W.start(Ce,Pe)}},"handleNestedTriggerHover"),de=v.useState("triggerProps",N);return B("button",e,{state:{open:y},ref:[o,S,R],props:[X,$,N||Z!=="none"?de:void 0,{onMouseOver(q){ce(q.nativeEvent)},onFocus(q){ne(ss(q.nativeEvent))&&q.preventBaseUIHandler()},onMouseLeave(){V.current=!1,W.clear(),G.current=void 0},onPointerEnter(q){G.current=q.pointerType},onPointerDown(q){G.current=q.pointerType,v.set("closeOnClick",u),u&&!v.select("open")&&v.cancelPendingOpen(q.nativeEvent)},onClick(q){u&&!v.select("open")&&v.cancelPendingOpen(q.nativeEvent)},id:b,[va]:H?"":void 0,[is]:H?void 0:""},g],stateAttributesMapping:Lt})},"TooltipTrigger"));var ms=T(A(),1);var ur=T(A(),1);var Br=ur.createContext(void 0);function cs(){let t=ur.useContext(Br);if(t===void 0)throw new Error(Y(70));return t}i(cs,"useTooltipPortalContext");var mr=T(A(),1),ds=T(Qr(),1);var ps=T(se(),1);var us=mr.forwardRef(i(function(e,o){let{children:r,container:a,className:s,render:l,style:c,...p}=e,{node:d,subtree:u}=Na({container:a,ref:o,componentProps:e,elementProps:p});return!u&&!d?null:(0,ps.jsxs)(mr.Fragment,{children:[u,d&&ds.createPortal(r,d)]})},"FloatingPortalLite"));var Fr=T(se(),1);var fs=ms.forwardRef(i(function(e,o){let{keepMounted:r=!1,...a}=e;return ve().useState("mounted")||r?(0,Fr.jsx)(Br.Provider,{value:r,children:(0,Fr.jsx)(us,{ref:o,...a})}):null},"TooltipPortal"));var gr=T(A(),1);var fr=T(A(),1);var jr=fr.createContext(void 0);function so(){let t=fr.useContext(jr);if(t===void 0)throw new Error(Y(71));return t}i(so,"useTooltipPositionerContext");var gs=T(se(),1);var hs=gr.forwardRef(i(function(e,o){let{render:r,className:a,anchor:s,positionMethod:l="absolute",side:c="top",align:p="center",sideOffset:d=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:h=5,arrowPadding:g=5,sticky:m=!1,disableAnchorTracking:x=!1,collisionAvoidance:v=Eo,style:b,...P}=e,y=ve(),C=cs(),R=y.useState("open"),w=y.useState("mounted"),S=y.useState("trackCursorAxis"),N=y.useState("disableHoverablePopup"),E=y.useState("floatingRootContext"),k=y.useState("instantType"),M=y.useState("transitionStatus"),L=y.useState("adaptiveOrigin"),_=Fo({anchor:s,positionMethod:l,floatingRootContext:E,mounted:w,side:c,sideOffset:d,align:p,alignOffset:u,collisionBoundary:f,collisionPadding:h,sticky:m,arrowPadding:g,disableAnchorTracking:x,keepMounted:C,collisionAvoidance:v,adaptiveOrigin:L}),j=gr.useMemo(()=>({open:R,side:_.side,align:_.align,anchorHidden:_.anchorHidden,instant:S!=="none"?"tracking-cursor":k}),[R,_.side,_.align,_.anchorHidden,S,k]),z=Ko(e,j,{styles:_.positionerStyles,transitionStatus:M,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!w,inert:!R||S==="both"||N});return(0,gs.jsx)(jr.Provider,{value:_,children:z})},"TooltipPositioner"));var vs=T(A(),1);var bs=vs.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=ve(),{side:p,align:d}=so(),u=c.useState("open"),f=c.useState("instantType"),h=c.useState("transitionStatus"),g=c.useState("popupProps"),m=c.useState("floatingRootContext"),x=c.useState("disabled"),v=c.useState("closeDelay");Bt({open:u,ref:c.context.popupRef,onComplete(){u&&c.context.onOpenChangeComplete?.(!0)}}),Ao(m,{enabled:!x,closeDelay:v});let b=c.useStateSetter("popupElement");return B("div",e,{state:{open:u,side:p,align:d,instant:f,transitionStatus:h},ref:[o,c.context.popupRef,b],props:[Zt,g,zo(h),l],stateAttributesMapping:we})},"TooltipPopup"));var xs=T(A(),1);var ys=xs.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=ve(),{arrowRef:p,side:d,align:u,arrowUncentered:f,arrowStyles:h}=so(),g=c.useState("open"),m=c.useState("instantType");return B("div",e,{state:{open:g,side:d,align:u,uncentered:f,instant:m},ref:[o,p],props:[{style:h,"aria-hidden":!0},l],stateAttributesMapping:Ht})},"TooltipArrow"));var Ps=T(A(),1);var zr=T(se(),1);var Cs=i(function(e){let{delay:o,closeDelay:r,timeout:a=400}=e,s=Ps.useMemo(()=>({open:o,close:r}),[o,r]);return(0,zr.jsx)(Hr.Provider,{value:o,children:(0,zr.jsx)(Ra,{delay:s,timeoutMs:a,children:e.children})})},"TooltipProvider");var Rs=T(A(),1);var Ss=Rs.forwardRef(i(function(e,o){let{render:r,className:a,style:s,children:l,...c}=e,p=ve(),d=so(),u=p.useState("instantType"),{children:f,state:h}=qo({store:p,side:d.side,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:Zo})},"TooltipViewport"));var Co=class extends Kt{static{i(this,"TooltipHandle")}constructor(){super(ts(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ts(){return new Co}i(Ts,"createTooltipHandle");var Ns=T(Pr(),1);var ws=T(se(),1);var ai=i((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?la:ia(e,o),"I"),Es=i(t=>{let e=(0,Ns.c)(7),{catalogs:o,children:r,i18n:a,locale:s}=t,l;e[0]!==o||e[1]!==a||e[2]!==s?(l=ai(a,s,o),e[0]=o,e[1]=a,e[2]=s,e[3]=l):l=e[3];let c=l,p;return e[4]!==r||e[5]!==c?(p=(0,ws.jsx)(ca,{value:c,children:r}),e[4]=r,e[5]=c,e[6]=p):p=e[6],p},"S");var Ur=T(Pr(),1);var Me=T(A(),1);var oe=T(se(),1);var Kr="lunora:command-palette",ks=i(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(Kr))},"ce"),ni=i(t=>{let e=(0,Ur.c)(18),{active:o,index:r,item:a,onActivate:s,onSelect:l}=t,c;e[0]!==a||e[1]!==l?(c=i(()=>{l(a)},"g"),e[0]=a,e[1]=l,e[2]=c):c=e[2];let p=c,d;e[3]!==r||e[4]!==s?(d=i(()=>{s(r)},"x"),e[3]=r,e[4]=s,e[5]=d):d=e[5];let u=d,f=o?"bg-accent text-accent-foreground":"text-foreground",h;e[6]!==f?(h=U("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",f),e[6]=f,e[7]=h):h=e[7];let g;e[8]!==a.label?(g=(0,oe.jsx)("span",{children:a.label}),e[8]=a.label,e[9]=g):g=e[9];let m;e[10]!==a.group?(m=(0,oe.jsx)("span",{className:"text-xs text-muted-foreground",children:a.group}),e[10]=a.group,e[11]=m):m=e[11];let x;return e[12]!==p||e[13]!==u||e[14]!==h||e[15]!==g||e[16]!==m?(x=(0,oe.jsx)("li",{children:(0,oe.jsxs)("button",{className:h,onClick:p,onMouseEnter:u,type:"button",children:[g,m]})}),e[12]=p,e[13]=u,e[14]=h,e[15]=g,e[16]=m,e[17]=x):x=e[17],x},"Y"),si=i((t,e)=>{let o=e.trim().toLowerCase();return o===""?t:t.filter(r=>r.label.toLowerCase().includes(o)||r.group.toLowerCase().includes(o))},"Z"),Os=i(t=>{let e=(0,Ur.c)(40),{items:o}=t,r=ge(),a=io(),{palette:s}=$o(),[l,c]=(0,Me.useState)(!1),[p,d]=(0,Me.useState)(""),[u,f]=(0,Me.useState)(0),h=(0,Me.useRef)(null),g,m;e[0]!==s?(g=i(()=>{let D=i(W=>{if(!(W.metaKey||W.ctrlKey)||W.key.toLowerCase()!==s)return;let{target:G}=W;G instanceof HTMLElement&&(G.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(G.tagName))||(W.preventDefault(),c(!0))},"t"),V=i(()=>{c(!0)},"l");return globalThis.addEventListener("keydown",D),globalThis.addEventListener(Kr,V),()=>{globalThis.removeEventListener("keydown",D),globalThis.removeEventListener(Kr,V)}},"s"),m=[s],e[0]=s,e[1]=g,e[2]=m):(g=e[1],m=e[2]),(0,Me.useEffect)(g,m);let x;e[3]!==o||e[4]!==p?(x=si(o,p),e[3]=o,e[4]=p,e[5]=x):x=e[5];let v=x,b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=i(D=>{c(D),D||(d(""),f(0))},"I"),e[6]=b):b=e[6];let P=b,y;e[7]!==a?(y=i(D=>{if(P(!1),D.run!==void 0){D.run();return}D.to!==void 0&&oo(a({to:D.to}))},"K"),e[7]=a,e[8]=y):y=e[8];let C=y,R;e[9]===Symbol.for("react.memo_cache_sentinel")?(R=i(D=>{d(D.target.value),f(0)},"P"),e[9]=R):R=e[9];let w=R,S;e[10]!==u||e[11]!==v||e[12]!==C?(S=i(D=>{e:switch(D.key){case"ArrowDown":{D.preventDefault(),f(V=>v.length===0?0:(V+1)%v.length);break e}case"ArrowUp":{D.preventDefault(),f(V=>v.length===0?0:(V-1+v.length)%v.length);break e}case"Enter":{D.preventDefault();let V=v[u];V!==void 0&&C(V);break e}}},"z"),e[10]=u,e[11]=v,e[12]=C,e[13]=S):S=e[13];let N=S,E;e[14]===Symbol.for("react.memo_cache_sentinel")?(E=(0,oe.jsx)(le.Backdrop,{className:"fixed inset-0 z-50 bg-black/40 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),e[14]=E):E=e[14];let k;e[15]!==r?(k=r("Command palette"),e[15]=r,e[16]=k):k=e[16];let M;e[17]!==k?(M=(0,oe.jsx)(le.Title,{className:"sr-only",children:k}),e[17]=k,e[18]=M):M=e[18];let L;e[19]===Symbol.for("react.memo_cache_sentinel")?(L=(0,oe.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,oe.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,oe.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[19]=L):L=e[19];let _;e[20]!==r?(_=r("Search\u2026"),e[20]=r,e[21]=_):_=e[21];let j;e[22]!==N||e[23]!==p||e[24]!==_?(j=(0,oe.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[L,(0,oe.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:w,onKeyDown:N,placeholder:_,ref:h,type:"text",value:p})]}),e[22]=N,e[23]=p,e[24]=_,e[25]=j):j=e[25];let z;e[26]!==u||e[27]!==v||e[28]!==C||e[29]!==r?(z=v.length===0?(0,oe.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):v.map((D,V)=>(0,oe.jsx)(ni,{active:V===u,index:V,item:D,onActivate:f,onSelect:C},D.to??`${D.group}:${D.label}`)),e[26]=u,e[27]=v,e[28]=C,e[29]=r,e[30]=z):z=e[30];let H;e[31]!==z?(H=(0,oe.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:z}),e[31]=z,e[32]=H):H=e[32];let F;e[33]!==M||e[34]!==j||e[35]!==H?(F=(0,oe.jsxs)(le.Portal,{children:[E,(0,oe.jsxs)(le.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[M,j,H]})]}),e[33]=M,e[34]=j,e[35]=H,e[36]=F):F=e[36];let Z;return e[37]!==l||e[38]!==F?(Z=(0,oe.jsx)(le.Root,{onOpenChange:P,open:l,children:F}),e[37]=l,e[38]=F,e[39]=Z):Z=e[39],Z},"de");var Vs="(prefers-color-scheme: dark)",Ls=i(()=>{try{return globalThis.localStorage}catch{return}},"Qt"),ii=i(t=>t==="system"||t==="light"||t==="dark","Hs"),Hs=i(()=>globalThis.matchMedia,"Yt"),Bs="lunora-studio-theme",Zr=["system","light","dark"],li=i((t="system")=>{try{let e=Ls()?.getItem(Bs);return ii(e)?e:t}catch{return t}},"Vs"),Ds=i(t=>{let e=Ls();if(e!==void 0)try{e.setItem(Bs,t)}catch{}},"$t"),ci=i(()=>{try{return Hs()?.(Vs).matches?"dark":"light"}catch{return"light"}},"Bs"),di=i((t,e)=>t==="system"?e:t,"zs"),pi=i(t=>{let e;try{e=Hs()?.(Vs)}catch{e=void 0}if(e===void 0)return()=>{};let o=i(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"Ds"),$r=(0,O.createContext)(null),ui=i(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,O.useState)(()=>li(e)),[a,s]=(0,O.useState)(()=>ci());(0,O.useEffect)(()=>pi(s),[]);let l=i(p=>{Ds(p),r(p)},"i"),c={cycleTheme:i(()=>{r(p=>{let d=Zr[(Zr.indexOf(p)+1)%Zr.length]??p;return Ds(d),d})},"cycleTheme"),resolvedTheme:di(o,a),setTheme:l,systemTheme:a,theme:o};return(0,n.jsx)($r,{value:c,children:t})},"Os"),mi=i(t=>{let e=(0,I.c)(3),{children:o}=t,r=(0,O.use)($r),a;return e[0]!==o||e[1]!==r?(a=r===null?(0,n.jsx)(ui,{children:o}):o,e[0]=o,e[1]=r,e[2]=a):a=e[2],a},"Zs"),fi=i(()=>{let t=(0,O.use)($r);if(t===null)throw new yr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"qs");function Qg({delay:t=0,...e}){return(0,n.jsx)(ye.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}i(Qg,"$r");function gi(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(ye.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}i(gi,"Fs");function hi(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(ye.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(hi,"Ws");function vi({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:a=0,children:s,...l}){return(0,n.jsx)(ye.Portal,{children:(0,n.jsx)(ye.Positioner,{align:r,alignOffset:a,side:e,sideOffset:o,className:"isolate z-50",children:(0,n.jsxs)(ye.Popup,{"data-slot":"tooltip-content",className:U("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-md data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...l,children:[s,(0,n.jsx)(ye.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-md bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}i(vi,"Us");var bi=i(t=>{let e=(0,I.c)(5),{className:o}=t,r;e[0]!==o?(r=U("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=a):a=e[2];let s;return e[3]!==r?(s=(0,n.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:a}),e[3]=r,e[4]=s):s=e[4],s},"js"),Fs="lunora.studio.rulesBannerDismissed",xi=i(()=>{try{return globalThis.localStorage.getItem(Fs)==="1"}catch{return!1}},"Gs"),yi=i(()=>{try{globalThis.localStorage.setItem(Fs,"1")}catch{}},"Ks"),Pi=i(()=>{let t=(0,I.c)(18),e=ge(),[o,r]=(0,O.useState)(Ci),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=i(()=>{r(!0),yi()},"r"),t[0]=a):a=t[0];let s=a;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=l):l=t[1];let c;t[2]!==e?(c=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=c):c=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let d;t[5]!==e?(d=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=d):d=t[6];let u;t[7]!==c||t[8]!==d?(u=(0,n.jsxs)("span",{children:[c," ",p," ",d]}),t[7]=c,t[8]=d,t[9]=u):u=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=h):h=t[12];let g;t[13]!==f?(g=(0,n.jsx)("button",{"aria-label":f,className:"ms-auto flex size-5 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent","data-testid":"dash-app-rules-banner-dismiss",onClick:s,type:"button",children:h}),t[13]=f,t[14]=g):g=t[14];let m;return t[15]!==u||t[16]!==g?(m=(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[l,u,g]}),t[15]=u,t[16]=g,t[17]=m):m=t[17],m},"Qs");function Ci(){return xi()}i(Ci,"Ys");function js(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(De.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}i(js,"es");function zs(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(De.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(zs,"ts");function Ks({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:a="bottom",sideOffset:s=6,...l}){return(0,n.jsx)(De.Portal,{keepMounted:r,children:(0,n.jsx)(De.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:a,sideOffset:s,children:(0,n.jsx)(De.Popup,{className:U("z-50 w-72 origin-(--transform-origin) rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o),"data-slot":"popover-content",...l})})})}i(Ks,"ss");var qr=768;function Ri(){let t=(0,I.c)(2),[e,o]=(0,O.useState)(void 0),r,a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=i(()=>{let s=globalThis.matchMedia(`(max-width: ${qr-1}px)`),l=i(()=>{o(globalThis.innerWidth<qr)},"i");return s.addEventListener("change",l),o(globalThis.innerWidth<qr),()=>{s.removeEventListener("change",l)}},"a"),a=[],t[0]=r,t[1]=a):(r=t[0],a=t[1]),(0,O.useEffect)(r,a),!!e}i(Ri,"Js");function Si(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(le.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Si,"Xs");function Ti(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(le.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ti,"ea");function Ni(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)(le.Backdrop,{"data-slot":"sheet-overlay",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ni,"ta");function wi({className:t,children:e,side:o="right",showCloseButton:r=!0,...a}){return(0,n.jsxs)(Ti,{children:[(0,n.jsx)(Ni,{}),(0,n.jsxs)(le.Popup,{"data-slot":"sheet-content","data-side":o,className:U("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...a,children:[e,r&&(0,n.jsxs)(le.Close,{"data-slot":"sheet-close",render:(0,n.jsx)(wr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,n.jsx)(Nr,{icon:Ba,strokeWidth:2}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}i(wi,"sa");function Ei(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sheet-header",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ei,"aa");function ki(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("text-sm font-medium text-foreground",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)(le.Title,{"data-slot":"sheet-title",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(ki,"oa");function Oi(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)(le.Description,{"data-slot":"sheet-description",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Oi,"ra");var Di="sidebar_state",Mi=3600*24*7,Ii="16rem",_i="18rem",Ai="3rem",Vi="b",Us=be.createContext(null);function hr(){let t=be.useContext(Us);if(!t)throw new yr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}i(hr,"kt");function Li({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:a,children:s,...l}){let c=Ri(),[p,d]=be.useState(!1),[u,f]=be.useState(t),h=e??u,g=i(b=>{let P=typeof b=="function"?b(h):b;o?o(P):f(P),document.cookie=`${Di}=${P}; path=/; max-age=${Mi}`},"f"),m=i(()=>c?d(b=>!b):g(b=>!b),"g"),x=be.useEffectEvent(()=>{m()});be.useEffect(()=>{let b=i(P=>{P.key===Vi&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),x())},"v");return globalThis.addEventListener("keydown",b),()=>globalThis.removeEventListener("keydown",b)},[]);let v={state:h?"expanded":"collapsed",open:h,setOpen:g,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:m};return(0,n.jsx)(Us.Provider,{value:v,children:(0,n.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Ii,"--sidebar-width-icon":Ai,...a},className:U("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:s})})}i(Li,"fa");function Hi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:a,dir:s,...l}){let{isMobile:c,state:p,openMobile:d,setOpenMobile:u}=hr();return o==="none"?(0,n.jsx)("div",{"data-slot":"sidebar",className:U("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:a}):c?(0,n.jsx)(Si,{open:d,onOpenChange:u,...l,children:(0,n.jsxs)(wi,{dir:s,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":_i},side:t,children:[(0,n.jsxs)(Ei,{className:"sr-only",children:[(0,n.jsx)(ki,{children:"Sidebar"}),(0,n.jsx)(Oi,{children:"Displays the mobile sidebar."})]}),(0,n.jsx)("div",{className:"flex h-full w-full flex-col",children:a})]})}):(0,n.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,n.jsx)("div",{"data-slot":"sidebar-gap",className:U("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,n.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:U("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...l,children:(0,n.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:a})})]})}i(Hi,"ma");function Bi(t){let e=(0,I.c)(15),o,r,a;e[0]!==t?({className:o,onClick:r,...a}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=a):(o=e[1],r=e[2],a=e[3]);let{toggleSidebar:s}=hr(),l;e[4]!==o?(l=U(o),e[4]=o,e[5]=l):l=e[5];let c;e[6]!==r||e[7]!==s?(c=i(f=>{r?.(f),s()},"l"),e[6]=r,e[7]=s,e[8]=c):c=e[8];let p,d;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)(Nr,{icon:Fa,strokeWidth:2,className:"rtl:rotate-180"}),d=(0,n.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=d):(p=e[9],d=e[10]);let u;return e[11]!==a||e[12]!==l||e[13]!==c?(u=(0,n.jsxs)(wr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:c,...a,children:[p,d]}),e[11]=a,e[12]=l,e[13]=c,e[14]=u):u=e[14],u}i(Bi,"ha");function Fi(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("main",{"data-slot":"sidebar-inset",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Fi,"pa");function ji(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(ji,"ga");function zi(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(zi,"ba");function Ki(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ki,"va");function Ui(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ui,"ya");function Zi(t){let e=(0,I.c)(10),o,r,a,s;if(e[0]!==t){let{className:p,render:d,...u}=t;o=d,s=Rr,r="div",a=lo({className:U("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=a,e[4]=s}else o=e[1],r=e[2],a=e[3],s=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=l):l=e[5];let c;return e[6]!==o||e[7]!==r||e[8]!==a?(c={defaultTagName:r,props:a,render:o,state:l},e[6]=o,e[7]=r,e[8]=a,e[9]=c):c=e[9],s(c)}i(Zi,"xa");function qi(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("w-full text-xs",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(qi,"wa");function Ms(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ms,"Ht");function Is(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("group/menu-item relative",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Is,"Vt");var Wi=pa("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-none p-2 text-start text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Zs({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:a,className:s,...l}){let{isMobile:c,state:p}=hr(),d=Rr({defaultTagName:"button",props:lo({className:U(Wi({variant:o,size:r}),s)},l),render:a?(0,n.jsx)(hi,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return a?(typeof a=="string"&&(a={children:a}),(0,n.jsxs)(gi,{children:[d,(0,n.jsx)(vi,{side:"right",align:"center",hidden:p!=="collapsed"||c,...a})]})):d}i(Zs,"os");var $i=i(t=>t.replace("__lunora_admin__:",""),"Ma"),Gi=i(()=>(0,O.useSyncExternalStore)(mo.subscribe,mo.getSnapshot,mo.getSnapshot),"Na"),Qi=i(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","Sa"),Yi=i(t=>{let e=(0,I.c)(56),{entry:o,focused:r}=t,a=ge(),s;e[0]!==r?(s=i(L=>{L!==null&&r&&L.scrollIntoView({block:"nearest"})},"n"),e[0]=r,e[1]=s):s=e[1];let l=s,c;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(c=i(()=>{za(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"l"),e[2]=o.functionPath,e[3]=o.shardKey,e[4]=o.summary,e[5]=c):c=e[5];let p=c,d=r&&"bg-accent ring-1 ring-inset ring-primary/40",u;e[6]!==d?(u=U("border-b border-border/60 last:border-b-0",d),e[6]=d,e[7]=u):u=e[7];let f;e[8]!==o.status?(f=Qi(o.status),e[8]=o.status,e[9]=f):f=e[9];let h=o.status==="pending"?"\u2026":o.status,g;e[10]!==f||e[11]!==h?(g=(0,n.jsx)(Vt,{className:"mt-px shrink-0",variant:f,children:h}),e[10]=f,e[11]=h,e[12]=g):g=e[12];let m;e[13]!==o.functionPath?(m=$i(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let x;e[15]!==m?(x=(0,n.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=x):x=e[16];let v;e[17]!==o.kind||e[18]!==a?(v=o.kind==="subscription"&&(0,n.jsx)(Vt,{className:"shrink-0",variant:"outline",children:a("live")}),e[17]=o.kind,e[18]=a,e[19]=v):v=e[19];let b;e[20]!==o.summary?(b=o.summary!==""&&(0,n.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=b):b=e[21];let P;e[22]!==o.shardKey?(P=o.shardKey!==""&&(0,n.jsx)("span",{className:"font-mono",children:o.shardKey}),e[22]=o.shardKey,e[23]=P):P=e[23];let y;e[24]!==o.resultCount||e[25]!==a?(y=o.resultCount!==void 0&&(0,n.jsx)("span",{children:a("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=a,e[26]=y):y=e[26];let C;e[27]!==o.pushes||e[28]!==a?(C=o.pushes!==void 0&&o.pushes>0&&(0,n.jsx)("span",{children:a("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=a,e[29]=C):C=e[29];let R;e[30]!==o.durationMs?(R=o.durationMs!==void 0&&(0,n.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=R):R=e[31];let w;e[32]!==a?(w=a("Copy"),e[32]=a,e[33]=w):w=e[33];let S;e[34]!==p||e[35]!==w?(S=(0,n.jsx)("button",{"aria-label":w,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:p,type:"button",children:"\u29C9"}),e[34]=p,e[35]=w,e[36]=S):S=e[36];let N;e[37]!==P||e[38]!==y||e[39]!==C||e[40]!==R||e[41]!==S?(N=(0,n.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[P,y,C,R,S]}),e[37]=P,e[38]=y,e[39]=C,e[40]=R,e[41]=S,e[42]=N):N=e[42];let E;e[43]!==v||e[44]!==b||e[45]!==N||e[46]!==g||e[47]!==x?(E=(0,n.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[g,x,v,b,N]}),e[43]=v,e[44]=b,e[45]=N,e[46]=g,e[47]=x,e[48]=E):E=e[48];let k;e[49]!==o.error?(k=o.error!==void 0&&(0,n.jsx)("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:o.error}),e[49]=o.error,e[50]=k):k=e[50];let M;return e[51]!==l||e[52]!==E||e[53]!==k||e[54]!==u?(M=(0,n.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[E,k]}),e[51]=l,e[52]=E,e[53]=k,e[54]=u,e[55]=M):M=e[55],M},"Ca"),Ji=i(t=>{let e=(0,I.c)(62),{focusSeq:o,onClose:r,onShownChange:a,shown:s}=t,l=ge(),c=Gi(),[p,d]=(0,O.useState)(""),u;if(e[0]!==c||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==a||e[5]!==s||e[6]!==l){let f=p.trim().toLowerCase(),h=c.filter(V=>(s==="errors"?V.status==="error":!0)&&(f===""||`${V.functionPath} ${V.summary} ${V.shardKey}`.toLowerCase().includes(f))).toReversed(),g;e[8]!==c?(g=c.filter(Xi),e[8]=c,e[9]=g):g=e[9];let m=g.length,x;e[10]!==l?(x=l("Operation console"),e[10]=l,e[11]=x):x=e[11];let v;e[12]!==l?(v=l("Operation console"),e[12]=l,e[13]=v):v=e[13];let b;e[14]!==v?(b=(0,n.jsx)("span",{className:"text-xs font-medium",children:v}),e[14]=v,e[15]=b):b=e[15];let P;e[16]!==c.length||e[17]!==l?(P=l("{count} calls",{count:c.length}),e[16]=c.length,e[17]=l,e[18]=P):P=e[18];let y;e[19]!==P?(y=(0,n.jsx)(Vt,{variant:"secondary",children:P}),e[19]=P,e[20]=y):y=e[20];let C;e[21]!==m||e[22]!==l?(C=m>0&&(0,n.jsx)(Vt,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=C):C=e[23];let R=s==="errors",w=s==="errors"&&"bg-accent",S;e[24]!==w?(S=U("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",w),e[24]=w,e[25]=S):S=e[25];let N;e[26]!==a||e[27]!==s?(N=i(()=>{a(s==="errors"?"all":"errors")},"N"),e[26]=a,e[27]=s,e[28]=N):N=e[28];let E;e[29]!==l?(E=l("Errors"),e[29]=l,e[30]=E):E=e[30];let k;e[31]!==S||e[32]!==N||e[33]!==E||e[34]!==R?(k=(0,n.jsx)("button",{"aria-pressed":R,className:S,"data-testid":"oc-filter-errors",onClick:N,type:"button",children:E}),e[31]=S,e[32]=N,e[33]=E,e[34]=R,e[35]=k):k=e[35];let M;e[36]!==l?(M=l("Filter"),e[36]=l,e[37]=M):M=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=i(V=>{d(V.target.value)},"O"),e[38]=L):L=e[38];let _;e[39]!==l?(_=l("Filter"),e[39]=l,e[40]=_):_=e[40];let j;e[41]!==p||e[42]!==M||e[43]!==_?(j=(0,n.jsx)(Sr,{"aria-label":M,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:L,placeholder:_,value:p}),e[41]=p,e[42]=M,e[43]=_,e[44]=j):j=e[44];let z;e[45]!==l?(z=l("Clear"),e[45]=l,e[46]=z):z=e[46];let H;e[47]!==z?(H=(0,n.jsx)("button",{className:"ms-auto rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-clear",onClick:el,type:"button",children:z}),e[47]=z,e[48]=H):H=e[48];let F;e[49]!==l?(F=l("Hide"),e[49]=l,e[50]=F):F=e[50];let Z;e[51]!==r||e[52]!==F?(Z=(0,n.jsx)("button",{"aria-label":F,className:"rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-close",onClick:r,type:"button",children:"\u2715"}),e[51]=r,e[52]=F,e[53]=Z):Z=e[53];let D;e[54]!==k||e[55]!==j||e[56]!==H||e[57]!==Z||e[58]!==b||e[59]!==y||e[60]!==C?(D=(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,y,C,k,j,H,Z]}),e[54]=k,e[55]=j,e[56]=H,e[57]=Z,e[58]=b,e[59]=y,e[60]=C,e[61]=D):D=e[61],u=(0,n.jsxs)("section",{"aria-label":x,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[D,h.length===0?(0,n.jsx)("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):(0,n.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:h.map(V=>(0,n.jsx)(Yi,{entry:V,focused:V.seq===o},V.seq))})]}),e[0]=c,e[1]=o,e[2]=p,e[3]=r,e[4]=a,e[5]=s,e[6]=l,e[7]=u}else u=e[7];return u},"Pa");function Xi(t){return t.status==="error"}i(Xi,"_a");function el(){mo.clear()}i(el,"Ta");var tl=i(()=>{let t=(0,I.c)(334),e=ge(),o;t[0]!==e?(o=e("Health score"),t[0]=e,t[1]=o):o=t[1];let r;t[2]!==e?(r=e("Agents"),t[2]=e,t[3]=r):r=t[3];let a;t[4]!==e?(a=e("Evals"),t[4]=e,t[5]=a):a=t[5];let s;t[6]!==e?(s=e("AI usage"),t[6]=e,t[7]=s):s=t[7];let l;t[8]!==e?(l=e("Analytics"),t[8]=e,t[9]=l):l=t[9];let c;t[10]!==e?(c=e("API"),t[10]=e,t[11]=c):c=t[11];let p;t[12]!==e?(p=e("Architecture"),t[12]=e,t[13]=p):p=t[13];let d;t[14]!==e?(d=e("Audit"),t[14]=e,t[15]=d):d=t[15];let u;t[16]!==e?(u=e("Auth audit"),t[16]=e,t[17]=u):u=t[17];let f;t[18]!==e?(f=e("Configuration"),t[18]=e,t[19]=f):f=t[19];let h;t[20]!==e?(h=e("Sessions"),t[20]=e,t[21]=h):h=t[21];let g;t[22]!==e?(g=e("Containers"),t[22]=e,t[23]=g):g=t[23];let m;t[24]!==e?(m=e("Dashboards"),t[24]=e,t[25]=m):m=t[25];let x;t[26]!==e?(x=e("Data"),t[26]=e,t[27]=x):x=t[27];let v;t[28]!==e?(v=e("Deployment health"),t[28]=e,t[29]=v):v=t[29];let b;t[30]!==e?(b=e("Log drains"),t[30]=e,t[31]=b):b=t[31];let P;t[32]!==e?(P=e("Export / Import"),t[32]=e,t[33]=P):P=t[33];let y;t[34]!==e?(y=e("Fan-out"),t[34]=e,t[35]=y):y=t[35];let C;t[36]!==e?(C=e("Files"),t[36]=e,t[37]=C):C=t[37];let R;t[38]!==e?(R=e("Flags"),t[38]=e,t[39]=R):R=t[39];let w;t[40]!==e?(w=e("Functions"),t[40]=e,t[41]=w):w=t[41];let S;t[42]!==e?(S=e("Health"),t[42]=e,t[43]=S):S=t[43];let N;t[44]!==e?(N=e("Home"),t[44]=e,t[45]=N):N=t[45];let E;t[46]!==e?(E=e("Performance"),t[46]=e,t[47]=E):E=t[47];let k;t[48]!==e?(k=e("Issues"),t[48]=e,t[49]=k):k=t[49];let M;t[50]!==e?(M=e("KV"),t[50]=e,t[51]=M):M=t[51];let L;t[52]!==e?(L=e("Logs"),t[52]=e,t[53]=L):L=t[53];let _;t[54]!==e?(_=e("Metrics"),t[54]=e,t[55]=_):_=t[55];let j;t[56]!==e?(j=e("Migrations"),t[56]=e,t[57]=j):j=t[57];let z;t[58]!==e?(z=e("Notifications"),t[58]=e,t[59]=z):z=t[59];let H;t[60]!==e?(H=e("Organizations"),t[60]=e,t[61]=H):H=t[61];let F;t[62]!==e?(F=e("Time Travel"),t[62]=e,t[63]=F):F=t[63];let Z;t[64]!==e?(Z=e("Privacy requests"),t[64]=e,t[65]=Z):Z=t[65];let D;t[66]!==e?(D=e("Mail"),t[66]=e,t[67]=D):D=t[67];let V;t[68]!==e?(V=e("Payments"),t[68]=e,t[69]=V):V=t[69];let W;t[70]!==e?(W=e("Permissions"),t[70]=e,t[71]=W):W=t[71];let G;t[72]!==e?(G=e("Queues"),t[72]=e,t[73]=G):G=t[73];let ee;t[74]!==e?(ee=e("Reactors"),t[74]=e,t[75]=ee):ee=t[75];let ne;t[76]!==e?(ne=e("Realtime"),t[76]=e,t[77]=ne):ne=t[77];let te;t[78]!==e?(te=e("RLS Policies"),t[78]=e,t[79]=te):te=t[79];let X;t[80]!==e?(X=e("Scheduled"),t[80]=e,t[81]=X):X=t[81];let $;t[82]!==e?($=e("Schema"),t[82]=e,t[83]=$):$=t[83];let ce;t[84]!==e?(ce=e("Security"),t[84]=e,t[85]=ce):ce=t[85];let de;t[86]!==e?(de=e("Settings"),t[86]=e,t[87]=de):de=t[87];let pe;t[88]!==e?(pe=e("SQL editor"),t[88]=e,t[89]=pe):pe=t[89];let he;t[90]!==e?(he=e("Traces"),t[90]=e,t[91]=he):he=t[91];let ue;t[92]!==e?(ue=e("Access Rules"),t[92]=e,t[93]=ue):ue=t[93];let q;t[94]!==e?(q=e("Users"),t[94]=e,t[95]=q):q=t[95];let ie;t[96]!==e?(ie=e("Vectors"),t[96]=e,t[97]=ie):ie=t[97];let me;t[98]!==e?(me=e("Workflows"),t[98]=e,t[99]=me):me=t[99];let Ie;t[100]!==o||t[101]!==r||t[102]!==h||t[103]!==g||t[104]!==m||t[105]!==x||t[106]!==v||t[107]!==b||t[108]!==P||t[109]!==y||t[110]!==C||t[111]!==R||t[112]!==a||t[113]!==w||t[114]!==S||t[115]!==N||t[116]!==E||t[117]!==k||t[118]!==M||t[119]!==L||t[120]!==_||t[121]!==j||t[122]!==z||t[123]!==s||t[124]!==H||t[125]!==F||t[126]!==Z||t[127]!==D||t[128]!==V||t[129]!==W||t[130]!==G||t[131]!==ee||t[132]!==ne||t[133]!==te||t[134]!==l||t[135]!==X||t[136]!==$||t[137]!==ce||t[138]!==de||t[139]!==pe||t[140]!==he||t[141]!==ue||t[142]!==q||t[143]!==ie||t[144]!==me||t[145]!==c||t[146]!==p||t[147]!==d||t[148]!==u||t[149]!==f?(Ie={advisorHealth:o,agents:r,evals:a,aiUsage:s,analytics:l,api:c,architecture:p,audit:d,authAudit:u,authConfig:f,authSessions:h,containers:g,dashboards:m,data:x,deploymentHealth:v,drains:b,export:P,fanout:y,files:C,flags:R,functions:w,health:S,home:N,insights:E,issues:k,kv:M,logs:L,metrics:_,migrations:j,notifications:z,organizations:H,pitr:F,privacyRequests:Z,mail:D,payments:V,permissions:W,queues:G,reactors:ee,realtime:ne,rls:te,schedule:X,schema:$,security:ce,settings:de,sql:pe,traces:he,storageRules:ue,users:q,vectors:ie,workflows:me},t[100]=o,t[101]=r,t[102]=h,t[103]=g,t[104]=m,t[105]=x,t[106]=v,t[107]=b,t[108]=P,t[109]=y,t[110]=C,t[111]=R,t[112]=a,t[113]=w,t[114]=S,t[115]=N,t[116]=E,t[117]=k,t[118]=M,t[119]=L,t[120]=_,t[121]=j,t[122]=z,t[123]=s,t[124]=H,t[125]=F,t[126]=Z,t[127]=D,t[128]=V,t[129]=W,t[130]=G,t[131]=ee,t[132]=ne,t[133]=te,t[134]=l,t[135]=X,t[136]=$,t[137]=ce,t[138]=de,t[139]=pe,t[140]=he,t[141]=ue,t[142]=q,t[143]=ie,t[144]=me,t[145]=c,t[146]=p,t[147]=d,t[148]=u,t[149]=f,t[150]=Ie):Ie=t[150];let Te=Ie,Ne;t[151]!==e?(Ne=e("Advisors"),t[151]=e,t[152]=Ne):Ne=t[152];let Pe;t[153]!==e?(Pe=e("Auth"),t[153]=e,t[154]=Pe):Pe=t[154];let Ce;t[155]!==e?(Ce=e("Database"),t[155]=e,t[156]=Ce):Ce=t[156];let _e;t[157]!==e?(_e=e("Functions"),t[157]=e,t[158]=_e):_e=t[158];let Ae;t[159]!==e?(Ae=e("Observability"),t[159]=e,t[160]=Ae):Ae=t[160];let Ve;t[161]!==e?(Ve=e("Operations"),t[161]=e,t[162]=Ve):Ve=t[162];let Le;t[163]!==e?(Le=e("Overview"),t[163]=e,t[164]=Le):Le=t[164];let He;t[165]!==e?(He=e("Settings"),t[165]=e,t[166]=He):He=t[166];let Be;t[167]!==e?(Be=e("Storage"),t[167]=e,t[168]=Be):Be=t[168];let Ro;t[169]!==Ne||t[170]!==Pe||t[171]!==Ce||t[172]!==_e||t[173]!==Ae||t[174]!==Ve||t[175]!==Le||t[176]!==He||t[177]!==Be?(Ro={advisors:Ne,auth:Pe,database:Ce,functions:_e,observability:Ae,operations:Ve,overview:Le,settings:He,storage:Be},t[169]=Ne,t[170]=Pe,t[171]=Ce,t[172]=_e,t[173]=Ae,t[174]=Ve,t[175]=Le,t[176]=He,t[177]=Be,t[178]=Ro):Ro=t[178];let vr=Ro,Fe;t[179]!==e?(Fe=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[179]=e,t[180]=Fe):Fe=t[180];let je;t[181]!==e?(je=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[181]=e,t[182]=je):je=t[182];let ze;t[183]!==e?(ze=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[183]=e,t[184]=ze):ze=t[184];let Ke;t[185]!==e?(Ke=e("Tokens and spend from ctx.ai.model calls \u2014 totals, per function and per model, and the recent calls behind them."),t[185]=e,t[186]=Ke):Ke=t[186];let Ue;t[187]!==e?(Ue=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[187]=e,t[188]=Ue):Ue=t[188];let Ze;t[189]!==e?(Ze=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[189]=e,t[190]=Ze):Ze=t[190];let qe;t[191]!==e?(qe=e("A durable log of admin state-changing operations."),t[191]=e,t[192]=qe):qe=t[192];let We;t[193]!==e?(We=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[193]=e,t[194]=We):We=t[194];let $e;t[195]!==e?($e=e("Enabled plugins and session config (read-only)."),t[195]=e,t[196]=$e):$e=t[196];let Ge;t[197]!==e?(Ge=e("Your modules, and the calls, reads, writes and hand-offs between them, from codegen."),t[197]=e,t[198]=Ge):Ge=t[198];let Qe;t[199]!==e?(Qe=e("Browse and revoke active sessions across all users."),t[199]=e,t[200]=Qe):Qe=t[200];let Ye;t[201]!==e?(Ye=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[201]=e,t[202]=Ye):Ye=t[202];let Je;t[203]!==e?(Je=e("Chart widgets backed by saved read-only SQL queries."),t[203]=e,t[204]=Je):Je=t[204];let Xe;t[205]!==e?(Xe=e("Browse and edit rows across your shard and global tables."),t[205]=e,t[206]=Xe):Xe=t[206];let et;t[207]!==e?(et=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[207]=e,t[208]=et):et=t[208];let tt;t[209]!==e?(tt=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[209]=e,t[210]=tt):tt=t[210];let ot;t[211]!==e?(ot=e("Export a shard to NDJSON, or import rows from it."),t[211]=e,t[212]=ot):ot=t[212];let rt;t[213]!==e?(rt=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[213]=e,t[214]=rt):rt=t[214];let at;t[215]!==e?(at=e("Browse objects in your R2 storage buckets."),t[215]=e,t[216]=at):at=t[216];let nt;t[217]!==e?(nt=e("Inspect feature flags and their live evaluation under a targeting context."),t[217]=e,t[218]=nt):nt=t[218];let st;t[219]!==e?(st=e("Run registered queries, mutations, and actions."),t[219]=e,t[220]=st):st=t[220];let it;t[221]!==e?(it=e("At-a-glance connection, error, and shard signals."),t[221]=e,t[222]=it):it=t[222];let lt;t[223]!==e?(lt=e("Connection, health, and advisor summary for your deployment."),t[223]=e,t[224]=lt):lt=t[224];let ct;t[225]!==e?(ct=e("Surface slow functions, error spikes, and cache problems."),t[225]=e,t[226]=ct):ct=t[226];let dt;t[227]!==e?(dt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[227]=e,t[228]=dt):dt=t[228];let pt;t[229]!==e?(pt=e("A live stream of recent function logs."),t[229]=e,t[230]=pt):pt=t[230];let ut;t[231]!==e?(ut=e("Per-shard health and aggregate metrics."),t[231]=e,t[232]=ut):ut=t[232];let mt;t[233]!==e?(mt=e("Review migration status and run them."),t[233]=e,t[234]=mt):mt=t[234];let ft;t[235]!==e?(ft=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[235]=e,t[236]=ft):ft=t[236];let gt;t[237]!==e?(gt=e("Browse and manage organizations, members, and invitations."),t[237]=e,t[238]=gt):gt=t[238];let ht;t[239]!==e?(ht=e("Restore a shard to a point in the last 30 days."),t[239]=e,t[240]=ht):ht=t[240];let vt;t[241]!==e?(vt=e("Open data-subject export and erasure requests, with due dates and failed-run retries."),t[241]=e,t[242]=vt):vt=t[242];let bt;t[243]!==e?(bt=e("Email your app sent, captured in dev."),t[243]=e,t[244]=bt):bt=t[244];let xt;t[245]!==e?(xt=e("Synced customers, subscriptions, and webhook events."),t[245]=e,t[246]=xt):xt=t[246];let yt;t[247]!==e?(yt=e("Inspect access policies per table, and probe a function as any identity."),t[247]=e,t[248]=yt):yt=t[248];let Pt;t[249]!==e?(Pt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[249]=e,t[250]=Pt):Pt=t[250];let Ct;t[251]!==e?(Ct=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[251]=e,t[252]=Ct):Ct=t[252];let Rt;t[253]!==e?(Rt=e("Active WebSocket subscriptions on this shard."),t[253]=e,t[254]=Rt):Rt=t[254];let St;t[255]!==e?(St=e("Inspect row-level-security policies and roles, per table."),t[255]=e,t[256]=St):St=t[256];let Tt;t[257]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[257]=e,t[258]=Tt):Tt=t[258];let Nt;t[259]!==e?(Nt=e("Inspect each table and its columns."),t[259]=e,t[260]=Nt):Nt=t[260];let wt;t[261]!==e?(wt=e("Review admin gates, credentials, and log redaction."),t[261]=e,t[262]=wt):wt=t[262];let Et;t[263]!==e?(Et=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[263]=e,t[264]=Et):Et=t[264];let kt;t[265]!==e?(kt=e("Run read-only SQL against a shard."),t[265]=e,t[266]=kt):kt=t[266];let Ot;t[267]!==e?(Ot=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[267]=e,t[268]=Ot):Ot=t[268];let Dt;t[269]!==e?(Dt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[269]=e,t[270]=Dt):Dt=t[270];let Mt;t[271]!==e?(Mt=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[271]=e,t[272]=Mt):Mt=t[272];let It;t[273]!==e?(It=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[273]=e,t[274]=It):It=t[274];let _t;t[275]!==e?(_t=e("Browse Vectorize indexes and run similarity searches."),t[275]=e,t[276]=_t):_t=t[276];let At;t[277]!==e?(At=e("Inspect declared Cloudflare Workflows and their bindings."),t[277]=e,t[278]=At):At=t[278];let So;t[279]!==Tt||t[280]!==Nt||t[281]!==wt||t[282]!==Et||t[283]!==kt||t[284]!==Ot||t[285]!==Dt||t[286]!==Mt||t[287]!==It||t[288]!==_t||t[289]!==At||t[290]!==Fe||t[291]!==je||t[292]!==ze||t[293]!==Ke||t[294]!==Ue||t[295]!==Ze||t[296]!==qe||t[297]!==We||t[298]!==$e||t[299]!==Ge||t[300]!==Qe||t[301]!==Ye||t[302]!==Je||t[303]!==Xe||t[304]!==et||t[305]!==tt||t[306]!==ot||t[307]!==rt||t[308]!==at||t[309]!==nt||t[310]!==st||t[311]!==it||t[312]!==lt||t[313]!==ct||t[314]!==dt||t[315]!==pt||t[316]!==ut||t[317]!==mt||t[318]!==ft||t[319]!==gt||t[320]!==ht||t[321]!==vt||t[322]!==bt||t[323]!==xt||t[324]!==yt||t[325]!==Pt||t[326]!==Ct||t[327]!==Rt||t[328]!==St?(So={advisorHealth:Fe,agents:je,evals:ze,aiUsage:Ke,analytics:Ue,api:Ze,audit:qe,authAudit:We,authConfig:$e,architecture:Ge,authSessions:Qe,containers:Ye,dashboards:Je,data:Xe,deploymentHealth:et,drains:tt,export:ot,fanout:rt,files:at,flags:nt,functions:st,health:it,home:lt,insights:ct,issues:dt,logs:pt,metrics:ut,migrations:mt,notifications:ft,organizations:gt,pitr:ht,privacyRequests:vt,mail:bt,payments:xt,permissions:yt,queues:Pt,reactors:Ct,realtime:Rt,rls:St,schedule:Tt,schema:Nt,security:wt,settings:Et,sql:kt,kv:Ot,storageRules:Dt,traces:Mt,users:It,vectors:_t,workflows:At},t[279]=Tt,t[280]=Nt,t[281]=wt,t[282]=Et,t[283]=kt,t[284]=Ot,t[285]=Dt,t[286]=Mt,t[287]=It,t[288]=_t,t[289]=At,t[290]=Fe,t[291]=je,t[292]=ze,t[293]=Ke,t[294]=Ue,t[295]=Ze,t[296]=qe,t[297]=We,t[298]=$e,t[299]=Ge,t[300]=Qe,t[301]=Ye,t[302]=Je,t[303]=Xe,t[304]=et,t[305]=tt,t[306]=ot,t[307]=rt,t[308]=at,t[309]=nt,t[310]=st,t[311]=it,t[312]=lt,t[313]=ct,t[314]=dt,t[315]=pt,t[316]=ut,t[317]=mt,t[318]=ft,t[319]=gt,t[320]=ht,t[321]=vt,t[322]=bt,t[323]=xt,t[324]=yt,t[325]=Pt,t[326]=Ct,t[327]=Rt,t[328]=St,t[329]=So):So=t[329];let br=So,To;return t[330]!==vr||t[331]!==br||t[332]!==Te?(To={groupLabel:vr,tabDescription:br,tabLabel:Te},t[330]=vr,t[331]=br,t[332]=Te,t[333]=To):To=t[333],To},"Ra"),ol=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,n.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,n.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"Aa"),rl=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,n.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"La"),al=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"Ia"),nl=[{Icon:ol,value:"system"},{Icon:rl,value:"light"},{Icon:al,value:"dark"}],sl=i(()=>{let t=(0,I.c)(19),{theme:e,setTheme:o}=fi(),r=ge(),a;t[0]!==r?(a=r("Dark theme"),t[0]=r,t[1]=a):a=t[1];let s;t[2]!==r?(s=r("Light theme"),t[2]=r,t[3]=s):s=t[3];let l;t[4]!==r?(l=r("System theme"),t[4]=r,t[5]=l):l=t[5];let c;t[6]!==a||t[7]!==s||t[8]!==l?(c={dark:a,light:s,system:l},t[6]=a,t[7]=s,t[8]=l,t[9]=c):c=t[9];let p=c,d;t[10]!==r?(d=r("Theme"),t[10]=r,t[11]=d):d=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=nl.map(h=>{let{Icon:g,value:m}=h,x=e===m;return(0,n.jsxs)("button",{"aria-checked":x,"aria-label":p[m],className:U("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",x?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:i(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[x&&(0,n.jsx)(Ka.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,n.jsx)("span",{className:"relative",children:(0,n.jsx)(g,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let f;return t[16]!==d||t[17]!==u?(f=(0,n.jsx)("div",{"aria-label":d,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=d,t[17]=u,t[18]=f):f=t[18],f},"$a"),il=i(t=>{let e=(0,I.c)(23),{domain:o,onOpenCommandPalette:r,page:a}=t,s=ge(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(Bi,{className:"-ms-1"}),e[0]=l):l=e[0];let c;e[1]!==s?(c=s("Breadcrumb"),e[1]=s,e[2]=c):c=e[2];let p;e[3]!==o?(p=(0,n.jsx)("span",{className:"text-muted-foreground",children:o}),e[3]=o,e[4]=p):p=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=d):d=e[5];let u;e[6]!==a?(u=(0,n.jsx)("span",{className:"font-medium text-foreground",children:a}),e[6]=a,e[7]=u):u=e[7];let f;e[8]!==c||e[9]!==p||e[10]!==u?(f=(0,n.jsxs)("nav",{"aria-label":c,className:"flex items-center gap-1.5 text-[13px]",children:[p,d,u]}),e[8]=c,e[9]=p,e[10]=u,e[11]=f):f=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=h):h=e[12];let g;e[13]!==s?(g=s("Search\u2026"),e[13]=s,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),e[15]=m):m=e[15];let x;e[16]!==r||e[17]!==g?(x=(0,n.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:r,type:"button",children:[h,g,m]}),e[16]=r,e[17]=g,e[18]=x):x=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=(0,n.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,n.jsx)(sl,{})}),e[19]=v):v=e[19];let b;return e[20]!==x||e[21]!==f?(b=(0,n.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[l,f,x,v]}),e[20]=x,e[21]=f,e[22]=b):b=e[22],b},"Ha"),ll={agents:{capability:"agents"},analytics:{capability:"analytics",feature:"analytics"},authAudit:{feature:"auth"},authConfig:{feature:"auth"},authSessions:{feature:"auth"},containers:{capability:"containers",feature:"containers"},fanout:{capability:"crossShardFanout"},files:{capability:"objectStorage",feature:"storage"},flags:{feature:"flags"},kv:{capability:"keyValueStore",feature:"kv"},mail:{capability:"mail",feature:"mail"},notifications:{feature:"notifications"},organizations:{feature:"auth"},payments:{feature:"payments"},pitr:{capability:"pointInTimeRecovery"},privacyRequests:{feature:"privacy"},queues:{capability:"queues",feature:"queues"},reactors:{capability:"serverReactors"},schedule:{capability:"scheduler",feature:"scheduler"},storageRules:{feature:"storage"},users:{feature:"auth"},vectors:{capability:"vectorStore",feature:"vectors"},workflows:{capability:"workflows",feature:"workflows"}},cl={agents:"Durable agents",analytics:"Analytics",containers:"Containers",crossShardFanout:"Cross-shard fan-out",keyValueStore:"Key-value storage",mail:"Mail delivery",objectStorage:"Object storage",pointInTimeRecovery:"Point-in-time recovery",queues:"Queues",scheduler:"Scheduling",serverReactors:"Server reactors",vectorStore:"Vector search",workflows:"Workflows"},dl={kind:"hidden"},_s={kind:"ok"},pl={kind:"pending"},qs=i((t,e,o)=>{let r=ll[t];return r?.feature!==void 0&&!e[r.feature]?dl:r?.capability===void 0?_s:e.settled?e.platform?.unsupported.includes(r.capability)===!0?{kind:"unavailable",reason:o("{capability} is not supported on {platform}.",{capability:o(cl[r.capability]),platform:e.platform.name})}:_s:pl},"rs"),ul=i((t,e,o)=>{let r={},a=[];for(let s of t){let l=[];for(let c of s.tabs){let p=qs(c,e,o);p.kind!=="hidden"&&l.push(c),p.kind==="unavailable"&&(r[c]=p.reason)}l.length>0&&a.push({...s,tabs:l})}return{unavailable:r,visibleGroups:a}},"Oa"),ml=i(t=>{let e=(0,I.c)(3),{reason:o,title:r}=t,a;return e[0]!==o||e[1]!==r?(a=(0,n.jsx)(ja,{description:o,testId:"dash-unsupported",title:r}),e[0]=o,e[1]=r,e[2]=a):a=e[2],a},"Za"),fl=i(t=>{let e=(0,I.c)(4),{console:o}=$o(),r,a;e[0]!==o||e[1]!==t?(r=i(()=>{if(t===void 0)return;let s=i(l=>{if(!l.ctrlKey||l.metaKey||l.altKey||l.shiftKey||l.repeat||l.key.toLowerCase()!==o)return;let{target:c}=l;c instanceof HTMLElement&&(c.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(c.tagName))||(l.preventDefault(),t())},"n");return globalThis.addEventListener("keydown",s),()=>{globalThis.removeEventListener("keydown",s)}},"a"),a=[o,t],e[0]=o,e[1]=t,e[2]=r,e[3]=a):(r=e[2],a=e[3]),(0,O.useEffect)(r,a)},"qa"),Q=i((t,e)=>(0,O.lazy)(()=>t().then(o=>({default:o[e]}))),"I"),gl=Q(()=>import("./chunk-N66HNAEX.js"),"InsightsPanel"),hl=(0,O.lazy)(()=>import("./chunk-5DKOUMFY.js")),vl=(0,O.lazy)(()=>import("./chunk-BEODZ54J.js")),bl=(0,O.lazy)(()=>import("./chunk-NQZMPZNU.js")),xl=(0,O.lazy)(()=>import("./chunk-KLQVRXER.js")),yl=Q(()=>import("./chunk-GUDC24NJ.js"),"AnalyticsPanel"),Pl=(0,O.lazy)(()=>import("./chunk-IC2NNXPZ.js")),Cl=(0,O.lazy)(()=>import("./chunk-XUS6E3C7.js")),Rl=(0,O.lazy)(()=>import("./chunk-IDX6KQRG.js")),Sl=(0,O.lazy)(()=>import("./chunk-5QTTNVDW.js")),Tl=(0,O.lazy)(()=>import("./chunk-DNIDQC3K.js")),Nl=(0,O.lazy)(()=>import("./chunk-WZ2CXW4B.js")),wl=Q(()=>import("./chunk-SQ4ZU5YB.js"),"UsersPanel"),El=(0,O.lazy)(()=>import("./chunk-SPLVBIFP.js")),kl=Q(()=>import("./chunk-RGCYH5VO.js"),"DeploymentHealthPanel"),Ol=Q(()=>import("./chunk-PMNMWB3N.js"),"TableEditor"),Dl=Q(()=>import("./chunk-ITFHDBLD.js"),"ExportImportPanel"),Ml=(0,O.lazy)(()=>import("./chunk-FR2MJIZG.js")),Il={data:qa,migrations:Wa},_l=Q(()=>import("./chunk-3BF2QRJM.js"),"PitrPanel"),Al=Q(()=>import("./chunk-UMPQDFU6.js"),"PrivacyRequestsPanel"),Vl=(0,O.lazy)(()=>import("./chunk-ZUB5DMJT.js")),Ll=(0,O.lazy)(()=>import("./chunk-SRNH27XV.js")),Hl=Q(()=>import("./chunk-YYEQLN53.js"),"FunctionRunner"),Bl=Q(()=>import("./chunk-EUTV2OGD.js"),"FunctionStatsPanel"),Fl=(0,O.lazy)(()=>import("./chunk-EJSTZM7A.js")),jl=Q(()=>import("./chunk-5CW7W7LQ.js"),"AuditPanel"),zl=(0,O.lazy)(()=>import("./chunk-HIJGQX6F.js")),Kl=(0,O.lazy)(()=>import("./chunk-NJ3YQOVN.js").then(t=>({default:t.LogsPanel}))),Ul=Q(()=>import("./chunk-DQAXICZV.js"),"MailPanel"),Zl=Q(()=>import("./chunk-FMSWGAHK.js"),"SchedulePanel"),ql=(0,O.lazy)(()=>import("./chunk-A4WUN5R3.js")),Wl=(0,O.lazy)(()=>import("./chunk-4RLRI34N.js")),$l=Q(()=>import("./chunk-OIG3OORA.js"),"KvBrowser"),Gl=(0,O.lazy)(()=>import("./chunk-HXC2I6YI.js")),Ql=Q(()=>import("./chunk-YNJEO3WB.js"),"PaymentsPanel"),Yl=Q(()=>import("./chunk-E57JT34T.js"),"PermissionsPanel"),Jl=(0,O.lazy)(()=>import("./chunk-G5P5DUVD.js")),Xl=(0,O.lazy)(()=>import("./chunk-CUIPEXIW.js")),ec=(0,O.lazy)(()=>import("./chunk-TFLKMZK5.js")),tc=Q(()=>import("./chunk-3F3742NV.js"),"HealthPanel"),oc=Q(()=>import("./chunk-YR5YXUZT.js"),"MetricsPanel"),rc=Q(()=>import("./chunk-6ZRYMZEX.js"),"SchemaViewer"),ac=Q(()=>import("./chunk-N36IWCKG.js"),"SettingsPanel"),nc=Q(()=>import("./chunk-S3KIA2QB.js"),"SqlEditorPanel"),sc=Q(()=>import("./chunk-J5CU2YKR.js"),"FileBrowser"),ic=(0,O.lazy)(()=>import("./chunk-JAPCIIQC.js")),lc=(0,O.lazy)(()=>import("./chunk-66MXYZBW.js")),cc=(0,O.lazy)(()=>import("./chunk-GTEER76O.js")),dc=(0,O.lazy)(()=>import("./chunk-VVHORMP3.js")),pc=Q(()=>import("./chunk-DD7J6RMR.js"),"VectorBrowser"),uc=(0,O.lazy)(()=>import("./chunk-L7OWZOME.js")),Ws=(0,O.createContext)(null),mc={analytics:(0,n.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,n.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),architecture:(0,n.jsx)("path",{d:"M4 4h6v5H4V4Zm10 0h6v5h-6V4ZM9 15h6v5H9v-5ZM7 9v3h10V9M12 12v3"}),audit:(0,n.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,n.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,n.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,n.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,n.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,n.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,n.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,n.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,n.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,n.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,n.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,n.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,n.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,n.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:(0,n.jsx)("path",{d:"M12 3v3m0 12v3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1M3 12h3m12 0h3M5.6 18.4l2.1-2.1m8.6-8.6 2.1-2.1M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z"}),health:(0,n.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,n.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,n.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,n.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,n.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,n.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,n.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,n.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,n.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,n.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,n.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,n.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),privacyRequests:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h4"}),queues:(0,n.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:(0,n.jsx)("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:(0,n.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,n.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,n.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),advisorHealth:(0,n.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,n.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,n.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,n.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,n.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,n.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},As=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","architecture","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","aiUsage","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags","privacyRequests"]},{key:"settings",tabs:["settings"]}],Wr=i(t=>{let e=(0,I.c)(2),{tab:o}=t,r=mc[o],a;return e[0]!==r?(a=(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=a):a=e[1],a},"Rt"),fc=i(t=>t,"Fo"),$s=fc(["home","data","sql","functions","api","architecture","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","aiUsage","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","privacyRequests","settings"]),gc=new Set(["api","data","migrations","sql"]),hc=i(t=>{let e=t.split("/").findLast(Boolean)??"";return $s.includes(e)?e:"home"},"Uo"),vc=i(t=>{let e=(0,I.c)(19),{chrome:o,connected:r}=t,a=ge(),s;e[0]!==a?(s=a("admin token"),e[0]=a,e[1]=s):s=e[1];let l;e[2]!==s?(l=(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:s}),e[2]=s,e[3]=l):l=e[3];let c;e[4]!==o.onTokenChange||e[5]!==o.token?(c=(0,n.jsx)(Sr,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:o.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:o.token}),e[4]=o.onTokenChange,e[5]=o.token,e[6]=c):c=e[6];let p;e[7]!==r||e[8]!==a?(p=r&&(0,n.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),a("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=a,e[9]=p):p=e[9];let d;e[10]!==o.clearToken||e[11]!==r||e[12]!==a?(d=r&&(0,n.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:a("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=a,e[13]=d):d=e[13];let u;return e[14]!==l||e[15]!==c||e[16]!==p||e[17]!==d?(u=(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[l,c,p,d]}),e[14]=l,e[15]=c,e[16]=p,e[17]=d,e[18]=u):u=e[18],u},"jo"),Gs="opacity-50",bc=i(t=>{let e=(0,I.c)(27),{current:o,group:r,groupLabel:a,selectTab:s,tabDescription:l,tabLabel:c,unavailable:p}=t,d=r.tabs.includes(o)?"page":void 0,u=a[r.key],f=r.tabs[0],h;e[0]!==f?(h=(0,n.jsx)(Wr,{tab:f}),e[0]=f,e[1]=h):h=e[1];let g;e[2]!==d||e[3]!==u||e[4]!==h?(g=(0,n.jsx)(zs,{"aria-current":d,"aria-label":u,className:"mx-auto flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent data-[popup-open]:bg-sidebar-accent data-[popup-open]:text-sidebar-accent-foreground data-[popup-open]:shadow-xs aria-[current=page]:bg-sidebar-accent aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:shadow-xs",delay:120,openOnHover:!0,children:h}),e[2]=d,e[3]=u,e[4]=h,e[5]=g):g=e[5];let m=a[r.key],x;e[6]!==m?(x=(0,n.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:m}),e[6]=m,e[7]=x):x=e[7];let v;if(e[8]!==o||e[9]!==r.tabs||e[10]!==s||e[11]!==l||e[12]!==c||e[13]!==p){let y;e[15]!==o||e[16]!==s||e[17]!==l||e[18]!==c||e[19]!==p?(y=i(C=>(0,n.jsxs)("button",{"aria-current":o===C?"page":void 0,className:U("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100",p[C]!==void 0&&Gs),"data-tab":C,"data-testid":`dash-tab-${C}`,"data-unsupported":p[C]===void 0?void 0:"true",onClick:s,title:l[C],type:"button",children:[(0,n.jsx)(Wr,{tab:C}),(0,n.jsx)("span",{children:c[C]})]},C),"h"),e[15]=o,e[16]=s,e[17]=l,e[18]=c,e[19]=p,e[20]=y):y=e[20],v=r.tabs.map(y),e[8]=o,e[9]=r.tabs,e[10]=s,e[11]=l,e[12]=c,e[13]=p,e[14]=v}else v=e[14];let b;e[21]!==x||e[22]!==v?(b=(0,n.jsxs)(Ks,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[x,v]}),e[21]=x,e[22]=v,e[23]=b):b=e[23];let P;return e[24]!==g||e[25]!==b?(P=(0,n.jsxs)(js,{children:[g,b]}),e[24]=g,e[25]=b,e[26]=P):P=e[26],P},"Go"),xc=i(t=>{let e=(0,I.c)(45),{chrome:o,collapsed:r,connected:a}=t,s=ge();if(o===null){let y;e[0]!==s?(y=s("Admin"),e[0]=s,e[1]=y):y=e[1];let C;e[2]===Symbol.for("react.memo_cache_sentinel")?(C=(0,n.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=C):C=e[2];let R;e[3]!==s?(R=s("Admin"),e[3]=s,e[4]=R):R=e[4];let w;e[5]!==R?(w=(0,n.jsx)("span",{className:"truncate text-[13px] font-medium",children:R}),e[5]=R,e[6]=w):w=e[6];let S;e[7]!==s?(S=s("Studio"),e[7]=s,e[8]=S):S=e[8];let N;e[9]!==S?(N=(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:S}),e[9]=S,e[10]=N):N=e[10];let E;e[11]!==w||e[12]!==N?(E=(0,n.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[w,N]}),e[11]=w,e[12]=N,e[13]=E):E=e[13];let k;return e[14]!==y||e[15]!==E?(k=(0,n.jsxs)(Zs,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[C,E]}),e[14]=y,e[15]=E,e[16]=k):k=e[16],k}let l=r?"mx-auto size-8 justify-center":"w-full p-2",c;e[17]!==l?(c=U("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",l),e[17]=l,e[18]=c):c=e[18];let p;e[19]!==a||e[20]!==s?(p=s(a?"Connected":"Not connected"),e[19]=a,e[20]=s,e[21]=p):p=e[21];let d=a?"bg-success":"bg-muted-foreground/50",u;e[22]!==d?(u=U("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",d),e[22]=d,e[23]=u):u=e[23];let f;e[24]!==u?(f=(0,n.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,n.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let h;e[26]!==r||e[27]!==a||e[28]!==s?(h=!r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,n.jsx)("span",{className:"truncate text-[13px] font-medium",children:s("Admin")}),(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:s(a?"Connected":"Not connected")})]}),(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=a,e[28]=s,e[29]=h):h=e[29];let g;e[30]!==c||e[31]!==p||e[32]!==f||e[33]!==h?(g=(0,n.jsxs)(zs,{className:c,"data-testid":"dash-app-connect",title:p,children:[f,h]}),e[30]=c,e[31]=p,e[32]=f,e[33]=h,e[34]=g):g=e[34];let m=r?"end":"start",x=r?"right":"top",v;e[35]!==o||e[36]!==a?(v=(0,n.jsx)(vc,{chrome:o,connected:a}),e[35]=o,e[36]=a,e[37]=v):v=e[37];let b;e[38]!==x||e[39]!==v||e[40]!==m?(b=(0,n.jsx)(Ks,{align:m,keepMounted:!0,side:x,children:v}),e[38]=x,e[39]=v,e[40]=m,e[41]=b):b=e[41];let P;return e[42]!==b||e[43]!==g?(P=(0,n.jsxs)(js,{children:[g,b]}),e[42]=b,e[43]=g,e[44]=P):P=e[44],P},"Ko"),yc=i(t=>{let e=(0,I.c)(29),{chrome:o,connected:r,current:a,groupLabel:s,groups:l,selectTab:c,tabDescription:p,tabLabel:d,unavailable:u}=t,f=ge(),{state:h}=hr(),g=h==="collapsed",m=g&&"justify-center px-0",x;e[0]!==m?(x=U("flex items-center gap-2.5 px-1.5 py-1",m),e[0]=m,e[1]=x):x=e[1];let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=(0,n.jsx)(bi,{className:"size-9 shrink-0 text-foreground"}),e[2]=v):v=e[2];let b;e[3]!==g||e[4]!==r||e[5]!==f?(b=!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:f("Studio")})]}),(0,n.jsx)(Vt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:f(r?"Live":"Local")})]}),e[3]=g,e[4]=r,e[5]=f,e[6]=b):b=e[6];let P;e[7]!==x||e[8]!==b?(P=(0,n.jsx)(ji,{children:(0,n.jsxs)("div",{className:x,children:[v,b]})}),e[7]=x,e[8]=b,e[9]=P):P=e[9];let y;e[10]!==g||e[11]!==a||e[12]!==s||e[13]!==l||e[14]!==c||e[15]!==p||e[16]!==d||e[17]!==u?(y=g?l.map(S=>(0,n.jsx)(bc,{current:a,group:S,groupLabel:s,selectTab:c,tabDescription:p,tabLabel:d,unavailable:u},S.key)):l.map(S=>(0,n.jsxs)(Ui,{children:[(0,n.jsx)(Zi,{className:"text-[11px] font-medium tracking-wider uppercase",children:s[S.key]}),(0,n.jsx)(qi,{children:(0,n.jsx)(Ms,{children:S.tabs.map(N=>(0,n.jsx)(Is,{children:(0,n.jsxs)(Zs,{className:U("data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]",u[N]!==void 0&&Gs),"data-tab":N,"data-testid":`dash-tab-${N}`,"data-unsupported":u[N]===void 0?void 0:"true",isActive:a===N,onClick:c,title:p[N],tooltip:p[N],children:[(0,n.jsx)(Wr,{tab:N}),(0,n.jsx)("span",{children:d[N]})]})},N))})})]},S.key)),e[10]=g,e[11]=a,e[12]=s,e[13]=l,e[14]=c,e[15]=p,e[16]=d,e[17]=u,e[18]=y):y=e[18];let C;e[19]!==y?(C=(0,n.jsx)(Ki,{children:y}),e[19]=y,e[20]=C):C=e[20];let R;e[21]!==o||e[22]!==g||e[23]!==r?(R=(0,n.jsx)(zi,{children:(0,n.jsx)(Ms,{children:(0,n.jsx)(Is,{children:(0,n.jsx)(xc,{chrome:o,collapsed:g,connected:r})})})}),e[21]=o,e[22]=g,e[23]=r,e[24]=R):R=e[24];let w;return e[25]!==P||e[26]!==C||e[27]!==R?(w=(0,n.jsxs)(Hi,{collapsible:"icon",variant:"inset",children:[P,C,R]}),e[25]=P,e[26]=C,e[27]=R,e[28]=w):w=e[28],w},"Qo"),Gr=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(Wo,{className:"h-8 w-40"}),(0,n.jsx)(Wo,{className:"h-8 w-24"})]}),(0,n.jsx)(Wo,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"It"),Pc=i(t=>{let e=(0,I.c)(5),{title:o,verdict:r}=t;if(r.kind==="pending"){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,n.jsx)(Gr,{}),e[0]=s):s=e[0],s}if(r.kind==="unavailable"){let s;return e[1]!==o||e[2]!==r.reason?(s=(0,n.jsx)(ml,{reason:r.reason,title:o}),e[1]=o,e[2]=r.reason,e[3]=s):s=e[3],s}let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(ta,{}),e[4]=a):a=e[4],a},"Yo"),Cc=i(()=>{let t=(0,I.c)(46),e=ge(),o=io(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Ec},t[0]=r):r=t[0];let a=aa(r),s=hc(a),l=gc.has(s),c=sa(),p=c?.toggle;fl(p);let d=Ua(),{groupLabel:u,tabDescription:f,tabLabel:h}=tl(),{unavailable:g,visibleGroups:m}=ul(As,d,e),x={...f,...g},v=qs(s,d,e),b=v.kind==="hidden",P,y;t[1]!==b||t[2]!==o?(P=i(()=>{b&&oo(o({replace:!0,to:"/home"}))},"v"),y=[b,o],t[1]=b,t[2]=o,t[3]=P,t[4]=y):(P=t[3],y=t[4]),(0,O.useEffect)(P,y);let C;t[5]!==o?(C=i(ue=>{oo(o({to:`/${ue.currentTarget.dataset.tab??""}`}))},"w"),t[5]=o,t[6]=C):C=t[6];let R=C,w,S;t[7]!==s||t[8]!==h?(w=i(()=>{typeof document<"u"&&(document.title=`${h[s]} \xB7 lunora`)},"C"),S=[s,h],t[7]=s,t[8]=h,t[9]=w,t[10]=S):(w=t[9],S=t[10]),(0,O.useEffect)(w,S);let N=m.find(ue=>ue.tabs.includes(s))??As[0],E=m.flatMap(ue=>ue.tabs.filter(q=>g[q]===void 0).map(q=>({group:u[ue.key],label:h[q],to:`/${q}`}))),k=p===void 0?E:[...E,{group:e("Operations"),label:e("Toggle operation console"),run:p}],M=(0,O.use)(Ws),L=M!==null&&M.token!=="",_;t[11]!==k?(_=(0,n.jsx)(Os,{items:k}),t[11]=k,t[12]=_):_=t[12];let j=u[N.key],z=h[s],H;t[13]!==j||t[14]!==z?(H=(0,n.jsx)(il,{domain:j,onOpenCommandPalette:ks,page:z}),t[13]=j,t[14]=z,t[15]=H):H=t[15];let F;t[16]!==M?.rulesInstalled?(F=M?.rulesInstalled===!1&&(0,n.jsx)(Pi,{}),t[16]=M?.rulesInstalled,t[17]=F):F=t[17];let Z=`dash-tab-${s}`,D=l?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",V=h[s],W;t[18]!==e||t[19]!==V?(W=e("{title} failed",{title:V}),t[18]=e,t[19]=V,t[20]=W):W=t[20];let G=h[s],ee;t[21]!==e?(ee=e("Try again"),t[21]=e,t[22]=ee):ee=t[22];let ne;t[23]===Symbol.for("react.memo_cache_sentinel")?(ne=(0,n.jsx)(Gr,{}),t[23]=ne):ne=t[23];let te=h[s],X;t[24]!==te||t[25]!==v?(X=(0,n.jsx)(O.Suspense,{fallback:ne,children:(0,n.jsx)(Pc,{title:te,verdict:v})}),t[24]=te,t[25]=v,t[26]=X):X=t[26];let $;t[27]!==s||t[28]!==W||t[29]!==G||t[30]!==ee||t[31]!==X?($=(0,n.jsx)(Go,{fallbackTitle:W,label:G,retryLabel:ee,children:X},s),t[27]=s,t[28]=W,t[29]=G,t[30]=ee,t[31]=X,t[32]=$):$=t[32];let ce;t[33]!==D||t[34]!==$?(ce=(0,n.jsx)("div",{className:D,children:$}),t[33]=D,t[34]=$,t[35]=ce):ce=t[35];let de;t[36]!==c?(de=c?.open===!0&&(0,n.jsx)(Ji,{focusSeq:c.focusSeq,onClose:c.close,onShownChange:c.setShown,shown:c.shown}),t[36]=c,t[37]=de):de=t[37];let pe;t[38]!==Z||t[39]!==ce||t[40]!==de?(pe=(0,n.jsxs)("div",{"aria-labelledby":Z,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[ce,de]}),t[38]=Z,t[39]=ce,t[40]=de,t[41]=pe):pe=t[41];let he;return t[42]!==F||t[43]!==pe||t[44]!==H?(he=(0,n.jsxs)(Fi,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[H,F,pe]}),t[42]=F,t[43]=pe,t[44]=H,t[45]=he):he=t[45],(0,n.jsxs)(Li,{className:"min-h-0 flex-1","data-platform":d.platform?.id,"data-testid":"lunora-studio",children:[_,(0,n.jsx)(yc,{chrome:M,connected:L,current:s,groupLabel:u,groups:m,selectTab:R,tabDescription:x,tabLabel:h,unavailable:g}),he]})},"Jo"),Rc=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(na,{children:(0,n.jsx)(Cc,{})}),t[0]=e):e=t[0],e},"Xo"),Sc=i(t=>{let e=(0,I.c)(5),{initialShardKey:o,schemaEditable:r}=t,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];let s=Xr(a),{table:l}=s,c=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==c||e[3]!==r?(p=(0,n.jsx)(rc,{initialShardKey:o,initialTable:c,schemaEditable:r}),e[1]=o,e[2]=c,e[3]=r,e[4]=p):p=e[4],p},"er"),Tc=i(()=>{let t=(0,I.c)(3),e=io(),o,r;return t[0]!==e?(o=i(()=>{oo(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,O.useEffect)(o,r),null},"tr"),Nc=i(({analyticsSqlQuery:t,basePath:e,privacyRequests:o,dataEditable:r=!1,functions:a,initialShardKey:s,openApiSpec:l,openRpcSpec:c,runAsIdentity:p=!1,schemaEditable:d=!1,scheduledCancel:u,scheduledCron:f,scheduledLoad:h})=>{let g=ea({component:Rc}),m={agents:(0,n.jsx)(xl,{initialShardKey:s}),analytics:(0,n.jsx)(yl,{runQuery:t}),api:(0,n.jsx)(Pl,{functions:a,initialShardKey:s,openApiSpec:l,openRpcSpec:c}),architecture:(0,n.jsx)(Cl,{}),audit:(0,n.jsx)(jl,{initialShardKey:s}),authAudit:(0,n.jsx)(Rl,{}),authConfig:(0,n.jsx)(Sl,{}),authSessions:(0,n.jsx)(Tl,{}),containers:(0,n.jsx)(El,{}),dashboards:(0,n.jsx)(Xl,{initialShardKey:s}),data:(0,n.jsx)(Ol,{canGenerateRows:r&&d,editable:r,initialShardKey:s}),deploymentHealth:(0,n.jsx)(kl,{}),drains:(0,n.jsx)(zl,{}),export:(0,n.jsx)(Dl,{initialShardKey:s}),fanout:(0,n.jsx)(ec,{initialShardKey:s}),files:(0,n.jsx)(sc,{}),kv:(0,n.jsx)($l,{}),flags:(0,n.jsx)(Vl,{initialShardKey:s}),reactors:(0,n.jsx)(Ll,{initialShardKey:s}),functions:(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(Bl,{functions:a,initialShardKey:s}),(0,n.jsx)(Hl,{functions:a,runAsIdentity:p})]}),health:(0,n.jsx)(tc,{initialShardKey:s}),home:(0,n.jsx)(Za,{initialShardKey:s}),insights:(0,n.jsx)(gl,{initialShardKey:s}),issues:(0,n.jsx)(Fl,{initialShardKey:s}),logs:(0,n.jsx)(Kl,{initialShardKey:s}),traces:(0,n.jsx)(lc,{initialShardKey:s}),evals:(0,n.jsx)(cc,{initialShardKey:s}),aiUsage:(0,n.jsx)(dc,{initialShardKey:s}),metrics:(0,n.jsx)(oc,{initialShardKey:s}),migrations:(0,n.jsx)(Ml,{initialShardKey:s}),notifications:(0,n.jsx)(Gl,{}),organizations:(0,n.jsx)(Nl,{}),permissions:(0,n.jsx)(Yl,{functions:a,runAsIdentity:p,schemaEditable:d}),pitr:(0,n.jsx)(_l,{initialShardKey:s}),privacyRequests:(0,n.jsx)(Al,{source:o}),mail:(0,n.jsx)(Ul,{}),payments:(0,n.jsx)(Ql,{}),queues:(0,n.jsx)(Jl,{}),realtime:(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(ql,{initialShardKey:s}),(0,n.jsx)(Wl,{})]}),rls:(0,n.jsx)(hl,{}),schedule:(0,n.jsx)(Zl,{loadCronJobs:f,scheduledCancel:u,scheduledLoad:h}),schema:(0,n.jsx)(Sc,{initialShardKey:s,schemaEditable:d}),advisorHealth:(0,n.jsx)(vl,{}),security:(0,n.jsx)(bl,{}),settings:(0,n.jsx)(ac,{initialShardKey:s}),sql:(0,n.jsx)(nc,{initialShardKey:s}),storageRules:(0,n.jsx)(ic,{}),users:(0,n.jsx)(wl,{}),vectors:(0,n.jsx)(pc,{}),workflows:(0,n.jsx)(uc,{})},x=Cr({component:i(()=>m.home,"component"),getParentRoute:i(()=>g,"getParentRoute"),path:"/"}),v=$s.map(y=>Cr({component:i(()=>m[y],"component"),getParentRoute:i(()=>g,"getParentRoute"),path:`/${y}`,validateSearch:Il[y]})),b=g.addChildren([x,...v]),P="window"in globalThis?Yr():Jr({initialEntries:["/home"]});return oa({...e===void 0||e==="/"?{}:{basepath:e},defaultNotFoundComponent:Tc,defaultPendingComponent:Gr,defaultPendingMinMs:0,defaultPendingMs:0,history:P,routeTree:b})},"sr"),wc=i(t=>{let e=(0,I.c)(19),{analyticsSqlQuery:o,basePath:r,chrome:a,dataEditable:s,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,privacyRequests:u,runAsIdentity:f,schemaEditable:h,scheduledCancel:g,scheduledCron:m,scheduledLoad:x}=t,v;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==l||e[4]!==c||e[5]!==p||e[6]!==d||e[7]!==u||e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==x||e[12]!==h?(v=Nc({analyticsSqlQuery:o,basePath:r,privacyRequests:u,dataEditable:s,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:f,schemaEditable:h,scheduledCancel:g,scheduledCron:m,scheduledLoad:x}),e[0]=o,e[1]=r,e[2]=s,e[3]=l,e[4]=c,e[5]=p,e[6]=d,e[7]=u,e[8]=f,e[9]=g,e[10]=m,e[11]=x,e[12]=h,e[13]=v):v=e[13];let b=v,P=a??null,y;e[14]!==b?(y=(0,n.jsx)(ra,{router:b}),e[14]=b,e[15]=y):y=e[15];let C;return e[16]!==P||e[17]!==y?(C=(0,n.jsx)(Ws,{value:P,children:y}),e[16]=P,e[17]=y,e[18]=C):C=e[18],C},"ar"),Yg=i(t=>{let e=(0,I.c)(10),o,r,a;e[0]!==t?({i18n:o,locale:r,...a}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=a):(o=e[1],r=e[2],a=e[3]);let s;e[4]!==a?(s=(0,n.jsx)(mi,{children:(0,n.jsx)(wc,{...a})}),e[4]=a,e[5]=s):s=e[5];let l=s;if(o===void 0&&r===void 0)return l;let c;return e[6]!==o||e[7]!==r||e[8]!==l?(c=(0,n.jsx)(Es,{i18n:o,locale:r,children:l}),e[6]=o,e[7]=r,e[8]=l,e[9]=c):c=e[9],c},"Hr");function Ec(t){return t.location.pathname}i(Ec,"or");export{Go as a,Es as b,ui as c,fi as d,Qg as e,bi as f,Si as g,wi as h,Ei as i,ki as j,Yg as k};
1
+ import{a as $o}from"./chunk-XGCIDUJF.js";import{a as Ua,b as Za}from"./chunk-S7XJPD6Z.js";import{a as qa,d as Wa}from"./chunk-CCDX5RYT.js";import{a as Kt,b as Jt,c as Xt,d as eo,e as to,f as Aa,g as Zo,h as qo}from"./chunk-OYCUPD3Q.js";import{$ as Vo,A as ka,B as Oo,C as Do,D as Oa,E as zt,G as Ut,J as Zt,K as Mo,L as qt,M as Wt,O as Io,P as Da,Q as Ma,R as $t,S as Gt,T as Qt,U as Yt,V as _o,W as Re,Y as Ia,Z as _a,_ as Ao,b as ba,ca as Lo,da as Ho,fa as Bo,j as Ft,k as jt,l as Ca,la as Fo,m as Ra,ma as jo,n as Sa,na as zo,o as Ta,oa as Ko,p as Tr,pa as Va,q as wo,qa as La,ra as Uo,s as Eo,sa as Ha,t as Na,u as ko,y as wa,z as Ea}from"./chunk-NXQW5E6W.js";import{a as Wo}from"./chunk-SA2OGF3F.js";import{c as Ba,h as Fa,k as Nr}from"./chunk-GHQ2VDI2.js";import{b as Ka}from"./chunk-WJRYEML4.js";import{a as Yr,b as Jr,h as Xr,i as io,j as Cr,k as ea,l as ta,m as oa,n as ra,o as aa}from"./chunk-OQ6I6OXT.js";import{i as Sr}from"./chunk-E4PXACVL.js";import{C as xa,D as ya,H as Pa,I as Bt,M as K,N as re,b as fe,e as po,f as fa,l as ga,m as uo,o as Lt,p as ha,q as Ht,r as we,s as va}from"./chunk-MVWZMWPD.js";import{a as Qr}from"./chunk-7Y3SY37W.js";import{a as wr}from"./chunk-7G4Z6Q7X.js";import{c as Ee}from"./chunk-3YXASVTP.js";import{a as xe,c as ua,h as No,i as ma}from"./chunk-AUAECCXB.js";import{a as Rr,b as Vt}from"./chunk-Q6ED4KUL.js";import{a as lo,c as Y,g as co,i as da,j as B}from"./chunk-BOMPSVRC.js";import{a as na,b as sa}from"./chunk-55UGUCQ6.js";import{a as mo}from"./chunk-DFVQBXUZ.js";import{a as pa}from"./chunk-QAQDMS6R.js";import{d as yr}from"./chunk-35Q6XYRL.js";import{a as ja}from"./chunk-RWVIV3U7.js";import{a as ia,b as la,c as ca,d as ge,q as oo,t as za}from"./chunk-74IYYDDI.js";import{a as i,c as xr,d as T,e as A,f as Pr,g as se,i as U}from"./chunk-I26MS5PJ.js";var I=T(Pr(),1);var be=T(A(),1),O=T(A(),1);var n=T(se(),1);var $a=T(A(),1),Se=T(se(),1);var Qs={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},Ys={overflow:"auto",whiteSpace:"pre-wrap"},Go=class extends $a.Component{static{i(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=i(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:a}=this.props,{error:s}=this.state;if(s===null)return(0,Se.jsx)(Se.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Se.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:Qs,children:[(0,Se.jsx)("strong",{children:l}),(0,Se.jsx)("pre",{"data-testid":"dash-error-message",style:Ys,children:s.message}),(0,Se.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:a??"Try again"})]})}};var De={};xr(De,{Arrow:()=>mn,Backdrop:()=>gn,Close:()=>Pn,Description:()=>xn,Handle:()=>vo,Popup:()=>pn,Portal:()=>nn,Positioner:()=>sn,Root:()=>tn,Title:()=>vn,Trigger:()=>on,Viewport:()=>Rn,createHandle:()=>Sn});var fo=T(A(),1);var Qo=T(A(),1);var Er=Qo.createContext(void 0);function J(t){let e=Qo.useContext(Er);if(e===void 0&&!t)throw new Error(Y(47));return e}i(J,"usePopoverRootContext");var Yo=T(A(),1),Ga=T(Qr(),1);var Qa={...Xt,disabled:i(t=>t.disabled,"disabled"),instantType:i(t=>t.instantType,"instantType"),openMethod:i(t=>t.openMethod,"openMethod"),openChangeReason:i(t=>t.openChangeReason,"openChangeReason"),modal:i(t=>t.modal,"modal"),focusManagerModal:i(t=>t.focusManagerModal,"focusManagerModal"),stickIfOpen:i(t=>t.stickIfOpen,"stickIfOpen"),titleElementId:i(t=>t.titleElementId,"titleElementId"),descriptionElementId:i(t=>t.descriptionElementId,"descriptionElementId"),openOnHover:i(t=>t.openOnHover,"openOnHover"),closeDelay:i(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:i(t=>t.adaptiveOrigin,"adaptiveOrigin")},Jo=class extends Ut{static{i(this,"PopoverStore")}constructor(e,o,r){let a=new Re;super(Ja(e,a,o,r),Xa(a),Qa)}setOpen=i((e,o)=>{let r=o.reason===K.triggerHover,a=o.reason===K.triggerPress&&o.event.detail===0,s=!e&&(o.reason===K.escapeKey||o.reason==null),l=Da(o),c=this.select("activeTriggerId");if(!e&&o.reason===K.closePress&&o.trigger==null&&c!=null&&(o.trigger=this.context.triggerElements.getById(c)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=i(()=>{let u=Io(this.state,e,o.trigger,l());u.openChangeReason=o.reason,this.update(u)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),Ga.flushSync(p)):p();let d;a?d="click":s?d="dismiss":o.reason===K.focusOut&&(d="focus"),this.set("instantType",d)},"setOpen")};function Ya(){let t=new Re,e=new to(Object.freeze(Ja(void 0,t)),Object.freeze(Xa(t)),Qa);return Object.assign(e,{setOpen:co})}i(Ya,"createNullPopoverStore");function Ja(t,e,o,r=!1){let a={...Jt(e,o,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...t};return a.open&&t?.mounted===void 0&&(a.mounted=!0),a}i(Ja,"createInitialState");function Xa(t){return{popupRef:Yo.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Yo.createRef(),beforeContentFocusGuardRef:Yo.createRef(),stickIfOpenTimeout:new xa,triggerElements:t}}i(Xa,"createInitialContext");var ke=T(se(),1);var en=Ft(i(function({props:e}){let{children:o,open:r,defaultOpen:a=!1,onOpenChange:s,onOpenChangeComplete:l,modal:c=!1,handle:p,triggerId:d,defaultTriggerId:u=null}=e,f=Js(p,{modal:c,open:a,openProp:r,activeTriggerId:u,triggerIdProp:d});f.useControlledProp("openProp",r),f.useControlledProp("triggerIdProp",d);let h=f.useState("open"),g=f.useState("mounted"),m=f.useState("payload");f.useContextCallback("onOpenChange",s),f.useContextCallback("onOpenChangeComplete",l),_o(f,h),Gt(f);let{forceUnmount:x}=Qt(h,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:c}),fo.useEffect(()=>{h||f.context.stickIfOpenTimeout.clear()},[f,h]),fo.useImperativeHandle(e.actionsRef,()=>({unmount:x,close:i(()=>f.setOpen(!1,re(K.imperativeAction)),"close")}),[x,f]);let v=h||g;return(0,ke.jsxs)(Er.Provider,{value:f,children:[p&&(0,ke.jsx)(Wt,{handle:p,store:f}),v&&(0,ke.jsx)(Xs,{store:f,modal:c}),typeof o=="function"?o({payload:m}):o]})},"PopoverRootComponent"));function tn(t){return J(!0)?(0,ke.jsx)(en,{props:t}):(0,ke.jsx)(ka,{children:(0,ke.jsx)(en,{props:t})})}i(tn,"PopoverRoot");function Js(t,e){let o=qt((r,a)=>new Jo(e,r,a));return fo.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o}i(Js,"usePopoverRootStore");function Xs({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=zt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),a=r.reference,s=r.floating;return Yt(t,{activeTriggerProps:a,inactiveTriggerProps:a,popupProps:s}),null}i(Xs,"PopoverInteractions");var go=T(A(),1);var ro=T(se(),1);var on=jt(i(function(e,o){let{render:r,className:a,style:s,disabled:l=!1,nativeButton:c=!0,handle:p,payload:d,openOnHover:u=!1,delay:f=300,closeDelay:h=0,id:g,...m}=e,x=J(!0),b=eo(p)??x;if(!b)throw new Error(Y(74));let P=fe(g),y=b.useState("isTriggerActive",P),C=b.useState("floatingRootContext"),R=b.useState("isOpenedByTrigger",P),w=b.useState("triggerPopupId",P),S=go.useRef(null),{registerTrigger:N,isMountedByThisTrigger:E}=$t(P,S,b,{payload:d,disabled:l,openOnHover:u,closeDelay:h}),k=b.useState("openChangeReason"),M=b.useState("stickIfOpen"),L=b.useState("openMethod"),_=b.useState("focusManagerModal"),j=Vo(C,{enabled:!l&&u&&(L!=="touch"||k!==K.triggerPress),mouseOnly:!0,move:!1,handleClose:Lo(),restMs:f,delay:{close:h},triggerElementRef:S,isActiveTrigger:y,isClosing:i(()=>b.select("transitionStatus")==="ending","isClosing")}),z=Do(C,{stickIfOpen:M}),H=Ho(()=>b.select("open"),$=>{b.set("openMethod",$)}),F=b.useState("triggerProps",E),{getButtonProps:Z,buttonRef:D}=Ee({disabled:l,native:c}),V={open($){return $&&k===K.triggerPress?ha.open($):Lt.open($)}},{preFocusGuardRef:W,handlePreFocusGuardFocus:G,handleFocusTargetFocus:ee}=Aa(b,S),te=B("button",e,{state:{disabled:l,open:R},ref:[D,o,N,S],props:[z.reference,j,F,H,{[wo]:"",id:P,"aria-haspopup":"dialog","aria-expanded":R,"aria-controls":w},m,Z],stateAttributesMapping:V}),X=(0,ro.jsx)(go.Fragment,{children:te},P);return E&&!_?(0,ro.jsxs)(go.Fragment,{children:[(0,ro.jsx)(Tr,{ref:W,onFocus:G}),X,(0,ro.jsx)(Tr,{ref:b.context.triggerFocusTargetRef,onFocus:ee})]}):X},"PopoverTrigger"));var an=T(A(),1);var Xo=T(A(),1);var kr=Xo.createContext(void 0);function rn(){let t=Xo.useContext(kr);if(t===void 0)throw new Error(Y(45));return t}i(rn,"usePopoverPortalContext");var Or=T(se(),1);var nn=an.forwardRef(i(function(e,o){let{keepMounted:r=!1,...a}=e;return J().useState("mounted")||r?(0,Or.jsx)(kr.Provider,{value:r,children:(0,Or.jsx)(ko,{ref:o,...a})}):null},"PopoverPortal"));var tr=T(A(),1);var er=T(A(),1);var Dr=er.createContext(void 0);function ao(){let t=er.useContext(Dr);if(!t)throw new Error(Y(46));return t}i(ao,"usePopoverPositionerContext");var ho=T(se(),1);var sn=tr.forwardRef(i(function(e,o){let{render:r,className:a,style:s,anchor:l,positionMethod:c,side:p,align:d,sideOffset:u,alignOffset:f,collisionBoundary:h="clipping-ancestors",collisionPadding:g,arrowPadding:m,sticky:x,disableAnchorTracking:v=!1,collisionAvoidance:b=Eo,...P}=e,y=J(),C=rn(),R=wa(),w=y.useState("floatingRootContext"),S=y.useState("mounted"),N=y.useState("open"),E=y.useState("openChangeReason"),k=y.useState("activeTriggerElement"),M=y.useState("modal"),L=y.useState("openMethod"),_=y.useState("positionerElement"),j=y.useState("instantType"),z=y.useState("transitionStatus"),H=y.useState("adaptiveOrigin"),F=tr.useRef(null),Z=Pa(_),D=Fo({anchor:l,floatingRootContext:w,positionMethod:c,mounted:S,side:p,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:x,disableAnchorTracking:v,keepMounted:C,nodeId:R,collisionAvoidance:b,adaptiveOrigin:H}),V=w.useState("domReferenceElement");xe(()=>{let te=V,X=F.current;if(te&&(F.current=te),X&&te&&te!==X){y.set("instantType",void 0);let $=new AbortController;return Z(()=>{y.set("instantType","trigger-change")},$.signal),()=>{$.abort()}}},[V,Z,y]);let W=M===!0&&E!==K.triggerHover;La(N&&W,L==="touch",_,k);let G=y.useStateSetter("positionerElement"),ee={open:N,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:j},ne=Ko(e,ee,{styles:D.positionerStyles,transitionStatus:z,props:P,refs:[o,G],hidden:!S,inert:!N});return(0,ho.jsxs)(Dr.Provider,{value:D,children:[S&&W&&(0,ho.jsx)(jo,{inert:Bo(!N),cutout:k}),(0,ho.jsx)(Ea,{id:R,children:ne})]})},"PopoverPositioner"));var dn=T(A(),1);var Oe=T(A(),1);var Mr=Oe.createContext(void 0);function ln(){let[t,e]=Oe.useState(0),o=ua(()=>(e(a=>a+1),()=>{e(a=>Math.max(0,a-1))}));return{context:Oe.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}i(ln,"useClosePartCount");function cn(){let t=Oe.useContext(Mr);xe(()=>t?.register(),[t])}i(cn,"useClosePartRegistration");var Ir=T(se(),1);var pn=dn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,initialFocus:l,finalFocus:c,...p}=e,d=J(),u=ao(),f=Ha(!0)!=null,{context:h,hasClosePart:g}=ln(),m=d.useState("open"),x=d.useState("openMethod"),v=d.useState("instantType"),b=d.useState("transitionStatus"),P=d.useState("popupProps"),y=d.useState("titleElementId"),C=d.useState("descriptionElementId"),R=d.useState("modal"),w=d.useState("mounted"),S=d.useState("openChangeReason"),N=d.useState("activeTriggerElement"),E=d.useState("floatingRootContext"),k=E.useState("floatingId"),M=d.useState("disabled"),L=d.useState("openOnHover"),_=d.useState("closeDelay");Bt({open:m,ref:d.context.popupRef,onComplete(){m&&d.context.onOpenChangeComplete?.(!0)}}),Ao(E,{enabled:L&&!M,closeDelay:_});let j=l===void 0?Mo(d.context.popupRef):l,z=R!==!1&&g;d.useSyncedValue("focusManagerModal",z);let H=d.useStateSetter("popupElement"),F={open:m,side:u.side,align:u.align,instant:v,transitionStatus:b},Z=B("div",e,{state:F,ref:[o,d.context.popupRef,H],props:[P,{id:k,role:"dialog",...Zt,"aria-labelledby":y,"aria-describedby":C,onKeyDown(D){f&&Uo.has(D.key)&&D.stopPropagation()}},zo(b),p],stateAttributesMapping:we});return(0,Ir.jsx)(Oo,{context:E,openInteractionType:x,modal:z,disabled:!w||S===K.triggerHover,initialFocus:j,returnFocus:c,restoreFocus:"popup",previousFocusableElement:ma(N)?N:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,Ir.jsx)(Mr.Provider,{value:h,children:Z})})},"PopoverPopup"));var un=T(A(),1);var mn=un.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,p=J().useState("open"),{arrowRef:d,side:u,align:f,arrowUncentered:h,arrowStyles:g}=ao();return B("div",e,{state:{open:p,side:u,align:f,uncentered:h},ref:[o,d],props:[{style:g,"aria-hidden":!0},l],stateAttributesMapping:Ht})},"PopoverArrow"));var fn=T(A(),1);var gn=fn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=J(),p=c.useState("open"),d=c.useState("mounted"),u=c.useState("transitionStatus"),f=c.useState("openChangeReason");return B("div",e,{state:{open:p,transitionStatus:u},ref:o,props:[{role:"presentation",hidden:!d,style:{pointerEvents:f===K.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:we})},"PopoverBackdrop"));var hn=T(A(),1);var vn=hn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=J(),p=fe(l.id);return c.useSyncedValueWithCleanup("titleElementId",p),B("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var bn=T(A(),1);var xn=bn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=J(),p=fe(l.id);return c.useSyncedValueWithCleanup("descriptionElementId",p),B("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var yn=T(A(),1);var Pn=yn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,disabled:l=!1,nativeButton:c=!0,...p}=e,{buttonRef:d,getButtonProps:u}=Ee({disabled:l,focusableWhenDisabled:!1,native:c}),f=J();return cn(),B("button",e,{ref:[o,d],props:[{onClick(g){f.setOpen(!1,re(K.closePress,g.nativeEvent))}},p,u]})},"PopoverClose"));var Cn=T(A(),1);var Rn=Cn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,children:l,...c}=e,p=J(),{side:d}=ao(),u=p.useState("instantType"),{children:f,state:h}=qo({store:p,side:d,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:Zo})},"PopoverViewport"));var vo=class extends Kt{static{i(this,"PopoverHandle")}constructor(){super(Ya(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Sn(){return new vo}i(Sn,"createPopoverHandle");var le={};xr(le,{Backdrop:()=>Nn,Close:()=>En,Description:()=>On,Handle:()=>yo,Popup:()=>An,Portal:()=>Ln,Root:()=>Zn,Title:()=>Gn,Trigger:()=>Yn,Viewport:()=>Wn,createHandle:()=>Jn});var Tn=T(A(),1);var or=T(A(),1);var _r=or.createContext(void 0);function ae(t){let e=or.useContext(_r);if(!t&&e===void 0)throw new Error(Y(27));return e}i(ae,"useDialogRootContext");var Nn=Tn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,forceRender:l=!1,...c}=e,p=ae(),d=p.useState("open"),u=p.useState("nested"),f=p.useState("mounted"),h=p.useState("transitionStatus");return B("div",e,{state:{open:d,transitionStatus:h},ref:[p.context.backdropRef,o],stateAttributesMapping:we,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},c],enabled:l||!u})},"DialogBackdrop"));var wn=T(A(),1);var En=wn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,disabled:l=!1,nativeButton:c=!0,...p}=e,d=ae(),u=d.useState("open"),{getButtonProps:f,buttonRef:h}=Ee({disabled:l,native:c}),g={disabled:l};function m(x){u&&d.setOpen(!1,re(K.closePress,x.nativeEvent))}return i(m,"handleClick"),B("button",e,{state:g,ref:[o,h],props:[{onClick:m},p,f]})},"DialogClose"));var kn=T(A(),1);var On=kn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,id:l,...c}=e,p=ae(),d=fe(l);return p.useSyncedValueWithCleanup("descriptionElementId",d),B("p",e,{ref:o,props:[{id:d},c]})},"DialogDescription"));var In=T(A(),1);var rr=T(A(),1);var Ar=rr.createContext(void 0);function ar(){let t=rr.useContext(Ar);if(t===void 0)throw new Error(Y(26));return t}i(ar,"useDialogPortalContext");var Dn="--nested-dialogs";var ku=uo.open,Ou=uo.closed,Du=uo.startingStyle,Mu=uo.endingStyle;var Mn="data-nested-dialog-open";var nr={...Ht,...ga,nestedDialogOpen(t){return t?{[Mn]:""}:null}};var _n=T(se(),1);var An=In.forwardRef(i(function(e,o){let{render:r,className:a,style:s,finalFocus:l,initialFocus:c,...p}=e,d=ae(),u=d.useState("descriptionElementId"),f=d.useState("disablePointerDismissal"),h=d.useState("floatingRootContext"),g=d.useState("popupProps"),m=d.useState("modal"),x=d.useState("mounted"),v=d.useState("nested"),b=d.useState("nestedOpenDialogCount"),P=d.useState("open"),y=d.useState("openMethod"),C=d.useState("titleElementId"),R=d.useState("transitionStatus"),w=d.useState("role"),S=h.useState("floatingId");ar(),Bt({open:P,ref:d.context.popupRef,onComplete(){P&&d.context.onOpenChangeComplete?.(!0)}});let N=c===void 0?Mo(d.context.popupRef):c,E=b>0,k=d.useStateSetter("popupElement"),L=B("div",e,{state:{open:P,nested:v,transitionStatus:R,nestedDialogOpen:E},props:[g,{id:S,"aria-labelledby":C,"aria-describedby":u,role:w,...Zt,hidden:!x,onKeyDown(_){Uo.has(_.key)&&_.stopPropagation()},style:{[Dn]:b}},p],ref:[o,d.context.popupRef,k],stateAttributesMapping:nr});return(0,_n.jsx)(Oo,{context:h,openInteractionType:y,disabled:!x,closeOnFocusOut:!f,initialFocus:N,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:L})},"DialogPopup"));var Vn=T(A(),1);var bo=T(se(),1);var Ln=Vn.forwardRef(i(function(e,o){let{keepMounted:r=!1,...a}=e,s=ae(),l=s.useState("mounted"),c=s.useState("modal"),p=s.useState("open");return l||r?(0,bo.jsx)(Ar.Provider,{value:r,children:(0,bo.jsxs)(ko,{ref:o,...a,children:[l&&c===!0&&(0,bo.jsx)(jo,{ref:s.context.internalBackdropRef,inert:Bo(!p)}),e.children]})}):null},"DialogPortal"));var Kn=T(A(),1);var Vr=T(A(),1);function Hn({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),a=t.useState("disablePointerDismissal"),s=t.useState("modal"),l=t.useState("popupElement"),c=t.useState("floatingRootContext"),[p,d]=Vr.useState(0),[u,f]=Vr.useState(0),h=p===0,g=zt(c,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!t.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0)return!1;if("touches"in m){if(m.type==="touchend"){if(m.changedTouches.length!==1||m.touches.length!==0)return!1}else if(m.touches.length!==1)return!1}let x=fa(m);if(h&&!a){if(s){let v=t.context.internalBackdropRef.current,b=t.context.backdropRef.current;return v||b?v===x||b===x||po(x,l)&&!x?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:h});return Va(r&&s===!0,l),t.useContextCallback("onNestedDialogOpen",(m,x)=>{d(m),f(x)}),xe(()=>(e?.onNestedDialogOpen&&(r?e.onNestedDialogOpen(p+1,u+(o?1:0)):e.onNestedDialogOpen(0,0)),()=>{e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(0,0)}),[o,r,p,u,e]),Yt(t,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}i(Hn,"DialogInteractions");var sr=T(A(),1);var Bn={...Xt,modal:i(t=>t.modal,"modal"),nested:i(t=>t.nested,"nested"),nestedOpenDialogCount:i(t=>t.nestedOpenDialogCount,"nestedOpenDialogCount"),nestedOpenDrawerCount:i(t=>t.nestedOpenDrawerCount,"nestedOpenDrawerCount"),disablePointerDismissal:i(t=>t.disablePointerDismissal,"disablePointerDismissal"),openMethod:i(t=>t.openMethod,"openMethod"),descriptionElementId:i(t=>t.descriptionElementId,"descriptionElementId"),titleElementId:i(t=>t.titleElementId,"titleElementId"),viewportElement:i(t=>t.viewportElement,"viewportElement"),role:i(t=>t.role,"role")},ir=class extends Ut{static{i(this,"DialogStore")}constructor(e,o,r){let a=new Re,s=jn(e,a,o,r);super(s,zn(a),Bn)}setOpen=i((e,o)=>{o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,o),!o.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(e,o),this.update(Io(this.state,e,o.trigger)))},"setOpen")};function Fn(){let t=new Re;return new to(Object.freeze(jn(void 0,t)),Object.freeze(zn(t)),Bn)}i(Fn,"createNullDialogStore");function jn(t,e,o,r=!1){return{...Jt(e,o,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}i(jn,"createInitialState");function zn(t){return{popupRef:sr.createRef(),backdropRef:sr.createRef(),internalBackdropRef:sr.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:t,onOpenChange:void 0,onOpenChangeComplete:void 0}}i(zn,"createInitialContext");var xo=T(se(),1);function Un(t,e){let{children:o,open:r,defaultOpen:a=!1,onOpenChange:s,onOpenChangeComplete:l,disablePointerDismissal:c=!1,modal:p=!0,actionsRef:d,handle:u,triggerId:f,defaultTriggerId:h=null}=e,g=t==="drawer",m=t==="alert-dialog",x=m?!0:p,v=m||c,b=m?"alertdialog":"dialog",P=ae(!0),y=P!=null,C={modal:x,disablePointerDismissal:v,nested:y,role:b},R=qt((M,L)=>new ir({open:a,openProp:r,activeTriggerId:h,triggerIdProp:f,...C},M,L),!0);R.useControlledProp("openProp",r),R.useControlledProp("triggerIdProp",f),R.useSyncedValues(C),R.useContextCallback("onOpenChange",s),R.useContextCallback("onOpenChangeComplete",l);let w=R.useState("open"),S=R.useState("mounted"),N=R.useState("payload");_o(R,w),Gt(R);let{forceUnmount:E}=Qt(w,R);Kn.useImperativeHandle(d,()=>({unmount:E,close:i(()=>R.setOpen(!1,re(K.imperativeAction)),"close")}),[E,R]);let k=w||S;return(0,xo.jsxs)(_r.Provider,{value:R,children:[u&&(0,xo.jsx)(Wt,{handle:u,store:R}),k&&(0,xo.jsx)(Hn,{store:R,parentContext:P?.context,isDrawer:g}),typeof o=="function"?o({payload:N}):o]})}i(Un,"useRenderDialogRoot");var Zn=Ft(i(function(e){return Un("dialog",e)},"DialogRoot"));var qn=T(A(),1);var Wn=qn.forwardRef(i(function(e,o){let{render:r,className:a,style:s,children:l,...c}=e,p=ar(),d=ae(),u=d.useState("open"),f=d.useState("nested"),h=d.useState("transitionStatus"),g=d.useState("nestedOpenDialogCount"),m=d.useState("mounted"),x=d.useStateSetter("viewportElement"),v=g>0;return B("div",e,{enabled:p||m,state:{open:u,nested:f,transitionStatus:h,nestedDialogOpen:v},ref:[o,x],stateAttributesMapping:nr,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},c]})},"DialogViewport"));var $n=T(A(),1);var Gn=$n.forwardRef(i(function(e,o){let{render:r,className:a,style:s,id:l,...c}=e,p=ae(),d=fe(l);return p.useSyncedValueWithCleanup("titleElementId",d),B("h2",e,{ref:o,props:[{id:d},c]})},"DialogTitle"));var Qn=T(A(),1);var Yn=jt(i(function(e,o){let{render:r,className:a,style:s,disabled:l=!1,nativeButton:c=!0,id:p,payload:d,handle:u,...f}=e,h=ae(!0),m=eo(u)??h;if(!m)throw new Error(Y(79));let x=fe(p),v=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",x),P=m.useState("triggerPopupId",x),y=Qn.useRef(null),{registerTrigger:C,isMountedByThisTrigger:R}=$t(x,y,m,{payload:d}),{getButtonProps:w,buttonRef:S}=Ee({disabled:l,native:c}),N=Do(v),E=Ho(()=>m.select("open"),L=>{m.set("openMethod",L)}),k={disabled:l,open:b},M=m.useState("triggerProps",R);return B("button",e,{state:k,ref:[S,o,C,y],props:[N.reference,M,E,{[wo]:"",id:x,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":P},f,w],stateAttributesMapping:Lt})},"DialogTrigger"));var yo=class extends Kt{static{i(this,"DialogHandle")}constructor(){super(Fn(),"Dialog",!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let o=this.attachedStore;o!==null&&(o.set("payload",e),o.setOpen(!0,re(K.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Jn(){return new yo}i(Jn,"createDialogHandle");var ye={};xr(ye,{Arrow:()=>ys,Handle:()=>Co,Popup:()=>bs,Portal:()=>fs,Positioner:()=>hs,Provider:()=>Cs,Root:()=>as,Trigger:()=>ls,Viewport:()=>Ss,createHandle:()=>Ts});var no=T(A(),1);var lr=T(A(),1);var Lr=lr.createContext(void 0);function ve(t){let e=lr.useContext(Lr);if(e===void 0&&!t)throw new Error(Y(72));return e}i(ve,"useTooltipRootContext");var Xn=T(A(),1);var es={...Xt,disabled:i(t=>t.disabled,"disabled"),instantType:i(t=>t.instantType,"instantType"),isInstantPhase:i(t=>t.isInstantPhase,"isInstantPhase"),trackCursorAxis:i(t=>t.trackCursorAxis,"trackCursorAxis"),disableHoverablePopup:i(t=>t.disableHoverablePopup,"disableHoverablePopup"),lastOpenChangeReason:i(t=>t.openChangeReason,"lastOpenChangeReason"),closeOnClick:i(t=>t.closeOnClick,"closeOnClick"),closeDelay:i(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:i(t=>t.adaptiveOrigin,"adaptiveOrigin")},cr=class extends Ut{static{i(this,"TooltipStore")}constructor(e,o,r){let a=new Re;super(os(e,a,o,r),rs(a),es)}setOpen=i((e,o)=>{Ma(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,re(K.triggerPress,e))}};function ts(){let t=new Re,e=new to(Object.freeze(os(void 0,t)),Object.freeze(rs(t)),es);return Object.assign(e,{setOpen:co,cancelPendingOpen:co})}i(ts,"createNullTooltipStore");function os(t,e,o,r=!1){return{...Jt(e,o,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...t}}i(os,"createInitialState");function rs(t){return{popupRef:Xn.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}i(rs,"createInitialContext");var Po=T(se(),1);var as=Ft(i(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:a,disableHoverablePopup:s=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:p,onOpenChangeComplete:d,handle:u,triggerId:f,defaultTriggerId:h=null,children:g}=e,m=qt((M,L)=>new cr({open:r,openProp:a,activeTriggerId:h,triggerIdProp:f},M,L));m.useControlledProp("openProp",a),m.useControlledProp("triggerIdProp",f),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",d);let x=m.useState("open"),v=!o&&x,b=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:s,disabled:o}),Gt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:C,transitionStatus:R}=Qt(v,m),w=m.useState("isInstantPhase"),S=m.useState("instantType"),N=m.useState("lastOpenChangeReason"),E=no.useRef(null);xe(()=>{x&&o&&m.setOpen(!1,re(K.disabled))},[x,o,m]),xe(()=>{R==="ending"&&N===K.none||R!=="ending"&&w?(S!=="delay"&&(E.current=S),m.set("instantType","delay")):E.current!==null&&(m.set("instantType",E.current),E.current=null)},[R,w,N,S,m]),xe(()=>{v&&b==null&&m.set("payload",void 0)},[m,b,v]),no.useImperativeHandle(c,()=>({unmount:C,close:i(()=>m.setOpen(!1,re(K.imperativeAction)),"close")}),[C,m]);let k=v||P||!o&&l!=="none";return(0,Po.jsxs)(Lr.Provider,{value:m,children:[u&&(0,Po.jsx)(Wt,{handle:u,store:m}),k&&(0,Po.jsx)(oi,{store:m,disabled:o,trackCursorAxis:l}),typeof g=="function"?g({payload:y}):g]})},"TooltipRoot"));function oi({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),a=zt(r,{enabled:!e,referencePress:i(()=>t.select("closeOnClick"),"referencePress")}),s=Oa(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=no.useMemo(()=>lo(s.reference,a.reference),[s.reference,a.reference]);return Yt(t,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:a.floating??da}),null}i(oi,"TooltipInteractions");var pr=T(A(),1);var dr=T(A(),1);var Hr=dr.createContext(void 0);function ns(){return dr.useContext(Hr)}i(ns,"useTooltipProviderContext");var is="data-base-ui-tooltip-trigger";function ss(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let a=o[r];if(No(a))return a}}let e=t.target;return No(e)?e:null}i(ss,"getTargetElement");function ri(t){let e=t;for(;e;){let o=e.closest(`[${is}]`);if(o)return o;let r=e.getRootNode();e="host"in r&&No(r.host)?r.host:null}return null}i(ri,"closestEnabledTooltipTrigger");var ls=jt(i(function(e,o){let{render:r,className:a,style:s,handle:l,payload:c,disabled:p,delay:d,closeOnClick:u=!0,closeDelay:f,id:h,...g}=e,m=ve(!0),v=eo(l)??m;if(!v)throw new Error(Y(82));let b=fe(h),P=v.useState("isTriggerActive",b),y=v.useState("isOpenedByTrigger",b),C=v.useState("floatingRootContext"),R=pr.useRef(null),w=f??0,{registerTrigger:S,isMountedByThisTrigger:N}=$t(b,R,v,{payload:c,closeOnClick:u,closeDelay:w}),E=ns(),{activeIdRef:k,delayRef:M,isInstantPhase:L,hasProvider:_}=Sa(C,{open:y}),j=_a(C);v.useSyncedValue("isInstantPhase",L);let z=v.useState("disabled"),H=p??z,F=Ta(H),Z=v.useState("trackCursorAxis"),D=v.useState("disableHoverablePopup"),V=pr.useRef(!1),W=ya(),G=pr.useRef(void 0);function ee(){return _&&k.current!=null?0:d??E??600}i(ee,"getOpenDelay");function ne(q){let ie=R.current;if(!ie||!q)return!1;let me=ri(q);return me!==null&&me!==ie&&po(ie,me)}i(ne,"isEnabledNestedTriggerTarget");function te(q){let ie=ne(q);return V.current=ie,ie&&(j.openChangeTimeout.clear(),j.restTimeout.clear(),j.restTimeoutPending=!1,W.clear()),ie}i(te,"detectNestedTriggerHover");let X=Vo(C,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!D&&Z!=="both"?Lo():null,restMs:ee,delay(){return f==null&&_?{close:Ca(M.current,"close")}:{close:w}},triggerElementRef:R,isActiveTrigger:P,isClosing:i(()=>v.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!V.current}}),$=Ia(C,{enabled:!H}).reference,ce=i(q=>{let ie=V.current,me=ss(q),Ie=te(me),Te=R.current,Ne=Te&&me&&po(Te,me);if(Ie&&v.select("open")&&v.select("lastOpenChangeReason")===K.triggerHover){v.setOpen(!1,re(K.triggerHover,q));return}if(ie&&!Ie&&Ne&&!F.current&&!v.select("open")&&Te&&ba(G.current)){let Pe=i(()=>{!V.current&&!F.current&&!v.select("open")&&v.setOpen(!0,re(K.triggerHover,q,Te))},"open"),Ce=ee();Ce===0?(W.clear(),Pe()):W.start(Ce,Pe)}},"handleNestedTriggerHover"),de=v.useState("triggerProps",N);return B("button",e,{state:{open:y},ref:[o,S,R],props:[X,$,N||Z!=="none"?de:void 0,{onMouseOver(q){ce(q.nativeEvent)},onFocus(q){ne(ss(q.nativeEvent))&&q.preventBaseUIHandler()},onMouseLeave(){V.current=!1,W.clear(),G.current=void 0},onPointerEnter(q){G.current=q.pointerType},onPointerDown(q){G.current=q.pointerType,v.set("closeOnClick",u),u&&!v.select("open")&&v.cancelPendingOpen(q.nativeEvent)},onClick(q){u&&!v.select("open")&&v.cancelPendingOpen(q.nativeEvent)},id:b,[va]:H?"":void 0,[is]:H?void 0:""},g],stateAttributesMapping:Lt})},"TooltipTrigger"));var ms=T(A(),1);var ur=T(A(),1);var Br=ur.createContext(void 0);function cs(){let t=ur.useContext(Br);if(t===void 0)throw new Error(Y(70));return t}i(cs,"useTooltipPortalContext");var mr=T(A(),1),ds=T(Qr(),1);var ps=T(se(),1);var us=mr.forwardRef(i(function(e,o){let{children:r,container:a,className:s,render:l,style:c,...p}=e,{node:d,subtree:u}=Na({container:a,ref:o,componentProps:e,elementProps:p});return!u&&!d?null:(0,ps.jsxs)(mr.Fragment,{children:[u,d&&ds.createPortal(r,d)]})},"FloatingPortalLite"));var Fr=T(se(),1);var fs=ms.forwardRef(i(function(e,o){let{keepMounted:r=!1,...a}=e;return ve().useState("mounted")||r?(0,Fr.jsx)(Br.Provider,{value:r,children:(0,Fr.jsx)(us,{ref:o,...a})}):null},"TooltipPortal"));var gr=T(A(),1);var fr=T(A(),1);var jr=fr.createContext(void 0);function so(){let t=fr.useContext(jr);if(t===void 0)throw new Error(Y(71));return t}i(so,"useTooltipPositionerContext");var gs=T(se(),1);var hs=gr.forwardRef(i(function(e,o){let{render:r,className:a,anchor:s,positionMethod:l="absolute",side:c="top",align:p="center",sideOffset:d=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:h=5,arrowPadding:g=5,sticky:m=!1,disableAnchorTracking:x=!1,collisionAvoidance:v=Eo,style:b,...P}=e,y=ve(),C=cs(),R=y.useState("open"),w=y.useState("mounted"),S=y.useState("trackCursorAxis"),N=y.useState("disableHoverablePopup"),E=y.useState("floatingRootContext"),k=y.useState("instantType"),M=y.useState("transitionStatus"),L=y.useState("adaptiveOrigin"),_=Fo({anchor:s,positionMethod:l,floatingRootContext:E,mounted:w,side:c,sideOffset:d,align:p,alignOffset:u,collisionBoundary:f,collisionPadding:h,sticky:m,arrowPadding:g,disableAnchorTracking:x,keepMounted:C,collisionAvoidance:v,adaptiveOrigin:L}),j=gr.useMemo(()=>({open:R,side:_.side,align:_.align,anchorHidden:_.anchorHidden,instant:S!=="none"?"tracking-cursor":k}),[R,_.side,_.align,_.anchorHidden,S,k]),z=Ko(e,j,{styles:_.positionerStyles,transitionStatus:M,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!w,inert:!R||S==="both"||N});return(0,gs.jsx)(jr.Provider,{value:_,children:z})},"TooltipPositioner"));var vs=T(A(),1);var bs=vs.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=ve(),{side:p,align:d}=so(),u=c.useState("open"),f=c.useState("instantType"),h=c.useState("transitionStatus"),g=c.useState("popupProps"),m=c.useState("floatingRootContext"),x=c.useState("disabled"),v=c.useState("closeDelay");Bt({open:u,ref:c.context.popupRef,onComplete(){u&&c.context.onOpenChangeComplete?.(!0)}}),Ao(m,{enabled:!x,closeDelay:v});let b=c.useStateSetter("popupElement");return B("div",e,{state:{open:u,side:p,align:d,instant:f,transitionStatus:h},ref:[o,c.context.popupRef,b],props:[Zt,g,zo(h),l],stateAttributesMapping:we})},"TooltipPopup"));var xs=T(A(),1);var ys=xs.forwardRef(i(function(e,o){let{render:r,className:a,style:s,...l}=e,c=ve(),{arrowRef:p,side:d,align:u,arrowUncentered:f,arrowStyles:h}=so(),g=c.useState("open"),m=c.useState("instantType");return B("div",e,{state:{open:g,side:d,align:u,uncentered:f,instant:m},ref:[o,p],props:[{style:h,"aria-hidden":!0},l],stateAttributesMapping:Ht})},"TooltipArrow"));var Ps=T(A(),1);var zr=T(se(),1);var Cs=i(function(e){let{delay:o,closeDelay:r,timeout:a=400}=e,s=Ps.useMemo(()=>({open:o,close:r}),[o,r]);return(0,zr.jsx)(Hr.Provider,{value:o,children:(0,zr.jsx)(Ra,{delay:s,timeoutMs:a,children:e.children})})},"TooltipProvider");var Rs=T(A(),1);var Ss=Rs.forwardRef(i(function(e,o){let{render:r,className:a,style:s,children:l,...c}=e,p=ve(),d=so(),u=p.useState("instantType"),{children:f,state:h}=qo({store:p,side:d.side,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:Zo})},"TooltipViewport"));var Co=class extends Kt{static{i(this,"TooltipHandle")}constructor(){super(ts(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ts(){return new Co}i(Ts,"createTooltipHandle");var Ns=T(Pr(),1);var ws=T(se(),1);var ai=i((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?la:ia(e,o),"I"),Es=i(t=>{let e=(0,Ns.c)(7),{catalogs:o,children:r,i18n:a,locale:s}=t,l;e[0]!==o||e[1]!==a||e[2]!==s?(l=ai(a,s,o),e[0]=o,e[1]=a,e[2]=s,e[3]=l):l=e[3];let c=l,p;return e[4]!==r||e[5]!==c?(p=(0,ws.jsx)(ca,{value:c,children:r}),e[4]=r,e[5]=c,e[6]=p):p=e[6],p},"S");var Ur=T(Pr(),1);var Me=T(A(),1);var oe=T(se(),1);var Kr="lunora:command-palette",ks=i(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(Kr))},"ce"),ni=i(t=>{let e=(0,Ur.c)(18),{active:o,index:r,item:a,onActivate:s,onSelect:l}=t,c;e[0]!==a||e[1]!==l?(c=i(()=>{l(a)},"g"),e[0]=a,e[1]=l,e[2]=c):c=e[2];let p=c,d;e[3]!==r||e[4]!==s?(d=i(()=>{s(r)},"x"),e[3]=r,e[4]=s,e[5]=d):d=e[5];let u=d,f=o?"bg-accent text-accent-foreground":"text-foreground",h;e[6]!==f?(h=U("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",f),e[6]=f,e[7]=h):h=e[7];let g;e[8]!==a.label?(g=(0,oe.jsx)("span",{children:a.label}),e[8]=a.label,e[9]=g):g=e[9];let m;e[10]!==a.group?(m=(0,oe.jsx)("span",{className:"text-xs text-muted-foreground",children:a.group}),e[10]=a.group,e[11]=m):m=e[11];let x;return e[12]!==p||e[13]!==u||e[14]!==h||e[15]!==g||e[16]!==m?(x=(0,oe.jsx)("li",{children:(0,oe.jsxs)("button",{className:h,onClick:p,onMouseEnter:u,type:"button",children:[g,m]})}),e[12]=p,e[13]=u,e[14]=h,e[15]=g,e[16]=m,e[17]=x):x=e[17],x},"Y"),si=i((t,e)=>{let o=e.trim().toLowerCase();return o===""?t:t.filter(r=>r.label.toLowerCase().includes(o)||r.group.toLowerCase().includes(o))},"Z"),Os=i(t=>{let e=(0,Ur.c)(40),{items:o}=t,r=ge(),a=io(),{palette:s}=$o(),[l,c]=(0,Me.useState)(!1),[p,d]=(0,Me.useState)(""),[u,f]=(0,Me.useState)(0),h=(0,Me.useRef)(null),g,m;e[0]!==s?(g=i(()=>{let D=i(W=>{if(!(W.metaKey||W.ctrlKey)||W.key.toLowerCase()!==s)return;let{target:G}=W;G instanceof HTMLElement&&(G.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(G.tagName))||(W.preventDefault(),c(!0))},"t"),V=i(()=>{c(!0)},"l");return globalThis.addEventListener("keydown",D),globalThis.addEventListener(Kr,V),()=>{globalThis.removeEventListener("keydown",D),globalThis.removeEventListener(Kr,V)}},"s"),m=[s],e[0]=s,e[1]=g,e[2]=m):(g=e[1],m=e[2]),(0,Me.useEffect)(g,m);let x;e[3]!==o||e[4]!==p?(x=si(o,p),e[3]=o,e[4]=p,e[5]=x):x=e[5];let v=x,b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=i(D=>{c(D),D||(d(""),f(0))},"I"),e[6]=b):b=e[6];let P=b,y;e[7]!==a?(y=i(D=>{if(P(!1),D.run!==void 0){D.run();return}D.to!==void 0&&oo(a({to:D.to}))},"K"),e[7]=a,e[8]=y):y=e[8];let C=y,R;e[9]===Symbol.for("react.memo_cache_sentinel")?(R=i(D=>{d(D.target.value),f(0)},"P"),e[9]=R):R=e[9];let w=R,S;e[10]!==u||e[11]!==v||e[12]!==C?(S=i(D=>{e:switch(D.key){case"ArrowDown":{D.preventDefault(),f(V=>v.length===0?0:(V+1)%v.length);break e}case"ArrowUp":{D.preventDefault(),f(V=>v.length===0?0:(V-1+v.length)%v.length);break e}case"Enter":{D.preventDefault();let V=v[u];V!==void 0&&C(V);break e}}},"z"),e[10]=u,e[11]=v,e[12]=C,e[13]=S):S=e[13];let N=S,E;e[14]===Symbol.for("react.memo_cache_sentinel")?(E=(0,oe.jsx)(le.Backdrop,{className:"fixed inset-0 z-50 bg-black/40 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),e[14]=E):E=e[14];let k;e[15]!==r?(k=r("Command palette"),e[15]=r,e[16]=k):k=e[16];let M;e[17]!==k?(M=(0,oe.jsx)(le.Title,{className:"sr-only",children:k}),e[17]=k,e[18]=M):M=e[18];let L;e[19]===Symbol.for("react.memo_cache_sentinel")?(L=(0,oe.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,oe.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,oe.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[19]=L):L=e[19];let _;e[20]!==r?(_=r("Search\u2026"),e[20]=r,e[21]=_):_=e[21];let j;e[22]!==N||e[23]!==p||e[24]!==_?(j=(0,oe.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[L,(0,oe.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:w,onKeyDown:N,placeholder:_,ref:h,type:"text",value:p})]}),e[22]=N,e[23]=p,e[24]=_,e[25]=j):j=e[25];let z;e[26]!==u||e[27]!==v||e[28]!==C||e[29]!==r?(z=v.length===0?(0,oe.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):v.map((D,V)=>(0,oe.jsx)(ni,{active:V===u,index:V,item:D,onActivate:f,onSelect:C},D.to??`${D.group}:${D.label}`)),e[26]=u,e[27]=v,e[28]=C,e[29]=r,e[30]=z):z=e[30];let H;e[31]!==z?(H=(0,oe.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:z}),e[31]=z,e[32]=H):H=e[32];let F;e[33]!==M||e[34]!==j||e[35]!==H?(F=(0,oe.jsxs)(le.Portal,{children:[E,(0,oe.jsxs)(le.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[M,j,H]})]}),e[33]=M,e[34]=j,e[35]=H,e[36]=F):F=e[36];let Z;return e[37]!==l||e[38]!==F?(Z=(0,oe.jsx)(le.Root,{onOpenChange:P,open:l,children:F}),e[37]=l,e[38]=F,e[39]=Z):Z=e[39],Z},"de");var Vs="(prefers-color-scheme: dark)",Ls=i(()=>{try{return globalThis.localStorage}catch{return}},"Qt"),ii=i(t=>t==="system"||t==="light"||t==="dark","Hs"),Hs=i(()=>globalThis.matchMedia,"Yt"),Bs="lunora-studio-theme",Zr=["system","light","dark"],li=i((t="system")=>{try{let e=Ls()?.getItem(Bs);return ii(e)?e:t}catch{return t}},"Vs"),Ds=i(t=>{let e=Ls();if(e!==void 0)try{e.setItem(Bs,t)}catch{}},"$t"),ci=i(()=>{try{return Hs()?.(Vs).matches?"dark":"light"}catch{return"light"}},"Bs"),di=i((t,e)=>t==="system"?e:t,"zs"),pi=i(t=>{let e;try{e=Hs()?.(Vs)}catch{e=void 0}if(e===void 0)return()=>{};let o=i(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"Ds"),$r=(0,O.createContext)(null),ui=i(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,O.useState)(()=>li(e)),[a,s]=(0,O.useState)(()=>ci());(0,O.useEffect)(()=>pi(s),[]);let l=i(p=>{Ds(p),r(p)},"i"),c={cycleTheme:i(()=>{r(p=>{let d=Zr[(Zr.indexOf(p)+1)%Zr.length]??p;return Ds(d),d})},"cycleTheme"),resolvedTheme:di(o,a),setTheme:l,systemTheme:a,theme:o};return(0,n.jsx)($r,{value:c,children:t})},"Os"),mi=i(t=>{let e=(0,I.c)(3),{children:o}=t,r=(0,O.use)($r),a;return e[0]!==o||e[1]!==r?(a=r===null?(0,n.jsx)(ui,{children:o}):o,e[0]=o,e[1]=r,e[2]=a):a=e[2],a},"Zs"),fi=i(()=>{let t=(0,O.use)($r);if(t===null)throw new yr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"qs");function Qg({delay:t=0,...e}){return(0,n.jsx)(ye.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}i(Qg,"$r");function gi(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(ye.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}i(gi,"Fs");function hi(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(ye.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(hi,"Ws");function vi({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:a=0,children:s,...l}){return(0,n.jsx)(ye.Portal,{children:(0,n.jsx)(ye.Positioner,{align:r,alignOffset:a,side:e,sideOffset:o,className:"isolate z-50",children:(0,n.jsxs)(ye.Popup,{"data-slot":"tooltip-content",className:U("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-md data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...l,children:[s,(0,n.jsx)(ye.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-md bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}i(vi,"Us");var bi=i(t=>{let e=(0,I.c)(5),{className:o}=t,r;e[0]!==o?(r=U("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=a):a=e[2];let s;return e[3]!==r?(s=(0,n.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:a}),e[3]=r,e[4]=s):s=e[4],s},"js"),Fs="lunora.studio.rulesBannerDismissed",xi=i(()=>{try{return globalThis.localStorage.getItem(Fs)==="1"}catch{return!1}},"Gs"),yi=i(()=>{try{globalThis.localStorage.setItem(Fs,"1")}catch{}},"Ks"),Pi=i(()=>{let t=(0,I.c)(18),e=ge(),[o,r]=(0,O.useState)(Ci),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=i(()=>{r(!0),yi()},"r"),t[0]=a):a=t[0];let s=a;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=l):l=t[1];let c;t[2]!==e?(c=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=c):c=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let d;t[5]!==e?(d=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=d):d=t[6];let u;t[7]!==c||t[8]!==d?(u=(0,n.jsxs)("span",{children:[c," ",p," ",d]}),t[7]=c,t[8]=d,t[9]=u):u=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=h):h=t[12];let g;t[13]!==f?(g=(0,n.jsx)("button",{"aria-label":f,className:"ms-auto flex size-5 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent","data-testid":"dash-app-rules-banner-dismiss",onClick:s,type:"button",children:h}),t[13]=f,t[14]=g):g=t[14];let m;return t[15]!==u||t[16]!==g?(m=(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[l,u,g]}),t[15]=u,t[16]=g,t[17]=m):m=t[17],m},"Qs");function Ci(){return xi()}i(Ci,"Ys");function js(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(De.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}i(js,"es");function zs(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(De.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(zs,"ts");function Ks({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:a="bottom",sideOffset:s=6,...l}){return(0,n.jsx)(De.Portal,{keepMounted:r,children:(0,n.jsx)(De.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:a,sideOffset:s,children:(0,n.jsx)(De.Popup,{className:U("z-50 w-72 origin-(--transform-origin) rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o),"data-slot":"popover-content",...l})})})}i(Ks,"ss");var qr=768;function Ri(){let t=(0,I.c)(2),[e,o]=(0,O.useState)(void 0),r,a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=i(()=>{let s=globalThis.matchMedia(`(max-width: ${qr-1}px)`),l=i(()=>{o(globalThis.innerWidth<qr)},"i");return s.addEventListener("change",l),o(globalThis.innerWidth<qr),()=>{s.removeEventListener("change",l)}},"a"),a=[],t[0]=r,t[1]=a):(r=t[0],a=t[1]),(0,O.useEffect)(r,a),!!e}i(Ri,"Js");function Si(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(le.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Si,"Xs");function Ti(t){let e=(0,I.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,n.jsx)(le.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ti,"ea");function Ni(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)(le.Backdrop,{"data-slot":"sheet-overlay",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ni,"ta");function wi({className:t,children:e,side:o="right",showCloseButton:r=!0,...a}){return(0,n.jsxs)(Ti,{children:[(0,n.jsx)(Ni,{}),(0,n.jsxs)(le.Popup,{"data-slot":"sheet-content","data-side":o,className:U("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...a,children:[e,r&&(0,n.jsxs)(le.Close,{"data-slot":"sheet-close",render:(0,n.jsx)(wr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,n.jsx)(Nr,{icon:Ba,strokeWidth:2}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}i(wi,"sa");function Ei(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sheet-header",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ei,"aa");function ki(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("text-sm font-medium text-foreground",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)(le.Title,{"data-slot":"sheet-title",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(ki,"oa");function Oi(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)(le.Description,{"data-slot":"sheet-description",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Oi,"ra");var Di="sidebar_state",Mi=3600*24*7,Ii="16rem",_i="18rem",Ai="3rem",Vi="b",Us=be.createContext(null);function hr(){let t=be.useContext(Us);if(!t)throw new yr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}i(hr,"kt");function Li({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:a,children:s,...l}){let c=Ri(),[p,d]=be.useState(!1),[u,f]=be.useState(t),h=e??u,g=i(b=>{let P=typeof b=="function"?b(h):b;o?o(P):f(P),document.cookie=`${Di}=${P}; path=/; max-age=${Mi}`},"f"),m=i(()=>c?d(b=>!b):g(b=>!b),"g"),x=be.useEffectEvent(()=>{m()});be.useEffect(()=>{let b=i(P=>{P.key===Vi&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),x())},"v");return globalThis.addEventListener("keydown",b),()=>globalThis.removeEventListener("keydown",b)},[]);let v={state:h?"expanded":"collapsed",open:h,setOpen:g,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:m};return(0,n.jsx)(Us.Provider,{value:v,children:(0,n.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Ii,"--sidebar-width-icon":Ai,...a},className:U("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:s})})}i(Li,"fa");function Hi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:a,dir:s,...l}){let{isMobile:c,state:p,openMobile:d,setOpenMobile:u}=hr();return o==="none"?(0,n.jsx)("div",{"data-slot":"sidebar",className:U("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:a}):c?(0,n.jsx)(Si,{open:d,onOpenChange:u,...l,children:(0,n.jsxs)(wi,{dir:s,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":_i},side:t,children:[(0,n.jsxs)(Ei,{className:"sr-only",children:[(0,n.jsx)(ki,{children:"Sidebar"}),(0,n.jsx)(Oi,{children:"Displays the mobile sidebar."})]}),(0,n.jsx)("div",{className:"flex h-full w-full flex-col",children:a})]})}):(0,n.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,n.jsx)("div",{"data-slot":"sidebar-gap",className:U("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,n.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:U("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...l,children:(0,n.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:a})})]})}i(Hi,"ma");function Bi(t){let e=(0,I.c)(15),o,r,a;e[0]!==t?({className:o,onClick:r,...a}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=a):(o=e[1],r=e[2],a=e[3]);let{toggleSidebar:s}=hr(),l;e[4]!==o?(l=U(o),e[4]=o,e[5]=l):l=e[5];let c;e[6]!==r||e[7]!==s?(c=i(f=>{r?.(f),s()},"l"),e[6]=r,e[7]=s,e[8]=c):c=e[8];let p,d;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)(Nr,{icon:Fa,strokeWidth:2,className:"rtl:rotate-180"}),d=(0,n.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=d):(p=e[9],d=e[10]);let u;return e[11]!==a||e[12]!==l||e[13]!==c?(u=(0,n.jsxs)(wr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:c,...a,children:[p,d]}),e[11]=a,e[12]=l,e[13]=c,e[14]=u):u=e[14],u}i(Bi,"ha");function Fi(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("main",{"data-slot":"sidebar-inset",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Fi,"pa");function ji(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(ji,"ga");function zi(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(zi,"ba");function Ki(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ki,"va");function Ui(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ui,"ya");function Zi(t){let e=(0,I.c)(10),o,r,a,s;if(e[0]!==t){let{className:p,render:d,...u}=t;o=d,s=Rr,r="div",a=lo({className:U("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=a,e[4]=s}else o=e[1],r=e[2],a=e[3],s=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=l):l=e[5];let c;return e[6]!==o||e[7]!==r||e[8]!==a?(c={defaultTagName:r,props:a,render:o,state:l},e[6]=o,e[7]=r,e[8]=a,e[9]=c):c=e[9],s(c)}i(Zi,"xa");function qi(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("w-full text-xs",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(qi,"wa");function Ms(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Ms,"Ht");function Is(t){let e=(0,I.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let a;e[3]!==o?(a=U("group/menu-item relative",o),e[3]=o,e[4]=a):a=e[4];let s;return e[5]!==r||e[6]!==a?(s=(0,n.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...r}),e[5]=r,e[6]=a,e[7]=s):s=e[7],s}i(Is,"Vt");var Wi=pa("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-none p-2 text-start text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Zs({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:a,className:s,...l}){let{isMobile:c,state:p}=hr(),d=Rr({defaultTagName:"button",props:lo({className:U(Wi({variant:o,size:r}),s)},l),render:a?(0,n.jsx)(hi,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return a?(typeof a=="string"&&(a={children:a}),(0,n.jsxs)(gi,{children:[d,(0,n.jsx)(vi,{side:"right",align:"center",hidden:p!=="collapsed"||c,...a})]})):d}i(Zs,"os");var $i=i(t=>t.replace("__lunora_admin__:",""),"Ma"),Gi=i(()=>(0,O.useSyncExternalStore)(mo.subscribe,mo.getSnapshot,mo.getSnapshot),"Na"),Qi=i(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","Sa"),Yi=i(t=>{let e=(0,I.c)(56),{entry:o,focused:r}=t,a=ge(),s;e[0]!==r?(s=i(L=>{L!==null&&r&&L.scrollIntoView({block:"nearest"})},"n"),e[0]=r,e[1]=s):s=e[1];let l=s,c;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(c=i(()=>{za(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"l"),e[2]=o.functionPath,e[3]=o.shardKey,e[4]=o.summary,e[5]=c):c=e[5];let p=c,d=r&&"bg-accent ring-1 ring-inset ring-primary/40",u;e[6]!==d?(u=U("border-b border-border/60 last:border-b-0",d),e[6]=d,e[7]=u):u=e[7];let f;e[8]!==o.status?(f=Qi(o.status),e[8]=o.status,e[9]=f):f=e[9];let h=o.status==="pending"?"\u2026":o.status,g;e[10]!==f||e[11]!==h?(g=(0,n.jsx)(Vt,{className:"mt-px shrink-0",variant:f,children:h}),e[10]=f,e[11]=h,e[12]=g):g=e[12];let m;e[13]!==o.functionPath?(m=$i(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let x;e[15]!==m?(x=(0,n.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=x):x=e[16];let v;e[17]!==o.kind||e[18]!==a?(v=o.kind==="subscription"&&(0,n.jsx)(Vt,{className:"shrink-0",variant:"outline",children:a("live")}),e[17]=o.kind,e[18]=a,e[19]=v):v=e[19];let b;e[20]!==o.summary?(b=o.summary!==""&&(0,n.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=b):b=e[21];let P;e[22]!==o.shardKey?(P=o.shardKey!==""&&(0,n.jsx)("span",{className:"font-mono",children:o.shardKey}),e[22]=o.shardKey,e[23]=P):P=e[23];let y;e[24]!==o.resultCount||e[25]!==a?(y=o.resultCount!==void 0&&(0,n.jsx)("span",{children:a("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=a,e[26]=y):y=e[26];let C;e[27]!==o.pushes||e[28]!==a?(C=o.pushes!==void 0&&o.pushes>0&&(0,n.jsx)("span",{children:a("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=a,e[29]=C):C=e[29];let R;e[30]!==o.durationMs?(R=o.durationMs!==void 0&&(0,n.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=R):R=e[31];let w;e[32]!==a?(w=a("Copy"),e[32]=a,e[33]=w):w=e[33];let S;e[34]!==p||e[35]!==w?(S=(0,n.jsx)("button",{"aria-label":w,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:p,type:"button",children:"\u29C9"}),e[34]=p,e[35]=w,e[36]=S):S=e[36];let N;e[37]!==P||e[38]!==y||e[39]!==C||e[40]!==R||e[41]!==S?(N=(0,n.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[P,y,C,R,S]}),e[37]=P,e[38]=y,e[39]=C,e[40]=R,e[41]=S,e[42]=N):N=e[42];let E;e[43]!==v||e[44]!==b||e[45]!==N||e[46]!==g||e[47]!==x?(E=(0,n.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[g,x,v,b,N]}),e[43]=v,e[44]=b,e[45]=N,e[46]=g,e[47]=x,e[48]=E):E=e[48];let k;e[49]!==o.error?(k=o.error!==void 0&&(0,n.jsx)("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:o.error}),e[49]=o.error,e[50]=k):k=e[50];let M;return e[51]!==l||e[52]!==E||e[53]!==k||e[54]!==u?(M=(0,n.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[E,k]}),e[51]=l,e[52]=E,e[53]=k,e[54]=u,e[55]=M):M=e[55],M},"Ca"),Ji=i(t=>{let e=(0,I.c)(62),{focusSeq:o,onClose:r,onShownChange:a,shown:s}=t,l=ge(),c=Gi(),[p,d]=(0,O.useState)(""),u;if(e[0]!==c||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==a||e[5]!==s||e[6]!==l){let f=p.trim().toLowerCase(),h=c.filter(V=>(s==="errors"?V.status==="error":!0)&&(f===""||`${V.functionPath} ${V.summary} ${V.shardKey}`.toLowerCase().includes(f))).toReversed(),g;e[8]!==c?(g=c.filter(Xi),e[8]=c,e[9]=g):g=e[9];let m=g.length,x;e[10]!==l?(x=l("Operation console"),e[10]=l,e[11]=x):x=e[11];let v;e[12]!==l?(v=l("Operation console"),e[12]=l,e[13]=v):v=e[13];let b;e[14]!==v?(b=(0,n.jsx)("span",{className:"text-xs font-medium",children:v}),e[14]=v,e[15]=b):b=e[15];let P;e[16]!==c.length||e[17]!==l?(P=l("{count} calls",{count:c.length}),e[16]=c.length,e[17]=l,e[18]=P):P=e[18];let y;e[19]!==P?(y=(0,n.jsx)(Vt,{variant:"secondary",children:P}),e[19]=P,e[20]=y):y=e[20];let C;e[21]!==m||e[22]!==l?(C=m>0&&(0,n.jsx)(Vt,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=C):C=e[23];let R=s==="errors",w=s==="errors"&&"bg-accent",S;e[24]!==w?(S=U("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",w),e[24]=w,e[25]=S):S=e[25];let N;e[26]!==a||e[27]!==s?(N=i(()=>{a(s==="errors"?"all":"errors")},"N"),e[26]=a,e[27]=s,e[28]=N):N=e[28];let E;e[29]!==l?(E=l("Errors"),e[29]=l,e[30]=E):E=e[30];let k;e[31]!==S||e[32]!==N||e[33]!==E||e[34]!==R?(k=(0,n.jsx)("button",{"aria-pressed":R,className:S,"data-testid":"oc-filter-errors",onClick:N,type:"button",children:E}),e[31]=S,e[32]=N,e[33]=E,e[34]=R,e[35]=k):k=e[35];let M;e[36]!==l?(M=l("Filter"),e[36]=l,e[37]=M):M=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=i(V=>{d(V.target.value)},"O"),e[38]=L):L=e[38];let _;e[39]!==l?(_=l("Filter"),e[39]=l,e[40]=_):_=e[40];let j;e[41]!==p||e[42]!==M||e[43]!==_?(j=(0,n.jsx)(Sr,{"aria-label":M,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:L,placeholder:_,value:p}),e[41]=p,e[42]=M,e[43]=_,e[44]=j):j=e[44];let z;e[45]!==l?(z=l("Clear"),e[45]=l,e[46]=z):z=e[46];let H;e[47]!==z?(H=(0,n.jsx)("button",{className:"ms-auto rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-clear",onClick:el,type:"button",children:z}),e[47]=z,e[48]=H):H=e[48];let F;e[49]!==l?(F=l("Hide"),e[49]=l,e[50]=F):F=e[50];let Z;e[51]!==r||e[52]!==F?(Z=(0,n.jsx)("button",{"aria-label":F,className:"rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-close",onClick:r,type:"button",children:"\u2715"}),e[51]=r,e[52]=F,e[53]=Z):Z=e[53];let D;e[54]!==k||e[55]!==j||e[56]!==H||e[57]!==Z||e[58]!==b||e[59]!==y||e[60]!==C?(D=(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,y,C,k,j,H,Z]}),e[54]=k,e[55]=j,e[56]=H,e[57]=Z,e[58]=b,e[59]=y,e[60]=C,e[61]=D):D=e[61],u=(0,n.jsxs)("section",{"aria-label":x,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[D,h.length===0?(0,n.jsx)("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):(0,n.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:h.map(V=>(0,n.jsx)(Yi,{entry:V,focused:V.seq===o},V.seq))})]}),e[0]=c,e[1]=o,e[2]=p,e[3]=r,e[4]=a,e[5]=s,e[6]=l,e[7]=u}else u=e[7];return u},"Pa");function Xi(t){return t.status==="error"}i(Xi,"_a");function el(){mo.clear()}i(el,"Ta");var tl=i(()=>{let t=(0,I.c)(334),e=ge(),o;t[0]!==e?(o=e("Health score"),t[0]=e,t[1]=o):o=t[1];let r;t[2]!==e?(r=e("Agents"),t[2]=e,t[3]=r):r=t[3];let a;t[4]!==e?(a=e("Evals"),t[4]=e,t[5]=a):a=t[5];let s;t[6]!==e?(s=e("AI usage"),t[6]=e,t[7]=s):s=t[7];let l;t[8]!==e?(l=e("Analytics"),t[8]=e,t[9]=l):l=t[9];let c;t[10]!==e?(c=e("API"),t[10]=e,t[11]=c):c=t[11];let p;t[12]!==e?(p=e("Architecture"),t[12]=e,t[13]=p):p=t[13];let d;t[14]!==e?(d=e("Audit"),t[14]=e,t[15]=d):d=t[15];let u;t[16]!==e?(u=e("Auth audit"),t[16]=e,t[17]=u):u=t[17];let f;t[18]!==e?(f=e("Configuration"),t[18]=e,t[19]=f):f=t[19];let h;t[20]!==e?(h=e("Sessions"),t[20]=e,t[21]=h):h=t[21];let g;t[22]!==e?(g=e("Containers"),t[22]=e,t[23]=g):g=t[23];let m;t[24]!==e?(m=e("Dashboards"),t[24]=e,t[25]=m):m=t[25];let x;t[26]!==e?(x=e("Data"),t[26]=e,t[27]=x):x=t[27];let v;t[28]!==e?(v=e("Deployment health"),t[28]=e,t[29]=v):v=t[29];let b;t[30]!==e?(b=e("Log drains"),t[30]=e,t[31]=b):b=t[31];let P;t[32]!==e?(P=e("Export / Import"),t[32]=e,t[33]=P):P=t[33];let y;t[34]!==e?(y=e("Fan-out"),t[34]=e,t[35]=y):y=t[35];let C;t[36]!==e?(C=e("Files"),t[36]=e,t[37]=C):C=t[37];let R;t[38]!==e?(R=e("Flags"),t[38]=e,t[39]=R):R=t[39];let w;t[40]!==e?(w=e("Functions"),t[40]=e,t[41]=w):w=t[41];let S;t[42]!==e?(S=e("Health"),t[42]=e,t[43]=S):S=t[43];let N;t[44]!==e?(N=e("Home"),t[44]=e,t[45]=N):N=t[45];let E;t[46]!==e?(E=e("Performance"),t[46]=e,t[47]=E):E=t[47];let k;t[48]!==e?(k=e("Issues"),t[48]=e,t[49]=k):k=t[49];let M;t[50]!==e?(M=e("KV"),t[50]=e,t[51]=M):M=t[51];let L;t[52]!==e?(L=e("Logs"),t[52]=e,t[53]=L):L=t[53];let _;t[54]!==e?(_=e("Metrics"),t[54]=e,t[55]=_):_=t[55];let j;t[56]!==e?(j=e("Migrations"),t[56]=e,t[57]=j):j=t[57];let z;t[58]!==e?(z=e("Notifications"),t[58]=e,t[59]=z):z=t[59];let H;t[60]!==e?(H=e("Organizations"),t[60]=e,t[61]=H):H=t[61];let F;t[62]!==e?(F=e("Time Travel"),t[62]=e,t[63]=F):F=t[63];let Z;t[64]!==e?(Z=e("Privacy requests"),t[64]=e,t[65]=Z):Z=t[65];let D;t[66]!==e?(D=e("Mail"),t[66]=e,t[67]=D):D=t[67];let V;t[68]!==e?(V=e("Payments"),t[68]=e,t[69]=V):V=t[69];let W;t[70]!==e?(W=e("Permissions"),t[70]=e,t[71]=W):W=t[71];let G;t[72]!==e?(G=e("Queues"),t[72]=e,t[73]=G):G=t[73];let ee;t[74]!==e?(ee=e("Reactors"),t[74]=e,t[75]=ee):ee=t[75];let ne;t[76]!==e?(ne=e("Realtime"),t[76]=e,t[77]=ne):ne=t[77];let te;t[78]!==e?(te=e("RLS Policies"),t[78]=e,t[79]=te):te=t[79];let X;t[80]!==e?(X=e("Scheduled"),t[80]=e,t[81]=X):X=t[81];let $;t[82]!==e?($=e("Schema"),t[82]=e,t[83]=$):$=t[83];let ce;t[84]!==e?(ce=e("Security"),t[84]=e,t[85]=ce):ce=t[85];let de;t[86]!==e?(de=e("Settings"),t[86]=e,t[87]=de):de=t[87];let pe;t[88]!==e?(pe=e("SQL editor"),t[88]=e,t[89]=pe):pe=t[89];let he;t[90]!==e?(he=e("Traces"),t[90]=e,t[91]=he):he=t[91];let ue;t[92]!==e?(ue=e("Access Rules"),t[92]=e,t[93]=ue):ue=t[93];let q;t[94]!==e?(q=e("Users"),t[94]=e,t[95]=q):q=t[95];let ie;t[96]!==e?(ie=e("Vectors"),t[96]=e,t[97]=ie):ie=t[97];let me;t[98]!==e?(me=e("Workflows"),t[98]=e,t[99]=me):me=t[99];let Ie;t[100]!==o||t[101]!==r||t[102]!==h||t[103]!==g||t[104]!==m||t[105]!==x||t[106]!==v||t[107]!==b||t[108]!==P||t[109]!==y||t[110]!==C||t[111]!==R||t[112]!==a||t[113]!==w||t[114]!==S||t[115]!==N||t[116]!==E||t[117]!==k||t[118]!==M||t[119]!==L||t[120]!==_||t[121]!==j||t[122]!==z||t[123]!==s||t[124]!==H||t[125]!==F||t[126]!==Z||t[127]!==D||t[128]!==V||t[129]!==W||t[130]!==G||t[131]!==ee||t[132]!==ne||t[133]!==te||t[134]!==l||t[135]!==X||t[136]!==$||t[137]!==ce||t[138]!==de||t[139]!==pe||t[140]!==he||t[141]!==ue||t[142]!==q||t[143]!==ie||t[144]!==me||t[145]!==c||t[146]!==p||t[147]!==d||t[148]!==u||t[149]!==f?(Ie={advisorHealth:o,agents:r,evals:a,aiUsage:s,analytics:l,api:c,architecture:p,audit:d,authAudit:u,authConfig:f,authSessions:h,containers:g,dashboards:m,data:x,deploymentHealth:v,drains:b,export:P,fanout:y,files:C,flags:R,functions:w,health:S,home:N,insights:E,issues:k,kv:M,logs:L,metrics:_,migrations:j,notifications:z,organizations:H,pitr:F,privacyRequests:Z,mail:D,payments:V,permissions:W,queues:G,reactors:ee,realtime:ne,rls:te,schedule:X,schema:$,security:ce,settings:de,sql:pe,traces:he,storageRules:ue,users:q,vectors:ie,workflows:me},t[100]=o,t[101]=r,t[102]=h,t[103]=g,t[104]=m,t[105]=x,t[106]=v,t[107]=b,t[108]=P,t[109]=y,t[110]=C,t[111]=R,t[112]=a,t[113]=w,t[114]=S,t[115]=N,t[116]=E,t[117]=k,t[118]=M,t[119]=L,t[120]=_,t[121]=j,t[122]=z,t[123]=s,t[124]=H,t[125]=F,t[126]=Z,t[127]=D,t[128]=V,t[129]=W,t[130]=G,t[131]=ee,t[132]=ne,t[133]=te,t[134]=l,t[135]=X,t[136]=$,t[137]=ce,t[138]=de,t[139]=pe,t[140]=he,t[141]=ue,t[142]=q,t[143]=ie,t[144]=me,t[145]=c,t[146]=p,t[147]=d,t[148]=u,t[149]=f,t[150]=Ie):Ie=t[150];let Te=Ie,Ne;t[151]!==e?(Ne=e("Advisors"),t[151]=e,t[152]=Ne):Ne=t[152];let Pe;t[153]!==e?(Pe=e("Auth"),t[153]=e,t[154]=Pe):Pe=t[154];let Ce;t[155]!==e?(Ce=e("Database"),t[155]=e,t[156]=Ce):Ce=t[156];let _e;t[157]!==e?(_e=e("Functions"),t[157]=e,t[158]=_e):_e=t[158];let Ae;t[159]!==e?(Ae=e("Observability"),t[159]=e,t[160]=Ae):Ae=t[160];let Ve;t[161]!==e?(Ve=e("Operations"),t[161]=e,t[162]=Ve):Ve=t[162];let Le;t[163]!==e?(Le=e("Overview"),t[163]=e,t[164]=Le):Le=t[164];let He;t[165]!==e?(He=e("Settings"),t[165]=e,t[166]=He):He=t[166];let Be;t[167]!==e?(Be=e("Storage"),t[167]=e,t[168]=Be):Be=t[168];let Ro;t[169]!==Ne||t[170]!==Pe||t[171]!==Ce||t[172]!==_e||t[173]!==Ae||t[174]!==Ve||t[175]!==Le||t[176]!==He||t[177]!==Be?(Ro={advisors:Ne,auth:Pe,database:Ce,functions:_e,observability:Ae,operations:Ve,overview:Le,settings:He,storage:Be},t[169]=Ne,t[170]=Pe,t[171]=Ce,t[172]=_e,t[173]=Ae,t[174]=Ve,t[175]=Le,t[176]=He,t[177]=Be,t[178]=Ro):Ro=t[178];let vr=Ro,Fe;t[179]!==e?(Fe=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[179]=e,t[180]=Fe):Fe=t[180];let je;t[181]!==e?(je=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[181]=e,t[182]=je):je=t[182];let ze;t[183]!==e?(ze=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[183]=e,t[184]=ze):ze=t[184];let Ke;t[185]!==e?(Ke=e("Tokens and spend from ctx.ai.model calls \u2014 totals, per function and per model, and the recent calls behind them."),t[185]=e,t[186]=Ke):Ke=t[186];let Ue;t[187]!==e?(Ue=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[187]=e,t[188]=Ue):Ue=t[188];let Ze;t[189]!==e?(Ze=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[189]=e,t[190]=Ze):Ze=t[190];let qe;t[191]!==e?(qe=e("A durable log of admin state-changing operations."),t[191]=e,t[192]=qe):qe=t[192];let We;t[193]!==e?(We=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[193]=e,t[194]=We):We=t[194];let $e;t[195]!==e?($e=e("Enabled plugins and session config (read-only)."),t[195]=e,t[196]=$e):$e=t[196];let Ge;t[197]!==e?(Ge=e("Your modules, and the calls, reads, writes and hand-offs between them, from codegen."),t[197]=e,t[198]=Ge):Ge=t[198];let Qe;t[199]!==e?(Qe=e("Browse and revoke active sessions across all users."),t[199]=e,t[200]=Qe):Qe=t[200];let Ye;t[201]!==e?(Ye=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[201]=e,t[202]=Ye):Ye=t[202];let Je;t[203]!==e?(Je=e("Chart widgets backed by saved read-only SQL queries."),t[203]=e,t[204]=Je):Je=t[204];let Xe;t[205]!==e?(Xe=e("Browse and edit rows across your shard and global tables."),t[205]=e,t[206]=Xe):Xe=t[206];let et;t[207]!==e?(et=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[207]=e,t[208]=et):et=t[208];let tt;t[209]!==e?(tt=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[209]=e,t[210]=tt):tt=t[210];let ot;t[211]!==e?(ot=e("Export a shard to NDJSON, or import rows from it."),t[211]=e,t[212]=ot):ot=t[212];let rt;t[213]!==e?(rt=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[213]=e,t[214]=rt):rt=t[214];let at;t[215]!==e?(at=e("Browse objects in your R2 storage buckets."),t[215]=e,t[216]=at):at=t[216];let nt;t[217]!==e?(nt=e("Inspect feature flags and their live evaluation under a targeting context."),t[217]=e,t[218]=nt):nt=t[218];let st;t[219]!==e?(st=e("Run registered queries, mutations, and actions."),t[219]=e,t[220]=st):st=t[220];let it;t[221]!==e?(it=e("At-a-glance connection, error, and shard signals."),t[221]=e,t[222]=it):it=t[222];let lt;t[223]!==e?(lt=e("Connection, health, and advisor summary for your deployment."),t[223]=e,t[224]=lt):lt=t[224];let ct;t[225]!==e?(ct=e("Surface slow functions, error spikes, and cache problems."),t[225]=e,t[226]=ct):ct=t[226];let dt;t[227]!==e?(dt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[227]=e,t[228]=dt):dt=t[228];let pt;t[229]!==e?(pt=e("A live stream of recent function logs."),t[229]=e,t[230]=pt):pt=t[230];let ut;t[231]!==e?(ut=e("Per-shard health and aggregate metrics."),t[231]=e,t[232]=ut):ut=t[232];let mt;t[233]!==e?(mt=e("Review migration status and run them."),t[233]=e,t[234]=mt):mt=t[234];let ft;t[235]!==e?(ft=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[235]=e,t[236]=ft):ft=t[236];let gt;t[237]!==e?(gt=e("Browse and manage organizations, members, and invitations."),t[237]=e,t[238]=gt):gt=t[238];let ht;t[239]!==e?(ht=e("Restore a shard to a point in the last 30 days."),t[239]=e,t[240]=ht):ht=t[240];let vt;t[241]!==e?(vt=e("Open data-subject export and erasure requests, with due dates and failed-run retries."),t[241]=e,t[242]=vt):vt=t[242];let bt;t[243]!==e?(bt=e("Email your app sent, captured in dev."),t[243]=e,t[244]=bt):bt=t[244];let xt;t[245]!==e?(xt=e("Synced customers, subscriptions, and webhook events."),t[245]=e,t[246]=xt):xt=t[246];let yt;t[247]!==e?(yt=e("Inspect access policies per table, and probe a function as any identity."),t[247]=e,t[248]=yt):yt=t[248];let Pt;t[249]!==e?(Pt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[249]=e,t[250]=Pt):Pt=t[250];let Ct;t[251]!==e?(Ct=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[251]=e,t[252]=Ct):Ct=t[252];let Rt;t[253]!==e?(Rt=e("Active WebSocket subscriptions on this shard."),t[253]=e,t[254]=Rt):Rt=t[254];let St;t[255]!==e?(St=e("Inspect row-level-security policies and roles, per table."),t[255]=e,t[256]=St):St=t[256];let Tt;t[257]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[257]=e,t[258]=Tt):Tt=t[258];let Nt;t[259]!==e?(Nt=e("Inspect each table and its columns."),t[259]=e,t[260]=Nt):Nt=t[260];let wt;t[261]!==e?(wt=e("Review admin gates, credentials, and log redaction."),t[261]=e,t[262]=wt):wt=t[262];let Et;t[263]!==e?(Et=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[263]=e,t[264]=Et):Et=t[264];let kt;t[265]!==e?(kt=e("Run read-only SQL against a shard."),t[265]=e,t[266]=kt):kt=t[266];let Ot;t[267]!==e?(Ot=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[267]=e,t[268]=Ot):Ot=t[268];let Dt;t[269]!==e?(Dt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[269]=e,t[270]=Dt):Dt=t[270];let Mt;t[271]!==e?(Mt=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[271]=e,t[272]=Mt):Mt=t[272];let It;t[273]!==e?(It=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[273]=e,t[274]=It):It=t[274];let _t;t[275]!==e?(_t=e("Browse Vectorize indexes and run similarity searches."),t[275]=e,t[276]=_t):_t=t[276];let At;t[277]!==e?(At=e("Inspect declared Cloudflare Workflows and their bindings."),t[277]=e,t[278]=At):At=t[278];let So;t[279]!==Tt||t[280]!==Nt||t[281]!==wt||t[282]!==Et||t[283]!==kt||t[284]!==Ot||t[285]!==Dt||t[286]!==Mt||t[287]!==It||t[288]!==_t||t[289]!==At||t[290]!==Fe||t[291]!==je||t[292]!==ze||t[293]!==Ke||t[294]!==Ue||t[295]!==Ze||t[296]!==qe||t[297]!==We||t[298]!==$e||t[299]!==Ge||t[300]!==Qe||t[301]!==Ye||t[302]!==Je||t[303]!==Xe||t[304]!==et||t[305]!==tt||t[306]!==ot||t[307]!==rt||t[308]!==at||t[309]!==nt||t[310]!==st||t[311]!==it||t[312]!==lt||t[313]!==ct||t[314]!==dt||t[315]!==pt||t[316]!==ut||t[317]!==mt||t[318]!==ft||t[319]!==gt||t[320]!==ht||t[321]!==vt||t[322]!==bt||t[323]!==xt||t[324]!==yt||t[325]!==Pt||t[326]!==Ct||t[327]!==Rt||t[328]!==St?(So={advisorHealth:Fe,agents:je,evals:ze,aiUsage:Ke,analytics:Ue,api:Ze,audit:qe,authAudit:We,authConfig:$e,architecture:Ge,authSessions:Qe,containers:Ye,dashboards:Je,data:Xe,deploymentHealth:et,drains:tt,export:ot,fanout:rt,files:at,flags:nt,functions:st,health:it,home:lt,insights:ct,issues:dt,logs:pt,metrics:ut,migrations:mt,notifications:ft,organizations:gt,pitr:ht,privacyRequests:vt,mail:bt,payments:xt,permissions:yt,queues:Pt,reactors:Ct,realtime:Rt,rls:St,schedule:Tt,schema:Nt,security:wt,settings:Et,sql:kt,kv:Ot,storageRules:Dt,traces:Mt,users:It,vectors:_t,workflows:At},t[279]=Tt,t[280]=Nt,t[281]=wt,t[282]=Et,t[283]=kt,t[284]=Ot,t[285]=Dt,t[286]=Mt,t[287]=It,t[288]=_t,t[289]=At,t[290]=Fe,t[291]=je,t[292]=ze,t[293]=Ke,t[294]=Ue,t[295]=Ze,t[296]=qe,t[297]=We,t[298]=$e,t[299]=Ge,t[300]=Qe,t[301]=Ye,t[302]=Je,t[303]=Xe,t[304]=et,t[305]=tt,t[306]=ot,t[307]=rt,t[308]=at,t[309]=nt,t[310]=st,t[311]=it,t[312]=lt,t[313]=ct,t[314]=dt,t[315]=pt,t[316]=ut,t[317]=mt,t[318]=ft,t[319]=gt,t[320]=ht,t[321]=vt,t[322]=bt,t[323]=xt,t[324]=yt,t[325]=Pt,t[326]=Ct,t[327]=Rt,t[328]=St,t[329]=So):So=t[329];let br=So,To;return t[330]!==vr||t[331]!==br||t[332]!==Te?(To={groupLabel:vr,tabDescription:br,tabLabel:Te},t[330]=vr,t[331]=br,t[332]=Te,t[333]=To):To=t[333],To},"Ra"),ol=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,n.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,n.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"Aa"),rl=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,n.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"La"),al=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"Ia"),nl=[{Icon:ol,value:"system"},{Icon:rl,value:"light"},{Icon:al,value:"dark"}],sl=i(()=>{let t=(0,I.c)(19),{theme:e,setTheme:o}=fi(),r=ge(),a;t[0]!==r?(a=r("Dark theme"),t[0]=r,t[1]=a):a=t[1];let s;t[2]!==r?(s=r("Light theme"),t[2]=r,t[3]=s):s=t[3];let l;t[4]!==r?(l=r("System theme"),t[4]=r,t[5]=l):l=t[5];let c;t[6]!==a||t[7]!==s||t[8]!==l?(c={dark:a,light:s,system:l},t[6]=a,t[7]=s,t[8]=l,t[9]=c):c=t[9];let p=c,d;t[10]!==r?(d=r("Theme"),t[10]=r,t[11]=d):d=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=nl.map(h=>{let{Icon:g,value:m}=h,x=e===m;return(0,n.jsxs)("button",{"aria-checked":x,"aria-label":p[m],className:U("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",x?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:i(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[x&&(0,n.jsx)(Ka.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,n.jsx)("span",{className:"relative",children:(0,n.jsx)(g,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let f;return t[16]!==d||t[17]!==u?(f=(0,n.jsx)("div",{"aria-label":d,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=d,t[17]=u,t[18]=f):f=t[18],f},"$a"),il=i(t=>{let e=(0,I.c)(23),{domain:o,onOpenCommandPalette:r,page:a}=t,s=ge(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(Bi,{className:"-ms-1"}),e[0]=l):l=e[0];let c;e[1]!==s?(c=s("Breadcrumb"),e[1]=s,e[2]=c):c=e[2];let p;e[3]!==o?(p=(0,n.jsx)("span",{className:"text-muted-foreground",children:o}),e[3]=o,e[4]=p):p=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=d):d=e[5];let u;e[6]!==a?(u=(0,n.jsx)("span",{className:"font-medium text-foreground",children:a}),e[6]=a,e[7]=u):u=e[7];let f;e[8]!==c||e[9]!==p||e[10]!==u?(f=(0,n.jsxs)("nav",{"aria-label":c,className:"flex items-center gap-1.5 text-[13px]",children:[p,d,u]}),e[8]=c,e[9]=p,e[10]=u,e[11]=f):f=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=h):h=e[12];let g;e[13]!==s?(g=s("Search\u2026"),e[13]=s,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),e[15]=m):m=e[15];let x;e[16]!==r||e[17]!==g?(x=(0,n.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:r,type:"button",children:[h,g,m]}),e[16]=r,e[17]=g,e[18]=x):x=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=(0,n.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,n.jsx)(sl,{})}),e[19]=v):v=e[19];let b;return e[20]!==x||e[21]!==f?(b=(0,n.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[l,f,x,v]}),e[20]=x,e[21]=f,e[22]=b):b=e[22],b},"Ha"),ll={agents:{capability:"agents"},analytics:{capability:"analytics",feature:"analytics"},authAudit:{feature:"auth"},authConfig:{feature:"auth"},authSessions:{feature:"auth"},containers:{capability:"containers",feature:"containers"},fanout:{capability:"crossShardFanout"},files:{capability:"objectStorage",feature:"storage"},flags:{feature:"flags"},kv:{capability:"keyValueStore",feature:"kv"},mail:{capability:"mail",feature:"mail"},notifications:{feature:"notifications"},organizations:{feature:"auth"},payments:{feature:"payments"},pitr:{capability:"pointInTimeRecovery"},privacyRequests:{feature:"privacy"},queues:{capability:"queues",feature:"queues"},reactors:{capability:"serverReactors"},schedule:{capability:"scheduler",feature:"scheduler"},storageRules:{feature:"storage"},users:{feature:"auth"},vectors:{capability:"vectorStore",feature:"vectors"},workflows:{capability:"workflows",feature:"workflows"}},cl={agents:"Durable agents",analytics:"Analytics",containers:"Containers",crossShardFanout:"Cross-shard fan-out",keyValueStore:"Key-value storage",mail:"Mail delivery",objectStorage:"Object storage",pointInTimeRecovery:"Point-in-time recovery",queues:"Queues",scheduler:"Scheduling",serverReactors:"Server reactors",vectorStore:"Vector search",workflows:"Workflows"},dl={kind:"hidden"},_s={kind:"ok"},pl={kind:"pending"},qs=i((t,e,o)=>{let r=ll[t];return r?.feature!==void 0&&!e[r.feature]?dl:r?.capability===void 0?_s:e.settled?e.platform?.unsupported.includes(r.capability)===!0?{kind:"unavailable",reason:o("{capability} is not supported on {platform}.",{capability:o(cl[r.capability]),platform:e.platform.name})}:_s:pl},"rs"),ul=i((t,e,o)=>{let r={},a=[];for(let s of t){let l=[];for(let c of s.tabs){let p=qs(c,e,o);p.kind!=="hidden"&&l.push(c),p.kind==="unavailable"&&(r[c]=p.reason)}l.length>0&&a.push({...s,tabs:l})}return{unavailable:r,visibleGroups:a}},"Oa"),ml=i(t=>{let e=(0,I.c)(3),{reason:o,title:r}=t,a;return e[0]!==o||e[1]!==r?(a=(0,n.jsx)(ja,{description:o,testId:"dash-unsupported",title:r}),e[0]=o,e[1]=r,e[2]=a):a=e[2],a},"Za"),fl=i(t=>{let e=(0,I.c)(4),{console:o}=$o(),r,a;e[0]!==o||e[1]!==t?(r=i(()=>{if(t===void 0)return;let s=i(l=>{if(!l.ctrlKey||l.metaKey||l.altKey||l.shiftKey||l.repeat||l.key.toLowerCase()!==o)return;let{target:c}=l;c instanceof HTMLElement&&(c.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(c.tagName))||(l.preventDefault(),t())},"n");return globalThis.addEventListener("keydown",s),()=>{globalThis.removeEventListener("keydown",s)}},"a"),a=[o,t],e[0]=o,e[1]=t,e[2]=r,e[3]=a):(r=e[2],a=e[3]),(0,O.useEffect)(r,a)},"qa"),Q=i((t,e)=>(0,O.lazy)(()=>t().then(o=>({default:o[e]}))),"I"),gl=Q(()=>import("./chunk-N66HNAEX.js"),"InsightsPanel"),hl=(0,O.lazy)(()=>import("./chunk-5DKOUMFY.js")),vl=(0,O.lazy)(()=>import("./chunk-BEODZ54J.js")),bl=(0,O.lazy)(()=>import("./chunk-NQZMPZNU.js")),xl=(0,O.lazy)(()=>import("./chunk-KLQVRXER.js")),yl=Q(()=>import("./chunk-GUDC24NJ.js"),"AnalyticsPanel"),Pl=(0,O.lazy)(()=>import("./chunk-IC2NNXPZ.js")),Cl=(0,O.lazy)(()=>import("./chunk-XUS6E3C7.js")),Rl=(0,O.lazy)(()=>import("./chunk-IDX6KQRG.js")),Sl=(0,O.lazy)(()=>import("./chunk-5QTTNVDW.js")),Tl=(0,O.lazy)(()=>import("./chunk-DNIDQC3K.js")),Nl=(0,O.lazy)(()=>import("./chunk-WZ2CXW4B.js")),wl=Q(()=>import("./chunk-SQ4ZU5YB.js"),"UsersPanel"),El=(0,O.lazy)(()=>import("./chunk-SPLVBIFP.js")),kl=Q(()=>import("./chunk-RGCYH5VO.js"),"DeploymentHealthPanel"),Ol=Q(()=>import("./chunk-UFJSJEBS.js"),"TableEditor"),Dl=Q(()=>import("./chunk-ITFHDBLD.js"),"ExportImportPanel"),Ml=(0,O.lazy)(()=>import("./chunk-FR2MJIZG.js")),Il={data:qa,migrations:Wa},_l=Q(()=>import("./chunk-3BF2QRJM.js"),"PitrPanel"),Al=Q(()=>import("./chunk-UMPQDFU6.js"),"PrivacyRequestsPanel"),Vl=(0,O.lazy)(()=>import("./chunk-ZUB5DMJT.js")),Ll=(0,O.lazy)(()=>import("./chunk-SRNH27XV.js")),Hl=Q(()=>import("./chunk-YYEQLN53.js"),"FunctionRunner"),Bl=Q(()=>import("./chunk-EUTV2OGD.js"),"FunctionStatsPanel"),Fl=(0,O.lazy)(()=>import("./chunk-EJSTZM7A.js")),jl=Q(()=>import("./chunk-5CW7W7LQ.js"),"AuditPanel"),zl=(0,O.lazy)(()=>import("./chunk-HIJGQX6F.js")),Kl=(0,O.lazy)(()=>import("./chunk-NJ3YQOVN.js").then(t=>({default:t.LogsPanel}))),Ul=Q(()=>import("./chunk-DQAXICZV.js"),"MailPanel"),Zl=Q(()=>import("./chunk-FMSWGAHK.js"),"SchedulePanel"),ql=(0,O.lazy)(()=>import("./chunk-A4WUN5R3.js")),Wl=(0,O.lazy)(()=>import("./chunk-4RLRI34N.js")),$l=Q(()=>import("./chunk-HMDY25GJ.js"),"KvBrowser"),Gl=(0,O.lazy)(()=>import("./chunk-HXC2I6YI.js")),Ql=Q(()=>import("./chunk-YNJEO3WB.js"),"PaymentsPanel"),Yl=Q(()=>import("./chunk-E57JT34T.js"),"PermissionsPanel"),Jl=(0,O.lazy)(()=>import("./chunk-G5P5DUVD.js")),Xl=(0,O.lazy)(()=>import("./chunk-CUIPEXIW.js")),ec=(0,O.lazy)(()=>import("./chunk-TFLKMZK5.js")),tc=Q(()=>import("./chunk-3F3742NV.js"),"HealthPanel"),oc=Q(()=>import("./chunk-YR5YXUZT.js"),"MetricsPanel"),rc=Q(()=>import("./chunk-6ZRYMZEX.js"),"SchemaViewer"),ac=Q(()=>import("./chunk-N36IWCKG.js"),"SettingsPanel"),nc=Q(()=>import("./chunk-S3KIA2QB.js"),"SqlEditorPanel"),sc=Q(()=>import("./chunk-J5CU2YKR.js"),"FileBrowser"),ic=(0,O.lazy)(()=>import("./chunk-JAPCIIQC.js")),lc=(0,O.lazy)(()=>import("./chunk-66MXYZBW.js")),cc=(0,O.lazy)(()=>import("./chunk-GTEER76O.js")),dc=(0,O.lazy)(()=>import("./chunk-VVHORMP3.js")),pc=Q(()=>import("./chunk-DD7J6RMR.js"),"VectorBrowser"),uc=(0,O.lazy)(()=>import("./chunk-L7OWZOME.js")),Ws=(0,O.createContext)(null),mc={analytics:(0,n.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,n.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),architecture:(0,n.jsx)("path",{d:"M4 4h6v5H4V4Zm10 0h6v5h-6V4ZM9 15h6v5H9v-5ZM7 9v3h10V9M12 12v3"}),audit:(0,n.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,n.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,n.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,n.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,n.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,n.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,n.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,n.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,n.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,n.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,n.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,n.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,n.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,n.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:(0,n.jsx)("path",{d:"M12 3v3m0 12v3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1M3 12h3m12 0h3M5.6 18.4l2.1-2.1m8.6-8.6 2.1-2.1M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z"}),health:(0,n.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,n.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,n.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,n.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,n.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,n.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,n.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,n.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,n.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,n.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,n.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,n.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),privacyRequests:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h4"}),queues:(0,n.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:(0,n.jsx)("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:(0,n.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,n.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,n.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),advisorHealth:(0,n.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,n.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,n.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,n.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,n.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,n.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,n.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},As=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","architecture","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","aiUsage","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags","privacyRequests"]},{key:"settings",tabs:["settings"]}],Wr=i(t=>{let e=(0,I.c)(2),{tab:o}=t,r=mc[o],a;return e[0]!==r?(a=(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=a):a=e[1],a},"Rt"),fc=i(t=>t,"Fo"),$s=fc(["home","data","sql","functions","api","architecture","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","aiUsage","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","privacyRequests","settings"]),gc=new Set(["api","data","migrations","sql"]),hc=i(t=>{let e=t.split("/").findLast(Boolean)??"";return $s.includes(e)?e:"home"},"Uo"),vc=i(t=>{let e=(0,I.c)(19),{chrome:o,connected:r}=t,a=ge(),s;e[0]!==a?(s=a("admin token"),e[0]=a,e[1]=s):s=e[1];let l;e[2]!==s?(l=(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:s}),e[2]=s,e[3]=l):l=e[3];let c;e[4]!==o.onTokenChange||e[5]!==o.token?(c=(0,n.jsx)(Sr,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:o.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:o.token}),e[4]=o.onTokenChange,e[5]=o.token,e[6]=c):c=e[6];let p;e[7]!==r||e[8]!==a?(p=r&&(0,n.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),a("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=a,e[9]=p):p=e[9];let d;e[10]!==o.clearToken||e[11]!==r||e[12]!==a?(d=r&&(0,n.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:a("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=a,e[13]=d):d=e[13];let u;return e[14]!==l||e[15]!==c||e[16]!==p||e[17]!==d?(u=(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[l,c,p,d]}),e[14]=l,e[15]=c,e[16]=p,e[17]=d,e[18]=u):u=e[18],u},"jo"),Gs="opacity-50",bc=i(t=>{let e=(0,I.c)(27),{current:o,group:r,groupLabel:a,selectTab:s,tabDescription:l,tabLabel:c,unavailable:p}=t,d=r.tabs.includes(o)?"page":void 0,u=a[r.key],f=r.tabs[0],h;e[0]!==f?(h=(0,n.jsx)(Wr,{tab:f}),e[0]=f,e[1]=h):h=e[1];let g;e[2]!==d||e[3]!==u||e[4]!==h?(g=(0,n.jsx)(zs,{"aria-current":d,"aria-label":u,className:"mx-auto flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent data-[popup-open]:bg-sidebar-accent data-[popup-open]:text-sidebar-accent-foreground data-[popup-open]:shadow-xs aria-[current=page]:bg-sidebar-accent aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:shadow-xs",delay:120,openOnHover:!0,children:h}),e[2]=d,e[3]=u,e[4]=h,e[5]=g):g=e[5];let m=a[r.key],x;e[6]!==m?(x=(0,n.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:m}),e[6]=m,e[7]=x):x=e[7];let v;if(e[8]!==o||e[9]!==r.tabs||e[10]!==s||e[11]!==l||e[12]!==c||e[13]!==p){let y;e[15]!==o||e[16]!==s||e[17]!==l||e[18]!==c||e[19]!==p?(y=i(C=>(0,n.jsxs)("button",{"aria-current":o===C?"page":void 0,className:U("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100",p[C]!==void 0&&Gs),"data-tab":C,"data-testid":`dash-tab-${C}`,"data-unsupported":p[C]===void 0?void 0:"true",onClick:s,title:l[C],type:"button",children:[(0,n.jsx)(Wr,{tab:C}),(0,n.jsx)("span",{children:c[C]})]},C),"h"),e[15]=o,e[16]=s,e[17]=l,e[18]=c,e[19]=p,e[20]=y):y=e[20],v=r.tabs.map(y),e[8]=o,e[9]=r.tabs,e[10]=s,e[11]=l,e[12]=c,e[13]=p,e[14]=v}else v=e[14];let b;e[21]!==x||e[22]!==v?(b=(0,n.jsxs)(Ks,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[x,v]}),e[21]=x,e[22]=v,e[23]=b):b=e[23];let P;return e[24]!==g||e[25]!==b?(P=(0,n.jsxs)(js,{children:[g,b]}),e[24]=g,e[25]=b,e[26]=P):P=e[26],P},"Go"),xc=i(t=>{let e=(0,I.c)(45),{chrome:o,collapsed:r,connected:a}=t,s=ge();if(o===null){let y;e[0]!==s?(y=s("Admin"),e[0]=s,e[1]=y):y=e[1];let C;e[2]===Symbol.for("react.memo_cache_sentinel")?(C=(0,n.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=C):C=e[2];let R;e[3]!==s?(R=s("Admin"),e[3]=s,e[4]=R):R=e[4];let w;e[5]!==R?(w=(0,n.jsx)("span",{className:"truncate text-[13px] font-medium",children:R}),e[5]=R,e[6]=w):w=e[6];let S;e[7]!==s?(S=s("Studio"),e[7]=s,e[8]=S):S=e[8];let N;e[9]!==S?(N=(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:S}),e[9]=S,e[10]=N):N=e[10];let E;e[11]!==w||e[12]!==N?(E=(0,n.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[w,N]}),e[11]=w,e[12]=N,e[13]=E):E=e[13];let k;return e[14]!==y||e[15]!==E?(k=(0,n.jsxs)(Zs,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[C,E]}),e[14]=y,e[15]=E,e[16]=k):k=e[16],k}let l=r?"mx-auto size-8 justify-center":"w-full p-2",c;e[17]!==l?(c=U("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",l),e[17]=l,e[18]=c):c=e[18];let p;e[19]!==a||e[20]!==s?(p=s(a?"Connected":"Not connected"),e[19]=a,e[20]=s,e[21]=p):p=e[21];let d=a?"bg-success":"bg-muted-foreground/50",u;e[22]!==d?(u=U("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",d),e[22]=d,e[23]=u):u=e[23];let f;e[24]!==u?(f=(0,n.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,n.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let h;e[26]!==r||e[27]!==a||e[28]!==s?(h=!r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,n.jsx)("span",{className:"truncate text-[13px] font-medium",children:s("Admin")}),(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:s(a?"Connected":"Not connected")})]}),(0,n.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=a,e[28]=s,e[29]=h):h=e[29];let g;e[30]!==c||e[31]!==p||e[32]!==f||e[33]!==h?(g=(0,n.jsxs)(zs,{className:c,"data-testid":"dash-app-connect",title:p,children:[f,h]}),e[30]=c,e[31]=p,e[32]=f,e[33]=h,e[34]=g):g=e[34];let m=r?"end":"start",x=r?"right":"top",v;e[35]!==o||e[36]!==a?(v=(0,n.jsx)(vc,{chrome:o,connected:a}),e[35]=o,e[36]=a,e[37]=v):v=e[37];let b;e[38]!==x||e[39]!==v||e[40]!==m?(b=(0,n.jsx)(Ks,{align:m,keepMounted:!0,side:x,children:v}),e[38]=x,e[39]=v,e[40]=m,e[41]=b):b=e[41];let P;return e[42]!==b||e[43]!==g?(P=(0,n.jsxs)(js,{children:[g,b]}),e[42]=b,e[43]=g,e[44]=P):P=e[44],P},"Ko"),yc=i(t=>{let e=(0,I.c)(29),{chrome:o,connected:r,current:a,groupLabel:s,groups:l,selectTab:c,tabDescription:p,tabLabel:d,unavailable:u}=t,f=ge(),{state:h}=hr(),g=h==="collapsed",m=g&&"justify-center px-0",x;e[0]!==m?(x=U("flex items-center gap-2.5 px-1.5 py-1",m),e[0]=m,e[1]=x):x=e[1];let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=(0,n.jsx)(bi,{className:"size-9 shrink-0 text-foreground"}),e[2]=v):v=e[2];let b;e[3]!==g||e[4]!==r||e[5]!==f?(b=!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:f("Studio")})]}),(0,n.jsx)(Vt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:f(r?"Live":"Local")})]}),e[3]=g,e[4]=r,e[5]=f,e[6]=b):b=e[6];let P;e[7]!==x||e[8]!==b?(P=(0,n.jsx)(ji,{children:(0,n.jsxs)("div",{className:x,children:[v,b]})}),e[7]=x,e[8]=b,e[9]=P):P=e[9];let y;e[10]!==g||e[11]!==a||e[12]!==s||e[13]!==l||e[14]!==c||e[15]!==p||e[16]!==d||e[17]!==u?(y=g?l.map(S=>(0,n.jsx)(bc,{current:a,group:S,groupLabel:s,selectTab:c,tabDescription:p,tabLabel:d,unavailable:u},S.key)):l.map(S=>(0,n.jsxs)(Ui,{children:[(0,n.jsx)(Zi,{className:"text-[11px] font-medium tracking-wider uppercase",children:s[S.key]}),(0,n.jsx)(qi,{children:(0,n.jsx)(Ms,{children:S.tabs.map(N=>(0,n.jsx)(Is,{children:(0,n.jsxs)(Zs,{className:U("data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]",u[N]!==void 0&&Gs),"data-tab":N,"data-testid":`dash-tab-${N}`,"data-unsupported":u[N]===void 0?void 0:"true",isActive:a===N,onClick:c,title:p[N],tooltip:p[N],children:[(0,n.jsx)(Wr,{tab:N}),(0,n.jsx)("span",{children:d[N]})]})},N))})})]},S.key)),e[10]=g,e[11]=a,e[12]=s,e[13]=l,e[14]=c,e[15]=p,e[16]=d,e[17]=u,e[18]=y):y=e[18];let C;e[19]!==y?(C=(0,n.jsx)(Ki,{children:y}),e[19]=y,e[20]=C):C=e[20];let R;e[21]!==o||e[22]!==g||e[23]!==r?(R=(0,n.jsx)(zi,{children:(0,n.jsx)(Ms,{children:(0,n.jsx)(Is,{children:(0,n.jsx)(xc,{chrome:o,collapsed:g,connected:r})})})}),e[21]=o,e[22]=g,e[23]=r,e[24]=R):R=e[24];let w;return e[25]!==P||e[26]!==C||e[27]!==R?(w=(0,n.jsxs)(Hi,{collapsible:"icon",variant:"inset",children:[P,C,R]}),e[25]=P,e[26]=C,e[27]=R,e[28]=w):w=e[28],w},"Qo"),Gr=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(Wo,{className:"h-8 w-40"}),(0,n.jsx)(Wo,{className:"h-8 w-24"})]}),(0,n.jsx)(Wo,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"It"),Pc=i(t=>{let e=(0,I.c)(5),{title:o,verdict:r}=t;if(r.kind==="pending"){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,n.jsx)(Gr,{}),e[0]=s):s=e[0],s}if(r.kind==="unavailable"){let s;return e[1]!==o||e[2]!==r.reason?(s=(0,n.jsx)(ml,{reason:r.reason,title:o}),e[1]=o,e[2]=r.reason,e[3]=s):s=e[3],s}let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(ta,{}),e[4]=a):a=e[4],a},"Yo"),Cc=i(()=>{let t=(0,I.c)(46),e=ge(),o=io(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Ec},t[0]=r):r=t[0];let a=aa(r),s=hc(a),l=gc.has(s),c=sa(),p=c?.toggle;fl(p);let d=Ua(),{groupLabel:u,tabDescription:f,tabLabel:h}=tl(),{unavailable:g,visibleGroups:m}=ul(As,d,e),x={...f,...g},v=qs(s,d,e),b=v.kind==="hidden",P,y;t[1]!==b||t[2]!==o?(P=i(()=>{b&&oo(o({replace:!0,to:"/home"}))},"v"),y=[b,o],t[1]=b,t[2]=o,t[3]=P,t[4]=y):(P=t[3],y=t[4]),(0,O.useEffect)(P,y);let C;t[5]!==o?(C=i(ue=>{oo(o({to:`/${ue.currentTarget.dataset.tab??""}`}))},"w"),t[5]=o,t[6]=C):C=t[6];let R=C,w,S;t[7]!==s||t[8]!==h?(w=i(()=>{typeof document<"u"&&(document.title=`${h[s]} \xB7 lunora`)},"C"),S=[s,h],t[7]=s,t[8]=h,t[9]=w,t[10]=S):(w=t[9],S=t[10]),(0,O.useEffect)(w,S);let N=m.find(ue=>ue.tabs.includes(s))??As[0],E=m.flatMap(ue=>ue.tabs.filter(q=>g[q]===void 0).map(q=>({group:u[ue.key],label:h[q],to:`/${q}`}))),k=p===void 0?E:[...E,{group:e("Operations"),label:e("Toggle operation console"),run:p}],M=(0,O.use)(Ws),L=M!==null&&M.token!=="",_;t[11]!==k?(_=(0,n.jsx)(Os,{items:k}),t[11]=k,t[12]=_):_=t[12];let j=u[N.key],z=h[s],H;t[13]!==j||t[14]!==z?(H=(0,n.jsx)(il,{domain:j,onOpenCommandPalette:ks,page:z}),t[13]=j,t[14]=z,t[15]=H):H=t[15];let F;t[16]!==M?.rulesInstalled?(F=M?.rulesInstalled===!1&&(0,n.jsx)(Pi,{}),t[16]=M?.rulesInstalled,t[17]=F):F=t[17];let Z=`dash-tab-${s}`,D=l?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",V=h[s],W;t[18]!==e||t[19]!==V?(W=e("{title} failed",{title:V}),t[18]=e,t[19]=V,t[20]=W):W=t[20];let G=h[s],ee;t[21]!==e?(ee=e("Try again"),t[21]=e,t[22]=ee):ee=t[22];let ne;t[23]===Symbol.for("react.memo_cache_sentinel")?(ne=(0,n.jsx)(Gr,{}),t[23]=ne):ne=t[23];let te=h[s],X;t[24]!==te||t[25]!==v?(X=(0,n.jsx)(O.Suspense,{fallback:ne,children:(0,n.jsx)(Pc,{title:te,verdict:v})}),t[24]=te,t[25]=v,t[26]=X):X=t[26];let $;t[27]!==s||t[28]!==W||t[29]!==G||t[30]!==ee||t[31]!==X?($=(0,n.jsx)(Go,{fallbackTitle:W,label:G,retryLabel:ee,children:X},s),t[27]=s,t[28]=W,t[29]=G,t[30]=ee,t[31]=X,t[32]=$):$=t[32];let ce;t[33]!==D||t[34]!==$?(ce=(0,n.jsx)("div",{className:D,children:$}),t[33]=D,t[34]=$,t[35]=ce):ce=t[35];let de;t[36]!==c?(de=c?.open===!0&&(0,n.jsx)(Ji,{focusSeq:c.focusSeq,onClose:c.close,onShownChange:c.setShown,shown:c.shown}),t[36]=c,t[37]=de):de=t[37];let pe;t[38]!==Z||t[39]!==ce||t[40]!==de?(pe=(0,n.jsxs)("div",{"aria-labelledby":Z,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[ce,de]}),t[38]=Z,t[39]=ce,t[40]=de,t[41]=pe):pe=t[41];let he;return t[42]!==F||t[43]!==pe||t[44]!==H?(he=(0,n.jsxs)(Fi,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[H,F,pe]}),t[42]=F,t[43]=pe,t[44]=H,t[45]=he):he=t[45],(0,n.jsxs)(Li,{className:"min-h-0 flex-1","data-platform":d.platform?.id,"data-testid":"lunora-studio",children:[_,(0,n.jsx)(yc,{chrome:M,connected:L,current:s,groupLabel:u,groups:m,selectTab:R,tabDescription:x,tabLabel:h,unavailable:g}),he]})},"Jo"),Rc=i(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(na,{children:(0,n.jsx)(Cc,{})}),t[0]=e):e=t[0],e},"Xo"),Sc=i(t=>{let e=(0,I.c)(5),{initialShardKey:o,schemaEditable:r}=t,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];let s=Xr(a),{table:l}=s,c=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==c||e[3]!==r?(p=(0,n.jsx)(rc,{initialShardKey:o,initialTable:c,schemaEditable:r}),e[1]=o,e[2]=c,e[3]=r,e[4]=p):p=e[4],p},"er"),Tc=i(()=>{let t=(0,I.c)(3),e=io(),o,r;return t[0]!==e?(o=i(()=>{oo(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,O.useEffect)(o,r),null},"tr"),Nc=i(({analyticsSqlQuery:t,basePath:e,privacyRequests:o,dataEditable:r=!1,functions:a,initialShardKey:s,openApiSpec:l,openRpcSpec:c,runAsIdentity:p=!1,schemaEditable:d=!1,scheduledCancel:u,scheduledCron:f,scheduledLoad:h})=>{let g=ea({component:Rc}),m={agents:(0,n.jsx)(xl,{initialShardKey:s}),analytics:(0,n.jsx)(yl,{runQuery:t}),api:(0,n.jsx)(Pl,{functions:a,initialShardKey:s,openApiSpec:l,openRpcSpec:c}),architecture:(0,n.jsx)(Cl,{}),audit:(0,n.jsx)(jl,{initialShardKey:s}),authAudit:(0,n.jsx)(Rl,{}),authConfig:(0,n.jsx)(Sl,{}),authSessions:(0,n.jsx)(Tl,{}),containers:(0,n.jsx)(El,{}),dashboards:(0,n.jsx)(Xl,{initialShardKey:s}),data:(0,n.jsx)(Ol,{canGenerateRows:r&&d,editable:r,initialShardKey:s}),deploymentHealth:(0,n.jsx)(kl,{}),drains:(0,n.jsx)(zl,{}),export:(0,n.jsx)(Dl,{initialShardKey:s}),fanout:(0,n.jsx)(ec,{initialShardKey:s}),files:(0,n.jsx)(sc,{}),kv:(0,n.jsx)($l,{}),flags:(0,n.jsx)(Vl,{initialShardKey:s}),reactors:(0,n.jsx)(Ll,{initialShardKey:s}),functions:(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(Bl,{functions:a,initialShardKey:s}),(0,n.jsx)(Hl,{functions:a,runAsIdentity:p})]}),health:(0,n.jsx)(tc,{initialShardKey:s}),home:(0,n.jsx)(Za,{initialShardKey:s}),insights:(0,n.jsx)(gl,{initialShardKey:s}),issues:(0,n.jsx)(Fl,{initialShardKey:s}),logs:(0,n.jsx)(Kl,{initialShardKey:s}),traces:(0,n.jsx)(lc,{initialShardKey:s}),evals:(0,n.jsx)(cc,{initialShardKey:s}),aiUsage:(0,n.jsx)(dc,{initialShardKey:s}),metrics:(0,n.jsx)(oc,{initialShardKey:s}),migrations:(0,n.jsx)(Ml,{initialShardKey:s}),notifications:(0,n.jsx)(Gl,{}),organizations:(0,n.jsx)(Nl,{}),permissions:(0,n.jsx)(Yl,{functions:a,runAsIdentity:p,schemaEditable:d}),pitr:(0,n.jsx)(_l,{initialShardKey:s}),privacyRequests:(0,n.jsx)(Al,{source:o}),mail:(0,n.jsx)(Ul,{}),payments:(0,n.jsx)(Ql,{}),queues:(0,n.jsx)(Jl,{}),realtime:(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(ql,{initialShardKey:s}),(0,n.jsx)(Wl,{})]}),rls:(0,n.jsx)(hl,{}),schedule:(0,n.jsx)(Zl,{loadCronJobs:f,scheduledCancel:u,scheduledLoad:h}),schema:(0,n.jsx)(Sc,{initialShardKey:s,schemaEditable:d}),advisorHealth:(0,n.jsx)(vl,{}),security:(0,n.jsx)(bl,{}),settings:(0,n.jsx)(ac,{initialShardKey:s}),sql:(0,n.jsx)(nc,{initialShardKey:s}),storageRules:(0,n.jsx)(ic,{}),users:(0,n.jsx)(wl,{}),vectors:(0,n.jsx)(pc,{}),workflows:(0,n.jsx)(uc,{})},x=Cr({component:i(()=>m.home,"component"),getParentRoute:i(()=>g,"getParentRoute"),path:"/"}),v=$s.map(y=>Cr({component:i(()=>m[y],"component"),getParentRoute:i(()=>g,"getParentRoute"),path:`/${y}`,validateSearch:Il[y]})),b=g.addChildren([x,...v]),P="window"in globalThis?Yr():Jr({initialEntries:["/home"]});return oa({...e===void 0||e==="/"?{}:{basepath:e},defaultNotFoundComponent:Tc,defaultPendingComponent:Gr,defaultPendingMinMs:0,defaultPendingMs:0,history:P,routeTree:b})},"sr"),wc=i(t=>{let e=(0,I.c)(19),{analyticsSqlQuery:o,basePath:r,chrome:a,dataEditable:s,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,privacyRequests:u,runAsIdentity:f,schemaEditable:h,scheduledCancel:g,scheduledCron:m,scheduledLoad:x}=t,v;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==l||e[4]!==c||e[5]!==p||e[6]!==d||e[7]!==u||e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==x||e[12]!==h?(v=Nc({analyticsSqlQuery:o,basePath:r,privacyRequests:u,dataEditable:s,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:f,schemaEditable:h,scheduledCancel:g,scheduledCron:m,scheduledLoad:x}),e[0]=o,e[1]=r,e[2]=s,e[3]=l,e[4]=c,e[5]=p,e[6]=d,e[7]=u,e[8]=f,e[9]=g,e[10]=m,e[11]=x,e[12]=h,e[13]=v):v=e[13];let b=v,P=a??null,y;e[14]!==b?(y=(0,n.jsx)(ra,{router:b}),e[14]=b,e[15]=y):y=e[15];let C;return e[16]!==P||e[17]!==y?(C=(0,n.jsx)(Ws,{value:P,children:y}),e[16]=P,e[17]=y,e[18]=C):C=e[18],C},"ar"),Yg=i(t=>{let e=(0,I.c)(10),o,r,a;e[0]!==t?({i18n:o,locale:r,...a}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=a):(o=e[1],r=e[2],a=e[3]);let s;e[4]!==a?(s=(0,n.jsx)(mi,{children:(0,n.jsx)(wc,{...a})}),e[4]=a,e[5]=s):s=e[5];let l=s;if(o===void 0&&r===void 0)return l;let c;return e[6]!==o||e[7]!==r||e[8]!==l?(c=(0,n.jsx)(Es,{i18n:o,locale:r,children:l}),e[6]=o,e[7]=r,e[8]=l,e[9]=c):c=e[9],c},"Hr");function Ec(t){return t.location.pathname}i(Ec,"or");export{Go as a,Es as b,ui as c,fi as d,Qg as e,bi as f,Si as g,wi as h,Ei as i,ki as j,Yg as k};