nestlens 0.9.1 → 0.9.2

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.
Files changed (61) hide show
  1. package/dist/dashboard/public/assets/{BatchDetailView-D5HvA77t.js → BatchDetailView-CNyv7Vc1.js} +1 -1
  2. package/dist/dashboard/public/assets/{BatchesPage-DuRRA37y.js → BatchesPage-BrvAux3V.js} +1 -1
  3. package/dist/dashboard/public/assets/{CacheDetailView-1UxogliV.js → CacheDetailView-CtmDMMR2.js} +1 -1
  4. package/dist/dashboard/public/assets/{CachePage-BW4xXkPr.js → CachePage-D-LhEY8p.js} +1 -1
  5. package/dist/dashboard/public/assets/{CommandDetailView-BpgW7Td3.js → CommandDetailView-B_6u-4-M.js} +1 -1
  6. package/dist/dashboard/public/assets/{CommandsPage-ds87Sc7B.js → CommandsPage-BtMSnG2A.js} +1 -1
  7. package/dist/dashboard/public/assets/{CopyButton-CVcLaHry.js → CopyButton-C2sNp4HP.js} +1 -1
  8. package/dist/dashboard/public/assets/{DashboardPage-DNHQ3XIO.js → DashboardPage-wUYPGV_y.js} +1 -1
  9. package/dist/dashboard/public/assets/{DataTable-DBtrADsk.js → DataTable-PCSvmOPj.js} +1 -1
  10. package/dist/dashboard/public/assets/{DetailRow-C0vUMqsn.js → DetailRow-CfonsGvS.js} +1 -1
  11. package/dist/dashboard/public/assets/{DumpDetailView-DpIq0X3G.js → DumpDetailView-DGy7eSQl.js} +1 -1
  12. package/dist/dashboard/public/assets/{DumpsPage-BEMRyaRD.js → DumpsPage-jeUeiAuN.js} +1 -1
  13. package/dist/dashboard/public/assets/{EntryDetailPage-CIQyW46e.js → EntryDetailPage-C5QubCqk.js} +3 -3
  14. package/dist/dashboard/public/assets/{EntrySearchInput-_mfQ0GTh.js → EntrySearchInput-DLuCL4Ys.js} +1 -1
  15. package/dist/dashboard/public/assets/{EventDetailView-P73VP_Fy.js → EventDetailView-DrExHdP3.js} +1 -1
  16. package/dist/dashboard/public/assets/{EventsPage-CGVLTNsT.js → EventsPage-CA-mVFw2.js} +1 -1
  17. package/dist/dashboard/public/assets/{ExceptionDetailView-BGARMi0L.js → ExceptionDetailView-xmNdG8Nb.js} +1 -1
  18. package/dist/dashboard/public/assets/{ExceptionsPage-D0QFk7Th.js → ExceptionsPage-D6ww4tft.js} +1 -1
  19. package/dist/dashboard/public/assets/{GateDetailView-qlS8o8Vj.js → GateDetailView-Db3NrQmm.js} +1 -1
  20. package/dist/dashboard/public/assets/{GatesPage-DRAeMoww.js → GatesPage-CuEy3xE1.js} +1 -1
  21. package/dist/dashboard/public/assets/{GraphQLDetailView-DxhebEpl.js → GraphQLDetailView-DZPwXidi.js} +1 -1
  22. package/dist/dashboard/public/assets/{GraphQLPage-DFvzS6gG.js → GraphQLPage-D4vF4fhg.js} +1 -1
  23. package/dist/dashboard/public/assets/{HttpClientDetailView-Ce86dSVL.js → HttpClientDetailView-7v6RERdZ.js} +1 -1
  24. package/dist/dashboard/public/assets/{HttpClientPage-DF8GOfV0.js → HttpClientPage-Dz07Icgz.js} +1 -1
  25. package/dist/dashboard/public/assets/{JobDetailView-Ddwlj0Oz.js → JobDetailView-DrDFXY-t.js} +1 -1
  26. package/dist/dashboard/public/assets/{JobsPage-Bd0RuywX.js → JobsPage-C7MOQ5N5.js} +1 -1
  27. package/dist/dashboard/public/assets/{LogDetailView-C-TzEuYz.js → LogDetailView-OhpY0czv.js} +1 -1
  28. package/dist/dashboard/public/assets/{LogsPage-BIKUhnPY.js → LogsPage-CELJRQdo.js} +1 -1
  29. package/dist/dashboard/public/assets/{MailDetailView-DTL0Ys2p.js → MailDetailView-rmPDboFn.js} +1 -1
  30. package/dist/dashboard/public/assets/{MailPage-DFT9mR2h.js → MailPage-CPmDY6cW.js} +1 -1
  31. package/dist/dashboard/public/assets/{ModelDetailView-D3-lYlRT.js → ModelDetailView-DVh-32OU.js} +1 -1
  32. package/dist/dashboard/public/assets/{ModelsPage-C1020vlQ.js → ModelsPage-Bi2hB6U7.js} +1 -1
  33. package/dist/dashboard/public/assets/{NotificationDetailView-D3SwDytA.js → NotificationDetailView-C_IGKjY3.js} +1 -1
  34. package/dist/dashboard/public/assets/{NotificationsPage-B9od-UaX.js → NotificationsPage-Bn3roYs1.js} +1 -1
  35. package/dist/dashboard/public/assets/{PageHeader-D5AT-Mxc.js → PageHeader-CIBDYg8j.js} +1 -1
  36. package/dist/dashboard/public/assets/{QueriesPage-DhewLYn5.js → QueriesPage-DzWPvH8G.js} +1 -1
  37. package/dist/dashboard/public/assets/{QueryDetailView-YBMinBib.js → QueryDetailView-RUxW9Uqs.js} +1 -1
  38. package/dist/dashboard/public/assets/{RedisDetailView-BRcONsdJ.js → RedisDetailView-Ceo27Mx3.js} +1 -1
  39. package/dist/dashboard/public/assets/{RedisPage-Bya5L8h1.js → RedisPage-pBNy_8Qd.js} +1 -1
  40. package/dist/dashboard/public/assets/{RequestDetailView-BY1-cZjR.js → RequestDetailView-t5odupt4.js} +1 -1
  41. package/dist/dashboard/public/assets/{RequestsPage-DNnN4EV_.js → RequestsPage-B2dLu5n_.js} +1 -1
  42. package/dist/dashboard/public/assets/{ScheduleDetailView-Bm_xNamm.js → ScheduleDetailView-D8OZ-_yh.js} +1 -1
  43. package/dist/dashboard/public/assets/{SchedulePage-BPSF96Cq.js → SchedulePage-CZ_j6ucP.js} +1 -1
  44. package/dist/dashboard/public/assets/{UserCard-BUmnN8l-.js → UserCard-Dom0aCbz.js} +1 -1
  45. package/dist/dashboard/public/assets/{ViewDetailView-DrMVO93F.js → ViewDetailView-Bxd64RN9.js} +1 -1
  46. package/dist/dashboard/public/assets/{ViewsPage-CP7MTNTk.js → ViewsPage-Bvm7RI_3.js} +1 -1
  47. package/dist/dashboard/public/assets/{calendar-DaXjWGJG.js → calendar-BMPz0Z6s.js} +1 -1
  48. package/dist/dashboard/public/assets/{circle-alert-BoSdc5v7.js → circle-alert-t2lIvGjF.js} +1 -1
  49. package/dist/dashboard/public/assets/{circle-check-big-pHbbgVmy.js → circle-check-big-DfHJ1LXS.js} +1 -1
  50. package/dist/dashboard/public/assets/{circle-x-CBdlQncP.js → circle-x-Cgixh9fi.js} +1 -1
  51. package/dist/dashboard/public/assets/{eye-RDdYWiOL.js → eye-DRW5kZff.js} +1 -1
  52. package/dist/dashboard/public/assets/index-DOVqOa07.js +361 -0
  53. package/dist/dashboard/public/assets/{search-BZHB1sYK.js → search-DgNz5G1h.js} +1 -1
  54. package/dist/dashboard/public/assets/{send-CqQmINCf.js → send-BKsI3HhT.js} +1 -1
  55. package/dist/dashboard/public/assets/{timer-ytyQLcvS.js → timer-hkll0vuQ.js} +1 -1
  56. package/dist/dashboard/public/assets/{types-Rt2vyU68.js → types-nsz9P0qo.js} +1 -1
  57. package/dist/dashboard/public/assets/{users-CgFaJMH4.js → users-CTNyAW4A.js} +1 -1
  58. package/dist/dashboard/public/assets/{zap-BHRzQYJO.js → zap-BolYLTQe.js} +1 -1
  59. package/dist/dashboard/public/index.html +1 -1
  60. package/package.json +1 -1
  61. package/dist/dashboard/public/assets/index-DSn-BKqm.js +0 -361
@@ -1 +1 @@
1
- import{j as h}from"./index-DSn-BKqm.js";import{D as _}from"./DetailRow-C0vUMqsn.js";function J(x){function j(t,l){return t<<l|t>>>32-l}function i(t,l){const a=(t&65535)+(l&65535);return(t>>16)+(l>>16)+(a>>16)<<16|a&65535}function E(t,l,a){return t&l|~t&a}function R(t,l,a){return t&a|l&~a}function T(t,l,a){return t^l^a}function M(t,l,a){return l^(t|~a)}function c(t,l,a,f,p,S,g){return t=i(t,i(i(E(l,a,f),p),g)),i(j(t,S),l)}function d(t,l,a,f,p,S,g){return t=i(t,i(i(R(l,a,f),p),g)),i(j(t,S),l)}function m(t,l,a,f,p,S,g){return t=i(t,i(i(T(l,a,f),p),g)),i(j(t,S),l)}function u(t,l,a,f,p,S,g){return t=i(t,i(i(M(l,a,f),p),g)),i(j(t,S),l)}function q(t){const l=[],a=t.length,f=a+8,S=((f-f%64)/64+1)*16;for(let b=0;b<S;b++)l[b]=0;let g=0,N=0;for(;N<a;){const b=(N-N%4)/4;g=N%4*8,l[b]=l[b]|t.charCodeAt(N)<<g,N++}const $=(N-N%4)/4;return g=N%4*8,l[$]=l[$]|128<<g,l[S-2]=a<<3,l[S-1]=a>>>29,l}function v(t){let l="";for(let a=0;a<=3;a++){const f=t>>>a*8&255;l+=("0"+f.toString(16)).slice(-2)}return l}const s=q(x);let e=1732584193,n=4023233417,r=2562383102,o=271733878;const w=7,y=12,W=17,C=22,A=5,U=9,k=14,D=20,B=4,G=11,H=16,I=23,O=6,F=10,L=15,P=21;for(let t=0;t<s.length;t+=16){const l=e,a=n,f=r,p=o;e=c(e,n,r,o,s[t+0],w,3614090360),o=c(o,e,n,r,s[t+1],y,3905402710),r=c(r,o,e,n,s[t+2],W,606105819),n=c(n,r,o,e,s[t+3],C,3250441966),e=c(e,n,r,o,s[t+4],w,4118548399),o=c(o,e,n,r,s[t+5],y,1200080426),r=c(r,o,e,n,s[t+6],W,2821735955),n=c(n,r,o,e,s[t+7],C,4249261313),e=c(e,n,r,o,s[t+8],w,1770035416),o=c(o,e,n,r,s[t+9],y,2336552879),r=c(r,o,e,n,s[t+10],W,4294925233),n=c(n,r,o,e,s[t+11],C,2304563134),e=c(e,n,r,o,s[t+12],w,1804603682),o=c(o,e,n,r,s[t+13],y,4254626195),r=c(r,o,e,n,s[t+14],W,2792965006),n=c(n,r,o,e,s[t+15],C,1236535329),e=d(e,n,r,o,s[t+1],A,4129170786),o=d(o,e,n,r,s[t+6],U,3225465664),r=d(r,o,e,n,s[t+11],k,643717713),n=d(n,r,o,e,s[t+0],D,3921069994),e=d(e,n,r,o,s[t+5],A,3593408605),o=d(o,e,n,r,s[t+10],U,38016083),r=d(r,o,e,n,s[t+15],k,3634488961),n=d(n,r,o,e,s[t+4],D,3889429448),e=d(e,n,r,o,s[t+9],A,568446438),o=d(o,e,n,r,s[t+14],U,3275163606),r=d(r,o,e,n,s[t+3],k,4107603335),n=d(n,r,o,e,s[t+8],D,1163531501),e=d(e,n,r,o,s[t+13],A,2850285829),o=d(o,e,n,r,s[t+2],U,4243563512),r=d(r,o,e,n,s[t+7],k,1735328473),n=d(n,r,o,e,s[t+12],D,2368359562),e=m(e,n,r,o,s[t+5],B,4294588738),o=m(o,e,n,r,s[t+8],G,2272392833),r=m(r,o,e,n,s[t+11],H,1839030562),n=m(n,r,o,e,s[t+14],I,4259657740),e=m(e,n,r,o,s[t+1],B,2763975236),o=m(o,e,n,r,s[t+4],G,1272893353),r=m(r,o,e,n,s[t+7],H,4139469664),n=m(n,r,o,e,s[t+10],I,3200236656),e=m(e,n,r,o,s[t+13],B,681279174),o=m(o,e,n,r,s[t+0],G,3936430074),r=m(r,o,e,n,s[t+3],H,3572445317),n=m(n,r,o,e,s[t+6],I,76029189),e=m(e,n,r,o,s[t+9],B,3654602809),o=m(o,e,n,r,s[t+12],G,3873151461),r=m(r,o,e,n,s[t+15],H,530742520),n=m(n,r,o,e,s[t+2],I,3299628645),e=u(e,n,r,o,s[t+0],O,4096336452),o=u(o,e,n,r,s[t+7],F,1126891415),r=u(r,o,e,n,s[t+14],L,2878612391),n=u(n,r,o,e,s[t+5],P,4237533241),e=u(e,n,r,o,s[t+12],O,1700485571),o=u(o,e,n,r,s[t+3],F,2399980690),r=u(r,o,e,n,s[t+10],L,4293915773),n=u(n,r,o,e,s[t+1],P,2240044497),e=u(e,n,r,o,s[t+8],O,1873313359),o=u(o,e,n,r,s[t+15],F,4264355552),r=u(r,o,e,n,s[t+6],L,2734768916),n=u(n,r,o,e,s[t+13],P,1309151649),e=u(e,n,r,o,s[t+4],O,4149444226),o=u(o,e,n,r,s[t+11],F,3174756917),r=u(r,o,e,n,s[t+2],L,718787259),n=u(n,r,o,e,s[t+9],P,3951481745),e=i(e,l),n=i(n,a),r=i(r,f),o=i(o,p)}return v(e)+v(n)+v(r)+v(o)}function K(x,j=80){return`https://www.gravatar.com/avatar/${J(x.toLowerCase().trim())}?d=identicon&s=${j}`}function X({user:x}){const j=x.email?K(x.email):null;return h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:h.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Authenticated User"})}),h.jsx("div",{className:"p-4",children:h.jsxs("dl",{className:"divide-y-0",children:[h.jsx(_,{label:"ID",value:h.jsx("code",{className:"text-sm font-mono bg-gray-100 dark:bg-gray-800 px-2 py-0.5 rounded",children:String(x.id)})}),x.name&&h.jsx(_,{label:"Name",value:h.jsxs("span",{className:"flex items-center gap-2",children:[j&&h.jsx("img",{src:j,alt:x.name,className:"w-6 h-6 rounded-full"}),h.jsx("span",{children:x.name})]})}),x.email&&h.jsx(_,{label:"Email Address",value:h.jsx("a",{href:`mailto:${x.email}`,className:"text-indigo-600 dark:text-indigo-400 hover:underline",children:x.email})})]})})]})}export{X as U};
1
+ import{j as h}from"./index-DOVqOa07.js";import{D as _}from"./DetailRow-CfonsGvS.js";function J(x){function j(t,l){return t<<l|t>>>32-l}function i(t,l){const a=(t&65535)+(l&65535);return(t>>16)+(l>>16)+(a>>16)<<16|a&65535}function E(t,l,a){return t&l|~t&a}function R(t,l,a){return t&a|l&~a}function T(t,l,a){return t^l^a}function M(t,l,a){return l^(t|~a)}function c(t,l,a,f,p,S,g){return t=i(t,i(i(E(l,a,f),p),g)),i(j(t,S),l)}function d(t,l,a,f,p,S,g){return t=i(t,i(i(R(l,a,f),p),g)),i(j(t,S),l)}function m(t,l,a,f,p,S,g){return t=i(t,i(i(T(l,a,f),p),g)),i(j(t,S),l)}function u(t,l,a,f,p,S,g){return t=i(t,i(i(M(l,a,f),p),g)),i(j(t,S),l)}function q(t){const l=[],a=t.length,f=a+8,S=((f-f%64)/64+1)*16;for(let b=0;b<S;b++)l[b]=0;let g=0,N=0;for(;N<a;){const b=(N-N%4)/4;g=N%4*8,l[b]=l[b]|t.charCodeAt(N)<<g,N++}const $=(N-N%4)/4;return g=N%4*8,l[$]=l[$]|128<<g,l[S-2]=a<<3,l[S-1]=a>>>29,l}function v(t){let l="";for(let a=0;a<=3;a++){const f=t>>>a*8&255;l+=("0"+f.toString(16)).slice(-2)}return l}const s=q(x);let e=1732584193,n=4023233417,r=2562383102,o=271733878;const w=7,y=12,W=17,C=22,A=5,U=9,k=14,D=20,B=4,G=11,H=16,I=23,O=6,F=10,L=15,P=21;for(let t=0;t<s.length;t+=16){const l=e,a=n,f=r,p=o;e=c(e,n,r,o,s[t+0],w,3614090360),o=c(o,e,n,r,s[t+1],y,3905402710),r=c(r,o,e,n,s[t+2],W,606105819),n=c(n,r,o,e,s[t+3],C,3250441966),e=c(e,n,r,o,s[t+4],w,4118548399),o=c(o,e,n,r,s[t+5],y,1200080426),r=c(r,o,e,n,s[t+6],W,2821735955),n=c(n,r,o,e,s[t+7],C,4249261313),e=c(e,n,r,o,s[t+8],w,1770035416),o=c(o,e,n,r,s[t+9],y,2336552879),r=c(r,o,e,n,s[t+10],W,4294925233),n=c(n,r,o,e,s[t+11],C,2304563134),e=c(e,n,r,o,s[t+12],w,1804603682),o=c(o,e,n,r,s[t+13],y,4254626195),r=c(r,o,e,n,s[t+14],W,2792965006),n=c(n,r,o,e,s[t+15],C,1236535329),e=d(e,n,r,o,s[t+1],A,4129170786),o=d(o,e,n,r,s[t+6],U,3225465664),r=d(r,o,e,n,s[t+11],k,643717713),n=d(n,r,o,e,s[t+0],D,3921069994),e=d(e,n,r,o,s[t+5],A,3593408605),o=d(o,e,n,r,s[t+10],U,38016083),r=d(r,o,e,n,s[t+15],k,3634488961),n=d(n,r,o,e,s[t+4],D,3889429448),e=d(e,n,r,o,s[t+9],A,568446438),o=d(o,e,n,r,s[t+14],U,3275163606),r=d(r,o,e,n,s[t+3],k,4107603335),n=d(n,r,o,e,s[t+8],D,1163531501),e=d(e,n,r,o,s[t+13],A,2850285829),o=d(o,e,n,r,s[t+2],U,4243563512),r=d(r,o,e,n,s[t+7],k,1735328473),n=d(n,r,o,e,s[t+12],D,2368359562),e=m(e,n,r,o,s[t+5],B,4294588738),o=m(o,e,n,r,s[t+8],G,2272392833),r=m(r,o,e,n,s[t+11],H,1839030562),n=m(n,r,o,e,s[t+14],I,4259657740),e=m(e,n,r,o,s[t+1],B,2763975236),o=m(o,e,n,r,s[t+4],G,1272893353),r=m(r,o,e,n,s[t+7],H,4139469664),n=m(n,r,o,e,s[t+10],I,3200236656),e=m(e,n,r,o,s[t+13],B,681279174),o=m(o,e,n,r,s[t+0],G,3936430074),r=m(r,o,e,n,s[t+3],H,3572445317),n=m(n,r,o,e,s[t+6],I,76029189),e=m(e,n,r,o,s[t+9],B,3654602809),o=m(o,e,n,r,s[t+12],G,3873151461),r=m(r,o,e,n,s[t+15],H,530742520),n=m(n,r,o,e,s[t+2],I,3299628645),e=u(e,n,r,o,s[t+0],O,4096336452),o=u(o,e,n,r,s[t+7],F,1126891415),r=u(r,o,e,n,s[t+14],L,2878612391),n=u(n,r,o,e,s[t+5],P,4237533241),e=u(e,n,r,o,s[t+12],O,1700485571),o=u(o,e,n,r,s[t+3],F,2399980690),r=u(r,o,e,n,s[t+10],L,4293915773),n=u(n,r,o,e,s[t+1],P,2240044497),e=u(e,n,r,o,s[t+8],O,1873313359),o=u(o,e,n,r,s[t+15],F,4264355552),r=u(r,o,e,n,s[t+6],L,2734768916),n=u(n,r,o,e,s[t+13],P,1309151649),e=u(e,n,r,o,s[t+4],O,4149444226),o=u(o,e,n,r,s[t+11],F,3174756917),r=u(r,o,e,n,s[t+2],L,718787259),n=u(n,r,o,e,s[t+9],P,3951481745),e=i(e,l),n=i(n,a),r=i(r,f),o=i(o,p)}return v(e)+v(n)+v(r)+v(o)}function K(x,j=80){return`https://www.gravatar.com/avatar/${J(x.toLowerCase().trim())}?d=identicon&s=${j}`}function X({user:x}){const j=x.email?K(x.email):null;return h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:h.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Authenticated User"})}),h.jsx("div",{className:"p-4",children:h.jsxs("dl",{className:"divide-y-0",children:[h.jsx(_,{label:"ID",value:h.jsx("code",{className:"text-sm font-mono bg-gray-100 dark:bg-gray-800 px-2 py-0.5 rounded",children:String(x.id)})}),x.name&&h.jsx(_,{label:"Name",value:h.jsxs("span",{className:"flex items-center gap-2",children:[j&&h.jsx("img",{src:j,alt:x.name,className:"w-6 h-6 rounded-full"}),h.jsx("span",{children:x.name})]})}),x.email&&h.jsx(_,{label:"Email Address",value:h.jsx("a",{href:`mailto:${x.email}`,className:"text-indigo-600 dark:text-indigo-400 hover:underline",children:x.email})})]})})]})}export{X as U};
@@ -1 +1 @@
1
- import{j as e,F as p,C as h}from"./index-DSn-BKqm.js";import{p as i,f as j}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as g}from"./DetailRow-C0vUMqsn.js";import{C as c}from"./types-Rt2vyU68.js";import{u as b,C as f,T as N}from"./EntryDetailPage-CIQyW46e.js";import{C as u}from"./CopyButton-CVcLaHry.js";import{E as o}from"./eye-RDdYWiOL.js";import{C as y}from"./circle-check-big-pHbbgVmy.js";import{C as x}from"./circle-x-CBdlQncP.js";import"./vendor-DBTT3jXp.js";import"./search-BZHB1sYK.js";function M({entry:n}){const{payload:a,createdAt:d}=n,r=b(),t=a.status==="rendered"?{icon:y,color:"text-green-500",bg:"bg-green-100 dark:bg-green-900/30"}:{icon:x,color:"text-red-500",bg:"bg-red-100 dark:bg-red-900/30"},m=t.icon,l=[];return a.locals!==void 0&&l.push({id:"locals",label:"Locals",content:e.jsx(f,{data:a.locals,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:`p-2 ${t.bg} rounded-lg`,children:e.jsx(o,{className:`h-5 w-5 ${t.color}`})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white font-mono",children:a.template}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"View Render"})]})]}),e.jsx(u,{text:a.template,label:"Copy template"})]})}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 divide-x divide-gray-200 dark:divide-gray-700",children:[e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(p,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Format"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white font-mono",children:a.format||"HTML"})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(m,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Status"})]}),e.jsx("p",{className:`text-lg font-bold ${t.color}`,children:a.status.toUpperCase()})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(h,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Duration"})]}),e.jsxs("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:[a.duration,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(o,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Cache"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:a.cacheHit?"Yes":"No"})]})]})]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Details"})}),e.jsx("div",{className:"p-4",children:e.jsxs("dl",{className:"divide-y-0",children:[e.jsx(s,{label:"Time",value:e.jsxs("span",{children:[g(i(d),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",j(i(d),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Template",value:e.jsx("code",{className:"text-sm font-mono text-gray-900 dark:text-white",children:a.template})}),a.format&&e.jsx(s,{label:"Format",value:e.jsx(c,{listType:"views",filterType:"formats",filterValue:a.format,children:a.format})}),e.jsx(s,{label:"Status",value:e.jsx(c,{listType:"views",filterType:"statuses",filterValue:a.status,children:a.status.toUpperCase()})}),e.jsx(s,{label:"Duration",value:`${a.duration}ms`}),a.cacheHit!==void 0&&e.jsx(s,{label:"Cached",value:a.cacheHit?"Yes":"No"}),a.dataSize!==void 0&&e.jsx(s,{label:"Data Size",value:`${a.dataSize} bytes`}),a.outputSize!==void 0&&e.jsx(s,{label:"Output Size",value:`${a.outputSize} bytes`})]})})]}),a.error&&e.jsxs("div",{className:"card border-red-200 dark:border-red-800",children:[e.jsx("div",{className:"px-4 py-3 border-b border-red-200 dark:border-red-800 bg-red-50 dark:bg-red-900/20",children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(x,{className:"h-5 w-5 text-red-500"}),e.jsx("h2",{className:"text-lg font-semibold text-red-700 dark:text-red-400",children:"Error"})]})}),e.jsx("div",{className:"p-4 bg-red-50/50 dark:bg-red-900/10",children:e.jsx("pre",{className:"text-sm text-red-600 dark:text-red-400 font-mono whitespace-pre-wrap overflow-x-auto",children:a.error})})]}),l.length>0&&e.jsx(N,{tabs:l,defaultTab:"locals",hashKey:"view",headerRight:a.locals!==void 0?e.jsx(r.Toolbar,{data:a.locals}):void 0})]})}export{M as default};
1
+ import{j as e,F as p,C as h}from"./index-DOVqOa07.js";import{p as i,f as j}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as g}from"./DetailRow-CfonsGvS.js";import{C as c}from"./types-nsz9P0qo.js";import{u as b,C as f,T as N}from"./EntryDetailPage-C5QubCqk.js";import{C as u}from"./CopyButton-C2sNp4HP.js";import{E as o}from"./eye-DRW5kZff.js";import{C as y}from"./circle-check-big-DfHJ1LXS.js";import{C as x}from"./circle-x-Cgixh9fi.js";import"./vendor-DBTT3jXp.js";import"./search-DgNz5G1h.js";function M({entry:n}){const{payload:a,createdAt:d}=n,r=b(),t=a.status==="rendered"?{icon:y,color:"text-green-500",bg:"bg-green-100 dark:bg-green-900/30"}:{icon:x,color:"text-red-500",bg:"bg-red-100 dark:bg-red-900/30"},m=t.icon,l=[];return a.locals!==void 0&&l.push({id:"locals",label:"Locals",content:e.jsx(f,{data:a.locals,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:`p-2 ${t.bg} rounded-lg`,children:e.jsx(o,{className:`h-5 w-5 ${t.color}`})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white font-mono",children:a.template}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"View Render"})]})]}),e.jsx(u,{text:a.template,label:"Copy template"})]})}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 divide-x divide-gray-200 dark:divide-gray-700",children:[e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(p,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Format"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white font-mono",children:a.format||"HTML"})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(m,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Status"})]}),e.jsx("p",{className:`text-lg font-bold ${t.color}`,children:a.status.toUpperCase()})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(h,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Duration"})]}),e.jsxs("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:[a.duration,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(o,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Cache"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:a.cacheHit?"Yes":"No"})]})]})]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Details"})}),e.jsx("div",{className:"p-4",children:e.jsxs("dl",{className:"divide-y-0",children:[e.jsx(s,{label:"Time",value:e.jsxs("span",{children:[g(i(d),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",j(i(d),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Template",value:e.jsx("code",{className:"text-sm font-mono text-gray-900 dark:text-white",children:a.template})}),a.format&&e.jsx(s,{label:"Format",value:e.jsx(c,{listType:"views",filterType:"formats",filterValue:a.format,children:a.format})}),e.jsx(s,{label:"Status",value:e.jsx(c,{listType:"views",filterType:"statuses",filterValue:a.status,children:a.status.toUpperCase()})}),e.jsx(s,{label:"Duration",value:`${a.duration}ms`}),a.cacheHit!==void 0&&e.jsx(s,{label:"Cached",value:a.cacheHit?"Yes":"No"}),a.dataSize!==void 0&&e.jsx(s,{label:"Data Size",value:`${a.dataSize} bytes`}),a.outputSize!==void 0&&e.jsx(s,{label:"Output Size",value:`${a.outputSize} bytes`})]})})]}),a.error&&e.jsxs("div",{className:"card border-red-200 dark:border-red-800",children:[e.jsx("div",{className:"px-4 py-3 border-b border-red-200 dark:border-red-800 bg-red-50 dark:bg-red-900/20",children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(x,{className:"h-5 w-5 text-red-500"}),e.jsx("h2",{className:"text-lg font-semibold text-red-700 dark:text-red-400",children:"Error"})]})}),e.jsx("div",{className:"p-4 bg-red-50/50 dark:bg-red-900/10",children:e.jsx("pre",{className:"text-sm text-red-600 dark:text-red-400 font-mono whitespace-pre-wrap overflow-x-auto",children:a.error})})]}),l.length>0&&e.jsx(N,{tabs:l,defaultTab:"locals",hashKey:"view",headerRight:a.locals!==void 0?e.jsx(r.Toolbar,{data:a.locals}):void 0})]})}export{M as default};
@@ -1 +1 @@
1
- import{j as t}from"./index-DSn-BKqm.js";import{e as P,b as T}from"./vendor-DBTT3jXp.js";import{f as D,p as A}from"./badgeColors-DQ_P_DOX.js";import{u as M,P as R,N as H,L as B}from"./PageHeader-D5AT-Mxc.js";import{u as L,n as V,C as l}from"./types-Rt2vyU68.js";import{T as r,D as S,b as W}from"./DataTable-DBtrADsk.js";import{E as d}from"./eye-RDdYWiOL.js";function J(){const c=P(),{addFilter:s,clearAll:h,serverFilters:m,headerFilters:u,hasFilters:p}=L("views"),{entries:x,loading:g,refreshing:i,newEntriesCount:f,hasMore:y,loadMore:w,loadNew:j,autoRefreshEnabled:C,live:k,setAutoRefresh:N,meta:o,isHighlighted:v}=M({type:"view",limit:50,filters:m}),n=x.filter(e=>V(e)),E=T.useMemo(()=>[{key:"template",header:"Template",minWidth:"250px",render:e=>t.jsx(r,{mono:!0,truncate:!0,maxWidth:"350px",children:e.payload.template})},{key:"format",header:"Format",width:"100px",render:e=>{const a=e.payload.format;return a?t.jsx(l,{onClick:F=>{F.stopPropagation(),s("formats",a)},className:"font-mono",children:a}):t.jsx(r,{secondary:!0,children:"-"})}},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(S,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),s("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"cache",header:"Cache",width:"80px",align:"center",render:e=>e.payload.cacheHit!==void 0?t.jsx(r,{children:e.payload.cacheHit?"Yes":"No"}):t.jsx(r,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(r,{secondary:!0,className:"text-xs",children:D(A(e.createdAt),{addSuffix:!0})})}],[s]);if(g&&n.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const b=p?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(R,{title:"Views",icon:d,iconColor:"text-teal-600 dark:text-teal-400",count:n.length,totalCount:o==null?void 0:o.total,refreshing:i,autoRefreshEnabled:C,live:k,onAutoRefreshToggle:N,filters:u,onClearAllFilters:h}),t.jsxs("div",{className:`${b} space-y-4 transition-all duration-200`,children:[t.jsx(H,{count:f,onClick:j,loading:i}),t.jsx(W,{columns:E,data:n,keyExtractor:e=>e.id,onRowClick:e=>c(`/views/${e.id}`),rowClassName:e=>v(e.id)?"highlight-new":"",emptyMessage:"No view renders recorded yet",emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(B,{hasMore:y,onClick:w,loading:i})]})]})}export{J as default};
1
+ import{j as t}from"./index-DOVqOa07.js";import{e as P,b as T}from"./vendor-DBTT3jXp.js";import{f as D,p as A}from"./badgeColors-DQ_P_DOX.js";import{u as M,P as R,N as H,L as B}from"./PageHeader-CIBDYg8j.js";import{u as L,n as V,C as l}from"./types-nsz9P0qo.js";import{T as r,D as S,b as W}from"./DataTable-PCSvmOPj.js";import{E as d}from"./eye-DRW5kZff.js";function J(){const c=P(),{addFilter:s,clearAll:h,serverFilters:m,headerFilters:u,hasFilters:p}=L("views"),{entries:x,loading:g,refreshing:i,newEntriesCount:f,hasMore:y,loadMore:w,loadNew:j,autoRefreshEnabled:C,live:k,setAutoRefresh:N,meta:o,isHighlighted:v}=M({type:"view",limit:50,filters:m}),n=x.filter(e=>V(e)),E=T.useMemo(()=>[{key:"template",header:"Template",minWidth:"250px",render:e=>t.jsx(r,{mono:!0,truncate:!0,maxWidth:"350px",children:e.payload.template})},{key:"format",header:"Format",width:"100px",render:e=>{const a=e.payload.format;return a?t.jsx(l,{onClick:F=>{F.stopPropagation(),s("formats",a)},className:"font-mono",children:a}):t.jsx(r,{secondary:!0,children:"-"})}},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(S,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),s("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"cache",header:"Cache",width:"80px",align:"center",render:e=>e.payload.cacheHit!==void 0?t.jsx(r,{children:e.payload.cacheHit?"Yes":"No"}):t.jsx(r,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(r,{secondary:!0,className:"text-xs",children:D(A(e.createdAt),{addSuffix:!0})})}],[s]);if(g&&n.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const b=p?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(R,{title:"Views",icon:d,iconColor:"text-teal-600 dark:text-teal-400",count:n.length,totalCount:o==null?void 0:o.total,refreshing:i,autoRefreshEnabled:C,live:k,onAutoRefreshToggle:N,filters:u,onClearAllFilters:h}),t.jsxs("div",{className:`${b} space-y-4 transition-all duration-200`,children:[t.jsx(H,{count:f,onClick:j,loading:i}),t.jsx(W,{columns:E,data:n,keyExtractor:e=>e.id,onRowClick:e=>c(`/views/${e.id}`),rowClassName:e=>v(e.id)?"highlight-new":"",emptyMessage:"No view renders recorded yet",emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(B,{hasMore:y,onClick:w,loading:i})]})]})}export{J as default};
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-DSn-BKqm.js";/**
1
+ import{c as e}from"./index-DOVqOa07.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-DSn-BKqm.js";/**
1
+ import{c as e}from"./index-DOVqOa07.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-DSn-BKqm.js";/**
1
+ import{c}from"./index-DOVqOa07.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-DSn-BKqm.js";/**
1
+ import{c}from"./index-DOVqOa07.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-DSn-BKqm.js";/**
1
+ import{c}from"./index-DOVqOa07.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1,361 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DashboardPage-wUYPGV_y.js","./vendor-DBTT3jXp.js","./badgeColors-DQ_P_DOX.js","./zap-BolYLTQe.js","./calendar-BMPz0Z6s.js","./RequestsPage-B2dLu5n_.js","./PageHeader-CIBDYg8j.js","./types-nsz9P0qo.js","./EntrySearchInput-DLuCL4Ys.js","./search-DgNz5G1h.js","./DataTable-PCSvmOPj.js","./QueriesPage-DzWPvH8G.js","./ExceptionsPage-D6ww4tft.js","./circle-check-big-DfHJ1LXS.js","./LogsPage-CELJRQdo.js","./EventsPage-CA-mVFw2.js","./JobsPage-C7MOQ5N5.js","./CachePage-D-LhEY8p.js","./MailPage-CPmDY6cW.js","./SchedulePage-CZ_j6ucP.js","./format-BlNP-apw.js","./HttpClientPage-Dz07Icgz.js","./RedisPage-pBNy_8Qd.js","./ModelsPage-Bi2hB6U7.js","./NotificationsPage-Bn3roYs1.js","./ViewsPage-Bvm7RI_3.js","./eye-DRW5kZff.js","./CommandsPage-BtMSnG2A.js","./GatesPage-CuEy3xE1.js","./BatchesPage-BrvAux3V.js","./DumpsPage-jeUeiAuN.js","./GraphQLPage-D4vF4fhg.js","./EntryDetailPage-C5QubCqk.js"])))=>i.map(i=>d[i]);
2
+ var Pe=Object.defineProperty;var Ce=(s,a,e)=>a in s?Pe(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e;var z=(s,a,e)=>Ce(s,typeof a!="symbol"?a+"":a,e);import{r as Re,a as Le,g as Te,b as r,u as Ae,L as D,O as Oe,R as De,c as p,N as Me,d as qe,B as $e}from"./vendor-DBTT3jXp.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const n of o.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function e(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=e(l);fetch(l.href,o)}})();var G={exports:{}},M={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Z;function ze(){if(Z)return M;Z=1;var s=Re(),a=Symbol.for("react.element"),e=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function n(c,u,x){var d,h={},y=null,j=null;x!==void 0&&(y=""+x),u.key!==void 0&&(y=""+u.key),u.ref!==void 0&&(j=u.ref);for(d in u)i.call(u,d)&&!o.hasOwnProperty(d)&&(h[d]=u[d]);if(c&&c.defaultProps)for(d in u=c.defaultProps,u)h[d]===void 0&&(h[d]=u[d]);return{$$typeof:a,type:c,key:y,ref:j,props:h,_owner:l.current}}return M.Fragment=e,M.jsx=n,M.jsxs=n,M}var X;function Ie(){return X||(X=1,G.exports=ze()),G.exports}var t=Ie(),I={},Y;function Ke(){if(Y)return I;Y=1;var s=Le();return I.createRoot=s.createRoot,I.hydrateRoot=s.hydrateRoot,I}var Ve=Ke();const Be=Te(Ve);let Fe={data:""},He=s=>{if(typeof window=="object"){let a=(s?s.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return a.nonce=window.__nonce__,a.parentNode||(s||document.head).appendChild(a),a.firstChild}return s||Fe},Ge=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ue=/\/\*[^]*?\*\/| +/g,ee=/\n+/g,A=(s,a)=>{let e="",i="",l="";for(let o in s){let n=s[o];o[0]=="@"?o[1]=="i"?e=o+" "+n+";":i+=o[1]=="f"?A(n,o):o+"{"+A(n,o[1]=="k"?"":a)+"}":typeof n=="object"?i+=A(n,a?a.replace(/([^,])+/g,c=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,c):c?c+" "+u:u)):o):n!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=A.p?A.p(o,n):o+":"+n+";")}return e+(a&&l?a+"{"+l+"}":l)+i},L={},pe=s=>{if(typeof s=="object"){let a="";for(let e in s)a+=e+pe(s[e]);return a}return s},Je=(s,a,e,i,l)=>{let o=pe(s),n=L[o]||(L[o]=(u=>{let x=0,d=11;for(;x<u.length;)d=101*d+u.charCodeAt(x++)>>>0;return"go"+d})(o));if(!L[n]){let u=o!==s?s:(x=>{let d,h,y=[{}];for(;d=Ge.exec(x.replace(Ue,""));)d[4]?y.shift():d[3]?(h=d[3].replace(ee," ").trim(),y.unshift(y[0][h]=y[0][h]||{})):y[0][d[1]]=d[2].replace(ee," ").trim();return y[0]})(s);L[n]=A(l?{["@keyframes "+n]:u}:u,e?"":"."+n)}let c=e&&L.g?L.g:null;return e&&(L.g=L[n]),((u,x,d,h)=>{h?x.data=x.data.replace(h,u):x.data.indexOf(u)===-1&&(x.data=d?u+x.data:x.data+u)})(L[n],a,i,c),n},We=(s,a,e)=>s.reduce((i,l,o)=>{let n=a[o];if(n&&n.call){let c=n(e),u=c&&c.props&&c.props.className||/^go/.test(c)&&c;n=u?"."+u:c&&typeof c=="object"?c.props?"":A(c,""):c===!1?"":c}return i+l+(n??"")},"");function F(s){let a=this||{},e=s.call?s(a.p):s;return Je(e.unshift?e.raw?We(e,[].slice.call(arguments,1),a.p):e.reduce((i,l)=>Object.assign(i,l&&l.call?l(a.p):l),{}):e,He(a.target),a.g,a.o,a.k)}let xe,J,W;F.bind({g:1});let T=F.bind({k:1});function Qe(s,a,e,i){A.p=a,xe=s,J=e,W=i}function O(s,a){let e=this||{};return function(){let i=arguments;function l(o,n){let c=Object.assign({},o),u=c.className||l.className;e.p=Object.assign({theme:J&&J()},c),e.o=/ *go\d+/.test(u),c.className=F.apply(e,i)+(u?" "+u:"");let x=s;return s[0]&&(x=c.as||s,delete c.as),W&&x[0]&&W(c),xe(x,c)}return l}}var Ze=s=>typeof s=="function",B=(s,a)=>Ze(s)?s(a):s,Xe=(()=>{let s=0;return()=>(++s).toString()})(),fe=(()=>{let s;return()=>{if(s===void 0&&typeof window<"u"){let a=matchMedia("(prefers-reduced-motion: reduce)");s=!a||a.matches}return s}})(),Ye=20,Q="default",ye=(s,a)=>{let{toastLimit:e}=s.settings;switch(a.type){case 0:return{...s,toasts:[a.toast,...s.toasts].slice(0,e)};case 1:return{...s,toasts:s.toasts.map(n=>n.id===a.toast.id?{...n,...a.toast}:n)};case 2:let{toast:i}=a;return ye(s,{type:s.toasts.find(n=>n.id===i.id)?1:0,toast:i});case 3:let{toastId:l}=a;return{...s,toasts:s.toasts.map(n=>n.id===l||l===void 0?{...n,dismissed:!0,visible:!1}:n)};case 4:return a.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(n=>n.id!==a.toastId)};case 5:return{...s,pausedAt:a.time};case 6:let o=a.time-(s.pausedAt||0);return{...s,pausedAt:void 0,toasts:s.toasts.map(n=>({...n,pauseDuration:n.pauseDuration+o}))}}},V=[],ge={toasts:[],pausedAt:void 0,settings:{toastLimit:Ye}},R={},je=(s,a=Q)=>{R[a]=ye(R[a]||ge,s),V.forEach(([e,i])=>{e===a&&i(R[a])})},be=s=>Object.keys(R).forEach(a=>je(s,a)),et=s=>Object.keys(R).find(a=>R[a].toasts.some(e=>e.id===s)),H=(s=Q)=>a=>{je(a,s)},tt={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},st=(s={},a=Q)=>{let[e,i]=r.useState(R[a]||ge),l=r.useRef(R[a]);r.useEffect(()=>(l.current!==R[a]&&i(R[a]),V.push([a,i]),()=>{let n=V.findIndex(([c])=>c===a);n>-1&&V.splice(n,1)}),[a]);let o=e.toasts.map(n=>{var c,u,x;return{...s,...s[n.type],...n,removeDelay:n.removeDelay||((c=s[n.type])==null?void 0:c.removeDelay)||(s==null?void 0:s.removeDelay),duration:n.duration||((u=s[n.type])==null?void 0:u.duration)||(s==null?void 0:s.duration)||tt[n.type],style:{...s.style,...(x=s[n.type])==null?void 0:x.style,...n.style}}});return{...e,toasts:o}},at=(s,a="blank",e)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:a,ariaProps:{role:"status","aria-live":"polite"},message:s,pauseDuration:0,...e,id:(e==null?void 0:e.id)||Xe()}),$=s=>(a,e)=>{let i=at(a,s,e);return H(i.toasterId||et(i.id))({type:2,toast:i}),i.id},_=(s,a)=>$("blank")(s,a);_.error=$("error");_.success=$("success");_.loading=$("loading");_.custom=$("custom");_.dismiss=(s,a)=>{let e={type:3,toastId:s};a?H(a)(e):be(e)};_.dismissAll=s=>_.dismiss(void 0,s);_.remove=(s,a)=>{let e={type:4,toastId:s};a?H(a)(e):be(e)};_.removeAll=s=>_.remove(void 0,s);_.promise=(s,a,e)=>{let i=_.loading(a.loading,{...e,...e==null?void 0:e.loading});return typeof s=="function"&&(s=s()),s.then(l=>{let o=a.success?B(a.success,l):void 0;return o?_.success(o,{id:i,...e,...e==null?void 0:e.success}):_.dismiss(i),l}).catch(l=>{let o=a.error?B(a.error,l):void 0;o?_.error(o,{id:i,...e,...e==null?void 0:e.error}):_.dismiss(i)}),s};var rt=1e3,nt=(s,a="default")=>{let{toasts:e,pausedAt:i}=st(s,a),l=r.useRef(new Map).current,o=r.useCallback((h,y=rt)=>{if(l.has(h))return;let j=setTimeout(()=>{l.delete(h),n({type:4,toastId:h})},y);l.set(h,j)},[]);r.useEffect(()=>{if(i)return;let h=Date.now(),y=e.map(j=>{if(j.duration===1/0)return;let k=(j.duration||0)+j.pauseDuration-(h-j.createdAt);if(k<0){j.visible&&_.dismiss(j.id);return}return setTimeout(()=>_.dismiss(j.id,a),k)});return()=>{y.forEach(j=>j&&clearTimeout(j))}},[e,i,a]);let n=r.useCallback(H(a),[a]),c=r.useCallback(()=>{n({type:5,time:Date.now()})},[n]),u=r.useCallback((h,y)=>{n({type:1,toast:{id:h,height:y}})},[n]),x=r.useCallback(()=>{i&&n({type:6,time:Date.now()})},[i,n]),d=r.useCallback((h,y)=>{let{reverseOrder:j=!1,gutter:k=8,defaultPosition:m}=y||{},w=e.filter(N=>(N.position||m)===(h.position||m)&&N.height),E=w.findIndex(N=>N.id===h.id),b=w.filter((N,C)=>C<E&&N.visible).length;return w.filter(N=>N.visible).slice(...j?[b+1]:[0,b]).reduce((N,C)=>N+(C.height||0)+k,0)},[e]);return r.useEffect(()=>{e.forEach(h=>{if(h.dismissed)o(h.id,h.removeDelay);else{let y=l.get(h.id);y&&(clearTimeout(y),l.delete(h.id))}})},[e,o]),{toasts:e,handlers:{updateHeight:u,startPause:c,endPause:x,calculateOffset:d}}},ot=T`
11
+ from {
12
+ transform: scale(0) rotate(45deg);
13
+ opacity: 0;
14
+ }
15
+ to {
16
+ transform: scale(1) rotate(45deg);
17
+ opacity: 1;
18
+ }`,it=T`
19
+ from {
20
+ transform: scale(0);
21
+ opacity: 0;
22
+ }
23
+ to {
24
+ transform: scale(1);
25
+ opacity: 1;
26
+ }`,lt=T`
27
+ from {
28
+ transform: scale(0) rotate(90deg);
29
+ opacity: 0;
30
+ }
31
+ to {
32
+ transform: scale(1) rotate(90deg);
33
+ opacity: 1;
34
+ }`,ct=O("div")`
35
+ width: 20px;
36
+ opacity: 0;
37
+ height: 20px;
38
+ border-radius: 10px;
39
+ background: ${s=>s.primary||"#ff4b4b"};
40
+ position: relative;
41
+ transform: rotate(45deg);
42
+
43
+ animation: ${ot} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
44
+ forwards;
45
+ animation-delay: 100ms;
46
+
47
+ &:after,
48
+ &:before {
49
+ content: '';
50
+ animation: ${it} 0.15s ease-out forwards;
51
+ animation-delay: 150ms;
52
+ position: absolute;
53
+ border-radius: 3px;
54
+ opacity: 0;
55
+ background: ${s=>s.secondary||"#fff"};
56
+ bottom: 9px;
57
+ left: 4px;
58
+ height: 2px;
59
+ width: 12px;
60
+ }
61
+
62
+ &:before {
63
+ animation: ${lt} 0.15s ease-out forwards;
64
+ animation-delay: 180ms;
65
+ transform: rotate(90deg);
66
+ }
67
+ `,dt=T`
68
+ from {
69
+ transform: rotate(0deg);
70
+ }
71
+ to {
72
+ transform: rotate(360deg);
73
+ }
74
+ `,ut=O("div")`
75
+ width: 12px;
76
+ height: 12px;
77
+ box-sizing: border-box;
78
+ border: 2px solid;
79
+ border-radius: 100%;
80
+ border-color: ${s=>s.secondary||"#e0e0e0"};
81
+ border-right-color: ${s=>s.primary||"#616161"};
82
+ animation: ${dt} 1s linear infinite;
83
+ `,ht=T`
84
+ from {
85
+ transform: scale(0) rotate(45deg);
86
+ opacity: 0;
87
+ }
88
+ to {
89
+ transform: scale(1) rotate(45deg);
90
+ opacity: 1;
91
+ }`,mt=T`
92
+ 0% {
93
+ height: 0;
94
+ width: 0;
95
+ opacity: 0;
96
+ }
97
+ 40% {
98
+ height: 0;
99
+ width: 6px;
100
+ opacity: 1;
101
+ }
102
+ 100% {
103
+ opacity: 1;
104
+ height: 10px;
105
+ }`,pt=O("div")`
106
+ width: 20px;
107
+ opacity: 0;
108
+ height: 20px;
109
+ border-radius: 10px;
110
+ background: ${s=>s.primary||"#61d345"};
111
+ position: relative;
112
+ transform: rotate(45deg);
113
+
114
+ animation: ${ht} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
115
+ forwards;
116
+ animation-delay: 100ms;
117
+ &:after {
118
+ content: '';
119
+ box-sizing: border-box;
120
+ animation: ${mt} 0.2s ease-out forwards;
121
+ opacity: 0;
122
+ animation-delay: 200ms;
123
+ position: absolute;
124
+ border-right: 2px solid;
125
+ border-bottom: 2px solid;
126
+ border-color: ${s=>s.secondary||"#fff"};
127
+ bottom: 6px;
128
+ left: 6px;
129
+ height: 10px;
130
+ width: 6px;
131
+ }
132
+ `,xt=O("div")`
133
+ position: absolute;
134
+ `,ft=O("div")`
135
+ position: relative;
136
+ display: flex;
137
+ justify-content: center;
138
+ align-items: center;
139
+ min-width: 20px;
140
+ min-height: 20px;
141
+ `,yt=T`
142
+ from {
143
+ transform: scale(0.6);
144
+ opacity: 0.4;
145
+ }
146
+ to {
147
+ transform: scale(1);
148
+ opacity: 1;
149
+ }`,gt=O("div")`
150
+ position: relative;
151
+ transform: scale(0.6);
152
+ opacity: 0.4;
153
+ min-width: 20px;
154
+ animation: ${yt} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
155
+ forwards;
156
+ `,jt=({toast:s})=>{let{icon:a,type:e,iconTheme:i}=s;return a!==void 0?typeof a=="string"?r.createElement(gt,null,a):a:e==="blank"?null:r.createElement(ft,null,r.createElement(ut,{...i}),e!=="loading"&&r.createElement(xt,null,e==="error"?r.createElement(ct,{...i}):r.createElement(pt,{...i})))},bt=s=>`
157
+ 0% {transform: translate3d(0,${s*-200}%,0) scale(.6); opacity:.5;}
158
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
159
+ `,kt=s=>`
160
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
161
+ 100% {transform: translate3d(0,${s*-150}%,-1px) scale(.6); opacity:0;}
162
+ `,vt="0%{opacity:0;} 100%{opacity:1;}",wt="0%{opacity:1;} 100%{opacity:0;}",St=O("div")`
163
+ display: flex;
164
+ align-items: center;
165
+ background: #fff;
166
+ color: #363636;
167
+ line-height: 1.3;
168
+ will-change: transform;
169
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
170
+ max-width: 350px;
171
+ pointer-events: auto;
172
+ padding: 8px 10px;
173
+ border-radius: 8px;
174
+ `,_t=O("div")`
175
+ display: flex;
176
+ justify-content: center;
177
+ margin: 4px 10px;
178
+ color: inherit;
179
+ flex: 1 1 auto;
180
+ white-space: pre-line;
181
+ `,Et=(s,a)=>{let e=s.includes("top")?1:-1,[i,l]=fe()?[vt,wt]:[bt(e),kt(e)];return{animation:a?`${T(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${T(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Nt=r.memo(({toast:s,position:a,style:e,children:i})=>{let l=s.height?Et(s.position||a||"top-center",s.visible):{opacity:0},o=r.createElement(jt,{toast:s}),n=r.createElement(_t,{...s.ariaProps},B(s.message,s));return r.createElement(St,{className:s.className,style:{...l,...e,...s.style}},typeof i=="function"?i({icon:o,message:n}):r.createElement(r.Fragment,null,o,n))});Qe(r.createElement);var Pt=({id:s,className:a,style:e,onHeightUpdate:i,children:l})=>{let o=r.useCallback(n=>{if(n){let c=()=>{let u=n.getBoundingClientRect().height;i(s,u)};c(),new MutationObserver(c).observe(n,{subtree:!0,childList:!0,characterData:!0})}},[s,i]);return r.createElement("div",{ref:o,className:a,style:e},l)},Ct=(s,a)=>{let e=s.includes("top"),i=e?{top:0}:{bottom:0},l=s.includes("center")?{justifyContent:"center"}:s.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:fe()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${a*(e?1:-1)}px)`,...i,...l}},Rt=F`
182
+ z-index: 9999;
183
+ > * {
184
+ pointer-events: auto;
185
+ }
186
+ `,K=16,Lt=({reverseOrder:s,position:a="top-center",toastOptions:e,gutter:i,children:l,toasterId:o,containerStyle:n,containerClassName:c})=>{let{toasts:u,handlers:x}=nt(e,o);return r.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:K,left:K,right:K,bottom:K,pointerEvents:"none",...n},className:c,onMouseEnter:x.startPause,onMouseLeave:x.endPause},u.map(d=>{let h=d.position||a,y=x.calculateOffset(d,{reverseOrder:s,gutter:i,defaultPosition:a}),j=Ct(h,y);return r.createElement(Pt,{id:d.id,key:d.id,onHeightUpdate:x.updateHeight,className:d.visible?Rt:"",style:j},d.type==="custom"?B(d.message,d):l?l(d):r.createElement(Nt,{toast:d,position:h}))}))},q=_;const Tt="modulepreload",At=function(s,a){return new URL(s,a).href},te={},v=function(a,e,i){let l=Promise.resolve();if(e&&e.length>0){let n=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const c=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),x=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));l=n(e.map(d=>{if(d=At(d,i),d in te)return;te[d]=!0;const h=d.endsWith(".css"),y=h?'[rel="stylesheet"]':"";if(!!i)for(let m=c.length-1;m>=0;m--){const w=c[m];if(w.href===d&&(!h||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${y}`))return;const k=document.createElement("link");if(k.rel=h?"stylesheet":Tt,h||(k.as="script"),k.crossOrigin="",k.href=d,x&&k.setAttribute("nonce",x),document.head.appendChild(k),h)return new Promise((m,w)=>{k.addEventListener("load",m),k.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(n){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=n,window.dispatchEvent(c),!c.defaultPrevented)throw n}return l.then(n=>{for(const c of n||[])c.status==="rejected"&&o(c.reason);return a().catch(o)})};/**
187
+ * @license lucide-react v0.468.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const Ot=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ke=(...s)=>s.filter((a,e,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===e).join(" ").trim();/**
192
+ * @license lucide-react v0.468.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */var Dt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
197
+ * @license lucide-react v0.468.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const Mt=r.forwardRef(({color:s="currentColor",size:a=24,strokeWidth:e=2,absoluteStrokeWidth:i,className:l="",children:o,iconNode:n,...c},u)=>r.createElement("svg",{ref:u,...Dt,width:a,height:a,stroke:s,strokeWidth:i?Number(e)*24/Number(a):e,className:ke("lucide",l),...c},[...n.map(([x,d])=>r.createElement(x,d)),...Array.isArray(o)?o:[o]]));/**
202
+ * @license lucide-react v0.468.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const g=(s,a)=>{const e=r.forwardRef(({className:i,...l},o)=>r.createElement(Mt,{ref:o,iconNode:a,className:ke(`lucide-${Ot(s)}`,i),...l}));return e.displayName=`${s}`,e};/**
207
+ * @license lucide-react v0.468.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const qt=g("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
212
+ * @license lucide-react v0.468.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const $t=g("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
217
+ * @license lucide-react v0.468.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const zt=g("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
222
+ * @license lucide-react v0.468.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const It=g("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
227
+ * @license lucide-react v0.468.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const se=g("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
232
+ * @license lucide-react v0.468.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const ae=g("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
237
+ * @license lucide-react v0.468.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const Kt=g("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
242
+ * @license lucide-react v0.468.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const Vt=g("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
247
+ * @license lucide-react v0.468.0 - ISC
248
+ *
249
+ * This source code is licensed under the ISC license.
250
+ * See the LICENSE file in the root directory of this source tree.
251
+ */const re=g("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
252
+ * @license lucide-react v0.468.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */const Bt=g("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
257
+ * @license lucide-react v0.468.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const Ft=g("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
262
+ * @license lucide-react v0.468.0 - ISC
263
+ *
264
+ * This source code is licensed under the ISC license.
265
+ * See the LICENSE file in the root directory of this source tree.
266
+ */const Ht=g("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
267
+ * @license lucide-react v0.468.0 - ISC
268
+ *
269
+ * This source code is licensed under the ISC license.
270
+ * See the LICENSE file in the root directory of this source tree.
271
+ */const ne=g("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
272
+ * @license lucide-react v0.468.0 - ISC
273
+ *
274
+ * This source code is licensed under the ISC license.
275
+ * See the LICENSE file in the root directory of this source tree.
276
+ */const Gt=g("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
277
+ * @license lucide-react v0.468.0 - ISC
278
+ *
279
+ * This source code is licensed under the ISC license.
280
+ * See the LICENSE file in the root directory of this source tree.
281
+ */const Ut=g("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
282
+ * @license lucide-react v0.468.0 - ISC
283
+ *
284
+ * This source code is licensed under the ISC license.
285
+ * See the LICENSE file in the root directory of this source tree.
286
+ */const Jt=g("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
287
+ * @license lucide-react v0.468.0 - ISC
288
+ *
289
+ * This source code is licensed under the ISC license.
290
+ * See the LICENSE file in the root directory of this source tree.
291
+ */const Wt=g("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
292
+ * @license lucide-react v0.468.0 - ISC
293
+ *
294
+ * This source code is licensed under the ISC license.
295
+ * See the LICENSE file in the root directory of this source tree.
296
+ */const oe=g("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
297
+ * @license lucide-react v0.468.0 - ISC
298
+ *
299
+ * This source code is licensed under the ISC license.
300
+ * See the LICENSE file in the root directory of this source tree.
301
+ */const Qt=g("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
302
+ * @license lucide-react v0.468.0 - ISC
303
+ *
304
+ * This source code is licensed under the ISC license.
305
+ * See the LICENSE file in the root directory of this source tree.
306
+ */const Zt=g("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
307
+ * @license lucide-react v0.468.0 - ISC
308
+ *
309
+ * This source code is licensed under the ISC license.
310
+ * See the LICENSE file in the root directory of this source tree.
311
+ */const Xt=g("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
312
+ * @license lucide-react v0.468.0 - ISC
313
+ *
314
+ * This source code is licensed under the ISC license.
315
+ * See the LICENSE file in the root directory of this source tree.
316
+ */const Yt=g("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
317
+ * @license lucide-react v0.468.0 - ISC
318
+ *
319
+ * This source code is licensed under the ISC license.
320
+ * See the LICENSE file in the root directory of this source tree.
321
+ */const es=g("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
322
+ * @license lucide-react v0.468.0 - ISC
323
+ *
324
+ * This source code is licensed under the ISC license.
325
+ * See the LICENSE file in the root directory of this source tree.
326
+ */const ts=g("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
327
+ * @license lucide-react v0.468.0 - ISC
328
+ *
329
+ * This source code is licensed under the ISC license.
330
+ * See the LICENSE file in the root directory of this source tree.
331
+ */const ss=g("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
332
+ * @license lucide-react v0.468.0 - ISC
333
+ *
334
+ * This source code is licensed under the ISC license.
335
+ * See the LICENSE file in the root directory of this source tree.
336
+ */const ie=g("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
337
+ * @license lucide-react v0.468.0 - ISC
338
+ *
339
+ * This source code is licensed under the ISC license.
340
+ * See the LICENSE file in the root directory of this source tree.
341
+ */const U=g("Telescope",[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]);/**
342
+ * @license lucide-react v0.468.0 - ISC
343
+ *
344
+ * This source code is licensed under the ISC license.
345
+ * See the LICENSE file in the root directory of this source tree.
346
+ */const as=g("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
347
+ * @license lucide-react v0.468.0 - ISC
348
+ *
349
+ * This source code is licensed under the ISC license.
350
+ * See the LICENSE file in the root directory of this source tree.
351
+ */const le=g("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
352
+ * @license lucide-react v0.468.0 - ISC
353
+ *
354
+ * This source code is licensed under the ISC license.
355
+ * See the LICENSE file in the root directory of this source tree.
356
+ */const ve=g("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
357
+ * @license lucide-react v0.468.0 - ISC
358
+ *
359
+ * This source code is licensed under the ISC license.
360
+ * See the LICENSE file in the root directory of this source tree.
361
+ */const rs=g("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),we=()=>window.__NESTLENS_BASE__??"",ns=s=>`${window.location.origin}${we()}/__nestlens__${s}`,Se=ns("/api");async function P(s,a){const e=await fetch(`${Se}${s}`,a);if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function $s(s){return P(`/entries/${s}`)}async function ce(){return P("/stats")}async function os(){return(await fetch(`${Se}/entries`,{method:"DELETE"})).json()}async function zs(s){const a=new URLSearchParams;if(s.type&&a.set("type",s.type),s.limit&&a.set("limit",s.limit.toString()),s.beforeSequence!==void 0&&a.set("beforeSequence",s.beforeSequence.toString()),s.afterSequence!==void 0&&a.set("afterSequence",s.afterSequence.toString()),s.filters){const e=s.filters;e.levels&&e.levels.length>0&&a.set("levels",e.levels.join(",")),e.contexts&&e.contexts.length>0&&a.set("contexts",e.contexts.join(",")),e.queryTypes&&e.queryTypes.length>0&&a.set("queryTypes",e.queryTypes.join(",")),e.sources&&e.sources.length>0&&a.set("sources",e.sources.join(",")),e.slow!==void 0&&a.set("slow",e.slow.toString()),e.names&&e.names.length>0&&a.set("names",e.names.join(",")),e.methods&&e.methods.length>0&&a.set("methods",e.methods.join(",")),e.paths&&e.paths.length>0&&a.set("paths",e.paths.join(",")),e.resolved!==void 0&&a.set("resolved",e.resolved.toString()),e.statuses&&e.statuses.length>0&&a.set("statuses",e.statuses.join(",")),e.hostnames&&e.hostnames.length>0&&a.set("hostnames",e.hostnames.join(",")),e.controllers&&e.controllers.length>0&&a.set("controllers",e.controllers.join(",")),e.ips&&e.ips.length>0&&a.set("ips",e.ips.join(",")),e.eventNames&&e.eventNames.length>0&&a.set("eventNames",e.eventNames.join(",")),e.scheduleStatuses&&e.scheduleStatuses.length>0&&a.set("scheduleStatuses",e.scheduleStatuses.join(",")),e.scheduleNames&&e.scheduleNames.length>0&&a.set("scheduleNames",e.scheduleNames.join(",")),e.jobStatuses&&e.jobStatuses.length>0&&a.set("jobStatuses",e.jobStatuses.join(",")),e.jobNames&&e.jobNames.length>0&&a.set("jobNames",e.jobNames.join(",")),e.queues&&e.queues.length>0&&a.set("queues",e.queues.join(",")),e.cacheOperations&&e.cacheOperations.length>0&&a.set("cacheOperations",e.cacheOperations.join(",")),e.mailStatuses&&e.mailStatuses.length>0&&a.set("mailStatuses",e.mailStatuses.join(",")),e.redisStatuses&&e.redisStatuses.length>0&&a.set("redisStatuses",e.redisStatuses.join(",")),e.redisCommands&&e.redisCommands.length>0&&a.set("redisCommands",e.redisCommands.join(",")),e.modelActions&&e.modelActions.length>0&&a.set("modelActions",e.modelActions.join(",")),e.entities&&e.entities.length>0&&a.set("entities",e.entities.join(",")),e.modelSources&&e.modelSources.length>0&&a.set("modelSources",e.modelSources.join(",")),e.notificationTypes&&e.notificationTypes.length>0&&a.set("notificationTypes",e.notificationTypes.join(",")),e.notificationStatuses&&e.notificationStatuses.length>0&&a.set("notificationStatuses",e.notificationStatuses.join(",")),e.viewFormats&&e.viewFormats.length>0&&a.set("viewFormats",e.viewFormats.join(",")),e.viewStatuses&&e.viewStatuses.length>0&&a.set("viewStatuses",e.viewStatuses.join(",")),e.commandStatuses&&e.commandStatuses.length>0&&a.set("commandStatuses",e.commandStatuses.join(",")),e.commandNames&&e.commandNames.length>0&&a.set("commandNames",e.commandNames.join(",")),e.gateNames&&e.gateNames.length>0&&a.set("gateNames",e.gateNames.join(",")),e.gateResults&&e.gateResults.length>0&&a.set("gateResults",e.gateResults.join(",")),e.batchStatuses&&e.batchStatuses.length>0&&a.set("batchStatuses",e.batchStatuses.join(",")),e.batchOperations&&e.batchOperations.length>0&&a.set("batchOperations",e.batchOperations.join(",")),e.dumpStatuses&&e.dumpStatuses.length>0&&a.set("dumpStatuses",e.dumpStatuses.join(",")),e.dumpOperations&&e.dumpOperations.length>0&&a.set("dumpOperations",e.dumpOperations.join(",")),e.dumpFormats&&e.dumpFormats.length>0&&a.set("dumpFormats",e.dumpFormats.join(",")),e.operationTypes&&e.operationTypes.length>0&&a.set("operationTypes",e.operationTypes.join(",")),e.operationNames&&e.operationNames.length>0&&a.set("operationNames",e.operationNames.join(",")),e.hasErrors!==void 0&&a.set("hasErrors",e.hasErrors.toString()),e.hasN1!==void 0&&a.set("hasN1",e.hasN1.toString()),e.tags&&e.tags.length>0&&a.set("tags",e.tags.join(",")),e.search&&a.set("search",e.search)}return P(`/entries/cursor?${a.toString()}`)}async function Is(s){const a=new URLSearchParams;return s&&a.set("type",s),P(`/entries/latest-sequence?${a.toString()}`)}async function Ks(s,a){const e=new URLSearchParams;return e.set("afterSequence",s.toString()),a&&e.set("type",a),P(`/entries/check-new?${e.toString()}`)}async function Vs(){return P("/storage/stats")}async function Bs(){return P("/pruning/status")}async function Fs(){return P("/pruning/run",{method:"POST"})}async function Hs(s){return P(`/entries/${s}/resolve`,{method:"PATCH"})}async function Gs(s){return P(`/entries/${s}/unresolve`,{method:"PATCH"})}async function is(s){return P("/recording/pause",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:s})})}async function ls(){return P("/recording/resume",{method:"POST"})}async function cs(){return P("/recording/status")}function ds(s){const a=r.useCallback(e=>{const i=e.target,l=i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.isContentEditable;for(const o of s){const{key:n,ctrl:c,meta:u,shift:x,alt:d,handler:h,preventDefault:y=!0}=o;if(l&&n.toLowerCase()!=="escape")continue;const j=e.key.toLowerCase()===n.toLowerCase(),k=x?e.shiftKey:!e.shiftKey,m=d?e.altKey:!e.altKey;if(c){if((e.ctrlKey||e.metaKey)&&j&&k&&m){y&&e.preventDefault(),h(e);return}continue}if(u){if(e.metaKey&&!e.ctrlKey&&j&&k&&m){y&&e.preventDefault(),h(e);return}continue}if(!e.ctrlKey&&!e.metaKey&&j&&k&&m){y&&e.preventDefault(),h(e);return}}},[s]);r.useEffect(()=>(document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}),[a])}class _e extends r.Component{constructor(){super(...arguments);z(this,"state",{hasError:!1});z(this,"handleReload",()=>{window.location.reload()});z(this,"handleReset",()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,i){console.error("ErrorBoundary caught an error:",e,i),this.setState({errorInfo:i})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 p-4",children:t.jsxs("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 text-center",children:[t.jsx("div",{className:"mx-auto w-12 h-12 flex items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30 mb-4",children:t.jsx(ve,{className:"h-6 w-6 text-red-600 dark:text-red-400"})}),t.jsx("h1",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Something went wrong"}),t.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:"An unexpected error occurred. Please try refreshing the page."}),this.state.error&&t.jsx("div",{className:"mb-4 p-3 bg-red-50 dark:bg-red-900/20 rounded-lg text-left",children:t.jsx("p",{className:"text-sm font-mono text-red-600 dark:text-red-400 break-all",children:this.state.error.message})}),t.jsxs("div",{className:"flex gap-3 justify-center",children:[t.jsx("button",{onClick:this.handleReset,className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-lg transition-colors",children:"Try Again"}),t.jsxs("button",{onClick:this.handleReload,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 rounded-lg transition-colors",children:[t.jsx(ts,{className:"h-4 w-4"}),"Refresh Page"]})]}),!1]})}):this.props.children}}const Ee=r.createContext(void 0);function us(){const s=r.useContext(Ee);if(s===void 0)throw new Error("useStats must be used within a StatsProvider");return s}function de(){const[s,a]=r.useState(null),[e,i]=r.useState(!1);r.useEffect(()=>{const o=async()=>{try{const c=await cs();a(c.data)}catch(c){console.error("Failed to fetch recording status:",c)}};o();const n=setInterval(o,5e3);return()=>clearInterval(n)},[]);const l=async()=>{if(!(!s||e)){i(!0);try{if(s.isPaused){const o=await ls();a(o.data),q.success("Recording resumed")}else{const o=await is();a(o.data),q.success("Recording paused")}}catch{q.error("Failed to toggle recording")}finally{i(!1)}}};return s?t.jsx("button",{onClick:l,disabled:e,className:`p-2.5 rounded-lg transition-colors ${s.isPaused?"text-yellow-600 hover:text-yellow-700 dark:text-yellow-400 dark:hover:text-yellow-300 hover:bg-yellow-50 dark:hover:bg-yellow-900/20":"text-green-600 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300 hover:bg-green-50 dark:hover:bg-green-900/20"} ${e?"opacity-50 cursor-not-allowed":""}`,"aria-label":s.isPaused?"Resume recording":"Pause recording",title:s.isPaused?"Resume Recording":"Pause Recording",children:s.isPaused?t.jsx(Yt,{className:"h-5 w-5"}):t.jsx(Xt,{className:"h-5 w-5"})}):null}const ue={dashboard:"text-primary-500",request:"text-blue-500",query:"text-purple-500",graphql:"text-fuchsia-500",exception:"text-red-500",log:"text-green-500",job:"text-yellow-500",schedule:"text-gray-500",batch:"text-lime-500",command:"text-slate-500",cache:"text-cyan-500",redis:"text-rose-500",model:"text-violet-500","http-client":"text-indigo-500",mail:"text-pink-500",notification:"text-orange-500",event:"text-emerald-500",view:"text-teal-500",gate:"text-amber-500",dump:"text-stone-500"},he=[{name:"Overview",items:[{name:"Dashboard",href:"/",icon:Ut,colorKey:"dashboard"}]},{name:"Core",items:[{name:"Requests",href:"/requests",icon:qt,colorKey:"request"},{name:"Queries",href:"/queries",icon:Vt,colorKey:"query"},{name:"GraphQL",href:"/graphql",icon:Ft,colorKey:"graphql"},{name:"Exceptions",href:"/exceptions",icon:ve,badge:"exceptions",colorKey:"exception"},{name:"Logs",href:"/logs",icon:Bt,colorKey:"log"}]},{name:"Background",items:[{name:"Jobs",href:"/jobs",icon:It,colorKey:"job"},{name:"Schedule",href:"/schedule",icon:Kt,colorKey:"schedule"},{name:"Batches",href:"/batches",icon:Qt,colorKey:"batch"},{name:"Commands",href:"/commands",icon:as,colorKey:"command"}]},{name:"Data",items:[{name:"Cache",href:"/cache",icon:ne,colorKey:"cache"},{name:"Redis",href:"/redis",icon:zt,colorKey:"redis"},{name:"Models",href:"/models",icon:Gt,colorKey:"model"}]},{name:"Communication",items:[{name:"HTTP Client",href:"/http-client",icon:Ht,colorKey:"http-client"},{name:"Mail",href:"/mail",icon:Jt,colorKey:"mail"},{name:"Notifications",href:"/notifications",icon:$t,colorKey:"notification"},{name:"Events",href:"/events",icon:es,colorKey:"event"}]},{name:"System",items:[{name:"Views",href:"/views",icon:Zt,colorKey:"view"},{name:"Gates",href:"/gates",icon:ss,colorKey:"gate"},{name:"Dumps",href:"/dumps",icon:ne,colorKey:"dump"}]}];function me(s){return s!=="system"?s==="dark":window.matchMedia("(prefers-color-scheme: dark)").matches}function hs(){const s=Ae(),[a,e]=r.useState(!1),{stats:i}=us(),[l,o]=r.useState(()=>{if(typeof window<"u"){const m=localStorage.getItem("nestlens-collapsed-groups");return m?new Set(JSON.parse(m)):new Set}return new Set}),[n,c]=r.useState(()=>typeof window<"u"?document.documentElement.classList.contains("dark"):!1),[u,x]=r.useState(()=>{if(typeof window<"u"){const m=localStorage.getItem("nestlens-theme");if(m==="system"||m==="light"||m==="dark")return m}return"system"}),d=r.useCallback(m=>{o(w=>{const E=new Set(w);return E.has(m)?E.delete(m):E.add(m),localStorage.setItem("nestlens-collapsed-groups",JSON.stringify([...E])),E})},[]),h=r.useCallback(m=>{if(!i)return 0;switch(m){case"exceptions":return i.unresolvedExceptions??i.byType.exception??0;default:return 0}},[i]),y=r.useCallback(m=>{const w=me(m);w?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c(w)},[]),j=r.useCallback(()=>{const m=n?"light":"dark";x(m),localStorage.setItem("nestlens-theme",m),y(m)},[n,y]),k=r.useCallback(async()=>{window.confirm("Are you sure you want to clear all entries?")&&(await os(),q.success("All entries cleared"),window.location.reload())},[]);return r.useEffect(()=>{const m=me(u);if(document.documentElement.classList.toggle("dark",m),u==="system"){const w=window.matchMedia("(prefers-color-scheme: dark)"),E=b=>{document.documentElement.classList.toggle("dark",b.matches),c(b.matches)};return w.addEventListener("change",E),()=>w.removeEventListener("change",E)}},[u]),ds([{key:"k",ctrl:!0,handler:()=>k()},{key:"Escape",handler:()=>{a&&e(!1)},preventDefault:!1},{key:"d",ctrl:!0,handler:()=>j()}]),t.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[t.jsxs("div",{className:`fixed inset-0 z-50 lg:hidden ${a?"":"hidden"}`,children:[t.jsx("div",{className:"fixed inset-0 bg-gray-900/80",onClick:()=>e(!1)}),t.jsxs("div",{id:"mobile-sidebar","data-testid":"mobile-sidebar",className:"fixed inset-y-0 left-0 w-64 bg-white dark:bg-gray-800 flex flex-col",children:[t.jsxs("div",{className:"flex h-16 items-center justify-between px-4 border-b border-gray-200 dark:border-gray-700",children:[t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-8 w-8 text-primary-600"}),t.jsx("span",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"NestLens"})]}),t.jsx("button",{onClick:()=>e(!1),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-label":"Close sidebar",children:t.jsx(rs,{className:"h-6 w-6","aria-hidden":"true"})})]}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:he.map((m,w)=>{const E=l.has(m.name);return t.jsxs("div",{className:w>0?"mt-4":"",children:[t.jsxs("button",{onClick:()=>d(m.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-xs font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`nav-group-${m.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:m.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:m.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?h(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-colors ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium":"text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-white"}`,onClick:()=>e(!1),children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-4 w-4 ${ue[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-medium bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400 rounded-full",children:C>99?"99+":C})]},b.name)})})]},m.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(de,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:k,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})]}),t.jsx("div",{"data-testid":"sidebar",className:"hidden lg:fixed lg:inset-y-0 lg:flex lg:w-64 lg:flex-col",children:t.jsxs("div",{className:"flex flex-col h-full bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700",children:[t.jsx("div",{className:"flex h-16 items-center px-4 border-b border-gray-200 dark:border-gray-700",children:t.jsxs(D,{to:"/",className:"flex items-center space-x-2.5",children:[t.jsx("div",{className:"p-1.5 bg-primary-100 dark:bg-primary-900/50 rounded-lg",children:t.jsx(U,{className:"h-6 w-6 text-primary-600 dark:text-primary-400"})}),t.jsxs("div",{children:[t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"}),t.jsxs("span",{className:"hidden xl:inline text-xs text-gray-400 dark:text-gray-500 ml-1.5",children:["v","0.9.2"]})]})]})}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:he.map((m,w)=>{const E=l.has(m.name);return t.jsxs("div",{className:w>0?"mt-6":"",children:[t.jsxs("button",{onClick:()=>d(m.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-[11px] font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`desktop-nav-group-${m.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:m.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:m.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?h(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-all duration-150 ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium shadow-sm":"text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800/50 hover:text-gray-900 dark:hover:text-white"}`,children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-[18px] w-[18px] ${ue[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:`inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-semibold rounded-full transition-colors ${N?"bg-primary-200 text-primary-800 dark:bg-primary-800 dark:text-primary-200":"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400"}`,children:C>99?"99+":C})]},b.name)})})]},m.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(de,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",title:n?"Light Mode (⌘D)":"Dark Mode (⌘D)",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:k,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",title:"Clear All Data (⌘K)",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",title:"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})}),t.jsxs("div",{className:"lg:pl-64",children:[t.jsxs("header",{className:"sticky top-0 z-40 flex h-14 items-center gap-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 lg:hidden",children:[t.jsx("button",{onClick:()=>e(!0),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-expanded":a,"aria-controls":"mobile-sidebar","aria-label":"Open navigation menu",children:t.jsx(Wt,{className:"h-6 w-6","aria-hidden":"true"})}),t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-6 w-6 text-primary-600"}),t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"})]})]}),t.jsx("main",{className:"p-4 lg:p-6",children:t.jsx(_e,{children:t.jsx(Oe,{})},s.pathname)})]})]})}function f(){return t.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-primary-600 dark:border-primary-400"}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Loading..."})]})})}const ms=r.lazy(()=>v(()=>import("./DashboardPage-wUYPGV_y.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),ps=r.lazy(()=>v(()=>import("./RequestsPage-B2dLu5n_.js"),__vite__mapDeps([5,1,2,6,7,8,9,10]),import.meta.url)),xs=r.lazy(()=>v(()=>import("./QueriesPage-DzWPvH8G.js"),__vite__mapDeps([11,1,2,6,7,8,9,10,3]),import.meta.url)),fs=r.lazy(()=>v(()=>import("./ExceptionsPage-D6ww4tft.js"),__vite__mapDeps([12,1,2,6,7,8,9,10,13]),import.meta.url)),ys=r.lazy(()=>v(()=>import("./LogsPage-CELJRQdo.js"),__vite__mapDeps([14,1,2,6,7,8,9,10]),import.meta.url)),gs=r.lazy(()=>v(()=>import("./EventsPage-CA-mVFw2.js"),__vite__mapDeps([15,1,2,6,7,10]),import.meta.url)),js=r.lazy(()=>v(()=>import("./JobsPage-C7MOQ5N5.js"),__vite__mapDeps([16,1,2,6,7,10]),import.meta.url)),bs=r.lazy(()=>v(()=>import("./CachePage-D-LhEY8p.js"),__vite__mapDeps([17,1,2,6,7,10]),import.meta.url)),ks=r.lazy(()=>v(()=>import("./MailPage-CPmDY6cW.js"),__vite__mapDeps([18,1,2,6,7,10]),import.meta.url)),vs=r.lazy(()=>v(()=>import("./SchedulePage-CZ_j6ucP.js"),__vite__mapDeps([19,1,20,2,6,7,10]),import.meta.url)),ws=r.lazy(()=>v(()=>import("./HttpClientPage-Dz07Icgz.js"),__vite__mapDeps([21,1,2,6,7,10]),import.meta.url)),Ss=r.lazy(()=>v(()=>import("./RedisPage-pBNy_8Qd.js"),__vite__mapDeps([22,1,2,6,7,10]),import.meta.url)),_s=r.lazy(()=>v(()=>import("./ModelsPage-Bi2hB6U7.js"),__vite__mapDeps([23,1,2,6,7,10]),import.meta.url)),Es=r.lazy(()=>v(()=>import("./NotificationsPage-Bn3roYs1.js"),__vite__mapDeps([24,1,2,6,7,10]),import.meta.url)),Ns=r.lazy(()=>v(()=>import("./ViewsPage-Bvm7RI_3.js"),__vite__mapDeps([25,1,2,6,7,10,26]),import.meta.url)),Ps=r.lazy(()=>v(()=>import("./CommandsPage-BtMSnG2A.js"),__vite__mapDeps([27,1,2,6,7,10]),import.meta.url)),Cs=r.lazy(()=>v(()=>import("./GatesPage-CuEy3xE1.js"),__vite__mapDeps([28,1,2,6,7,10]),import.meta.url)),Rs=r.lazy(()=>v(()=>import("./BatchesPage-BrvAux3V.js"),__vite__mapDeps([29,1,2,6,7,10]),import.meta.url)),Ls=r.lazy(()=>v(()=>import("./DumpsPage-jeUeiAuN.js"),__vite__mapDeps([30,1,2,6,7,10]),import.meta.url)),Ts=r.lazy(()=>v(()=>import("./GraphQLPage-D4vF4fhg.js"),__vite__mapDeps([31,1,2,8,9,6,7,10]),import.meta.url)),S=r.lazy(()=>v(()=>import("./EntryDetailPage-C5QubCqk.js").then(s=>s.E),__vite__mapDeps([32,1,2,7,9]),import.meta.url));function As(){return t.jsx(De,{children:t.jsxs(p,{path:"/",element:t.jsx(hs,{}),children:[t.jsx(p,{index:!0,element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ms,{})})}),t.jsx(p,{path:"requests",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ps,{})})}),t.jsx(p,{path:"queries",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(xs,{})})}),t.jsx(p,{path:"exceptions",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(fs,{})})}),t.jsx(p,{path:"logs",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ys,{})})}),t.jsx(p,{path:"events",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(gs,{})})}),t.jsx(p,{path:"jobs",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(js,{})})}),t.jsx(p,{path:"cache",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(bs,{})})}),t.jsx(p,{path:"mail",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ks,{})})}),t.jsx(p,{path:"schedule",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(vs,{})})}),t.jsx(p,{path:"http-client",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ws,{})})}),t.jsx(p,{path:"redis",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ss,{})})}),t.jsx(p,{path:"models",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(_s,{})})}),t.jsx(p,{path:"notifications",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Es,{})})}),t.jsx(p,{path:"views",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ns,{})})}),t.jsx(p,{path:"commands",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ps,{})})}),t.jsx(p,{path:"gates",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Cs,{})})}),t.jsx(p,{path:"batches",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Rs,{})})}),t.jsx(p,{path:"dumps",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ls,{})})}),t.jsx(p,{path:"graphql",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ts,{})})}),t.jsx(p,{path:"requests/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"queries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"exceptions/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"logs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"events/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"jobs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"cache/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"mail/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"schedule/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"http-client/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"redis/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"models/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"notifications/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"views/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"commands/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"gates/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"batches/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"dumps/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"graphql/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"entries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"*",element:t.jsx(Me,{to:"/",replace:!0})})]})})}const Os=1e4;function Ds({children:s}){const[a,e]=r.useState(null),[i,l]=r.useState(null),o=r.useRef(!0),n=r.useRef(!0),c=r.useCallback(d=>{n.current&&(e(d),l(null),o.current=!1)},[]),u=r.useCallback(d=>{if(!n.current)return;const h=d instanceof Error?d:new Error("Failed to fetch stats");l(h),console.error("Failed to fetch stats:",d),o.current&&q.error("Failed to load statistics"),o.current=!1},[]),x=r.useCallback(async()=>ce().then(d=>c(d.data),d=>u(d)),[c,u]);return r.useEffect(()=>{n.current=!0;const d=setInterval(()=>void x(),Os);return ce().then(h=>c(h.data),u),()=>{n.current=!1,clearInterval(d)}},[x,c,u]),t.jsx(Ee.Provider,{value:{stats:a,error:i,refreshStats:x},children:s})}const Ne=document.getElementById("root");if(!Ne)throw new Error("NestLens dashboard: no #root element in the served index.html");Be.createRoot(Ne).render(t.jsx(qe.StrictMode,{children:t.jsx(_e,{children:t.jsx($e,{basename:we(),children:t.jsxs(Ds,{children:[t.jsx(As,{}),t.jsx(Lt,{position:"bottom-right",toastOptions:{duration:3e3,style:{background:"#1f2937",color:"#f3f4f6",borderRadius:"0.5rem"},success:{iconTheme:{primary:"#10b981",secondary:"#f3f4f6"}},error:{iconTheme:{primary:"#ef4444",secondary:"#f3f4f6"}}}})]})})})}));export{qt as A,It as B,Kt as C,Vt as D,Bt as F,Ft as G,ne as H,Gt as L,Jt as M,Qt as P,es as R,ss as S,ve as T,rs as X,v as _,as as a,zt as b,g as c,Ht as d,$t as e,Zt as f,ae as g,le as h,ts as i,t as j,Vs as k,Bs as l,zs as m,Gs as n,Hs as o,ns as p,Is as q,Fs as r,Ks as s,se as t,us as u,$s as v,Yt as w,q as z};
@@ -1,4 +1,4 @@
1
- import{c}from"./index-DSn-BKqm.js";/**
1
+ import{c}from"./index-DOVqOa07.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-DSn-BKqm.js";/**
1
+ import{c as a}from"./index-DOVqOa07.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-DSn-BKqm.js";/**
1
+ import{c as e}from"./index-DOVqOa07.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.