@lunora/studio 1.0.0-alpha.376 → 1.0.0-alpha.377
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 +14 -5
- package/dist/index.d.ts +14 -5
- 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/AdvisorHealthPanel.mjs +1 -1
- package/dist/packem_chunks/ApiTab.mjs +1 -1
- package/dist/packem_chunks/AuditPanel.mjs +1 -1
- package/dist/packem_chunks/ExportImportPanel.mjs +1 -1
- package/dist/packem_chunks/FileBrowser.mjs +1 -1
- package/dist/packem_chunks/FunctionRunner.mjs +1 -1
- package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -1
- package/dist/packem_chunks/HealthPanel.mjs +1 -1
- package/dist/packem_chunks/InsightsPanel.mjs +1 -1
- package/dist/packem_chunks/LogsPanel.mjs +1 -1
- package/dist/packem_chunks/MailPanel.mjs +1 -1
- package/dist/packem_chunks/MetricsPanel.mjs +1 -1
- package/dist/packem_chunks/NotificationsPanel.mjs +1 -1
- package/dist/packem_chunks/PitrPanel.mjs +1 -1
- package/dist/packem_chunks/SchemaViewer.mjs +1 -1
- package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -1
- package/dist/packem_chunks/SettingsPanel.mjs +1 -1
- package/dist/packem_chunks/SqlEditorPanel.mjs +1 -1
- package/dist/packem_chunks/TableEditor.mjs +1 -1
- package/dist/packem_chunks/agents-panel.mjs +1 -1
- package/dist/packem_chunks/ai-usage-panel.mjs +1 -1
- package/dist/packem_chunks/assistant-panel.mjs +1 -1
- package/dist/packem_chunks/auth-audit-panel.mjs +1 -1
- package/dist/packem_chunks/containers-panel.mjs +1 -1
- package/dist/packem_chunks/dashboards-panel.mjs +1 -1
- package/dist/packem_chunks/evals-panel.mjs +1 -1
- package/dist/packem_chunks/fanout-panel.mjs +1 -1
- package/dist/packem_chunks/flags-panel.mjs +1 -1
- package/dist/packem_chunks/issues-panel.mjs +1 -1
- package/dist/packem_chunks/kv-browser.mjs +1 -1
- package/dist/packem_chunks/migrations-route.mjs +1 -1
- package/dist/packem_chunks/payments-panel.mjs +1 -1
- package/dist/packem_chunks/permissions-panel.mjs +1 -1
- package/dist/packem_chunks/privacy-requests-panel.mjs +1 -1
- package/dist/packem_chunks/queues-panel.mjs +1 -1
- package/dist/packem_chunks/reactors-panel.mjs +1 -1
- package/dist/packem_chunks/rls-panel.mjs +1 -1
- package/dist/packem_chunks/schedule-panel.mjs +1 -1
- package/dist/packem_chunks/storage-rules-panel.mjs +1 -1
- package/dist/packem_chunks/subscriptions-panel.mjs +1 -1
- package/dist/packem_chunks/traces-panel.mjs +1 -1
- package/dist/packem_chunks/workflows-panel.mjs +1 -1
- package/dist/packem_shared/ADMIN_FUNCTIONS-DAHZ35kM.mjs +1 -0
- package/dist/packem_shared/{ApiDocsPanel-xqgxgYCy.mjs → ApiDocsPanel-sEDqUNQq.mjs} +1 -1
- package/dist/packem_shared/{DataBrowser-BR2nrvMW.mjs → DataBrowser-CkVOu6py.mjs} +1 -1
- package/dist/packem_shared/{GlobalDataBrowser-Df5S1NxG.mjs → GlobalDataBrowser-l2ECwXCm.mjs} +1 -1
- package/dist/packem_shared/{HomePanel-CHq9VBrh.mjs → HomePanel-c7as4tvl.mjs} +1 -1
- package/dist/packem_shared/{MigrationsPanel-BWGgOwmX.mjs → MigrationsPanel-BQol4Un1.mjs} +1 -1
- package/dist/packem_shared/{Studio-JuMI1hpi.mjs → Studio-BmbkaUrx.mjs} +1 -1
- package/dist/packem_shared/{StudioApp-02dw_keu.mjs → StudioApp-CsyDnrg2.mjs} +1 -1
- package/dist/packem_shared/{advisor-view-Dj-mZPAq.mjs → advisor-view-gtf_DhUU.mjs} +1 -1
- package/dist/packem_shared/{app.d-BXrVLb99.d.mts → app.d-DpxFQ0qO.d.mts} +14 -0
- package/dist/packem_shared/{app.d-BXrVLb99.d.ts → app.d-DpxFQ0qO.d.ts} +14 -0
- package/dist/packem_shared/{assistant-provider-BQG7QZAu.mjs → assistant-provider-Dw0roZh3.mjs} +1 -1
- package/dist/packem_shared/{error-alert-BzZfqmf4.mjs → error-alert-3AR_-s_s.mjs} +1 -1
- package/dist/packem_shared/{home-panel-DTWHlX5S.mjs → home-panel-TpxiaHgB.mjs} +1 -1
- package/dist/packem_shared/{studio-DtxNxSjs.mjs → studio-DZlpp4Vx.mjs} +1 -1
- package/dist/packem_shared/{table-list-sidebar-C8qPvzGk.mjs → table-list-sidebar-Bfmg04MD.mjs} +1 -1
- package/dist/packem_shared/{use-assistant-rpc-DCC6ph2u.mjs → use-assistant-rpc-AKu8hvPm.mjs} +1 -1
- package/dist/standalone/{chunk-CURIWKKC.js → chunk-22OYIN7Q.js} +1 -1
- package/dist/standalone/{chunk-EVJSGZXV.js → chunk-2BCNWFC5.js} +1 -1
- package/dist/standalone/{chunk-2MZLFQR5.js → chunk-2BUAJRHS.js} +1 -1
- package/dist/standalone/{chunk-J45HAKBU.js → chunk-2KTN53PK.js} +1 -1
- package/dist/standalone/chunk-2NUCBQFU.js +1 -0
- package/dist/standalone/{chunk-B4PRNI7H.js → chunk-2SKEPLDB.js} +1 -1
- package/dist/standalone/{chunk-BQS3C5V3.js → chunk-3FVWKQLT.js} +1 -1
- package/dist/standalone/{chunk-C4BS3LHQ.js → chunk-3J26FAKO.js} +1 -1
- package/dist/standalone/{chunk-F4S2YEYW.js → chunk-446DKR7O.js} +1 -1
- package/dist/standalone/{chunk-ZCXG3567.js → chunk-44ZHY2EU.js} +1 -1
- package/dist/standalone/{chunk-4EPW63HS.js → chunk-4AG356VE.js} +1 -1
- package/dist/standalone/{chunk-ZSWW2UGP.js → chunk-4KPATTV6.js} +1 -1
- package/dist/standalone/{chunk-JYCGHNPF.js → chunk-4RPRUFVA.js} +1 -1
- package/dist/standalone/{chunk-HFBSWKJS.js → chunk-4SY2N2RS.js} +1 -1
- package/dist/standalone/{chunk-KBYFBEG2.js → chunk-553O7ESU.js} +1 -1
- package/dist/standalone/{chunk-K3MVWN6E.js → chunk-5Z6PF6KC.js} +1 -1
- package/dist/standalone/{chunk-7LCGAQWG.js → chunk-5ZZO5UEC.js} +1 -1
- package/dist/standalone/chunk-6ALD476Y.js +8 -0
- package/dist/standalone/{chunk-B3TXCZUI.js → chunk-6BWAMHRF.js} +1 -1
- package/dist/standalone/{chunk-RTE7SDRS.js → chunk-6ORWM6ZT.js} +1 -1
- package/dist/standalone/{chunk-4RGKUS3H.js → chunk-74OCXJGH.js} +1 -1
- package/dist/standalone/{chunk-QXNMGPXW.js → chunk-7E3RA4X6.js} +1 -1
- package/dist/standalone/{chunk-645S7KRU.js → chunk-7VZPHPTH.js} +1 -1
- package/dist/standalone/chunk-7WGZSDRS.js +2 -0
- package/dist/standalone/{chunk-GWNGVKLG.js → chunk-A6TVTNKO.js} +1 -1
- package/dist/standalone/{chunk-6G3E4PJ2.js → chunk-ADABTCDI.js} +1 -1
- package/dist/standalone/{chunk-G6VBT4AU.js → chunk-AFIY2ATE.js} +1 -1
- package/dist/standalone/{chunk-GXTSE66Z.js → chunk-AFLNQEZ5.js} +1 -1
- package/dist/standalone/{chunk-AERXMIND.js → chunk-AKOBXMLE.js} +1 -1
- package/dist/standalone/{chunk-LKML3CX4.js → chunk-AMWPN5JC.js} +1 -1
- package/dist/standalone/{chunk-ALNEZ5D2.js → chunk-APHDGDQX.js} +1 -1
- package/dist/standalone/{chunk-RDS46R5R.js → chunk-BMDQFH65.js} +1 -1
- package/dist/standalone/{chunk-7SNL633X.js → chunk-BS77NGL6.js} +1 -1
- package/dist/standalone/{chunk-OVEOTKK5.js → chunk-CD6Y4HMA.js} +1 -1
- package/dist/standalone/{chunk-R3P6KKUH.js → chunk-CF2MJGHC.js} +1 -1
- package/dist/standalone/{chunk-JIBRGVA7.js → chunk-CJJSRDJQ.js} +1 -1
- package/dist/standalone/{chunk-QHKR5JW4.js → chunk-COLRWCN5.js} +1 -1
- package/dist/standalone/{chunk-F5WJCL3F.js → chunk-CTIZP3XO.js} +1 -1
- package/dist/standalone/{chunk-QAQ3KMY6.js → chunk-CVPH3ATG.js} +1 -1
- package/dist/standalone/{chunk-OSHODLMU.js → chunk-D76SLSGV.js} +1 -1
- package/dist/standalone/{chunk-WAIESA3E.js → chunk-D7SKD7RO.js} +1 -1
- package/dist/standalone/{chunk-CCETXQNF.js → chunk-DB332GVZ.js} +1 -1
- package/dist/standalone/{chunk-BYUXIOPZ.js → chunk-DBOXAUII.js} +1 -1
- package/dist/standalone/{chunk-HSI24FPH.js → chunk-DBV2V6OY.js} +1 -1
- package/dist/standalone/{chunk-JAAXDIR5.js → chunk-DIZP54PG.js} +1 -1
- package/dist/standalone/{chunk-2DT3QG6Q.js → chunk-DRHZZ7IN.js} +1 -1
- package/dist/standalone/{chunk-PEVNCIZQ.js → chunk-EC3XQQRV.js} +1 -1
- package/dist/standalone/{chunk-3D67ZJRW.js → chunk-EDL46BPM.js} +1 -1
- package/dist/standalone/{chunk-4PI2OSSP.js → chunk-EOFWXI3T.js} +1 -1
- package/dist/standalone/{chunk-CHIQ3CJZ.js → chunk-EYDMS22X.js} +1 -1
- package/dist/standalone/{chunk-B76HLC52.js → chunk-F4KT43QZ.js} +1 -1
- package/dist/standalone/chunk-FH4R64SS.js +5 -0
- package/dist/standalone/{chunk-IJNP6YSD.js → chunk-GBVYBBIF.js} +1 -1
- package/dist/standalone/{chunk-ZFEDRJ7R.js → chunk-GQF53GWD.js} +1 -1
- package/dist/standalone/{chunk-EYMLYHWK.js → chunk-GWRKSV2Q.js} +1 -1
- package/dist/standalone/{chunk-2EB7FN5S.js → chunk-H6VTIXVB.js} +1 -1
- package/dist/standalone/{chunk-PUU56AIE.js → chunk-IAVAD545.js} +1 -1
- package/dist/standalone/{chunk-ELUYMLPL.js → chunk-IDK6WH4X.js} +1 -1
- package/dist/standalone/{chunk-EYJX6GXU.js → chunk-IEMQNFZ7.js} +1 -1
- package/dist/standalone/{chunk-KTK4NDWQ.js → chunk-IQ5CIBXJ.js} +1 -1
- package/dist/standalone/{chunk-CZA2P2TU.js → chunk-IYN56FBP.js} +1 -1
- package/dist/standalone/{chunk-EX2DUBRT.js → chunk-JB5VB7PX.js} +1 -1
- package/dist/standalone/{chunk-HCOF7HOM.js → chunk-JNWK5MJC.js} +1 -1
- package/dist/standalone/{chunk-FERYOTLW.js → chunk-JQH5M3FB.js} +1 -1
- package/dist/standalone/{chunk-WSG35SRF.js → chunk-JUTXPZQK.js} +1 -1
- package/dist/standalone/{chunk-PFPJA2HR.js → chunk-K24LZAP2.js} +1 -1
- package/dist/standalone/{chunk-FWOOA2ZR.js → chunk-K7Z7UTJJ.js} +1 -1
- package/dist/standalone/{chunk-6YBEKVUG.js → chunk-KMA6JR2E.js} +1 -1
- package/dist/standalone/{chunk-YUVGMKHG.js → chunk-L27FKJTG.js} +1 -1
- package/dist/standalone/{chunk-N3FNOCHB.js → chunk-LD6JOIEW.js} +1 -1
- package/dist/standalone/{chunk-AFVVESAA.js → chunk-LIQOSH6R.js} +1 -1
- package/dist/standalone/{chunk-UBX5ZPLV.js → chunk-LMCBMC2V.js} +1 -1
- package/dist/standalone/chunk-LYVYUTQY.js +1 -0
- package/dist/standalone/{chunk-HAK2T6YN.js → chunk-M5VU6MF5.js} +1 -1
- package/dist/standalone/{chunk-ASD6UAND.js → chunk-M7EHYZ6R.js} +1 -1
- package/dist/standalone/{chunk-D3DZZHZA.js → chunk-MAZES4KJ.js} +1 -1
- package/dist/standalone/{chunk-42RZZFLX.js → chunk-MBA6SBBO.js} +1 -1
- package/dist/standalone/chunk-MHZNDDGI.js +1 -0
- package/dist/standalone/{chunk-PYQUCCUO.js → chunk-MUCEG53A.js} +1 -1
- package/dist/standalone/{chunk-K46QTJR6.js → chunk-MWF4AQ5B.js} +1 -1
- package/dist/standalone/{chunk-QGAWQTUE.js → chunk-MWMVXHQM.js} +1 -1
- package/dist/standalone/{chunk-CAEJQOMU.js → chunk-MXYZQCDR.js} +1 -1
- package/dist/standalone/{chunk-FEHRNTIU.js → chunk-N33IYFIX.js} +1 -1
- package/dist/standalone/{chunk-X72A525Z.js → chunk-N6H4WQHD.js} +1 -1
- package/dist/standalone/{chunk-QRA7AKYO.js → chunk-N7FOBAV3.js} +1 -1
- package/dist/standalone/{chunk-D6CDIHHL.js → chunk-NSG5VFIL.js} +1 -1
- package/dist/standalone/{chunk-25WEL5RI.js → chunk-NXNTS5G2.js} +1 -1
- package/dist/standalone/{chunk-TW4O2BA5.js → chunk-O5QATFN3.js} +3 -3
- package/dist/standalone/{chunk-SUUBCPUD.js → chunk-O6HYP4FT.js} +1 -1
- package/dist/standalone/{chunk-6FPV3EK2.js → chunk-ODEIAS3V.js} +1 -1
- package/dist/standalone/{chunk-64LU3VU6.js → chunk-OR2CSCVB.js} +1 -1
- package/dist/standalone/{chunk-OT2YNQPU.js → chunk-OVXKPVKS.js} +1 -1
- package/dist/standalone/{chunk-D65UVZIA.js → chunk-OWRWDDJT.js} +1 -1
- package/dist/standalone/chunk-OYCDWIG2.js +33 -0
- package/dist/standalone/{chunk-VUOEJJUH.js → chunk-OZID3UYF.js} +1 -1
- package/dist/standalone/{chunk-CLQKKJHL.js → chunk-P37L55FP.js} +1 -1
- package/dist/standalone/{chunk-SW52HGM4.js → chunk-PGK4SNG3.js} +1 -1
- package/dist/standalone/{chunk-W2FHSEQW.js → chunk-PP75AWAZ.js} +1 -1
- package/dist/standalone/{chunk-VNH4OBJS.js → chunk-QF743FSL.js} +1 -1
- package/dist/standalone/{chunk-BE3FD3E6.js → chunk-QH6WAQIT.js} +1 -1
- package/dist/standalone/{chunk-ONTGYVAN.js → chunk-QLZGKBOW.js} +1 -1
- package/dist/standalone/{chunk-X45MVUVK.js → chunk-QURAUVUB.js} +1 -1
- package/dist/standalone/{chunk-YTPE33AO.js → chunk-QVFWLGGW.js} +1 -1
- package/dist/standalone/chunk-R3RIZDUS.js +1 -0
- package/dist/standalone/{chunk-2BQNNRAP.js → chunk-RNTEWZRJ.js} +1 -1
- package/dist/standalone/{chunk-LQCF6SZW.js → chunk-RNVK7QCW.js} +1 -1
- package/dist/standalone/{chunk-4DIRNQHR.js → chunk-RQFK2LYP.js} +1 -1
- package/dist/standalone/{chunk-JMZT3CEW.js → chunk-SCTYLLJT.js} +1 -1
- package/dist/standalone/{chunk-O3AZ7JKE.js → chunk-T7UKRA6J.js} +1 -1
- package/dist/standalone/{chunk-WB6VGH7X.js → chunk-TKALUM7Y.js} +1 -1
- package/dist/standalone/{chunk-SWFSB4QT.js → chunk-TLOLN6RV.js} +1 -1
- package/dist/standalone/{chunk-6BH5TIGF.js → chunk-UBAPZPI2.js} +1 -1
- package/dist/standalone/{chunk-MWYGLPDV.js → chunk-VB3BKQCE.js} +1 -1
- package/dist/standalone/{chunk-QURCU2N2.js → chunk-VH4NT2WJ.js} +1 -1
- package/dist/standalone/{chunk-MGFELY5Q.js → chunk-VRAOBE6E.js} +1 -1
- package/dist/standalone/{chunk-VXZAS5VS.js → chunk-VSYZL2WH.js} +1 -1
- package/dist/standalone/{chunk-S36FVTKK.js → chunk-W7CLOQOU.js} +1 -1
- package/dist/standalone/chunk-WUWBRYJG.js +1 -0
- package/dist/standalone/{chunk-M4TCBPSY.js → chunk-XMJB5JOF.js} +1 -1
- package/dist/standalone/{chunk-3D2E7WXH.js → chunk-XNZ4WUSQ.js} +1 -1
- package/dist/standalone/{chunk-UBTKEHX6.js → chunk-Y5HPCYBO.js} +1 -1
- package/dist/standalone/chunk-Y6OVSHPH.js +1 -0
- package/dist/standalone/{chunk-UVNJG3UL.js → chunk-YKUO2I5M.js} +1 -1
- package/dist/standalone/{chunk-XLYFGUEF.js → chunk-YNCZVYCO.js} +1 -1
- package/dist/standalone/{chunk-AQ62YJJ5.js → chunk-YOUTNV5Y.js} +1 -1
- package/dist/standalone/{chunk-A2Q3TGIQ.js → chunk-YYJGL32M.js} +1 -1
- package/dist/standalone/{chunk-SZBLYYV6.js → chunk-ZAWNUXWP.js} +1 -1
- package/dist/standalone/{chunk-GMT66LBU.js → chunk-ZIUDJD6M.js} +1 -1
- package/dist/standalone/{chunk-HPD2PZP2.js → chunk-ZUVDTKXM.js} +1 -1
- package/dist/standalone/studio.js +3 -3
- package/package.json +10 -10
- package/dist/packem_shared/ADMIN_FUNCTIONS-C6U-ugro.mjs +0 -1
- package/dist/standalone/chunk-3BQ6FMEA.js +0 -5
- package/dist/standalone/chunk-6A6AELDJ.js +0 -1
- package/dist/standalone/chunk-BG2CJOVS.js +0 -1
- package/dist/standalone/chunk-BKI3JMXQ.js +0 -1
- package/dist/standalone/chunk-KGLIQIZU.js +0 -1
- package/dist/standalone/chunk-PUK3H4RN.js +0 -33
- package/dist/standalone/chunk-QAOZXPLU.js +0 -1
- package/dist/standalone/chunk-RTS5G3ET.js +0 -2
- package/dist/standalone/chunk-RWMOWRJX.js +0 -1
- package/dist/standalone/chunk-Z7ZGAQ5J.js +0 -8
- /package/dist/standalone/{chunk-NGVP66OH.js → chunk-QHVUXMRV.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as _}from"react/compiler-runtime";import{useNavigate as Xe}from"@tanstack/react-router";import{B as et}from"./badge-r_5B4LHP.mjs";import{C as P,a as tt}from"./card-By2O8ULa.mjs";import{E as nt}from"./empty-state-D7jEML_T.mjs";import{u as ve}from"./use-admin-query-CaOm4JS3.mjs";import{useT as T}from"./DEFAULT_LOCALE-BQ3jRT74.mjs";import{ADMIN_FUNCTIONS as ye}from"./ADMIN_FUNCTIONS-
|
|
1
|
+
import{c as _}from"react/compiler-runtime";import{useNavigate as Xe}from"@tanstack/react-router";import{B as et}from"./badge-r_5B4LHP.mjs";import{C as P,a as tt}from"./card-By2O8ULa.mjs";import{E as nt}from"./empty-state-D7jEML_T.mjs";import{u as ve}from"./use-admin-query-CaOm4JS3.mjs";import{useT as T}from"./DEFAULT_LOCALE-BQ3jRT74.mjs";import{ADMIN_FUNCTIONS as ye}from"./ADMIN_FUNCTIONS-DAHZ35kM.mjs";import{c as lt,f as Ne,d as at,w as rt,g as ot,n as it}from"./internal-hIuTpSbx.mjs";import{c as st}from"./utils-bhneXptQ.mjs";import{deriveInsights as ct}from"./DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs";import{useState as Ue,useEffect as qe}from"react";import{u as Ke}from"./use-studio-client-DCA50tF2.mjs";import{jsx as a,jsxs as h}from"react/jsx-runtime";import{B as He}from"./button-q0UYSmrn.mjs";const dt=lt(ye.studioFeatures),We={analytics:!0,auth:!0,containers:!0,flags:!0,kv:!0,mail:!0,notifications:!0,payments:!0,privacy:!0,queues:!0,scheduler:!0,storage:!0,vectors:!0,workflows:!0},ut=t=>{if(t===null||typeof t!="object")return;const{id:e,name:n,unsupported:s}=t;if(!(typeof e!="string"||typeof n!="string"||!Array.isArray(s)))return{id:e,name:n,unsupported:s.filter(l=>typeof l=="string")}},mt=t=>{if(t===null||typeof t!="object")return We;const e=t,n=s=>typeof e[s]=="boolean"?e[s]:!0;return{analytics:n("analytics"),auth:n("auth"),containers:n("containers"),flags:n("flags"),kv:n("kv"),mail:n("mail"),notifications:n("notifications"),payments:n("payments"),privacy:n("privacy"),platform:ut(e.platform),queues:n("queues"),scheduler:n("scheduler"),storage:n("storage"),vectors:n("vectors"),workflows:n("workflows")}},ft={...We,settled:!1},pt=()=>{const t=_(3),e=Ke(),[n,s]=Ue(void 0);let l,r;return t[0]!==e?(l=()=>{const i=new AbortController;return Ne((async()=>{let o;try{o={...mt(await e.query(dt,{},at(""))),settled:!0}}catch{o={...We,settled:!0}}i.signal.aborted||s({client:e,features:o})})()),()=>{i.abort()}},r=[e],t[0]=e,t[1]=l,t[2]=r):(l=t[1],r=t[2]),qe(l,r),n?.client===e?n.features:ft},ht=()=>{const t=_(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.6,viewBox:"0 0 24 24",children:a("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),t[0]=e):e=t[0],e},gt=t=>{const e=_(24),{group:n}=t,s=T(),l=Xe();let r;e[0]!==n.tab||e[1]!==l?(r=()=>{Ne(l({to:`/${n.tab}`}))},e[0]=n.tab,e[1]=l,e[2]=r):r=e[2];const i=r,o=n.bindings.length;let c;e[3]!==n.label?(c=a("span",{className:"text-sm font-medium text-foreground",children:n.label}),e[3]=n.label,e[4]=c):c=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=a(ht,{}),e[5]=u):u=e[5];let m;e[6]!==c?(m=h("div",{className:"flex items-center justify-between",children:[c,u]}),e[6]=c,e[7]=m):m=e[7];let d;e[8]!==o||e[9]!==s?(d=o===1?s("1 binding"):s("{count} bindings",{count:o}),e[8]=o,e[9]=s,e[10]=d):d=e[10];let f;e[11]!==d?(f=a("span",{className:"text-xs text-muted-foreground",children:d}),e[11]=d,e[12]=f):f=e[12];let p;e[13]!==o||e[14]!==n.bindings?(p=o>0&&a("div",{className:"flex flex-wrap gap-1.5",children:n.bindings.map(yt)}),e[13]=o,e[14]=n.bindings,e[15]=p):p=e[15];let g;e[16]!==m||e[17]!==f||e[18]!==p?(g=h(tt,{className:"flex flex-col gap-2 py-4",children:[m,f,p]}),e[16]=m,e[17]=f,e[18]=p,e[19]=g):g=e[19];let x;return e[20]!==n.testId||e[21]!==i||e[22]!==g?(x=a(P,{className:"cursor-pointer gap-0 py-0 transition-colors hover:bg-muted/40","data-testid":n.testId,onClick:i,children:g}),e[20]=n.testId,e[21]=i,e[22]=g,e[23]=x):x=e[23],x},Ve=["kv","files","vectors"],xt=(t,e)=>[...t.filter(n=>n.tab!==e.tab),e].toSorted((n,s)=>Ve.indexOf(n.tab)-Ve.indexOf(s.tab)),bt=()=>{const t=_(19),e=Ke(),n=pt(),s=T();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],t[0]=l):l=t[0];const[r,i]=Ue(l);let o,c;if(t[1]!==e||t[2]!==n.kv||t[3]!==n.storage||t[4]!==n.vectors||t[5]!==s?(o=()=>{const g={cancelled:!1},x=[{enabled:n.kv,label:s("KV Namespaces"),load:async()=>(await e.listKvNamespaces()).map(vt),tab:"kv",testId:"home-binding-kv"},{enabled:n.storage,label:s("R2 Buckets"),load:()=>e.listStorageBuckets(),tab:"files",testId:"home-binding-r2"},{enabled:n.vectors,label:s("Vectorize Indexes"),load:async()=>(await e.listVectorIndexes()).map(Nt),tab:"vectors",testId:"home-binding-vectors"}];for(const b of x)b.enabled&&Ne((async()=>{try{const v=await b.load();if(!g.cancelled){const S={bindings:v,label:b.label,tab:b.tab,testId:b.testId};i(w=>xt(w,S))}}catch{}})());return()=>{g.cancelled=!0}},c=[e,n.kv,n.storage,n.vectors,s],t[1]=e,t[2]=n.kv,t[3]=n.storage,t[4]=n.vectors,t[5]=s,t[6]=o,t[7]=c):(o=t[6],c=t[7]),qe(o,c),r.length===0)return null;let u;t[8]!==s?(u=s("Bindings"),t[8]=s,t[9]=u):u=t[9];let m;t[10]!==u?(m=a("h2",{className:"text-sm font-semibold tracking-tight text-foreground",children:u}),t[10]=u,t[11]=m):m=t[11];let d;t[12]!==r?(d=r.map(_t),t[12]=r,t[13]=d):d=t[13];let f;t[14]!==d?(f=a("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:d}),t[14]=d,t[15]=f):f=t[15];let p;return t[16]!==m||t[17]!==f?(p=h("section",{className:"flex flex-col gap-3","data-testid":"home-bindings",children:[m,f]}),t[16]=m,t[17]=f,t[18]=p):p=t[18],p};function yt(t){return a(et,{variant:"secondary",children:t},t)}function vt(t){return t.binding}function Nt(t){return t.name}function _t(t){return a(gt,{group:t},t.tab)}const St=[{name:"lunora_list_functions",summary:"list every query, mutation, and action with its path"},{name:"lunora_list_tables",summary:"list the schema's tables"},{name:"lunora_get_function_schema",summary:"read a function's argument JSON Schema before calling it"},{name:"lunora_run_query",summary:"run a read-only query"},{name:"lunora_run_mutation",summary:"run a mutation — writes; only when LUNORA_MCP_ALLOW_WRITES is set"},{name:"lunora_run_action",summary:"run an action — writes/effects; only when LUNORA_MCP_ALLOW_WRITES is set"}],wt=t=>JSON.stringify({mcpServers:{lunora:{args:["-y","@lunora/mcp"],command:"npx",env:{LUNORA_ADMIN_TOKEN:"<your-admin-token>",LUNORA_URL:t}}}},null,2),kt=t=>{const e=St.map(n=>`- ${n.name} — ${n.summary}`).join(`
|
|
2
2
|
`);return[`You have a Lunora MCP server connected to the deployment at ${t}.`,"It exposes this backend's functions and schema so you can inspect and operate it:",e,"",`Start by calling lunora_list_functions and lunora_list_tables to learn what exists, then lunora_get_function_schema before any run call. The full HTTP API is also documented at ${t}/_lunora/admin/openapi (that endpoint needs the same admin token the MCP server is configured with).`].join(`
|
|
3
3
|
`)},Ct=1500,At=()=>{const t=_(40),e=T(),{url:n}=Ke();let s;t[0]!==n?(s=rt(n),t[0]=n,t[1]=s):s=t[1];const l=s,[r,i]=Ue(null);let o,c;t[2]!==r?(o=()=>{if(r===null)return;const I=globalThis.setTimeout(()=>{i(null)},Ct);return()=>{globalThis.clearTimeout(I)}},c=[r],t[2]=r,t[3]=o,t[4]=c):(o=t[3],c=t[4]),qe(o,c);let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=(I,L)=>{ot(L)&&i(I)},t[5]=u):u=t[5];const m=u;let d;t[6]!==l?(d=()=>{m("config",wt(l))},t[6]=l,t[7]=d):d=t[7];const f=d;let p;t[8]!==l?(p=()=>{m("prompt",kt(l))},t[8]=l,t[9]=p):p=t[9];const g=p;let x;t[10]!==e?(x=e("Connect an AI agent"),t[10]=e,t[11]=x):x=t[11];let b;t[12]!==x?(b=a("span",{className:"text-sm font-medium text-foreground",children:x}),t[12]=x,t[13]=b):b=t[13];let v;t[14]!==e?(v=e("Drive this deployment from an AI agent over the Model Context Protocol — it can list functions and tables, read schemas, and run read-only queries. Writes stay off unless you opt in."),t[14]=e,t[15]=v):v=t[15];let S;t[16]!==v?(S=a("span",{className:"text-xs text-muted-foreground",children:v}),t[16]=v,t[17]=S):S=t[17];let w;t[18]!==b||t[19]!==S?(w=h("div",{className:"flex flex-col gap-1.5 p-4",children:[b,S]}),t[18]=b,t[19]=S,t[20]=w):w=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=a("code",{className:"font-mono text-xs text-muted-foreground","data-testid":"home-connect-agent-command",children:"npx -y @lunora/mcp"}),t[21]=$):$=t[21];let y;t[22]!==r||t[23]!==e?(y=e(r==="config"?"Copied":"Copy MCP config"),t[22]=r,t[23]=e,t[24]=y):y=t[24];let k;t[25]!==f||t[26]!==y?(k=a(He,{"data-testid":"home-connect-agent-copy-config",onClick:f,size:"xs",variant:"outline",children:y}),t[25]=f,t[26]=y,t[27]=k):k=t[27];let C;t[28]!==r||t[29]!==e?(C=e(r==="prompt"?"Copied":"Copy agent prompt"),t[28]=r,t[29]=e,t[30]=C):C=t[30];let A;t[31]!==g||t[32]!==C?(A=a(He,{"data-testid":"home-connect-agent-copy-prompt",onClick:g,size:"xs",variant:"outline",children:C}),t[31]=g,t[32]=C,t[33]=A):A=t[33];let N;t[34]!==k||t[35]!==A?(N=h("div",{className:"flex flex-col gap-3 border-t border-border bg-muted/50 px-4 py-3",children:[$,h("div",{className:"flex flex-wrap gap-2",children:[k,A]})]}),t[34]=k,t[35]=A,t[36]=N):N=t[36];let M;return t[37]!==w||t[38]!==N?(M=h(P,{className:"gap-0 py-0","data-testid":"home-connect-agent",children:[w,N]}),t[37]=w,t[38]=N,t[39]=M):M=t[39],M},Mt=112,Qe=32,Le=5,Ge=1,$t=3,It=t=>{const e=t.slice(-16),n=Math.max(0,...e),s=Qe-Le*2,l=(Mt-Le*2)/e.length;return e.map((r,i)=>{const o=n>0?Math.max(0,r)/n*s:0;return{height:Math.max(0,o-$t),width:Math.max(0,l-Ge*2),x:Le+i*l+Ge,y:Qe-Le-o}})},Tt=t=>{const e=_(4),{data:n}=t;let s;e[0]!==n?(s=It(n).map(Lt),e[0]=n,e[1]=s):s=e[1];let l;return e[2]!==s?(l=a("svg",{"aria-hidden":"true",className:"h-8 w-28 fill-foreground","data-testid":"home-sparkline",viewBox:"0 0 112 32",children:s}),e[2]=s,e[3]=l):l=e[3],l};function Lt(t){return a("rect",{height:t.height,rx:2,width:t.width,x:t.x,y:t.y},t.x)}const Ot=3,Rt=(t,e)=>{if(e==null)return t("cache not enabled");const n=e.hits+e.misses;return n===0?t("no cache traffic yet"):`${Math.round(e.hits/n*100).toString()}% ${t("cache hit")}`},Fe=t=>{if(t<1e3)return`${String(Math.round(t))}ms`;const e=t>=1e4?0:1;return`${(t/1e3).toFixed(e)}s`},Et=(t,e)=>{const n=Math.max(0,Math.round((e-t)/1e3));if(n<60)return`${String(n)}s ago`;const s=Math.round(n/60);if(s<60)return`${String(s)}m ago`;const l=Math.round(s/60);return l<24?`${String(l)}h ago`:`${String(Math.round(l/24))}d ago`},Je=(t,e)=>{if(t===void 0||t.length===0)return[];const n=new Map;for(const s of t)n.set(s.bucketMs,(n.get(s.bucketMs)??0)+s[e]);return[...n.entries()].toSorted(([s],[l])=>s-l).map(([,s])=>s)},Ye=(t,e=!0)=>{if(t.length<4)return null;const n=Math.floor(t.length/2),s=t.slice(0,n).reduce((i,o)=>i+o,0),l=t.slice(n).reduce((i,o)=>i+o,0);if(s===0)return null;const r=(l-s)/s*100;return{positive:e?r>=0:r<=0,text:`${r>=0?"+":""}${r.toFixed(1)}%`}},Oe=t=>{const e=_(24),{delta:n,footer:s,label:l,trend:r,unit:i,value:o}=t,c=T();let u;e[0]!==l?(u=a("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:l}),e[0]=l,e[1]=u):u=e[1];let m;e[2]!==o?(m=a("span",{className:"text-2xl font-semibold tabular-nums text-foreground",children:o}),e[2]=o,e[3]=m):m=e[3];let d;e[4]!==i?(d=i!==void 0&&a("span",{className:"text-xs text-muted-foreground",children:i}),e[4]=i,e[5]=d):d=e[5];let f;e[6]!==m||e[7]!==d?(f=h("span",{className:"flex items-baseline gap-1.5",children:[m,d]}),e[6]=m,e[7]=d,e[8]=f):f=e[8];let p;e[9]!==r?(p=r!==void 0&&r.length>=Ot&&a(Tt,{data:r}),e[9]=r,e[10]=p):p=e[10];let g;e[11]!==f||e[12]!==p?(g=h("div",{className:"flex items-center justify-between gap-3",children:[f,p]}),e[11]=f,e[12]=p,e[13]=g):g=e[13];let x;e[14]!==u||e[15]!==g?(x=h("div",{className:"flex flex-col gap-2.5 p-4",children:[u,g]}),e[14]=u,e[15]=g,e[16]=x):x=e[16];let b;e[17]!==n||e[18]!==s||e[19]!==c?(b=n==null?s!=null&&a("div",{className:"border-t border-border bg-muted/50 px-4 py-2.5 text-[11px] text-muted-foreground",children:s}):h("div",{className:"border-t border-border bg-muted/50 px-4 py-2.5 text-[11px]",children:[a("span",{className:st("font-semibold",n.positive?"text-success":"text-destructive"),children:n.text})," ",a("span",{className:"text-muted-foreground",children:c("vs. prev.")})]}),e[17]=n,e[18]=s,e[19]=c,e[20]=b):b=e[20];let v;return e[21]!==x||e[22]!==b?(v=h(P,{className:"justify-between gap-0 py-0",children:[x,b]}),e[21]=x,e[22]=b,e[23]=v):v=e[23],v},Bt=()=>{const t=_(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a("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:a("path",{d:"m9 6 6 6-6 6"})}),t[0]=e):e=t[0],e},je=t=>{const e=_(7),{command:n,label:s}=t;let l;e[0]!==s?(l=a("div",{className:"p-4",children:a("span",{className:"text-sm font-medium text-foreground",children:s})}),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==n?(r=a("div",{className:"border-t border-border bg-muted/50 px-4 py-2.5",children:a("code",{className:"font-mono text-xs text-muted-foreground",children:n})}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==l||e[5]!==r?(i=h(P,{className:"justify-between gap-0 py-0",children:[l,r]}),e[4]=l,e[5]=r,e[6]=i):i=e[6],i},Ze=t=>{const e=_(18),{count:n,onView:s,testId:l,title:r}=t,i=T();let o;e[0]!==r?(o=a("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:r}),e[0]=r,e[1]=o):o=e[1];let c;e[2]!==n||e[3]!==i?(c=n===null?a("span",{className:"text-xs text-muted-foreground",children:i("No data yet")}):a(et,{variant:n>0?"destructive":"success",children:n>0?n:i("All clear")}),e[2]=n,e[3]=i,e[4]=c):c=e[4];let u;e[5]!==o||e[6]!==c?(u=h("div",{className:"flex items-start justify-between gap-2 p-4",children:[o,c]}),e[5]=o,e[6]=c,e[7]=u):u=e[7];let m;e[8]!==i?(m=i("View"),e[8]=i,e[9]=m):m=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=a(Bt,{}),e[10]=d):d=e[10];let f;e[11]!==s||e[12]!==m?(f=h("button",{className:"flex items-center gap-1 border-t border-border bg-muted/50 px-4 py-2.5 text-[12px] font-medium text-foreground outline-none transition-colors hover:bg-muted focus-visible:bg-muted",onClick:s,type:"button",children:[m,d]}),e[11]=s,e[12]=m,e[13]=f):f=e[13];let p;return e[14]!==u||e[15]!==f||e[16]!==l?(p=h(P,{className:"justify-between gap-0 py-0","data-testid":l,children:[u,f]}),e[14]=u,e[15]=f,e[16]=l,e[17]=p):p=e[17],p},Pt=t=>{const e=_(7),{functions:n}=t,s=T();let l;if(e[0]!==n||e[1]!==s){const r=[...n].toSorted(Ut).slice(0,5);let i;e[3]!==s?(i=s("Top functions"),e[3]=s,e[4]=i):i=e[4];let o;e[5]!==i?(o=a("div",{className:"border-b border-border px-4 py-3",children:a("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:i})}),e[5]=i,e[6]=o):o=e[6],l=h(P,{className:"gap-0 py-0","data-testid":"home-top-functions",children:[o,r.length===0?a("p",{className:"px-4 py-8 text-center text-xs text-muted-foreground",children:s("No functions called yet.")}):h("div",{className:"divide-y divide-border",children:[h("div",{className:"grid grid-cols-[1fr_auto_auto_auto] gap-4 px-4 py-1.5 font-mono text-[10px] tracking-wide text-muted-foreground uppercase",children:[a("span",{children:s("Function")}),a("span",{className:"text-end",children:s("Calls")}),a("span",{className:"w-12 text-end",children:s("Avg")}),a("span",{className:"w-8 text-end",children:s("Err")})]}),r.map(qt)]})]}),e[0]=n,e[1]=s,e[2]=l}else l=e[2];return l},Dt=t=>{const e=_(26),{subs:n}=t,s=T();let l;e[0]!==s?(l=s("Live connections"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=a("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:l}),e[2]=l,e[3]=r):r=e[3];const i=n?.totalConnections??0;let o;e[4]!==i?(o=i.toLocaleString(),e[4]=i,e[5]=o):o=e[5];let c;e[6]!==o?(c=a("span",{className:"text-2xl font-semibold tabular-nums text-foreground",children:o}),e[6]=o,e[7]=c):c=e[7];let u;e[8]!==s?(u=s("sockets"),e[8]=s,e[9]=u):u=e[9];let m;e[10]!==u?(m=a("span",{className:"text-xs text-muted-foreground",children:u}),e[10]=u,e[11]=m):m=e[11];let d;e[12]!==c||e[13]!==m?(d=h("span",{className:"flex items-baseline gap-1.5",children:[c,m]}),e[12]=c,e[13]=m,e[14]=d):d=e[14];const f=n?.totalSubscriptions??0;let p;e[15]!==f?(p=f.toLocaleString(),e[15]=f,e[16]=p):p=e[16];let g;e[17]!==s?(g=s("active subscriptions"),e[17]=s,e[18]=g):g=e[18];let x;e[19]!==p||e[20]!==g?(x=h("span",{className:"text-[11px] text-muted-foreground",children:[p," ",g]}),e[19]=p,e[20]=g,e[21]=x):x=e[21];let b;return e[22]!==x||e[23]!==r||e[24]!==d?(b=a(P,{"data-testid":"home-live-connections",children:h(tt,{className:"flex flex-col gap-2.5 py-4",children:[r,d,x]})}),e[22]=x,e[23]=r,e[24]=d,e[25]=b):b=e[25],b},jt=t=>{const e=_(7),{entries:n}=t,s=T();let l;if(e[0]!==n||e[1]!==s){const r=Date.now();let i;e[3]!==s?(i=s("Recent activity"),e[3]=s,e[4]=i):i=e[4];let o;e[5]!==i?(o=a("div",{className:"border-b border-border px-4 py-3",children:a("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:i})}),e[5]=i,e[6]=o):o=e[6],l=h(P,{className:"gap-0 py-0","data-testid":"home-recent-activity",children:[o,n.length===0?a("p",{className:"px-4 py-8 text-center text-xs text-muted-foreground",children:s("No recent activity.")}):a("ul",{className:"divide-y divide-border",children:n.slice(0,5).map(c=>h("li",{className:"flex items-center justify-between gap-3 px-4 py-2 text-[13px]",children:[h("span",{className:"flex min-w-0 items-center gap-2",children:[a("span",{"aria-hidden":"true",className:"size-1.5 shrink-0 rounded-full bg-muted-foreground/40"}),h("span",{className:"truncate text-foreground",children:[c.op,c.table!==void 0&&h("span",{className:"text-muted-foreground",children:[" · ",c.table,c.id===void 0?"":`#${c.id}`]})]})]}),a("span",{className:"shrink-0 text-xs tabular-nums text-muted-foreground",children:Et(c.ts,r)})]},c.seq))})]}),e[0]=n,e[1]=s,e[2]=l}else l=e[2];return l},Ft=t=>{const e=t.reduce((n,s)=>n+s.calls,0);return e===0?null:t.reduce((n,s)=>n+s.totalDurationMs,0)/e},as=t=>{const e=_(149),{initialShardKey:n}=t,s=T(),l=Xe(),r=n??"";let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={},e[0]=i):i=e[0];let o;e[1]!==r?(o={shardKey:r},e[1]=r,e[2]=o):o=e[2];const c=ve(ye.getMetrics,i,o);let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u={},e[3]=u):u=e[3];let m;e[4]!==r?(m={shardKey:r},e[4]=r,e[5]=m):m=e[5];const d=ve(ye.getFunctionStats,u,m);let f,p;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={},p={shardKey:""},e[6]=f,e[7]=p):(f=e[6],p=e[7]);const g=ve(ye.getSecurityAudit,f,p);let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x={},e[8]=x):x=e[8];let b;e[9]!==r?(b={shardKey:r},e[9]=r,e[10]=b):b=e[10];const v=ve(ye.listSubscriptions,x,b);let S;e[11]===Symbol.for("react.memo_cache_sentinel")?(S={},e[11]=S):S=e[11];let w;e[12]!==r?(w={shardKey:r},e[12]=r,e[13]=w):w=e[13];const $=ve(ye.getAuditLog,S,w),y=c.data??null;let k,C,A,N,M,I,L,O,R,D,j,F,E,B,U,q,K,W;if(e[14]!==$.data||e[15]!==g.data||e[16]!==y||e[17]!==c.data||e[18]!==l||e[19]!==d.data||e[20]!==v.data||e[21]!==s){N=Array.isArray(d.data?.functions)?d.data.functions:[],L=v.data??null;let ke;e[40]!==$.data?(ke=Array.isArray($.data?.entries)?$.data.entries:[],e[40]=$.data,e[41]=ke):ke=e[41],C=ke,M=c.data===void 0||d.data===void 0?null:ct(y,N).length,I=Array.isArray(g.data?.findings)?g.data.findings.length:null;let Ce;e[42]!==l?(Ce=()=>{Ne(l({to:"/security"}))},e[42]=l,e[43]=Ce):Ce=e[43],W=Ce;let Ae;e[44]!==l?(Ae=()=>{Ne(l({to:"/insights"}))},e[44]=l,e[45]=Ae):Ae=e[45],K=Ae;const Me=Je(y?.history,"calls"),$e=Je(y?.history,"errors"),ze=Ft(N),Ie=Math.max(0,...N.map(Kt));let Te;e[46]!==y||e[47]!==s?(Te=y===null?void 0:Rt(s,y.cache),e[46]=y,e[47]=s,e[48]=Te):Te=e[48],A=Te,U="flex flex-col gap-6",q="lunora-home",j="grid gap-3 sm:grid-cols-2 xl:grid-cols-4",F="home-health";const Ee=Ye(Me);let he;e[49]!==s?(he=s("Requests"),e[49]=s,e[50]=he):he=e[50];const Be=y?.requests??0;let ge;e[51]!==Be?(ge=Be.toLocaleString(),e[51]=Be,e[52]=ge):ge=e[52],e[53]!==Me||e[54]!==Ee||e[55]!==he||e[56]!==ge?(E=a(Oe,{delta:Ee,label:he,trend:Me,value:ge}),e[53]=Me,e[54]=Ee,e[55]=he,e[56]=ge,e[57]=E):E=e[57];const Pe=Ye($e,!1);let xe;e[58]!==s?(xe=s("Errors"),e[58]=s,e[59]=xe):xe=e[59];const De=y?.errors??0;let be;e[60]!==De?(be=De.toLocaleString(),e[60]=De,e[61]=be):be=e[61],e[62]!==$e||e[63]!==Pe||e[64]!==xe||e[65]!==be?(B=a(Oe,{delta:Pe,label:xe,trend:$e,value:be}),e[62]=$e,e[63]=Pe,e[64]=xe,e[65]=be,e[66]=B):B=e[66],k=Oe,e[67]!==Ie||e[68]!==s?(O=Ie>0?`${s("max")} ${Fe(Ie)}`:void 0,e[67]=Ie,e[68]=s,e[69]=O):O=e[69],e[70]!==s?(R=s("Avg latency"),e[70]=s,e[71]=R):R=e[71],D=ze===null?"—":Fe(ze),e[14]=$.data,e[15]=g.data,e[16]=y,e[17]=c.data,e[18]=l,e[19]=d.data,e[20]=v.data,e[21]=s,e[22]=k,e[23]=C,e[24]=A,e[25]=N,e[26]=M,e[27]=I,e[28]=L,e[29]=O,e[30]=R,e[31]=D,e[32]=j,e[33]=F,e[34]=E,e[35]=B,e[36]=U,e[37]=q,e[38]=K,e[39]=W}else k=e[22],C=e[23],A=e[24],N=e[25],M=e[26],I=e[27],L=e[28],O=e[29],R=e[30],D=e[31],j=e[32],F=e[33],E=e[34],B=e[35],U=e[36],q=e[37],K=e[38],W=e[39];let z;e[72]!==k||e[73]!==O||e[74]!==R||e[75]!==D?(z=a(k,{footer:O,label:R,value:D}),e[72]=k,e[73]=O,e[74]=R,e[75]=D,e[76]=z):z=e[76];let H;e[77]!==s?(H=s("Database size"),e[77]=s,e[78]=H):H=e[78];const Re=y?.databaseSize??null;let V;e[79]!==Re?(V=it(Re),e[79]=Re,e[80]=V):V=e[80];let Q;e[81]!==A||e[82]!==H||e[83]!==V?(Q=a(Oe,{footer:A,label:H,value:V}),e[81]=A,e[82]=H,e[83]=V,e[84]=Q):Q=e[84];let G;e[85]!==j||e[86]!==F||e[87]!==E||e[88]!==B||e[89]!==z||e[90]!==Q?(G=h("div",{className:j,"data-testid":F,children:[E,B,z,Q]}),e[85]=j,e[86]=F,e[87]=E,e[88]=B,e[89]=z,e[90]=Q,e[91]=G):G=e[91];let _e;e[92]===Symbol.for("react.memo_cache_sentinel")?(_e=a(bt,{}),e[92]=_e):_e=e[92];let J;e[93]!==N?(J=a("div",{className:"lg:col-span-2",children:a(Pt,{functions:N})}),e[93]=N,e[94]=J):J=e[94];let Y;e[95]!==L?(Y=a(Dt,{subs:L}),e[95]=L,e[96]=Y):Y=e[96];let Z;e[97]!==C?(Z=a(jt,{entries:C}),e[97]=C,e[98]=Z):Z=e[98];let X;e[99]!==Y||e[100]!==Z?(X=h("div",{className:"flex flex-col gap-3",children:[Y,Z]}),e[99]=Y,e[100]=Z,e[101]=X):X=e[101];let ee;e[102]!==J||e[103]!==X?(ee=h("div",{className:"grid gap-3 lg:grid-cols-3",children:[J,X]}),e[102]=J,e[103]=X,e[104]=ee):ee=e[104];let te;e[105]!==s?(te=s("Advisors"),e[105]=s,e[106]=te):te=e[106];let se;e[107]!==te?(se=a("h2",{className:"text-sm font-semibold tracking-tight text-foreground",children:te}),e[107]=te,e[108]=se):se=e[108];let ne;e[109]!==M||e[110]!==I||e[111]!==s||e[112]!==K||e[113]!==W?(ne=I===0&&M===0?a(nt,{description:s("No security or performance issues detected."),icon:h("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:[a("path",{d:"M12 3 4 6v5c0 5 3.4 8.5 8 10 4.6-1.5 8-5 8-10V6l-8-3Z"}),a("path",{d:"m9 12 2 2 4-4"})]}),testId:"home-advisors-clear",title:s("No issues found")}):h("div",{className:"grid gap-3 sm:grid-cols-2",children:[a(Ze,{count:I,onView:W,testId:"home-security",title:s("Security findings")}),a(Ze,{count:M,onView:K,testId:"home-performance",title:s("Performance issues")})]}),e[109]=M,e[110]=I,e[111]=s,e[112]=K,e[113]=W,e[114]=ne):ne=e[114];let le;e[115]!==se||e[116]!==ne?(le=h("section",{className:"flex flex-col gap-3","data-testid":"home-advisors",children:[se,ne]}),e[115]=se,e[116]=ne,e[117]=le):le=e[117];let ae;e[118]!==s?(ae=s("Get connected"),e[118]=s,e[119]=ae):ae=e[119];let re;e[120]!==ae?(re=a("h2",{className:"text-sm font-semibold tracking-tight text-foreground",children:ae}),e[120]=ae,e[121]=re):re=e[121];let oe;e[122]!==s?(oe=s("Client SDK"),e[122]=s,e[123]=oe):oe=e[123];let ie;e[124]!==oe?(ie=a(je,{command:"npm i @lunora/client",label:oe}),e[124]=oe,e[125]=ie):ie=e[125];let ce;e[126]!==s?(ce=s("React"),e[126]=s,e[127]=ce):ce=e[127];let de;e[128]!==ce?(de=a(je,{command:"npm i @lunora/react",label:ce}),e[128]=ce,e[129]=de):de=e[129];let ue;e[130]!==s?(ue=s("CLI"),e[130]=s,e[131]=ue):ue=e[131];let me;e[132]!==ue?(me=a(je,{command:"lunora dev",label:ue}),e[132]=ue,e[133]=me):me=e[133];let fe;e[134]!==ie||e[135]!==de||e[136]!==me?(fe=h("div",{className:"grid gap-3 sm:grid-cols-3",children:[ie,de,me]}),e[134]=ie,e[135]=de,e[136]=me,e[137]=fe):fe=e[137];let Se;e[138]===Symbol.for("react.memo_cache_sentinel")?(Se=a(At,{}),e[138]=Se):Se=e[138];let pe;e[139]!==re||e[140]!==fe?(pe=h("section",{className:"flex flex-col gap-3","data-testid":"home-get-connected",children:[re,fe,Se]}),e[139]=re,e[140]=fe,e[141]=pe):pe=e[141];let we;return e[142]!==U||e[143]!==q||e[144]!==G||e[145]!==ee||e[146]!==le||e[147]!==pe?(we=h("div",{className:U,"data-testid":q,children:[G,_e,ee,le,pe]}),e[142]=U,e[143]=q,e[144]=G,e[145]=ee,e[146]=le,e[147]=pe,e[148]=we):we=e[148],we};function Ut(t,e){return e.calls-t.calls}function qt(t){return h("div",{className:"grid grid-cols-[1fr_auto_auto_auto] items-center gap-4 px-4 py-2 text-[13px]",children:[a("span",{className:"truncate font-mono text-xs text-foreground",children:t.path}),a("span",{className:"text-end tabular-nums",children:t.calls.toLocaleString()}),a("span",{className:"w-12 text-end tabular-nums text-muted-foreground",children:Fe(t.calls>0?t.totalDurationMs/t.calls:0)}),a("span",{className:st("w-8 text-end tabular-nums",t.errors>0?"text-destructive":"text-muted-foreground"),children:t.errors})]},t.path)}function Kt(t){return t.maxDurationMs}export{as as H,Rt as c,pt as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{c as N}from"react/compiler-runtime";import{createRootRoute as hs,createRoute as Vt,createBrowserHistory as gs,createMemoryHistory as bs,createRouter as vs,useNavigate as Wt,useSearch as ys,RouterProvider as xs,useRouterState as ws,Outlet as ks}from"@tanstack/react-router";import*as ht from"react";import{use as It,createContext as Ut,useState as ie,useEffect as gt,useSyncExternalStore as Ns,Suspense as Rt,lazy as T}from"react";import{A as Ms,u as Ss}from"./assistant-provider-BQG7QZAu.mjs";import{c as _}from"./utils-bhneXptQ.mjs";import{jsx as o,jsxs as k,Fragment as jt}from"react/jsx-runtime";import{a as Cs,o as Nt}from"./use-admin-query-CaOm4JS3.mjs";import{useAutoRefresh as Ps}from"./DEFAULT_AUTO_REFRESH_MS-B9kGlqXE.mjs";import{u as Et}from"./use-studio-client-DCA50tF2.mjs";import{useT as J}from"./DEFAULT_LOCALE-BQ3jRT74.mjs";import{f as vt,b as $t,h as _s,g as Ts}from"./internal-hIuTpSbx.mjs";import{ConfirmButton as Gt}from"./ConfirmButton-CIXYF6Mg.mjs";import{I as Ht}from"./input-CXhxesPC.mjs";import{ErrorBoundary as As}from"./ErrorBoundary-BWNF98VF.mjs";import{O as Rs,u as Ls}from"./operation-console-provider-DoloEvon.mjs";import{LunoraError as Qt}from"@lunora/errors";import{B as yt}from"./badge-r_5B4LHP.mjs";import{Popover as bt}from"@base-ui/react/popover";import{Cancel01Icon as Is,SidebarLeftIcon as Es}from"@hugeicons/core-free-icons";import{HugeiconsIcon as Kt}from"@hugeicons/react";import{mergeProps as Yt}from"@base-ui/react/merge-props";import{useRender as Jt}from"@base-ui/react/use-render";import{cva as $s}from"class-variance-authority";import{B as Xt}from"./button-q0UYSmrn.mjs";import{Dialog as ce}from"@base-ui/react/dialog";import{Tooltip as de}from"@base-ui/react/tooltip";import{S as Pt}from"./skeleton-DX1gfixl.mjs";import{H as Hs,u as Ds}from"./home-panel-DTWHlX5S.mjs";import{StudioI18nProvider as Bs}from"./StudioI18nProvider-CGXCPnQn.mjs";import{v as Vs,a as zs}from"./data-view-params-C-_G-biH.mjs";import{CommandPalette as Os,openCommandPalette as Zs}from"./CommandPalette-BZCHLpst.mjs";import{E as qs}from"./empty-state-D7jEML_T.mjs";import{u as Fs}from"./shortcuts-B9gDaXmw.mjs";const es="(prefers-color-scheme: dark)",ts=()=>{try{return globalThis.localStorage}catch{return}},Ws=t=>t==="system"||t==="light"||t==="dark",ss=()=>globalThis.matchMedia,as="lunora-studio-theme",_t=["system","light","dark"],Us=(t="system")=>{try{const e=ts()?.getItem(as);return Ws(e)?e:t}catch{return t}},zt=t=>{const e=ts();if(e!==void 0)try{e.setItem(as,t)}catch{}},js=()=>{try{return ss()?.(es).matches?"dark":"light"}catch{return"light"}},Gs=(t,e)=>t==="system"?e:t,Qs=t=>{let e;try{e=ss()?.(es)}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)}},Dt=Ut(null),Ks=({children:t,defaultTheme:e="system"})=>{const[s,a]=ie(()=>Us(e)),[n,r]=ie(()=>js());gt(()=>Qs(r),[]);const l=c=>{zt(c),a(c)},d={cycleTheme:()=>{a(c=>{const u=_t[(_t.indexOf(c)+1)%_t.length]??c;return zt(u),u})},resolvedTheme:Gs(s,n),setTheme:l,systemTheme:n,theme:s};return o(Dt,{value:d,children:t})},Ys=t=>{const e=N(3),{children:s}=t,a=It(Dt);let n;return e[0]!==s||e[1]!==a?(n=a===null?o(Ks,{children:s}):s,e[0]=s,e[1]=a,e[2]=n):n=e[2],n},Js=()=>{const t=It(Dt);if(t===null)throw new Qt("INTERNAL","useTheme must be used within a <ThemeProvider>");return t};function er({delay:t=0,...e}){return o(de.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}function Xs(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(de.Root,{"data-slot":"tooltip",...s}),e[2]=s,e[3]=a):a=e[3],a}function ea(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(de.Trigger,{"data-slot":"tooltip-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function ta({className:t,side:e="top",sideOffset:s=4,align:a="center",alignOffset:n=0,children:r,...l}){return o(de.Portal,{children:o(de.Positioner,{align:a,alignOffset:n,side:e,sideOffset:s,className:"isolate z-50",children:k(de.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),...l,children:[r,o(de.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 sa=t=>{const e=N(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 n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o("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 r;return e[3]!==a?(r=o("svg",{"aria-hidden":"true",className:a,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=a,e[4]=r):r=e[4],r},aa=["lunora-deployment-pause"],os=()=>{const t=N(9),e=Et();let s;t[0]!==e?(s=async()=>e.getDeploymentPause().catch(na),t[0]=e,t[1]=s):s=t[1];const a=Cs(aa,s);let n;t[2]!==a?(n=()=>a.poll(),t[2]=a,t[3]=n):n=t[3],Ps(n,!0);let r;t[4]!==a?(r=()=>{a.refetch()},t[4]=a,t[5]=r):r=t[5];let l;return t[6]!==a.data||t[7]!==r?(l={refetch:r,state:a.data},t[6]=a.data,t[7]=r,t[8]=l):l=t[8],l},oa=()=>{const t=N(34),e=Et(),s=J(),{refetch:a,state:n}=os(),[r,l]=ie(void 0);if(n?.paused!==!0)return null;let i;t[0]!==e||t[1]!==a?(i=async()=>{try{await e.setDeploymentPause(!1),l(void 0),a()}catch(C){l($t(C))}},t[0]=e,t[1]=a,t[2]=i):i=t[2];const d=i;let c;t[3]!==s?(c=s("Deployment paused"),t[3]=s,t[4]=c):c=t[4];let u;t[5]!==c?(u=o("strong",{children:c}),t[5]=c,t[6]=u):u=t[6];let p;t[7]!==n.pausedAt?(p=n.pausedAt!==void 0&&o("span",{className:"text-muted-foreground tabular-nums",children:_s(n.pausedAt,"")}),t[7]=n.pausedAt,t[8]=p):p=t[8];let y;t[9]!==n.reason?(y=n.reason!==void 0&&o("span",{"data-testid":"deployment-paused-reason",children:n.reason}),t[9]=n.reason,t[10]=y):y=t[10];let m;t[11]!==s?(m=s("Function calls get 503, scheduled jobs are held on every scheduler instance, cron ticks are skipped and queue messages are held until you resume."),t[11]=s,t[12]=m):m=t[12];let g;t[13]!==m?(g=o("span",{className:"text-muted-foreground",children:m}),t[13]=m,t[14]=g):g=t[14];let v;t[15]!==r?(v=r!==void 0&&o("span",{className:"text-destructive",children:r}),t[15]=r,t[16]=v):v=t[16];let x;t[17]!==s?(x=s("Resume deployment?"),t[17]=s,t[18]=x):x=t[18];let b;t[19]!==d?(b=()=>{vt(d())},t[19]=d,t[20]=b):b=t[20];let h;t[21]!==s?(h=s("Resume"),t[21]=s,t[22]=h):h=t[22];let f;t[23]!==h||t[24]!==x||t[25]!==b?(f=o("span",{className:"ml-auto",children:o(Gt,{confirmLabel:x,onConfirm:b,testId:"deployment-resume",children:h})}),t[23]=h,t[24]=x,t[25]=b,t[26]=f):f=t[26];let w;return t[27]!==f||t[28]!==u||t[29]!==p||t[30]!==y||t[31]!==g||t[32]!==v?(w=k("div",{className:"flex shrink-0 items-center gap-3 border-b border-destructive/30 bg-destructive/10 px-6 py-2 text-[12px] text-foreground","data-testid":"deployment-paused-banner",role:"alert",children:[u,p,y,g,v,f]}),t[27]=f,t[28]=u,t[29]=p,t[30]=y,t[31]=g,t[32]=v,t[33]=w):w=t[33],w},tr=()=>{const t=Et(),e=J(),{refetch:s,state:a}=os(),[n,r]=ie(""),[l,i]=ie(void 0);if(a?.supported!==!0)return null;const d=async c=>{try{await t.setDeploymentPause(c,c&&n!==""?n:void 0),i(void 0),s()}catch(u){i($t(u))}};return k("div",{className:"flex items-center gap-2","data-testid":"deployment-pause-toggle",children:[o("span",{className:"text-sm text-muted-foreground","data-testid":"deployment-pause-state",children:a.paused?e("Deployment paused"):e("Deployment running")}),!a.paused&&o(Ht,{"aria-label":e("Reason (optional)"),className:"h-8 w-56","data-testid":"deployment-pause-reason",onChange:c=>{r(c.target.value)},placeholder:e("Reason (optional)"),value:n}),o(Gt,{confirmLabel:a.paused?e("Resume deployment?"):e("Pause deployment?"),onConfirm:()=>{vt(d(!a.paused))},testId:a.paused?"deployment-toggle-resume":"deployment-toggle-pause",children:a.paused?e("Resume"):e("Pause")}),l!==void 0&&o("span",{className:"text-xs text-destructive",role:"alert",children:l})]})};function na(t){if($t(t).includes("(status 404"))return{paused:!1,supported:!1};throw t}const ns="lunora.studio.rulesBannerDismissed",ra=()=>{try{return globalThis.localStorage.getItem(ns)==="1"}catch{return!1}},la=()=>{try{globalThis.localStorage.setItem(ns,"1")}catch{}},ia=()=>{const t=N(18),e=J(),[s,a]=ie(da);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{a(!0),la()},t[0]=n):n=t[0];const r=n;if(s)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=o("span",{"aria-hidden":"true",className:"text-warning",children:"⚠"}),t[1]=l):l=t[1];let i;t[2]!==e?(i=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=i):i=t[3];let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=o("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 c;t[5]!==e?(c=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=c):c=t[6];let u;t[7]!==i||t[8]!==c?(u=k("span",{children:[i," ",d," ",c]}),t[7]=i,t[8]=c,t[9]=u):u=t[9];let p;t[10]!==e?(p=e("Dismiss"),t[10]=e,t[11]=p):p=t[11];let y;t[12]===Symbol.for("react.memo_cache_sentinel")?(y=o("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:o("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=y):y=t[12];let m;t[13]!==p?(m=o("button",{"aria-label":p,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:y}),t[13]=p,t[14]=m):m=t[14];let g;return t[15]!==u||t[16]!==m?(g=k("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,m]}),t[15]=u,t[16]=m,t[17]=g):g=t[17],g};function da(){return ra()}function rs(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(bt.Root,{"data-slot":"popover",...s}),e[2]=s,e[3]=a):a=e[3],a}function ls(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(bt.Trigger,{"data-slot":"popover-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function is({align:t="end",alignOffset:e=0,className:s,keepMounted:a=!1,side:n="bottom",sideOffset:r=6,...l}){return o(bt.Portal,{keepMounted:a,children:o(bt.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:r,children:o(bt.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",...l})})})}const Tt=768;function ca(){const t=N(2),[e,s]=ie(void 0);let a,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{const r=globalThis.matchMedia(`(max-width: ${Tt-1}px)`),l=()=>{s(globalThis.innerWidth<Tt)};return r.addEventListener("change",l),s(globalThis.innerWidth<Tt),()=>{r.removeEventListener("change",l)}},n=[],t[0]=a,t[1]=n):(a=t[0],n=t[1]),gt(a,n),!!e}function ua(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(ce.Root,{"data-slot":"sheet",...s}),e[2]=s,e[3]=a):a=e[3],a}function ma(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(ce.Portal,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function fa(t){const e=N(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 n;e[3]!==s?(n=_("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]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o(ce.Backdrop,{"data-slot":"sheet-overlay",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function pa({className:t,children:e,side:s="right",showCloseButton:a=!0,...n}){return k(ma,{children:[o(fa,{}),k(ce.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),...n,children:[e,a&&k(ce.Close,{"data-slot":"sheet-close",render:o(Xt,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[o(Kt,{icon:Is,strokeWidth:2}),o("span",{className:"sr-only",children:"Close"})]})]})]})}function ha(t){const e=N(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 n;e[3]!==s?(n=_("flex flex-col gap-0.5 p-4",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sheet-header",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function ga(t){const e=N(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 n;e[3]!==s?(n=_("text-sm font-medium text-foreground",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o(ce.Title,{"data-slot":"sheet-title",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function ba(t){const e=N(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 n;e[3]!==s?(n=_("text-xs/relaxed text-muted-foreground",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o(ce.Description,{"data-slot":"sheet-description",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const va="sidebar_state",ya=3600*24*7,xa="16rem",wa="18rem",ka="3rem",Na="b",ds=ht.createContext(null);function Mt(){const t=ht.useContext(ds);if(!t)throw new Qt("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}function Ma({defaultOpen:t=!0,open:e,onOpenChange:s,className:a,style:n,children:r,...l}){const i=ca(),[d,c]=ht.useState(!1),[u,p]=ht.useState(t),y=e??u,m=h=>{const f=typeof h=="function"?h(y):h;s?s(f):p(f),document.cookie=`${va}=${f}; path=/; max-age=${ya}`},g=()=>i?c(h=>!h):m(h=>!h),v=ht.useEffectEvent(()=>{g()});ht.useEffect(()=>{const h=f=>{f.key===Na&&(f.metaKey||f.ctrlKey)&&(f.preventDefault(),v())};return globalThis.addEventListener("keydown",h),()=>globalThis.removeEventListener("keydown",h)},[]);const b={state:y?"expanded":"collapsed",open:y,setOpen:m,isMobile:i,openMobile:d,setOpenMobile:c,toggleSidebar:g};return o(ds.Provider,{value:b,children:o("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":xa,"--sidebar-width-icon":ka,...n},className:_("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",a),...l,children:r})})}function Sa({side:t="left",variant:e="sidebar",collapsible:s="offcanvas",className:a,children:n,dir:r,...l}){const{isMobile:i,state:d,openMobile:c,setOpenMobile:u}=Mt();return s==="none"?o("div",{"data-slot":"sidebar",className:_("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",a),...l,children:n}):i?o(ua,{open:c,onOpenChange:u,...l,children:k(pa,{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":wa},side:t,children:[k(ha,{className:"sr-only",children:[o(ga,{children:"Sidebar"}),o(ba,{children:"Displays the mobile sidebar."})]}),o("div",{className:"flex h-full w-full flex-col",children:n})]})}):k("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:[o("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)")}),o("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),...l,children:o("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})})]})}function Ca(t){const e=N(15);let s,a,n;e[0]!==t?({className:s,onClick:a,...n}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n):(s=e[1],a=e[2],n=e[3]);const{toggleSidebar:r}=Mt();let l;e[4]!==s?(l=_(s),e[4]=s,e[5]=l):l=e[5];let i;e[6]!==a||e[7]!==r?(i=p=>{a?.(p),r()},e[6]=a,e[7]=r,e[8]=i):i=e[8];let d,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=o(Kt,{icon:Es,strokeWidth:2,className:"rtl:rotate-180"}),c=o("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=c):(d=e[9],c=e[10]);let u;return e[11]!==n||e[12]!==l||e[13]!==i?(u=k(Xt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:i,...n,children:[d,c]}),e[11]=n,e[12]=l,e[13]=i,e[14]=u):u=e[14],u}function Pa(t){const e=N(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 n;e[3]!==s?(n=_("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]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("main",{"data-slot":"sidebar-inset",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function _a(t){const e=N(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 n;e[3]!==s?(n=_("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Ta(t){const e=N(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 n;e[3]!==s?(n=_("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Aa(t){const e=N(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 n;e[3]!==s?(n=_("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]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Ra(t){const e=N(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 n;e[3]!==s?(n=_("relative flex w-full min-w-0 flex-col p-2",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function La(t){const e=N(10);let s,a,n,r;if(e[0]!==t){const{className:d,render:c,...u}=t;s=c,r=Jt,a="div",n=Yt({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)},u),e[0]=t,e[1]=s,e[2]=a,e[3]=n,e[4]=r}else s=e[1],a=e[2],n=e[3],r=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 i;return e[6]!==s||e[7]!==a||e[8]!==n?(i={defaultTagName:a,props:n,render:s,state:l},e[6]=s,e[7]=a,e[8]=n,e[9]=i):i=e[9],r(i)}function Ia(t){const e=N(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 n;e[3]!==s?(n=_("w-full text-xs",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Ot(t){const e=N(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 n;e[3]!==s?(n=_("flex w-full min-w-0 flex-col gap-0",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Zt(t){const e=N(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 n;e[3]!==s?(n=_("group/menu-item relative",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const Ea=$s("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 cs({render:t,isActive:e=!1,variant:s="default",size:a="default",tooltip:n,className:r,...l}){const{isMobile:i,state:d}=Mt(),c=Jt({defaultTagName:"button",props:Yt({className:_(Ea({variant:s,size:a}),r)},l),render:n?o(ea,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:a,active:e}});return n?(typeof n=="string"&&(n={children:n}),k(Xs,{children:[c,o(ta,{side:"right",align:"center",hidden:d!=="collapsed"||i,...n})]})):c}const $a=t=>t.replace("__lunora_admin__:",""),Ha=()=>Ns(Nt.subscribe,Nt.getSnapshot,Nt.getSnapshot),Da=t=>t==="error"?"destructive":t==="pending"?"secondary":"default",Ba=t=>{const e=N(56),{entry:s,focused:a}=t,n=J();let r;e[0]!==a?(r=D=>{D!==null&&a&&D.scrollIntoView({block:"nearest"})},e[0]=a,e[1]=r):r=e[1];const l=r;let i;e[2]!==s.functionPath||e[3]!==s.shardKey||e[4]!==s.summary?(i=()=>{Ts(`${s.functionPath} ${s.summary}${s.shardKey===""?"":` (shard ${s.shardKey})`}`)},e[2]=s.functionPath,e[3]=s.shardKey,e[4]=s.summary,e[5]=i):i=e[5];const d=i,c=a&&"bg-accent ring-1 ring-inset ring-primary/40";let u;e[6]!==c?(u=_("border-b border-border/60 last:border-b-0",c),e[6]=c,e[7]=u):u=e[7];let p;e[8]!==s.status?(p=Da(s.status),e[8]=s.status,e[9]=p):p=e[9];const y=s.status==="pending"?"…":s.status;let m;e[10]!==p||e[11]!==y?(m=o(yt,{className:"mt-px shrink-0",variant:p,children:y}),e[10]=p,e[11]=y,e[12]=m):m=e[12];let g;e[13]!==s.functionPath?(g=$a(s.functionPath),e[13]=s.functionPath,e[14]=g):g=e[14];let v;e[15]!==g?(v=o("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:g}),e[15]=g,e[16]=v):v=e[16];let x;e[17]!==s.kind||e[18]!==n?(x=s.kind==="subscription"&&o(yt,{className:"shrink-0",variant:"outline",children:n("live")}),e[17]=s.kind,e[18]=n,e[19]=x):x=e[19];let b;e[20]!==s.summary?(b=s.summary!==""&&o("span",{className:"min-w-0 truncate text-muted-foreground",children:s.summary}),e[20]=s.summary,e[21]=b):b=e[21];let h;e[22]!==s.shardKey?(h=s.shardKey!==""&&o("span",{className:"font-mono",children:s.shardKey}),e[22]=s.shardKey,e[23]=h):h=e[23];let f;e[24]!==s.resultCount||e[25]!==n?(f=s.resultCount!==void 0&&o("span",{children:n("{count} rows",{count:s.resultCount})}),e[24]=s.resultCount,e[25]=n,e[26]=f):f=e[26];let w;e[27]!==s.pushes||e[28]!==n?(w=s.pushes!==void 0&&s.pushes>0&&o("span",{children:n("{count} pushes",{count:s.pushes})}),e[27]=s.pushes,e[28]=n,e[29]=w):w=e[29];let C;e[30]!==s.durationMs?(C=s.durationMs!==void 0&&k("span",{children:[s.durationMs,"ms"]}),e[30]=s.durationMs,e[31]=C):C=e[31];let P;e[32]!==n?(P=n("Copy"),e[32]=n,e[33]=P):P=e[33];let S;e[34]!==d||e[35]!==P?(S=o("button",{"aria-label":P,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]=P,e[36]=S):S=e[36];let M;e[37]!==h||e[38]!==f||e[39]!==w||e[40]!==C||e[41]!==S?(M=k("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[h,f,w,C,S]}),e[37]=h,e[38]=f,e[39]=w,e[40]=C,e[41]=S,e[42]=M):M=e[42];let A;e[43]!==x||e[44]!==b||e[45]!==M||e[46]!==m||e[47]!==v?(A=k("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[m,v,x,b,M]}),e[43]=x,e[44]=b,e[45]=M,e[46]=m,e[47]=v,e[48]=A):A=e[48];let R;e[49]!==s.error?(R=s.error!==void 0&&o("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]=R):R=e[50];let I;return e[51]!==l||e[52]!==A||e[53]!==R||e[54]!==u?(I=k("li",{className:u,"data-testid":"oc-row",ref:l,children:[A,R]}),e[51]=l,e[52]=A,e[53]=R,e[54]=u,e[55]=I):I=e[55],I},Va=t=>{const e=N(62),{focusSeq:s,onClose:a,onShownChange:n,shown:r}=t,l=J(),i=Ha(),[d,c]=ie("");let u;if(e[0]!==i||e[1]!==s||e[2]!==d||e[3]!==a||e[4]!==n||e[5]!==r||e[6]!==l){const p=d.trim().toLowerCase(),y=i.filter(L=>(r==="errors"?L.status==="error":!0)&&(p===""||`${L.functionPath} ${L.summary} ${L.shardKey}`.toLowerCase().includes(p))).toReversed();let m;e[8]!==i?(m=i.filter(za),e[8]=i,e[9]=m):m=e[9];const g=m.length;let v;e[10]!==l?(v=l("Operation console"),e[10]=l,e[11]=v):v=e[11];let x;e[12]!==l?(x=l("Operation console"),e[12]=l,e[13]=x):x=e[13];let b;e[14]!==x?(b=o("span",{className:"text-xs font-medium",children:x}),e[14]=x,e[15]=b):b=e[15];let h;e[16]!==i.length||e[17]!==l?(h=l("{count} calls",{count:i.length}),e[16]=i.length,e[17]=l,e[18]=h):h=e[18];let f;e[19]!==h?(f=o(yt,{variant:"secondary",children:h}),e[19]=h,e[20]=f):f=e[20];let w;e[21]!==g||e[22]!==l?(w=g>0&&o(yt,{variant:"destructive",children:l("{count} failed",{count:g})}),e[21]=g,e[22]=l,e[23]=w):w=e[23];const C=r==="errors",P=r==="errors"&&"bg-accent";let S;e[24]!==P?(S=_("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",P),e[24]=P,e[25]=S):S=e[25];let M;e[26]!==n||e[27]!==r?(M=()=>{n(r==="errors"?"all":"errors")},e[26]=n,e[27]=r,e[28]=M):M=e[28];let A;e[29]!==l?(A=l("Errors"),e[29]=l,e[30]=A):A=e[30];let R;e[31]!==S||e[32]!==M||e[33]!==A||e[34]!==C?(R=o("button",{"aria-pressed":C,className:S,"data-testid":"oc-filter-errors",onClick:M,type:"button",children:A}),e[31]=S,e[32]=M,e[33]=A,e[34]=C,e[35]=R):R=e[35];let I;e[36]!==l?(I=l("Filter"),e[36]=l,e[37]=I):I=e[37];let D;e[38]===Symbol.for("react.memo_cache_sentinel")?(D=L=>{c(L.target.value)},e[38]=D):D=e[38];let Z;e[39]!==l?(Z=l("Filter"),e[39]=l,e[40]=Z):Z=e[40];let E;e[41]!==d||e[42]!==I||e[43]!==Z?(E=o(Ht,{"aria-label":I,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:D,placeholder:Z,value:d}),e[41]=d,e[42]=I,e[43]=Z,e[44]=E):E=e[44];let B;e[45]!==l?(B=l("Clear"),e[45]=l,e[46]=B):B=e[46];let z;e[47]!==B?(z=o("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:Oa,type:"button",children:B}),e[47]=B,e[48]=z):z=e[48];let O;e[49]!==l?(O=l("Hide"),e[49]=l,e[50]=O):O=e[50];let H;e[51]!==a||e[52]!==O?(H=o("button",{"aria-label":O,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]=O,e[53]=H):H=e[53];let V;e[54]!==R||e[55]!==E||e[56]!==z||e[57]!==H||e[58]!==b||e[59]!==f||e[60]!==w?(V=k("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,f,w,R,E,z,H]}),e[54]=R,e[55]=E,e[56]=z,e[57]=H,e[58]=b,e[59]=f,e[60]=w,e[61]=V):V=e[61],u=k("section",{"aria-label":v,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[V,y.length===0?o("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):o("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:y.map(L=>o(Ba,{entry:L,focused:L.seq===s},L.seq))})]}),e[0]=i,e[1]=s,e[2]=d,e[3]=a,e[4]=n,e[5]=r,e[6]=l,e[7]=u}else u=e[7];return u};function za(t){return t.status==="error"}function Oa(){Nt.clear()}const Za=()=>{const t=N(334),e=J();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 n;t[4]!==e?(n=e("Evals"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==e?(r=e("AI usage"),t[6]=e,t[7]=r):r=t[7];let l;t[8]!==e?(l=e("Analytics"),t[8]=e,t[9]=l):l=t[9];let i;t[10]!==e?(i=e("API"),t[10]=e,t[11]=i):i=t[11];let d;t[12]!==e?(d=e("Architecture"),t[12]=e,t[13]=d):d=t[13];let c;t[14]!==e?(c=e("Audit"),t[14]=e,t[15]=c):c=t[15];let u;t[16]!==e?(u=e("Auth audit"),t[16]=e,t[17]=u):u=t[17];let p;t[18]!==e?(p=e("Configuration"),t[18]=e,t[19]=p):p=t[19];let y;t[20]!==e?(y=e("Sessions"),t[20]=e,t[21]=y):y=t[21];let m;t[22]!==e?(m=e("Containers"),t[22]=e,t[23]=m):m=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 x;t[28]!==e?(x=e("Deployment health"),t[28]=e,t[29]=x):x=t[29];let b;t[30]!==e?(b=e("Log drains"),t[30]=e,t[31]=b):b=t[31];let h;t[32]!==e?(h=e("Export / Import"),t[32]=e,t[33]=h):h=t[33];let f;t[34]!==e?(f=e("Fan-out"),t[34]=e,t[35]=f):f=t[35];let w;t[36]!==e?(w=e("Files"),t[36]=e,t[37]=w):w=t[37];let C;t[38]!==e?(C=e("Flags"),t[38]=e,t[39]=C):C=t[39];let P;t[40]!==e?(P=e("Functions"),t[40]=e,t[41]=P):P=t[41];let S;t[42]!==e?(S=e("Health"),t[42]=e,t[43]=S):S=t[43];let M;t[44]!==e?(M=e("Home"),t[44]=e,t[45]=M):M=t[45];let A;t[46]!==e?(A=e("Performance"),t[46]=e,t[47]=A):A=t[47];let R;t[48]!==e?(R=e("Issues"),t[48]=e,t[49]=R):R=t[49];let I;t[50]!==e?(I=e("KV"),t[50]=e,t[51]=I):I=t[51];let D;t[52]!==e?(D=e("Logs"),t[52]=e,t[53]=D):D=t[53];let Z;t[54]!==e?(Z=e("Metrics"),t[54]=e,t[55]=Z):Z=t[55];let E;t[56]!==e?(E=e("Migrations"),t[56]=e,t[57]=E):E=t[57];let B;t[58]!==e?(B=e("Notifications"),t[58]=e,t[59]=B):B=t[59];let z;t[60]!==e?(z=e("Organizations"),t[60]=e,t[61]=z):z=t[61];let O;t[62]!==e?(O=e("Time Travel"),t[62]=e,t[63]=O):O=t[63];let H;t[64]!==e?(H=e("Privacy requests"),t[64]=e,t[65]=H):H=t[65];let V;t[66]!==e?(V=e("Mail"),t[66]=e,t[67]=V):V=t[67];let L;t[68]!==e?(L=e("Payments"),t[68]=e,t[69]=L):L=t[69];let te;t[70]!==e?(te=e("Permissions"),t[70]=e,t[71]=te):te=t[71];let se;t[72]!==e?(se=e("Queues"),t[72]=e,t[73]=se):se=t[73];let ae;t[74]!==e?(ae=e("Reactors"),t[74]=e,t[75]=ae):ae=t[75];let q;t[76]!==e?(q=e("Realtime"),t[76]=e,t[77]=q):q=t[77];let oe;t[78]!==e?(oe=e("RLS Policies"),t[78]=e,t[79]=oe):oe=t[79];let F;t[80]!==e?(F=e("Scheduled"),t[80]=e,t[81]=F):F=t[81];let X;t[82]!==e?(X=e("Schema"),t[82]=e,t[83]=X):X=t[83];let ne;t[84]!==e?(ne=e("Security"),t[84]=e,t[85]=ne):ne=t[85];let W;t[86]!==e?(W=e("Settings"),t[86]=e,t[87]=W):W=t[87];let U;t[88]!==e?(U=e("SQL editor"),t[88]=e,t[89]=U):U=t[89];let j;t[90]!==e?(j=e("Traces"),t[90]=e,t[91]=j):j=t[91];let G;t[92]!==e?(G=e("Access Rules"),t[92]=e,t[93]=G):G=t[93];let Q;t[94]!==e?(Q=e("Users"),t[94]=e,t[95]=Q):Q=t[95];let K;t[96]!==e?(K=e("Vectors"),t[96]=e,t[97]=K):K=t[97];let Y;t[98]!==e?(Y=e("Workflows"),t[98]=e,t[99]=Y):Y=t[99];let le;t[100]!==s||t[101]!==a||t[102]!==y||t[103]!==m||t[104]!==g||t[105]!==v||t[106]!==x||t[107]!==b||t[108]!==h||t[109]!==f||t[110]!==w||t[111]!==C||t[112]!==n||t[113]!==P||t[114]!==S||t[115]!==M||t[116]!==A||t[117]!==R||t[118]!==I||t[119]!==D||t[120]!==Z||t[121]!==E||t[122]!==B||t[123]!==r||t[124]!==z||t[125]!==O||t[126]!==H||t[127]!==V||t[128]!==L||t[129]!==te||t[130]!==se||t[131]!==ae||t[132]!==q||t[133]!==oe||t[134]!==l||t[135]!==F||t[136]!==X||t[137]!==ne||t[138]!==W||t[139]!==U||t[140]!==j||t[141]!==G||t[142]!==Q||t[143]!==K||t[144]!==Y||t[145]!==i||t[146]!==d||t[147]!==c||t[148]!==u||t[149]!==p?(le={advisorHealth:s,agents:a,evals:n,aiUsage:r,analytics:l,api:i,architecture:d,audit:c,authAudit:u,authConfig:p,authSessions:y,containers:m,dashboards:g,data:v,deploymentHealth:x,drains:b,export:h,fanout:f,files:w,flags:C,functions:P,health:S,home:M,insights:A,issues:R,kv:I,logs:D,metrics:Z,migrations:E,notifications:B,organizations:z,pitr:O,privacyRequests:H,mail:V,payments:L,permissions:te,queues:se,reactors:ae,realtime:q,rls:oe,schedule:F,schema:X,security:ne,settings:W,sql:U,traces:j,storageRules:G,users:Q,vectors:K,workflows:Y},t[100]=s,t[101]=a,t[102]=y,t[103]=m,t[104]=g,t[105]=v,t[106]=x,t[107]=b,t[108]=h,t[109]=f,t[110]=w,t[111]=C,t[112]=n,t[113]=P,t[114]=S,t[115]=M,t[116]=A,t[117]=R,t[118]=I,t[119]=D,t[120]=Z,t[121]=E,t[122]=B,t[123]=r,t[124]=z,t[125]=O,t[126]=H,t[127]=V,t[128]=L,t[129]=te,t[130]=se,t[131]=ae,t[132]=q,t[133]=oe,t[134]=l,t[135]=F,t[136]=X,t[137]=ne,t[138]=W,t[139]=U,t[140]=j,t[141]=G,t[142]=Q,t[143]=K,t[144]=Y,t[145]=i,t[146]=d,t[147]=c,t[148]=u,t[149]=p,t[150]=le):le=t[150];const re=le;let ee;t[151]!==e?(ee=e("Advisors"),t[151]=e,t[152]=ee):ee=t[152];let ue;t[153]!==e?(ue=e("Auth"),t[153]=e,t[154]=ue):ue=t[154];let me;t[155]!==e?(me=e("Database"),t[155]=e,t[156]=me):me=t[156];let fe;t[157]!==e?(fe=e("Functions"),t[157]=e,t[158]=fe):fe=t[158];let pe;t[159]!==e?(pe=e("Observability"),t[159]=e,t[160]=pe):pe=t[160];let he;t[161]!==e?(he=e("Operations"),t[161]=e,t[162]=he):he=t[162];let ge;t[163]!==e?(ge=e("Overview"),t[163]=e,t[164]=ge):ge=t[164];let be;t[165]!==e?(be=e("Settings"),t[165]=e,t[166]=be):be=t[166];let ve;t[167]!==e?(ve=e("Storage"),t[167]=e,t[168]=ve):ve=t[168];let xt;t[169]!==ee||t[170]!==ue||t[171]!==me||t[172]!==fe||t[173]!==pe||t[174]!==he||t[175]!==ge||t[176]!==be||t[177]!==ve?(xt={advisors:ee,auth:ue,database:me,functions:fe,observability:pe,operations:he,overview:ge,settings:be,storage:ve},t[169]=ee,t[170]=ue,t[171]=me,t[172]=fe,t[173]=pe,t[174]=he,t[175]=ge,t[176]=be,t[177]=ve,t[178]=xt):xt=t[178];const St=xt;let ye;t[179]!==e?(ye=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[179]=e,t[180]=ye):ye=t[180];let xe;t[181]!==e?(xe=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[181]=e,t[182]=xe):xe=t[182];let we;t[183]!==e?(we=e("Scores recorded by recordEvaluation — the latest verdict per eval, its trend, and the graded runs behind it."),t[183]=e,t[184]=we):we=t[184];let ke;t[185]!==e?(ke=e("Tokens and spend from ctx.ai.model calls — totals, per function and per model, and the recent calls behind them."),t[185]=e,t[186]=ke):ke=t[186];let Ne;t[187]!==e?(Ne=e("Usage and latency from Analytics Engine — request volume, p50/p95, and hot shards."),t[187]=e,t[188]=Ne):Ne=t[188];let Me;t[189]!==e?(Me=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[189]=e,t[190]=Me):Me=t[190];let Se;t[191]!==e?(Se=e("A durable log of admin state-changing operations."),t[191]=e,t[192]=Se):Se=t[192];let Ce;t[193]!==e?(Ce=e("Authentication and security events — sign-ins, MFA, and session changes."),t[193]=e,t[194]=Ce):Ce=t[194];let Pe;t[195]!==e?(Pe=e("Enabled plugins and session config (read-only)."),t[195]=e,t[196]=Pe):Pe=t[196];let _e;t[197]!==e?(_e=e("Your modules, and the calls, reads, writes and hand-offs between them, from codegen."),t[197]=e,t[198]=_e):_e=t[198];let Te;t[199]!==e?(Te=e("Browse and revoke active sessions across all users."),t[199]=e,t[200]=Te):Te=t[200];let Ae;t[201]!==e?(Ae=e("Live Cloudflare Containers — current lifecycle state per instance from the log stream."),t[201]=e,t[202]=Ae):Ae=t[202];let Re;t[203]!==e?(Re=e("Chart widgets backed by saved read-only SQL queries."),t[203]=e,t[204]=Re):Re=t[204];let Le;t[205]!==e?(Le=e("Browse and edit rows across your shard and global tables."),t[205]=e,t[206]=Le):Le=t[206];let Ie;t[207]!==e?(Ie=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[207]=e,t[208]=Ie):Ie=t[208];let Ee;t[209]!==e?(Ee=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[209]=e,t[210]=Ee):Ee=t[210];let $e;t[211]!==e?($e=e("Export a shard to NDJSON, or import rows from it."),t[211]=e,t[212]=$e):$e=t[212];let He;t[213]!==e?(He=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[213]=e,t[214]=He):He=t[214];let De;t[215]!==e?(De=e("Browse objects in your R2 storage buckets."),t[215]=e,t[216]=De):De=t[216];let Be;t[217]!==e?(Be=e("Inspect feature flags and their live evaluation under a targeting context."),t[217]=e,t[218]=Be):Be=t[218];let Ve;t[219]!==e?(Ve=e("Run registered queries, mutations, and actions."),t[219]=e,t[220]=Ve):Ve=t[220];let ze;t[221]!==e?(ze=e("At-a-glance connection, error, and shard signals."),t[221]=e,t[222]=ze):ze=t[222];let Oe;t[223]!==e?(Oe=e("Connection, health, and advisor summary for your deployment."),t[223]=e,t[224]=Oe):Oe=t[224];let Ze;t[225]!==e?(Ze=e("Surface slow functions, error spikes, and cache problems."),t[225]=e,t[226]=Ze):Ze=t[226];let qe;t[227]!==e?(qe=e("Grouped error triage — Worker throws and container crashes folded by fingerprint."),t[227]=e,t[228]=qe):qe=t[228];let Fe;t[229]!==e?(Fe=e("A live stream of recent function logs."),t[229]=e,t[230]=Fe):Fe=t[230];let We;t[231]!==e?(We=e("Per-shard health and aggregate metrics."),t[231]=e,t[232]=We):We=t[232];let Ue;t[233]!==e?(Ue=e("Review migration status and run them."),t[233]=e,t[234]=Ue):Ue=t[234];let je;t[235]!==e?(je=e("Registered push devices — endpoint, kind, last-send status, and delivery errors."),t[235]=e,t[236]=je):je=t[236];let Ge;t[237]!==e?(Ge=e("Browse and manage organizations, members, and invitations."),t[237]=e,t[238]=Ge):Ge=t[238];let Qe;t[239]!==e?(Qe=e("Restore a shard to a point in the last 30 days."),t[239]=e,t[240]=Qe):Qe=t[240];let Ke;t[241]!==e?(Ke=e("Open data-subject export and erasure requests, with due dates and failed-run retries."),t[241]=e,t[242]=Ke):Ke=t[242];let Ye;t[243]!==e?(Ye=e("Email your app sent, captured in dev."),t[243]=e,t[244]=Ye):Ye=t[244];let Je;t[245]!==e?(Je=e("Synced customers, subscriptions, and webhook events."),t[245]=e,t[246]=Je):Je=t[246];let Xe;t[247]!==e?(Xe=e("Inspect access policies per table, and probe a function as any identity."),t[247]=e,t[248]=Xe):Xe=t[248];let et;t[249]!==e?(et=e("Inspect declared Cloudflare Queues — their producer bindings, consumer mode, and dead-letter queue."),t[249]=e,t[250]=et):et=t[250];let tt;t[251]!==e?(tt=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[251]=e,t[252]=tt):tt=t[252];let st;t[253]!==e?(st=e("Active WebSocket subscriptions on this shard."),t[253]=e,t[254]=st):st=t[254];let at;t[255]!==e?(at=e("Inspect row-level-security policies and roles, per table."),t[255]=e,t[256]=at):at=t[256];let ot;t[257]!==e?(ot=e("Inspect and cancel scheduled jobs."),t[257]=e,t[258]=ot):ot=t[258];let nt;t[259]!==e?(nt=e("Inspect each table and its columns."),t[259]=e,t[260]=nt):nt=t[260];let rt;t[261]!==e?(rt=e("Review admin gates, credentials, and log redaction."),t[261]=e,t[262]=rt):rt=t[262];let lt;t[263]!==e?(lt=e("Read-only deployment config — vars, secrets, and bindings."),t[263]=e,t[264]=lt):lt=t[264];let it;t[265]!==e?(it=e("Run read-only SQL against a shard."),t[265]=e,t[266]=it):it=t[266];let dt;t[267]!==e?(dt=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[267]=e,t[268]=dt):dt=t[268];let ct;t[269]!==e?(ct=e("Inspect storage access rules — per bucket, operation, and key prefix."),t[269]=e,t[270]=ct):ct=t[270];let ut;t[271]!==e?(ut=e("Recent ctx.trace waterfalls for this shard — the drill-down from a log line."),t[271]=e,t[272]=ut):ut=t[272];let mt;t[273]!==e?(mt=e("Manage auth users — roles, bans, sessions, and identity."),t[273]=e,t[274]=mt):mt=t[274];let ft;t[275]!==e?(ft=e("Browse Vectorize indexes and run similarity searches."),t[275]=e,t[276]=ft):ft=t[276];let pt;t[277]!==e?(pt=e("Inspect declared Cloudflare Workflows and their bindings."),t[277]=e,t[278]=pt):pt=t[278];let wt;t[279]!==ot||t[280]!==nt||t[281]!==rt||t[282]!==lt||t[283]!==it||t[284]!==dt||t[285]!==ct||t[286]!==ut||t[287]!==mt||t[288]!==ft||t[289]!==pt||t[290]!==ye||t[291]!==xe||t[292]!==we||t[293]!==ke||t[294]!==Ne||t[295]!==Me||t[296]!==Se||t[297]!==Ce||t[298]!==Pe||t[299]!==_e||t[300]!==Te||t[301]!==Ae||t[302]!==Re||t[303]!==Le||t[304]!==Ie||t[305]!==Ee||t[306]!==$e||t[307]!==He||t[308]!==De||t[309]!==Be||t[310]!==Ve||t[311]!==ze||t[312]!==Oe||t[313]!==Ze||t[314]!==qe||t[315]!==Fe||t[316]!==We||t[317]!==Ue||t[318]!==je||t[319]!==Ge||t[320]!==Qe||t[321]!==Ke||t[322]!==Ye||t[323]!==Je||t[324]!==Xe||t[325]!==et||t[326]!==tt||t[327]!==st||t[328]!==at?(wt={advisorHealth:ye,agents:xe,evals:we,aiUsage:ke,analytics:Ne,api:Me,audit:Se,authAudit:Ce,authConfig:Pe,architecture:_e,authSessions:Te,containers:Ae,dashboards:Re,data:Le,deploymentHealth:Ie,drains:Ee,export:$e,fanout:He,files:De,flags:Be,functions:Ve,health:ze,home:Oe,insights:Ze,issues:qe,logs:Fe,metrics:We,migrations:Ue,notifications:je,organizations:Ge,pitr:Qe,privacyRequests:Ke,mail:Ye,payments:Je,permissions:Xe,queues:et,reactors:tt,realtime:st,rls:at,schedule:ot,schema:nt,security:rt,settings:lt,sql:it,kv:dt,storageRules:ct,traces:ut,users:mt,vectors:ft,workflows:pt},t[279]=ot,t[280]=nt,t[281]=rt,t[282]=lt,t[283]=it,t[284]=dt,t[285]=ct,t[286]=ut,t[287]=mt,t[288]=ft,t[289]=pt,t[290]=ye,t[291]=xe,t[292]=we,t[293]=ke,t[294]=Ne,t[295]=Me,t[296]=Se,t[297]=Ce,t[298]=Pe,t[299]=_e,t[300]=Te,t[301]=Ae,t[302]=Re,t[303]=Le,t[304]=Ie,t[305]=Ee,t[306]=$e,t[307]=He,t[308]=De,t[309]=Be,t[310]=Ve,t[311]=ze,t[312]=Oe,t[313]=Ze,t[314]=qe,t[315]=Fe,t[316]=We,t[317]=Ue,t[318]=je,t[319]=Ge,t[320]=Qe,t[321]=Ke,t[322]=Ye,t[323]=Je,t[324]=Xe,t[325]=et,t[326]=tt,t[327]=st,t[328]=at,t[329]=wt):wt=t[329];const Ct=wt;let kt;return t[330]!==St||t[331]!==Ct||t[332]!==re?(kt={groupLabel:St,tabDescription:Ct,tabLabel:re},t[330]=St,t[331]=Ct,t[332]=re,t[333]=kt):kt=t[333],kt},qa=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=k("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:[o("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),o("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},Fa=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=k("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:[o("circle",{cx:"12",cy:"12",r:"4"}),o("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},Wa=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o("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:o("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},Ua=t=>{const e=N(2),{className:s}=t;let a;return e[0]!==s?(a=o("span",{className:s}),e[0]=s,e[1]=a):a=e[1],a},ja=T(()=>import("../packem_chunks/theme-indicator.mjs").catch(()=>({default:Ua}))),At="absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",Ga=[{Icon:qa,value:"system"},{Icon:Fa,value:"light"},{Icon:Wa,value:"dark"}],Qa=()=>{const t=N(21),{theme:e,setTheme:s}=Js(),a=J(),[n,r]=ie(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{r(!0)},t[0]=l):l=t[0];const i=l;let d;t[1]!==a?(d=a("Dark theme"),t[1]=a,t[2]=d):d=t[2];let c;t[3]!==a?(c=a("Light theme"),t[3]=a,t[4]=c):c=t[4];let u;t[5]!==a?(u=a("System theme"),t[5]=a,t[6]=u):u=t[6];let p;t[7]!==d||t[8]!==c||t[9]!==u?(p={dark:d,light:c,system:u},t[7]=d,t[8]=c,t[9]=u,t[10]=p):p=t[10];const y=p;let m;t[11]!==a?(m=a("Theme"),t[11]=a,t[12]=m):m=t[12];let g;t[13]!==n||t[14]!==y||t[15]!==s||t[16]!==e?(g=Ga.map(x=>{const{Icon:b,value:h}=x,f=e===h;return k("button",{"aria-checked":f,"aria-label":y[h],className:_("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",f?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${h}`,onClick:()=>{i(),s(h)},role:"radio",title:y[h],type:"button",children:[f&&(n?o(Rt,{fallback:o("span",{className:At}),children:o(ja,{className:At})}):o("span",{className:At})),o("span",{className:"relative",children:o(b,{})})]},h)}),t[13]=n,t[14]=y,t[15]=s,t[16]=e,t[17]=g):g=t[17];let v;return t[18]!==m||t[19]!==g?(v=o("div",{"aria-label":m,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",onFocus:i,onPointerEnter:i,role:"radiogroup",children:g}),t[18]=m,t[19]=g,t[20]=v):v=t[20],v},Ka=t=>{const e=N(23),{domain:s,onOpenCommandPalette:a,page:n}=t,r=J();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=o(Ca,{className:"-ms-1"}),e[0]=l):l=e[0];let i;e[1]!==r?(i=r("Breadcrumb"),e[1]=r,e[2]=i):i=e[2];let d;e[3]!==s?(d=o("span",{className:"text-muted-foreground",children:s}),e[3]=s,e[4]=d):d=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=o("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:o("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=c):c=e[5];let u;e[6]!==n?(u=o("span",{className:"font-medium text-foreground",children:n}),e[6]=n,e[7]=u):u=e[7];let p;e[8]!==i||e[9]!==d||e[10]!==u?(p=k("nav",{"aria-label":i,className:"flex items-center gap-1.5 text-[13px]",children:[d,c,u]}),e[8]=i,e[9]=d,e[10]=u,e[11]=p):p=e[11];let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=k("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[o("circle",{cx:"11",cy:"11",r:"7"}),o("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=y):y=e[12];let m;e[13]!==r?(m=r("Search…"),e[13]=r,e[14]=m):m=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o("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]!==m?(v=k("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:[y,m,g]}),e[16]=a,e[17]=m,e[18]=v):v=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x=o("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:o(Qa,{})}),e[19]=x):x=e[19];let b;return e[20]!==v||e[21]!==p?(b=k("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[l,p,v,x]}),e[20]=v,e[21]=p,e[22]=b):b=e[22],b},Ya={agents:{capability:"agents"},analytics:{capability:"analytics",feature:"analytics"},authAudit:{feature:"auth"},authConfig:{feature:"auth"},authSessions:{feature:"auth"},containers:{capability:"containers",feature:"containers"},fanout:{capability:"crossShardFanout"},files:{capability:"objectStorage",feature:"storage"},flags:{feature:"flags"},kv:{capability:"keyValueStore",feature:"kv"},mail:{capability:"mail",feature:"mail"},notifications:{feature:"notifications"},organizations:{feature:"auth"},payments:{feature:"payments"},pitr:{capability:"pointInTimeRecovery"},privacyRequests:{feature:"privacy"},queues:{capability:"queues",feature:"queues"},reactors:{capability:"serverReactors"},schedule:{capability:"scheduler",feature:"scheduler"},storageRules:{feature:"storage"},users:{feature:"auth"},vectors:{capability:"vectorStore",feature:"vectors"},workflows:{capability:"workflows",feature:"workflows"}},Ja={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"},Xa={kind:"hidden"},qt={kind:"ok"},eo={kind:"pending"},us=(t,e,s)=>{const a=Ya[t];return a?.feature!==void 0&&!e[a.feature]?Xa:a?.capability===void 0?qt:e.settled?e.platform?.unsupported.includes(a.capability)===!0?{kind:"unavailable",reason:s("{capability} is not supported on {platform}.",{capability:s(Ja[a.capability]),platform:e.platform.name})}:qt:eo},to=(t,e,s)=>{const a={},n=[];for(const r of t){const l=[];for(const i of r.tabs){const d=us(i,e,s);d.kind!=="hidden"&&l.push(i),d.kind==="unavailable"&&(a[i]=d.reason)}l.length>0&&n.push({...r,tabs:l})}return{unavailable:a,visibleGroups:n}},so=t=>{const e=N(3),{reason:s,title:a}=t;let n;return e[0]!==s||e[1]!==a?(n=o(qs,{description:s,testId:"dash-unsupported",title:a}),e[0]=s,e[1]=a,e[2]=n):n=e[2],n},ao=t=>{const e=N(4),{console:s}=Fs();let a,n;e[0]!==s||e[1]!==t?(a=()=>{if(t===void 0)return;const r=l=>{if(!l.ctrlKey||l.metaKey||l.altKey||l.shiftKey||l.repeat||l.key.toLowerCase()!==s)return;const{target:i}=l;i instanceof HTMLElement&&(i.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(i.tagName))||(l.preventDefault(),t())};return globalThis.addEventListener("keydown",r),()=>{globalThis.removeEventListener("keydown",r)}},n=[s,t],e[0]=s,e[1]=t,e[2]=a,e[3]=n):(a=e[2],n=e[3]),gt(a,n)},$=(t,e)=>T(()=>t().then(s=>({default:s[e]}))),oo=$(()=>import("../packem_chunks/InsightsPanel.mjs"),"InsightsPanel"),no=T(()=>import("../packem_chunks/rls-panel.mjs")),ro=T(()=>import("../packem_chunks/AdvisorHealthPanel.mjs")),lo=T(()=>import("../packem_chunks/SecurityAdvisorPanel.mjs")),io=T(()=>import("../packem_chunks/agents-panel.mjs")),co=T(()=>import("../packem_chunks/assistant-panel.mjs")),uo=$(()=>import("../packem_chunks/analytics-panel.mjs"),"AnalyticsPanel"),mo=T(()=>import("../packem_chunks/ApiTab.mjs")),fo=T(()=>import("../packem_chunks/architecture-panel.mjs")),po=T(()=>import("../packem_chunks/auth-audit-panel.mjs")),ho=T(()=>import("../packem_chunks/auth-config-panel.mjs")),go=T(()=>import("../packem_chunks/auth-sessions-panel.mjs")),bo=T(()=>import("../packem_chunks/organizations-panel.mjs")),vo=$(()=>import("../packem_chunks/users-panel.mjs"),"UsersPanel"),yo=T(()=>import("../packem_chunks/containers-panel.mjs")),xo=$(()=>import("../packem_chunks/DeploymentHealthPanel.mjs"),"DeploymentHealthPanel"),wo=$(()=>import("../packem_chunks/TableEditor.mjs"),"TableEditor"),ko=$(()=>import("../packem_chunks/ExportImportPanel.mjs"),"ExportImportPanel"),No=T(()=>import("../packem_chunks/migrations-route.mjs")),Mo={data:zs,migrations:Vs},So=$(()=>import("../packem_chunks/PitrPanel.mjs"),"PitrPanel"),Co=$(()=>import("../packem_chunks/privacy-requests-panel.mjs"),"PrivacyRequestsPanel"),Po=T(()=>import("../packem_chunks/flags-panel.mjs")),_o=T(()=>import("../packem_chunks/reactors-panel.mjs")),To=$(()=>import("../packem_chunks/FunctionRunner.mjs"),"FunctionRunner"),Ao=$(()=>import("../packem_chunks/FunctionStatsPanel.mjs"),"FunctionStatsPanel"),Ro=T(()=>import("../packem_chunks/issues-panel.mjs")),Lo=$(()=>import("../packem_chunks/AuditPanel.mjs"),"AuditPanel"),Io=T(()=>import("../packem_chunks/log-drains-panel.mjs")),Eo=T(()=>import("../packem_chunks/LogsPanel.mjs").then(t=>({default:t.LogsPanel}))),$o=$(()=>import("../packem_chunks/MailPanel.mjs"),"MailPanel"),Ho=$(()=>import("../packem_chunks/schedule-panel.mjs"),"SchedulePanel"),Do=T(()=>import("../packem_chunks/subscriptions-panel.mjs")),Bo=T(()=>import("../packem_chunks/sync-client-panel.mjs")),Vo=$(()=>import("../packem_chunks/kv-browser.mjs"),"KvBrowser"),zo=T(()=>import("../packem_chunks/NotificationsPanel.mjs")),Oo=$(()=>import("../packem_chunks/payments-panel.mjs"),"PaymentsPanel"),Zo=$(()=>import("../packem_chunks/permissions-panel.mjs"),"PermissionsPanel"),qo=T(()=>import("../packem_chunks/queues-panel.mjs")),Fo=T(()=>import("../packem_chunks/dashboards-panel.mjs")),Wo=T(()=>import("../packem_chunks/fanout-panel.mjs")),Uo=$(()=>import("../packem_chunks/HealthPanel.mjs"),"HealthPanel"),jo=$(()=>import("../packem_chunks/MetricsPanel.mjs"),"MetricsPanel"),Go=$(()=>import("../packem_chunks/SchemaViewer.mjs"),"SchemaViewer"),Qo=$(()=>import("../packem_chunks/SettingsPanel.mjs"),"SettingsPanel"),Ko=$(()=>import("../packem_chunks/SqlEditorPanel.mjs"),"SqlEditorPanel"),Yo=$(()=>import("../packem_chunks/FileBrowser.mjs"),"FileBrowser"),Jo=T(()=>import("../packem_chunks/storage-rules-panel.mjs")),Xo=T(()=>import("../packem_chunks/traces-panel.mjs")),en=T(()=>import("../packem_chunks/evals-panel.mjs")),tn=T(()=>import("../packem_chunks/ai-usage-panel.mjs")),sn=$(()=>import("../packem_chunks/vector-browser.mjs"),"VectorBrowser"),an=T(()=>import("../packem_chunks/workflows-panel.mjs")),ms=Ut(null),on={analytics:o("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:o("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),architecture:o("path",{d:"M4 4h6v5H4V4Zm10 0h6v5h-6V4ZM9 15h6v5H9v-5ZM7 9v3h10V9M12 12v3"}),audit:o("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:o("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:o("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:o("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:o("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:o("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:o("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:o("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:o("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:o("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:o("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:o("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:o("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:o("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:o("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:o("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:o("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:o("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:o("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:o("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:o("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:o("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:o("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:o("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:o("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:o("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:o("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:o("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:o("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:o("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:o("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),privacyRequests:o("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h4"}),queues:o("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:o("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:o("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:o("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:o("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:o("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:o("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:o("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:o("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:o("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:o("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:o("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:o("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:o("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:o("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Ft=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","architecture","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","aiUsage","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags","privacyRequests"]},{key:"settings",tabs:["settings"]}],Lt=t=>{const e=N(2),{tab:s}=t,a=on[s];let n;return e[0]!==a?(n=o("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]=n):n=e[1],n},nn=t=>t,fs=nn(["home","data","sql","functions","api","architecture","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","aiUsage","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","privacyRequests","settings"]),rn=new Set(["api","data","migrations","sql"]),ln=t=>{const e=t.split("/").findLast(Boolean)??"";return fs.includes(e)?e:"home"},dn=t=>{const e=N(19),{chrome:s,connected:a}=t,n=J();let r;e[0]!==n?(r=n("admin token"),e[0]=n,e[1]=r):r=e[1];let l;e[2]!==r?(l=o("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:r}),e[2]=r,e[3]=l):l=e[3];let i;e[4]!==s.onTokenChange||e[5]!==s.token?(i=o(Ht,{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]=i):i=e[6];let d;e[7]!==a||e[8]!==n?(d=a&&k("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[o("span",{"aria-hidden":"true",className:"text-warning",children:"⚠"}),n("Token rides the WebSocket URL — it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=a,e[8]=n,e[9]=d):d=e[9];let c;e[10]!==s.clearToken||e[11]!==a||e[12]!==n?(c=a&&o("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:n("Clear")}),e[10]=s.clearToken,e[11]=a,e[12]=n,e[13]=c):c=e[13];let u;return e[14]!==l||e[15]!==i||e[16]!==d||e[17]!==c?(u=k("div",{className:"flex flex-col gap-2",children:[l,i,d,c]}),e[14]=l,e[15]=i,e[16]=d,e[17]=c,e[18]=u):u=e[18],u},ps="opacity-50",cn=t=>{const e=N(27),{current:s,group:a,groupLabel:n,selectTab:r,tabDescription:l,tabLabel:i,unavailable:d}=t,c=a.tabs.includes(s)?"page":void 0,u=n[a.key],p=a.tabs[0];let y;e[0]!==p?(y=o(Lt,{tab:p}),e[0]=p,e[1]=y):y=e[1];let m;e[2]!==c||e[3]!==u||e[4]!==y?(m=o(ls,{"aria-current":c,"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:y}),e[2]=c,e[3]=u,e[4]=y,e[5]=m):m=e[5];const g=n[a.key];let v;e[6]!==g?(v=o("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 x;if(e[8]!==s||e[9]!==a.tabs||e[10]!==r||e[11]!==l||e[12]!==i||e[13]!==d){let f;e[15]!==s||e[16]!==r||e[17]!==l||e[18]!==i||e[19]!==d?(f=w=>k("button",{"aria-current":s===w?"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[w]!==void 0&&ps),"data-tab":w,"data-testid":`dash-tab-${w}`,"data-unsupported":d[w]===void 0?void 0:"true",onClick:r,title:l[w],type:"button",children:[o(Lt,{tab:w}),o("span",{children:i[w]})]},w),e[15]=s,e[16]=r,e[17]=l,e[18]=i,e[19]=d,e[20]=f):f=e[20],x=a.tabs.map(f),e[8]=s,e[9]=a.tabs,e[10]=r,e[11]=l,e[12]=i,e[13]=d,e[14]=x}else x=e[14];let b;e[21]!==v||e[22]!==x?(b=k(is,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[v,x]}),e[21]=v,e[22]=x,e[23]=b):b=e[23];let h;return e[24]!==m||e[25]!==b?(h=k(rs,{children:[m,b]}),e[24]=m,e[25]=b,e[26]=h):h=e[26],h},un=t=>{const e=N(45),{chrome:s,collapsed:a,connected:n}=t,r=J();if(s===null){let f;e[0]!==r?(f=r("Admin"),e[0]=r,e[1]=f):f=e[1];let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=o("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=w):w=e[2];let C;e[3]!==r?(C=r("Admin"),e[3]=r,e[4]=C):C=e[4];let P;e[5]!==C?(P=o("span",{className:"truncate text-[13px] font-medium",children:C}),e[5]=C,e[6]=P):P=e[6];let S;e[7]!==r?(S=r("Studio"),e[7]=r,e[8]=S):S=e[8];let M;e[9]!==S?(M=o("span",{className:"truncate text-[11px] text-muted-foreground",children:S}),e[9]=S,e[10]=M):M=e[10];let A;e[11]!==P||e[12]!==M?(A=k("span",{className:"grid flex-1 text-start leading-tight",children:[P,M]}),e[11]=P,e[12]=M,e[13]=A):A=e[13];let R;return e[14]!==f||e[15]!==A?(R=k(cs,{className:"data-active:bg-transparent",size:"lg",tooltip:f,children:[w,A]}),e[14]=f,e[15]=A,e[16]=R):R=e[16],R}const l=a?"mx-auto size-8 justify-center":"w-full p-2";let i;e[17]!==l?(i=_("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]=i):i=e[18];let d;e[19]!==n||e[20]!==r?(d=r(n?"Connected":"Not connected"),e[19]=n,e[20]=r,e[21]=d):d=e[21];const c=n?"bg-success":"bg-muted-foreground/50";let u;e[22]!==c?(u=_("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",c),e[22]=c,e[23]=u):u=e[23];let p;e[24]!==u?(p=k("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",o("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=p):p=e[25];let y;e[26]!==a||e[27]!==n||e[28]!==r?(y=!a&&k(jt,{children:[k("span",{className:"grid flex-1 text-start leading-tight",children:[o("span",{className:"truncate text-[13px] font-medium",children:r("Admin")}),o("span",{className:"truncate text-[11px] text-muted-foreground",children:r(n?"Connected":"Not connected")})]}),o("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:o("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=a,e[27]=n,e[28]=r,e[29]=y):y=e[29];let m;e[30]!==i||e[31]!==d||e[32]!==p||e[33]!==y?(m=k(ls,{className:i,"data-testid":"dash-app-connect",title:d,children:[p,y]}),e[30]=i,e[31]=d,e[32]=p,e[33]=y,e[34]=m):m=e[34];const g=a?"end":"start",v=a?"right":"top";let x;e[35]!==s||e[36]!==n?(x=o(dn,{chrome:s,connected:n}),e[35]=s,e[36]=n,e[37]=x):x=e[37];let b;e[38]!==v||e[39]!==x||e[40]!==g?(b=o(is,{align:g,keepMounted:!0,side:v,children:x}),e[38]=v,e[39]=x,e[40]=g,e[41]=b):b=e[41];let h;return e[42]!==b||e[43]!==m?(h=k(rs,{children:[m,b]}),e[42]=b,e[43]=m,e[44]=h):h=e[44],h},mn=t=>{const e=N(29),{chrome:s,connected:a,current:n,groupLabel:r,groups:l,selectTab:i,tabDescription:d,tabLabel:c,unavailable:u}=t,p=J(),{state:y}=Mt(),m=y==="collapsed",g=m&&"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 x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=o(sa,{className:"size-9 shrink-0 text-foreground"}),e[2]=x):x=e[2];let b;e[3]!==m||e[4]!==a||e[5]!==p?(b=!m&&k(jt,{children:[k("span",{className:"grid flex-1 leading-tight",children:[o("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),o("span",{className:"truncate text-[11px] text-muted-foreground",children:p("Studio")})]}),o(yt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:p(a?"Live":"Local")})]}),e[3]=m,e[4]=a,e[5]=p,e[6]=b):b=e[6];let h;e[7]!==v||e[8]!==b?(h=o(_a,{children:k("div",{className:v,children:[x,b]})}),e[7]=v,e[8]=b,e[9]=h):h=e[9];let f;e[10]!==m||e[11]!==n||e[12]!==r||e[13]!==l||e[14]!==i||e[15]!==d||e[16]!==c||e[17]!==u?(f=m?l.map(S=>o(cn,{current:n,group:S,groupLabel:r,selectTab:i,tabDescription:d,tabLabel:c,unavailable:u},S.key)):l.map(S=>k(Ra,{children:[o(La,{className:"text-[11px] font-medium tracking-wider uppercase",children:r[S.key]}),o(Ia,{children:o(Ot,{children:S.tabs.map(M=>o(Zt,{children:k(cs,{className:_("data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]",u[M]!==void 0&&ps),"data-tab":M,"data-testid":`dash-tab-${M}`,"data-unsupported":u[M]===void 0?void 0:"true",isActive:n===M,onClick:i,title:d[M],tooltip:d[M],children:[o(Lt,{tab:M}),o("span",{children:c[M]})]})},M))})})]},S.key)),e[10]=m,e[11]=n,e[12]=r,e[13]=l,e[14]=i,e[15]=d,e[16]=c,e[17]=u,e[18]=f):f=e[18];let w;e[19]!==f?(w=o(Aa,{children:f}),e[19]=f,e[20]=w):w=e[20];let C;e[21]!==s||e[22]!==m||e[23]!==a?(C=o(Ta,{children:o(Ot,{children:o(Zt,{children:o(un,{chrome:s,collapsed:m,connected:a})})})}),e[21]=s,e[22]=m,e[23]=a,e[24]=C):C=e[24];let P;return e[25]!==h||e[26]!==w||e[27]!==C?(P=k(Sa,{collapsible:"icon",variant:"inset",children:[h,w,C]}),e[25]=h,e[26]=w,e[27]=C,e[28]=P):P=e[28],P},Bt=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=k("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[k("div",{className:"flex items-center gap-2",children:[o(Pt,{className:"h-8 w-40"}),o(Pt,{className:"h-8 w-24"})]}),o(Pt,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},fn=t=>{const e=N(5),{title:s,verdict:a}=t;if(a.kind==="pending"){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o(Bt,{}),e[0]=r):r=e[0],r}if(a.kind==="unavailable"){let r;return e[1]!==s||e[2]!==a.reason?(r=o(so,{reason:a.reason,title:s}),e[1]=s,e[2]=a.reason,e[3]=r):r=e[3],r}let n;return e[4]===Symbol.for("react.memo_cache_sentinel")?(n=o(ks,{}),e[4]=n):n=e[4],n},pn=()=>{const t=N(59),e=J(),s=Wt();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={select:xn},t[0]=a):a=t[0];const n=ws(a),r=ln(n),l=rn.has(r),i=Ls(),d=i?.toggle,c=Ss();ao(d);const u=Ds(),{groupLabel:p,tabDescription:y,tabLabel:m}=Za(),{unavailable:g,visibleGroups:v}=to(Ft,u,e),x={...y,...g},b=us(r,u,e),h=b.kind==="hidden";let f,w;t[1]!==h||t[2]!==s?(f=()=>{h&&vt(s({replace:!0,to:"/home"}))},w=[h,s],t[1]=h,t[2]=s,t[3]=f,t[4]=w):(f=t[3],w=t[4]),gt(f,w);let C;t[5]!==s?(C=re=>{vt(s({to:`/${re.currentTarget.dataset.tab??""}`}))},t[5]=s,t[6]=C):C=t[6];const P=C;let S,M;t[7]!==r||t[8]!==m?(S=()=>{typeof document<"u"&&(document.title=`${m[r]} · lunora`)},M=[r,m],t[7]=r,t[8]=m,t[9]=S,t[10]=M):(S=t[9],M=t[10]),gt(S,M);const A=v.find(re=>re.tabs.includes(r))??Ft[0],R=v.flatMap(re=>re.tabs.filter(ee=>g[ee]===void 0).map(ee=>({group:p[re.key],label:m[ee],to:`/${ee}`})));let I;t[11]!==e||t[12]!==d?(I=d===void 0?[]:[{group:e("Operations"),label:e("Toggle operation console"),run:d}],t[11]=e,t[12]=d,t[13]=I):I=t[13];let D;t[14]!==c||t[15]!==e?(D=c===void 0||c.unavailable?[]:[{group:e("Operations"),label:e("Ask the assistant"),run:c.toggle}],t[14]=c,t[15]=e,t[16]=D):D=t[16];const Z=[...R,...I,...D],E=It(ms),B=E!==null&&E.token!=="",z=p[A.key],O=m[r];let H;t[17]!==z||t[18]!==O?(H=o(Ka,{domain:z,onOpenCommandPalette:Zs,page:O}),t[17]=z,t[18]=O,t[19]=H):H=t[19];let V;t[20]!==E?.rulesInstalled?(V=E?.rulesInstalled===!1&&o(ia,{}),t[20]=E?.rulesInstalled,t[21]=V):V=t[21];let L;t[22]!==E||t[23]!==B?(L=(E===null||B)&&o(oa,{}),t[22]=E,t[23]=B,t[24]=L):L=t[24];const te=`dash-tab-${r}`,se=l?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",ae=m[r];let q;t[25]!==e||t[26]!==ae?(q=e("{title} failed",{title:ae}),t[25]=e,t[26]=ae,t[27]=q):q=t[27];const oe=m[r];let F;t[28]!==e?(F=e("Try again"),t[28]=e,t[29]=F):F=t[29];let X;t[30]===Symbol.for("react.memo_cache_sentinel")?(X=o(Bt,{}),t[30]=X):X=t[30];const ne=m[r];let W;t[31]!==ne||t[32]!==b?(W=o(Rt,{fallback:X,children:o(fn,{title:ne,verdict:b})}),t[31]=ne,t[32]=b,t[33]=W):W=t[33];let U;t[34]!==r||t[35]!==q||t[36]!==oe||t[37]!==F||t[38]!==W?(U=o(As,{fallbackTitle:q,label:oe,retryLabel:F,children:W},r),t[34]=r,t[35]=q,t[36]=oe,t[37]=F,t[38]=W,t[39]=U):U=t[39];let j;t[40]!==se||t[41]!==U?(j=o("div",{className:se,children:U}),t[40]=se,t[41]=U,t[42]=j):j=t[42];let G;t[43]!==i?(G=i?.open===!0&&o(Va,{focusSeq:i.focusSeq,onClose:i.close,onShownChange:i.setShown,shown:i.shown}),t[43]=i,t[44]=G):G=t[44];let Q;t[45]!==te||t[46]!==j||t[47]!==G?(Q=k("div",{"aria-labelledby":te,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[j,G]}),t[45]=te,t[46]=j,t[47]=G,t[48]=Q):Q=t[48];let K;t[49]!==H||t[50]!==V||t[51]!==L||t[52]!==Q?(K=k("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[H,V,L,Q]}),t[49]=H,t[50]=V,t[51]=L,t[52]=Q,t[53]=K):K=t[53];let Y;t[54]!==c?(Y=c!==void 0&&c.open&&!c.unavailable&&o(Rt,{fallback:null,children:o(co,{assistant:c})}),t[54]=c,t[55]=Y):Y=t[55];let le;return t[56]!==K||t[57]!==Y?(le=k(Pa,{className:"flex flex-row overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[K,Y]}),t[56]=K,t[57]=Y,t[58]=le):le=t[58],k(Ma,{className:"min-h-0 flex-1","data-platform":u.platform?.id,"data-testid":"lunora-studio",children:[o(Os,{items:Z}),o(mn,{chrome:E,connected:B,current:r,groupLabel:p,groups:v,selectTab:P,tabDescription:x,tabLabel:m,unavailable:g}),le]})},hn=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o(Rs,{children:o(Ms,{children:o(pn,{})})}),t[0]=e):e=t[0],e},gn=t=>{const e=N(5),{initialShardKey:s,schemaEditable:a}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=ys(n),{table:l}=r,i=typeof l=="string"?l:void 0;let d;return e[1]!==s||e[2]!==i||e[3]!==a?(d=o(Go,{initialShardKey:s,initialTable:i,schemaEditable:a}),e[1]=s,e[2]=i,e[3]=a,e[4]=d):d=e[4],d},bn=()=>{const t=N(3),e=Wt();let s,a;return t[0]!==e?(s=()=>{vt(e({replace:!0,to:"/home"}))},a=[e],t[0]=e,t[1]=s,t[2]=a):(s=t[1],a=t[2]),gt(s,a),null},vn=({analyticsSqlQuery:t,basePath:e,privacyRequests:s,dataEditable:a=!1,functions:n,initialShardKey:r,openApiSpec:l,openRpcSpec:i,runAsIdentity:d=!1,schemaEditable:c=!1,scheduledCancel:u,scheduledCron:p,scheduledLoad:y})=>{const m=hs({component:hn}),g={agents:o(io,{initialShardKey:r}),analytics:o(uo,{runQuery:t}),api:o(mo,{functions:n,initialShardKey:r,openApiSpec:l,openRpcSpec:i}),architecture:o(fo,{}),audit:o(Lo,{initialShardKey:r}),authAudit:o(po,{}),authConfig:o(ho,{}),authSessions:o(go,{}),containers:o(yo,{}),dashboards:o(Fo,{initialShardKey:r}),data:o(wo,{canGenerateRows:a&&c,editable:a,initialShardKey:r}),deploymentHealth:o(xo,{}),drains:o(Io,{}),export:o(ko,{initialShardKey:r}),fanout:o(Wo,{initialShardKey:r}),files:o(Yo,{}),kv:o(Vo,{}),flags:o(Po,{initialShardKey:r}),reactors:o(_o,{initialShardKey:r}),functions:k("div",{className:"flex flex-col gap-8",children:[o(Ao,{functions:n,initialShardKey:r}),o(To,{functions:n,runAsIdentity:d})]}),health:o(Uo,{initialShardKey:r}),home:o(Hs,{initialShardKey:r}),insights:o(oo,{initialShardKey:r}),issues:o(Ro,{initialShardKey:r}),logs:o(Eo,{initialShardKey:r}),traces:o(Xo,{initialShardKey:r}),evals:o(en,{initialShardKey:r}),aiUsage:o(tn,{initialShardKey:r}),metrics:o(jo,{initialShardKey:r}),migrations:o(No,{initialShardKey:r}),notifications:o(zo,{}),organizations:o(bo,{}),permissions:o(Zo,{functions:n,runAsIdentity:d,schemaEditable:c}),pitr:o(So,{initialShardKey:r}),privacyRequests:o(Co,{source:s}),mail:o($o,{}),payments:o(Oo,{}),queues:o(qo,{}),realtime:k("div",{className:"flex flex-col gap-8",children:[o(Do,{initialShardKey:r}),o(Bo,{})]}),rls:o(no,{}),schedule:o(Ho,{initialShardKey:r,loadCronJobs:p,scheduledCancel:u,scheduledLoad:y}),schema:o(gn,{initialShardKey:r,schemaEditable:c}),advisorHealth:o(ro,{}),security:o(lo,{}),settings:o(Qo,{initialShardKey:r}),sql:o(Ko,{initialShardKey:r}),storageRules:o(Jo,{}),users:o(vo,{}),vectors:o(sn,{}),workflows:o(an,{})},v=Vt({component:()=>g.home,getParentRoute:()=>m,path:"/"}),x=fs.map(f=>Vt({component:()=>g[f],getParentRoute:()=>m,path:`/${f}`,validateSearch:Mo[f]})),b=m.addChildren([v,...x]),h="window"in globalThis?gs():bs({initialEntries:["/home"]});return vs({...e===void 0||e==="/"?{}:{basepath:e},defaultNotFoundComponent:bn,defaultPendingComponent:Bt,defaultPendingMinMs:0,defaultPendingMs:0,history:h,routeTree:b})},yn=t=>{const e=N(19),{analyticsSqlQuery:s,basePath:a,chrome:n,dataEditable:r,functions:l,initialShardKey:i,openApiSpec:d,openRpcSpec:c,privacyRequests:u,runAsIdentity:p,schemaEditable:y,scheduledCancel:m,scheduledCron:g,scheduledLoad:v}=t;let x;e[0]!==s||e[1]!==a||e[2]!==r||e[3]!==l||e[4]!==i||e[5]!==d||e[6]!==c||e[7]!==u||e[8]!==p||e[9]!==m||e[10]!==g||e[11]!==v||e[12]!==y?(x=vn({analyticsSqlQuery:s,basePath:a,privacyRequests:u,dataEditable:r,functions:l,initialShardKey:i,openApiSpec:d,openRpcSpec:c,runAsIdentity:p,schemaEditable:y,scheduledCancel:m,scheduledCron:g,scheduledLoad:v}),e[0]=s,e[1]=a,e[2]=r,e[3]=l,e[4]=i,e[5]=d,e[6]=c,e[7]=u,e[8]=p,e[9]=m,e[10]=g,e[11]=v,e[12]=y,e[13]=x):x=e[13];const b=x,h=n??null;let f;e[14]!==b?(f=o(xs,{router:b}),e[14]=b,e[15]=f):f=e[15];let w;return e[16]!==h||e[17]!==f?(w=o(ms,{value:h,children:f}),e[16]=h,e[17]=f,e[18]=w):w=e[18],w},sr=t=>{const e=N(10);let s,a,n;e[0]!==t?({i18n:s,locale:a,...n}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n):(s=e[1],a=e[2],n=e[3]);let r;e[4]!==n?(r=o(Ys,{children:o(yn,{...n})}),e[4]=n,e[5]=r):r=e[5];const l=r;if(s===void 0&&a===void 0)return l;let i;return e[6]!==s||e[7]!==a||e[8]!==l?(i=o(Bs,{i18n:s,locale:a,children:l}),e[6]=s,e[7]=a,e[8]=l,e[9]=i):i=e[9],i};function xn(t){return t.location.pathname}export{sa as B,tr as D,sr as S,Ks as T,er as a,ua as b,pa as c,ha as d,ga as e,Js as u};
|
|
2
|
+
import{c as N}from"react/compiler-runtime";import{createRootRoute as hs,createRoute as Vt,createBrowserHistory as gs,createMemoryHistory as bs,createRouter as vs,useNavigate as Wt,useSearch as ys,RouterProvider as xs,useRouterState as ws,Outlet as ks}from"@tanstack/react-router";import*as ht from"react";import{use as It,createContext as Ut,useState as ie,useEffect as gt,useSyncExternalStore as Ns,Suspense as Rt,lazy as T}from"react";import{A as Ms,u as Ss}from"./assistant-provider-Dw0roZh3.mjs";import{c as _}from"./utils-bhneXptQ.mjs";import{jsx as o,jsxs as k,Fragment as jt}from"react/jsx-runtime";import{a as Cs,o as Nt}from"./use-admin-query-CaOm4JS3.mjs";import{useAutoRefresh as Ps}from"./DEFAULT_AUTO_REFRESH_MS-B9kGlqXE.mjs";import{u as Et}from"./use-studio-client-DCA50tF2.mjs";import{useT as J}from"./DEFAULT_LOCALE-BQ3jRT74.mjs";import{f as vt,b as $t,h as _s,g as Ts}from"./internal-hIuTpSbx.mjs";import{ConfirmButton as Gt}from"./ConfirmButton-CIXYF6Mg.mjs";import{I as Ht}from"./input-CXhxesPC.mjs";import{ErrorBoundary as As}from"./ErrorBoundary-BWNF98VF.mjs";import{O as Rs,u as Ls}from"./operation-console-provider-DoloEvon.mjs";import{LunoraError as Qt}from"@lunora/errors";import{B as yt}from"./badge-r_5B4LHP.mjs";import{Popover as bt}from"@base-ui/react/popover";import{Cancel01Icon as Is,SidebarLeftIcon as Es}from"@hugeicons/core-free-icons";import{HugeiconsIcon as Kt}from"@hugeicons/react";import{mergeProps as Yt}from"@base-ui/react/merge-props";import{useRender as Jt}from"@base-ui/react/use-render";import{cva as $s}from"class-variance-authority";import{B as Xt}from"./button-q0UYSmrn.mjs";import{Dialog as ce}from"@base-ui/react/dialog";import{Tooltip as de}from"@base-ui/react/tooltip";import{S as Pt}from"./skeleton-DX1gfixl.mjs";import{H as Hs,u as Ds}from"./home-panel-TpxiaHgB.mjs";import{StudioI18nProvider as Bs}from"./StudioI18nProvider-CGXCPnQn.mjs";import{v as Vs,a as zs}from"./data-view-params-C-_G-biH.mjs";import{CommandPalette as Os,openCommandPalette as Zs}from"./CommandPalette-BZCHLpst.mjs";import{E as qs}from"./empty-state-D7jEML_T.mjs";import{u as Fs}from"./shortcuts-B9gDaXmw.mjs";const es="(prefers-color-scheme: dark)",ts=()=>{try{return globalThis.localStorage}catch{return}},Ws=t=>t==="system"||t==="light"||t==="dark",ss=()=>globalThis.matchMedia,as="lunora-studio-theme",_t=["system","light","dark"],Us=(t="system")=>{try{const e=ts()?.getItem(as);return Ws(e)?e:t}catch{return t}},zt=t=>{const e=ts();if(e!==void 0)try{e.setItem(as,t)}catch{}},js=()=>{try{return ss()?.(es).matches?"dark":"light"}catch{return"light"}},Gs=(t,e)=>t==="system"?e:t,Qs=t=>{let e;try{e=ss()?.(es)}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)}},Dt=Ut(null),Ks=({children:t,defaultTheme:e="system"})=>{const[s,a]=ie(()=>Us(e)),[r,n]=ie(()=>js());gt(()=>Qs(n),[]);const l=c=>{zt(c),a(c)},d={cycleTheme:()=>{a(c=>{const u=_t[(_t.indexOf(c)+1)%_t.length]??c;return zt(u),u})},resolvedTheme:Gs(s,r),setTheme:l,systemTheme:r,theme:s};return o(Dt,{value:d,children:t})},Ys=t=>{const e=N(3),{children:s}=t,a=It(Dt);let r;return e[0]!==s||e[1]!==a?(r=a===null?o(Ks,{children:s}):s,e[0]=s,e[1]=a,e[2]=r):r=e[2],r},Js=()=>{const t=It(Dt);if(t===null)throw new Qt("INTERNAL","useTheme must be used within a <ThemeProvider>");return t};function Xr({delay:t=0,...e}){return o(de.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}function Xs(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(de.Root,{"data-slot":"tooltip",...s}),e[2]=s,e[3]=a):a=e[3],a}function ea(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(de.Trigger,{"data-slot":"tooltip-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function ta({className:t,side:e="top",sideOffset:s=4,align:a="center",alignOffset:r=0,children:n,...l}){return o(de.Portal,{children:o(de.Positioner,{align:a,alignOffset:r,side:e,sideOffset:s,className:"isolate z-50",children:k(de.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),...l,children:[n,o(de.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 sa=t=>{const e=N(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 r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o("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]=r):r=e[2];let n;return e[3]!==a?(n=o("svg",{"aria-hidden":"true",className:a,fill:"currentColor",viewBox:"0 0 543 446",children:r}),e[3]=a,e[4]=n):n=e[4],n},aa=["lunora-deployment-pause"],os=()=>{const t=N(9),e=Et();let s;t[0]!==e?(s=async()=>e.getDeploymentPause().catch(ra),t[0]=e,t[1]=s):s=t[1];const a=Cs(aa,s);let r;t[2]!==a?(r=()=>a.poll(),t[2]=a,t[3]=r):r=t[3],Ps(r,!0);let n;t[4]!==a?(n=()=>{a.refetch()},t[4]=a,t[5]=n):n=t[5];let l;return t[6]!==a.data||t[7]!==n?(l={refetch:n,state:a.data},t[6]=a.data,t[7]=n,t[8]=l):l=t[8],l},oa=()=>{const t=N(34),e=Et(),s=J(),{refetch:a,state:r}=os(),[n,l]=ie(void 0);if(r?.paused!==!0)return null;let i;t[0]!==e||t[1]!==a?(i=async()=>{try{await e.setDeploymentPause(!1),l(void 0),a()}catch(M){l($t(M))}},t[0]=e,t[1]=a,t[2]=i):i=t[2];const d=i;let c;t[3]!==s?(c=s("Deployment paused"),t[3]=s,t[4]=c):c=t[4];let u;t[5]!==c?(u=o("strong",{children:c}),t[5]=c,t[6]=u):u=t[6];let f;t[7]!==r.pausedAt?(f=r.pausedAt!==void 0&&o("span",{className:"text-muted-foreground tabular-nums",children:_s(r.pausedAt,"")}),t[7]=r.pausedAt,t[8]=f):f=t[8];let y;t[9]!==r.reason?(y=r.reason!==void 0&&o("span",{"data-testid":"deployment-paused-reason",children:r.reason}),t[9]=r.reason,t[10]=y):y=t[10];let m;t[11]!==s?(m=s("Function calls get 503, scheduled jobs are held on every scheduler instance, cron ticks are skipped and queue messages are held until you resume."),t[11]=s,t[12]=m):m=t[12];let v;t[13]!==m?(v=o("span",{className:"text-muted-foreground",children:m}),t[13]=m,t[14]=v):v=t[14];let g;t[15]!==n?(g=n!==void 0&&o("span",{className:"text-destructive",children:n}),t[15]=n,t[16]=g):g=t[16];let x;t[17]!==s?(x=s("Resume deployment?"),t[17]=s,t[18]=x):x=t[18];let b;t[19]!==d?(b=()=>{vt(d())},t[19]=d,t[20]=b):b=t[20];let p;t[21]!==s?(p=s("Resume"),t[21]=s,t[22]=p):p=t[22];let h;t[23]!==p||t[24]!==x||t[25]!==b?(h=o("span",{className:"ml-auto",children:o(Gt,{confirmLabel:x,onConfirm:b,testId:"deployment-resume",children:p})}),t[23]=p,t[24]=x,t[25]=b,t[26]=h):h=t[26];let w;return t[27]!==h||t[28]!==u||t[29]!==f||t[30]!==y||t[31]!==v||t[32]!==g?(w=k("div",{className:"flex shrink-0 items-center gap-3 border-b border-destructive/30 bg-destructive/10 px-6 py-2 text-[12px] text-foreground","data-testid":"deployment-paused-banner",role:"alert",children:[u,f,y,v,g,h]}),t[27]=h,t[28]=u,t[29]=f,t[30]=y,t[31]=v,t[32]=g,t[33]=w):w=t[33],w},en=()=>{const t=Et(),e=J(),{refetch:s,state:a}=os(),[r,n]=ie(""),[l,i]=ie(void 0);if(a?.supported!==!0)return null;const d=async c=>{try{await t.setDeploymentPause(c,c&&r!==""?r:void 0),i(void 0),s()}catch(u){i($t(u))}};return k("div",{className:"flex items-center gap-2","data-testid":"deployment-pause-toggle",children:[o("span",{className:"text-sm text-muted-foreground","data-testid":"deployment-pause-state",children:a.paused?e("Deployment paused"):e("Deployment running")}),!a.paused&&o(Ht,{"aria-label":e("Reason (optional)"),className:"h-8 w-56","data-testid":"deployment-pause-reason",onChange:c=>{n(c.target.value)},placeholder:e("Reason (optional)"),value:r}),o(Gt,{confirmLabel:a.paused?e("Resume deployment?"):e("Pause deployment?"),onConfirm:()=>{vt(d(!a.paused))},testId:a.paused?"deployment-toggle-resume":"deployment-toggle-pause",children:a.paused?e("Resume"):e("Pause")}),l!==void 0&&o("span",{className:"text-xs text-destructive",role:"alert",children:l})]})};function ra(t){if($t(t).includes("(status 404"))return{paused:!1,supported:!1};throw t}const rs="lunora.studio.rulesBannerDismissed",na=()=>{try{return globalThis.localStorage.getItem(rs)==="1"}catch{return!1}},la=()=>{try{globalThis.localStorage.setItem(rs,"1")}catch{}},ia=()=>{const t=N(18),e=J(),[s,a]=ie(da);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{a(!0),la()},t[0]=r):r=t[0];const n=r;if(s)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=o("span",{"aria-hidden":"true",className:"text-warning",children:"⚠"}),t[1]=l):l=t[1];let i;t[2]!==e?(i=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=i):i=t[3];let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=o("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 c;t[5]!==e?(c=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=c):c=t[6];let u;t[7]!==i||t[8]!==c?(u=k("span",{children:[i," ",d," ",c]}),t[7]=i,t[8]=c,t[9]=u):u=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let y;t[12]===Symbol.for("react.memo_cache_sentinel")?(y=o("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:o("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=y):y=t[12];let m;t[13]!==f?(m=o("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:n,type:"button",children:y}),t[13]=f,t[14]=m):m=t[14];let v;return t[15]!==u||t[16]!==m?(v=k("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,m]}),t[15]=u,t[16]=m,t[17]=v):v=t[17],v};function da(){return na()}function ns(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(bt.Root,{"data-slot":"popover",...s}),e[2]=s,e[3]=a):a=e[3],a}function ls(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(bt.Trigger,{"data-slot":"popover-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function is({align:t="end",alignOffset:e=0,className:s,keepMounted:a=!1,side:r="bottom",sideOffset:n=6,...l}){return o(bt.Portal,{keepMounted:a,children:o(bt.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:r,sideOffset:n,children:o(bt.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",...l})})})}const Tt=768;function ca(){const t=N(2),[e,s]=ie(void 0);let a,r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{const n=globalThis.matchMedia(`(max-width: ${Tt-1}px)`),l=()=>{s(globalThis.innerWidth<Tt)};return n.addEventListener("change",l),s(globalThis.innerWidth<Tt),()=>{n.removeEventListener("change",l)}},r=[],t[0]=a,t[1]=r):(a=t[0],r=t[1]),gt(a,r),!!e}function ua(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(ce.Root,{"data-slot":"sheet",...s}),e[2]=s,e[3]=a):a=e[3],a}function ma(t){const e=N(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(ce.Portal,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function fa(t){const e=N(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 r;e[3]!==s?(r=_("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]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o(ce.Backdrop,{"data-slot":"sheet-overlay",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function pa({className:t,children:e,side:s="right",showCloseButton:a=!0,...r}){return k(ma,{children:[o(fa,{}),k(ce.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),...r,children:[e,a&&k(ce.Close,{"data-slot":"sheet-close",render:o(Xt,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[o(Kt,{icon:Is,strokeWidth:2}),o("span",{className:"sr-only",children:"Close"})]})]})]})}function ha(t){const e=N(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 r;e[3]!==s?(r=_("flex flex-col gap-0.5 p-4",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("div",{"data-slot":"sheet-header",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function ga(t){const e=N(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 r;e[3]!==s?(r=_("text-sm font-medium text-foreground",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o(ce.Title,{"data-slot":"sheet-title",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function ba(t){const e=N(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 r;e[3]!==s?(r=_("text-xs/relaxed text-muted-foreground",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o(ce.Description,{"data-slot":"sheet-description",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}const va="sidebar_state",ya=3600*24*7,xa="16rem",wa="18rem",ka="3rem",Na="b",ds=ht.createContext(null);function Mt(){const t=ht.useContext(ds);if(!t)throw new Qt("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}function Ma({defaultOpen:t=!0,open:e,onOpenChange:s,className:a,style:r,children:n,...l}){const i=ca(),[d,c]=ht.useState(!1),[u,f]=ht.useState(t),y=e??u,m=p=>{const h=typeof p=="function"?p(y):p;s?s(h):f(h),document.cookie=`${va}=${h}; path=/; max-age=${ya}`},v=()=>i?c(p=>!p):m(p=>!p),g=ht.useEffectEvent(()=>{v()});ht.useEffect(()=>{const p=h=>{h.key===Na&&(h.metaKey||h.ctrlKey)&&(h.preventDefault(),g())};return globalThis.addEventListener("keydown",p),()=>globalThis.removeEventListener("keydown",p)},[]);const b={state:y?"expanded":"collapsed",open:y,setOpen:m,isMobile:i,openMobile:d,setOpenMobile:c,toggleSidebar:v};return o(ds.Provider,{value:b,children:o("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":xa,"--sidebar-width-icon":ka,...r},className:_("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",a),...l,children:n})})}function Sa({side:t="left",variant:e="sidebar",collapsible:s="offcanvas",className:a,children:r,dir:n,...l}){const{isMobile:i,state:d,openMobile:c,setOpenMobile:u}=Mt();return s==="none"?o("div",{"data-slot":"sidebar",className:_("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",a),...l,children:r}):i?o(ua,{open:c,onOpenChange:u,...l,children:k(pa,{dir:n,"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":wa},side:t,children:[k(ha,{className:"sr-only",children:[o(ga,{children:"Sidebar"}),o(ba,{children:"Displays the mobile sidebar."})]}),o("div",{className:"flex h-full w-full flex-col",children:r})]})}):k("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:[o("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)")}),o("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),...l,children:o("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:r})})]})}function Ca(t){const e=N(15);let s,a,r;e[0]!==t?({className:s,onClick:a,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r):(s=e[1],a=e[2],r=e[3]);const{toggleSidebar:n}=Mt();let l;e[4]!==s?(l=_(s),e[4]=s,e[5]=l):l=e[5];let i;e[6]!==a||e[7]!==n?(i=f=>{a?.(f),n()},e[6]=a,e[7]=n,e[8]=i):i=e[8];let d,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=o(Kt,{icon:Es,strokeWidth:2,className:"rtl:rotate-180"}),c=o("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=c):(d=e[9],c=e[10]);let u;return e[11]!==r||e[12]!==l||e[13]!==i?(u=k(Xt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:i,...r,children:[d,c]}),e[11]=r,e[12]=l,e[13]=i,e[14]=u):u=e[14],u}function Pa(t){const e=N(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 r;e[3]!==s?(r=_("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]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("main",{"data-slot":"sidebar-inset",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function _a(t){const e=N(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 r;e[3]!==s?(r=_("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function Ta(t){const e=N(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 r;e[3]!==s?(r=_("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function Aa(t){const e=N(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 r;e[3]!==s?(r=_("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]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function Ra(t){const e=N(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 r;e[3]!==s?(r=_("relative flex w-full min-w-0 flex-col p-2",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function La(t){const e=N(10);let s,a,r,n;if(e[0]!==t){const{className:d,render:c,...u}=t;s=c,n=Jt,a="div",r=Yt({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)},u),e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=n}else s=e[1],a=e[2],r=e[3],n=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 i;return e[6]!==s||e[7]!==a||e[8]!==r?(i={defaultTagName:a,props:r,render:s,state:l},e[6]=s,e[7]=a,e[8]=r,e[9]=i):i=e[9],n(i)}function Ia(t){const e=N(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 r;e[3]!==s?(r=_("w-full text-xs",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function Ot(t){const e=N(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 r;e[3]!==s?(r=_("flex w-full min-w-0 flex-col gap-0",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}function Zt(t){const e=N(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 r;e[3]!==s?(r=_("group/menu-item relative",s),e[3]=s,e[4]=r):r=e[4];let n;return e[5]!==a||e[6]!==r?(n=o("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...a}),e[5]=a,e[6]=r,e[7]=n):n=e[7],n}const Ea=$s("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 cs({render:t,isActive:e=!1,variant:s="default",size:a="default",tooltip:r,className:n,...l}){const{isMobile:i,state:d}=Mt(),c=Jt({defaultTagName:"button",props:Yt({className:_(Ea({variant:s,size:a}),n)},l),render:r?o(ea,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:a,active:e}});return r?(typeof r=="string"&&(r={children:r}),k(Xs,{children:[c,o(ta,{side:"right",align:"center",hidden:d!=="collapsed"||i,...r})]})):c}const $a=t=>t.replace("__lunora_admin__:",""),Ha=()=>Ns(Nt.subscribe,Nt.getSnapshot,Nt.getSnapshot),Da=t=>t==="error"?"destructive":t==="pending"?"secondary":"default",Ba=t=>{const e=N(56),{entry:s,focused:a}=t,r=J();let n;e[0]!==a?(n=D=>{D!==null&&a&&D.scrollIntoView({block:"nearest"})},e[0]=a,e[1]=n):n=e[1];const l=n;let i;e[2]!==s.functionPath||e[3]!==s.shardKey||e[4]!==s.summary?(i=()=>{Ts(`${s.functionPath} ${s.summary}${s.shardKey===""?"":` (shard ${s.shardKey})`}`)},e[2]=s.functionPath,e[3]=s.shardKey,e[4]=s.summary,e[5]=i):i=e[5];const d=i,c=a&&"bg-accent ring-1 ring-inset ring-primary/40";let u;e[6]!==c?(u=_("border-b border-border/60 last:border-b-0",c),e[6]=c,e[7]=u):u=e[7];let f;e[8]!==s.status?(f=Da(s.status),e[8]=s.status,e[9]=f):f=e[9];const y=s.status==="pending"?"…":s.status;let m;e[10]!==f||e[11]!==y?(m=o(yt,{className:"mt-px shrink-0",variant:f,children:y}),e[10]=f,e[11]=y,e[12]=m):m=e[12];let v;e[13]!==s.functionPath?(v=$a(s.functionPath),e[13]=s.functionPath,e[14]=v):v=e[14];let g;e[15]!==v?(g=o("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:v}),e[15]=v,e[16]=g):g=e[16];let x;e[17]!==s.kind||e[18]!==r?(x=s.kind==="subscription"&&o(yt,{className:"shrink-0",variant:"outline",children:r("live")}),e[17]=s.kind,e[18]=r,e[19]=x):x=e[19];let b;e[20]!==s.summary?(b=s.summary!==""&&o("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!==""&&o("span",{className:"font-mono",children:s.shardKey}),e[22]=s.shardKey,e[23]=p):p=e[23];let h;e[24]!==s.resultCount||e[25]!==r?(h=s.resultCount!==void 0&&o("span",{children:r("{count} rows",{count:s.resultCount})}),e[24]=s.resultCount,e[25]=r,e[26]=h):h=e[26];let w;e[27]!==s.pushes||e[28]!==r?(w=s.pushes!==void 0&&s.pushes>0&&o("span",{children:r("{count} pushes",{count:s.pushes})}),e[27]=s.pushes,e[28]=r,e[29]=w):w=e[29];let M;e[30]!==s.durationMs?(M=s.durationMs!==void 0&&k("span",{children:[s.durationMs,"ms"]}),e[30]=s.durationMs,e[31]=M):M=e[31];let P;e[32]!==r?(P=r("Copy"),e[32]=r,e[33]=P):P=e[33];let C;e[34]!==d||e[35]!==P?(C=o("button",{"aria-label":P,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]=P,e[36]=C):C=e[36];let S;e[37]!==p||e[38]!==h||e[39]!==w||e[40]!==M||e[41]!==C?(S=k("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[p,h,w,M,C]}),e[37]=p,e[38]=h,e[39]=w,e[40]=M,e[41]=C,e[42]=S):S=e[42];let A;e[43]!==x||e[44]!==b||e[45]!==S||e[46]!==m||e[47]!==g?(A=k("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[m,g,x,b,S]}),e[43]=x,e[44]=b,e[45]=S,e[46]=m,e[47]=g,e[48]=A):A=e[48];let R;e[49]!==s.error?(R=s.error!==void 0&&o("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]=R):R=e[50];let I;return e[51]!==l||e[52]!==A||e[53]!==R||e[54]!==u?(I=k("li",{className:u,"data-testid":"oc-row",ref:l,children:[A,R]}),e[51]=l,e[52]=A,e[53]=R,e[54]=u,e[55]=I):I=e[55],I},Va=t=>{const e=N(62),{focusSeq:s,onClose:a,onShownChange:r,shown:n}=t,l=J(),i=Ha(),[d,c]=ie("");let u;if(e[0]!==i||e[1]!==s||e[2]!==d||e[3]!==a||e[4]!==r||e[5]!==n||e[6]!==l){const f=d.trim().toLowerCase(),y=i.filter(L=>(n==="errors"?L.status==="error":!0)&&(f===""||`${L.functionPath} ${L.summary} ${L.shardKey}`.toLowerCase().includes(f))).toReversed();let m;e[8]!==i?(m=i.filter(za),e[8]=i,e[9]=m):m=e[9];const v=m.length;let g;e[10]!==l?(g=l("Operation console"),e[10]=l,e[11]=g):g=e[11];let x;e[12]!==l?(x=l("Operation console"),e[12]=l,e[13]=x):x=e[13];let b;e[14]!==x?(b=o("span",{className:"text-xs font-medium",children:x}),e[14]=x,e[15]=b):b=e[15];let p;e[16]!==i.length||e[17]!==l?(p=l("{count} calls",{count:i.length}),e[16]=i.length,e[17]=l,e[18]=p):p=e[18];let h;e[19]!==p?(h=o(yt,{variant:"secondary",children:p}),e[19]=p,e[20]=h):h=e[20];let w;e[21]!==v||e[22]!==l?(w=v>0&&o(yt,{variant:"destructive",children:l("{count} failed",{count:v})}),e[21]=v,e[22]=l,e[23]=w):w=e[23];const M=n==="errors",P=n==="errors"&&"bg-accent";let C;e[24]!==P?(C=_("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",P),e[24]=P,e[25]=C):C=e[25];let S;e[26]!==r||e[27]!==n?(S=()=>{r(n==="errors"?"all":"errors")},e[26]=r,e[27]=n,e[28]=S):S=e[28];let A;e[29]!==l?(A=l("Errors"),e[29]=l,e[30]=A):A=e[30];let R;e[31]!==C||e[32]!==S||e[33]!==A||e[34]!==M?(R=o("button",{"aria-pressed":M,className:C,"data-testid":"oc-filter-errors",onClick:S,type:"button",children:A}),e[31]=C,e[32]=S,e[33]=A,e[34]=M,e[35]=R):R=e[35];let I;e[36]!==l?(I=l("Filter"),e[36]=l,e[37]=I):I=e[37];let D;e[38]===Symbol.for("react.memo_cache_sentinel")?(D=L=>{c(L.target.value)},e[38]=D):D=e[38];let Z;e[39]!==l?(Z=l("Filter"),e[39]=l,e[40]=Z):Z=e[40];let E;e[41]!==d||e[42]!==I||e[43]!==Z?(E=o(Ht,{"aria-label":I,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:D,placeholder:Z,value:d}),e[41]=d,e[42]=I,e[43]=Z,e[44]=E):E=e[44];let B;e[45]!==l?(B=l("Clear"),e[45]=l,e[46]=B):B=e[46];let z;e[47]!==B?(z=o("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:Oa,type:"button",children:B}),e[47]=B,e[48]=z):z=e[48];let O;e[49]!==l?(O=l("Hide"),e[49]=l,e[50]=O):O=e[50];let H;e[51]!==a||e[52]!==O?(H=o("button",{"aria-label":O,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]=O,e[53]=H):H=e[53];let V;e[54]!==R||e[55]!==E||e[56]!==z||e[57]!==H||e[58]!==b||e[59]!==h||e[60]!==w?(V=k("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,h,w,R,E,z,H]}),e[54]=R,e[55]=E,e[56]=z,e[57]=H,e[58]=b,e[59]=h,e[60]=w,e[61]=V):V=e[61],u=k("section",{"aria-label":g,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[V,y.length===0?o("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):o("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:y.map(L=>o(Ba,{entry:L,focused:L.seq===s},L.seq))})]}),e[0]=i,e[1]=s,e[2]=d,e[3]=a,e[4]=r,e[5]=n,e[6]=l,e[7]=u}else u=e[7];return u};function za(t){return t.status==="error"}function Oa(){Nt.clear()}const Za=()=>{const t=N(334),e=J();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 r;t[4]!==e?(r=e("Evals"),t[4]=e,t[5]=r):r=t[5];let n;t[6]!==e?(n=e("AI usage"),t[6]=e,t[7]=n):n=t[7];let l;t[8]!==e?(l=e("Analytics"),t[8]=e,t[9]=l):l=t[9];let i;t[10]!==e?(i=e("API"),t[10]=e,t[11]=i):i=t[11];let d;t[12]!==e?(d=e("Architecture"),t[12]=e,t[13]=d):d=t[13];let c;t[14]!==e?(c=e("Audit"),t[14]=e,t[15]=c):c=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 y;t[20]!==e?(y=e("Sessions"),t[20]=e,t[21]=y):y=t[21];let m;t[22]!==e?(m=e("Containers"),t[22]=e,t[23]=m):m=t[23];let v;t[24]!==e?(v=e("Dashboards"),t[24]=e,t[25]=v):v=t[25];let g;t[26]!==e?(g=e("Data"),t[26]=e,t[27]=g):g=t[27];let x;t[28]!==e?(x=e("Deployment health"),t[28]=e,t[29]=x):x=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 h;t[34]!==e?(h=e("Fan-out"),t[34]=e,t[35]=h):h=t[35];let w;t[36]!==e?(w=e("Files"),t[36]=e,t[37]=w):w=t[37];let M;t[38]!==e?(M=e("Flags"),t[38]=e,t[39]=M):M=t[39];let P;t[40]!==e?(P=e("Functions"),t[40]=e,t[41]=P):P=t[41];let C;t[42]!==e?(C=e("Health"),t[42]=e,t[43]=C):C=t[43];let S;t[44]!==e?(S=e("Home"),t[44]=e,t[45]=S):S=t[45];let A;t[46]!==e?(A=e("Performance"),t[46]=e,t[47]=A):A=t[47];let R;t[48]!==e?(R=e("Issues"),t[48]=e,t[49]=R):R=t[49];let I;t[50]!==e?(I=e("KV"),t[50]=e,t[51]=I):I=t[51];let D;t[52]!==e?(D=e("Logs"),t[52]=e,t[53]=D):D=t[53];let Z;t[54]!==e?(Z=e("Metrics"),t[54]=e,t[55]=Z):Z=t[55];let E;t[56]!==e?(E=e("Migrations"),t[56]=e,t[57]=E):E=t[57];let B;t[58]!==e?(B=e("Notifications"),t[58]=e,t[59]=B):B=t[59];let z;t[60]!==e?(z=e("Organizations"),t[60]=e,t[61]=z):z=t[61];let O;t[62]!==e?(O=e("Time Travel"),t[62]=e,t[63]=O):O=t[63];let H;t[64]!==e?(H=e("Privacy requests"),t[64]=e,t[65]=H):H=t[65];let V;t[66]!==e?(V=e("Mail"),t[66]=e,t[67]=V):V=t[67];let L;t[68]!==e?(L=e("Payments"),t[68]=e,t[69]=L):L=t[69];let te;t[70]!==e?(te=e("Permissions"),t[70]=e,t[71]=te):te=t[71];let se;t[72]!==e?(se=e("Queues"),t[72]=e,t[73]=se):se=t[73];let ae;t[74]!==e?(ae=e("Reactors"),t[74]=e,t[75]=ae):ae=t[75];let q;t[76]!==e?(q=e("Realtime"),t[76]=e,t[77]=q):q=t[77];let oe;t[78]!==e?(oe=e("RLS Policies"),t[78]=e,t[79]=oe):oe=t[79];let F;t[80]!==e?(F=e("Scheduled"),t[80]=e,t[81]=F):F=t[81];let X;t[82]!==e?(X=e("Schema"),t[82]=e,t[83]=X):X=t[83];let re;t[84]!==e?(re=e("Security"),t[84]=e,t[85]=re):re=t[85];let W;t[86]!==e?(W=e("Settings"),t[86]=e,t[87]=W):W=t[87];let U;t[88]!==e?(U=e("SQL editor"),t[88]=e,t[89]=U):U=t[89];let j;t[90]!==e?(j=e("Traces"),t[90]=e,t[91]=j):j=t[91];let G;t[92]!==e?(G=e("Access Rules"),t[92]=e,t[93]=G):G=t[93];let Q;t[94]!==e?(Q=e("Users"),t[94]=e,t[95]=Q):Q=t[95];let K;t[96]!==e?(K=e("Vectors"),t[96]=e,t[97]=K):K=t[97];let Y;t[98]!==e?(Y=e("Workflows"),t[98]=e,t[99]=Y):Y=t[99];let le;t[100]!==s||t[101]!==a||t[102]!==y||t[103]!==m||t[104]!==v||t[105]!==g||t[106]!==x||t[107]!==b||t[108]!==p||t[109]!==h||t[110]!==w||t[111]!==M||t[112]!==r||t[113]!==P||t[114]!==C||t[115]!==S||t[116]!==A||t[117]!==R||t[118]!==I||t[119]!==D||t[120]!==Z||t[121]!==E||t[122]!==B||t[123]!==n||t[124]!==z||t[125]!==O||t[126]!==H||t[127]!==V||t[128]!==L||t[129]!==te||t[130]!==se||t[131]!==ae||t[132]!==q||t[133]!==oe||t[134]!==l||t[135]!==F||t[136]!==X||t[137]!==re||t[138]!==W||t[139]!==U||t[140]!==j||t[141]!==G||t[142]!==Q||t[143]!==K||t[144]!==Y||t[145]!==i||t[146]!==d||t[147]!==c||t[148]!==u||t[149]!==f?(le={advisorHealth:s,agents:a,evals:r,aiUsage:n,analytics:l,api:i,architecture:d,audit:c,authAudit:u,authConfig:f,authSessions:y,containers:m,dashboards:v,data:g,deploymentHealth:x,drains:b,export:p,fanout:h,files:w,flags:M,functions:P,health:C,home:S,insights:A,issues:R,kv:I,logs:D,metrics:Z,migrations:E,notifications:B,organizations:z,pitr:O,privacyRequests:H,mail:V,payments:L,permissions:te,queues:se,reactors:ae,realtime:q,rls:oe,schedule:F,schema:X,security:re,settings:W,sql:U,traces:j,storageRules:G,users:Q,vectors:K,workflows:Y},t[100]=s,t[101]=a,t[102]=y,t[103]=m,t[104]=v,t[105]=g,t[106]=x,t[107]=b,t[108]=p,t[109]=h,t[110]=w,t[111]=M,t[112]=r,t[113]=P,t[114]=C,t[115]=S,t[116]=A,t[117]=R,t[118]=I,t[119]=D,t[120]=Z,t[121]=E,t[122]=B,t[123]=n,t[124]=z,t[125]=O,t[126]=H,t[127]=V,t[128]=L,t[129]=te,t[130]=se,t[131]=ae,t[132]=q,t[133]=oe,t[134]=l,t[135]=F,t[136]=X,t[137]=re,t[138]=W,t[139]=U,t[140]=j,t[141]=G,t[142]=Q,t[143]=K,t[144]=Y,t[145]=i,t[146]=d,t[147]=c,t[148]=u,t[149]=f,t[150]=le):le=t[150];const ne=le;let ee;t[151]!==e?(ee=e("Advisors"),t[151]=e,t[152]=ee):ee=t[152];let ue;t[153]!==e?(ue=e("Auth"),t[153]=e,t[154]=ue):ue=t[154];let me;t[155]!==e?(me=e("Database"),t[155]=e,t[156]=me):me=t[156];let fe;t[157]!==e?(fe=e("Functions"),t[157]=e,t[158]=fe):fe=t[158];let pe;t[159]!==e?(pe=e("Observability"),t[159]=e,t[160]=pe):pe=t[160];let he;t[161]!==e?(he=e("Operations"),t[161]=e,t[162]=he):he=t[162];let ge;t[163]!==e?(ge=e("Overview"),t[163]=e,t[164]=ge):ge=t[164];let be;t[165]!==e?(be=e("Settings"),t[165]=e,t[166]=be):be=t[166];let ve;t[167]!==e?(ve=e("Storage"),t[167]=e,t[168]=ve):ve=t[168];let xt;t[169]!==ee||t[170]!==ue||t[171]!==me||t[172]!==fe||t[173]!==pe||t[174]!==he||t[175]!==ge||t[176]!==be||t[177]!==ve?(xt={advisors:ee,auth:ue,database:me,functions:fe,observability:pe,operations:he,overview:ge,settings:be,storage:ve},t[169]=ee,t[170]=ue,t[171]=me,t[172]=fe,t[173]=pe,t[174]=he,t[175]=ge,t[176]=be,t[177]=ve,t[178]=xt):xt=t[178];const St=xt;let ye;t[179]!==e?(ye=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[179]=e,t[180]=ye):ye=t[180];let xe;t[181]!==e?(xe=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[181]=e,t[182]=xe):xe=t[182];let we;t[183]!==e?(we=e("Scores recorded by recordEvaluation — the latest verdict per eval, its trend, and the graded runs behind it."),t[183]=e,t[184]=we):we=t[184];let ke;t[185]!==e?(ke=e("Tokens and spend from ctx.ai.model calls — totals, per function and per model, and the recent calls behind them."),t[185]=e,t[186]=ke):ke=t[186];let Ne;t[187]!==e?(Ne=e("Usage and latency from Analytics Engine — request volume, p50/p95, and hot shards."),t[187]=e,t[188]=Ne):Ne=t[188];let Me;t[189]!==e?(Me=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[189]=e,t[190]=Me):Me=t[190];let Se;t[191]!==e?(Se=e("A durable log of admin state-changing operations."),t[191]=e,t[192]=Se):Se=t[192];let Ce;t[193]!==e?(Ce=e("Authentication and security events — sign-ins, MFA, and session changes."),t[193]=e,t[194]=Ce):Ce=t[194];let Pe;t[195]!==e?(Pe=e("Enabled plugins and session config (read-only)."),t[195]=e,t[196]=Pe):Pe=t[196];let _e;t[197]!==e?(_e=e("Your modules, and the calls, reads, writes and hand-offs between them, from codegen."),t[197]=e,t[198]=_e):_e=t[198];let Te;t[199]!==e?(Te=e("Browse and revoke active sessions across all users."),t[199]=e,t[200]=Te):Te=t[200];let Ae;t[201]!==e?(Ae=e("Live Cloudflare Containers — current lifecycle state per instance from the log stream."),t[201]=e,t[202]=Ae):Ae=t[202];let Re;t[203]!==e?(Re=e("Chart widgets backed by saved read-only SQL queries."),t[203]=e,t[204]=Re):Re=t[204];let Le;t[205]!==e?(Le=e("Browse and edit rows across your shard and global tables."),t[205]=e,t[206]=Le):Le=t[206];let Ie;t[207]!==e?(Ie=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[207]=e,t[208]=Ie):Ie=t[208];let Ee;t[209]!==e?(Ee=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[209]=e,t[210]=Ee):Ee=t[210];let $e;t[211]!==e?($e=e("Export a shard to NDJSON, or import rows from it."),t[211]=e,t[212]=$e):$e=t[212];let He;t[213]!==e?(He=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[213]=e,t[214]=He):He=t[214];let De;t[215]!==e?(De=e("Browse objects in your R2 storage buckets."),t[215]=e,t[216]=De):De=t[216];let Be;t[217]!==e?(Be=e("Inspect feature flags and their live evaluation under a targeting context."),t[217]=e,t[218]=Be):Be=t[218];let Ve;t[219]!==e?(Ve=e("Run registered queries, mutations, and actions."),t[219]=e,t[220]=Ve):Ve=t[220];let ze;t[221]!==e?(ze=e("At-a-glance connection, error, and shard signals."),t[221]=e,t[222]=ze):ze=t[222];let Oe;t[223]!==e?(Oe=e("Connection, health, and advisor summary for your deployment."),t[223]=e,t[224]=Oe):Oe=t[224];let Ze;t[225]!==e?(Ze=e("Surface slow functions, error spikes, and cache problems."),t[225]=e,t[226]=Ze):Ze=t[226];let qe;t[227]!==e?(qe=e("Grouped error triage — Worker throws and container crashes folded by fingerprint."),t[227]=e,t[228]=qe):qe=t[228];let Fe;t[229]!==e?(Fe=e("A live stream of recent function logs."),t[229]=e,t[230]=Fe):Fe=t[230];let We;t[231]!==e?(We=e("Per-shard health and aggregate metrics."),t[231]=e,t[232]=We):We=t[232];let Ue;t[233]!==e?(Ue=e("Review migration status and run them."),t[233]=e,t[234]=Ue):Ue=t[234];let je;t[235]!==e?(je=e("Registered push devices — endpoint, kind, last-send status, and delivery errors."),t[235]=e,t[236]=je):je=t[236];let Ge;t[237]!==e?(Ge=e("Browse and manage organizations, members, and invitations."),t[237]=e,t[238]=Ge):Ge=t[238];let Qe;t[239]!==e?(Qe=e("Restore a shard to a point in the last 30 days."),t[239]=e,t[240]=Qe):Qe=t[240];let Ke;t[241]!==e?(Ke=e("Open data-subject export and erasure requests, with due dates and failed-run retries."),t[241]=e,t[242]=Ke):Ke=t[242];let Ye;t[243]!==e?(Ye=e("Email your app sent, captured in dev."),t[243]=e,t[244]=Ye):Ye=t[244];let Je;t[245]!==e?(Je=e("Synced customers, subscriptions, and webhook events."),t[245]=e,t[246]=Je):Je=t[246];let Xe;t[247]!==e?(Xe=e("Inspect access policies per table, and probe a function as any identity."),t[247]=e,t[248]=Xe):Xe=t[248];let et;t[249]!==e?(et=e("Inspect declared Cloudflare Queues — their producer bindings, consumer mode, and dead-letter queue."),t[249]=e,t[250]=et):et=t[250];let tt;t[251]!==e?(tt=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[251]=e,t[252]=tt):tt=t[252];let st;t[253]!==e?(st=e("Active WebSocket subscriptions on this shard."),t[253]=e,t[254]=st):st=t[254];let at;t[255]!==e?(at=e("Inspect row-level-security policies and roles, per table."),t[255]=e,t[256]=at):at=t[256];let ot;t[257]!==e?(ot=e("Inspect and cancel scheduled jobs."),t[257]=e,t[258]=ot):ot=t[258];let rt;t[259]!==e?(rt=e("Inspect each table and its columns."),t[259]=e,t[260]=rt):rt=t[260];let nt;t[261]!==e?(nt=e("Review admin gates, credentials, and log redaction."),t[261]=e,t[262]=nt):nt=t[262];let lt;t[263]!==e?(lt=e("Read-only deployment config — vars, secrets, and bindings."),t[263]=e,t[264]=lt):lt=t[264];let it;t[265]!==e?(it=e("Run read-only SQL against a shard."),t[265]=e,t[266]=it):it=t[266];let dt;t[267]!==e?(dt=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[267]=e,t[268]=dt):dt=t[268];let ct;t[269]!==e?(ct=e("Inspect storage access rules — per bucket, operation, and key prefix."),t[269]=e,t[270]=ct):ct=t[270];let ut;t[271]!==e?(ut=e("Recent ctx.trace waterfalls for this shard — the drill-down from a log line."),t[271]=e,t[272]=ut):ut=t[272];let mt;t[273]!==e?(mt=e("Manage auth users — roles, bans, sessions, and identity."),t[273]=e,t[274]=mt):mt=t[274];let ft;t[275]!==e?(ft=e("Browse Vectorize indexes and run similarity searches."),t[275]=e,t[276]=ft):ft=t[276];let pt;t[277]!==e?(pt=e("Inspect declared Cloudflare Workflows and their bindings."),t[277]=e,t[278]=pt):pt=t[278];let wt;t[279]!==ot||t[280]!==rt||t[281]!==nt||t[282]!==lt||t[283]!==it||t[284]!==dt||t[285]!==ct||t[286]!==ut||t[287]!==mt||t[288]!==ft||t[289]!==pt||t[290]!==ye||t[291]!==xe||t[292]!==we||t[293]!==ke||t[294]!==Ne||t[295]!==Me||t[296]!==Se||t[297]!==Ce||t[298]!==Pe||t[299]!==_e||t[300]!==Te||t[301]!==Ae||t[302]!==Re||t[303]!==Le||t[304]!==Ie||t[305]!==Ee||t[306]!==$e||t[307]!==He||t[308]!==De||t[309]!==Be||t[310]!==Ve||t[311]!==ze||t[312]!==Oe||t[313]!==Ze||t[314]!==qe||t[315]!==Fe||t[316]!==We||t[317]!==Ue||t[318]!==je||t[319]!==Ge||t[320]!==Qe||t[321]!==Ke||t[322]!==Ye||t[323]!==Je||t[324]!==Xe||t[325]!==et||t[326]!==tt||t[327]!==st||t[328]!==at?(wt={advisorHealth:ye,agents:xe,evals:we,aiUsage:ke,analytics:Ne,api:Me,audit:Se,authAudit:Ce,authConfig:Pe,architecture:_e,authSessions:Te,containers:Ae,dashboards:Re,data:Le,deploymentHealth:Ie,drains:Ee,export:$e,fanout:He,files:De,flags:Be,functions:Ve,health:ze,home:Oe,insights:Ze,issues:qe,logs:Fe,metrics:We,migrations:Ue,notifications:je,organizations:Ge,pitr:Qe,privacyRequests:Ke,mail:Ye,payments:Je,permissions:Xe,queues:et,reactors:tt,realtime:st,rls:at,schedule:ot,schema:rt,security:nt,settings:lt,sql:it,kv:dt,storageRules:ct,traces:ut,users:mt,vectors:ft,workflows:pt},t[279]=ot,t[280]=rt,t[281]=nt,t[282]=lt,t[283]=it,t[284]=dt,t[285]=ct,t[286]=ut,t[287]=mt,t[288]=ft,t[289]=pt,t[290]=ye,t[291]=xe,t[292]=we,t[293]=ke,t[294]=Ne,t[295]=Me,t[296]=Se,t[297]=Ce,t[298]=Pe,t[299]=_e,t[300]=Te,t[301]=Ae,t[302]=Re,t[303]=Le,t[304]=Ie,t[305]=Ee,t[306]=$e,t[307]=He,t[308]=De,t[309]=Be,t[310]=Ve,t[311]=ze,t[312]=Oe,t[313]=Ze,t[314]=qe,t[315]=Fe,t[316]=We,t[317]=Ue,t[318]=je,t[319]=Ge,t[320]=Qe,t[321]=Ke,t[322]=Ye,t[323]=Je,t[324]=Xe,t[325]=et,t[326]=tt,t[327]=st,t[328]=at,t[329]=wt):wt=t[329];const Ct=wt;let kt;return t[330]!==St||t[331]!==Ct||t[332]!==ne?(kt={groupLabel:St,tabDescription:Ct,tabLabel:ne},t[330]=St,t[331]=Ct,t[332]=ne,t[333]=kt):kt=t[333],kt},qa=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=k("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:[o("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),o("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},Fa=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=k("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:[o("circle",{cx:"12",cy:"12",r:"4"}),o("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},Wa=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o("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:o("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},Ua=t=>{const e=N(2),{className:s}=t;let a;return e[0]!==s?(a=o("span",{className:s}),e[0]=s,e[1]=a):a=e[1],a},ja=T(()=>import("../packem_chunks/theme-indicator.mjs").catch(()=>({default:Ua}))),At="absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",Ga=[{Icon:qa,value:"system"},{Icon:Fa,value:"light"},{Icon:Wa,value:"dark"}],Qa=()=>{const t=N(21),{theme:e,setTheme:s}=Js(),a=J(),[r,n]=ie(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{n(!0)},t[0]=l):l=t[0];const i=l;let d;t[1]!==a?(d=a("Dark theme"),t[1]=a,t[2]=d):d=t[2];let c;t[3]!==a?(c=a("Light theme"),t[3]=a,t[4]=c):c=t[4];let u;t[5]!==a?(u=a("System theme"),t[5]=a,t[6]=u):u=t[6];let f;t[7]!==d||t[8]!==c||t[9]!==u?(f={dark:d,light:c,system:u},t[7]=d,t[8]=c,t[9]=u,t[10]=f):f=t[10];const y=f;let m;t[11]!==a?(m=a("Theme"),t[11]=a,t[12]=m):m=t[12];let v;t[13]!==r||t[14]!==y||t[15]!==s||t[16]!==e?(v=Ga.map(x=>{const{Icon:b,value:p}=x,h=e===p;return k("button",{"aria-checked":h,"aria-label":y[p],className:_("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",h?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${p}`,onClick:()=>{i(),s(p)},role:"radio",title:y[p],type:"button",children:[h&&(r?o(Rt,{fallback:o("span",{className:At}),children:o(ja,{className:At})}):o("span",{className:At})),o("span",{className:"relative",children:o(b,{})})]},p)}),t[13]=r,t[14]=y,t[15]=s,t[16]=e,t[17]=v):v=t[17];let g;return t[18]!==m||t[19]!==v?(g=o("div",{"aria-label":m,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",onFocus:i,onPointerEnter:i,role:"radiogroup",children:v}),t[18]=m,t[19]=v,t[20]=g):g=t[20],g},Ka=t=>{const e=N(23),{domain:s,onOpenCommandPalette:a,page:r}=t,n=J();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=o(Ca,{className:"-ms-1"}),e[0]=l):l=e[0];let i;e[1]!==n?(i=n("Breadcrumb"),e[1]=n,e[2]=i):i=e[2];let d;e[3]!==s?(d=o("span",{className:"text-muted-foreground",children:s}),e[3]=s,e[4]=d):d=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=o("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:o("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=c):c=e[5];let u;e[6]!==r?(u=o("span",{className:"font-medium text-foreground",children:r}),e[6]=r,e[7]=u):u=e[7];let f;e[8]!==i||e[9]!==d||e[10]!==u?(f=k("nav",{"aria-label":i,className:"flex items-center gap-1.5 text-[13px]",children:[d,c,u]}),e[8]=i,e[9]=d,e[10]=u,e[11]=f):f=e[11];let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=k("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[o("circle",{cx:"11",cy:"11",r:"7"}),o("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=y):y=e[12];let m;e[13]!==n?(m=n("Search…"),e[13]=n,e[14]=m):m=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=o("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"⌘K"}),e[15]=v):v=e[15];let g;e[16]!==a||e[17]!==m?(g=k("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:[y,m,v]}),e[16]=a,e[17]=m,e[18]=g):g=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x=o("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:o(Qa,{})}),e[19]=x):x=e[19];let b;return e[20]!==g||e[21]!==f?(b=k("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,g,x]}),e[20]=g,e[21]=f,e[22]=b):b=e[22],b},Ya={agents:{capability:"agents"},analytics:{capability:"analytics",feature:"analytics"},authAudit:{feature:"auth"},authConfig:{feature:"auth"},authSessions:{feature:"auth"},containers:{capability:"containers",feature:"containers"},fanout:{capability:"crossShardFanout"},files:{capability:"objectStorage",feature:"storage"},flags:{feature:"flags"},kv:{capability:"keyValueStore",feature:"kv"},mail:{capability:"mail",feature:"mail"},notifications:{feature:"notifications"},organizations:{feature:"auth"},payments:{feature:"payments"},pitr:{capability:"pointInTimeRecovery"},privacyRequests:{feature:"privacy"},queues:{capability:"queues",feature:"queues"},reactors:{capability:"serverReactors"},schedule:{capability:"scheduler",feature:"scheduler"},storageRules:{feature:"storage"},users:{feature:"auth"},vectors:{capability:"vectorStore",feature:"vectors"},workflows:{capability:"workflows",feature:"workflows"}},Ja={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"},Xa={kind:"hidden"},qt={kind:"ok"},eo={kind:"pending"},us=(t,e,s)=>{const a=Ya[t];return a?.feature!==void 0&&!e[a.feature]?Xa:a?.capability===void 0?qt:e.settled?e.platform?.unsupported.includes(a.capability)===!0?{kind:"unavailable",reason:s("{capability} is not supported on {platform}.",{capability:s(Ja[a.capability]),platform:e.platform.name})}:qt:eo},to=(t,e,s)=>{const a={},r=[];for(const n of t){const l=[];for(const i of n.tabs){const d=us(i,e,s);d.kind!=="hidden"&&l.push(i),d.kind==="unavailable"&&(a[i]=d.reason)}l.length>0&&r.push({...n,tabs:l})}return{unavailable:a,visibleGroups:r}},so=t=>{const e=N(3),{reason:s,title:a}=t;let r;return e[0]!==s||e[1]!==a?(r=o(qs,{description:s,testId:"dash-unsupported",title:a}),e[0]=s,e[1]=a,e[2]=r):r=e[2],r},ao=t=>{const e=N(4),{console:s}=Fs();let a,r;e[0]!==s||e[1]!==t?(a=()=>{if(t===void 0)return;const n=l=>{if(!l.ctrlKey||l.metaKey||l.altKey||l.shiftKey||l.repeat||l.key.toLowerCase()!==s)return;const{target:i}=l;i instanceof HTMLElement&&(i.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(i.tagName))||(l.preventDefault(),t())};return globalThis.addEventListener("keydown",n),()=>{globalThis.removeEventListener("keydown",n)}},r=[s,t],e[0]=s,e[1]=t,e[2]=a,e[3]=r):(a=e[2],r=e[3]),gt(a,r)},$=(t,e)=>T(()=>t().then(s=>({default:s[e]}))),oo=$(()=>import("../packem_chunks/InsightsPanel.mjs"),"InsightsPanel"),ro=T(()=>import("../packem_chunks/rls-panel.mjs")),no=T(()=>import("../packem_chunks/AdvisorHealthPanel.mjs")),lo=T(()=>import("../packem_chunks/SecurityAdvisorPanel.mjs")),io=T(()=>import("../packem_chunks/agents-panel.mjs")),co=T(()=>import("../packem_chunks/assistant-panel.mjs")),uo=$(()=>import("../packem_chunks/analytics-panel.mjs"),"AnalyticsPanel"),mo=T(()=>import("../packem_chunks/ApiTab.mjs")),fo=T(()=>import("../packem_chunks/architecture-panel.mjs")),po=T(()=>import("../packem_chunks/auth-audit-panel.mjs")),ho=T(()=>import("../packem_chunks/auth-config-panel.mjs")),go=T(()=>import("../packem_chunks/auth-sessions-panel.mjs")),bo=T(()=>import("../packem_chunks/organizations-panel.mjs")),vo=$(()=>import("../packem_chunks/users-panel.mjs"),"UsersPanel"),yo=T(()=>import("../packem_chunks/containers-panel.mjs")),xo=$(()=>import("../packem_chunks/DeploymentHealthPanel.mjs"),"DeploymentHealthPanel"),wo=$(()=>import("../packem_chunks/TableEditor.mjs"),"TableEditor"),ko=$(()=>import("../packem_chunks/ExportImportPanel.mjs"),"ExportImportPanel"),No=T(()=>import("../packem_chunks/migrations-route.mjs")),Mo={data:zs,migrations:Vs},So=$(()=>import("../packem_chunks/PitrPanel.mjs"),"PitrPanel"),Co=$(()=>import("../packem_chunks/privacy-requests-panel.mjs"),"PrivacyRequestsPanel"),Po=T(()=>import("../packem_chunks/flags-panel.mjs")),_o=T(()=>import("../packem_chunks/reactors-panel.mjs")),To=$(()=>import("../packem_chunks/FunctionRunner.mjs"),"FunctionRunner"),Ao=$(()=>import("../packem_chunks/FunctionStatsPanel.mjs"),"FunctionStatsPanel"),Ro=T(()=>import("../packem_chunks/issues-panel.mjs")),Lo=$(()=>import("../packem_chunks/AuditPanel.mjs"),"AuditPanel"),Io=T(()=>import("../packem_chunks/log-drains-panel.mjs")),Eo=T(()=>import("../packem_chunks/LogsPanel.mjs").then(t=>({default:t.LogsPanel}))),$o=$(()=>import("../packem_chunks/MailPanel.mjs"),"MailPanel"),Ho=$(()=>import("../packem_chunks/schedule-panel.mjs"),"SchedulePanel"),Do=T(()=>import("../packem_chunks/subscriptions-panel.mjs")),Bo=T(()=>import("../packem_chunks/sync-client-panel.mjs")),Vo=$(()=>import("../packem_chunks/kv-browser.mjs"),"KvBrowser"),zo=T(()=>import("../packem_chunks/NotificationsPanel.mjs")),Oo=$(()=>import("../packem_chunks/payments-panel.mjs"),"PaymentsPanel"),Zo=$(()=>import("../packem_chunks/permissions-panel.mjs"),"PermissionsPanel"),qo=T(()=>import("../packem_chunks/queues-panel.mjs")),Fo=T(()=>import("../packem_chunks/dashboards-panel.mjs")),Wo=T(()=>import("../packem_chunks/fanout-panel.mjs")),Uo=$(()=>import("../packem_chunks/HealthPanel.mjs"),"HealthPanel"),jo=$(()=>import("../packem_chunks/MetricsPanel.mjs"),"MetricsPanel"),Go=$(()=>import("../packem_chunks/SchemaViewer.mjs"),"SchemaViewer"),Qo=$(()=>import("../packem_chunks/SettingsPanel.mjs"),"SettingsPanel"),Ko=$(()=>import("../packem_chunks/SqlEditorPanel.mjs"),"SqlEditorPanel"),Yo=$(()=>import("../packem_chunks/FileBrowser.mjs"),"FileBrowser"),Jo=T(()=>import("../packem_chunks/storage-rules-panel.mjs")),Xo=T(()=>import("../packem_chunks/traces-panel.mjs")),er=T(()=>import("../packem_chunks/evals-panel.mjs")),tr=T(()=>import("../packem_chunks/ai-usage-panel.mjs")),sr=$(()=>import("../packem_chunks/vector-browser.mjs"),"VectorBrowser"),ar=T(()=>import("../packem_chunks/workflows-panel.mjs")),ms=Ut(null),or={analytics:o("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:o("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),architecture:o("path",{d:"M4 4h6v5H4V4Zm10 0h6v5h-6V4ZM9 15h6v5H9v-5ZM7 9v3h10V9M12 12v3"}),audit:o("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:o("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:o("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:o("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:o("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:o("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:o("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:o("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:o("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:o("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:o("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:o("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:o("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:o("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:o("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:o("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:o("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:o("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:o("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:o("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:o("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:o("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:o("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:o("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:o("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:o("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:o("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:o("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:o("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:o("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:o("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),privacyRequests:o("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h4"}),queues:o("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:o("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:o("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:o("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:o("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:o("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:o("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:o("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:o("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:o("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:o("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:o("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:o("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:o("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:o("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Ft=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","architecture","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","aiUsage","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags","privacyRequests"]},{key:"settings",tabs:["settings"]}],Lt=t=>{const e=N(2),{tab:s}=t,a=or[s];let r;return e[0]!==a?(r=o("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]=r):r=e[1],r},rr=t=>t,fs=rr(["home","data","sql","functions","api","architecture","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","aiUsage","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","privacyRequests","settings"]),nr=new Set(["api","data","migrations","sql"]),lr=t=>{const e=t.split("/").findLast(Boolean)??"";return fs.includes(e)?e:"home"},ir=t=>{const e=N(19),{chrome:s,connected:a}=t,r=J();let n;e[0]!==r?(n=r("admin token"),e[0]=r,e[1]=n):n=e[1];let l;e[2]!==n?(l=o("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:n}),e[2]=n,e[3]=l):l=e[3];let i;e[4]!==s.onTokenChange||e[5]!==s.token?(i=o(Ht,{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]=i):i=e[6];let d;e[7]!==a||e[8]!==r?(d=a&&k("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[o("span",{"aria-hidden":"true",className:"text-warning",children:"⚠"}),r("Token rides the WebSocket URL — it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=a,e[8]=r,e[9]=d):d=e[9];let c;e[10]!==s.clearToken||e[11]!==a||e[12]!==r?(c=a&&o("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:r("Clear")}),e[10]=s.clearToken,e[11]=a,e[12]=r,e[13]=c):c=e[13];let u;return e[14]!==l||e[15]!==i||e[16]!==d||e[17]!==c?(u=k("div",{className:"flex flex-col gap-2",children:[l,i,d,c]}),e[14]=l,e[15]=i,e[16]=d,e[17]=c,e[18]=u):u=e[18],u},ps="opacity-50",dr=t=>{const e=N(27),{current:s,group:a,groupLabel:r,selectTab:n,tabDescription:l,tabLabel:i,unavailable:d}=t,c=a.tabs.includes(s)?"page":void 0,u=r[a.key],f=a.tabs[0];let y;e[0]!==f?(y=o(Lt,{tab:f}),e[0]=f,e[1]=y):y=e[1];let m;e[2]!==c||e[3]!==u||e[4]!==y?(m=o(ls,{"aria-current":c,"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:y}),e[2]=c,e[3]=u,e[4]=y,e[5]=m):m=e[5];const v=r[a.key];let g;e[6]!==v?(g=o("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:v}),e[6]=v,e[7]=g):g=e[7];let x;if(e[8]!==s||e[9]!==a.tabs||e[10]!==n||e[11]!==l||e[12]!==i||e[13]!==d){let h;e[15]!==s||e[16]!==n||e[17]!==l||e[18]!==i||e[19]!==d?(h=w=>k("button",{"aria-current":s===w?"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[w]!==void 0&&ps),"data-tab":w,"data-testid":`dash-tab-${w}`,"data-unsupported":d[w]===void 0?void 0:"true",onClick:n,title:l[w],type:"button",children:[o(Lt,{tab:w}),o("span",{children:i[w]})]},w),e[15]=s,e[16]=n,e[17]=l,e[18]=i,e[19]=d,e[20]=h):h=e[20],x=a.tabs.map(h),e[8]=s,e[9]=a.tabs,e[10]=n,e[11]=l,e[12]=i,e[13]=d,e[14]=x}else x=e[14];let b;e[21]!==g||e[22]!==x?(b=k(is,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[g,x]}),e[21]=g,e[22]=x,e[23]=b):b=e[23];let p;return e[24]!==m||e[25]!==b?(p=k(ns,{children:[m,b]}),e[24]=m,e[25]=b,e[26]=p):p=e[26],p},cr=t=>{const e=N(45),{chrome:s,collapsed:a,connected:r}=t,n=J();if(s===null){let h;e[0]!==n?(h=n("Admin"),e[0]=n,e[1]=h):h=e[1];let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=o("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=w):w=e[2];let M;e[3]!==n?(M=n("Admin"),e[3]=n,e[4]=M):M=e[4];let P;e[5]!==M?(P=o("span",{className:"truncate text-[13px] font-medium",children:M}),e[5]=M,e[6]=P):P=e[6];let C;e[7]!==n?(C=n("Studio"),e[7]=n,e[8]=C):C=e[8];let S;e[9]!==C?(S=o("span",{className:"truncate text-[11px] text-muted-foreground",children:C}),e[9]=C,e[10]=S):S=e[10];let A;e[11]!==P||e[12]!==S?(A=k("span",{className:"grid flex-1 text-start leading-tight",children:[P,S]}),e[11]=P,e[12]=S,e[13]=A):A=e[13];let R;return e[14]!==h||e[15]!==A?(R=k(cs,{className:"data-active:bg-transparent",size:"lg",tooltip:h,children:[w,A]}),e[14]=h,e[15]=A,e[16]=R):R=e[16],R}const l=a?"mx-auto size-8 justify-center":"w-full p-2";let i;e[17]!==l?(i=_("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]=i):i=e[18];let d;e[19]!==r||e[20]!==n?(d=n(r?"Connected":"Not connected"),e[19]=r,e[20]=n,e[21]=d):d=e[21];const c=r?"bg-success":"bg-muted-foreground/50";let u;e[22]!==c?(u=_("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",c),e[22]=c,e[23]=u):u=e[23];let f;e[24]!==u?(f=k("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",o("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let y;e[26]!==a||e[27]!==r||e[28]!==n?(y=!a&&k(jt,{children:[k("span",{className:"grid flex-1 text-start leading-tight",children:[o("span",{className:"truncate text-[13px] font-medium",children:n("Admin")}),o("span",{className:"truncate text-[11px] text-muted-foreground",children:n(r?"Connected":"Not connected")})]}),o("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:o("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=a,e[27]=r,e[28]=n,e[29]=y):y=e[29];let m;e[30]!==i||e[31]!==d||e[32]!==f||e[33]!==y?(m=k(ls,{className:i,"data-testid":"dash-app-connect",title:d,children:[f,y]}),e[30]=i,e[31]=d,e[32]=f,e[33]=y,e[34]=m):m=e[34];const v=a?"end":"start",g=a?"right":"top";let x;e[35]!==s||e[36]!==r?(x=o(ir,{chrome:s,connected:r}),e[35]=s,e[36]=r,e[37]=x):x=e[37];let b;e[38]!==g||e[39]!==x||e[40]!==v?(b=o(is,{align:v,keepMounted:!0,side:g,children:x}),e[38]=g,e[39]=x,e[40]=v,e[41]=b):b=e[41];let p;return e[42]!==b||e[43]!==m?(p=k(ns,{children:[m,b]}),e[42]=b,e[43]=m,e[44]=p):p=e[44],p},ur=t=>{const e=N(29),{chrome:s,connected:a,current:r,groupLabel:n,groups:l,selectTab:i,tabDescription:d,tabLabel:c,unavailable:u}=t,f=J(),{state:y}=Mt(),m=y==="collapsed",v=m&&"justify-center px-0";let g;e[0]!==v?(g=_("flex items-center gap-2.5 px-1.5 py-1",v),e[0]=v,e[1]=g):g=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=o(sa,{className:"size-9 shrink-0 text-foreground"}),e[2]=x):x=e[2];let b;e[3]!==m||e[4]!==a||e[5]!==f?(b=!m&&k(jt,{children:[k("span",{className:"grid flex-1 leading-tight",children:[o("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),o("span",{className:"truncate text-[11px] text-muted-foreground",children:f("Studio")})]}),o(yt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:f(a?"Live":"Local")})]}),e[3]=m,e[4]=a,e[5]=f,e[6]=b):b=e[6];let p;e[7]!==g||e[8]!==b?(p=o(_a,{children:k("div",{className:g,children:[x,b]})}),e[7]=g,e[8]=b,e[9]=p):p=e[9];let h;e[10]!==m||e[11]!==r||e[12]!==n||e[13]!==l||e[14]!==i||e[15]!==d||e[16]!==c||e[17]!==u?(h=m?l.map(C=>o(dr,{current:r,group:C,groupLabel:n,selectTab:i,tabDescription:d,tabLabel:c,unavailable:u},C.key)):l.map(C=>k(Ra,{children:[o(La,{className:"text-[11px] font-medium tracking-wider uppercase",children:n[C.key]}),o(Ia,{children:o(Ot,{children:C.tabs.map(S=>o(Zt,{children:k(cs,{className:_("data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]",u[S]!==void 0&&ps),"data-tab":S,"data-testid":`dash-tab-${S}`,"data-unsupported":u[S]===void 0?void 0:"true",isActive:r===S,onClick:i,title:d[S],tooltip:d[S],children:[o(Lt,{tab:S}),o("span",{children:c[S]})]})},S))})})]},C.key)),e[10]=m,e[11]=r,e[12]=n,e[13]=l,e[14]=i,e[15]=d,e[16]=c,e[17]=u,e[18]=h):h=e[18];let w;e[19]!==h?(w=o(Aa,{children:h}),e[19]=h,e[20]=w):w=e[20];let M;e[21]!==s||e[22]!==m||e[23]!==a?(M=o(Ta,{children:o(Ot,{children:o(Zt,{children:o(cr,{chrome:s,collapsed:m,connected:a})})})}),e[21]=s,e[22]=m,e[23]=a,e[24]=M):M=e[24];let P;return e[25]!==p||e[26]!==w||e[27]!==M?(P=k(Sa,{collapsible:"icon",variant:"inset",children:[p,w,M]}),e[25]=p,e[26]=w,e[27]=M,e[28]=P):P=e[28],P},Bt=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=k("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[k("div",{className:"flex items-center gap-2",children:[o(Pt,{className:"h-8 w-40"}),o(Pt,{className:"h-8 w-24"})]}),o(Pt,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},mr=t=>{const e=N(5),{title:s,verdict:a}=t;if(a.kind==="pending"){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=o(Bt,{}),e[0]=n):n=e[0],n}if(a.kind==="unavailable"){let n;return e[1]!==s||e[2]!==a.reason?(n=o(so,{reason:a.reason,title:s}),e[1]=s,e[2]=a.reason,e[3]=n):n=e[3],n}let r;return e[4]===Symbol.for("react.memo_cache_sentinel")?(r=o(ks,{}),e[4]=r):r=e[4],r},fr=()=>{const t=N(59),e=J(),s=Wt();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={select:yr},t[0]=a):a=t[0];const r=ws(a),n=lr(r),l=nr.has(n),i=Ls(),d=i?.toggle,c=Ss();ao(d);const u=Ds(),{groupLabel:f,tabDescription:y,tabLabel:m}=Za(),{unavailable:v,visibleGroups:g}=to(Ft,u,e),x={...y,...v},b=us(n,u,e),p=b.kind==="hidden";let h,w;t[1]!==p||t[2]!==s?(h=()=>{p&&vt(s({replace:!0,to:"/home"}))},w=[p,s],t[1]=p,t[2]=s,t[3]=h,t[4]=w):(h=t[3],w=t[4]),gt(h,w);let M;t[5]!==s?(M=ne=>{vt(s({to:`/${ne.currentTarget.dataset.tab??""}`}))},t[5]=s,t[6]=M):M=t[6];const P=M;let C,S;t[7]!==n||t[8]!==m?(C=()=>{typeof document<"u"&&(document.title=`${m[n]} · lunora`)},S=[n,m],t[7]=n,t[8]=m,t[9]=C,t[10]=S):(C=t[9],S=t[10]),gt(C,S);const A=g.find(ne=>ne.tabs.includes(n))??Ft[0],R=g.flatMap(ne=>ne.tabs.filter(ee=>v[ee]===void 0).map(ee=>({group:f[ne.key],label:m[ee],to:`/${ee}`})));let I;t[11]!==e||t[12]!==d?(I=d===void 0?[]:[{group:e("Operations"),label:e("Toggle operation console"),run:d}],t[11]=e,t[12]=d,t[13]=I):I=t[13];let D;t[14]!==c||t[15]!==e?(D=c===void 0||c.unavailable?[]:[{group:e("Operations"),label:e("Ask the assistant"),run:c.toggle}],t[14]=c,t[15]=e,t[16]=D):D=t[16];const Z=[...R,...I,...D],E=It(ms),B=E!==null&&E.token!=="",z=f[A.key],O=m[n];let H;t[17]!==z||t[18]!==O?(H=o(Ka,{domain:z,onOpenCommandPalette:Zs,page:O}),t[17]=z,t[18]=O,t[19]=H):H=t[19];let V;t[20]!==E?.rulesInstalled?(V=E?.rulesInstalled===!1&&o(ia,{}),t[20]=E?.rulesInstalled,t[21]=V):V=t[21];let L;t[22]!==E||t[23]!==B?(L=(E===null||B)&&o(oa,{}),t[22]=E,t[23]=B,t[24]=L):L=t[24];const te=`dash-tab-${n}`,se=l?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",ae=m[n];let q;t[25]!==e||t[26]!==ae?(q=e("{title} failed",{title:ae}),t[25]=e,t[26]=ae,t[27]=q):q=t[27];const oe=m[n];let F;t[28]!==e?(F=e("Try again"),t[28]=e,t[29]=F):F=t[29];let X;t[30]===Symbol.for("react.memo_cache_sentinel")?(X=o(Bt,{}),t[30]=X):X=t[30];const re=m[n];let W;t[31]!==re||t[32]!==b?(W=o(Rt,{fallback:X,children:o(mr,{title:re,verdict:b})}),t[31]=re,t[32]=b,t[33]=W):W=t[33];let U;t[34]!==n||t[35]!==q||t[36]!==oe||t[37]!==F||t[38]!==W?(U=o(As,{fallbackTitle:q,label:oe,retryLabel:F,children:W},n),t[34]=n,t[35]=q,t[36]=oe,t[37]=F,t[38]=W,t[39]=U):U=t[39];let j;t[40]!==se||t[41]!==U?(j=o("div",{className:se,children:U}),t[40]=se,t[41]=U,t[42]=j):j=t[42];let G;t[43]!==i?(G=i?.open===!0&&o(Va,{focusSeq:i.focusSeq,onClose:i.close,onShownChange:i.setShown,shown:i.shown}),t[43]=i,t[44]=G):G=t[44];let Q;t[45]!==te||t[46]!==j||t[47]!==G?(Q=k("div",{"aria-labelledby":te,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[j,G]}),t[45]=te,t[46]=j,t[47]=G,t[48]=Q):Q=t[48];let K;t[49]!==H||t[50]!==V||t[51]!==L||t[52]!==Q?(K=k("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[H,V,L,Q]}),t[49]=H,t[50]=V,t[51]=L,t[52]=Q,t[53]=K):K=t[53];let Y;t[54]!==c?(Y=c!==void 0&&c.open&&!c.unavailable&&o(Rt,{fallback:null,children:o(co,{assistant:c})}),t[54]=c,t[55]=Y):Y=t[55];let le;return t[56]!==K||t[57]!==Y?(le=k(Pa,{className:"flex flex-row overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[K,Y]}),t[56]=K,t[57]=Y,t[58]=le):le=t[58],k(Ma,{className:"min-h-0 flex-1","data-platform":u.platform?.id,"data-testid":"lunora-studio",children:[o(Os,{items:Z}),o(ur,{chrome:E,connected:B,current:n,groupLabel:f,groups:g,selectTab:P,tabDescription:x,tabLabel:m,unavailable:v}),le]})},pr=()=>{const t=N(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o(Rs,{children:o(Ms,{children:o(fr,{})})}),t[0]=e):e=t[0],e},hr=t=>{const e=N(5),{initialShardKey:s,schemaEditable:a}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const n=ys(r),{table:l}=n,i=typeof l=="string"?l:void 0;let d;return e[1]!==s||e[2]!==i||e[3]!==a?(d=o(Go,{initialShardKey:s,initialTable:i,schemaEditable:a}),e[1]=s,e[2]=i,e[3]=a,e[4]=d):d=e[4],d},gr=()=>{const t=N(3),e=Wt();let s,a;return t[0]!==e?(s=()=>{vt(e({replace:!0,to:"/home"}))},a=[e],t[0]=e,t[1]=s,t[2]=a):(s=t[1],a=t[2]),gt(s,a),null},br=({advisorProcedures:t=!1,analyticsSqlQuery:e,basePath:s,privacyRequests:a,dataEditable:r=!1,functions:n,initialShardKey:l,openApiSpec:i,openRpcSpec:d,advisorCompanion:c=!1,runAsIdentity:u=!1,schemaEditable:f=!1,scheduledCancel:y,scheduledCron:m,scheduledLoad:v})=>{const g=hs({component:pr}),x={agents:o(io,{initialShardKey:l}),analytics:o(uo,{runQuery:e}),api:o(mo,{functions:n,initialShardKey:l,openApiSpec:i,openRpcSpec:d}),architecture:o(fo,{}),audit:o(Lo,{initialShardKey:l}),authAudit:o(po,{}),authConfig:o(ho,{}),authSessions:o(go,{}),containers:o(yo,{}),dashboards:o(Fo,{initialShardKey:l}),data:o(wo,{canGenerateRows:r&&f,editable:r,initialShardKey:l}),deploymentHealth:o(xo,{}),drains:o(Io,{}),export:o(ko,{initialShardKey:l}),fanout:o(Wo,{initialShardKey:l}),files:o(Yo,{}),kv:o(Vo,{}),flags:o(Po,{initialShardKey:l}),reactors:o(_o,{initialShardKey:l}),functions:k("div",{className:"flex flex-col gap-8",children:[o(Ao,{functions:n,initialShardKey:l}),o(To,{functions:n,runAsIdentity:u})]}),health:o(Uo,{initialShardKey:l}),home:o(Hs,{initialShardKey:l}),insights:o(oo,{initialShardKey:l}),issues:o(Ro,{initialShardKey:l}),logs:o(Eo,{initialShardKey:l}),traces:o(Xo,{initialShardKey:l}),evals:o(er,{initialShardKey:l}),aiUsage:o(tr,{initialShardKey:l}),metrics:o(jo,{initialShardKey:l}),migrations:o(No,{initialShardKey:l}),notifications:o(zo,{}),organizations:o(bo,{}),permissions:o(Zo,{functions:n,runAsIdentity:u,schemaEditable:f}),pitr:o(So,{initialShardKey:l}),privacyRequests:o(Co,{source:a}),mail:o($o,{}),payments:o(Oo,{}),queues:o(qo,{}),realtime:k("div",{className:"flex flex-col gap-8",children:[o(Do,{initialShardKey:l}),o(Bo,{})]}),rls:o(ro,{}),schedule:o(Ho,{initialShardKey:l,loadCronJobs:m,scheduledCancel:y,scheduledLoad:v}),schema:o(hr,{initialShardKey:l,schemaEditable:f}),advisorHealth:o(no,{advisorCompanion:c,localProcedures:t}),security:o(lo,{}),settings:o(Qo,{initialShardKey:l}),sql:o(Ko,{initialShardKey:l}),storageRules:o(Jo,{}),users:o(vo,{}),vectors:o(sr,{}),workflows:o(ar,{})},b=Vt({component:()=>x.home,getParentRoute:()=>g,path:"/"}),p=fs.map(M=>Vt({component:()=>x[M],getParentRoute:()=>g,path:`/${M}`,validateSearch:Mo[M]})),h=g.addChildren([b,...p]),w="window"in globalThis?gs():bs({initialEntries:["/home"]});return vs({...s===void 0||s==="/"?{}:{basepath:s},defaultNotFoundComponent:gr,defaultPendingComponent:Bt,defaultPendingMinMs:0,defaultPendingMs:0,history:w,routeTree:h})},vr=t=>{const e=N(21),{advisorProcedures:s,analyticsSqlQuery:a,basePath:r,chrome:n,dataEditable:l,functions:i,initialShardKey:d,openApiSpec:c,openRpcSpec:u,privacyRequests:f,advisorCompanion:y,runAsIdentity:m,schemaEditable:v,scheduledCancel:g,scheduledCron:x,scheduledLoad:b}=t;let p;e[0]!==y||e[1]!==s||e[2]!==a||e[3]!==r||e[4]!==l||e[5]!==i||e[6]!==d||e[7]!==c||e[8]!==u||e[9]!==f||e[10]!==m||e[11]!==g||e[12]!==x||e[13]!==b||e[14]!==v?(p=br({advisorProcedures:s,analyticsSqlQuery:a,basePath:r,privacyRequests:f,dataEditable:l,functions:i,initialShardKey:d,openApiSpec:c,openRpcSpec:u,advisorCompanion:y,runAsIdentity:m,schemaEditable:v,scheduledCancel:g,scheduledCron:x,scheduledLoad:b}),e[0]=y,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i,e[6]=d,e[7]=c,e[8]=u,e[9]=f,e[10]=m,e[11]=g,e[12]=x,e[13]=b,e[14]=v,e[15]=p):p=e[15];const h=p,w=n??null;let M;e[16]!==h?(M=o(xs,{router:h}),e[16]=h,e[17]=M):M=e[17];let P;return e[18]!==w||e[19]!==M?(P=o(ms,{value:w,children:M}),e[18]=w,e[19]=M,e[20]=P):P=e[20],P},tn=t=>{const e=N(10);let s,a,r;e[0]!==t?({i18n:s,locale:a,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r):(s=e[1],a=e[2],r=e[3]);let n;e[4]!==r?(n=o(Ys,{children:o(vr,{...r})}),e[4]=r,e[5]=n):n=e[5];const l=n;if(s===void 0&&a===void 0)return l;let i;return e[6]!==s||e[7]!==a||e[8]!==l?(i=o(Bs,{i18n:s,locale:a,children:l}),e[6]=s,e[7]=a,e[8]=l,e[9]=i):i=e[9],i};function yr(t){return t.location.pathname}export{sa as B,en as D,tn as S,Ks as T,Xr as a,ua as b,pa as c,ha as d,ga as e,Js as u};
|