@lunora/studio 1.0.0-alpha.287 → 1.0.0-alpha.289
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.
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/mount.d.mts +1 -1
- package/dist/mount.d.ts +1 -1
- package/dist/mount.mjs +1 -1
- package/dist/packem_chunks/kv-browser.mjs +1 -1
- package/dist/packem_chunks/payments-panel.mjs +1 -1
- package/dist/packem_chunks/privacy-requests-panel.mjs +1 -0
- package/dist/packem_shared/{HomePanel-C-g2umyB.mjs → HomePanel-CUuYsApa.mjs} +1 -1
- package/dist/packem_shared/{Studio-D2BDkB20.mjs → Studio-CZjQXFHC.mjs} +1 -1
- package/dist/packem_shared/{StudioApp-vzv6-90m.mjs → StudioApp-C9ENwcOH.mjs} +1 -1
- package/dist/packem_shared/{app.d-BIfsPhiH.d.ts → app.d-D7vL0y8y.d.mts} +40 -1
- package/dist/packem_shared/{app.d-BIfsPhiH.d.mts → app.d-D7vL0y8y.d.ts} +40 -1
- package/dist/packem_shared/{home-panel-DIaVZra4.mjs → home-panel-BcE8S2Nn.mjs} +1 -1
- package/dist/packem_shared/studio-fK2DTLde.mjs +2 -0
- package/dist/standalone/{chunk-YRSZ7R5M.js → chunk-4A6ICQ33.js} +1 -1
- package/dist/standalone/{chunk-SMRF3OF3.js → chunk-4JV44PC5.js} +2 -2
- package/dist/standalone/{chunk-EVRDIDUZ.js → chunk-4U2J2ME3.js} +1 -1
- package/dist/standalone/{chunk-TSWDU7TX.js → chunk-4UO2OTLK.js} +1 -1
- package/dist/standalone/chunk-54JZD74E.js +15 -0
- package/dist/standalone/{chunk-XQIDTBFH.js → chunk-5KFKN5DE.js} +1 -1
- package/dist/standalone/{chunk-FHNG7QHV.js → chunk-5WVYD4BT.js} +1 -1
- package/dist/standalone/{chunk-6R4ROTON.js → chunk-63IQGHPL.js} +1 -1
- package/dist/standalone/{chunk-OQBYCVDK.js → chunk-6FGQ5E2B.js} +1 -1
- package/dist/standalone/{chunk-P5TMMDVW.js → chunk-6JHWSJQU.js} +1 -1
- package/dist/standalone/{chunk-OM5AXBYZ.js → chunk-6MPWC5MD.js} +1 -1
- package/dist/standalone/chunk-6RXWGRH7.js +1 -0
- package/dist/standalone/{chunk-OUEJHLUX.js → chunk-A6EGILT4.js} +1 -1
- package/dist/standalone/{chunk-ZWK2KMDB.js → chunk-AF5ERKUP.js} +1 -1
- package/dist/standalone/{chunk-FIX4YZH3.js → chunk-AGWOZ6P2.js} +1 -1
- package/dist/standalone/{chunk-U7RUITYE.js → chunk-BL4ORKKN.js} +1 -1
- package/dist/standalone/chunk-C7DRRPQQ.js +1 -0
- package/dist/standalone/{chunk-GBL7WEUY.js → chunk-CESYGLNZ.js} +1 -1
- package/dist/standalone/{chunk-OHZY3Z6U.js → chunk-CK6HFTG7.js} +1 -1
- package/dist/standalone/{chunk-R7D2S6ZG.js → chunk-CQWFDDTK.js} +1 -1
- package/dist/standalone/{chunk-QRFKR22V.js → chunk-DQHTOUUS.js} +1 -1
- package/dist/standalone/{chunk-GQYM4BFO.js → chunk-DVMO32RX.js} +1 -1
- package/dist/standalone/{chunk-XI6S7YPS.js → chunk-E5XPDR5D.js} +1 -1
- package/dist/standalone/{chunk-DIHZQ4D5.js → chunk-EASJRBTN.js} +1 -1
- package/dist/standalone/{chunk-V4UFDTTR.js → chunk-EN2PGJWN.js} +1 -1
- package/dist/standalone/{chunk-3PG4P5EM.js → chunk-F6VN7MAF.js} +1 -1
- package/dist/standalone/{chunk-2POR2UIU.js → chunk-FA46V4KR.js} +1 -1
- package/dist/standalone/{chunk-QLVYMNCS.js → chunk-FED7KM46.js} +1 -1
- package/dist/standalone/{chunk-7RZ6FOG6.js → chunk-FGWGG424.js} +1 -1
- package/dist/standalone/{chunk-S4TCG3US.js → chunk-G6N5A4TA.js} +1 -1
- package/dist/standalone/{chunk-QP3PPO4S.js → chunk-GJ6J6JZA.js} +1 -1
- package/dist/standalone/{chunk-NQNVQNER.js → chunk-GTV5WDXF.js} +1 -1
- package/dist/standalone/{chunk-JBNZ6BGE.js → chunk-GXXIGCIF.js} +1 -1
- package/dist/standalone/{chunk-AFSCX4L2.js → chunk-HDVUWQQM.js} +1 -1
- package/dist/standalone/{chunk-I2LU36YS.js → chunk-HGTKL66S.js} +1 -1
- package/dist/standalone/{chunk-H6WO3TFT.js → chunk-HPY2HNZK.js} +1 -1
- package/dist/standalone/{chunk-YBILTG2T.js → chunk-IHPSJ2PU.js} +1 -1
- package/dist/standalone/{chunk-SLUVTEPX.js → chunk-JNKH43IG.js} +1 -1
- package/dist/standalone/{chunk-LZXXQXL7.js → chunk-JYTVI62T.js} +1 -1
- package/dist/standalone/{chunk-KD6OU5GM.js → chunk-KIVY3C4V.js} +1 -1
- package/dist/standalone/{chunk-NPR6Q6JS.js → chunk-KKVPUQD2.js} +1 -1
- package/dist/standalone/chunk-KU6ZTYP4.js +9 -0
- package/dist/standalone/{chunk-GE3WXW3Y.js → chunk-MJ3WFI7T.js} +1 -1
- package/dist/standalone/{chunk-SVZOEJEA.js → chunk-MKRA2W3P.js} +1 -1
- package/dist/standalone/{chunk-U3MTI3IN.js → chunk-NR2U7C6X.js} +1 -1
- package/dist/standalone/{chunk-QGZCKYPT.js → chunk-OE6FYYDJ.js} +1 -1
- package/dist/standalone/{chunk-RI2TLT4W.js → chunk-OFURQPKP.js} +1 -1
- package/dist/standalone/{chunk-B3K4TPMS.js → chunk-OKQS3RV4.js} +1 -1
- package/dist/standalone/chunk-PHEWXIFF.js +1 -0
- package/dist/standalone/{chunk-225RE5GA.js → chunk-PQPCOO6E.js} +1 -1
- package/dist/standalone/{chunk-WBMTG4DM.js → chunk-RY2R7KP5.js} +1 -1
- package/dist/standalone/{chunk-K342KBP5.js → chunk-SAOBVEGV.js} +1 -1
- package/dist/standalone/{chunk-5EPYBABM.js → chunk-SFPHDV3R.js} +1 -1
- package/dist/standalone/{chunk-SUCU3ZAO.js → chunk-SUOPCQD7.js} +1 -1
- package/dist/standalone/{chunk-VINW46KZ.js → chunk-TRPBILYS.js} +1 -1
- package/dist/standalone/{chunk-IA25TFHO.js → chunk-VK26SQ7G.js} +1 -1
- package/dist/standalone/{chunk-RDOLNBRM.js → chunk-VOJEROA7.js} +1 -1
- package/dist/standalone/{chunk-RKS4LAKS.js → chunk-WSUUMPYP.js} +1 -1
- package/dist/standalone/{chunk-LRABO5JF.js → chunk-XSZHBDQO.js} +1 -1
- package/dist/standalone/{chunk-BMKNXB4P.js → chunk-YF7ZNDI4.js} +1 -1
- package/dist/standalone/{chunk-K2OUSI63.js → chunk-YK7KJ3B6.js} +1 -1
- package/dist/standalone/{chunk-PO3S7KA4.js → chunk-YKGW4P6U.js} +1 -1
- package/dist/standalone/{chunk-MNHPOCDO.js → chunk-YU53KJ7Y.js} +1 -1
- package/dist/standalone/{chunk-OB7U2YW6.js → chunk-ZEFFMYSN.js} +1 -1
- package/dist/standalone/chunk-ZKESOLYY.js +1 -0
- package/dist/standalone/{chunk-2OPEPZPK.js → chunk-ZMBT2OFU.js} +1 -1
- package/dist/standalone/studio.js +1 -1
- package/package.json +5 -5
- package/dist/packem_shared/studio-ySYj-BsV.mjs +0 -2
- package/dist/standalone/chunk-2TCG7CHR.js +0 -1
- package/dist/standalone/chunk-46U4572L.js +0 -1
- package/dist/standalone/chunk-B3WCNVKG.js +0 -9
- package/dist/standalone/chunk-OACO7GME.js +0 -15
- package/dist/standalone/chunk-W7TF6FTU.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import{c as M}from"react/compiler-runtime";import{createRootRoute as is,createRoute as It,createBrowserHistory as ls,createMemoryHistory as ds,createRouter as cs,useNavigate as Vt,useSearch as us,RouterProvider as fs,useRouterState as ms,Outlet as hs}from"@tanstack/react-router";import*as ct from"react";import{use as Tt,createContext as zt,useState as mt,useEffect as ut,useSyncExternalStore as ps,lazy as L,Suspense as gs}from"react";import{c as _}from"./utils-bhneXptQ.mjs";import{jsx as n,jsxs as w,Fragment as Dt}from"react/jsx-runtime";import{ErrorBoundary as bs}from"./ErrorBoundary-BWNF98VF.mjs";import{O as vs,u as xs}from"./operation-console-provider-DoloEvon.mjs";import{useT as se}from"./DEFAULT_LOCALE-A1Yg5ORA.mjs";import{LunoraError as Ot}from"@lunora/errors";import{B as ht}from"./badge-r_5B4LHP.mjs";import{I as Zt}from"./input-CXhxesPC.mjs";import{Popover as ft}from"@base-ui/react/popover";import{Cancel01Icon as ys,SidebarLeftIcon as ws}from"@hugeicons/core-free-icons";import{HugeiconsIcon as qt}from"@hugeicons/react";import{mergeProps as Ft}from"@base-ui/react/merge-props";import{useRender as Wt}from"@base-ui/react/use-render";import{cva as ks}from"class-variance-authority";import{B as Ut}from"./button-q0UYSmrn.mjs";import{Dialog as oe}from"@base-ui/react/dialog";import{Tooltip as ae}from"@base-ui/react/tooltip";import{S as Nt}from"./skeleton-DX1gfixl.mjs";import{H as Ms,u as Ns}from"./home-panel-DIaVZra4.mjs";import{g as Ss,f as Pt}from"./internal-Df43vQI0.mjs";import{o as xt}from"./use-admin-query-tlBof8Yg.mjs";import{StudioI18nProvider as Cs}from"./StudioI18nProvider-fVsCSs5L.mjs";import{v as Ps,a as _s}from"./data-view-params-DhYmAkcj.mjs";import{CommandPalette as Ts,openCommandPalette as As}from"./CommandPalette-D9ZY-qQd.mjs";import{motion as Ls}from"motion/react";import{E as Is}from"./empty-state-D7jEML_T.mjs";import{u as Rs}from"./shortcuts-B9gDaXmw.mjs";const jt="(prefers-color-scheme: dark)",Gt=()=>{try{return globalThis.localStorage}catch{return}},Es=t=>t==="system"||t==="light"||t==="dark",Kt=()=>globalThis.matchMedia,Qt="lunora-studio-theme",St=["system","light","dark"],$s=(t="system")=>{try{const e=Gt()?.getItem(Qt);return Es(e)?e:t}catch{return t}},Rt=t=>{const e=Gt();if(e!==void 0)try{e.setItem(Qt,t)}catch{}},Hs=()=>{try{return Kt()?.(jt).matches?"dark":"light"}catch{return"light"}},Bs=(t,e)=>t==="system"?e:t,Vs=t=>{let e;try{e=Kt()?.(jt)}catch{e=void 0}if(e===void 0)return()=>{};const s=a=>{t(a.matches?"dark":"light")};return e.addEventListener("change",s),()=>{e.removeEventListener("change",s)}},At=zt(null),zs=({children:t,defaultTheme:e="system"})=>{const[s,a]=mt(()=>$s(e)),[o,r]=mt(()=>Hs());ut(()=>Vs(r),[]);const i=u=>{Rt(u),a(u)},d={cycleTheme:()=>{a(u=>{const c=St[(St.indexOf(u)+1)%St.length]??u;return Rt(c),c})},resolvedTheme:Bs(s,o),setTheme:i,systemTheme:o,theme:s};return n(At,{value:d,children:t})},Ds=t=>{const e=M(3),{children:s}=t,a=Tt(At);let o;return e[0]!==s||e[1]!==a?(o=a===null?n(zs,{children:s}):s,e[0]=s,e[1]=a,e[2]=o):o=e[2],o},Os=()=>{const t=Tt(At);if(t===null)throw new Ot("INTERNAL","useTheme must be used within a <ThemeProvider>");return t};function Rn({delay:t=0,...e}){return n(ae.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}function Zs(t){const e=M(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n(ae.Root,{"data-slot":"tooltip",...s}),e[2]=s,e[3]=a):a=e[3],a}function qs(t){const e=M(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n(ae.Trigger,{"data-slot":"tooltip-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function Fs({className:t,side:e="top",sideOffset:s=4,align:a="center",alignOffset:o=0,children:r,...i}){return n(ae.Portal,{children:n(ae.Positioner,{align:a,alignOffset:o,side:e,sideOffset:s,className:"isolate z-50",children:w(ae.Popup,{"data-slot":"tooltip-content",className:_("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),...i,children:[r,n(ae.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"})]})})})}const Ws=t=>{const e=M(5),{className:s}=t;let a;e[0]!==s?(a=_("h-full w-full text-foreground",s),e[0]=s,e[1]=a):a=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=n("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]=o):o=e[2];let r;return e[3]!==a?(r=n("svg",{"aria-hidden":"true",className:a,fill:"currentColor",viewBox:"0 0 543 446",children:o}),e[3]=a,e[4]=r):r=e[4],r},Yt="lunora.studio.rulesBannerDismissed",Us=()=>{try{return globalThis.localStorage.getItem(Yt)==="1"}catch{return!1}},js=()=>{try{globalThis.localStorage.setItem(Yt,"1")}catch{}},Gs=()=>{const t=M(18),e=se(),[s,a]=mt(Ks);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{a(!0),js()},t[0]=o):o=t[0];const r=o;if(s)return null;let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=n("span",{"aria-hidden":"true",className:"text-warning",children:"⚠"}),t[1]=i):i=t[1];let l;t[2]!==e?(l=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=l):l=t[3];let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=n("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=d):d=t[4];let u;t[5]!==e?(u=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=u):u=t[6];let c;t[7]!==l||t[8]!==u?(c=w("span",{children:[l," ",d," ",u]}),t[7]=l,t[8]=u,t[9]=c):c=t[9];let m;t[10]!==e?(m=e("Dismiss"),t[10]=e,t[11]=m):m=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=n("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:n("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=h):h=t[12];let f;t[13]!==m?(f=n("button",{"aria-label":m,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:r,type:"button",children:h}),t[13]=m,t[14]=f):f=t[14];let g;return t[15]!==c||t[16]!==f?(g=w("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:[i,c,f]}),t[15]=c,t[16]=f,t[17]=g):g=t[17],g};function Ks(){return Us()}function Jt(t){const e=M(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n(ft.Root,{"data-slot":"popover",...s}),e[2]=s,e[3]=a):a=e[3],a}function Xt(t){const e=M(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n(ft.Trigger,{"data-slot":"popover-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function es({align:t="end",alignOffset:e=0,className:s,keepMounted:a=!1,side:o="bottom",sideOffset:r=6,...i}){return n(ft.Portal,{keepMounted:a,children:n(ft.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:o,sideOffset:r,children:n(ft.Popup,{className:_("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",s),"data-slot":"popover-content",...i})})})}const Ct=768;function Qs(){const t=M(2),[e,s]=mt(void 0);let a,o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{const r=globalThis.matchMedia(`(max-width: ${Ct-1}px)`),i=()=>{s(globalThis.innerWidth<Ct)};return r.addEventListener("change",i),s(globalThis.innerWidth<Ct),()=>{r.removeEventListener("change",i)}},o=[],t[0]=a,t[1]=o):(a=t[0],o=t[1]),ut(a,o),!!e}function Ys(t){const e=M(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n(oe.Root,{"data-slot":"sheet",...s}),e[2]=s,e[3]=a):a=e[3],a}function Js(t){const e=M(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n(oe.Portal,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function Xs(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("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:",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n(oe.Backdrop,{"data-slot":"sheet-overlay",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ea({className:t,children:e,side:s="right",showCloseButton:a=!0,...o}){return w(Js,{children:[n(Xs,{}),w(oe.Popup,{"data-slot":"sheet-content","data-side":s,className:_("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),...o,children:[e,a&&w(oe.Close,{"data-slot":"sheet-close",render:n(Ut,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[n(qt,{icon:ys,strokeWidth:2}),n("span",{className:"sr-only",children:"Close"})]})]})]})}function ta(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("flex flex-col gap-0.5 p-4",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("div",{"data-slot":"sheet-header",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function sa(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("text-sm font-medium text-foreground",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n(oe.Title,{"data-slot":"sheet-title",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function aa(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("text-xs/relaxed text-muted-foreground",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n(oe.Description,{"data-slot":"sheet-description",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}const oa="sidebar_state",na=3600*24*7,ra="16rem",ia="18rem",la="3rem",da="b",ts=ct.createContext(null);function yt(){const t=ct.useContext(ts);if(!t)throw new Ot("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}function ca({defaultOpen:t=!0,open:e,onOpenChange:s,className:a,style:o,children:r,...i}){const l=Qs(),[d,u]=ct.useState(!1),[c,m]=ct.useState(t),h=e??c,f=p=>{const x=typeof p=="function"?p(h):p;s?s(x):m(x),document.cookie=`${oa}=${x}; path=/; max-age=${na}`},g=()=>l?u(p=>!p):f(p=>!p),v=ct.useEffectEvent(()=>{g()});ct.useEffect(()=>{const p=x=>{x.key===da&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return globalThis.addEventListener("keydown",p),()=>globalThis.removeEventListener("keydown",p)},[]);const b={state:h?"expanded":"collapsed",open:h,setOpen:f,isMobile:l,openMobile:d,setOpenMobile:u,toggleSidebar:g};return n(ts.Provider,{value:b,children:n("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":ra,"--sidebar-width-icon":la,...o},className:_("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",a),...i,children:r})})}function ua({side:t="left",variant:e="sidebar",collapsible:s="offcanvas",className:a,children:o,dir:r,...i}){const{isMobile:l,state:d,openMobile:u,setOpenMobile:c}=yt();return s==="none"?n("div",{"data-slot":"sidebar",className:_("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",a),...i,children:o}):l?n(Ys,{open:u,onOpenChange:c,...i,children:w(ea,{dir:r,"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":ia},side:t,children:[w(ta,{className:"sr-only",children:[n(sa,{children:"Sidebar"}),n(aa,{children:"Displays the mobile sidebar."})]}),n("div",{className:"flex h-full w-full flex-col",children:o})]})}):w("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?s:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[n("div",{"data-slot":"sidebar-gap",className:_("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)")}),n("div",{"data-slot":"sidebar-container","data-side":t,className:_("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",a),...i,children:n("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:o})})]})}function fa(t){const e=M(15);let s,a,o;e[0]!==t?({className:s,onClick:a,...o}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o):(s=e[1],a=e[2],o=e[3]);const{toggleSidebar:r}=yt();let i;e[4]!==s?(i=_(s),e[4]=s,e[5]=i):i=e[5];let l;e[6]!==a||e[7]!==r?(l=m=>{a?.(m),r()},e[6]=a,e[7]=r,e[8]=l):l=e[8];let d,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=n(qt,{icon:ws,strokeWidth:2,className:"rtl:rotate-180"}),u=n("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=u):(d=e[9],u=e[10]);let c;return e[11]!==o||e[12]!==i||e[13]!==l?(c=w(Ut,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:i,onClick:l,...o,children:[d,u]}),e[11]=o,e[12]=i,e[13]=l,e[14]=c):c=e[14],c}function ma(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("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",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("main",{"data-slot":"sidebar-inset",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ha(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function pa(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ga(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("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",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function ba(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("relative flex w-full min-w-0 flex-col p-2",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function va(t){const e=M(10);let s,a,o,r;if(e[0]!==t){const{className:d,render:u,...c}=t;s=u,r=Wt,a="div",o=Ft({className:_("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",d)},c),e[0]=t,e[1]=s,e[2]=a,e[3]=o,e[4]=r}else s=e[1],a=e[2],o=e[3],r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==a||e[8]!==o?(l={defaultTagName:a,props:o,render:s,state:i},e[6]=s,e[7]=a,e[8]=o,e[9]=l):l=e[9],r(l)}function xa(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("w-full text-xs",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function Et(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("flex w-full min-w-0 flex-col gap-0",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function $t(t){const e=M(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let o;e[3]!==s?(o=_("group/menu-item relative",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==a||e[6]!==o?(r=n("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:o,...a}),e[5]=a,e[6]=o,e[7]=r):r=e[7],r}const ya=ks("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 ss({render:t,isActive:e=!1,variant:s="default",size:a="default",tooltip:o,className:r,...i}){const{isMobile:l,state:d}=yt(),u=Wt({defaultTagName:"button",props:Ft({className:_(ya({variant:s,size:a}),r)},i),render:o?n(qs,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:a,active:e}});return o?(typeof o=="string"&&(o={children:o}),w(Zs,{children:[u,n(Fs,{side:"right",align:"center",hidden:d!=="collapsed"||l,...o})]})):u}const wa=t=>t.replace("__lunora_admin__:",""),ka=()=>ps(xt.subscribe,xt.getSnapshot,xt.getSnapshot),Ma=t=>t==="error"?"destructive":t==="pending"?"secondary":"default",Na=t=>{const e=M(56),{entry:s,focused:a}=t,o=se();let r;e[0]!==a?(r=O=>{O!==null&&a&&O.scrollIntoView({block:"nearest"})},e[0]=a,e[1]=r):r=e[1];const i=r;let l;e[2]!==s.functionPath||e[3]!==s.shardKey||e[4]!==s.summary?(l=()=>{Ss(`${s.functionPath} ${s.summary}${s.shardKey===""?"":` (shard ${s.shardKey})`}`)},e[2]=s.functionPath,e[3]=s.shardKey,e[4]=s.summary,e[5]=l):l=e[5];const d=l,u=a&&"bg-accent ring-1 ring-inset ring-primary/40";let c;e[6]!==u?(c=_("border-b border-border/60 last:border-b-0",u),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==s.status?(m=Ma(s.status),e[8]=s.status,e[9]=m):m=e[9];const h=s.status==="pending"?"…":s.status;let f;e[10]!==m||e[11]!==h?(f=n(ht,{className:"mt-px shrink-0",variant:m,children:h}),e[10]=m,e[11]=h,e[12]=f):f=e[12];let g;e[13]!==s.functionPath?(g=wa(s.functionPath),e[13]=s.functionPath,e[14]=g):g=e[14];let v;e[15]!==g?(v=n("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:g}),e[15]=g,e[16]=v):v=e[16];let y;e[17]!==s.kind||e[18]!==o?(y=s.kind==="subscription"&&n(ht,{className:"shrink-0",variant:"outline",children:o("live")}),e[17]=s.kind,e[18]=o,e[19]=y):y=e[19];let b;e[20]!==s.summary?(b=s.summary!==""&&n("span",{className:"min-w-0 truncate text-muted-foreground",children:s.summary}),e[20]=s.summary,e[21]=b):b=e[21];let p;e[22]!==s.shardKey?(p=s.shardKey!==""&&n("span",{className:"font-mono",children:s.shardKey}),e[22]=s.shardKey,e[23]=p):p=e[23];let x;e[24]!==s.resultCount||e[25]!==o?(x=s.resultCount!==void 0&&n("span",{children:o("{count} rows",{count:s.resultCount})}),e[24]=s.resultCount,e[25]=o,e[26]=x):x=e[26];let k;e[27]!==s.pushes||e[28]!==o?(k=s.pushes!==void 0&&s.pushes>0&&n("span",{children:o("{count} pushes",{count:s.pushes})}),e[27]=s.pushes,e[28]=o,e[29]=k):k=e[29];let P;e[30]!==s.durationMs?(P=s.durationMs!==void 0&&w("span",{children:[s.durationMs,"ms"]}),e[30]=s.durationMs,e[31]=P):P=e[31];let C;e[32]!==o?(C=o("Copy"),e[32]=o,e[33]=C):C=e[33];let S;e[34]!==d||e[35]!==C?(S=n("button",{"aria-label":C,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:d,type:"button",children:"⧉"}),e[34]=d,e[35]=C,e[36]=S):S=e[36];let N;e[37]!==p||e[38]!==x||e[39]!==k||e[40]!==P||e[41]!==S?(N=w("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[p,x,k,P,S]}),e[37]=p,e[38]=x,e[39]=k,e[40]=P,e[41]=S,e[42]=N):N=e[42];let T;e[43]!==y||e[44]!==b||e[45]!==N||e[46]!==f||e[47]!==v?(T=w("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[f,v,y,b,N]}),e[43]=y,e[44]=b,e[45]=N,e[46]=f,e[47]=v,e[48]=T):T=e[48];let A;e[49]!==s.error?(A=s.error!==void 0&&n("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:s.error}),e[49]=s.error,e[50]=A):A=e[50];let I;return e[51]!==i||e[52]!==T||e[53]!==A||e[54]!==c?(I=w("li",{className:c,"data-testid":"oc-row",ref:i,children:[T,A]}),e[51]=i,e[52]=T,e[53]=A,e[54]=c,e[55]=I):I=e[55],I},Sa=t=>{const e=M(62),{focusSeq:s,onClose:a,onShownChange:o,shown:r}=t,i=se(),l=ka(),[d,u]=mt("");let c;if(e[0]!==l||e[1]!==s||e[2]!==d||e[3]!==a||e[4]!==o||e[5]!==r||e[6]!==i){const m=d.trim().toLowerCase(),h=l.filter(E=>(r==="errors"?E.status==="error":!0)&&(m===""||`${E.functionPath} ${E.summary} ${E.shardKey}`.toLowerCase().includes(m))).toReversed();let f;e[8]!==l?(f=l.filter(Ca),e[8]=l,e[9]=f):f=e[9];const g=f.length;let v;e[10]!==i?(v=i("Operation console"),e[10]=i,e[11]=v):v=e[11];let y;e[12]!==i?(y=i("Operation console"),e[12]=i,e[13]=y):y=e[13];let b;e[14]!==y?(b=n("span",{className:"text-xs font-medium",children:y}),e[14]=y,e[15]=b):b=e[15];let p;e[16]!==l.length||e[17]!==i?(p=i("{count} calls",{count:l.length}),e[16]=l.length,e[17]=i,e[18]=p):p=e[18];let x;e[19]!==p?(x=n(ht,{variant:"secondary",children:p}),e[19]=p,e[20]=x):x=e[20];let k;e[21]!==g||e[22]!==i?(k=g>0&&n(ht,{variant:"destructive",children:i("{count} failed",{count:g})}),e[21]=g,e[22]=i,e[23]=k):k=e[23];const P=r==="errors",C=r==="errors"&&"bg-accent";let S;e[24]!==C?(S=_("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",C),e[24]=C,e[25]=S):S=e[25];let N;e[26]!==o||e[27]!==r?(N=()=>{o(r==="errors"?"all":"errors")},e[26]=o,e[27]=r,e[28]=N):N=e[28];let T;e[29]!==i?(T=i("Errors"),e[29]=i,e[30]=T):T=e[30];let A;e[31]!==S||e[32]!==N||e[33]!==T||e[34]!==P?(A=n("button",{"aria-pressed":P,className:S,"data-testid":"oc-filter-errors",onClick:N,type:"button",children:T}),e[31]=S,e[32]=N,e[33]=T,e[34]=P,e[35]=A):A=e[35];let I;e[36]!==i?(I=i("Filter"),e[36]=i,e[37]=I):I=e[37];let O;e[38]===Symbol.for("react.memo_cache_sentinel")?(O=E=>{u(E.target.value)},e[38]=O):O=e[38];let B;e[39]!==i?(B=i("Filter"),e[39]=i,e[40]=B):B=e[40];let V;e[41]!==d||e[42]!==I||e[43]!==B?(V=n(Zt,{"aria-label":I,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:O,placeholder:B,value:d}),e[41]=d,e[42]=I,e[43]=B,e[44]=V):V=e[44];let z;e[45]!==i?(z=i("Clear"),e[45]=i,e[46]=z):z=e[46];let $;e[47]!==z?($=n("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:Pa,type:"button",children:z}),e[47]=z,e[48]=$):$=e[48];let H;e[49]!==i?(H=i("Hide"),e[49]=i,e[50]=H):H=e[50];let D;e[51]!==a||e[52]!==H?(D=n("button",{"aria-label":H,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:a,type:"button",children:"✕"}),e[51]=a,e[52]=H,e[53]=D):D=e[53];let Z;e[54]!==A||e[55]!==V||e[56]!==$||e[57]!==D||e[58]!==b||e[59]!==x||e[60]!==k?(Z=w("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,x,k,A,V,$,D]}),e[54]=A,e[55]=V,e[56]=$,e[57]=D,e[58]=b,e[59]=x,e[60]=k,e[61]=Z):Z=e[61],c=w("section",{"aria-label":v,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[Z,h.length===0?n("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:i("Every admin call this studio makes is recorded here.")}):n("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:h.map(E=>n(Na,{entry:E,focused:E.seq===s},E.seq))})]}),e[0]=l,e[1]=s,e[2]=d,e[3]=a,e[4]=o,e[5]=r,e[6]=i,e[7]=c}else c=e[7];return c};function Ca(t){return t.status==="error"}function Pa(){xt.clear()}const _a=()=>{const t=M(328),e=se();let s;t[0]!==e?(s=e("Health score"),t[0]=e,t[1]=s):s=t[1];let a;t[2]!==e?(a=e("Agents"),t[2]=e,t[3]=a):a=t[3];let o;t[4]!==e?(o=e("Evals"),t[4]=e,t[5]=o):o=t[5];let r;t[6]!==e?(r=e("AI usage"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==e?(i=e("Analytics"),t[8]=e,t[9]=i):i=t[9];let l;t[10]!==e?(l=e("API"),t[10]=e,t[11]=l):l=t[11];let d;t[12]!==e?(d=e("Architecture"),t[12]=e,t[13]=d):d=t[13];let u;t[14]!==e?(u=e("Audit"),t[14]=e,t[15]=u):u=t[15];let c;t[16]!==e?(c=e("Auth audit"),t[16]=e,t[17]=c):c=t[17];let m;t[18]!==e?(m=e("Configuration"),t[18]=e,t[19]=m):m=t[19];let h;t[20]!==e?(h=e("Sessions"),t[20]=e,t[21]=h):h=t[21];let f;t[22]!==e?(f=e("Containers"),t[22]=e,t[23]=f):f=t[23];let g;t[24]!==e?(g=e("Dashboards"),t[24]=e,t[25]=g):g=t[25];let v;t[26]!==e?(v=e("Data"),t[26]=e,t[27]=v):v=t[27];let y;t[28]!==e?(y=e("Deployment health"),t[28]=e,t[29]=y):y=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 x;t[34]!==e?(x=e("Fan-out"),t[34]=e,t[35]=x):x=t[35];let k;t[36]!==e?(k=e("Files"),t[36]=e,t[37]=k):k=t[37];let P;t[38]!==e?(P=e("Flags"),t[38]=e,t[39]=P):P=t[39];let C;t[40]!==e?(C=e("Functions"),t[40]=e,t[41]=C):C=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 T;t[46]!==e?(T=e("Performance"),t[46]=e,t[47]=T):T=t[47];let A;t[48]!==e?(A=e("Issues"),t[48]=e,t[49]=A):A=t[49];let I;t[50]!==e?(I=e("KV"),t[50]=e,t[51]=I):I=t[51];let O;t[52]!==e?(O=e("Logs"),t[52]=e,t[53]=O):O=t[53];let B;t[54]!==e?(B=e("Metrics"),t[54]=e,t[55]=B):B=t[55];let V;t[56]!==e?(V=e("Migrations"),t[56]=e,t[57]=V):V=t[57];let z;t[58]!==e?(z=e("Notifications"),t[58]=e,t[59]=z):z=t[59];let $;t[60]!==e?($=e("Organizations"),t[60]=e,t[61]=$):$=t[61];let H;t[62]!==e?(H=e("Time Travel"),t[62]=e,t[63]=H):H=t[63];let D;t[64]!==e?(D=e("Mail"),t[64]=e,t[65]=D):D=t[65];let Z;t[66]!==e?(Z=e("Payments"),t[66]=e,t[67]=Z):Z=t[67];let E;t[68]!==e?(E=e("Permissions"),t[68]=e,t[69]=E):E=t[69];let q;t[70]!==e?(q=e("Queues"),t[70]=e,t[71]=q):q=t[71];let ee;t[72]!==e?(ee=e("Reactors"),t[72]=e,t[73]=ee):ee=t[73];let F;t[74]!==e?(F=e("Realtime"),t[74]=e,t[75]=F):F=t[75];let Y;t[76]!==e?(Y=e("RLS Policies"),t[76]=e,t[77]=Y):Y=t[77];let te;t[78]!==e?(te=e("Scheduled"),t[78]=e,t[79]=te):te=t[79];let W;t[80]!==e?(W=e("Schema"),t[80]=e,t[81]=W):W=t[81];let U;t[82]!==e?(U=e("Security"),t[82]=e,t[83]=U):U=t[83];let j;t[84]!==e?(j=e("Settings"),t[84]=e,t[85]=j):j=t[85];let G;t[86]!==e?(G=e("SQL editor"),t[86]=e,t[87]=G):G=t[87];let K;t[88]!==e?(K=e("Traces"),t[88]=e,t[89]=K):K=t[89];let J;t[90]!==e?(J=e("Access Rules"),t[90]=e,t[91]=J):J=t[91];let Q;t[92]!==e?(Q=e("Users"),t[92]=e,t[93]=Q):Q=t[93];let X;t[94]!==e?(X=e("Vectors"),t[94]=e,t[95]=X):X=t[95];let ne;t[96]!==e?(ne=e("Workflows"),t[96]=e,t[97]=ne):ne=t[97];let pt;t[98]!==s||t[99]!==a||t[100]!==h||t[101]!==f||t[102]!==g||t[103]!==v||t[104]!==y||t[105]!==b||t[106]!==p||t[107]!==x||t[108]!==k||t[109]!==P||t[110]!==o||t[111]!==C||t[112]!==S||t[113]!==N||t[114]!==T||t[115]!==A||t[116]!==I||t[117]!==O||t[118]!==B||t[119]!==V||t[120]!==z||t[121]!==r||t[122]!==$||t[123]!==H||t[124]!==D||t[125]!==Z||t[126]!==E||t[127]!==q||t[128]!==ee||t[129]!==F||t[130]!==Y||t[131]!==te||t[132]!==i||t[133]!==W||t[134]!==U||t[135]!==j||t[136]!==G||t[137]!==K||t[138]!==J||t[139]!==Q||t[140]!==X||t[141]!==ne||t[142]!==l||t[143]!==d||t[144]!==u||t[145]!==c||t[146]!==m?(pt={advisorHealth:s,agents:a,evals:o,aiUsage:r,analytics:i,api:l,architecture:d,audit:u,authAudit:c,authConfig:m,authSessions:h,containers:f,dashboards:g,data:v,deploymentHealth:y,drains:b,export:p,fanout:x,files:k,flags:P,functions:C,health:S,home:N,insights:T,issues:A,kv:I,logs:O,metrics:B,migrations:V,notifications:z,organizations:$,pitr:H,mail:D,payments:Z,permissions:E,queues:q,reactors:ee,realtime:F,rls:Y,schedule:te,schema:W,security:U,settings:j,sql:G,traces:K,storageRules:J,users:Q,vectors:X,workflows:ne},t[98]=s,t[99]=a,t[100]=h,t[101]=f,t[102]=g,t[103]=v,t[104]=y,t[105]=b,t[106]=p,t[107]=x,t[108]=k,t[109]=P,t[110]=o,t[111]=C,t[112]=S,t[113]=N,t[114]=T,t[115]=A,t[116]=I,t[117]=O,t[118]=B,t[119]=V,t[120]=z,t[121]=r,t[122]=$,t[123]=H,t[124]=D,t[125]=Z,t[126]=E,t[127]=q,t[128]=ee,t[129]=F,t[130]=Y,t[131]=te,t[132]=i,t[133]=W,t[134]=U,t[135]=j,t[136]=G,t[137]=K,t[138]=J,t[139]=Q,t[140]=X,t[141]=ne,t[142]=l,t[143]=d,t[144]=u,t[145]=c,t[146]=m,t[147]=pt):pt=t[147];const wt=pt;let re;t[148]!==e?(re=e("Advisors"),t[148]=e,t[149]=re):re=t[149];let ie;t[150]!==e?(ie=e("Auth"),t[150]=e,t[151]=ie):ie=t[151];let le;t[152]!==e?(le=e("Database"),t[152]=e,t[153]=le):le=t[153];let de;t[154]!==e?(de=e("Functions"),t[154]=e,t[155]=de):de=t[155];let ce;t[156]!==e?(ce=e("Observability"),t[156]=e,t[157]=ce):ce=t[157];let ue;t[158]!==e?(ue=e("Operations"),t[158]=e,t[159]=ue):ue=t[159];let fe;t[160]!==e?(fe=e("Overview"),t[160]=e,t[161]=fe):fe=t[161];let me;t[162]!==e?(me=e("Settings"),t[162]=e,t[163]=me):me=t[163];let he;t[164]!==e?(he=e("Storage"),t[164]=e,t[165]=he):he=t[165];let gt;t[166]!==re||t[167]!==ie||t[168]!==le||t[169]!==de||t[170]!==ce||t[171]!==ue||t[172]!==fe||t[173]!==me||t[174]!==he?(gt={advisors:re,auth:ie,database:le,functions:de,observability:ce,operations:ue,overview:fe,settings:me,storage:he},t[166]=re,t[167]=ie,t[168]=le,t[169]=de,t[170]=ce,t[171]=ue,t[172]=fe,t[173]=me,t[174]=he,t[175]=gt):gt=t[175];const kt=gt;let pe;t[176]!==e?(pe=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[176]=e,t[177]=pe):pe=t[177];let ge;t[178]!==e?(ge=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[178]=e,t[179]=ge):ge=t[179];let be;t[180]!==e?(be=e("Scores recorded by recordEvaluation — the latest verdict per eval, its trend, and the graded runs behind it."),t[180]=e,t[181]=be):be=t[181];let ve;t[182]!==e?(ve=e("Tokens and spend from ctx.ai.model calls — totals, per function and per model, and the recent calls behind them."),t[182]=e,t[183]=ve):ve=t[183];let xe;t[184]!==e?(xe=e("Usage and latency from Analytics Engine — request volume, p50/p95, and hot shards."),t[184]=e,t[185]=xe):xe=t[185];let ye;t[186]!==e?(ye=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[186]=e,t[187]=ye):ye=t[187];let we;t[188]!==e?(we=e("A durable log of admin state-changing operations."),t[188]=e,t[189]=we):we=t[189];let ke;t[190]!==e?(ke=e("Authentication and security events — sign-ins, MFA, and session changes."),t[190]=e,t[191]=ke):ke=t[191];let Me;t[192]!==e?(Me=e("Enabled plugins and session config (read-only)."),t[192]=e,t[193]=Me):Me=t[193];let Ne;t[194]!==e?(Ne=e("Your modules, and the calls, reads, writes and hand-offs between them, from codegen."),t[194]=e,t[195]=Ne):Ne=t[195];let Se;t[196]!==e?(Se=e("Browse and revoke active sessions across all users."),t[196]=e,t[197]=Se):Se=t[197];let Ce;t[198]!==e?(Ce=e("Live Cloudflare Containers — current lifecycle state per instance from the log stream."),t[198]=e,t[199]=Ce):Ce=t[199];let Pe;t[200]!==e?(Pe=e("Chart widgets backed by saved read-only SQL queries."),t[200]=e,t[201]=Pe):Pe=t[201];let _e;t[202]!==e?(_e=e("Browse and edit rows across your shard and global tables."),t[202]=e,t[203]=_e):_e=t[203];let Te;t[204]!==e?(Te=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[204]=e,t[205]=Te):Te=t[205];let Ae;t[206]!==e?(Ae=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[206]=e,t[207]=Ae):Ae=t[207];let Le;t[208]!==e?(Le=e("Export a shard to NDJSON, or import rows from it."),t[208]=e,t[209]=Le):Le=t[209];let Ie;t[210]!==e?(Ie=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[210]=e,t[211]=Ie):Ie=t[211];let Re;t[212]!==e?(Re=e("Browse objects in your R2 storage buckets."),t[212]=e,t[213]=Re):Re=t[213];let Ee;t[214]!==e?(Ee=e("Inspect feature flags and their live evaluation under a targeting context."),t[214]=e,t[215]=Ee):Ee=t[215];let $e;t[216]!==e?($e=e("Run registered queries, mutations, and actions."),t[216]=e,t[217]=$e):$e=t[217];let He;t[218]!==e?(He=e("At-a-glance connection, error, and shard signals."),t[218]=e,t[219]=He):He=t[219];let Be;t[220]!==e?(Be=e("Connection, health, and advisor summary for your deployment."),t[220]=e,t[221]=Be):Be=t[221];let Ve;t[222]!==e?(Ve=e("Surface slow functions, error spikes, and cache problems."),t[222]=e,t[223]=Ve):Ve=t[223];let ze;t[224]!==e?(ze=e("Grouped error triage — Worker throws and container crashes folded by fingerprint."),t[224]=e,t[225]=ze):ze=t[225];let De;t[226]!==e?(De=e("A live stream of recent function logs."),t[226]=e,t[227]=De):De=t[227];let Oe;t[228]!==e?(Oe=e("Per-shard health and aggregate metrics."),t[228]=e,t[229]=Oe):Oe=t[229];let Ze;t[230]!==e?(Ze=e("Review migration status and run them."),t[230]=e,t[231]=Ze):Ze=t[231];let qe;t[232]!==e?(qe=e("Registered push devices — endpoint, kind, last-send status, and delivery errors."),t[232]=e,t[233]=qe):qe=t[233];let Fe;t[234]!==e?(Fe=e("Browse and manage organizations, members, and invitations."),t[234]=e,t[235]=Fe):Fe=t[235];let We;t[236]!==e?(We=e("Restore a shard to a point in the last 30 days."),t[236]=e,t[237]=We):We=t[237];let Ue;t[238]!==e?(Ue=e("Email your app sent, captured in dev."),t[238]=e,t[239]=Ue):Ue=t[239];let je;t[240]!==e?(je=e("Synced customers, subscriptions, and webhook events."),t[240]=e,t[241]=je):je=t[241];let Ge;t[242]!==e?(Ge=e("Inspect access policies per table, and probe a function as any identity."),t[242]=e,t[243]=Ge):Ge=t[243];let Ke;t[244]!==e?(Ke=e("Inspect declared Cloudflare Queues — their producer bindings, consumer mode, and dead-letter queue."),t[244]=e,t[245]=Ke):Ke=t[245];let Qe;t[246]!==e?(Qe=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[246]=e,t[247]=Qe):Qe=t[247];let Ye;t[248]!==e?(Ye=e("Active WebSocket subscriptions on this shard."),t[248]=e,t[249]=Ye):Ye=t[249];let Je;t[250]!==e?(Je=e("Inspect row-level-security policies and roles, per table."),t[250]=e,t[251]=Je):Je=t[251];let Xe;t[252]!==e?(Xe=e("Inspect and cancel scheduled jobs."),t[252]=e,t[253]=Xe):Xe=t[253];let et;t[254]!==e?(et=e("Inspect each table and its columns."),t[254]=e,t[255]=et):et=t[255];let tt;t[256]!==e?(tt=e("Review admin gates, credentials, and log redaction."),t[256]=e,t[257]=tt):tt=t[257];let st;t[258]!==e?(st=e("Read-only deployment config — vars, secrets, and bindings."),t[258]=e,t[259]=st):st=t[259];let at;t[260]!==e?(at=e("Run read-only SQL against a shard."),t[260]=e,t[261]=at):at=t[261];let ot;t[262]!==e?(ot=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[262]=e,t[263]=ot):ot=t[263];let nt;t[264]!==e?(nt=e("Inspect storage access rules — per bucket, operation, and key prefix."),t[264]=e,t[265]=nt):nt=t[265];let rt;t[266]!==e?(rt=e("Recent ctx.trace waterfalls for this shard — the drill-down from a log line."),t[266]=e,t[267]=rt):rt=t[267];let it;t[268]!==e?(it=e("Manage auth users — roles, bans, sessions, and identity."),t[268]=e,t[269]=it):it=t[269];let lt;t[270]!==e?(lt=e("Browse Vectorize indexes and run similarity searches."),t[270]=e,t[271]=lt):lt=t[271];let dt;t[272]!==e?(dt=e("Inspect declared Cloudflare Workflows and their bindings."),t[272]=e,t[273]=dt):dt=t[273];let bt;t[274]!==tt||t[275]!==st||t[276]!==at||t[277]!==ot||t[278]!==nt||t[279]!==rt||t[280]!==it||t[281]!==lt||t[282]!==dt||t[283]!==pe||t[284]!==ge||t[285]!==be||t[286]!==ve||t[287]!==xe||t[288]!==ye||t[289]!==we||t[290]!==ke||t[291]!==Me||t[292]!==Ne||t[293]!==Se||t[294]!==Ce||t[295]!==Pe||t[296]!==_e||t[297]!==Te||t[298]!==Ae||t[299]!==Le||t[300]!==Ie||t[301]!==Re||t[302]!==Ee||t[303]!==$e||t[304]!==He||t[305]!==Be||t[306]!==Ve||t[307]!==ze||t[308]!==De||t[309]!==Oe||t[310]!==Ze||t[311]!==qe||t[312]!==Fe||t[313]!==We||t[314]!==Ue||t[315]!==je||t[316]!==Ge||t[317]!==Ke||t[318]!==Qe||t[319]!==Ye||t[320]!==Je||t[321]!==Xe||t[322]!==et?(bt={advisorHealth:pe,agents:ge,evals:be,aiUsage:ve,analytics:xe,api:ye,audit:we,authAudit:ke,authConfig:Me,architecture:Ne,authSessions:Se,containers:Ce,dashboards:Pe,data:_e,deploymentHealth:Te,drains:Ae,export:Le,fanout:Ie,files:Re,flags:Ee,functions:$e,health:He,home:Be,insights:Ve,issues:ze,logs:De,metrics:Oe,migrations:Ze,notifications:qe,organizations:Fe,pitr:We,mail:Ue,payments:je,permissions:Ge,queues:Ke,reactors:Qe,realtime:Ye,rls:Je,schedule:Xe,schema:et,security:tt,settings:st,sql:at,kv:ot,storageRules:nt,traces:rt,users:it,vectors:lt,workflows:dt},t[274]=tt,t[275]=st,t[276]=at,t[277]=ot,t[278]=nt,t[279]=rt,t[280]=it,t[281]=lt,t[282]=dt,t[283]=pe,t[284]=ge,t[285]=be,t[286]=ve,t[287]=xe,t[288]=ye,t[289]=we,t[290]=ke,t[291]=Me,t[292]=Ne,t[293]=Se,t[294]=Ce,t[295]=Pe,t[296]=_e,t[297]=Te,t[298]=Ae,t[299]=Le,t[300]=Ie,t[301]=Re,t[302]=Ee,t[303]=$e,t[304]=He,t[305]=Be,t[306]=Ve,t[307]=ze,t[308]=De,t[309]=Oe,t[310]=Ze,t[311]=qe,t[312]=Fe,t[313]=We,t[314]=Ue,t[315]=je,t[316]=Ge,t[317]=Ke,t[318]=Qe,t[319]=Ye,t[320]=Je,t[321]=Xe,t[322]=et,t[323]=bt):bt=t[323];const Mt=bt;let vt;return t[324]!==kt||t[325]!==Mt||t[326]!==wt?(vt={groupLabel:kt,tabDescription:Mt,tabLabel:wt},t[324]=kt,t[325]=Mt,t[326]=wt,t[327]=vt):vt=t[327],vt},Ta=()=>{const t=M(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=w("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:[n("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),n("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},Aa=()=>{const t=M(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=w("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:[n("circle",{cx:"12",cy:"12",r:"4"}),n("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=()=>{const t=M(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n("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:n("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=[{Icon:Ta,value:"system"},{Icon:Aa,value:"light"},{Icon:La,value:"dark"}],Ra=()=>{const t=M(19),{theme:e,setTheme:s}=Os(),a=se();let o;t[0]!==a?(o=a("Dark theme"),t[0]=a,t[1]=o):o=t[1];let r;t[2]!==a?(r=a("Light theme"),t[2]=a,t[3]=r):r=t[3];let i;t[4]!==a?(i=a("System theme"),t[4]=a,t[5]=i):i=t[5];let l;t[6]!==o||t[7]!==r||t[8]!==i?(l={dark:o,light:r,system:i},t[6]=o,t[7]=r,t[8]=i,t[9]=l):l=t[9];const d=l;let u;t[10]!==a?(u=a("Theme"),t[10]=a,t[11]=u):u=t[11];let c;t[12]!==d||t[13]!==s||t[14]!==e?(c=Ia.map(h=>{const{Icon:f,value:g}=h,v=e===g;return w("button",{"aria-checked":v,"aria-label":d[g],className:_("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",v?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${g}`,onClick:()=>{s(g)},role:"radio",title:d[g],type:"button",children:[v&&n(Ls.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"}}),n("span",{className:"relative",children:n(f,{})})]},g)}),t[12]=d,t[13]=s,t[14]=e,t[15]=c):c=t[15];let m;return t[16]!==u||t[17]!==c?(m=n("div",{"aria-label":u,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:c}),t[16]=u,t[17]=c,t[18]=m):m=t[18],m},Ea=t=>{const e=M(23),{domain:s,onOpenCommandPalette:a,page:o}=t,r=se();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n(fa,{className:"-ms-1"}),e[0]=i):i=e[0];let l;e[1]!==r?(l=r("Breadcrumb"),e[1]=r,e[2]=l):l=e[2];let d;e[3]!==s?(d=n("span",{className:"text-muted-foreground",children:s}),e[3]=s,e[4]=d):d=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=n("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:n("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=u):u=e[5];let c;e[6]!==o?(c=n("span",{className:"font-medium text-foreground",children:o}),e[6]=o,e[7]=c):c=e[7];let m;e[8]!==l||e[9]!==d||e[10]!==c?(m=w("nav",{"aria-label":l,className:"flex items-center gap-1.5 text-[13px]",children:[d,u,c]}),e[8]=l,e[9]=d,e[10]=c,e[11]=m):m=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=w("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[n("circle",{cx:"11",cy:"11",r:"7"}),n("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=h):h=e[12];let f;e[13]!==r?(f=r("Search…"),e[13]=r,e[14]=f):f=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=n("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"⌘K"}),e[15]=g):g=e[15];let v;e[16]!==a||e[17]!==f?(v=w("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:a,type:"button",children:[h,f,g]}),e[16]=a,e[17]=f,e[18]=v):v=e[18];let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=n("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:n(Ra,{})}),e[19]=y):y=e[19];let b;return e[20]!==v||e[21]!==m?(b=w("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[i,m,v,y]}),e[20]=v,e[21]=m,e[22]=b):b=e[22],b},$a={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"},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"}},Ha={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"},Ba={kind:"hidden"},Ht={kind:"ok"},Va={kind:"pending"},as=(t,e,s)=>{const a=$a[t];return a?.feature!==void 0&&!e[a.feature]?Ba:a?.capability===void 0?Ht:e.settled?e.platform?.unsupported.includes(a.capability)===!0?{kind:"unavailable",reason:s("{capability} is not supported on {platform}.",{capability:s(Ha[a.capability]),platform:e.platform.name})}:Ht:Va},za=(t,e,s)=>{const a={},o=[];for(const r of t){const i=[];for(const l of r.tabs){const d=as(l,e,s);d.kind!=="hidden"&&i.push(l),d.kind==="unavailable"&&(a[l]=d.reason)}i.length>0&&o.push({...r,tabs:i})}return{unavailable:a,visibleGroups:o}},Da=t=>{const e=M(3),{reason:s,title:a}=t;let o;return e[0]!==s||e[1]!==a?(o=n(Is,{description:s,testId:"dash-unsupported",title:a}),e[0]=s,e[1]=a,e[2]=o):o=e[2],o},Oa=t=>{const e=M(4),{console:s}=Rs();let a,o;e[0]!==s||e[1]!==t?(a=()=>{if(t===void 0)return;const r=i=>{if(!i.ctrlKey||i.metaKey||i.altKey||i.shiftKey||i.repeat||i.key.toLowerCase()!==s)return;const{target:l}=i;l instanceof HTMLElement&&(l.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(l.tagName))||(i.preventDefault(),t())};return globalThis.addEventListener("keydown",r),()=>{globalThis.removeEventListener("keydown",r)}},o=[s,t],e[0]=s,e[1]=t,e[2]=a,e[3]=o):(a=e[2],o=e[3]),ut(a,o)},R=(t,e)=>L(()=>t().then(s=>({default:s[e]}))),Za=R(()=>import("../packem_chunks/InsightsPanel.mjs"),"InsightsPanel"),qa=L(()=>import("../packem_chunks/rls-panel.mjs")),Fa=L(()=>import("../packem_chunks/AdvisorHealthPanel.mjs")),Wa=L(()=>import("../packem_chunks/SecurityAdvisorPanel.mjs")),Ua=L(()=>import("../packem_chunks/agents-panel.mjs")),ja=R(()=>import("../packem_chunks/analytics-panel.mjs"),"AnalyticsPanel"),Ga=L(()=>import("../packem_chunks/ApiTab.mjs")),Ka=L(()=>import("../packem_chunks/architecture-panel.mjs")),Qa=L(()=>import("../packem_chunks/auth-audit-panel.mjs")),Ya=L(()=>import("../packem_chunks/auth-config-panel.mjs")),Ja=L(()=>import("../packem_chunks/auth-sessions-panel.mjs")),Xa=L(()=>import("../packem_chunks/organizations-panel.mjs")),eo=R(()=>import("../packem_chunks/users-panel.mjs"),"UsersPanel"),to=L(()=>import("../packem_chunks/containers-panel.mjs")),so=R(()=>import("../packem_chunks/DeploymentHealthPanel.mjs"),"DeploymentHealthPanel"),ao=R(()=>import("../packem_chunks/TableEditor.mjs"),"TableEditor"),oo=R(()=>import("../packem_chunks/ExportImportPanel.mjs"),"ExportImportPanel"),no=L(()=>import("../packem_chunks/migrations-route.mjs")),ro={data:_s,migrations:Ps},io=R(()=>import("../packem_chunks/PitrPanel.mjs"),"PitrPanel"),lo=L(()=>import("../packem_chunks/flags-panel.mjs")),co=L(()=>import("../packem_chunks/reactors-panel.mjs")),uo=R(()=>import("../packem_chunks/FunctionRunner.mjs"),"FunctionRunner"),fo=R(()=>import("../packem_chunks/FunctionStatsPanel.mjs"),"FunctionStatsPanel"),mo=L(()=>import("../packem_chunks/issues-panel.mjs")),ho=R(()=>import("../packem_chunks/AuditPanel.mjs"),"AuditPanel"),po=L(()=>import("../packem_chunks/log-drains-panel.mjs")),go=L(()=>import("../packem_chunks/LogsPanel.mjs").then(t=>({default:t.LogsPanel}))),bo=R(()=>import("../packem_chunks/MailPanel.mjs"),"MailPanel"),vo=R(()=>import("../packem_chunks/schedule-panel.mjs"),"SchedulePanel"),xo=L(()=>import("../packem_chunks/subscriptions-panel.mjs")),yo=L(()=>import("../packem_chunks/sync-client-panel.mjs")),wo=R(()=>import("../packem_chunks/kv-browser.mjs"),"KvBrowser"),ko=L(()=>import("../packem_chunks/NotificationsPanel.mjs")),Mo=R(()=>import("../packem_chunks/payments-panel.mjs"),"PaymentsPanel"),No=R(()=>import("../packem_chunks/permissions-panel.mjs"),"PermissionsPanel"),So=L(()=>import("../packem_chunks/queues-panel.mjs")),Co=L(()=>import("../packem_chunks/dashboards-panel.mjs")),Po=L(()=>import("../packem_chunks/fanout-panel.mjs")),_o=R(()=>import("../packem_chunks/HealthPanel.mjs"),"HealthPanel"),To=R(()=>import("../packem_chunks/MetricsPanel.mjs"),"MetricsPanel"),Ao=R(()=>import("../packem_chunks/SchemaViewer.mjs"),"SchemaViewer"),Lo=R(()=>import("../packem_chunks/SettingsPanel.mjs"),"SettingsPanel"),Io=R(()=>import("../packem_chunks/SqlEditorPanel.mjs"),"SqlEditorPanel"),Ro=R(()=>import("../packem_chunks/FileBrowser.mjs"),"FileBrowser"),Eo=L(()=>import("../packem_chunks/storage-rules-panel.mjs")),$o=L(()=>import("../packem_chunks/traces-panel.mjs")),Ho=L(()=>import("../packem_chunks/evals-panel.mjs")),Bo=L(()=>import("../packem_chunks/ai-usage-panel.mjs")),Vo=R(()=>import("../packem_chunks/vector-browser.mjs"),"VectorBrowser"),zo=L(()=>import("../packem_chunks/workflows-panel.mjs")),os=zt(null),Do={analytics:n("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:n("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),architecture:n("path",{d:"M4 4h6v5H4V4Zm10 0h6v5h-6V4ZM9 15h6v5H9v-5ZM7 9v3h10V9M12 12v3"}),audit:n("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:n("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:n("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:n("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:n("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:n("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:n("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:n("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:n("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:n("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:n("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:n("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:n("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:n("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:n("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:n("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:n("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:n("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:n("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:n("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:n("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:n("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:n("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:n("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:n("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:n("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:n("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:n("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:n("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:n("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:n("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:n("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:n("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:n("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:n("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:n("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:n("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:n("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:n("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:n("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:n("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:n("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:n("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:n("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:n("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:n("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Bt=[{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"]},{key:"settings",tabs:["settings"]}],_t=t=>{const e=M(2),{tab:s}=t,a=Do[s];let o;return e[0]!==a?(o=n("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:a}),e[0]=a,e[1]=o):o=e[1],o},Oo=t=>t,ns=Oo(["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","settings"]),Zo=new Set(["api","data","migrations","sql"]),qo=t=>{const e=t.split("/").findLast(Boolean)??"";return ns.includes(e)?e:"home"},Fo=t=>{const e=M(19),{chrome:s,connected:a}=t,o=se();let r;e[0]!==o?(r=o("admin token"),e[0]=o,e[1]=r):r=e[1];let i;e[2]!==r?(i=n("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:r}),e[2]=r,e[3]=i):i=e[3];let l;e[4]!==s.onTokenChange||e[5]!==s.token?(l=n(Zt,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:s.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:s.token}),e[4]=s.onTokenChange,e[5]=s.token,e[6]=l):l=e[6];let d;e[7]!==a||e[8]!==o?(d=a&&w("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[n("span",{"aria-hidden":"true",className:"text-warning",children:"⚠"}),o("Token rides the WebSocket URL — it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=a,e[8]=o,e[9]=d):d=e[9];let u;e[10]!==s.clearToken||e[11]!==a||e[12]!==o?(u=a&&n("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:s.clearToken,type:"button",children:o("Clear")}),e[10]=s.clearToken,e[11]=a,e[12]=o,e[13]=u):u=e[13];let c;return e[14]!==i||e[15]!==l||e[16]!==d||e[17]!==u?(c=w("div",{className:"flex flex-col gap-2",children:[i,l,d,u]}),e[14]=i,e[15]=l,e[16]=d,e[17]=u,e[18]=c):c=e[18],c},rs="opacity-50",Wo=t=>{const e=M(27),{current:s,group:a,groupLabel:o,selectTab:r,tabDescription:i,tabLabel:l,unavailable:d}=t,u=a.tabs.includes(s)?"page":void 0,c=o[a.key],m=a.tabs[0];let h;e[0]!==m?(h=n(_t,{tab:m}),e[0]=m,e[1]=h):h=e[1];let f;e[2]!==u||e[3]!==c||e[4]!==h?(f=n(Xt,{"aria-current":u,"aria-label":c,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]=u,e[3]=c,e[4]=h,e[5]=f):f=e[5];const g=o[a.key];let v;e[6]!==g?(v=n("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:g}),e[6]=g,e[7]=v):v=e[7];let y;if(e[8]!==s||e[9]!==a.tabs||e[10]!==r||e[11]!==i||e[12]!==l||e[13]!==d){let x;e[15]!==s||e[16]!==r||e[17]!==i||e[18]!==l||e[19]!==d?(x=k=>w("button",{"aria-current":s===k?"page":void 0,className:_("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",d[k]!==void 0&&rs),"data-tab":k,"data-testid":`dash-tab-${k}`,"data-unsupported":d[k]===void 0?void 0:"true",onClick:r,title:i[k],type:"button",children:[n(_t,{tab:k}),n("span",{children:l[k]})]},k),e[15]=s,e[16]=r,e[17]=i,e[18]=l,e[19]=d,e[20]=x):x=e[20],y=a.tabs.map(x),e[8]=s,e[9]=a.tabs,e[10]=r,e[11]=i,e[12]=l,e[13]=d,e[14]=y}else y=e[14];let b;e[21]!==v||e[22]!==y?(b=w(es,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[v,y]}),e[21]=v,e[22]=y,e[23]=b):b=e[23];let p;return e[24]!==f||e[25]!==b?(p=w(Jt,{children:[f,b]}),e[24]=f,e[25]=b,e[26]=p):p=e[26],p},Uo=t=>{const e=M(45),{chrome:s,collapsed:a,connected:o}=t,r=se();if(s===null){let x;e[0]!==r?(x=r("Admin"),e[0]=r,e[1]=x):x=e[1];let k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k=n("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=k):k=e[2];let P;e[3]!==r?(P=r("Admin"),e[3]=r,e[4]=P):P=e[4];let C;e[5]!==P?(C=n("span",{className:"truncate text-[13px] font-medium",children:P}),e[5]=P,e[6]=C):C=e[6];let S;e[7]!==r?(S=r("Studio"),e[7]=r,e[8]=S):S=e[8];let N;e[9]!==S?(N=n("span",{className:"truncate text-[11px] text-muted-foreground",children:S}),e[9]=S,e[10]=N):N=e[10];let T;e[11]!==C||e[12]!==N?(T=w("span",{className:"grid flex-1 text-start leading-tight",children:[C,N]}),e[11]=C,e[12]=N,e[13]=T):T=e[13];let A;return e[14]!==x||e[15]!==T?(A=w(ss,{className:"data-active:bg-transparent",size:"lg",tooltip:x,children:[k,T]}),e[14]=x,e[15]=T,e[16]=A):A=e[16],A}const i=a?"mx-auto size-8 justify-center":"w-full p-2";let l;e[17]!==i?(l=_("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",i),e[17]=i,e[18]=l):l=e[18];let d;e[19]!==o||e[20]!==r?(d=r(o?"Connected":"Not connected"),e[19]=o,e[20]=r,e[21]=d):d=e[21];const u=o?"bg-success":"bg-muted-foreground/50";let c;e[22]!==u?(c=_("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",u),e[22]=u,e[23]=c):c=e[23];let m;e[24]!==c?(m=w("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",n("span",{"aria-hidden":"true",className:c})]}),e[24]=c,e[25]=m):m=e[25];let h;e[26]!==a||e[27]!==o||e[28]!==r?(h=!a&&w(Dt,{children:[w("span",{className:"grid flex-1 text-start leading-tight",children:[n("span",{className:"truncate text-[13px] font-medium",children:r("Admin")}),n("span",{className:"truncate text-[11px] text-muted-foreground",children:r(o?"Connected":"Not connected")})]}),n("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:n("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=a,e[27]=o,e[28]=r,e[29]=h):h=e[29];let f;e[30]!==l||e[31]!==d||e[32]!==m||e[33]!==h?(f=w(Xt,{className:l,"data-testid":"dash-app-connect",title:d,children:[m,h]}),e[30]=l,e[31]=d,e[32]=m,e[33]=h,e[34]=f):f=e[34];const g=a?"end":"start",v=a?"right":"top";let y;e[35]!==s||e[36]!==o?(y=n(Fo,{chrome:s,connected:o}),e[35]=s,e[36]=o,e[37]=y):y=e[37];let b;e[38]!==v||e[39]!==y||e[40]!==g?(b=n(es,{align:g,keepMounted:!0,side:v,children:y}),e[38]=v,e[39]=y,e[40]=g,e[41]=b):b=e[41];let p;return e[42]!==b||e[43]!==f?(p=w(Jt,{children:[f,b]}),e[42]=b,e[43]=f,e[44]=p):p=e[44],p},jo=t=>{const e=M(29),{chrome:s,connected:a,current:o,groupLabel:r,groups:i,selectTab:l,tabDescription:d,tabLabel:u,unavailable:c}=t,m=se(),{state:h}=yt(),f=h==="collapsed",g=f&&"justify-center px-0";let v;e[0]!==g?(v=_("flex items-center gap-2.5 px-1.5 py-1",g),e[0]=g,e[1]=v):v=e[1];let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=n(Ws,{className:"size-9 shrink-0 text-foreground"}),e[2]=y):y=e[2];let b;e[3]!==f||e[4]!==a||e[5]!==m?(b=!f&&w(Dt,{children:[w("span",{className:"grid flex-1 leading-tight",children:[n("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),n("span",{className:"truncate text-[11px] text-muted-foreground",children:m("Studio")})]}),n(ht,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:m(a?"Live":"Local")})]}),e[3]=f,e[4]=a,e[5]=m,e[6]=b):b=e[6];let p;e[7]!==v||e[8]!==b?(p=n(ha,{children:w("div",{className:v,children:[y,b]})}),e[7]=v,e[8]=b,e[9]=p):p=e[9];let x;e[10]!==f||e[11]!==o||e[12]!==r||e[13]!==i||e[14]!==l||e[15]!==d||e[16]!==u||e[17]!==c?(x=f?i.map(S=>n(Wo,{current:o,group:S,groupLabel:r,selectTab:l,tabDescription:d,tabLabel:u,unavailable:c},S.key)):i.map(S=>w(ba,{children:[n(va,{className:"text-[11px] font-medium tracking-wider uppercase",children:r[S.key]}),n(xa,{children:n(Et,{children:S.tabs.map(N=>n($t,{children:w(ss,{className:_("data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]",c[N]!==void 0&&rs),"data-tab":N,"data-testid":`dash-tab-${N}`,"data-unsupported":c[N]===void 0?void 0:"true",isActive:o===N,onClick:l,title:d[N],tooltip:d[N],children:[n(_t,{tab:N}),n("span",{children:u[N]})]})},N))})})]},S.key)),e[10]=f,e[11]=o,e[12]=r,e[13]=i,e[14]=l,e[15]=d,e[16]=u,e[17]=c,e[18]=x):x=e[18];let k;e[19]!==x?(k=n(ga,{children:x}),e[19]=x,e[20]=k):k=e[20];let P;e[21]!==s||e[22]!==f||e[23]!==a?(P=n(pa,{children:n(Et,{children:n($t,{children:n(Uo,{chrome:s,collapsed:f,connected:a})})})}),e[21]=s,e[22]=f,e[23]=a,e[24]=P):P=e[24];let C;return e[25]!==p||e[26]!==k||e[27]!==P?(C=w(ua,{collapsible:"icon",variant:"inset",children:[p,k,P]}),e[25]=p,e[26]=k,e[27]=P,e[28]=C):C=e[28],C},Lt=()=>{const t=M(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=w("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[w("div",{className:"flex items-center gap-2",children:[n(Nt,{className:"h-8 w-40"}),n(Nt,{className:"h-8 w-24"})]}),n(Nt,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},Go=t=>{const e=M(5),{title:s,verdict:a}=t;if(a.kind==="pending"){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n(Lt,{}),e[0]=r):r=e[0],r}if(a.kind==="unavailable"){let r;return e[1]!==s||e[2]!==a.reason?(r=n(Da,{reason:a.reason,title:s}),e[1]=s,e[2]=a.reason,e[3]=r):r=e[3],r}let o;return e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n(hs,{}),e[4]=o):o=e[4],o},Ko=()=>{const t=M(46),e=se(),s=Vt();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={select:tn},t[0]=a):a=t[0];const o=ms(a),r=qo(o),i=Zo.has(r),l=xs(),d=l?.toggle;Oa(d);const u=Ns(),{groupLabel:c,tabDescription:m,tabLabel:h}=_a(),{unavailable:f,visibleGroups:g}=za(Bt,u,e),v={...m,...f},y=as(r,u,e),b=y.kind==="hidden";let p,x;t[1]!==b||t[2]!==s?(p=()=>{b&&Pt(s({replace:!0,to:"/home"}))},x=[b,s],t[1]=b,t[2]=s,t[3]=p,t[4]=x):(p=t[3],x=t[4]),ut(p,x);let k;t[5]!==s?(k=Q=>{Pt(s({to:`/${Q.currentTarget.dataset.tab??""}`}))},t[5]=s,t[6]=k):k=t[6];const P=k;let C,S;t[7]!==r||t[8]!==h?(C=()=>{typeof document<"u"&&(document.title=`${h[r]} · lunora`)},S=[r,h],t[7]=r,t[8]=h,t[9]=C,t[10]=S):(C=t[9],S=t[10]),ut(C,S);const N=g.find(Q=>Q.tabs.includes(r))??Bt[0],T=g.flatMap(Q=>Q.tabs.filter(X=>f[X]===void 0).map(X=>({group:c[Q.key],label:h[X],to:`/${X}`}))),A=d===void 0?T:[...T,{group:e("Operations"),label:e("Toggle operation console"),run:d}],I=Tt(os),O=I!==null&&I.token!=="";let B;t[11]!==A?(B=n(Ts,{items:A}),t[11]=A,t[12]=B):B=t[12];const V=c[N.key],z=h[r];let $;t[13]!==V||t[14]!==z?($=n(Ea,{domain:V,onOpenCommandPalette:As,page:z}),t[13]=V,t[14]=z,t[15]=$):$=t[15];let H;t[16]!==I?.rulesInstalled?(H=I?.rulesInstalled===!1&&n(Gs,{}),t[16]=I?.rulesInstalled,t[17]=H):H=t[17];const D=`dash-tab-${r}`,Z=i?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",E=h[r];let q;t[18]!==e||t[19]!==E?(q=e("{title} failed",{title:E}),t[18]=e,t[19]=E,t[20]=q):q=t[20];const ee=h[r];let F;t[21]!==e?(F=e("Try again"),t[21]=e,t[22]=F):F=t[22];let Y;t[23]===Symbol.for("react.memo_cache_sentinel")?(Y=n(Lt,{}),t[23]=Y):Y=t[23];const te=h[r];let W;t[24]!==te||t[25]!==y?(W=n(gs,{fallback:Y,children:n(Go,{title:te,verdict:y})}),t[24]=te,t[25]=y,t[26]=W):W=t[26];let U;t[27]!==r||t[28]!==q||t[29]!==ee||t[30]!==F||t[31]!==W?(U=n(bs,{fallbackTitle:q,label:ee,retryLabel:F,children:W},r),t[27]=r,t[28]=q,t[29]=ee,t[30]=F,t[31]=W,t[32]=U):U=t[32];let j;t[33]!==Z||t[34]!==U?(j=n("div",{className:Z,children:U}),t[33]=Z,t[34]=U,t[35]=j):j=t[35];let G;t[36]!==l?(G=l?.open===!0&&n(Sa,{focusSeq:l.focusSeq,onClose:l.close,onShownChange:l.setShown,shown:l.shown}),t[36]=l,t[37]=G):G=t[37];let K;t[38]!==D||t[39]!==j||t[40]!==G?(K=w("div",{"aria-labelledby":D,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[j,G]}),t[38]=D,t[39]=j,t[40]=G,t[41]=K):K=t[41];let J;return t[42]!==H||t[43]!==K||t[44]!==$?(J=w(ma,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[$,H,K]}),t[42]=H,t[43]=K,t[44]=$,t[45]=J):J=t[45],w(ca,{className:"min-h-0 flex-1","data-platform":u.platform?.id,"data-testid":"lunora-studio",children:[B,n(jo,{chrome:I,connected:O,current:r,groupLabel:c,groups:g,selectTab:P,tabDescription:v,tabLabel:h,unavailable:f}),J]})},Qo=()=>{const t=M(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n(vs,{children:n(Ko,{})}),t[0]=e):e=t[0],e},Yo=t=>{const e=M(5),{initialShardKey:s,schemaEditable:a}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const r=us(o),{table:i}=r,l=typeof i=="string"?i:void 0;let d;return e[1]!==s||e[2]!==l||e[3]!==a?(d=n(Ao,{initialShardKey:s,initialTable:l,schemaEditable:a}),e[1]=s,e[2]=l,e[3]=a,e[4]=d):d=e[4],d},Jo=()=>{const t=M(3),e=Vt();let s,a;return t[0]!==e?(s=()=>{Pt(e({replace:!0,to:"/home"}))},a=[e],t[0]=e,t[1]=s,t[2]=a):(s=t[1],a=t[2]),ut(s,a),null},Xo=({analyticsSqlQuery:t,basePath:e,dataEditable:s=!1,functions:a,initialShardKey:o,openApiSpec:r,openRpcSpec:i,runAsIdentity:l=!1,schemaEditable:d=!1,scheduledCancel:u,scheduledCron:c,scheduledLoad:m})=>{const h=is({component:Qo}),f={agents:n(Ua,{initialShardKey:o}),analytics:n(ja,{runQuery:t}),api:n(Ga,{functions:a,initialShardKey:o,openApiSpec:r,openRpcSpec:i}),architecture:n(Ka,{}),audit:n(ho,{initialShardKey:o}),authAudit:n(Qa,{}),authConfig:n(Ya,{}),authSessions:n(Ja,{}),containers:n(to,{}),dashboards:n(Co,{initialShardKey:o}),data:n(ao,{canGenerateRows:s&&d,editable:s,initialShardKey:o}),deploymentHealth:n(so,{}),drains:n(po,{}),export:n(oo,{initialShardKey:o}),fanout:n(Po,{initialShardKey:o}),files:n(Ro,{}),kv:n(wo,{}),flags:n(lo,{initialShardKey:o}),reactors:n(co,{initialShardKey:o}),functions:w("div",{className:"flex flex-col gap-8",children:[n(fo,{functions:a,initialShardKey:o}),n(uo,{functions:a,runAsIdentity:l})]}),health:n(_o,{initialShardKey:o}),home:n(Ms,{initialShardKey:o}),insights:n(Za,{initialShardKey:o}),issues:n(mo,{initialShardKey:o}),logs:n(go,{initialShardKey:o}),traces:n($o,{initialShardKey:o}),evals:n(Ho,{initialShardKey:o}),aiUsage:n(Bo,{initialShardKey:o}),metrics:n(To,{initialShardKey:o}),migrations:n(no,{initialShardKey:o}),notifications:n(ko,{}),organizations:n(Xa,{}),permissions:n(No,{functions:a,runAsIdentity:l,schemaEditable:d}),pitr:n(io,{initialShardKey:o}),mail:n(bo,{}),payments:n(Mo,{}),queues:n(So,{}),realtime:w("div",{className:"flex flex-col gap-8",children:[n(xo,{initialShardKey:o}),n(yo,{})]}),rls:n(qa,{}),schedule:n(vo,{loadCronJobs:c,scheduledCancel:u,scheduledLoad:m}),schema:n(Yo,{initialShardKey:o,schemaEditable:d}),advisorHealth:n(Fa,{}),security:n(Wa,{}),settings:n(Lo,{initialShardKey:o}),sql:n(Io,{initialShardKey:o}),storageRules:n(Eo,{}),users:n(eo,{}),vectors:n(Vo,{}),workflows:n(zo,{})},g=It({component:()=>f.home,getParentRoute:()=>h,path:"/"}),v=ns.map(p=>It({component:()=>f[p],getParentRoute:()=>h,path:`/${p}`,validateSearch:ro[p]})),y=h.addChildren([g,...v]),b="window"in globalThis?ls():ds({initialEntries:["/home"]});return cs({...e===void 0||e==="/"?{}:{basepath:e},defaultNotFoundComponent:Jo,defaultPendingComponent:Lt,defaultPendingMinMs:0,defaultPendingMs:0,history:b,routeTree:y})},en=t=>{const e=M(18),{analyticsSqlQuery:s,basePath:a,chrome:o,dataEditable:r,functions:i,initialShardKey:l,openApiSpec:d,openRpcSpec:u,runAsIdentity:c,schemaEditable:m,scheduledCancel:h,scheduledCron:f,scheduledLoad:g}=t;let v;e[0]!==s||e[1]!==a||e[2]!==r||e[3]!==i||e[4]!==l||e[5]!==d||e[6]!==u||e[7]!==c||e[8]!==h||e[9]!==f||e[10]!==g||e[11]!==m?(v=Xo({analyticsSqlQuery:s,basePath:a,dataEditable:r,functions:i,initialShardKey:l,openApiSpec:d,openRpcSpec:u,runAsIdentity:c,schemaEditable:m,scheduledCancel:h,scheduledCron:f,scheduledLoad:g}),e[0]=s,e[1]=a,e[2]=r,e[3]=i,e[4]=l,e[5]=d,e[6]=u,e[7]=c,e[8]=h,e[9]=f,e[10]=g,e[11]=m,e[12]=v):v=e[12];const y=v,b=o??null;let p;e[13]!==y?(p=n(fs,{router:y}),e[13]=y,e[14]=p):p=e[14];let x;return e[15]!==b||e[16]!==p?(x=n(os,{value:b,children:p}),e[15]=b,e[16]=p,e[17]=x):x=e[17],x},En=t=>{const e=M(10);let s,a,o;e[0]!==t?({i18n:s,locale:a,...o}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=o):(s=e[1],a=e[2],o=e[3]);let r;e[4]!==o?(r=n(Ds,{children:n(en,{...o})}),e[4]=o,e[5]=r):r=e[5];const i=r;if(s===void 0&&a===void 0)return i;let l;return e[6]!==s||e[7]!==a||e[8]!==i?(l=n(Cs,{i18n:s,locale:a,children:i}),e[6]=s,e[7]=a,e[8]=i,e[9]=l):l=e[9],l};function tn(t){return t.location.pathname}export{Ws as B,En as S,zs as T,Rn as a,Ys as b,ea as c,ta as d,sa as e,Os as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Wo}from"./chunk-XGCIDUJF.js";import{a as Kn,b as Un}from"./chunk-SMRF3OF3.js";import{a as Zn,d as Wn}from"./chunk-CCDX5RYT.js";import{a as jt,b as Qt,c as Yt,d as Jt,e as Xt,f as _n,g as Ko,h as Uo}from"./chunk-OYCUPD3Q.js";import{$ as _o,A as En,B as Eo,C as ko,D as kn,E as Ft,G as zt,J as Kt,K as Oo,L as Ut,M as Zt,O as Do,P as On,Q as Dn,R as Wt,S as qt,T as $t,U as Gt,V as Mo,W as Re,Y as Mn,Z as In,_ as Io,b as vn,ca as Ao,da as Vo,fa as Lo,j as Ht,k as Bt,l as Pn,la as Ho,m as Cn,ma as Bo,n as Sn,na as Fo,o as Rn,oa as jo,p as Sr,pa as An,q as To,qa as Vn,ra as zo,s as No,sa as Ln,t as Tn,u as wo,y as Nn,z as wn}from"./chunk-NXQW5E6W.js";import{a as Zo}from"./chunk-SA2OGF3F.js";import{c as Hn,h as Bn,k as Rr}from"./chunk-GHQ2VDI2.js";import{b as zn}from"./chunk-WJRYEML4.js";import{a as Gr,b as Qr,h as Yr,i as ao,j as yr,k as Jr,l as Xr,m as en,n as tn,o as on}from"./chunk-OQ6I6OXT.js";import{i as Cr}from"./chunk-E4PXACVL.js";import{C as bn,D as xn,H as yn,I as Lt,M as K,N as re,b as me,e as lo,f as mn,l as fn,m as co,o as At,p as gn,q as Vt,r as we,s as hn}from"./chunk-MVWZMWPD.js";import{a as $r}from"./chunk-7Y3SY37W.js";import{a as Tr}from"./chunk-7G4Z6Q7X.js";import{c as Ee}from"./chunk-3YXASVTP.js";import{a as ye,c as pn,h as Ro,i as un}from"./chunk-AUAECCXB.js";import{a as Pr,b as _t}from"./chunk-Q6ED4KUL.js";import{a as so,c as Q,g as io,i as cn,j as B}from"./chunk-BOMPSVRC.js";import{a as rn,b as nn}from"./chunk-55UGUCQ6.js";import{a as po}from"./chunk-W7TF6FTU.js";import{a as dn}from"./chunk-QAQDMS6R.js";import{d as br}from"./chunk-OACO7GME.js";import{a as Fn}from"./chunk-RWVIV3U7.js";import{a as an,b as sn,c as ln,d as fe,p as eo,s as jn}from"./chunk-HJHSQPHW.js";import{a as s,c as vr,d as T,e as A,f as xr,g as se,i as U}from"./chunk-I26MS5PJ.js";var I=T(xr(),1);var xe=T(A(),1),O=T(A(),1);var a=T(se(),1);var qn=T(A(),1),Te=T(se(),1);var $s={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},Gs={overflow:"auto",whiteSpace:"pre-wrap"},qo=class extends qn.Component{static{s(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=s(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:n}=this.props,{error:i}=this.state;if(i===null)return(0,Te.jsx)(Te.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Te.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:$s,children:[(0,Te.jsx)("strong",{children:l}),(0,Te.jsx)("pre",{"data-testid":"dash-error-message",style:Gs,children:i.message}),(0,Te.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var De={};vr(De,{Arrow:()=>pa,Backdrop:()=>ma,Close:()=>xa,Description:()=>va,Handle:()=>go,Popup:()=>ca,Portal:()=>na,Positioner:()=>aa,Root:()=>ea,Title:()=>ga,Trigger:()=>ta,Viewport:()=>Pa,createHandle:()=>Ca});var uo=T(A(),1);var $o=T(A(),1);var Nr=$o.createContext(void 0);function Y(t){let e=$o.useContext(Nr);if(e===void 0&&!t)throw new Error(Q(47));return e}s(Y,"usePopoverRootContext");var Go=T(A(),1),$n=T($r(),1);var Gn={...Yt,disabled:s(t=>t.disabled,"disabled"),instantType:s(t=>t.instantType,"instantType"),openMethod:s(t=>t.openMethod,"openMethod"),openChangeReason:s(t=>t.openChangeReason,"openChangeReason"),modal:s(t=>t.modal,"modal"),focusManagerModal:s(t=>t.focusManagerModal,"focusManagerModal"),stickIfOpen:s(t=>t.stickIfOpen,"stickIfOpen"),titleElementId:s(t=>t.titleElementId,"titleElementId"),descriptionElementId:s(t=>t.descriptionElementId,"descriptionElementId"),openOnHover:s(t=>t.openOnHover,"openOnHover"),closeDelay:s(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:s(t=>t.adaptiveOrigin,"adaptiveOrigin")},Qo=class extends zt{static{s(this,"PopoverStore")}constructor(e,o,r){let n=new Re;super(Yn(e,n,o,r),Jn(n),Gn)}setOpen=s((e,o)=>{let r=o.reason===K.triggerHover,n=o.reason===K.triggerPress&&o.event.detail===0,i=!e&&(o.reason===K.escapeKey||o.reason==null),l=On(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=s(()=>{let u=Do(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)}),$n.flushSync(p)):p();let d;n?d="click":i?d="dismiss":o.reason===K.focusOut&&(d="focus"),this.set("instantType",d)},"setOpen")};function Qn(){let t=new Re,e=new Xt(Object.freeze(Yn(void 0,t)),Object.freeze(Jn(t)),Gn);return Object.assign(e,{setOpen:io})}s(Qn,"createNullPopoverStore");function Yn(t,e,o,r=!1){let n={...Qt(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 n.open&&t?.mounted===void 0&&(n.mounted=!0),n}s(Yn,"createInitialState");function Jn(t){return{popupRef:Go.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Go.createRef(),beforeContentFocusGuardRef:Go.createRef(),stickIfOpenTimeout:new bn,triggerElements:t}}s(Jn,"createInitialContext");var ke=T(se(),1);var Xn=Ht(s(function({props:e}){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:l,modal:c=!1,handle:p,triggerId:d,defaultTriggerId:u=null}=e,f=Qs(p,{modal:c,open:n,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",i),f.useContextCallback("onOpenChangeComplete",l),Mo(f,h),qt(f);let{forceUnmount:x}=$t(h,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:c}),uo.useEffect(()=>{h||f.context.stickIfOpenTimeout.clear()},[f,h]),uo.useImperativeHandle(e.actionsRef,()=>({unmount:x,close:s(()=>f.setOpen(!1,re(K.imperativeAction)),"close")}),[x,f]);let v=h||g;return(0,ke.jsxs)(Nr.Provider,{value:f,children:[p&&(0,ke.jsx)(Zt,{handle:p,store:f}),v&&(0,ke.jsx)(Ys,{store:f,modal:c}),typeof o=="function"?o({payload:m}):o]})},"PopoverRootComponent"));function ea(t){return Y(!0)?(0,ke.jsx)(Xn,{props:t}):(0,ke.jsx)(En,{children:(0,ke.jsx)(Xn,{props:t})})}s(ea,"PopoverRoot");function Qs(t,e){let o=Ut((r,n)=>new Qo(e,r,n));return uo.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o}s(Qs,"usePopoverRootStore");function Ys({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Ft(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference,i=r.floating;return Gt(t,{activeTriggerProps:n,inactiveTriggerProps:n,popupProps:i}),null}s(Ys,"PopoverInteractions");var mo=T(A(),1);var to=T(se(),1);var ta=Bt(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,handle:p,payload:d,openOnHover:u=!1,delay:f=300,closeDelay:h=0,id:g,...m}=e,x=Y(!0),b=Jt(p)??x;if(!b)throw new Error(Q(74));let P=me(g),y=b.useState("isTriggerActive",P),S=b.useState("floatingRootContext"),C=b.useState("isOpenedByTrigger",P),w=b.useState("triggerPopupId",P),R=mo.useRef(null),{registerTrigger:N,isMountedByThisTrigger:E}=Wt(P,R,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=_o(S,{enabled:!l&&u&&(L!=="touch"||k!==K.triggerPress),mouseOnly:!0,move:!1,handleClose:Ao(),restMs:f,delay:{close:h},triggerElementRef:R,isActiveTrigger:y,isClosing:s(()=>b.select("transitionStatus")==="ending","isClosing")}),z=ko(S,{stickIfOpen:M}),H=Vo(()=>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?gn.open($):At.open($)}},{preFocusGuardRef:q,handlePreFocusGuardFocus:G,handleFocusTargetFocus:ee}=_n(b,R),te=B("button",e,{state:{disabled:l,open:C},ref:[D,o,N,R],props:[z.reference,j,F,H,{[To]:"",id:P,"aria-haspopup":"dialog","aria-expanded":C,"aria-controls":w},m,Z],stateAttributesMapping:V}),X=(0,to.jsx)(mo.Fragment,{children:te},P);return E&&!_?(0,to.jsxs)(mo.Fragment,{children:[(0,to.jsx)(Sr,{ref:q,onFocus:G}),X,(0,to.jsx)(Sr,{ref:b.context.triggerFocusTargetRef,onFocus:ee})]}):X},"PopoverTrigger"));var ra=T(A(),1);var Yo=T(A(),1);var wr=Yo.createContext(void 0);function oa(){let t=Yo.useContext(wr);if(t===void 0)throw new Error(Q(45));return t}s(oa,"usePopoverPortalContext");var Er=T(se(),1);var na=ra.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e;return Y().useState("mounted")||r?(0,Er.jsx)(wr.Provider,{value:r,children:(0,Er.jsx)(wo,{ref:o,...n})}):null},"PopoverPortal"));var Xo=T(A(),1);var Jo=T(A(),1);var kr=Jo.createContext(void 0);function oo(){let t=Jo.useContext(kr);if(!t)throw new Error(Q(46));return t}s(oo,"usePopoverPositionerContext");var fo=T(se(),1);var aa=Xo.forwardRef(s(function(e,o){let{render:r,className:n,style:i,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=No,...P}=e,y=Y(),S=oa(),C=Nn(),w=y.useState("floatingRootContext"),R=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=Xo.useRef(null),Z=yn(_),D=Ho({anchor:l,floatingRootContext:w,positionMethod:c,mounted:R,side:p,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:x,disableAnchorTracking:v,keepMounted:S,nodeId:C,collisionAvoidance:b,adaptiveOrigin:H}),V=w.useState("domReferenceElement");ye(()=>{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 q=M===!0&&E!==K.triggerHover;Vn(N&&q,L==="touch",_,k);let G=y.useStateSetter("positionerElement"),ee={open:N,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:j},ae=jo(e,ee,{styles:D.positionerStyles,transitionStatus:z,props:P,refs:[o,G],hidden:!R,inert:!N});return(0,fo.jsxs)(kr.Provider,{value:D,children:[R&&q&&(0,fo.jsx)(Bo,{inert:Lo(!N),cutout:k}),(0,fo.jsx)(wn,{id:C,children:ae})]})},"PopoverPositioner"));var la=T(A(),1);var Oe=T(A(),1);var Or=Oe.createContext(void 0);function sa(){let[t,e]=Oe.useState(0),o=pn(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:Oe.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}s(sa,"useClosePartCount");function ia(){let t=Oe.useContext(Or);ye(()=>t?.register(),[t])}s(ia,"useClosePartRegistration");var Dr=T(se(),1);var ca=la.forwardRef(s(function(e,o){let{render:r,className:n,style:i,initialFocus:l,finalFocus:c,...p}=e,d=Y(),u=oo(),f=Ln(!0)!=null,{context:h,hasClosePart:g}=sa(),m=d.useState("open"),x=d.useState("openMethod"),v=d.useState("instantType"),b=d.useState("transitionStatus"),P=d.useState("popupProps"),y=d.useState("titleElementId"),S=d.useState("descriptionElementId"),C=d.useState("modal"),w=d.useState("mounted"),R=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");Lt({open:m,ref:d.context.popupRef,onComplete(){m&&d.context.onOpenChangeComplete?.(!0)}}),Io(E,{enabled:L&&!M,closeDelay:_});let j=l===void 0?Oo(d.context.popupRef):l,z=C!==!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",...Kt,"aria-labelledby":y,"aria-describedby":S,onKeyDown(D){f&&zo.has(D.key)&&D.stopPropagation()}},Fo(b),p],stateAttributesMapping:we});return(0,Dr.jsx)(Eo,{context:E,openInteractionType:x,modal:z,disabled:!w||R===K.triggerHover,initialFocus:j,returnFocus:c,restoreFocus:"popup",previousFocusableElement:un(N)?N:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,Dr.jsx)(Or.Provider,{value:h,children:Z})})},"PopoverPopup"));var da=T(A(),1);var pa=da.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,p=Y().useState("open"),{arrowRef:d,side:u,align:f,arrowUncentered:h,arrowStyles:g}=oo();return B("div",e,{state:{open:p,side:u,align:f,uncentered:h},ref:[o,d],props:[{style:g,"aria-hidden":!0},l],stateAttributesMapping:Vt})},"PopoverArrow"));var ua=T(A(),1);var ma=ua.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=Y(),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 fa=T(A(),1);var ga=fa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=Y(),p=me(l.id);return c.useSyncedValueWithCleanup("titleElementId",p),B("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var ha=T(A(),1);var va=ha.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=Y(),p=me(l.id);return c.useSyncedValueWithCleanup("descriptionElementId",p),B("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var ba=T(A(),1);var xa=ba.forwardRef(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,...p}=e,{buttonRef:d,getButtonProps:u}=Ee({disabled:l,focusableWhenDisabled:!1,native:c}),f=Y();return ia(),B("button",e,{ref:[o,d],props:[{onClick(g){f.setOpen(!1,re(K.closePress,g.nativeEvent))}},p,u]})},"PopoverClose"));var ya=T(A(),1);var Pa=ya.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=Y(),{side:d}=oo(),u=p.useState("instantType"),{children:f,state:h}=Uo({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:Ko})},"PopoverViewport"));var go=class extends jt{static{s(this,"PopoverHandle")}constructor(){super(Qn(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ca(){return new go}s(Ca,"createPopoverHandle");var le={};vr(le,{Backdrop:()=>Ra,Close:()=>Na,Description:()=>Ea,Handle:()=>bo,Popup:()=>Ia,Portal:()=>Aa,Root:()=>Ka,Title:()=>qa,Trigger:()=>Ga,Viewport:()=>Za,createHandle:()=>Qa});var Sa=T(A(),1);var er=T(A(),1);var Mr=er.createContext(void 0);function ne(t){let e=er.useContext(Mr);if(!t&&e===void 0)throw new Error(Q(27));return e}s(ne,"useDialogRootContext");var Ra=Sa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,forceRender:l=!1,...c}=e,p=ne(),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 Ta=T(A(),1);var Na=Ta.forwardRef(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,...p}=e,d=ne(),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 s(m,"handleClick"),B("button",e,{state:g,ref:[o,h],props:[{onClick:m},p,f]})},"DialogClose"));var wa=T(A(),1);var Ea=wa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,id:l,...c}=e,p=ne(),d=me(l);return p.useSyncedValueWithCleanup("descriptionElementId",d),B("p",e,{ref:o,props:[{id:d},c]})},"DialogDescription"));var Da=T(A(),1);var tr=T(A(),1);var Ir=tr.createContext(void 0);function or(){let t=tr.useContext(Ir);if(t===void 0)throw new Error(Q(26));return t}s(or,"useDialogPortalContext");var ka="--nested-dialogs";var Nu=co.open,wu=co.closed,Eu=co.startingStyle,ku=co.endingStyle;var Oa="data-nested-dialog-open";var rr={...Vt,...fn,nestedDialogOpen(t){return t?{[Oa]:""}:null}};var Ma=T(se(),1);var Ia=Da.forwardRef(s(function(e,o){let{render:r,className:n,style:i,finalFocus:l,initialFocus:c,...p}=e,d=ne(),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"),S=d.useState("titleElementId"),C=d.useState("transitionStatus"),w=d.useState("role"),R=h.useState("floatingId");or(),Lt({open:P,ref:d.context.popupRef,onComplete(){P&&d.context.onOpenChangeComplete?.(!0)}});let N=c===void 0?Oo(d.context.popupRef):c,E=b>0,k=d.useStateSetter("popupElement"),L=B("div",e,{state:{open:P,nested:v,transitionStatus:C,nestedDialogOpen:E},props:[g,{id:R,"aria-labelledby":S,"aria-describedby":u,role:w,...Kt,hidden:!x,onKeyDown(_){zo.has(_.key)&&_.stopPropagation()},style:{[ka]:b}},p],ref:[o,d.context.popupRef,k],stateAttributesMapping:rr});return(0,Ma.jsx)(Eo,{context:h,openInteractionType:y,disabled:!x,closeOnFocusOut:!f,initialFocus:N,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:L})},"DialogPopup"));var _a=T(A(),1);var ho=T(se(),1);var Aa=_a.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e,i=ne(),l=i.useState("mounted"),c=i.useState("modal"),p=i.useState("open");return l||r?(0,ho.jsx)(Ir.Provider,{value:r,children:(0,ho.jsxs)(wo,{ref:o,...n,children:[l&&c===!0&&(0,ho.jsx)(Bo,{ref:i.context.internalBackdropRef,inert:Lo(!p)}),e.children]})}):null},"DialogPortal"));var ja=T(A(),1);var _r=T(A(),1);function Va({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),i=t.useState("modal"),l=t.useState("popupElement"),c=t.useState("floatingRootContext"),[p,d]=_r.useState(0),[u,f]=_r.useState(0),h=p===0,g=Ft(c,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:i==="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=mn(m);if(h&&!n){if(i){let v=t.context.internalBackdropRef.current,b=t.context.backdropRef.current;return v||b?v===x||b===x||lo(x,l)&&!x?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:h});return An(r&&i===!0,l),t.useContextCallback("onNestedDialogOpen",(m,x)=>{d(m),f(x)}),ye(()=>(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]),Gt(t,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}s(Va,"DialogInteractions");var nr=T(A(),1);var La={...Yt,modal:s(t=>t.modal,"modal"),nested:s(t=>t.nested,"nested"),nestedOpenDialogCount:s(t=>t.nestedOpenDialogCount,"nestedOpenDialogCount"),nestedOpenDrawerCount:s(t=>t.nestedOpenDrawerCount,"nestedOpenDrawerCount"),disablePointerDismissal:s(t=>t.disablePointerDismissal,"disablePointerDismissal"),openMethod:s(t=>t.openMethod,"openMethod"),descriptionElementId:s(t=>t.descriptionElementId,"descriptionElementId"),titleElementId:s(t=>t.titleElementId,"titleElementId"),viewportElement:s(t=>t.viewportElement,"viewportElement"),role:s(t=>t.role,"role")},ar=class extends zt{static{s(this,"DialogStore")}constructor(e,o,r){let n=new Re,i=Ba(e,n,o,r);super(i,Fa(n),La)}setOpen=s((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(Do(this.state,e,o.trigger)))},"setOpen")};function Ha(){let t=new Re;return new Xt(Object.freeze(Ba(void 0,t)),Object.freeze(Fa(t)),La)}s(Ha,"createNullDialogStore");function Ba(t,e,o,r=!1){return{...Qt(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}}s(Ba,"createInitialState");function Fa(t){return{popupRef:nr.createRef(),backdropRef:nr.createRef(),internalBackdropRef:nr.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:t,onOpenChange:void 0,onOpenChangeComplete:void 0}}s(Fa,"createInitialContext");var vo=T(se(),1);function za(t,e){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:i,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=ne(!0),y=P!=null,S={modal:x,disablePointerDismissal:v,nested:y,role:b},C=Ut((M,L)=>new ar({open:n,openProp:r,activeTriggerId:h,triggerIdProp:f,...S},M,L),!0);C.useControlledProp("openProp",r),C.useControlledProp("triggerIdProp",f),C.useSyncedValues(S),C.useContextCallback("onOpenChange",i),C.useContextCallback("onOpenChangeComplete",l);let w=C.useState("open"),R=C.useState("mounted"),N=C.useState("payload");Mo(C,w),qt(C);let{forceUnmount:E}=$t(w,C);ja.useImperativeHandle(d,()=>({unmount:E,close:s(()=>C.setOpen(!1,re(K.imperativeAction)),"close")}),[E,C]);let k=w||R;return(0,vo.jsxs)(Mr.Provider,{value:C,children:[u&&(0,vo.jsx)(Zt,{handle:u,store:C}),k&&(0,vo.jsx)(Va,{store:C,parentContext:P?.context,isDrawer:g}),typeof o=="function"?o({payload:N}):o]})}s(za,"useRenderDialogRoot");var Ka=Ht(s(function(e){return za("dialog",e)},"DialogRoot"));var Ua=T(A(),1);var Za=Ua.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=or(),d=ne(),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:rr,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},c]})},"DialogViewport"));var Wa=T(A(),1);var qa=Wa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,id:l,...c}=e,p=ne(),d=me(l);return p.useSyncedValueWithCleanup("titleElementId",d),B("h2",e,{ref:o,props:[{id:d},c]})},"DialogTitle"));var $a=T(A(),1);var Ga=Bt(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,id:p,payload:d,handle:u,...f}=e,h=ne(!0),m=Jt(u)??h;if(!m)throw new Error(Q(79));let x=me(p),v=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",x),P=m.useState("triggerPopupId",x),y=$a.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=Wt(x,y,m,{payload:d}),{getButtonProps:w,buttonRef:R}=Ee({disabled:l,native:c}),N=ko(v),E=Vo(()=>m.select("open"),L=>{m.set("openMethod",L)}),k={disabled:l,open:b},M=m.useState("triggerProps",C);return B("button",e,{state:k,ref:[R,o,S,y],props:[N.reference,M,E,{[To]:"",id:x,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":P},f,w],stateAttributesMapping:At})},"DialogTrigger"));var bo=class extends jt{static{s(this,"DialogHandle")}constructor(){super(Ha(),"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 Qa(){return new bo}s(Qa,"createDialogHandle");var Pe={};vr(Pe,{Arrow:()=>bs,Handle:()=>yo,Popup:()=>hs,Portal:()=>us,Positioner:()=>fs,Provider:()=>ys,Root:()=>os,Trigger:()=>ss,Viewport:()=>Cs,createHandle:()=>Ss});var ro=T(A(),1);var sr=T(A(),1);var Ar=sr.createContext(void 0);function ve(t){let e=sr.useContext(Ar);if(e===void 0&&!t)throw new Error(Q(72));return e}s(ve,"useTooltipRootContext");var Ya=T(A(),1);var Ja={...Yt,disabled:s(t=>t.disabled,"disabled"),instantType:s(t=>t.instantType,"instantType"),isInstantPhase:s(t=>t.isInstantPhase,"isInstantPhase"),trackCursorAxis:s(t=>t.trackCursorAxis,"trackCursorAxis"),disableHoverablePopup:s(t=>t.disableHoverablePopup,"disableHoverablePopup"),lastOpenChangeReason:s(t=>t.openChangeReason,"lastOpenChangeReason"),closeOnClick:s(t=>t.closeOnClick,"closeOnClick"),closeDelay:s(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:s(t=>t.adaptiveOrigin,"adaptiveOrigin")},ir=class extends zt{static{s(this,"TooltipStore")}constructor(e,o,r){let n=new Re;super(es(e,n,o,r),ts(n),Ja)}setOpen=s((e,o)=>{Dn(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,re(K.triggerPress,e))}};function Xa(){let t=new Re,e=new Xt(Object.freeze(es(void 0,t)),Object.freeze(ts(t)),Ja);return Object.assign(e,{setOpen:io,cancelPendingOpen:io})}s(Xa,"createNullTooltipStore");function es(t,e,o,r=!1){return{...Qt(e,o,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...t}}s(es,"createInitialState");function ts(t){return{popupRef:Ya.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}s(ts,"createInitialContext");var xo=T(se(),1);var os=Ht(s(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:i=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:p,onOpenChangeComplete:d,handle:u,triggerId:f,defaultTriggerId:h=null,children:g}=e,m=Ut((M,L)=>new ir({open:r,openProp:n,activeTriggerId:h,triggerIdProp:f},M,L));m.useControlledProp("openProp",n),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:i,disabled:o}),qt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:C}=$t(v,m),w=m.useState("isInstantPhase"),R=m.useState("instantType"),N=m.useState("lastOpenChangeReason"),E=ro.useRef(null);ye(()=>{x&&o&&m.setOpen(!1,re(K.disabled))},[x,o,m]),ye(()=>{C==="ending"&&N===K.none||C!=="ending"&&w?(R!=="delay"&&(E.current=R),m.set("instantType","delay")):E.current!==null&&(m.set("instantType",E.current),E.current=null)},[C,w,N,R,m]),ye(()=>{v&&b==null&&m.set("payload",void 0)},[m,b,v]),ro.useImperativeHandle(c,()=>({unmount:S,close:s(()=>m.setOpen(!1,re(K.imperativeAction)),"close")}),[S,m]);let k=v||P||!o&&l!=="none";return(0,xo.jsxs)(Ar.Provider,{value:m,children:[u&&(0,xo.jsx)(Zt,{handle:u,store:m}),k&&(0,xo.jsx)(ei,{store:m,disabled:o,trackCursorAxis:l}),typeof g=="function"?g({payload:y}):g]})},"TooltipRoot"));function ei({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=Ft(r,{enabled:!e,referencePress:s(()=>t.select("closeOnClick"),"referencePress")}),i=kn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=ro.useMemo(()=>so(i.reference,n.reference),[i.reference,n.reference]);return Gt(t,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:n.floating??cn}),null}s(ei,"TooltipInteractions");var cr=T(A(),1);var lr=T(A(),1);var Vr=lr.createContext(void 0);function rs(){return lr.useContext(Vr)}s(rs,"useTooltipProviderContext");var as="data-base-ui-tooltip-trigger";function ns(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(Ro(n))return n}}let e=t.target;return Ro(e)?e:null}s(ns,"getTargetElement");function ti(t){let e=t;for(;e;){let o=e.closest(`[${as}]`);if(o)return o;let r=e.getRootNode();e="host"in r&&Ro(r.host)?r.host:null}return null}s(ti,"closestEnabledTooltipTrigger");var ss=Bt(s(function(e,o){let{render:r,className:n,style:i,handle:l,payload:c,disabled:p,delay:d,closeOnClick:u=!0,closeDelay:f,id:h,...g}=e,m=ve(!0),v=Jt(l)??m;if(!v)throw new Error(Q(82));let b=me(h),P=v.useState("isTriggerActive",b),y=v.useState("isOpenedByTrigger",b),S=v.useState("floatingRootContext"),C=cr.useRef(null),w=f??0,{registerTrigger:R,isMountedByThisTrigger:N}=Wt(b,C,v,{payload:c,closeOnClick:u,closeDelay:w}),E=rs(),{activeIdRef:k,delayRef:M,isInstantPhase:L,hasProvider:_}=Sn(S,{open:y}),j=In(S);v.useSyncedValue("isInstantPhase",L);let z=v.useState("disabled"),H=p??z,F=Rn(H),Z=v.useState("trackCursorAxis"),D=v.useState("disableHoverablePopup"),V=cr.useRef(!1),q=xn(),G=cr.useRef(void 0);function ee(){return _&&k.current!=null?0:d??E??600}s(ee,"getOpenDelay");function ae(W){let ie=C.current;if(!ie||!W)return!1;let he=ti(W);return he!==null&&he!==ie&&lo(ie,he)}s(ae,"isEnabledNestedTriggerTarget");function te(W){let ie=ae(W);return V.current=ie,ie&&(j.openChangeTimeout.clear(),j.restTimeout.clear(),j.restTimeoutPending=!1,q.clear()),ie}s(te,"detectNestedTriggerHover");let X=_o(S,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!D&&Z!=="both"?Ao():null,restMs:ee,delay(){return f==null&&_?{close:Pn(M.current,"close")}:{close:w}},triggerElementRef:C,isActiveTrigger:P,isClosing:s(()=>v.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!V.current}}),$=Mn(S,{enabled:!H}).reference,ce=s(W=>{let ie=V.current,he=ns(W),Ie=te(he),be=C.current,Ne=be&&he&&lo(be,he);if(Ie&&v.select("open")&&v.select("lastOpenChangeReason")===K.triggerHover){v.setOpen(!1,re(K.triggerHover,W));return}if(ie&&!Ie&&Ne&&!F.current&&!v.select("open")&&be&&vn(G.current)){let Ce=s(()=>{!V.current&&!F.current&&!v.select("open")&&v.setOpen(!0,re(K.triggerHover,W,be))},"open"),Se=ee();Se===0?(q.clear(),Ce()):q.start(Se,Ce)}},"handleNestedTriggerHover"),de=v.useState("triggerProps",N);return B("button",e,{state:{open:y},ref:[o,R,C],props:[X,$,N||Z!=="none"?de:void 0,{onMouseOver(W){ce(W.nativeEvent)},onFocus(W){ae(ns(W.nativeEvent))&&W.preventBaseUIHandler()},onMouseLeave(){V.current=!1,q.clear(),G.current=void 0},onPointerEnter(W){G.current=W.pointerType},onPointerDown(W){G.current=W.pointerType,v.set("closeOnClick",u),u&&!v.select("open")&&v.cancelPendingOpen(W.nativeEvent)},onClick(W){u&&!v.select("open")&&v.cancelPendingOpen(W.nativeEvent)},id:b,[hn]:H?"":void 0,[as]:H?void 0:""},g],stateAttributesMapping:At})},"TooltipTrigger"));var ps=T(A(),1);var dr=T(A(),1);var Lr=dr.createContext(void 0);function is(){let t=dr.useContext(Lr);if(t===void 0)throw new Error(Q(70));return t}s(is,"useTooltipPortalContext");var pr=T(A(),1),ls=T($r(),1);var cs=T(se(),1);var ds=pr.forwardRef(s(function(e,o){let{children:r,container:n,className:i,render:l,style:c,...p}=e,{node:d,subtree:u}=Tn({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!d?null:(0,cs.jsxs)(pr.Fragment,{children:[u,d&&ls.createPortal(r,d)]})},"FloatingPortalLite"));var Hr=T(se(),1);var us=ps.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e;return ve().useState("mounted")||r?(0,Hr.jsx)(Lr.Provider,{value:r,children:(0,Hr.jsx)(ds,{ref:o,...n})}):null},"TooltipPortal"));var mr=T(A(),1);var ur=T(A(),1);var Br=ur.createContext(void 0);function no(){let t=ur.useContext(Br);if(t===void 0)throw new Error(Q(71));return t}s(no,"useTooltipPositionerContext");var ms=T(se(),1);var fs=mr.forwardRef(s(function(e,o){let{render:r,className:n,anchor:i,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=No,style:b,...P}=e,y=ve(),S=is(),C=y.useState("open"),w=y.useState("mounted"),R=y.useState("trackCursorAxis"),N=y.useState("disableHoverablePopup"),E=y.useState("floatingRootContext"),k=y.useState("instantType"),M=y.useState("transitionStatus"),L=y.useState("adaptiveOrigin"),_=Ho({anchor:i,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:S,collisionAvoidance:v,adaptiveOrigin:L}),j=mr.useMemo(()=>({open:C,side:_.side,align:_.align,anchorHidden:_.anchorHidden,instant:R!=="none"?"tracking-cursor":k}),[C,_.side,_.align,_.anchorHidden,R,k]),z=jo(e,j,{styles:_.positionerStyles,transitionStatus:M,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!w,inert:!C||R==="both"||N});return(0,ms.jsx)(Br.Provider,{value:_,children:z})},"TooltipPositioner"));var gs=T(A(),1);var hs=gs.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=ve(),{side:p,align:d}=no(),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");Lt({open:u,ref:c.context.popupRef,onComplete(){u&&c.context.onOpenChangeComplete?.(!0)}}),Io(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:[Kt,g,Fo(h),l],stateAttributesMapping:we})},"TooltipPopup"));var vs=T(A(),1);var bs=vs.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=ve(),{arrowRef:p,side:d,align:u,arrowUncentered:f,arrowStyles:h}=no(),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:Vt})},"TooltipArrow"));var xs=T(A(),1);var Fr=T(se(),1);var ys=s(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,i=xs.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Fr.jsx)(Vr.Provider,{value:o,children:(0,Fr.jsx)(Cn,{delay:i,timeoutMs:n,children:e.children})})},"TooltipProvider");var Ps=T(A(),1);var Cs=Ps.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=ve(),d=no(),u=p.useState("instantType"),{children:f,state:h}=Uo({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:Ko})},"TooltipViewport"));var yo=class extends jt{static{s(this,"TooltipHandle")}constructor(){super(Xa(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ss(){return new yo}s(Ss,"createTooltipHandle");var Rs=T(xr(),1);var Ts=T(se(),1);var oi=s((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?sn:an(e,o),"I"),Ns=s(t=>{let e=(0,Rs.c)(7),{catalogs:o,children:r,i18n:n,locale:i}=t,l;e[0]!==o||e[1]!==n||e[2]!==i?(l=oi(n,i,o),e[0]=o,e[1]=n,e[2]=i,e[3]=l):l=e[3];let c=l,p;return e[4]!==r||e[5]!==c?(p=(0,Ts.jsx)(ln,{value:c,children:r}),e[4]=r,e[5]=c,e[6]=p):p=e[6],p},"S");var zr=T(xr(),1);var Me=T(A(),1);var oe=T(se(),1);var jr="lunora:command-palette",ws=s(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(jr))},"ce"),ri=s(t=>{let e=(0,zr.c)(18),{active:o,index:r,item:n,onActivate:i,onSelect:l}=t,c;e[0]!==n||e[1]!==l?(c=s(()=>{l(n)},"g"),e[0]=n,e[1]=l,e[2]=c):c=e[2];let p=c,d;e[3]!==r||e[4]!==i?(d=s(()=>{i(r)},"x"),e[3]=r,e[4]=i,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]!==n.label?(g=(0,oe.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=g):g=e[9];let m;e[10]!==n.group?(m=(0,oe.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.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"),ni=s((t,e)=>{let o=e.trim().toLowerCase();return o===""?t:t.filter(r=>r.label.toLowerCase().includes(o)||r.group.toLowerCase().includes(o))},"Z"),Es=s(t=>{let e=(0,zr.c)(40),{items:o}=t,r=fe(),n=ao(),{palette:i}=Wo(),[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]!==i?(g=s(()=>{let D=s(q=>{if(!(q.metaKey||q.ctrlKey)||q.key.toLowerCase()!==i)return;let{target:G}=q;G instanceof HTMLElement&&(G.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(G.tagName))||(q.preventDefault(),c(!0))},"t"),V=s(()=>{c(!0)},"l");return globalThis.addEventListener("keydown",D),globalThis.addEventListener(jr,V),()=>{globalThis.removeEventListener("keydown",D),globalThis.removeEventListener(jr,V)}},"s"),m=[i],e[0]=i,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=ni(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=s(D=>{c(D),D||(d(""),f(0))},"I"),e[6]=b):b=e[6];let P=b,y;e[7]!==n?(y=s(D=>{if(P(!1),D.run!==void 0){D.run();return}D.to!==void 0&&eo(n({to:D.to}))},"K"),e[7]=n,e[8]=y):y=e[8];let S=y,C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=s(D=>{d(D.target.value),f(0)},"P"),e[9]=C):C=e[9];let w=C,R;e[10]!==u||e[11]!==v||e[12]!==S?(R=s(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&&S(V);break e}}},"z"),e[10]=u,e[11]=v,e[12]=S,e[13]=R):R=e[13];let N=R,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]!==S||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)(ri,{active:V===u,index:V,item:D,onActivate:f,onSelect:S},D.to??`${D.group}:${D.label}`)),e[26]=u,e[27]=v,e[28]=S,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 _s="(prefers-color-scheme: dark)",As=s(()=>{try{return globalThis.localStorage}catch{return}},"Gt"),ai=s(t=>t==="system"||t==="light"||t==="dark","Es"),Vs=s(()=>globalThis.matchMedia,"Kt"),Ls="lunora-studio-theme",Kr=["system","light","dark"],si=s((t="system")=>{try{let e=As()?.getItem(Ls);return ai(e)?e:t}catch{return t}},"$s"),ks=s(t=>{let e=As();if(e!==void 0)try{e.setItem(Ls,t)}catch{}},"Rt"),ii=s(()=>{try{return Vs()?.(_s).matches?"dark":"light"}catch{return"light"}},"Hs"),li=s((t,e)=>t==="system"?e:t,"Bs"),ci=s(t=>{let e;try{e=Vs()?.(_s)}catch{e=void 0}if(e===void 0)return()=>{};let o=s(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"Vs"),Wr=(0,O.createContext)(null),di=s(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,O.useState)(()=>si(e)),[n,i]=(0,O.useState)(()=>ii());(0,O.useEffect)(()=>ci(i),[]);let l=s(p=>{ks(p),r(p)},"i"),c={cycleTheme:s(()=>{r(p=>{let d=Kr[(Kr.indexOf(p)+1)%Kr.length]??p;return ks(d),d})},"cycleTheme"),resolvedTheme:li(o,n),setTheme:l,systemTheme:n,theme:o};return(0,a.jsx)(Wr,{value:c,children:t})},"zs"),pi=s(t=>{let e=(0,I.c)(3),{children:o}=t,r=(0,O.use)(Wr),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,a.jsx)(di,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"Ds"),ui=s(()=>{let t=(0,O.use)(Wr);if(t===null)throw new br("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"Os");function qg({delay:t=0,...e}){return(0,a.jsx)(Pe.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}s(qg,"Rn");function mi(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,a.jsx)(Pe.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}s(mi,"Zs");function fi(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,a.jsx)(Pe.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(fi,"qs");function gi({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:i,...l}){return(0,a.jsx)(Pe.Portal,{children:(0,a.jsx)(Pe.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,a.jsxs)(Pe.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:[i,(0,a.jsx)(Pe.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"})]})})})}s(gi,"Fs");var hi=s(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 n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.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]=n):n=e[2];let i;return e[3]!==r?(i=(0,a.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=i):i=e[4],i},"Ws"),Hs="lunora.studio.rulesBannerDismissed",vi=s(()=>{try{return globalThis.localStorage.getItem(Hs)==="1"}catch{return!1}},"Us"),bi=s(()=>{try{globalThis.localStorage.setItem(Hs,"1")}catch{}},"js"),xi=s(()=>{let t=(0,I.c)(18),e=fe(),[o,r]=(0,O.useState)(yi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s(()=>{r(!0),bi()},"o"),t[0]=n):n=t[0];let i=n;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.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,a.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,a.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,a.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,a.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=h):h=t[12];let g;t[13]!==f?(g=(0,a.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:i,type:"button",children:h}),t[13]=f,t[14]=g):g=t[14];let m;return t[15]!==u||t[16]!==g?(m=(0,a.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},"Gs");function yi(){return vi()}s(yi,"Ks");function Bs(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,a.jsx)(De.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Bs,"Jt");function Fs(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,a.jsx)(De.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Fs,"Xt");function js({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:i=6,...l}){return(0,a.jsx)(De.Portal,{keepMounted:r,children:(0,a.jsx)(De.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:i,children:(0,a.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})})})}s(js,"es");var Ur=768;function Pi(){let t=(0,I.c)(2),[e,o]=(0,O.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s(()=>{let i=globalThis.matchMedia(`(max-width: ${Ur-1}px)`),l=s(()=>{o(globalThis.innerWidth<Ur)},"i");return i.addEventListener("change",l),o(globalThis.innerWidth<Ur),()=>{i.removeEventListener("change",l)}},"a"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,O.useEffect)(r,n),!!e}s(Pi,"Qs");function Ci(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,a.jsx)(le.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Ci,"Ys");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,a.jsx)(le.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Si,"Js");function Ri(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 n;e[3]!==o?(n=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]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ri,"Xs");function Ti({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,a.jsxs)(Si,{children:[(0,a.jsx)(Ri,{}),(0,a.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),...n,children:[e,r&&(0,a.jsxs)(le.Close,{"data-slot":"sheet-close",render:(0,a.jsx)(Tr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,a.jsx)(Rr,{icon:Hn,strokeWidth:2}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}s(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 n;e[3]!==o?(n=U("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ni,"ta");function wi(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 n;e[3]!==o?(n=U("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(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 n;e[3]!==o?(n=U("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ei,"aa");var ki="sidebar_state",Oi=3600*24*7,Di="16rem",Mi="18rem",Ii="3rem",_i="b",zs=xe.createContext(null);function fr(){let t=xe.useContext(zs);if(!t)throw new br("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}s(fr,"yt");function Ai({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:i,...l}){let c=Pi(),[p,d]=xe.useState(!1),[u,f]=xe.useState(t),h=e??u,g=s(b=>{let P=typeof b=="function"?b(h):b;o?o(P):f(P),document.cookie=`${ki}=${P}; path=/; max-age=${Oi}`},"f"),m=s(()=>c?d(b=>!b):g(b=>!b),"g"),x=xe.useEffectEvent(()=>{m()});xe.useEffect(()=>{let b=s(P=>{P.key===_i&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),x())},"p");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,a.jsx)(zs.Provider,{value:v,children:(0,a.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Di,"--sidebar-width-icon":Ii,...n},className:U("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:i})})}s(Ai,"ca");function Vi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:i,...l}){let{isMobile:c,state:p,openMobile:d,setOpenMobile:u}=fr();return o==="none"?(0,a.jsx)("div",{"data-slot":"sidebar",className:U("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:n}):c?(0,a.jsx)(Ci,{open:d,onOpenChange:u,...l,children:(0,a.jsxs)(Ti,{dir:i,"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":Mi},side:t,children:[(0,a.jsxs)(Ni,{className:"sr-only",children:[(0,a.jsx)(wi,{children:"Sidebar"}),(0,a.jsx)(Ei,{children:"Displays the mobile sidebar."})]}),(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,a.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,a.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,a.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,a.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:n})})]})}s(Vi,"ua");function Li(t){let e=(0,I.c)(15),o,r,n;e[0]!==t?({className:o,onClick:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let{toggleSidebar:i}=fr(),l;e[4]!==o?(l=U(o),e[4]=o,e[5]=l):l=e[5];let c;e[6]!==r||e[7]!==i?(c=s(f=>{r?.(f),i()},"l"),e[6]=r,e[7]=i,e[8]=c):c=e[8];let p,d;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(Rr,{icon:Bn,strokeWidth:2,className:"rtl:rotate-180"}),d=(0,a.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]!==n||e[12]!==l||e[13]!==c?(u=(0,a.jsxs)(Tr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:c,...n,children:[p,d]}),e[11]=n,e[12]=l,e[13]=c,e[14]=u):u=e[14],u}s(Li,"fa");function Hi(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 n;e[3]!==o?(n=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]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Hi,"ma");function Bi(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 n;e[3]!==o?(n=U("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(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 n;e[3]!==o?(n=U("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(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 n;e[3]!==o?(n=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]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(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 n;e[3]!==o?(n=U("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(zi,"ba");function Ki(t){let e=(0,I.c)(10),o,r,n,i;if(e[0]!==t){let{className:p,render:d,...u}=t;o=d,i=Pr,r="div",n=so({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]=n,e[4]=i}else o=e[1],r=e[2],n=e[3],i=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]!==n?(c={defaultTagName:r,props:n,render:o,state:l},e[6]=o,e[7]=r,e[8]=n,e[9]=c):c=e[9],i(c)}s(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 n;e[3]!==o?(n=U("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ui,"xa");function Os(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 n;e[3]!==o?(n=U("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Os,"Et");function Ds(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 n;e[3]!==o?(n=U("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ds,"$t");var Zi=dn("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 Ks({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:i,...l}){let{isMobile:c,state:p}=fr(),d=Pr({defaultTagName:"button",props:so({className:U(Zi({variant:o,size:r}),i)},l),render:n?(0,a.jsx)(fi,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,a.jsxs)(mi,{children:[d,(0,a.jsx)(gi,{side:"right",align:"center",hidden:p!=="collapsed"||c,...n})]})):d}s(Ks,"ss");var Wi=s(t=>t.replace("__lunora_admin__:",""),"wa"),qi=s(()=>(0,O.useSyncExternalStore)(po.subscribe,po.getSnapshot,po.getSnapshot),"ka"),$i=s(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","Ma"),Gi=s(t=>{let e=(0,I.c)(56),{entry:o,focused:r}=t,n=fe(),i;e[0]!==r?(i=s(L=>{L!==null&&r&&L.scrollIntoView({block:"nearest"})},"r"),e[0]=r,e[1]=i):i=e[1];let l=i,c;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(c=s(()=>{jn(`${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=$i(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,a.jsx)(_t,{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=Wi(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let x;e[15]!==m?(x=(0,a.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]!==n?(v=o.kind==="subscription"&&(0,a.jsx)(_t,{className:"shrink-0",variant:"outline",children:n("live")}),e[17]=o.kind,e[18]=n,e[19]=v):v=e[19];let b;e[20]!==o.summary?(b=o.summary!==""&&(0,a.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,a.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]!==n?(y=o.resultCount!==void 0&&(0,a.jsx)("span",{children:n("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=n,e[26]=y):y=e[26];let S;e[27]!==o.pushes||e[28]!==n?(S=o.pushes!==void 0&&o.pushes>0&&(0,a.jsx)("span",{children:n("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=n,e[29]=S):S=e[29];let C;e[30]!==o.durationMs?(C=o.durationMs!==void 0&&(0,a.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=C):C=e[31];let w;e[32]!==n?(w=n("Copy"),e[32]=n,e[33]=w):w=e[33];let R;e[34]!==p||e[35]!==w?(R=(0,a.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]=R):R=e[36];let N;e[37]!==P||e[38]!==y||e[39]!==S||e[40]!==C||e[41]!==R?(N=(0,a.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[P,y,S,C,R]}),e[37]=P,e[38]=y,e[39]=S,e[40]=C,e[41]=R,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,a.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,a.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,a.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},"Na"),Qi=s(t=>{let e=(0,I.c)(62),{focusSeq:o,onClose:r,onShownChange:n,shown:i}=t,l=fe(),c=qi(),[p,d]=(0,O.useState)(""),u;if(e[0]!==c||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==n||e[5]!==i||e[6]!==l){let f=p.trim().toLowerCase(),h=c.filter(V=>(i==="errors"?V.status==="error":!0)&&(f===""||`${V.functionPath} ${V.summary} ${V.shardKey}`.toLowerCase().includes(f))).toReversed(),g;e[8]!==c?(g=c.filter(Yi),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,a.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,a.jsx)(_t,{variant:"secondary",children:P}),e[19]=P,e[20]=y):y=e[20];let S;e[21]!==m||e[22]!==l?(S=m>0&&(0,a.jsx)(_t,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=S):S=e[23];let C=i==="errors",w=i==="errors"&&"bg-accent",R;e[24]!==w?(R=U("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",w),e[24]=w,e[25]=R):R=e[25];let N;e[26]!==n||e[27]!==i?(N=s(()=>{n(i==="errors"?"all":"errors")},"N"),e[26]=n,e[27]=i,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]!==R||e[32]!==N||e[33]!==E||e[34]!==C?(k=(0,a.jsx)("button",{"aria-pressed":C,className:R,"data-testid":"oc-filter-errors",onClick:N,type:"button",children:E}),e[31]=R,e[32]=N,e[33]=E,e[34]=C,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=s(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,a.jsx)(Cr,{"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,a.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:Ji,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,a.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]!==S?(D=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,y,S,k,j,H,Z]}),e[54]=k,e[55]=j,e[56]=H,e[57]=Z,e[58]=b,e[59]=y,e[60]=S,e[61]=D):D=e[61],u=(0,a.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,a.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,a.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:h.map(V=>(0,a.jsx)(Gi,{entry:V,focused:V.seq===o},V.seq))})]}),e[0]=c,e[1]=o,e[2]=p,e[3]=r,e[4]=n,e[5]=i,e[6]=l,e[7]=u}else u=e[7];return u},"Sa");function Yi(t){return t.status==="error"}s(Yi,"Ca");function Ji(){po.clear()}s(Ji,"Pa");var Xi=s(()=>{let t=(0,I.c)(328),e=fe(),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 n;t[4]!==e?(n=e("Evals"),t[4]=e,t[5]=n):n=t[5];let i;t[6]!==e?(i=e("AI usage"),t[6]=e,t[7]=i):i=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 S;t[36]!==e?(S=e("Files"),t[36]=e,t[37]=S):S=t[37];let C;t[38]!==e?(C=e("Flags"),t[38]=e,t[39]=C):C=t[39];let w;t[40]!==e?(w=e("Functions"),t[40]=e,t[41]=w):w=t[41];let R;t[42]!==e?(R=e("Health"),t[42]=e,t[43]=R):R=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("Mail"),t[64]=e,t[65]=Z):Z=t[65];let D;t[66]!==e?(D=e("Payments"),t[66]=e,t[67]=D):D=t[67];let V;t[68]!==e?(V=e("Permissions"),t[68]=e,t[69]=V):V=t[69];let q;t[70]!==e?(q=e("Queues"),t[70]=e,t[71]=q):q=t[71];let G;t[72]!==e?(G=e("Reactors"),t[72]=e,t[73]=G):G=t[73];let ee;t[74]!==e?(ee=e("Realtime"),t[74]=e,t[75]=ee):ee=t[75];let ae;t[76]!==e?(ae=e("RLS Policies"),t[76]=e,t[77]=ae):ae=t[77];let te;t[78]!==e?(te=e("Scheduled"),t[78]=e,t[79]=te):te=t[79];let X;t[80]!==e?(X=e("Schema"),t[80]=e,t[81]=X):X=t[81];let $;t[82]!==e?($=e("Security"),t[82]=e,t[83]=$):$=t[83];let ce;t[84]!==e?(ce=e("Settings"),t[84]=e,t[85]=ce):ce=t[85];let de;t[86]!==e?(de=e("SQL editor"),t[86]=e,t[87]=de):de=t[87];let pe;t[88]!==e?(pe=e("Traces"),t[88]=e,t[89]=pe):pe=t[89];let ge;t[90]!==e?(ge=e("Access Rules"),t[90]=e,t[91]=ge):ge=t[91];let ue;t[92]!==e?(ue=e("Users"),t[92]=e,t[93]=ue):ue=t[93];let W;t[94]!==e?(W=e("Vectors"),t[94]=e,t[95]=W):W=t[95];let ie;t[96]!==e?(ie=e("Workflows"),t[96]=e,t[97]=ie):ie=t[97];let he;t[98]!==o||t[99]!==r||t[100]!==h||t[101]!==g||t[102]!==m||t[103]!==x||t[104]!==v||t[105]!==b||t[106]!==P||t[107]!==y||t[108]!==S||t[109]!==C||t[110]!==n||t[111]!==w||t[112]!==R||t[113]!==N||t[114]!==E||t[115]!==k||t[116]!==M||t[117]!==L||t[118]!==_||t[119]!==j||t[120]!==z||t[121]!==i||t[122]!==H||t[123]!==F||t[124]!==Z||t[125]!==D||t[126]!==V||t[127]!==q||t[128]!==G||t[129]!==ee||t[130]!==ae||t[131]!==te||t[132]!==l||t[133]!==X||t[134]!==$||t[135]!==ce||t[136]!==de||t[137]!==pe||t[138]!==ge||t[139]!==ue||t[140]!==W||t[141]!==ie||t[142]!==c||t[143]!==p||t[144]!==d||t[145]!==u||t[146]!==f?(he={advisorHealth:o,agents:r,evals:n,aiUsage:i,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:S,flags:C,functions:w,health:R,home:N,insights:E,issues:k,kv:M,logs:L,metrics:_,migrations:j,notifications:z,organizations:H,pitr:F,mail:Z,payments:D,permissions:V,queues:q,reactors:G,realtime:ee,rls:ae,schedule:te,schema:X,security:$,settings:ce,sql:de,traces:pe,storageRules:ge,users:ue,vectors:W,workflows:ie},t[98]=o,t[99]=r,t[100]=h,t[101]=g,t[102]=m,t[103]=x,t[104]=v,t[105]=b,t[106]=P,t[107]=y,t[108]=S,t[109]=C,t[110]=n,t[111]=w,t[112]=R,t[113]=N,t[114]=E,t[115]=k,t[116]=M,t[117]=L,t[118]=_,t[119]=j,t[120]=z,t[121]=i,t[122]=H,t[123]=F,t[124]=Z,t[125]=D,t[126]=V,t[127]=q,t[128]=G,t[129]=ee,t[130]=ae,t[131]=te,t[132]=l,t[133]=X,t[134]=$,t[135]=ce,t[136]=de,t[137]=pe,t[138]=ge,t[139]=ue,t[140]=W,t[141]=ie,t[142]=c,t[143]=p,t[144]=d,t[145]=u,t[146]=f,t[147]=he):he=t[147];let Ie=he,be;t[148]!==e?(be=e("Advisors"),t[148]=e,t[149]=be):be=t[149];let Ne;t[150]!==e?(Ne=e("Auth"),t[150]=e,t[151]=Ne):Ne=t[151];let Ce;t[152]!==e?(Ce=e("Database"),t[152]=e,t[153]=Ce):Ce=t[153];let Se;t[154]!==e?(Se=e("Functions"),t[154]=e,t[155]=Se):Se=t[155];let _e;t[156]!==e?(_e=e("Observability"),t[156]=e,t[157]=_e):_e=t[157];let Ae;t[158]!==e?(Ae=e("Operations"),t[158]=e,t[159]=Ae):Ae=t[159];let Ve;t[160]!==e?(Ve=e("Overview"),t[160]=e,t[161]=Ve):Ve=t[161];let Le;t[162]!==e?(Le=e("Settings"),t[162]=e,t[163]=Le):Le=t[163];let He;t[164]!==e?(He=e("Storage"),t[164]=e,t[165]=He):He=t[165];let Po;t[166]!==be||t[167]!==Ne||t[168]!==Ce||t[169]!==Se||t[170]!==_e||t[171]!==Ae||t[172]!==Ve||t[173]!==Le||t[174]!==He?(Po={advisors:be,auth:Ne,database:Ce,functions:Se,observability:_e,operations:Ae,overview:Ve,settings:Le,storage:He},t[166]=be,t[167]=Ne,t[168]=Ce,t[169]=Se,t[170]=_e,t[171]=Ae,t[172]=Ve,t[173]=Le,t[174]=He,t[175]=Po):Po=t[175];let gr=Po,Be;t[176]!==e?(Be=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[176]=e,t[177]=Be):Be=t[177];let Fe;t[178]!==e?(Fe=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[178]=e,t[179]=Fe):Fe=t[179];let je;t[180]!==e?(je=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[180]=e,t[181]=je):je=t[181];let ze;t[182]!==e?(ze=e("Tokens and spend from ctx.ai.model calls \u2014 totals, per function and per model, and the recent calls behind them."),t[182]=e,t[183]=ze):ze=t[183];let Ke;t[184]!==e?(Ke=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[184]=e,t[185]=Ke):Ke=t[185];let Ue;t[186]!==e?(Ue=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[186]=e,t[187]=Ue):Ue=t[187];let Ze;t[188]!==e?(Ze=e("A durable log of admin state-changing operations."),t[188]=e,t[189]=Ze):Ze=t[189];let We;t[190]!==e?(We=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[190]=e,t[191]=We):We=t[191];let qe;t[192]!==e?(qe=e("Enabled plugins and session config (read-only)."),t[192]=e,t[193]=qe):qe=t[193];let $e;t[194]!==e?($e=e("Your modules, and the calls, reads, writes and hand-offs between them, from codegen."),t[194]=e,t[195]=$e):$e=t[195];let Ge;t[196]!==e?(Ge=e("Browse and revoke active sessions across all users."),t[196]=e,t[197]=Ge):Ge=t[197];let Qe;t[198]!==e?(Qe=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[198]=e,t[199]=Qe):Qe=t[199];let Ye;t[200]!==e?(Ye=e("Chart widgets backed by saved read-only SQL queries."),t[200]=e,t[201]=Ye):Ye=t[201];let Je;t[202]!==e?(Je=e("Browse and edit rows across your shard and global tables."),t[202]=e,t[203]=Je):Je=t[203];let Xe;t[204]!==e?(Xe=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[204]=e,t[205]=Xe):Xe=t[205];let et;t[206]!==e?(et=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[206]=e,t[207]=et):et=t[207];let tt;t[208]!==e?(tt=e("Export a shard to NDJSON, or import rows from it."),t[208]=e,t[209]=tt):tt=t[209];let ot;t[210]!==e?(ot=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[210]=e,t[211]=ot):ot=t[211];let rt;t[212]!==e?(rt=e("Browse objects in your R2 storage buckets."),t[212]=e,t[213]=rt):rt=t[213];let nt;t[214]!==e?(nt=e("Inspect feature flags and their live evaluation under a targeting context."),t[214]=e,t[215]=nt):nt=t[215];let at;t[216]!==e?(at=e("Run registered queries, mutations, and actions."),t[216]=e,t[217]=at):at=t[217];let st;t[218]!==e?(st=e("At-a-glance connection, error, and shard signals."),t[218]=e,t[219]=st):st=t[219];let it;t[220]!==e?(it=e("Connection, health, and advisor summary for your deployment."),t[220]=e,t[221]=it):it=t[221];let lt;t[222]!==e?(lt=e("Surface slow functions, error spikes, and cache problems."),t[222]=e,t[223]=lt):lt=t[223];let ct;t[224]!==e?(ct=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[224]=e,t[225]=ct):ct=t[225];let dt;t[226]!==e?(dt=e("A live stream of recent function logs."),t[226]=e,t[227]=dt):dt=t[227];let pt;t[228]!==e?(pt=e("Per-shard health and aggregate metrics."),t[228]=e,t[229]=pt):pt=t[229];let ut;t[230]!==e?(ut=e("Review migration status and run them."),t[230]=e,t[231]=ut):ut=t[231];let mt;t[232]!==e?(mt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[232]=e,t[233]=mt):mt=t[233];let ft;t[234]!==e?(ft=e("Browse and manage organizations, members, and invitations."),t[234]=e,t[235]=ft):ft=t[235];let gt;t[236]!==e?(gt=e("Restore a shard to a point in the last 30 days."),t[236]=e,t[237]=gt):gt=t[237];let ht;t[238]!==e?(ht=e("Email your app sent, captured in dev."),t[238]=e,t[239]=ht):ht=t[239];let vt;t[240]!==e?(vt=e("Synced customers, subscriptions, and webhook events."),t[240]=e,t[241]=vt):vt=t[241];let bt;t[242]!==e?(bt=e("Inspect access policies per table, and probe a function as any identity."),t[242]=e,t[243]=bt):bt=t[243];let xt;t[244]!==e?(xt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[244]=e,t[245]=xt):xt=t[245];let yt;t[246]!==e?(yt=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[246]=e,t[247]=yt):yt=t[247];let Pt;t[248]!==e?(Pt=e("Active WebSocket subscriptions on this shard."),t[248]=e,t[249]=Pt):Pt=t[249];let Ct;t[250]!==e?(Ct=e("Inspect row-level-security policies and roles, per table."),t[250]=e,t[251]=Ct):Ct=t[251];let St;t[252]!==e?(St=e("Inspect and cancel scheduled jobs."),t[252]=e,t[253]=St):St=t[253];let Rt;t[254]!==e?(Rt=e("Inspect each table and its columns."),t[254]=e,t[255]=Rt):Rt=t[255];let Tt;t[256]!==e?(Tt=e("Review admin gates, credentials, and log redaction."),t[256]=e,t[257]=Tt):Tt=t[257];let Nt;t[258]!==e?(Nt=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[258]=e,t[259]=Nt):Nt=t[259];let wt;t[260]!==e?(wt=e("Run read-only SQL against a shard."),t[260]=e,t[261]=wt):wt=t[261];let Et;t[262]!==e?(Et=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[262]=e,t[263]=Et):Et=t[263];let kt;t[264]!==e?(kt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[264]=e,t[265]=kt):kt=t[265];let Ot;t[266]!==e?(Ot=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[266]=e,t[267]=Ot):Ot=t[267];let Dt;t[268]!==e?(Dt=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[268]=e,t[269]=Dt):Dt=t[269];let Mt;t[270]!==e?(Mt=e("Browse Vectorize indexes and run similarity searches."),t[270]=e,t[271]=Mt):Mt=t[271];let It;t[272]!==e?(It=e("Inspect declared Cloudflare Workflows and their bindings."),t[272]=e,t[273]=It):It=t[273];let Co;t[274]!==Tt||t[275]!==Nt||t[276]!==wt||t[277]!==Et||t[278]!==kt||t[279]!==Ot||t[280]!==Dt||t[281]!==Mt||t[282]!==It||t[283]!==Be||t[284]!==Fe||t[285]!==je||t[286]!==ze||t[287]!==Ke||t[288]!==Ue||t[289]!==Ze||t[290]!==We||t[291]!==qe||t[292]!==$e||t[293]!==Ge||t[294]!==Qe||t[295]!==Ye||t[296]!==Je||t[297]!==Xe||t[298]!==et||t[299]!==tt||t[300]!==ot||t[301]!==rt||t[302]!==nt||t[303]!==at||t[304]!==st||t[305]!==it||t[306]!==lt||t[307]!==ct||t[308]!==dt||t[309]!==pt||t[310]!==ut||t[311]!==mt||t[312]!==ft||t[313]!==gt||t[314]!==ht||t[315]!==vt||t[316]!==bt||t[317]!==xt||t[318]!==yt||t[319]!==Pt||t[320]!==Ct||t[321]!==St||t[322]!==Rt?(Co={advisorHealth:Be,agents:Fe,evals:je,aiUsage:ze,analytics:Ke,api:Ue,audit:Ze,authAudit:We,authConfig:qe,architecture:$e,authSessions:Ge,containers:Qe,dashboards:Ye,data:Je,deploymentHealth:Xe,drains:et,export:tt,fanout:ot,files:rt,flags:nt,functions:at,health:st,home:it,insights:lt,issues:ct,logs:dt,metrics:pt,migrations:ut,notifications:mt,organizations:ft,pitr:gt,mail:ht,payments:vt,permissions:bt,queues:xt,reactors:yt,realtime:Pt,rls:Ct,schedule:St,schema:Rt,security:Tt,settings:Nt,sql:wt,kv:Et,storageRules:kt,traces:Ot,users:Dt,vectors:Mt,workflows:It},t[274]=Tt,t[275]=Nt,t[276]=wt,t[277]=Et,t[278]=kt,t[279]=Ot,t[280]=Dt,t[281]=Mt,t[282]=It,t[283]=Be,t[284]=Fe,t[285]=je,t[286]=ze,t[287]=Ke,t[288]=Ue,t[289]=Ze,t[290]=We,t[291]=qe,t[292]=$e,t[293]=Ge,t[294]=Qe,t[295]=Ye,t[296]=Je,t[297]=Xe,t[298]=et,t[299]=tt,t[300]=ot,t[301]=rt,t[302]=nt,t[303]=at,t[304]=st,t[305]=it,t[306]=lt,t[307]=ct,t[308]=dt,t[309]=pt,t[310]=ut,t[311]=mt,t[312]=ft,t[313]=gt,t[314]=ht,t[315]=vt,t[316]=bt,t[317]=xt,t[318]=yt,t[319]=Pt,t[320]=Ct,t[321]=St,t[322]=Rt,t[323]=Co):Co=t[323];let hr=Co,So;return t[324]!==gr||t[325]!==hr||t[326]!==Ie?(So={groupLabel:gr,tabDescription:hr,tabLabel:Ie},t[324]=gr,t[325]=hr,t[326]=Ie,t[327]=So):So=t[327],So},"_a"),el=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.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,a.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,a.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"Ta"),tl=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.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,a.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,a.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},"Aa"),ol=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.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,a.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},"La"),rl=[{Icon:el,value:"system"},{Icon:tl,value:"light"},{Icon:ol,value:"dark"}],nl=s(()=>{let t=(0,I.c)(19),{theme:e,setTheme:o}=ui(),r=fe(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let i;t[2]!==r?(i=r("Light theme"),t[2]=r,t[3]=i):i=t[3];let l;t[4]!==r?(l=r("System theme"),t[4]=r,t[5]=l):l=t[5];let c;t[6]!==n||t[7]!==i||t[8]!==l?(c={dark:n,light:i,system:l},t[6]=n,t[7]=i,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=rl.map(h=>{let{Icon:g,value:m}=h,x=e===m;return(0,a.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:s(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[x&&(0,a.jsx)(zn.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,a.jsx)("span",{className:"relative",children:(0,a.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,a.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},"Ra"),al=s(t=>{let e=(0,I.c)(23),{domain:o,onOpenCommandPalette:r,page:n}=t,i=fe(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(Li,{className:"-ms-1"}),e[0]=l):l=e[0];let c;e[1]!==i?(c=i("Breadcrumb"),e[1]=i,e[2]=c):c=e[2];let p;e[3]!==o?(p=(0,a.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,a.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,a.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=d):d=e[5];let u;e[6]!==n?(u=(0,a.jsx)("span",{className:"font-medium text-foreground",children:n}),e[6]=n,e[7]=u):u=e[7];let f;e[8]!==c||e[9]!==p||e[10]!==u?(f=(0,a.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,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=h):h=e[12];let g;e[13]!==i?(g=i("Search\u2026"),e[13]=i,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.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,a.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,a.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,a.jsx)(nl,{})}),e[19]=v):v=e[19];let b;return e[20]!==x||e[21]!==f?(b=(0,a.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},"Ea"),sl={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"},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"}},il={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"},ll={kind:"hidden"},Ms={kind:"ok"},cl={kind:"pending"},Us=s((t,e,o)=>{let r=sl[t];return r?.feature!==void 0&&!e[r.feature]?ll:r?.capability===void 0?Ms:e.settled?e.platform?.unsupported.includes(r.capability)===!0?{kind:"unavailable",reason:o("{capability} is not supported on {platform}.",{capability:o(il[r.capability]),platform:e.platform.name})}:Ms:cl},"as"),dl=s((t,e,o)=>{let r={},n=[];for(let i of t){let l=[];for(let c of i.tabs){let p=Us(c,e,o);p.kind!=="hidden"&&l.push(c),p.kind==="unavailable"&&(r[c]=p.reason)}l.length>0&&n.push({...i,tabs:l})}return{unavailable:r,visibleGroups:n}},"za"),pl=s(t=>{let e=(0,I.c)(3),{reason:o,title:r}=t,n;return e[0]!==o||e[1]!==r?(n=(0,a.jsx)(Fn,{description:o,testId:"dash-unsupported",title:r}),e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"Da"),ul=s(t=>{let e=(0,I.c)(4),{console:o}=Wo(),r,n;e[0]!==o||e[1]!==t?(r=s(()=>{if(t===void 0)return;let i=s(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())},"r");return globalThis.addEventListener("keydown",i),()=>{globalThis.removeEventListener("keydown",i)}},"a"),n=[o,t],e[0]=o,e[1]=t,e[2]=r,e[3]=n):(r=e[2],n=e[3]),(0,O.useEffect)(r,n)},"Oa"),J=s((t,e)=>(0,O.lazy)(()=>t().then(o=>({default:o[e]}))),"R"),ml=J(()=>import("./chunk-KD6OU5GM.js"),"InsightsPanel"),fl=(0,O.lazy)(()=>import("./chunk-RKS4LAKS.js")),gl=(0,O.lazy)(()=>import("./chunk-FIX4YZH3.js")),hl=(0,O.lazy)(()=>import("./chunk-7RZ6FOG6.js")),vl=(0,O.lazy)(()=>import("./chunk-OUEJHLUX.js")),bl=J(()=>import("./chunk-PIMTWCRD.js"),"AnalyticsPanel"),xl=(0,O.lazy)(()=>import("./chunk-I2LU36YS.js")),yl=(0,O.lazy)(()=>import("./chunk-P5TMMDVW.js")),Pl=(0,O.lazy)(()=>import("./chunk-IA25TFHO.js")),Cl=(0,O.lazy)(()=>import("./chunk-XQIDTBFH.js")),Sl=(0,O.lazy)(()=>import("./chunk-SUCU3ZAO.js")),Rl=(0,O.lazy)(()=>import("./chunk-OQBYCVDK.js")),Tl=J(()=>import("./chunk-K2OUSI63.js"),"UsersPanel"),Nl=(0,O.lazy)(()=>import("./chunk-U3MTI3IN.js")),wl=J(()=>import("./chunk-6R4ROTON.js"),"DeploymentHealthPanel"),El=J(()=>import("./chunk-H6WO3TFT.js"),"TableEditor"),kl=J(()=>import("./chunk-SVZOEJEA.js"),"ExportImportPanel"),Ol=(0,O.lazy)(()=>import("./chunk-FHNG7QHV.js")),Dl={data:Zn,migrations:Wn},Ml=J(()=>import("./chunk-K342KBP5.js"),"PitrPanel"),Il=(0,O.lazy)(()=>import("./chunk-5EPYBABM.js")),_l=(0,O.lazy)(()=>import("./chunk-LRABO5JF.js")),Al=J(()=>import("./chunk-OHZY3Z6U.js"),"FunctionRunner"),Vl=J(()=>import("./chunk-YRSZ7R5M.js"),"FunctionStatsPanel"),Ll=(0,O.lazy)(()=>import("./chunk-2POR2UIU.js")),Hl=J(()=>import("./chunk-QRFKR22V.js"),"AuditPanel"),Bl=(0,O.lazy)(()=>import("./chunk-JZGTSH2C.js")),Fl=(0,O.lazy)(()=>import("./chunk-RI2TLT4W.js").then(t=>({default:t.LogsPanel}))),jl=J(()=>import("./chunk-2OPEPZPK.js"),"MailPanel"),zl=J(()=>import("./chunk-NQNVQNER.js"),"SchedulePanel"),Kl=(0,O.lazy)(()=>import("./chunk-YBILTG2T.js")),Ul=(0,O.lazy)(()=>import("./chunk-VINW46KZ.js")),Zl=J(()=>import("./chunk-S4TCG3US.js"),"KvBrowser"),Wl=(0,O.lazy)(()=>import("./chunk-SLUVTEPX.js")),ql=J(()=>import("./chunk-LZXXQXL7.js"),"PaymentsPanel"),$l=J(()=>import("./chunk-QLVYMNCS.js"),"PermissionsPanel"),Gl=(0,O.lazy)(()=>import("./chunk-225RE5GA.js")),Ql=(0,O.lazy)(()=>import("./chunk-EVRDIDUZ.js")),Yl=(0,O.lazy)(()=>import("./chunk-3PG4P5EM.js")),Jl=J(()=>import("./chunk-OM5AXBYZ.js"),"HealthPanel"),Xl=J(()=>import("./chunk-GQYM4BFO.js"),"MetricsPanel"),ec=J(()=>import("./chunk-XI6S7YPS.js"),"SchemaViewer"),tc=J(()=>import("./chunk-WBMTG4DM.js"),"SettingsPanel"),oc=J(()=>import("./chunk-R7D2S6ZG.js"),"SqlEditorPanel"),rc=J(()=>import("./chunk-TSWDU7TX.js"),"FileBrowser"),nc=(0,O.lazy)(()=>import("./chunk-PO3S7KA4.js")),ac=(0,O.lazy)(()=>import("./chunk-V4UFDTTR.js")),sc=(0,O.lazy)(()=>import("./chunk-U7RUITYE.js")),ic=(0,O.lazy)(()=>import("./chunk-GE3WXW3Y.js")),lc=J(()=>import("./chunk-BMKNXB4P.js"),"VectorBrowser"),cc=(0,O.lazy)(()=>import("./chunk-DIHZQ4D5.js")),Zs=(0,O.createContext)(null),dc={analytics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),architecture:(0,a.jsx)("path",{d:"M4 4h6v5H4V4Zm10 0h6v5h-6V4ZM9 15h6v5H9v-5ZM7 9v3h10V9M12 12v3"}),audit:(0,a.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,a.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,a.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,a.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,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,a.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,a.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,a.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,a.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,a.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,a.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,a.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,a.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,a.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,a.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:(0,a.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,a.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,a.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,a.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,a.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,a.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,a.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,a.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,a.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,a.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,a.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,a.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,a.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,a.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:(0,a.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,a.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,a.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,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,a.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,a.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,a.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,a.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,a.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,a.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,a.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,a.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Is=[{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"]},{key:"settings",tabs:["settings"]}],Zr=s(t=>{let e=(0,I.c)(2),{tab:o}=t,r=dc[o],n;return e[0]!==r?(n=(0,a.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]=n):n=e[1],n},"_t"),pc=s(t=>t,"Oo"),Ws=pc(["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","settings"]),uc=new Set(["api","data","migrations","sql"]),mc=s(t=>{let e=t.split("/").findLast(Boolean)??"";return Ws.includes(e)?e:"home"},"qo"),fc=s(t=>{let e=(0,I.c)(19),{chrome:o,connected:r}=t,n=fe(),i;e[0]!==n?(i=n("admin token"),e[0]=n,e[1]=i):i=e[1];let l;e[2]!==i?(l=(0,a.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:i}),e[2]=i,e[3]=l):l=e[3];let c;e[4]!==o.onTokenChange||e[5]!==o.token?(c=(0,a.jsx)(Cr,{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]!==n?(p=r&&(0,a.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),n("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]=n,e[9]=p):p=e[9];let d;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(d=r&&(0,a.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:n("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=n,e[13]=d):d=e[13];let u;return e[14]!==l||e[15]!==c||e[16]!==p||e[17]!==d?(u=(0,a.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},"Fo"),qs="opacity-50",gc=s(t=>{let e=(0,I.c)(27),{current:o,group:r,groupLabel:n,selectTab:i,tabDescription:l,tabLabel:c,unavailable:p}=t,d=r.tabs.includes(o)?"page":void 0,u=n[r.key],f=r.tabs[0],h;e[0]!==f?(h=(0,a.jsx)(Zr,{tab:f}),e[0]=f,e[1]=h):h=e[1];let g;e[2]!==d||e[3]!==u||e[4]!==h?(g=(0,a.jsx)(Fs,{"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=n[r.key],x;e[6]!==m?(x=(0,a.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]!==i||e[11]!==l||e[12]!==c||e[13]!==p){let y;e[15]!==o||e[16]!==i||e[17]!==l||e[18]!==c||e[19]!==p?(y=s(S=>(0,a.jsxs)("button",{"aria-current":o===S?"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[S]!==void 0&&qs),"data-tab":S,"data-testid":`dash-tab-${S}`,"data-unsupported":p[S]===void 0?void 0:"true",onClick:i,title:l[S],type:"button",children:[(0,a.jsx)(Zr,{tab:S}),(0,a.jsx)("span",{children:c[S]})]},S),"x"),e[15]=o,e[16]=i,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]=i,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,a.jsxs)(js,{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,a.jsxs)(Bs,{children:[g,b]}),e[24]=g,e[25]=b,e[26]=P):P=e[26],P},"Wo"),hc=s(t=>{let e=(0,I.c)(45),{chrome:o,collapsed:r,connected:n}=t,i=fe();if(o===null){let y;e[0]!==i?(y=i("Admin"),e[0]=i,e[1]=y):y=e[1];let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=S):S=e[2];let C;e[3]!==i?(C=i("Admin"),e[3]=i,e[4]=C):C=e[4];let w;e[5]!==C?(w=(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:C}),e[5]=C,e[6]=w):w=e[6];let R;e[7]!==i?(R=i("Studio"),e[7]=i,e[8]=R):R=e[8];let N;e[9]!==R?(N=(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:R}),e[9]=R,e[10]=N):N=e[10];let E;e[11]!==w||e[12]!==N?(E=(0,a.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,a.jsxs)(Ks,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[S,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]!==n||e[20]!==i?(p=i(n?"Connected":"Not connected"),e[19]=n,e[20]=i,e[21]=p):p=e[21];let d=n?"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,a.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,a.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let h;e[26]!==r||e[27]!==n||e[28]!==i?(h=!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:i("Admin")}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:i(n?"Connected":"Not connected")})]}),(0,a.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,a.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=n,e[28]=i,e[29]=h):h=e[29];let g;e[30]!==c||e[31]!==p||e[32]!==f||e[33]!==h?(g=(0,a.jsxs)(Fs,{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]!==n?(v=(0,a.jsx)(fc,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=v):v=e[37];let b;e[38]!==x||e[39]!==v||e[40]!==m?(b=(0,a.jsx)(js,{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,a.jsxs)(Bs,{children:[g,b]}),e[42]=b,e[43]=g,e[44]=P):P=e[44],P},"Uo"),vc=s(t=>{let e=(0,I.c)(29),{chrome:o,connected:r,current:n,groupLabel:i,groups:l,selectTab:c,tabDescription:p,tabLabel:d,unavailable:u}=t,f=fe(),{state:h}=fr(),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,a.jsx)(hi,{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,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:f("Studio")})]}),(0,a.jsx)(_t,{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,a.jsx)(Bi,{children:(0,a.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]!==n||e[12]!==i||e[13]!==l||e[14]!==c||e[15]!==p||e[16]!==d||e[17]!==u?(y=g?l.map(R=>(0,a.jsx)(gc,{current:n,group:R,groupLabel:i,selectTab:c,tabDescription:p,tabLabel:d,unavailable:u},R.key)):l.map(R=>(0,a.jsxs)(zi,{children:[(0,a.jsx)(Ki,{className:"text-[11px] font-medium tracking-wider uppercase",children:i[R.key]}),(0,a.jsx)(Ui,{children:(0,a.jsx)(Os,{children:R.tabs.map(N=>(0,a.jsx)(Ds,{children:(0,a.jsxs)(Ks,{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&&qs),"data-tab":N,"data-testid":`dash-tab-${N}`,"data-unsupported":u[N]===void 0?void 0:"true",isActive:n===N,onClick:c,title:p[N],tooltip:p[N],children:[(0,a.jsx)(Zr,{tab:N}),(0,a.jsx)("span",{children:d[N]})]})},N))})})]},R.key)),e[10]=g,e[11]=n,e[12]=i,e[13]=l,e[14]=c,e[15]=p,e[16]=d,e[17]=u,e[18]=y):y=e[18];let S;e[19]!==y?(S=(0,a.jsx)(ji,{children:y}),e[19]=y,e[20]=S):S=e[20];let C;e[21]!==o||e[22]!==g||e[23]!==r?(C=(0,a.jsx)(Fi,{children:(0,a.jsx)(Os,{children:(0,a.jsx)(Ds,{children:(0,a.jsx)(hc,{chrome:o,collapsed:g,connected:r})})})}),e[21]=o,e[22]=g,e[23]=r,e[24]=C):C=e[24];let w;return e[25]!==P||e[26]!==S||e[27]!==C?(w=(0,a.jsxs)(Vi,{collapsible:"icon",variant:"inset",children:[P,S,C]}),e[25]=P,e[26]=S,e[27]=C,e[28]=w):w=e[28],w},"jo"),qr=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Zo,{className:"h-8 w-40"}),(0,a.jsx)(Zo,{className:"h-8 w-24"})]}),(0,a.jsx)(Zo,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Lt"),bc=s(t=>{let e=(0,I.c)(5),{title:o,verdict:r}=t;if(r.kind==="pending"){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(qr,{}),e[0]=i):i=e[0],i}if(r.kind==="unavailable"){let i;return e[1]!==o||e[2]!==r.reason?(i=(0,a.jsx)(pl,{reason:r.reason,title:o}),e[1]=o,e[2]=r.reason,e[3]=i):i=e[3],i}let n;return e[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(Xr,{}),e[4]=n):n=e[4],n},"Go"),xc=s(()=>{let t=(0,I.c)(46),e=fe(),o=ao(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Tc},t[0]=r):r=t[0];let n=on(r),i=mc(n),l=uc.has(i),c=nn(),p=c?.toggle;ul(p);let d=Kn(),{groupLabel:u,tabDescription:f,tabLabel:h}=Xi(),{unavailable:g,visibleGroups:m}=dl(Is,d,e),x={...f,...g},v=Us(i,d,e),b=v.kind==="hidden",P,y;t[1]!==b||t[2]!==o?(P=s(()=>{b&&eo(o({replace:!0,to:"/home"}))},"p"),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 S;t[5]!==o?(S=s(ue=>{eo(o({to:`/${ue.currentTarget.dataset.tab??""}`}))},"k"),t[5]=o,t[6]=S):S=t[6];let C=S,w,R;t[7]!==i||t[8]!==h?(w=s(()=>{typeof document<"u"&&(document.title=`${h[i]} \xB7 lunora`)},"C"),R=[i,h],t[7]=i,t[8]=h,t[9]=w,t[10]=R):(w=t[9],R=t[10]),(0,O.useEffect)(w,R);let N=m.find(ue=>ue.tabs.includes(i))??Is[0],E=m.flatMap(ue=>ue.tabs.filter(W=>g[W]===void 0).map(W=>({group:u[ue.key],label:h[W],to:`/${W}`}))),k=p===void 0?E:[...E,{group:e("Operations"),label:e("Toggle operation console"),run:p}],M=(0,O.use)(Zs),L=M!==null&&M.token!=="",_;t[11]!==k?(_=(0,a.jsx)(Es,{items:k}),t[11]=k,t[12]=_):_=t[12];let j=u[N.key],z=h[i],H;t[13]!==j||t[14]!==z?(H=(0,a.jsx)(al,{domain:j,onOpenCommandPalette:ws,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,a.jsx)(xi,{}),t[16]=M?.rulesInstalled,t[17]=F):F=t[17];let Z=`dash-tab-${i}`,D=l?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",V=h[i],q;t[18]!==e||t[19]!==V?(q=e("{title} failed",{title:V}),t[18]=e,t[19]=V,t[20]=q):q=t[20];let G=h[i],ee;t[21]!==e?(ee=e("Try again"),t[21]=e,t[22]=ee):ee=t[22];let ae;t[23]===Symbol.for("react.memo_cache_sentinel")?(ae=(0,a.jsx)(qr,{}),t[23]=ae):ae=t[23];let te=h[i],X;t[24]!==te||t[25]!==v?(X=(0,a.jsx)(O.Suspense,{fallback:ae,children:(0,a.jsx)(bc,{title:te,verdict:v})}),t[24]=te,t[25]=v,t[26]=X):X=t[26];let $;t[27]!==i||t[28]!==q||t[29]!==G||t[30]!==ee||t[31]!==X?($=(0,a.jsx)(qo,{fallbackTitle:q,label:G,retryLabel:ee,children:X},i),t[27]=i,t[28]=q,t[29]=G,t[30]=ee,t[31]=X,t[32]=$):$=t[32];let ce;t[33]!==D||t[34]!==$?(ce=(0,a.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,a.jsx)(Qi,{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,a.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 ge;return t[42]!==F||t[43]!==pe||t[44]!==H?(ge=(0,a.jsxs)(Hi,{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]=ge):ge=t[45],(0,a.jsxs)(Ai,{className:"min-h-0 flex-1","data-platform":d.platform?.id,"data-testid":"lunora-studio",children:[_,(0,a.jsx)(vc,{chrome:M,connected:L,current:i,groupLabel:u,groups:m,selectTab:C,tabDescription:x,tabLabel:h,unavailable:g}),ge]})},"Ko"),yc=s(()=>{let t=(0,I.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(rn,{children:(0,a.jsx)(xc,{})}),t[0]=e):e=t[0],e},"Qo"),Pc=s(t=>{let e=(0,I.c)(5),{initialShardKey:o,schemaEditable:r}=t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];let i=Yr(n),{table:l}=i,c=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==c||e[3]!==r?(p=(0,a.jsx)(ec,{initialShardKey:o,initialTable:c,schemaEditable:r}),e[1]=o,e[2]=c,e[3]=r,e[4]=p):p=e[4],p},"Yo"),Cc=s(()=>{let t=(0,I.c)(3),e=ao(),o,r;return t[0]!==e?(o=s(()=>{eo(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},"Jo"),Sc=s(({analyticsSqlQuery:t,basePath:e,dataEditable:o=!1,functions:r,initialShardKey:n,openApiSpec:i,openRpcSpec:l,runAsIdentity:c=!1,schemaEditable:p=!1,scheduledCancel:d,scheduledCron:u,scheduledLoad:f})=>{let h=Jr({component:yc}),g={agents:(0,a.jsx)(vl,{initialShardKey:n}),analytics:(0,a.jsx)(bl,{runQuery:t}),api:(0,a.jsx)(xl,{functions:r,initialShardKey:n,openApiSpec:i,openRpcSpec:l}),architecture:(0,a.jsx)(yl,{}),audit:(0,a.jsx)(Hl,{initialShardKey:n}),authAudit:(0,a.jsx)(Pl,{}),authConfig:(0,a.jsx)(Cl,{}),authSessions:(0,a.jsx)(Sl,{}),containers:(0,a.jsx)(Nl,{}),dashboards:(0,a.jsx)(Ql,{initialShardKey:n}),data:(0,a.jsx)(El,{canGenerateRows:o&&p,editable:o,initialShardKey:n}),deploymentHealth:(0,a.jsx)(wl,{}),drains:(0,a.jsx)(Bl,{}),export:(0,a.jsx)(kl,{initialShardKey:n}),fanout:(0,a.jsx)(Yl,{initialShardKey:n}),files:(0,a.jsx)(rc,{}),kv:(0,a.jsx)(Zl,{}),flags:(0,a.jsx)(Il,{initialShardKey:n}),reactors:(0,a.jsx)(_l,{initialShardKey:n}),functions:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Vl,{functions:r,initialShardKey:n}),(0,a.jsx)(Al,{functions:r,runAsIdentity:c})]}),health:(0,a.jsx)(Jl,{initialShardKey:n}),home:(0,a.jsx)(Un,{initialShardKey:n}),insights:(0,a.jsx)(ml,{initialShardKey:n}),issues:(0,a.jsx)(Ll,{initialShardKey:n}),logs:(0,a.jsx)(Fl,{initialShardKey:n}),traces:(0,a.jsx)(ac,{initialShardKey:n}),evals:(0,a.jsx)(sc,{initialShardKey:n}),aiUsage:(0,a.jsx)(ic,{initialShardKey:n}),metrics:(0,a.jsx)(Xl,{initialShardKey:n}),migrations:(0,a.jsx)(Ol,{initialShardKey:n}),notifications:(0,a.jsx)(Wl,{}),organizations:(0,a.jsx)(Rl,{}),permissions:(0,a.jsx)($l,{functions:r,runAsIdentity:c,schemaEditable:p}),pitr:(0,a.jsx)(Ml,{initialShardKey:n}),mail:(0,a.jsx)(jl,{}),payments:(0,a.jsx)(ql,{}),queues:(0,a.jsx)(Gl,{}),realtime:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Kl,{initialShardKey:n}),(0,a.jsx)(Ul,{})]}),rls:(0,a.jsx)(fl,{}),schedule:(0,a.jsx)(zl,{loadCronJobs:u,scheduledCancel:d,scheduledLoad:f}),schema:(0,a.jsx)(Pc,{initialShardKey:n,schemaEditable:p}),advisorHealth:(0,a.jsx)(gl,{}),security:(0,a.jsx)(hl,{}),settings:(0,a.jsx)(tc,{initialShardKey:n}),sql:(0,a.jsx)(oc,{initialShardKey:n}),storageRules:(0,a.jsx)(nc,{}),users:(0,a.jsx)(Tl,{}),vectors:(0,a.jsx)(lc,{}),workflows:(0,a.jsx)(cc,{})},m=yr({component:s(()=>g.home,"component"),getParentRoute:s(()=>h,"getParentRoute"),path:"/"}),x=Ws.map(P=>yr({component:s(()=>g[P],"component"),getParentRoute:s(()=>h,"getParentRoute"),path:`/${P}`,validateSearch:Dl[P]})),v=h.addChildren([m,...x]),b="window"in globalThis?Gr():Qr({initialEntries:["/home"]});return en({...e===void 0||e==="/"?{}:{basepath:e},defaultNotFoundComponent:Cc,defaultPendingComponent:qr,defaultPendingMinMs:0,defaultPendingMs:0,history:b,routeTree:v})},"Xo"),Rc=s(t=>{let e=(0,I.c)(18),{analyticsSqlQuery:o,basePath:r,chrome:n,dataEditable:i,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:u,schemaEditable:f,scheduledCancel:h,scheduledCron:g,scheduledLoad:m}=t,x;e[0]!==o||e[1]!==r||e[2]!==i||e[3]!==l||e[4]!==c||e[5]!==p||e[6]!==d||e[7]!==u||e[8]!==h||e[9]!==g||e[10]!==m||e[11]!==f?(x=Sc({analyticsSqlQuery:o,basePath:r,dataEditable:i,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:u,schemaEditable:f,scheduledCancel:h,scheduledCron:g,scheduledLoad:m}),e[0]=o,e[1]=r,e[2]=i,e[3]=l,e[4]=c,e[5]=p,e[6]=d,e[7]=u,e[8]=h,e[9]=g,e[10]=m,e[11]=f,e[12]=x):x=e[12];let v=x,b=n??null,P;e[13]!==v?(P=(0,a.jsx)(tn,{router:v}),e[13]=v,e[14]=P):P=e[14];let y;return e[15]!==b||e[16]!==P?(y=(0,a.jsx)(Zs,{value:b,children:P}),e[15]=b,e[16]=P,e[17]=y):y=e[17],y},"en"),$g=s(t=>{let e=(0,I.c)(10),o,r,n;e[0]!==t?({i18n:o,locale:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let i;e[4]!==n?(i=(0,a.jsx)(pi,{children:(0,a.jsx)(Rc,{...n})}),e[4]=n,e[5]=i):i=e[5];let l=i;if(o===void 0&&r===void 0)return l;let c;return e[6]!==o||e[7]!==r||e[8]!==l?(c=(0,a.jsx)(Ns,{i18n:o,locale:r,children:l}),e[6]=o,e[7]=r,e[8]=l,e[9]=c):c=e[9],c},"En");function Tc(t){return t.location.pathname}s(Tc,"tn");export{qo as a,Ns as b,di as c,ui as d,qg as e,hi as f,Ci as g,Ti as h,Ni as i,wi as j,$g as k};
|