@lensjs/core 2.3.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{exception-C69UCHPk.d.cts → exception-BJqUL0j5.d.cts} +1 -1
  2. package/dist/{exception-3AZsPtAg.d.ts → exception-DYe0t9-2.d.ts} +1 -1
  3. package/dist/{index-QmOJr0K-.d.cts → index-CDaOwv3y.d.cts} +1 -1
  4. package/dist/{index-CZsa0Zcm.d.ts → index-DRfxZjgs.d.ts} +1 -1
  5. package/dist/index.d.cts +2 -2
  6. package/dist/index.d.ts +2 -2
  7. package/dist/ui/assets/{CacheActionBadge-BB4uokI1.js → CacheActionBadge-B0d8J3l3.js} +1 -1
  8. package/dist/ui/assets/CacheEntriesTable-BWcruMt2.js +1 -0
  9. package/dist/ui/assets/CacheEntryContainer-DtJ7sOfS.js +2 -0
  10. package/dist/ui/assets/{CacheEntryDetails-BeZnoIpm.js → CacheEntryDetails-BqnO7eQt.js} +1 -1
  11. package/dist/ui/assets/CacheEntryDetailsContainer-CDSo5J6T.js +2 -0
  12. package/dist/ui/assets/ExceptionContainer-CPGWtjRd.js +2 -0
  13. package/dist/ui/assets/{ExceptionDetails-BKHzv6hf.js → ExceptionDetails-pQPj3ONT.js} +1 -1
  14. package/dist/ui/assets/ExceptionDetailsContainer-ClPIK2i9.js +2 -0
  15. package/dist/ui/assets/{ExceptionTable-DzBmQLLa.js → ExceptionTable-DOeXVqQk.js} +1 -1
  16. package/dist/ui/assets/{JsonViewer-D-KPN089.js → JsonViewer-CsEn0XaU.js} +1 -1
  17. package/dist/ui/assets/{LoadMore-CLPR6Zd4.js → LoadMore-DkgyLoiB.js} +1 -1
  18. package/dist/ui/assets/QueriesContainer-EcqQVDVf.js +2 -0
  19. package/dist/ui/assets/{QueryDetailsContainer-Cqj3E6Dr.js → QueryDetailsContainer-CEB3hlHs.js} +1 -1
  20. package/dist/ui/assets/{QueryTable-DmWdZSnJ.js → QueryTable-BE7RpCNw.js} +1 -1
  21. package/dist/ui/assets/{RequestDetails-CF338Kcv.js → RequestDetails-Gd7Ai7fu.js} +1 -1
  22. package/dist/ui/assets/{RequestDetailsContainer-aW4GLool.js → RequestDetailsContainer-CnOSYjOY.js} +2 -2
  23. package/dist/ui/assets/{RequestsContainer-DdLSvAbl.js → RequestsContainer-CEnrqMqW.js} +2 -2
  24. package/dist/ui/assets/{RequetsTable-Bdp_PhGU.js → RequetsTable-DFm_vdLV.js} +1 -1
  25. package/dist/ui/assets/{StatusCode-C605nHvd.js → StatusCode-D5gEbxbO.js} +1 -1
  26. package/dist/ui/assets/{TabbedDataViewer-ofhEq_Wj.js → TabbedDataViewer-CJN6R11V.js} +2 -2
  27. package/dist/ui/assets/{Table-kak5sL5X.js → Table-C3Y9tdtZ.js} +1 -1
  28. package/dist/ui/assets/{columns-BEyDhUNq.js → columns-5NhbdeuI.js} +1 -1
  29. package/dist/ui/assets/{columns-Bu5psHyp.js → columns-BGeHl5-C.js} +1 -1
  30. package/dist/ui/assets/{columns-BvIUTkjN.js → columns-oQrpcTou.js} +1 -1
  31. package/dist/ui/assets/{copy-DzXuP4eO.js → copy-CwmmSmiO.js} +1 -1
  32. package/dist/ui/assets/index-Bg3-m46L.js +124 -0
  33. package/dist/ui/assets/{useCacheEntries-Pvte_aNc.js → useCacheEntries-OjlomqyI.js} +1 -1
  34. package/dist/ui/assets/{useExceptions-P3cnURvN.js → useExceptions-DE7MHRvJ.js} +1 -1
  35. package/dist/ui/assets/{useLensApi-BFdsfrzR.js → useLensApi-CI65OdmI.js} +1 -1
  36. package/dist/ui/assets/{useLoadMore-JCWak1Dg.js → useLoadMore-BA_-_Tw4.js} +1 -1
  37. package/dist/ui/assets/{useQueries-CNquFtm0.js → useQueries-D29NRLfq.js} +1 -1
  38. package/dist/ui/index.html +1 -1
  39. package/dist/utils/exception.d.cts +1 -1
  40. package/dist/utils/exception.d.ts +1 -1
  41. package/dist/utils/index.d.cts +1 -1
  42. package/dist/utils/index.d.ts +1 -1
  43. package/package.json +3 -3
  44. package/dist/ui/assets/CacheEntriesTable-B8cUXhos.js +0 -1
  45. package/dist/ui/assets/CacheEntryContainer-WkdnGvnu.js +0 -2
  46. package/dist/ui/assets/CacheEntryDetailsContainer-DI0mEvpu.js +0 -2
  47. package/dist/ui/assets/ExceptionContainer-YNcR0F5U.js +0 -2
  48. package/dist/ui/assets/ExceptionDetailsContainer-CJHILjb3.js +0 -2
  49. package/dist/ui/assets/QueriesContainer-B_PmBkHR.js +0 -2
  50. package/dist/ui/assets/index-TW_-MgRG.js +0 -124
@@ -49,4 +49,4 @@ declare namespace exception {
49
49
  export { exception_cleanStack as cleanStack, exception_constructErrorObject as constructErrorObject, exception_extractCodeFrame as extractCodeFrame, exception_getFileInfo as getFileInfo, exception_getStackTrace as getStackTrace };
50
50
  }
51
51
 
52
- export { getStackTrace as a, extractCodeFrame as b, cleanStack as c, constructErrorObject as d, exception as e, getFileInfo as g };
52
+ export { constructErrorObject as a, extractCodeFrame as b, cleanStack as c, getStackTrace as d, exception as e, getFileInfo as g };
@@ -49,4 +49,4 @@ declare namespace exception {
49
49
  export { exception_cleanStack as cleanStack, exception_constructErrorObject as constructErrorObject, exception_extractCodeFrame as extractCodeFrame, exception_getFileInfo as getFileInfo, exception_getStackTrace as getStackTrace };
50
50
  }
51
51
 
52
- export { getStackTrace as a, extractCodeFrame as b, cleanStack as c, constructErrorObject as d, exception as e, getFileInfo as g };
52
+ export { constructErrorObject as a, extractCodeFrame as b, cleanStack as c, getStackTrace as d, exception as e, getFileInfo as g };
@@ -40,4 +40,4 @@ declare namespace index {
40
40
  export { index_compose as compose, index_formatSqlQuery as formatSqlQuery, index_generateRandomUuid as generateRandomUuid, index_getMeta as getMeta, index_interpolateQuery as interpolateQuery, index_isStaticFile as isStaticFile, index_normalizePath as normalizePath, index_prepareIgnoredPaths as prepareIgnoredPaths, index_prettyHrTime as prettyHrTime, index_shouldIgnoreCurrentPath as shouldIgnoreCurrentPath, index_stripBeforeAssetsPath as stripBeforeAssetsPath };
41
41
  }
42
42
 
43
- export { interpolateQuery as a, getMeta as b, isStaticFile as c, shouldIgnoreCurrentPath as d, prettyHrTime as e, formatSqlQuery as f, generateRandomUuid as g, index as i, normalizePath as n, prepareIgnoredPaths as p, stripBeforeAssetsPath as s };
43
+ export { getMeta as a, interpolateQuery as b, isStaticFile as c, prettyHrTime as d, stripBeforeAssetsPath as e, formatSqlQuery as f, generateRandomUuid as g, index as i, normalizePath as n, prepareIgnoredPaths as p, shouldIgnoreCurrentPath as s };
@@ -40,4 +40,4 @@ declare namespace index {
40
40
  export { index_compose as compose, index_formatSqlQuery as formatSqlQuery, index_generateRandomUuid as generateRandomUuid, index_getMeta as getMeta, index_interpolateQuery as interpolateQuery, index_isStaticFile as isStaticFile, index_normalizePath as normalizePath, index_prepareIgnoredPaths as prepareIgnoredPaths, index_prettyHrTime as prettyHrTime, index_shouldIgnoreCurrentPath as shouldIgnoreCurrentPath, index_stripBeforeAssetsPath as stripBeforeAssetsPath };
41
41
  }
42
42
 
43
- export { interpolateQuery as a, getMeta as b, isStaticFile as c, shouldIgnoreCurrentPath as d, prettyHrTime as e, formatSqlQuery as f, generateRandomUuid as g, index as i, normalizePath as n, prepareIgnoredPaths as p, stripBeforeAssetsPath as s };
43
+ export { getMeta as a, interpolateQuery as b, isStaticFile as c, prettyHrTime as d, stripBeforeAssetsPath as e, formatSqlQuery as f, generateRandomUuid as g, index as i, normalizePath as n, prepareIgnoredPaths as p, shouldIgnoreCurrentPath as s };
package/dist/index.d.cts CHANGED
@@ -10,8 +10,8 @@ export { default as LensAdapter } from './abstracts/adapter.cjs';
10
10
  export { default as LensStore } from './abstracts/store.cjs';
11
11
  export { default as LensWatcher } from './core/watcher.cjs';
12
12
  export { getStore as getLensStore } from './context/context.cjs';
13
- export { i as lensUtils } from './index-QmOJr0K-.cjs';
14
- export { e as lensExceptionUtils } from './exception-C69UCHPk.cjs';
13
+ export { i as lensUtils } from './index-CDaOwv3y.cjs';
14
+ export { e as lensExceptionUtils } from './exception-BJqUL0j5.cjs';
15
15
  export { createEmittery, lensEmitter } from './utils/event_emitter.cjs';
16
16
  export { handleUncaughExceptions, lensContext } from './utils/async_context.cjs';
17
17
  import 'libsql';
package/dist/index.d.ts CHANGED
@@ -10,8 +10,8 @@ export { default as LensAdapter } from './abstracts/adapter.js';
10
10
  export { default as LensStore } from './abstracts/store.js';
11
11
  export { default as LensWatcher } from './core/watcher.js';
12
12
  export { getStore as getLensStore } from './context/context.js';
13
- export { i as lensUtils } from './index-CZsa0Zcm.js';
14
- export { e as lensExceptionUtils } from './exception-3AZsPtAg.js';
13
+ export { i as lensUtils } from './index-DRfxZjgs.js';
14
+ export { e as lensExceptionUtils } from './exception-DYe0t9-2.js';
15
15
  export { createEmittery, lensEmitter } from './utils/event_emitter.js';
16
16
  export { handleUncaughExceptions, lensContext } from './utils/async_context.js';
17
17
  import 'libsql';
@@ -1 +1 @@
1
- import{j as r}from"./index-TW_-MgRG.js";const d=({action:e})=>{const t={hit:"bg-green-100 text-green-800 dark:bg-green-600 dark:text-white",miss:"bg-amber-100 text-amber-800 dark:bg-amber-600 dark:text-white",write:"bg-blue-100 text-blue-800 dark:bg-blue-600 dark:text-white",delete:"bg-red-100 text-red-800 dark:bg-red-600 dark:text-white",clear:"bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white"};return r.jsx("span",{className:`rounded px-2 py-1 text-sm font-semibold ${t[e]||t.clear}`,children:e})};export{d as C};
1
+ import{j as r}from"./index-Bg3-m46L.js";const d=({action:e})=>{const t={hit:"bg-green-100 text-green-800 dark:bg-green-600 dark:text-white",miss:"bg-amber-100 text-amber-800 dark:bg-amber-600 dark:text-white",write:"bg-blue-100 text-blue-800 dark:bg-blue-600 dark:text-white",delete:"bg-red-100 text-red-800 dark:bg-red-600 dark:text-white",clear:"bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white"};return r.jsx("span",{className:`rounded px-2 py-1 text-sm font-semibold ${t[e]||t.clear}`,children:e})};export{d as C};
@@ -0,0 +1 @@
1
+ import{j as a}from"./index-Bg3-m46L.js";import{L as s}from"./LoadMore-DkgyLoiB.js";import{T as t}from"./Table-C3Y9tdtZ.js";import{g as r}from"./columns-oQrpcTou.js";import"./index-BRRKsoNv.js";import"./CacheActionBadge-B0d8J3l3.js";const p=({hasMoreObject:o})=>a.jsxs("div",{className:"w-full",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsx(t,{columns:r(),data:o.data})}),a.jsx(s,{paginatedPage:o})]});export{p as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CacheEntriesTable-BWcruMt2.js","./index-Bg3-m46L.js","./index-CsnKQ5Mh.css","./LoadMore-DkgyLoiB.js","./Table-C3Y9tdtZ.js","./columns-oQrpcTou.js","./index-BRRKsoNv.js","./CacheActionBadge-B0d8J3l3.js"])))=>i.map(i=>d[i]);
2
+ import{r as t,j as a,_ as s}from"./index-Bg3-m46L.js";import{u as i}from"./useLoadMore-BA_-_Tw4.js";import{u as m}from"./useCacheEntries-OjlomqyI.js";import"./useLensApi-CI65OdmI.js";const n=t.lazy(()=>s(()=>import("./CacheEntriesTable-BWcruMt2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)),_=()=>{const{loadMoreItems:e,getItems:r}=m(),o=i({paginatedPage:e});return t.useEffect(()=>{r()},[]),a.jsx(n,{hasMoreObject:o})};export{_ as default};
@@ -1 +1 @@
1
- import{j as a,L as s,q as r,k as i}from"./index-TW_-MgRG.js";import{D as o,T as n}from"./TabbedDataViewer-ofhEq_Wj.js";import{C as u}from"./CacheActionBadge-BB4uokI1.js";import d from"./JsonViewer-D-KPN089.js";import"./copy-DzXuP4eO.js";function b({data:e}){const t=[e.lens_entry_id?{label:"Request",value:a.jsx(s,{to:`${r(i()).REQUESTS}/${e.lens_entry_id}`,className:"text-blue-600 hover:underline font-semibold",children:"View Request"}),className:"text-gray-900 dark:text-gray-100"}:null,{label:"Operation",value:a.jsx(u,{action:e.data.action}),className:"text-gray-900 dark:text-gray-100"},e.data.data.key?{label:"Key",value:e.data.data.key??"__",className:"text-gray-900 dark:text-gray-100"}:null].filter(l=>!!l);return a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(o,{title:"Details",items:t}),a.jsx(n,{tabs:[{id:"value",label:"Value",shouldShow:!!e.data.data.value,content:a.jsx(d,{data:e.data.data.value})}],defaultActiveTab:"value"})]})}export{b as default};
1
+ import{j as a,L as s,q as r,k as i}from"./index-Bg3-m46L.js";import{D as o,T as n}from"./TabbedDataViewer-CJN6R11V.js";import{C as u}from"./CacheActionBadge-B0d8J3l3.js";import d from"./JsonViewer-CsEn0XaU.js";import"./copy-CwmmSmiO.js";function b({data:e}){const t=[e.lens_entry_id?{label:"Request",value:a.jsx(s,{to:`${r(i()).REQUESTS}/${e.lens_entry_id}`,className:"text-blue-600 hover:underline font-semibold",children:"View Request"}),className:"text-gray-900 dark:text-gray-100"}:null,{label:"Operation",value:a.jsx(u,{action:e.data.action}),className:"text-gray-900 dark:text-gray-100"},e.data.data.key?{label:"Key",value:e.data.data.key??"__",className:"text-gray-900 dark:text-gray-100"}:null].filter(l=>!!l);return a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(o,{title:"Details",items:t}),a.jsx(n,{tabs:[{id:"value",label:"Value",shouldShow:!!e.data.data.value,content:a.jsx(d,{data:e.data.data.value})}],defaultActiveTab:"value"})]})}export{b as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CacheEntryDetails-BqnO7eQt.js","./index-Bg3-m46L.js","./index-CsnKQ5Mh.css","./TabbedDataViewer-CJN6R11V.js","./CacheActionBadge-B0d8J3l3.js","./JsonViewer-CsEn0XaU.js","./copy-CwmmSmiO.js"])))=>i.map(i=>d[i]);
2
+ import{m as o,r as s,j as r,_ as i}from"./index-Bg3-m46L.js";import{u as m}from"./useCacheEntries-OjlomqyI.js";import"./useLensApi-CI65OdmI.js";const n=s.lazy(()=>i(()=>import("./CacheEntryDetails-BqnO7eQt.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),E=()=>{const{item:e,getItem:a}=m(),{id:t}=o();return s.useEffect(()=>{t&&a(t)},[t]),r.jsx("div",{children:e&&r.jsx(n,{data:e})})};export{E as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ExceptionTable-DOeXVqQk.js","./index-Bg3-m46L.js","./index-CsnKQ5Mh.css","./LoadMore-DkgyLoiB.js","./Table-C3Y9tdtZ.js","./columns-5NhbdeuI.js","./index-BRRKsoNv.js"])))=>i.map(i=>d[i]);
2
+ import{r as t,j as s,_ as a}from"./index-Bg3-m46L.js";import{u as i}from"./useLoadMore-BA_-_Tw4.js";import{u as m}from"./useExceptions-DE7MHRvJ.js";import"./useLensApi-CI65OdmI.js";const n=t.lazy(()=>a(()=>import("./ExceptionTable-DOeXVqQk.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),_=()=>{const{loadMoreItems:e,getItems:o}=m(),r=i({paginatedPage:e});return t.useEffect(()=>{o()},[]),s.jsx(n,{hasMoreObject:r})};export{_ as default};
@@ -1,4 +1,4 @@
1
- import{v as g,j as e,L as j,q as N,k as v}from"./index-TW_-MgRG.js";import{D as w,T as S}from"./TabbedDataViewer-ofhEq_Wj.js";/**
1
+ import{v as g,j as e,L as j,q as N,k as v}from"./index-Bg3-m46L.js";import{D as w,T as S}from"./TabbedDataViewer-CJN6R11V.js";/**
2
2
  * @license lucide-react v0.542.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ExceptionDetails-pQPj3ONT.js","./index-Bg3-m46L.js","./index-CsnKQ5Mh.css","./TabbedDataViewer-CJN6R11V.js"])))=>i.map(i=>d[i]);
2
+ import{m as a,r as s,j as r,_ as i}from"./index-Bg3-m46L.js";import{u as m}from"./useExceptions-DE7MHRvJ.js";import"./useLensApi-CI65OdmI.js";const n=s.lazy(()=>i(()=>import("./ExceptionDetails-pQPj3ONT.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),x=()=>{const{item:e,getItem:o}=m(),{id:t}=a();return s.useEffect(()=>{t&&o(t)},[t]),r.jsx("div",{children:e&&r.jsx(n,{data:e})})};export{x as default};
@@ -1 +1 @@
1
- import{j as a}from"./index-TW_-MgRG.js";import{L as s}from"./LoadMore-CLPR6Zd4.js";import{T as t}from"./Table-kak5sL5X.js";import{g as r}from"./columns-BEyDhUNq.js";import"./index-BRRKsoNv.js";const d=({hasMoreObject:o})=>a.jsxs("div",{className:"w-full",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsx(t,{columns:r(),data:o.data})}),a.jsx(s,{paginatedPage:o})]});export{d as default};
1
+ import{j as a}from"./index-Bg3-m46L.js";import{L as s}from"./LoadMore-DkgyLoiB.js";import{T as t}from"./Table-C3Y9tdtZ.js";import{g as r}from"./columns-5NhbdeuI.js";import"./index-BRRKsoNv.js";const d=({hasMoreObject:o})=>a.jsxs("div",{className:"w-full",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsx(t,{columns:r(),data:o.data})}),a.jsx(s,{paginatedPage:o})]});export{d as default};
@@ -1 +1 @@
1
- import{r as f,j as n}from"./index-TW_-MgRG.js";import{C as ka,a as Ra}from"./copy-DzXuP4eO.js";function s(){return s=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)({}).hasOwnProperty.call(r,t)&&(a[t]=r[t])}return a},s.apply(null,arguments)}function h(a,e){if(a==null)return{};var r={};for(var t in a)if({}.hasOwnProperty.call(a,t)){if(e.indexOf(t)!==-1)continue;r[t]=a[t]}return r}var le={},se=f.createContext(le),Va=(a,e)=>s({},a,e),Sa=()=>f.useContext(se),q=f.createContext(()=>{});q.displayName="JVR.DispatchShowTools";function La(){return f.useReducer(Va,le)}function ne(){return f.useContext(q)}var ie=a=>{var{initial:e,dispatch:r,children:t}=a;return n.jsx(se.Provider,{value:e,children:n.jsx(q.Provider,{value:r,children:t})})};ie.displayName="JVR.ShowTools";var oe={},ve=f.createContext(oe),Ta=(a,e)=>s({},a,e),Q=()=>f.useContext(ve),W=f.createContext(()=>{});W.displayName="JVR.DispatchExpands";function Ja(){return f.useReducer(Ta,oe)}function Ea(){return f.useContext(W)}var de=a=>{var{initial:e,dispatch:r,children:t}=a;return n.jsx(ve.Provider,{value:e,children:n.jsx(W.Provider,{value:r,children:t})})};de.displayName="JVR.Expands";var ue={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},ce=f.createContext(ue),Ba=(a,e)=>s({},a,e),C=()=>f.useContext(ce),H=f.createContext(()=>{});H.displayName="JVR.DispatchTypes";function Da(){return f.useReducer(Ba,ue)}function $a(){return f.useContext(H)}function pe(a){var{initial:e,dispatch:r,children:t}=a;return n.jsx(ce.Provider,{value:e,children:n.jsx(H.Provider,{value:r,children:t})})}pe.displayName="JVR.Types";var Ma=["style"];function ye(a){var{style:e}=a,r=h(a,Ma),t=s({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return n.jsx("svg",s({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:t},r,{children:n.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}ye.displayName="JVR.TriangleArrow";var me={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:n.jsx(ye,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},fe=f.createContext(me),Ia=(a,e)=>s({},a,e),S=()=>f.useContext(fe),G=f.createContext(()=>{});G.displayName="JVR.DispatchSymbols";function _a(){return f.useReducer(Ia,me)}function Aa(){return f.useContext(G)}var he=a=>{var{initial:e,dispatch:r,children:t}=a;return n.jsx(fe.Provider,{value:e,children:n.jsx(G.Provider,{value:r,children:t})})};he.displayName="JVR.Symbols";var xe={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},je=f.createContext(xe),Fa=(a,e)=>s({},a,e),E=()=>f.useContext(je),X=f.createContext(()=>{});X.displayName="JVR.DispatchSection";function Ka(){return f.useReducer(Fa,xe)}function Oa(){return f.useContext(X)}var Ne=a=>{var{initial:e,dispatch:r,children:t}=a;return n.jsx(je.Provider,{value:e,children:n.jsx(X.Provider,{value:r,children:t})})};Ne.displayName="JVR.Section";var Ce={objectSortKeys:!1,indentWidth:15},Y=f.createContext(Ce);Y.displayName="JVR.Context";var we=f.createContext(()=>{});we.displayName="JVR.DispatchContext";function Ua(a,e){return s({},a,e)}var A=()=>f.useContext(Y),ge=a=>{var{children:e,initialState:r,initialTypes:t}=a,[l,d]=f.useReducer(Ua,Object.assign({},Ce,r)),[v,i]=La(),[o,p]=Ja(),[u,c]=Da(),[y,m]=_a(),[j,x]=Ka();return f.useEffect(()=>d(s({},r)),[r]),n.jsx(Y.Provider,{value:l,children:n.jsx(we.Provider,{value:d,children:n.jsx(ie,{initial:v,dispatch:i,children:n.jsx(de,{initial:o,dispatch:p,children:n.jsx(pe,{initial:s({},u,t),dispatch:c,children:n.jsx(he,{initial:y,dispatch:m,children:n.jsx(Ne,{initial:j,dispatch:x,children:e})})})})})})})};ge.displayName="JVR.Provider";function Pa(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var Qa=["isNumber","value","parentValue","keyName","keys"],Za=["as","render"],za=["as","render"],qa=["as","render"],Wa=["as","style","render"],Ha=["as","render"],Ga=["as","render"],Xa=["as","render"],Ya=["as","render"],Z=a=>{var{Quote:e={}}=S(),{isNumber:r,value:t,parentValue:l,keyName:d,keys:v}=a,i=h(a,Qa);if(r)return null;var{as:o,render:p}=e,u=h(e,Za),c=o||"span",y=s({},i,u),m={value:t,parentValue:l,keyName:d,keys:v||(d?[d]:[])},j=p&&typeof p=="function"&&p(y,m);return j||n.jsx(c,s({},y))};Z.displayName="JVR.Quote";var U=a=>{var{ValueQuote:e={}}=S(),r=s({},(Pa(a),a)),{as:t,render:l}=e,d=h(e,za),v=t||"span",i=s({},r,d),o=l&&typeof l=="function"&&l(i,{});return o||n.jsx(v,s({},i))};U.displayName="JVR.ValueQuote";var be=a=>{var{value:e,parentValue:r,keyName:t,keys:l}=a,{Colon:d={}}=S(),{as:v,render:i}=d,o=h(d,qa),p=v||"span",u=i&&typeof i=="function"&&i(o,{value:e,parentValue:r,keyName:t,keys:l||(t?[t]:[])});return u||n.jsx(p,s({},o))};be.displayName="JVR.Colon";var ke=a=>{var{Arrow:e={}}=S(),r=Q(),{expandKey:t,style:l,value:d,parentValue:v,keyName:i,keys:o}=a,p=!!r[t],{as:u,style:c,render:y}=e,m=h(e,Wa),j=u||"span",x=y&&typeof y=="function",w=s({},m,{"data-expanded":p,style:s({},c,l)}),g={value:d,parentValue:v,keyName:i,keys:o||(i?[i]:[])},k=x&&y(w,g);return k||n.jsx(j,s({},m,{style:s({},c,l)}))};ke.displayName="JVR.Arrow";var Re=a=>{var{isBrackets:e,value:r,parentValue:t,keyName:l,keys:d}=a,{BracketsLeft:v={},BraceLeft:i={}}=S(),o={value:r,parentValue:t,keyName:l,keys:d||(l?[l]:[])};if(e){var{as:p,render:u}=v,c=h(v,Ha),y=p||"span",m=u&&typeof u=="function"&&u(c,o);return m||n.jsx(y,s({},c))}var{as:j,render:x}=i,w=h(i,Ga),g=j||"span",k=x&&typeof x=="function"&&x(w,o);return k||n.jsx(g,s({},w))};Re.displayName="JVR.BracketsOpen";var ee=a=>{var{isBrackets:e,isVisiable:r,value:t,parentValue:l,keyName:d,keys:v}=a,i={value:t,parentValue:l,keyName:d,keys:v||(d?[d]:[])};if(!r)return null;var{BracketsRight:o={},BraceRight:p={}}=S();if(e){var{as:u,render:c}=o,y=h(o,Xa),m=u||"span",j=c&&typeof c=="function"&&c(y,i);return j||n.jsx(m,s({},y))}var{as:x,render:w}=p,g=h(p,Ya),k=x||"span",b=w&&typeof w=="function"&&w(g,i);return b||n.jsx(k,s({},g))};ee.displayName="JVR.BracketsClose";var Ve=a=>{var e,{keyName:r,value:t,expandKey:l,parentValue:d,level:v,keys:i=[]}=a,o=Q(),{collapsed:p,shouldExpandNodeInitially:u}=A(),c=typeof p=="boolean"?p:typeof p=="number"?v>p:!1,y=(e=o[l])!=null?e:c,m=u&&u(y,{value:t,keys:i,level:v,keyName:r,parentValue:d});if(o[l]===void 0&&m)return null;var j=Object.keys(t).length;if(y||j===0)return null;var x={paddingLeft:4},w={keyName:r,value:t,keys:i,parentValue:d},g=Array.isArray(t),k=t instanceof Set;return n.jsx("div",{style:x,children:n.jsx(ee,s({isBrackets:g||k},w,{isVisiable:!0}))})};Ve.displayName="JVR.NestedClose";var er=["as","render"],ar=["as","render"],rr=["as","render"],tr=["as","render"],lr=["as","render"],sr=["as","render"],nr=["as","render"],ir=["as","render"],or=["as","render"],vr=["as","render"],dr=["as","render"],ur=["as","render"],cr=["as","render"],z=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Se=a=>{var{value:e,keyName:r}=a,{Set:t={},displayDataTypes:l}=C(),d=e instanceof Set;if(!d||!l)return null;var{as:v,render:i}=t,o=h(t,er),p=i&&typeof i=="function",u=p&&i(o,{type:"type",value:e,keyName:r});if(u)return u;var c=v||"span";return n.jsx(c,s({},o))};Se.displayName="JVR.SetComp";var Le=a=>{var{value:e,keyName:r}=a,{Map:t={},displayDataTypes:l}=C(),d=e instanceof Map;if(!d||!l)return null;var{as:v,render:i}=t,o=h(t,ar),p=i&&typeof i=="function",u=p&&i(o,{type:"type",value:e,keyName:r});if(u)return u;var c=v||"span";return n.jsx(c,s({},o))};Le.displayName="JVR.MapComp";var B={opacity:.75,paddingRight:4},Te=a=>{var{children:e="",keyName:r,keys:t}=a,{Str:l={},displayDataTypes:d}=C(),{shortenTextAfterLength:v=30,stringEllipsis:i="..."}=A(),{as:o,render:p}=l,u=h(l,rr),c=e,[y,m]=f.useState(v&&c.length>v);f.useEffect(()=>m(v&&c.length>v),[v]);var j=o||"span",x=s({},B,l.style||{});v>0&&(u.style=s({},u.style,{cursor:c.length<=v?"initial":"pointer"}),c.length>v&&(u.onClick=()=>{m(!y)}));var w=y?""+c.slice(0,v)+i:c,g=p&&typeof p=="function",k=g&&p(s({},u,{style:x}),{type:"type",value:e,keyName:r,keys:t}),b=y?"w-rjv-value w-rjv-value-short":"w-rjv-value",V=g&&p(s({},u,{children:w,className:b}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(k||n.jsx(j,s({},u,{style:x}))),V||n.jsxs(f.Fragment,{children:[n.jsx(U,{}),n.jsx(j,s({},u,{className:b,children:w})),n.jsx(U,{})]})]})};Te.displayName="JVR.TypeString";var Je=a=>{var{children:e,keyName:r,keys:t}=a,{True:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,tr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:e?.toString()}))]})};Je.displayName="JVR.TypeTrue";var Ee=a=>{var{children:e,keyName:r,keys:t}=a,{False:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,lr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:e?.toString()}))]})};Ee.displayName="JVR.TypeFalse";var Be=a=>{var{children:e,keyName:r,keys:t}=a,{Float:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,sr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:e?.toString()}))]})};Be.displayName="JVR.TypeFloat";var De=a=>{var{children:e,keyName:r,keys:t}=a,{Int:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,nr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:e?.toString()}))]})};De.displayName="JVR.TypeInt";var $e=a=>{var{children:e,keyName:r,keys:t}=a,{Bigint:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,ir),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:z(e?.toString())}))]})};$e.displayName="JVR.TypeFloat";var Me=a=>{var{children:e,keyName:r,keys:t}=a,{Url:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,or),p=v||"span",u=s({},B,l.style),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e?.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsxs("a",s({href:e?.href,target:"_blank"},o,{className:"w-rjv-value",children:[n.jsx(U,{}),e?.href,n.jsx(U,{})]}))]})};Me.displayName="JVR.TypeUrl";var Ie=a=>{var{children:e,keyName:r,keys:t}=a,{Date:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,vr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=e instanceof Date?e.toLocaleString():e,j=c&&i(s({},o,{children:m,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),j||n.jsx(p,s({},o,{className:"w-rjv-value",children:m}))]})};Ie.displayName="JVR.TypeDate";var _e=a=>{var{children:e,keyName:r,keys:t}=a,{Undefined:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,dr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m]})};_e.displayName="JVR.TypeUndefined";var Ae=a=>{var{children:e,keyName:r,keys:t}=a,{Null:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,ur),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m]})};Ae.displayName="JVR.TypeNull";var Fe=a=>{var{children:e,keyName:r,keys:t}=a,{Nan:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,cr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e?.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m]})};Fe.displayName="JVR.TypeNan";var pr=a=>Number(a)===a&&a%1!==0||isNaN(a),Ke=a=>{var{value:e,keyName:r,keys:t}=a,l={keyName:r,keys:t};return e instanceof URL?n.jsx(Me,s({},l,{children:e})):typeof e=="string"?n.jsx(Te,s({},l,{children:e})):e===!0?n.jsx(Je,s({},l,{children:e})):e===!1?n.jsx(Ee,s({},l,{children:e})):e===null?n.jsx(Ae,s({},l,{children:e})):e===void 0?n.jsx(_e,s({},l,{children:e})):e instanceof Date?n.jsx(Ie,s({},l,{children:e})):typeof e=="number"&&isNaN(e)?n.jsx(Fe,s({},l,{children:e})):typeof e=="number"&&pr(e)?n.jsx(Be,s({},l,{children:e})):typeof e=="bigint"?n.jsx($e,s({},l,{children:e})):typeof e=="number"?n.jsx(De,s({},l,{children:e})):null};Ke.displayName="JVR.Value";function M(a,e,r){var t=Aa(),l=[a.className,e.className].filter(Boolean).join(" "),d=s({},a,e,{className:l,style:s({},a.style,e.style),children:e.children||a.children});f.useEffect(()=>t({[r]:d}),[e])}function L(a,e,r){var t=$a(),l=[a.className,e.className].filter(Boolean).join(" "),d=s({},a,e,{className:l,style:s({},a.style,e.style),children:e.children||a.children});f.useEffect(()=>t({[r]:d}),[e])}function F(a,e,r){var t=Oa(),l=[a.className,e.className].filter(Boolean).join(" "),d=s({},a,e,{className:l,style:s({},a.style,e.style),children:e.children||a.children});f.useEffect(()=>t({[r]:d}),[e])}var yr=["as","render"],Oe=a=>{var{KeyName:e={}}=E();return F(e,a,"KeyName"),null};Oe.displayName="JVR.KeyName";var Ue=a=>{var{children:e,value:r,parentValue:t,keyName:l,keys:d}=a,v=typeof e=="number",i={color:v?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:o={}}=E(),{as:p,render:u}=o,c=h(o,yr);c.style=s({},c.style,i);var y=p||"span",m=u&&typeof u=="function"&&u(s({},c,{children:e}),{value:r,parentValue:t,keyName:l,keys:d||(l?[l]:[])});return m||n.jsx(y,s({},c,{children:e}))};Ue.displayName="JVR.KeyNameComp";var mr=["children","value","parentValue","keyName","keys"],fr=["as","render","children"],Pe=a=>{var{Row:e={}}=E();return F(e,a,"Row"),null};Pe.displayName="JVR.Row";var Qe=a=>{var{children:e,value:r,parentValue:t,keyName:l,keys:d}=a,v=h(a,mr),{Row:i={}}=E(),{as:o,render:p}=i,u=h(i,fr),c=o||"div",y=p&&typeof p=="function"&&p(s({},v,u,{children:e}),{value:r,keyName:l,parentValue:t,keys:d});return y||n.jsx(c,s({},v,u,{children:e}))};Qe.displayName="JVR.RowComp";function hr(a){var e=f.useRef();return f.useEffect(()=>{e.current=a}),e.current}function xr(a){var{value:e,highlightUpdates:r,highlightContainer:t}=a,l=hr(e),d=f.useMemo(()=>{if(!r||l===void 0)return!1;if(typeof e!=typeof l)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(l)?!1:e!==l;if(Array.isArray(e)!==Array.isArray(l))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==l)return!0},[r,e]);f.useEffect(()=>{t&&t.current&&d&&"animate"in t.current&&t.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[d,e,t])}var jr=["keyName","value","parentValue","expandKey","keys","beforeCopy"],Nr=["as","render"],ae=a=>{var{keyName:e,value:r,parentValue:t,expandKey:l,keys:d,beforeCopy:v}=a,i=h(a,jr),{onCopied:o,enableClipboard:p,beforeCopy:u}=A(),c=Sa(),y=c[l],[m,j]=f.useState(!1),{Copied:x={}}=E(),w=x?.beforeCopy;if(p===!1||!y)return null;var g=I=>{I.stopPropagation();var J="";typeof r=="number"&&r===1/0?J="Infinity":typeof r=="number"&&isNaN(r)?J="NaN":typeof r=="bigint"?J=z(r):r instanceof Date?J=r.toLocaleString():J=JSON.stringify(r,(K,O)=>typeof O=="bigint"?z(O):O,2);var $=v||w||u;$&&typeof $=="function"&&(J=$(J,e,r,t,l,d)),o&&o(J,r),j(!0);var P=navigator.clipboard||{writeText(K){return new Promise((O,ba)=>{var _=document.createElement("textarea");_.style.position="absolute",_.style.opacity="0",_.style.left="-99999999px",_.value=K,document.body.appendChild(_),_.select(),document.execCommand("copy")?O():ba(),_.remove()})}};P.writeText(J).then(()=>{var K=setTimeout(()=>{j(!1),clearTimeout(K)},3e3)}).catch(K=>{})},k={style:{display:"inline-flex"},fill:m?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:g},{render:b}=x,V=h(x,Nr),R=s({},V,i,k,{style:s({},V.style,i.style,k.style)}),T=b&&typeof b=="function",D=T&&b(s({},R,{"data-copied":m}),{value:r,keyName:e,keys:d,parentValue:t});return D||(m?n.jsx("svg",s({viewBox:"0 0 32 36"},R,{children:n.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):n.jsx("svg",s({viewBox:"0 0 32 36"},R,{children:n.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};ae.displayName="JVR.Copied";function Ze(){var a=f.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var ze=a=>{var e,{keyName:r,value:t,expandKey:l="",level:d,keys:v=[],parentValue:i}=a,o=Q(),{objectSortKeys:p,indentWidth:u,collapsed:c,shouldExpandNodeInitially:y}=A(),m=typeof c=="boolean"?c:typeof c=="number"?d>c:!1,j=(e=o[l])!=null?e:m,x=y&&y(j,{value:t,keys:v,level:d,keyName:r,parentValue:i});if(o[l]===void 0&&x||j)return null;var w=Array.isArray(t),g=w?Object.entries(t).map(b=>[Number(b[0]),b[1]]):Object.entries(t);p&&(g=p===!0?g.sort((b,V)=>{var[R]=b,[T]=V;return typeof R=="string"&&typeof T=="string"?R.localeCompare(T):0}):g.sort((b,V)=>{var[R,T]=b,[D,I]=V;return typeof R=="string"&&typeof D=="string"?p(R,D,T,I):0}));var k={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:u,marginLeft:6};return n.jsx("div",{className:"w-rjv-wrap",style:k,children:g.map((b,V)=>{var[R,T]=b;return n.jsx(qe,{parentValue:t,keyName:R,keys:[...v,R],value:T,level:d},V)})})};ze.displayName="JVR.KeyValues";var re=a=>{var{keyName:e,parentValue:r,keys:t,value:l}=a,{highlightUpdates:d}=A(),v=typeof e=="number",i=f.useRef(null);xr({value:l,highlightUpdates:d,highlightContainer:i});var o={keyName:e,value:l,keys:t,parentValue:r};return n.jsxs(f.Fragment,{children:[n.jsxs("span",{ref:i,children:[n.jsx(Z,s({isNumber:v,"data-placement":"left"},o)),n.jsx(Ue,s({},o,{children:e})),n.jsx(Z,s({isNumber:v,"data-placement":"right"},o))]}),n.jsx(be,s({},o))]})};re.displayName="JVR.KayName";var qe=a=>{var{keyName:e,value:r,parentValue:t,level:l=0,keys:d=[]}=a,v=ne(),i=Ze(),o=Array.isArray(r),p=r instanceof Set,u=r instanceof Map,c=r instanceof Date,y=r instanceof URL,m=r&&typeof r=="object"&&!o&&!p&&!u&&!c&&!y,j=m||o||p||u;if(j){var x=p?Array.from(r):u?Object.fromEntries(r):r;return n.jsx(te,{keyName:e,value:x,parentValue:t,initialValue:r,keys:d,level:l+1})}var w={onMouseEnter:()=>v({[i]:!0}),onMouseLeave:()=>v({[i]:!1})};return n.jsxs(Qe,s({className:"w-rjv-line",value:r,keyName:e,keys:d,parentValue:t},w,{children:[n.jsx(re,{keyName:e,value:r,keys:d,parentValue:t}),n.jsx(Ke,{keyName:e,value:r,keys:d}),n.jsx(ae,{keyName:e,value:r,keys:d,parentValue:t,expandKey:i})]}))};qe.displayName="JVR.KeyValuesItem";var Cr=["value","keyName"],wr=["as","render"],We=a=>{var{CountInfoExtra:e={}}=E();return F(e,a,"CountInfoExtra"),null};We.displayName="JVR.CountInfoExtra";var He=a=>{var{value:e={},keyName:r}=a,t=h(a,Cr),{CountInfoExtra:l={}}=E(),{as:d,render:v}=l,i=h(l,wr);if(!v&&!i.children)return null;var o=d||"span",p=v&&typeof v=="function",u=s({},i,t),c=p&&v(u,{value:e,keyName:r});return c||n.jsx(o,s({},u))};He.displayName="JVR.CountInfoExtraComps";var gr=["value","keyName"],br=["as","render"],Ge=a=>{var{CountInfo:e={}}=E();return F(e,a,"CountInfo"),null};Ge.displayName="JVR.CountInfo";var Xe=a=>{var{value:e={},keyName:r}=a,t=h(a,gr),{displayObjectSize:l}=A(),{CountInfo:d={}}=E();if(!l)return null;var{as:v,render:i}=d,o=h(d,br),p=v||"span";o.style=s({},o.style,a.style);var u=Object.keys(e).length;o.children||(o.children=u+" item"+(u===1?"":"s"));var c=s({},o,t),y=i&&typeof i=="function",m=y&&i(s({},c,{"data-length":u}),{value:e,keyName:r});return m||n.jsx(p,s({},c))};Xe.displayName="JVR.CountInfoComp";var kr=["as","render"],Ye=a=>{var{Ellipsis:e={}}=E();return F(e,a,"Ellipsis"),null};Ye.displayName="JVR.Ellipsis";var ea=a=>{var{isExpanded:e,value:r,keyName:t}=a,{Ellipsis:l={}}=E(),{as:d,render:v}=l,i=h(l,kr),o=d||"span",p=v&&typeof v=="function"&&v(s({},i,{"data-expanded":e}),{value:r,keyName:t});return p||(!e||typeof r=="object"&&Object.keys(r).length==0?null:n.jsx(o,s({},i)))};ea.displayName="JVR.EllipsisComp";var aa=a=>{var e,{keyName:r,expandKey:t,keys:l=[],initialValue:d,value:v,parentValue:i,level:o}=a,p=Q(),u=Ea(),{onExpand:c,collapsed:y,shouldExpandNodeInitially:m}=A(),j=typeof y=="boolean"?y:typeof y=="number"?o>y:!1,x=(e=p[t])!=null?e:j,w=m&&m(x,{value:v,keys:l,level:o,keyName:r,parentValue:i});p[t]===void 0&&m&&(x=!!w);var g=()=>{var P={expand:!x,value:v,keyid:t,keyName:r};c&&c(P),u({[t]:P.expand})},k={display:"inline-flex",alignItems:"center"},b={transform:"rotate("+(x?"-90":"0")+"deg)",transition:"all 0.3s"},V=Object.keys(v).length,R=typeof v=="object",T=Array.isArray(v),D=v instanceof Set,I=V!==0&&(T||D||R),J={style:k};I&&(J.onClick=g);var $={keyName:r,value:v,keys:l,parentValue:i};return n.jsxs("span",s({},J,{children:[I&&n.jsx(ke,s({style:b,expandKey:t},$)),(r||typeof r=="number")&&n.jsx(re,s({},$)),n.jsx(Se,{value:d,keyName:r}),n.jsx(Le,{value:d,keyName:r}),n.jsx(Re,s({isBrackets:T||D},$)),n.jsx(ea,{keyName:r,value:v,isExpanded:x}),n.jsx(ee,s({isVisiable:x||!I,isBrackets:T||D},$)),n.jsx(Xe,{value:v,keyName:r}),n.jsx(He,{value:v,keyName:r}),n.jsx(ae,{keyName:r,value:v,expandKey:t,parentValue:i,keys:l})]}))};aa.displayName="JVR.NestedOpen";var Rr=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],te=f.forwardRef((a,e)=>{var{className:r="",parentValue:t,level:l=1,value:d,initialValue:v,keys:i,keyName:o}=a,p=h(a,Rr),u=ne(),c=Ze(),y=[r,"w-rjv-inner"].filter(Boolean).join(" "),m={onMouseEnter:()=>u({[c]:!0}),onMouseLeave:()=>u({[c]:!1})};return n.jsxs("div",s({className:y,ref:e},p,m,{children:[n.jsx(aa,{expandKey:c,value:d,level:l,keys:i,parentValue:t,keyName:o,initialValue:v}),n.jsx(ze,{expandKey:c,value:d,level:l,keys:i,parentValue:t,keyName:o}),n.jsx(Ve,{expandKey:c,value:d,level:l,keys:i,parentValue:t,keyName:o})]}))});te.displayName="JVR.Container";var ra=a=>{var{BraceLeft:e={}}=S();return M(e,a,"BraceLeft"),null};ra.displayName="JVR.BraceLeft";var ta=a=>{var{BraceRight:e={}}=S();return M(e,a,"BraceRight"),null};ta.displayName="JVR.BraceRight";var la=a=>{var{BracketsLeft:e={}}=S();return M(e,a,"BracketsLeft"),null};la.displayName="JVR.BracketsLeft";var sa=a=>{var{BracketsRight:e={}}=S();return M(e,a,"BracketsRight"),null};sa.displayName="JVR.BracketsRight";var na=a=>{var{Arrow:e={}}=S();return M(e,a,"Arrow"),null};na.displayName="JVR.Arrow";var ia=a=>{var{Colon:e={}}=S();return M(e,a,"Colon"),null};ia.displayName="JVR.Colon";var oa=a=>{var{Quote:e={}}=S();return M(e,a,"Quote"),null};oa.displayName="JVR.Quote";var va=a=>{var{ValueQuote:e={}}=S();return M(e,a,"ValueQuote"),null};va.displayName="JVR.ValueQuote";var da=a=>{var{Bigint:e={}}=C();return L(e,a,"Bigint"),null};da.displayName="JVR.Bigint";var ua=a=>{var{Date:e={}}=C();return L(e,a,"Date"),null};ua.displayName="JVR.Date";var ca=a=>{var{False:e={}}=C();return L(e,a,"False"),null};ca.displayName="JVR.False";var pa=a=>{var{Float:e={}}=C();return L(e,a,"Float"),null};pa.displayName="JVR.Float";var ya=a=>{var{Int:e={}}=C();return L(e,a,"Int"),null};ya.displayName="JVR.Int";var ma=a=>{var{Map:e={}}=C();return L(e,a,"Map"),null};ma.displayName="JVR.Map";var fa=a=>{var{Nan:e={}}=C();return L(e,a,"Nan"),null};fa.displayName="JVR.Nan";var ha=a=>{var{Null:e={}}=C();return L(e,a,"Null"),null};ha.displayName="JVR.Null";var xa=a=>{var{Set:e={}}=C();return L(e,a,"Set"),null};xa.displayName="JVR.Set";var ja=a=>{var{Str:e={}}=C();return L(e,a,"Str"),null};ja.displayName="JVR.StringText";var Na=a=>{var{True:e={}}=C();return L(e,a,"True"),null};Na.displayName="JVR.True";var Ca=a=>{var{Undefined:e={}}=C();return L(e,a,"Undefined"),null};Ca.displayName="JVR.Undefined";var wa=a=>{var{Url:e={}}=C();return L(e,a,"Url"),null};wa.displayName="JVR.Url";var ga=a=>{var{Copied:e={}}=E();return F(e,a,"Copied"),null};ga.displayName="JVR.Copied";var Vr=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],N=f.forwardRef((a,e)=>{var{className:r="",style:t,value:l,children:d,collapsed:v,shouldExpandNodeInitially:i,indentWidth:o=15,displayObjectSize:p=!0,shortenTextAfterLength:u=30,stringEllipsis:c,highlightUpdates:y=!0,enableClipboard:m=!0,displayDataTypes:j=!0,objectSortKeys:x=!1,onExpand:w,onCopied:g,beforeCopy:k}=a,b=h(a,Vr),V=s({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},t),R=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return n.jsxs(ge,{initialState:{value:l,objectSortKeys:x,indentWidth:o,shouldExpandNodeInitially:i,displayObjectSize:p,collapsed:v,enableClipboard:m,shortenTextAfterLength:u,stringEllipsis:c,highlightUpdates:y,onCopied:g,onExpand:w,beforeCopy:k},initialTypes:{displayDataTypes:j},children:[n.jsx(te,s({value:l},b,{ref:e,className:R,style:V})),d]})});N.Bigint=da;N.Date=ua;N.False=ca;N.Float=pa;N.Int=ya;N.Map=ma;N.Nan=fa;N.Null=ha;N.Set=xa;N.String=ja;N.True=Na;N.Undefined=Ca;N.Url=wa;N.ValueQuote=va;N.Arrow=na;N.Colon=ia;N.Quote=oa;N.Ellipsis=Ye;N.BraceLeft=ra;N.BraceRight=ta;N.BracketsLeft=la;N.BracketsRight=sa;N.Copied=ga;N.CountInfo=Ge;N.CountInfoExtra=We;N.KeyName=Oe;N.Row=Pe;N.displayName="JVR.JsonView";var Sr={"--w-rjv-font-family":"monospace","--w-rjv-color":"#88c0d0","--w-rjv-key-string":"#88c0d0","--w-rjv-background-color":"#2e3440","--w-rjv-line-color":"#4c566a","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#c7c7c74d","--w-rjv-update-color":"#88c0cf75","--w-rjv-copied-color":"#119cc0","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8fbcbb","--w-rjv-colon-color":"#6d9fac","--w-rjv-brackets-color":"#8fbcbb","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a3be8c","--w-rjv-type-int-color":"#b48ead","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#b48ead","--w-rjv-type-boolean-color":"#d08770","--w-rjv-type-date-color":"#41a2c2","--w-rjv-type-url-color":"#5e81ac","--w-rjv-type-null-color":"#5e81ac","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const Jr=({data:a})=>{const[e,r]=f.useState(!1),t=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(a,null,2)),r(!0),setTimeout(()=>r(!1),2e3)}catch(l){console.error("Failed to copy: ",l)}};return n.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto overflow-y-visible relative",children:[n.jsx("div",{className:"absolute top-3 right-3 flex gap-2",children:n.jsx("button",{onClick:t,className:`p-1 rounded-md transition-colors ${e?"bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400":"bg-white text-neutral-500 hover:text-neutral-700 hover:bg-neutral-100 dark:bg-slate-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-slate-700"}`,title:e?"Copied!":"Copy to clipboard",children:e?n.jsx(ka,{size:14}):n.jsx(Ra,{size:14})})}),n.jsx("div",{className:"whitespace-pre-wrap pr-20 text-neutral-800 dark:text-neutral-200 min-h-10",children:typeof a=="string"||Array.isArray(a)?n.jsx("pre",{children:JSON.stringify(a,null,2)}):n.jsx(N,{value:a,enableClipboard:!1,style:Sr,collapsed:!1,displayDataTypes:!1,displayObjectSize:!1})})]})};export{Jr as default};
1
+ import{r as f,j as n}from"./index-Bg3-m46L.js";import{C as ka,a as Ra}from"./copy-CwmmSmiO.js";function s(){return s=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)({}).hasOwnProperty.call(r,t)&&(a[t]=r[t])}return a},s.apply(null,arguments)}function h(a,e){if(a==null)return{};var r={};for(var t in a)if({}.hasOwnProperty.call(a,t)){if(e.indexOf(t)!==-1)continue;r[t]=a[t]}return r}var le={},se=f.createContext(le),Va=(a,e)=>s({},a,e),Sa=()=>f.useContext(se),q=f.createContext(()=>{});q.displayName="JVR.DispatchShowTools";function La(){return f.useReducer(Va,le)}function ne(){return f.useContext(q)}var ie=a=>{var{initial:e,dispatch:r,children:t}=a;return n.jsx(se.Provider,{value:e,children:n.jsx(q.Provider,{value:r,children:t})})};ie.displayName="JVR.ShowTools";var oe={},ve=f.createContext(oe),Ta=(a,e)=>s({},a,e),Q=()=>f.useContext(ve),W=f.createContext(()=>{});W.displayName="JVR.DispatchExpands";function Ja(){return f.useReducer(Ta,oe)}function Ea(){return f.useContext(W)}var de=a=>{var{initial:e,dispatch:r,children:t}=a;return n.jsx(ve.Provider,{value:e,children:n.jsx(W.Provider,{value:r,children:t})})};de.displayName="JVR.Expands";var ue={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},ce=f.createContext(ue),Ba=(a,e)=>s({},a,e),C=()=>f.useContext(ce),H=f.createContext(()=>{});H.displayName="JVR.DispatchTypes";function Da(){return f.useReducer(Ba,ue)}function $a(){return f.useContext(H)}function pe(a){var{initial:e,dispatch:r,children:t}=a;return n.jsx(ce.Provider,{value:e,children:n.jsx(H.Provider,{value:r,children:t})})}pe.displayName="JVR.Types";var Ma=["style"];function ye(a){var{style:e}=a,r=h(a,Ma),t=s({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return n.jsx("svg",s({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:t},r,{children:n.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}ye.displayName="JVR.TriangleArrow";var me={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:n.jsx(ye,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},fe=f.createContext(me),Ia=(a,e)=>s({},a,e),S=()=>f.useContext(fe),G=f.createContext(()=>{});G.displayName="JVR.DispatchSymbols";function _a(){return f.useReducer(Ia,me)}function Aa(){return f.useContext(G)}var he=a=>{var{initial:e,dispatch:r,children:t}=a;return n.jsx(fe.Provider,{value:e,children:n.jsx(G.Provider,{value:r,children:t})})};he.displayName="JVR.Symbols";var xe={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},je=f.createContext(xe),Fa=(a,e)=>s({},a,e),E=()=>f.useContext(je),X=f.createContext(()=>{});X.displayName="JVR.DispatchSection";function Ka(){return f.useReducer(Fa,xe)}function Oa(){return f.useContext(X)}var Ne=a=>{var{initial:e,dispatch:r,children:t}=a;return n.jsx(je.Provider,{value:e,children:n.jsx(X.Provider,{value:r,children:t})})};Ne.displayName="JVR.Section";var Ce={objectSortKeys:!1,indentWidth:15},Y=f.createContext(Ce);Y.displayName="JVR.Context";var we=f.createContext(()=>{});we.displayName="JVR.DispatchContext";function Ua(a,e){return s({},a,e)}var A=()=>f.useContext(Y),ge=a=>{var{children:e,initialState:r,initialTypes:t}=a,[l,d]=f.useReducer(Ua,Object.assign({},Ce,r)),[v,i]=La(),[o,p]=Ja(),[u,c]=Da(),[y,m]=_a(),[j,x]=Ka();return f.useEffect(()=>d(s({},r)),[r]),n.jsx(Y.Provider,{value:l,children:n.jsx(we.Provider,{value:d,children:n.jsx(ie,{initial:v,dispatch:i,children:n.jsx(de,{initial:o,dispatch:p,children:n.jsx(pe,{initial:s({},u,t),dispatch:c,children:n.jsx(he,{initial:y,dispatch:m,children:n.jsx(Ne,{initial:j,dispatch:x,children:e})})})})})})})};ge.displayName="JVR.Provider";function Pa(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var Qa=["isNumber","value","parentValue","keyName","keys"],Za=["as","render"],za=["as","render"],qa=["as","render"],Wa=["as","style","render"],Ha=["as","render"],Ga=["as","render"],Xa=["as","render"],Ya=["as","render"],Z=a=>{var{Quote:e={}}=S(),{isNumber:r,value:t,parentValue:l,keyName:d,keys:v}=a,i=h(a,Qa);if(r)return null;var{as:o,render:p}=e,u=h(e,Za),c=o||"span",y=s({},i,u),m={value:t,parentValue:l,keyName:d,keys:v||(d?[d]:[])},j=p&&typeof p=="function"&&p(y,m);return j||n.jsx(c,s({},y))};Z.displayName="JVR.Quote";var U=a=>{var{ValueQuote:e={}}=S(),r=s({},(Pa(a),a)),{as:t,render:l}=e,d=h(e,za),v=t||"span",i=s({},r,d),o=l&&typeof l=="function"&&l(i,{});return o||n.jsx(v,s({},i))};U.displayName="JVR.ValueQuote";var be=a=>{var{value:e,parentValue:r,keyName:t,keys:l}=a,{Colon:d={}}=S(),{as:v,render:i}=d,o=h(d,qa),p=v||"span",u=i&&typeof i=="function"&&i(o,{value:e,parentValue:r,keyName:t,keys:l||(t?[t]:[])});return u||n.jsx(p,s({},o))};be.displayName="JVR.Colon";var ke=a=>{var{Arrow:e={}}=S(),r=Q(),{expandKey:t,style:l,value:d,parentValue:v,keyName:i,keys:o}=a,p=!!r[t],{as:u,style:c,render:y}=e,m=h(e,Wa),j=u||"span",x=y&&typeof y=="function",w=s({},m,{"data-expanded":p,style:s({},c,l)}),g={value:d,parentValue:v,keyName:i,keys:o||(i?[i]:[])},k=x&&y(w,g);return k||n.jsx(j,s({},m,{style:s({},c,l)}))};ke.displayName="JVR.Arrow";var Re=a=>{var{isBrackets:e,value:r,parentValue:t,keyName:l,keys:d}=a,{BracketsLeft:v={},BraceLeft:i={}}=S(),o={value:r,parentValue:t,keyName:l,keys:d||(l?[l]:[])};if(e){var{as:p,render:u}=v,c=h(v,Ha),y=p||"span",m=u&&typeof u=="function"&&u(c,o);return m||n.jsx(y,s({},c))}var{as:j,render:x}=i,w=h(i,Ga),g=j||"span",k=x&&typeof x=="function"&&x(w,o);return k||n.jsx(g,s({},w))};Re.displayName="JVR.BracketsOpen";var ee=a=>{var{isBrackets:e,isVisiable:r,value:t,parentValue:l,keyName:d,keys:v}=a,i={value:t,parentValue:l,keyName:d,keys:v||(d?[d]:[])};if(!r)return null;var{BracketsRight:o={},BraceRight:p={}}=S();if(e){var{as:u,render:c}=o,y=h(o,Xa),m=u||"span",j=c&&typeof c=="function"&&c(y,i);return j||n.jsx(m,s({},y))}var{as:x,render:w}=p,g=h(p,Ya),k=x||"span",b=w&&typeof w=="function"&&w(g,i);return b||n.jsx(k,s({},g))};ee.displayName="JVR.BracketsClose";var Ve=a=>{var e,{keyName:r,value:t,expandKey:l,parentValue:d,level:v,keys:i=[]}=a,o=Q(),{collapsed:p,shouldExpandNodeInitially:u}=A(),c=typeof p=="boolean"?p:typeof p=="number"?v>p:!1,y=(e=o[l])!=null?e:c,m=u&&u(y,{value:t,keys:i,level:v,keyName:r,parentValue:d});if(o[l]===void 0&&m)return null;var j=Object.keys(t).length;if(y||j===0)return null;var x={paddingLeft:4},w={keyName:r,value:t,keys:i,parentValue:d},g=Array.isArray(t),k=t instanceof Set;return n.jsx("div",{style:x,children:n.jsx(ee,s({isBrackets:g||k},w,{isVisiable:!0}))})};Ve.displayName="JVR.NestedClose";var er=["as","render"],ar=["as","render"],rr=["as","render"],tr=["as","render"],lr=["as","render"],sr=["as","render"],nr=["as","render"],ir=["as","render"],or=["as","render"],vr=["as","render"],dr=["as","render"],ur=["as","render"],cr=["as","render"],z=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Se=a=>{var{value:e,keyName:r}=a,{Set:t={},displayDataTypes:l}=C(),d=e instanceof Set;if(!d||!l)return null;var{as:v,render:i}=t,o=h(t,er),p=i&&typeof i=="function",u=p&&i(o,{type:"type",value:e,keyName:r});if(u)return u;var c=v||"span";return n.jsx(c,s({},o))};Se.displayName="JVR.SetComp";var Le=a=>{var{value:e,keyName:r}=a,{Map:t={},displayDataTypes:l}=C(),d=e instanceof Map;if(!d||!l)return null;var{as:v,render:i}=t,o=h(t,ar),p=i&&typeof i=="function",u=p&&i(o,{type:"type",value:e,keyName:r});if(u)return u;var c=v||"span";return n.jsx(c,s({},o))};Le.displayName="JVR.MapComp";var B={opacity:.75,paddingRight:4},Te=a=>{var{children:e="",keyName:r,keys:t}=a,{Str:l={},displayDataTypes:d}=C(),{shortenTextAfterLength:v=30,stringEllipsis:i="..."}=A(),{as:o,render:p}=l,u=h(l,rr),c=e,[y,m]=f.useState(v&&c.length>v);f.useEffect(()=>m(v&&c.length>v),[v]);var j=o||"span",x=s({},B,l.style||{});v>0&&(u.style=s({},u.style,{cursor:c.length<=v?"initial":"pointer"}),c.length>v&&(u.onClick=()=>{m(!y)}));var w=y?""+c.slice(0,v)+i:c,g=p&&typeof p=="function",k=g&&p(s({},u,{style:x}),{type:"type",value:e,keyName:r,keys:t}),b=y?"w-rjv-value w-rjv-value-short":"w-rjv-value",V=g&&p(s({},u,{children:w,className:b}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(k||n.jsx(j,s({},u,{style:x}))),V||n.jsxs(f.Fragment,{children:[n.jsx(U,{}),n.jsx(j,s({},u,{className:b,children:w})),n.jsx(U,{})]})]})};Te.displayName="JVR.TypeString";var Je=a=>{var{children:e,keyName:r,keys:t}=a,{True:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,tr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:e?.toString()}))]})};Je.displayName="JVR.TypeTrue";var Ee=a=>{var{children:e,keyName:r,keys:t}=a,{False:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,lr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:e?.toString()}))]})};Ee.displayName="JVR.TypeFalse";var Be=a=>{var{children:e,keyName:r,keys:t}=a,{Float:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,sr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:e?.toString()}))]})};Be.displayName="JVR.TypeFloat";var De=a=>{var{children:e,keyName:r,keys:t}=a,{Int:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,nr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:e?.toString()}))]})};De.displayName="JVR.TypeInt";var $e=a=>{var{children:e,keyName:r,keys:t}=a,{Bigint:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,ir),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsx(p,s({},o,{className:"w-rjv-value",children:z(e?.toString())}))]})};$e.displayName="JVR.TypeFloat";var Me=a=>{var{children:e,keyName:r,keys:t}=a,{Url:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,or),p=v||"span",u=s({},B,l.style),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e?.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m||n.jsxs("a",s({href:e?.href,target:"_blank"},o,{className:"w-rjv-value",children:[n.jsx(U,{}),e?.href,n.jsx(U,{})]}))]})};Me.displayName="JVR.TypeUrl";var Ie=a=>{var{children:e,keyName:r,keys:t}=a,{Date:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,vr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=e instanceof Date?e.toLocaleString():e,j=c&&i(s({},o,{children:m,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),j||n.jsx(p,s({},o,{className:"w-rjv-value",children:m}))]})};Ie.displayName="JVR.TypeDate";var _e=a=>{var{children:e,keyName:r,keys:t}=a,{Undefined:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,dr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m]})};_e.displayName="JVR.TypeUndefined";var Ae=a=>{var{children:e,keyName:r,keys:t}=a,{Null:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,ur),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m]})};Ae.displayName="JVR.TypeNull";var Fe=a=>{var{children:e,keyName:r,keys:t}=a,{Nan:l={},displayDataTypes:d}=C(),{as:v,render:i}=l,o=h(l,cr),p=v||"span",u=s({},B,l.style||{}),c=i&&typeof i=="function",y=c&&i(s({},o,{style:u}),{type:"type",value:e,keyName:r,keys:t}),m=c&&i(s({},o,{children:e?.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:r,keys:t});return n.jsxs(f.Fragment,{children:[d&&(y||n.jsx(p,s({},o,{style:u}))),m]})};Fe.displayName="JVR.TypeNan";var pr=a=>Number(a)===a&&a%1!==0||isNaN(a),Ke=a=>{var{value:e,keyName:r,keys:t}=a,l={keyName:r,keys:t};return e instanceof URL?n.jsx(Me,s({},l,{children:e})):typeof e=="string"?n.jsx(Te,s({},l,{children:e})):e===!0?n.jsx(Je,s({},l,{children:e})):e===!1?n.jsx(Ee,s({},l,{children:e})):e===null?n.jsx(Ae,s({},l,{children:e})):e===void 0?n.jsx(_e,s({},l,{children:e})):e instanceof Date?n.jsx(Ie,s({},l,{children:e})):typeof e=="number"&&isNaN(e)?n.jsx(Fe,s({},l,{children:e})):typeof e=="number"&&pr(e)?n.jsx(Be,s({},l,{children:e})):typeof e=="bigint"?n.jsx($e,s({},l,{children:e})):typeof e=="number"?n.jsx(De,s({},l,{children:e})):null};Ke.displayName="JVR.Value";function M(a,e,r){var t=Aa(),l=[a.className,e.className].filter(Boolean).join(" "),d=s({},a,e,{className:l,style:s({},a.style,e.style),children:e.children||a.children});f.useEffect(()=>t({[r]:d}),[e])}function L(a,e,r){var t=$a(),l=[a.className,e.className].filter(Boolean).join(" "),d=s({},a,e,{className:l,style:s({},a.style,e.style),children:e.children||a.children});f.useEffect(()=>t({[r]:d}),[e])}function F(a,e,r){var t=Oa(),l=[a.className,e.className].filter(Boolean).join(" "),d=s({},a,e,{className:l,style:s({},a.style,e.style),children:e.children||a.children});f.useEffect(()=>t({[r]:d}),[e])}var yr=["as","render"],Oe=a=>{var{KeyName:e={}}=E();return F(e,a,"KeyName"),null};Oe.displayName="JVR.KeyName";var Ue=a=>{var{children:e,value:r,parentValue:t,keyName:l,keys:d}=a,v=typeof e=="number",i={color:v?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:o={}}=E(),{as:p,render:u}=o,c=h(o,yr);c.style=s({},c.style,i);var y=p||"span",m=u&&typeof u=="function"&&u(s({},c,{children:e}),{value:r,parentValue:t,keyName:l,keys:d||(l?[l]:[])});return m||n.jsx(y,s({},c,{children:e}))};Ue.displayName="JVR.KeyNameComp";var mr=["children","value","parentValue","keyName","keys"],fr=["as","render","children"],Pe=a=>{var{Row:e={}}=E();return F(e,a,"Row"),null};Pe.displayName="JVR.Row";var Qe=a=>{var{children:e,value:r,parentValue:t,keyName:l,keys:d}=a,v=h(a,mr),{Row:i={}}=E(),{as:o,render:p}=i,u=h(i,fr),c=o||"div",y=p&&typeof p=="function"&&p(s({},v,u,{children:e}),{value:r,keyName:l,parentValue:t,keys:d});return y||n.jsx(c,s({},v,u,{children:e}))};Qe.displayName="JVR.RowComp";function hr(a){var e=f.useRef();return f.useEffect(()=>{e.current=a}),e.current}function xr(a){var{value:e,highlightUpdates:r,highlightContainer:t}=a,l=hr(e),d=f.useMemo(()=>{if(!r||l===void 0)return!1;if(typeof e!=typeof l)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(l)?!1:e!==l;if(Array.isArray(e)!==Array.isArray(l))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==l)return!0},[r,e]);f.useEffect(()=>{t&&t.current&&d&&"animate"in t.current&&t.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[d,e,t])}var jr=["keyName","value","parentValue","expandKey","keys","beforeCopy"],Nr=["as","render"],ae=a=>{var{keyName:e,value:r,parentValue:t,expandKey:l,keys:d,beforeCopy:v}=a,i=h(a,jr),{onCopied:o,enableClipboard:p,beforeCopy:u}=A(),c=Sa(),y=c[l],[m,j]=f.useState(!1),{Copied:x={}}=E(),w=x?.beforeCopy;if(p===!1||!y)return null;var g=I=>{I.stopPropagation();var J="";typeof r=="number"&&r===1/0?J="Infinity":typeof r=="number"&&isNaN(r)?J="NaN":typeof r=="bigint"?J=z(r):r instanceof Date?J=r.toLocaleString():J=JSON.stringify(r,(K,O)=>typeof O=="bigint"?z(O):O,2);var $=v||w||u;$&&typeof $=="function"&&(J=$(J,e,r,t,l,d)),o&&o(J,r),j(!0);var P=navigator.clipboard||{writeText(K){return new Promise((O,ba)=>{var _=document.createElement("textarea");_.style.position="absolute",_.style.opacity="0",_.style.left="-99999999px",_.value=K,document.body.appendChild(_),_.select(),document.execCommand("copy")?O():ba(),_.remove()})}};P.writeText(J).then(()=>{var K=setTimeout(()=>{j(!1),clearTimeout(K)},3e3)}).catch(K=>{})},k={style:{display:"inline-flex"},fill:m?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:g},{render:b}=x,V=h(x,Nr),R=s({},V,i,k,{style:s({},V.style,i.style,k.style)}),T=b&&typeof b=="function",D=T&&b(s({},R,{"data-copied":m}),{value:r,keyName:e,keys:d,parentValue:t});return D||(m?n.jsx("svg",s({viewBox:"0 0 32 36"},R,{children:n.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):n.jsx("svg",s({viewBox:"0 0 32 36"},R,{children:n.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};ae.displayName="JVR.Copied";function Ze(){var a=f.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var ze=a=>{var e,{keyName:r,value:t,expandKey:l="",level:d,keys:v=[],parentValue:i}=a,o=Q(),{objectSortKeys:p,indentWidth:u,collapsed:c,shouldExpandNodeInitially:y}=A(),m=typeof c=="boolean"?c:typeof c=="number"?d>c:!1,j=(e=o[l])!=null?e:m,x=y&&y(j,{value:t,keys:v,level:d,keyName:r,parentValue:i});if(o[l]===void 0&&x||j)return null;var w=Array.isArray(t),g=w?Object.entries(t).map(b=>[Number(b[0]),b[1]]):Object.entries(t);p&&(g=p===!0?g.sort((b,V)=>{var[R]=b,[T]=V;return typeof R=="string"&&typeof T=="string"?R.localeCompare(T):0}):g.sort((b,V)=>{var[R,T]=b,[D,I]=V;return typeof R=="string"&&typeof D=="string"?p(R,D,T,I):0}));var k={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:u,marginLeft:6};return n.jsx("div",{className:"w-rjv-wrap",style:k,children:g.map((b,V)=>{var[R,T]=b;return n.jsx(qe,{parentValue:t,keyName:R,keys:[...v,R],value:T,level:d},V)})})};ze.displayName="JVR.KeyValues";var re=a=>{var{keyName:e,parentValue:r,keys:t,value:l}=a,{highlightUpdates:d}=A(),v=typeof e=="number",i=f.useRef(null);xr({value:l,highlightUpdates:d,highlightContainer:i});var o={keyName:e,value:l,keys:t,parentValue:r};return n.jsxs(f.Fragment,{children:[n.jsxs("span",{ref:i,children:[n.jsx(Z,s({isNumber:v,"data-placement":"left"},o)),n.jsx(Ue,s({},o,{children:e})),n.jsx(Z,s({isNumber:v,"data-placement":"right"},o))]}),n.jsx(be,s({},o))]})};re.displayName="JVR.KayName";var qe=a=>{var{keyName:e,value:r,parentValue:t,level:l=0,keys:d=[]}=a,v=ne(),i=Ze(),o=Array.isArray(r),p=r instanceof Set,u=r instanceof Map,c=r instanceof Date,y=r instanceof URL,m=r&&typeof r=="object"&&!o&&!p&&!u&&!c&&!y,j=m||o||p||u;if(j){var x=p?Array.from(r):u?Object.fromEntries(r):r;return n.jsx(te,{keyName:e,value:x,parentValue:t,initialValue:r,keys:d,level:l+1})}var w={onMouseEnter:()=>v({[i]:!0}),onMouseLeave:()=>v({[i]:!1})};return n.jsxs(Qe,s({className:"w-rjv-line",value:r,keyName:e,keys:d,parentValue:t},w,{children:[n.jsx(re,{keyName:e,value:r,keys:d,parentValue:t}),n.jsx(Ke,{keyName:e,value:r,keys:d}),n.jsx(ae,{keyName:e,value:r,keys:d,parentValue:t,expandKey:i})]}))};qe.displayName="JVR.KeyValuesItem";var Cr=["value","keyName"],wr=["as","render"],We=a=>{var{CountInfoExtra:e={}}=E();return F(e,a,"CountInfoExtra"),null};We.displayName="JVR.CountInfoExtra";var He=a=>{var{value:e={},keyName:r}=a,t=h(a,Cr),{CountInfoExtra:l={}}=E(),{as:d,render:v}=l,i=h(l,wr);if(!v&&!i.children)return null;var o=d||"span",p=v&&typeof v=="function",u=s({},i,t),c=p&&v(u,{value:e,keyName:r});return c||n.jsx(o,s({},u))};He.displayName="JVR.CountInfoExtraComps";var gr=["value","keyName"],br=["as","render"],Ge=a=>{var{CountInfo:e={}}=E();return F(e,a,"CountInfo"),null};Ge.displayName="JVR.CountInfo";var Xe=a=>{var{value:e={},keyName:r}=a,t=h(a,gr),{displayObjectSize:l}=A(),{CountInfo:d={}}=E();if(!l)return null;var{as:v,render:i}=d,o=h(d,br),p=v||"span";o.style=s({},o.style,a.style);var u=Object.keys(e).length;o.children||(o.children=u+" item"+(u===1?"":"s"));var c=s({},o,t),y=i&&typeof i=="function",m=y&&i(s({},c,{"data-length":u}),{value:e,keyName:r});return m||n.jsx(p,s({},c))};Xe.displayName="JVR.CountInfoComp";var kr=["as","render"],Ye=a=>{var{Ellipsis:e={}}=E();return F(e,a,"Ellipsis"),null};Ye.displayName="JVR.Ellipsis";var ea=a=>{var{isExpanded:e,value:r,keyName:t}=a,{Ellipsis:l={}}=E(),{as:d,render:v}=l,i=h(l,kr),o=d||"span",p=v&&typeof v=="function"&&v(s({},i,{"data-expanded":e}),{value:r,keyName:t});return p||(!e||typeof r=="object"&&Object.keys(r).length==0?null:n.jsx(o,s({},i)))};ea.displayName="JVR.EllipsisComp";var aa=a=>{var e,{keyName:r,expandKey:t,keys:l=[],initialValue:d,value:v,parentValue:i,level:o}=a,p=Q(),u=Ea(),{onExpand:c,collapsed:y,shouldExpandNodeInitially:m}=A(),j=typeof y=="boolean"?y:typeof y=="number"?o>y:!1,x=(e=p[t])!=null?e:j,w=m&&m(x,{value:v,keys:l,level:o,keyName:r,parentValue:i});p[t]===void 0&&m&&(x=!!w);var g=()=>{var P={expand:!x,value:v,keyid:t,keyName:r};c&&c(P),u({[t]:P.expand})},k={display:"inline-flex",alignItems:"center"},b={transform:"rotate("+(x?"-90":"0")+"deg)",transition:"all 0.3s"},V=Object.keys(v).length,R=typeof v=="object",T=Array.isArray(v),D=v instanceof Set,I=V!==0&&(T||D||R),J={style:k};I&&(J.onClick=g);var $={keyName:r,value:v,keys:l,parentValue:i};return n.jsxs("span",s({},J,{children:[I&&n.jsx(ke,s({style:b,expandKey:t},$)),(r||typeof r=="number")&&n.jsx(re,s({},$)),n.jsx(Se,{value:d,keyName:r}),n.jsx(Le,{value:d,keyName:r}),n.jsx(Re,s({isBrackets:T||D},$)),n.jsx(ea,{keyName:r,value:v,isExpanded:x}),n.jsx(ee,s({isVisiable:x||!I,isBrackets:T||D},$)),n.jsx(Xe,{value:v,keyName:r}),n.jsx(He,{value:v,keyName:r}),n.jsx(ae,{keyName:r,value:v,expandKey:t,parentValue:i,keys:l})]}))};aa.displayName="JVR.NestedOpen";var Rr=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],te=f.forwardRef((a,e)=>{var{className:r="",parentValue:t,level:l=1,value:d,initialValue:v,keys:i,keyName:o}=a,p=h(a,Rr),u=ne(),c=Ze(),y=[r,"w-rjv-inner"].filter(Boolean).join(" "),m={onMouseEnter:()=>u({[c]:!0}),onMouseLeave:()=>u({[c]:!1})};return n.jsxs("div",s({className:y,ref:e},p,m,{children:[n.jsx(aa,{expandKey:c,value:d,level:l,keys:i,parentValue:t,keyName:o,initialValue:v}),n.jsx(ze,{expandKey:c,value:d,level:l,keys:i,parentValue:t,keyName:o}),n.jsx(Ve,{expandKey:c,value:d,level:l,keys:i,parentValue:t,keyName:o})]}))});te.displayName="JVR.Container";var ra=a=>{var{BraceLeft:e={}}=S();return M(e,a,"BraceLeft"),null};ra.displayName="JVR.BraceLeft";var ta=a=>{var{BraceRight:e={}}=S();return M(e,a,"BraceRight"),null};ta.displayName="JVR.BraceRight";var la=a=>{var{BracketsLeft:e={}}=S();return M(e,a,"BracketsLeft"),null};la.displayName="JVR.BracketsLeft";var sa=a=>{var{BracketsRight:e={}}=S();return M(e,a,"BracketsRight"),null};sa.displayName="JVR.BracketsRight";var na=a=>{var{Arrow:e={}}=S();return M(e,a,"Arrow"),null};na.displayName="JVR.Arrow";var ia=a=>{var{Colon:e={}}=S();return M(e,a,"Colon"),null};ia.displayName="JVR.Colon";var oa=a=>{var{Quote:e={}}=S();return M(e,a,"Quote"),null};oa.displayName="JVR.Quote";var va=a=>{var{ValueQuote:e={}}=S();return M(e,a,"ValueQuote"),null};va.displayName="JVR.ValueQuote";var da=a=>{var{Bigint:e={}}=C();return L(e,a,"Bigint"),null};da.displayName="JVR.Bigint";var ua=a=>{var{Date:e={}}=C();return L(e,a,"Date"),null};ua.displayName="JVR.Date";var ca=a=>{var{False:e={}}=C();return L(e,a,"False"),null};ca.displayName="JVR.False";var pa=a=>{var{Float:e={}}=C();return L(e,a,"Float"),null};pa.displayName="JVR.Float";var ya=a=>{var{Int:e={}}=C();return L(e,a,"Int"),null};ya.displayName="JVR.Int";var ma=a=>{var{Map:e={}}=C();return L(e,a,"Map"),null};ma.displayName="JVR.Map";var fa=a=>{var{Nan:e={}}=C();return L(e,a,"Nan"),null};fa.displayName="JVR.Nan";var ha=a=>{var{Null:e={}}=C();return L(e,a,"Null"),null};ha.displayName="JVR.Null";var xa=a=>{var{Set:e={}}=C();return L(e,a,"Set"),null};xa.displayName="JVR.Set";var ja=a=>{var{Str:e={}}=C();return L(e,a,"Str"),null};ja.displayName="JVR.StringText";var Na=a=>{var{True:e={}}=C();return L(e,a,"True"),null};Na.displayName="JVR.True";var Ca=a=>{var{Undefined:e={}}=C();return L(e,a,"Undefined"),null};Ca.displayName="JVR.Undefined";var wa=a=>{var{Url:e={}}=C();return L(e,a,"Url"),null};wa.displayName="JVR.Url";var ga=a=>{var{Copied:e={}}=E();return F(e,a,"Copied"),null};ga.displayName="JVR.Copied";var Vr=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],N=f.forwardRef((a,e)=>{var{className:r="",style:t,value:l,children:d,collapsed:v,shouldExpandNodeInitially:i,indentWidth:o=15,displayObjectSize:p=!0,shortenTextAfterLength:u=30,stringEllipsis:c,highlightUpdates:y=!0,enableClipboard:m=!0,displayDataTypes:j=!0,objectSortKeys:x=!1,onExpand:w,onCopied:g,beforeCopy:k}=a,b=h(a,Vr),V=s({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},t),R=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return n.jsxs(ge,{initialState:{value:l,objectSortKeys:x,indentWidth:o,shouldExpandNodeInitially:i,displayObjectSize:p,collapsed:v,enableClipboard:m,shortenTextAfterLength:u,stringEllipsis:c,highlightUpdates:y,onCopied:g,onExpand:w,beforeCopy:k},initialTypes:{displayDataTypes:j},children:[n.jsx(te,s({value:l},b,{ref:e,className:R,style:V})),d]})});N.Bigint=da;N.Date=ua;N.False=ca;N.Float=pa;N.Int=ya;N.Map=ma;N.Nan=fa;N.Null=ha;N.Set=xa;N.String=ja;N.True=Na;N.Undefined=Ca;N.Url=wa;N.ValueQuote=va;N.Arrow=na;N.Colon=ia;N.Quote=oa;N.Ellipsis=Ye;N.BraceLeft=ra;N.BraceRight=ta;N.BracketsLeft=la;N.BracketsRight=sa;N.Copied=ga;N.CountInfo=Ge;N.CountInfoExtra=We;N.KeyName=Oe;N.Row=Pe;N.displayName="JVR.JsonView";var Sr={"--w-rjv-font-family":"monospace","--w-rjv-color":"#88c0d0","--w-rjv-key-string":"#88c0d0","--w-rjv-background-color":"#2e3440","--w-rjv-line-color":"#4c566a","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#c7c7c74d","--w-rjv-update-color":"#88c0cf75","--w-rjv-copied-color":"#119cc0","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8fbcbb","--w-rjv-colon-color":"#6d9fac","--w-rjv-brackets-color":"#8fbcbb","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a3be8c","--w-rjv-type-int-color":"#b48ead","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#b48ead","--w-rjv-type-boolean-color":"#d08770","--w-rjv-type-date-color":"#41a2c2","--w-rjv-type-url-color":"#5e81ac","--w-rjv-type-null-color":"#5e81ac","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const Jr=({data:a})=>{const[e,r]=f.useState(!1),t=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(a,null,2)),r(!0),setTimeout(()=>r(!1),2e3)}catch(l){console.error("Failed to copy: ",l)}};return n.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto overflow-y-visible relative",children:[n.jsx("div",{className:"absolute top-3 right-3 flex gap-2",children:n.jsx("button",{onClick:t,className:`p-1 rounded-md transition-colors ${e?"bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400":"bg-white text-neutral-500 hover:text-neutral-700 hover:bg-neutral-100 dark:bg-slate-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-slate-700"}`,title:e?"Copied!":"Copy to clipboard",children:e?n.jsx(ka,{size:14}):n.jsx(Ra,{size:14})})}),n.jsx("div",{className:"whitespace-pre-wrap pr-20 text-neutral-800 dark:text-neutral-200 min-h-10",children:typeof a=="string"||Array.isArray(a)?n.jsx("pre",{children:JSON.stringify(a,null,2)}):n.jsx(N,{value:a,enableClipboard:!1,style:Sr,collapsed:!1,displayDataTypes:!1,displayObjectSize:!1})})]})};export{Jr as default};
@@ -1 +1 @@
1
- import{j as o}from"./index-TW_-MgRG.js";import{t}from"./Table-kak5sL5X.js";function n({paginatedPage:r}){return r.hasMore?o.jsx("div",{className:"flex justify-center p-4",children:o.jsx("button",{onClick:r.loadMore,disabled:r.loading,className:t("px-4 py-2 rounded-md bg-gray-200 text-gray-800 dark:bg-neutral-800 dark:text-white text-sm hover:bg-gray-300 dark:hover:bg-neutral-700 transition-colors",r.loading&&"opacity-50 cursor-not-allowed"),children:r.loading?"Loading...":"Load More"})}):null}export{n as L};
1
+ import{j as o}from"./index-Bg3-m46L.js";import{t}from"./Table-C3Y9tdtZ.js";function n({paginatedPage:r}){return r.hasMore?o.jsx("div",{className:"flex justify-center p-4",children:o.jsx("button",{onClick:r.loadMore,disabled:r.loading,className:t("px-4 py-2 rounded-md bg-gray-200 text-gray-800 dark:bg-neutral-800 dark:text-white text-sm hover:bg-gray-300 dark:hover:bg-neutral-700 transition-colors",r.loading&&"opacity-50 cursor-not-allowed"),children:r.loading?"Loading...":"Load More"})}):null}export{n as L};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./QueryTable-BE7RpCNw.js","./index-Bg3-m46L.js","./index-CsnKQ5Mh.css","./LoadMore-DkgyLoiB.js","./Table-C3Y9tdtZ.js","./columns-BGeHl5-C.js","./index-BRRKsoNv.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,j as s,_ as a}from"./index-Bg3-m46L.js";import{u as i}from"./useQueries-D29NRLfq.js";import{u}from"./useLoadMore-BA_-_Tw4.js";import"./useLensApi-CI65OdmI.js";const m=e.lazy(()=>a(()=>import("./QueryTable-BE7RpCNw.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),f=()=>{const{loadMoreRequests:r,fetchQueries:t}=i(),o=u({paginatedPage:r});return e.useEffect(()=>{t()},[]),s.jsx(m,{hasMoreObject:o})};export{f as default};
@@ -1,4 +1,4 @@
1
- import{j as N,r as D,o as Yt,L as Ht,q as Jt,k as Zt,m as te}from"./index-TW_-MgRG.js";import{u as ee}from"./useQueries-CNquFtm0.js";import{D as ie,T as se}from"./TabbedDataViewer-ofhEq_Wj.js";import{f as ne}from"./index-BRRKsoNv.js";import{C as zt,a as qt}from"./copy-DzXuP4eO.js";import"./useLensApi-BFdsfrzR.js";const _e=["db","find","insertOne","insertMany","updateOne","updateMany","deleteOne","deleteMany","aggregate","project","match","group","sort","limit","skip","$match","$project","$group","$sort","$limit","$skip","$and","$or","$eq","$ne","$in","$nin"],ae=["SELECT","FROM","WHERE","JOIN","INNER","LEFT","RIGHT","OUTER","FULL","ON","AND","OR","NOT","IN","EXISTS","BETWEEN","LIKE","IS","NULL","INSERT","INTO","VALUES","UPDATE","SET","DELETE","CREATE","TABLE","ALTER","DROP","INDEX","PRIMARY","KEY","FOREIGN","REFERENCES","CONSTRAINT","UNIQUE","CHECK","DEFAULT","AUTO_INCREMENT","IDENTITY","GROUP","BY","HAVING","ORDER","ASC","DESC","LIMIT","OFFSET","UNION","ALL","DISTINCT","COUNT","SUM","AVG","MIN","MAX","CASE","WHEN","THEN","ELSE","END","IF","IFNULL","COALESCE","CAST","CONVERT","SUBSTRING","LENGTH","UPPER","LOWER","TRIM"],re=["NOW","CURRENT_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","DATE","TIME","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND"],ue=["VARCHAR","CHAR","TEXT","INT","INTEGER","BIGINT","SMALLINT","TINYINT","DECIMAL","NUMERIC","FLOAT","DOUBLE","REAL","BIT","BOOLEAN","BOOL","DATE","TIME","DATETIME","TIMESTAMP","YEAR","BINARY","VARBINARY","BLOB","CLOB","JSON","UUID"];function oe(p){return p.split(/(\s+|[{}[\]()=,:])/).map((s,e)=>s.trim()?/^['"`].*['"`]$/.test(s)?N.jsx("span",{className:"text-green-600 dark:text-green-400",children:s},e):/^\d+\.?\d*$/.test(s)?N.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:s},e):_e.includes(s)?N.jsx("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:s},e):N.jsx("span",{children:s},e):N.jsx("span",{children:s},e))}function le(p){return p.split(/(\s+|[(),;]|'[^']*'|"[^"]*"|\b\d+\.?\d*\b|--[^\n]*|\/\*[\s\S]*?\*\/)/).map((s,e)=>{const n=s.trim();return n?s.startsWith("'")&&s.endsWith("'")||s.startsWith('"')&&s.endsWith('"')?N.jsx("span",{className:"text-green-600 dark:text-green-400",children:s},e):/^\d+\.?\d*$/.test(n)?N.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:s},e):s.startsWith("--")||s.startsWith("/*")&&s.endsWith("*/")?N.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:s},e):ae.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:s.toUpperCase()},e):re.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-purple-600 dark:text-purple-400",children:s.toUpperCase()},e):ue.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-indigo-600 dark:text-indigo-400",children:s.toUpperCase()},e):N.jsx("span",{children:s},e):N.jsx("span",{children:s},e)})}const he=({sql:p})=>{const[h,s]=D.useState(!1),e=async()=>{try{await navigator.clipboard.writeText(p),s(!0),setTimeout(()=>s(!1),2e3)}catch(_){console.error("Failed to copy: ",_)}},n=D.useMemo(()=>le(p),[p]);return N.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto relative",children:[N.jsx("button",{onClick:e,className:`absolute top-3 right-3 p-2 rounded-md transition-colors ${h?"bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400":"bg-white text-neutral-500 hover:text-neutral-700 hover:bg-neutral-100 dark:bg-slate-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-slate-700"}`,title:h?"Copied!":"Copy to clipboard",children:h?N.jsx(zt,{size:16}):N.jsx(qt,{size:16})}),N.jsx("pre",{className:"whitespace-pre-wrap pr-12 text-neutral-800 dark:text-neutral-200",children:n})]})};var Q={exports:{}},B={},U={exports:{}},Y={},H={},mt;function ht(){if(mt)return H;mt=1;function p(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var e=new p(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},p.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},p.prototype.has_match=function(e){for(var n=this.__items.length-1;n>=0;n--)if(this.__items[n].match(e))return!0;return!1},p.prototype.set_indent=function(e,n){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=n||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(e){this.__items.push(e);var n=e.lastIndexOf(`
1
+ import{j as N,r as D,o as Yt,L as Ht,q as Jt,k as Zt,m as te}from"./index-Bg3-m46L.js";import{u as ee}from"./useQueries-D29NRLfq.js";import{D as ie,T as se}from"./TabbedDataViewer-CJN6R11V.js";import{f as ne}from"./index-BRRKsoNv.js";import{C as zt,a as qt}from"./copy-CwmmSmiO.js";import"./useLensApi-CI65OdmI.js";const _e=["db","find","insertOne","insertMany","updateOne","updateMany","deleteOne","deleteMany","aggregate","project","match","group","sort","limit","skip","$match","$project","$group","$sort","$limit","$skip","$and","$or","$eq","$ne","$in","$nin"],ae=["SELECT","FROM","WHERE","JOIN","INNER","LEFT","RIGHT","OUTER","FULL","ON","AND","OR","NOT","IN","EXISTS","BETWEEN","LIKE","IS","NULL","INSERT","INTO","VALUES","UPDATE","SET","DELETE","CREATE","TABLE","ALTER","DROP","INDEX","PRIMARY","KEY","FOREIGN","REFERENCES","CONSTRAINT","UNIQUE","CHECK","DEFAULT","AUTO_INCREMENT","IDENTITY","GROUP","BY","HAVING","ORDER","ASC","DESC","LIMIT","OFFSET","UNION","ALL","DISTINCT","COUNT","SUM","AVG","MIN","MAX","CASE","WHEN","THEN","ELSE","END","IF","IFNULL","COALESCE","CAST","CONVERT","SUBSTRING","LENGTH","UPPER","LOWER","TRIM"],re=["NOW","CURRENT_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","DATE","TIME","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND"],ue=["VARCHAR","CHAR","TEXT","INT","INTEGER","BIGINT","SMALLINT","TINYINT","DECIMAL","NUMERIC","FLOAT","DOUBLE","REAL","BIT","BOOLEAN","BOOL","DATE","TIME","DATETIME","TIMESTAMP","YEAR","BINARY","VARBINARY","BLOB","CLOB","JSON","UUID"];function oe(p){return p.split(/(\s+|[{}[\]()=,:])/).map((s,e)=>s.trim()?/^['"`].*['"`]$/.test(s)?N.jsx("span",{className:"text-green-600 dark:text-green-400",children:s},e):/^\d+\.?\d*$/.test(s)?N.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:s},e):_e.includes(s)?N.jsx("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:s},e):N.jsx("span",{children:s},e):N.jsx("span",{children:s},e))}function le(p){return p.split(/(\s+|[(),;]|'[^']*'|"[^"]*"|\b\d+\.?\d*\b|--[^\n]*|\/\*[\s\S]*?\*\/)/).map((s,e)=>{const n=s.trim();return n?s.startsWith("'")&&s.endsWith("'")||s.startsWith('"')&&s.endsWith('"')?N.jsx("span",{className:"text-green-600 dark:text-green-400",children:s},e):/^\d+\.?\d*$/.test(n)?N.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:s},e):s.startsWith("--")||s.startsWith("/*")&&s.endsWith("*/")?N.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:s},e):ae.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:s.toUpperCase()},e):re.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-purple-600 dark:text-purple-400",children:s.toUpperCase()},e):ue.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-indigo-600 dark:text-indigo-400",children:s.toUpperCase()},e):N.jsx("span",{children:s},e):N.jsx("span",{children:s},e)})}const he=({sql:p})=>{const[h,s]=D.useState(!1),e=async()=>{try{await navigator.clipboard.writeText(p),s(!0),setTimeout(()=>s(!1),2e3)}catch(_){console.error("Failed to copy: ",_)}},n=D.useMemo(()=>le(p),[p]);return N.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto relative",children:[N.jsx("button",{onClick:e,className:`absolute top-3 right-3 p-2 rounded-md transition-colors ${h?"bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400":"bg-white text-neutral-500 hover:text-neutral-700 hover:bg-neutral-100 dark:bg-slate-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-slate-700"}`,title:h?"Copied!":"Copy to clipboard",children:h?N.jsx(zt,{size:16}):N.jsx(qt,{size:16})}),N.jsx("pre",{className:"whitespace-pre-wrap pr-12 text-neutral-800 dark:text-neutral-200",children:n})]})};var Q={exports:{}},B={},U={exports:{}},Y={},H={},mt;function ht(){if(mt)return H;mt=1;function p(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var e=new p(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},p.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},p.prototype.has_match=function(e){for(var n=this.__items.length-1;n>=0;n--)if(this.__items[n].match(e))return!0;return!1},p.prototype.set_indent=function(e,n){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=n||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(e){this.__items.push(e);var n=e.lastIndexOf(`
2
2
  `);n!==-1?this.__character_count=e.length-n:this.__character_count+=e.length},p.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function h(e,n){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),n=n||"",e.indent_level>0&&(n=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=n,this.__base_string_length=n.length}h.prototype.get_indent_size=function(e,n){var _=this.__base_string_length;return n=n||0,e<0&&(_=0),_+=e*this.__indent_size,_+=n,_},h.prototype.get_indent_string=function(e,n){var _=this.__base_string;return n=n||0,e<0&&(e=0,_=""),n+=e*this.__indent_size,this.__ensure_cache(n),_+=this.__cache[n],_},h.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},h.prototype.__add_column=function(){var e=this.__cache.length,n=0,_="";this.__indent_size&&e>=this.__indent_size&&(n=Math.floor(e/this.__indent_size),e-=n*this.__indent_size,_=new Array(n+1).join(this.__indent_string)),e&&(_+=new Array(e+1).join(" ")),this.__cache.push(_)};function s(e,n){this.__indent_cache=new h(e,n),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(e,n){return this.__indent_cache.get_indent_string(e,n)},s.prototype.get_indent_size=function(e,n){return this.__indent_cache.get_indent_size(e,n)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(e){this.trim(!0);var n=this.current_line.pop();n&&(n[n.length-1]===`
3
3
  `&&(n=n.replace(/\n+$/g,"")),this.current_line.push(n)),this._end_with_newline&&this.__add_outputline();var _=this.__lines.join(`
4
4
  `);return e!==`
@@ -1 +1 @@
1
- import{j as a}from"./index-TW_-MgRG.js";import{L as s}from"./LoadMore-CLPR6Zd4.js";import{T as r}from"./Table-kak5sL5X.js";import{g as t}from"./columns-Bu5psHyp.js";import"./index-BRRKsoNv.js";const n=({hasMoreObject:o})=>a.jsxs("div",{className:"w-full",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsx(r,{columns:t(),data:o.data})}),a.jsx(s,{paginatedPage:o})]});export{n as default};
1
+ import{j as a}from"./index-Bg3-m46L.js";import{L as s}from"./LoadMore-DkgyLoiB.js";import{T as r}from"./Table-C3Y9tdtZ.js";import{g as t}from"./columns-BGeHl5-C.js";import"./index-BRRKsoNv.js";const n=({hasMoreObject:o})=>a.jsxs("div",{className:"w-full",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsx(r,{columns:t(),data:o.data})}),a.jsx(s,{paginatedPage:o})]});export{n as default};
@@ -1 +1 @@
1
- import{r as n,j as e}from"./index-TW_-MgRG.js";import{D as r,T as o}from"./TabbedDataViewer-ofhEq_Wj.js";import{T as d}from"./Table-kak5sL5X.js";import{g as i}from"./columns-Bu5psHyp.js";import{g as m}from"./columns-BEyDhUNq.js";import{g as u}from"./columns-BvIUTkjN.js";import{f as c}from"./index-BRRKsoNv.js";import{R as x,S as b}from"./StatusCode-C605nHvd.js";import"./CacheActionBadge-BB4uokI1.js";const h=({request:a})=>{const t=n.useMemo(()=>c(a?.request.data?.createdAt),[a?.request.data.createdAt]);if(!a||!a.request)return e.jsx(r,{title:"Request Details",items:[],emptyMessage:"No request data available"});const s=()=>a?.request.data?.headers?.host||"Unknown",l=n.useMemo(()=>[{label:"Time",value:t,className:"text-gray-900 dark:text-gray-100"},{label:"Hostname",value:s(),className:"text-gray-900 dark:text-gray-100 font-mono"},{label:"Method",value:a.request.data.method?e.jsx(x,{method:a.request.data.method}):"Unknown"},{label:"Request ID",value:a.request.data.id||"N/A",className:"text-gray-700 dark:text-gray-300 font-mono text-sm"},{label:"Path",value:a.request.data.path||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"},{label:"Status",value:a.request.data.status?e.jsx(b,{status:a.request.data.status}):"N/A"},{label:"Duration",value:a.request.data.duration||"N/A",className:"text-gray-900 dark:text-gray-100 font-medium"},{label:"IP Address",value:a.request.data.ip||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"}],[a.request.data,t]);return e.jsx(r,{title:"Request Details",items:l})},A=({request:a})=>{const t=[{id:"payload",label:"Payload",data:a?.request?.data?.body},{id:"headers",label:"Headers",data:a?.request?.data?.headers}],s=[{id:"response-body",label:"Body",data:a?.request?.data?.response?.json},{id:"response-headers",label:"Headers",data:a?.request?.data?.response?.headers}],l=[{id:"request-exceptions",label:`Exceptions (${a.exceptions.length})`,shouldShow:a.exceptions.length>0,content:e.jsx(d,{columns:m(),data:a.exceptions})},{id:"request-queries",label:`Queries (${a?.queries?.length})`,shouldShow:a?.queries?.length>0,content:e.jsx(d,{columns:i(),data:a?.queries})},{id:"request-cache",label:`Cache (${a?.cacheEntries.length})`,shouldShow:a?.cacheEntries.length>0,content:e.jsx(d,{columns:u(),data:a?.cacheEntries})}];return e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(h,{request:a}),a?.request?.data?.user&&e.jsx(r,{title:"User",items:[{label:"ID",value:a?.request?.data?.user?.id},{label:"Email",value:a?.request?.data?.user?.email},{label:"Name",value:a?.request?.data?.user?.name}]}),e.jsx(o,{tabs:t,title:"Request Data",defaultActiveTab:"payload"}),e.jsx(o,{tabs:s,title:"Response Data",defaultActiveTab:"response-body"}),e.jsx(o,{tabs:l})]})};export{A as default};
1
+ import{r as n,j as e}from"./index-Bg3-m46L.js";import{D as r,T as o}from"./TabbedDataViewer-CJN6R11V.js";import{T as d}from"./Table-C3Y9tdtZ.js";import{g as i}from"./columns-BGeHl5-C.js";import{g as m}from"./columns-5NhbdeuI.js";import{g as u}from"./columns-oQrpcTou.js";import{f as c}from"./index-BRRKsoNv.js";import{R as x,S as b}from"./StatusCode-D5gEbxbO.js";import"./CacheActionBadge-B0d8J3l3.js";const h=({request:a})=>{const t=n.useMemo(()=>c(a?.request.data?.createdAt),[a?.request.data.createdAt]);if(!a||!a.request)return e.jsx(r,{title:"Request Details",items:[],emptyMessage:"No request data available"});const s=()=>a?.request.data?.headers?.host||"Unknown",l=n.useMemo(()=>[{label:"Time",value:t,className:"text-gray-900 dark:text-gray-100"},{label:"Hostname",value:s(),className:"text-gray-900 dark:text-gray-100 font-mono"},{label:"Method",value:a.request.data.method?e.jsx(x,{method:a.request.data.method}):"Unknown"},{label:"Request ID",value:a.request.data.id||"N/A",className:"text-gray-700 dark:text-gray-300 font-mono text-sm"},{label:"Path",value:a.request.data.path||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"},{label:"Status",value:a.request.data.status?e.jsx(b,{status:a.request.data.status}):"N/A"},{label:"Duration",value:a.request.data.duration||"N/A",className:"text-gray-900 dark:text-gray-100 font-medium"},{label:"IP Address",value:a.request.data.ip||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"}],[a.request.data,t]);return e.jsx(r,{title:"Request Details",items:l})},A=({request:a})=>{const t=[{id:"payload",label:"Payload",data:a?.request?.data?.body},{id:"headers",label:"Headers",data:a?.request?.data?.headers}],s=[{id:"response-body",label:"Body",data:a?.request?.data?.response?.json},{id:"response-headers",label:"Headers",data:a?.request?.data?.response?.headers}],l=[{id:"request-exceptions",label:`Exceptions (${a.exceptions.length})`,shouldShow:a.exceptions.length>0,content:e.jsx(d,{columns:m(),data:a.exceptions})},{id:"request-queries",label:`Queries (${a?.queries?.length})`,shouldShow:a?.queries?.length>0,content:e.jsx(d,{columns:i(),data:a?.queries})},{id:"request-cache",label:`Cache (${a?.cacheEntries.length})`,shouldShow:a?.cacheEntries.length>0,content:e.jsx(d,{columns:u(),data:a?.cacheEntries})}];return e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(h,{request:a}),a?.request?.data?.user&&e.jsx(r,{title:"User",items:[{label:"ID",value:a?.request?.data?.user?.id},{label:"Email",value:a?.request?.data?.user?.email},{label:"Name",value:a?.request?.data?.user?.name}]}),e.jsx(o,{tabs:t,title:"Request Data",defaultActiveTab:"payload"}),e.jsx(o,{tabs:s,title:"Response Data",defaultActiveTab:"response-body"}),e.jsx(o,{tabs:l})]})};export{A as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequestDetails-CF338Kcv.js","./index-TW_-MgRG.js","./index-CsnKQ5Mh.css","./TabbedDataViewer-ofhEq_Wj.js","./Table-kak5sL5X.js","./columns-Bu5psHyp.js","./index-BRRKsoNv.js","./columns-BEyDhUNq.js","./columns-BvIUTkjN.js","./CacheActionBadge-BB4uokI1.js","./StatusCode-C605nHvd.js"])))=>i.map(i=>d[i]);
2
- import{S as V,p as k,a as l,s as w,b as y,n as x,i as I,c as L,t as W,f as $,d as K,e as j,g as H,r as p,h as N,u as J,k as G,l as X,m as Y,j as T,_ as Z}from"./index-TW_-MgRG.js";var tt=class extends V{constructor(t,e){super(),this.options=e,this.#s=t,this.#r=null,this.#i=k(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#c;#i;#r;#R;#l;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),A(this.#t,this.options)?this.#u():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Q(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Q(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#C(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof l(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),e._defaulted&&!w(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&B(this.#t,s,this.options,e)&&this.#u(),this.updateResult(),i&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||y(this.options.staleTime,this.#t)!==y(e.staleTime,this.#t))&&this.#b();const a=this.#v();i&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||a!==this.#a)&&this.#m(a)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return st(this,s)&&(this.#e=s,this.#c=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),e?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,i))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#u({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#u(t){this.#O();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(x)),e}#b(){this.#g();const t=y(this.options.staleTime,this.#t);if(I||this.#e.isStale||!L(t))return;const s=W(this.#e.dataUpdatedAt,t)+1;this.#o=setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#m(t){this.#C(),this.#a=t,!(I||l(this.options.enabled,this.#t)===!1||!L(this.#a)||this.#a===0)&&(this.#h=setInterval(()=>{(this.options.refetchIntervalInBackground||$.isFocused())&&this.#u()},this.#a))}#y(){this.#b(),this.#m(this.#v())}#g(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#C(){this.#h&&(clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,i=this.options,a=this.#e,u=this.#n,r=this.#c,o=t!==s?t.state:this.#p,{state:d}=t;let n={...d},m=!1,h;if(e._optimisticResults){const c=this.hasListeners(),g=!c&&A(t,e),v=c&&B(t,s,e,i);(g||v)&&(n={...n,...K(d.data,t.options)}),e._optimisticResults==="isRestoring"&&(n.fetchStatus="idle")}let{error:_,errorUpdatedAt:P,status:R}=n;h=n.data;let D=!1;if(e.placeholderData!==void 0&&h===void 0&&R==="pending"){let c;a?.isPlaceholderData&&e.placeholderData===r?.placeholderData?(c=a.data,D=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(R="success",h=j(a?.data,c,e),m=!0)}if(e.select&&h!==void 0&&!D)if(a&&h===u?.data&&e.select===this.#R)h=this.#l;else try{this.#R=e.select,h=e.select(h),h=j(a?.data,h,e),this.#l=h,this.#r=null}catch(c){this.#r=c}this.#r&&(_=this.#r,h=this.#l,P=Date.now(),R="error");const O=n.fetchStatus==="fetching",S=R==="pending",E=R==="error",U=S&&O,M=h!==void 0,f={status:R,fetchStatus:n.fetchStatus,isPending:S,isSuccess:R==="success",isError:E,isInitialLoading:U,isLoading:U,data:h,dataUpdatedAt:n.dataUpdatedAt,error:_,errorUpdatedAt:P,failureCount:n.fetchFailureCount,failureReason:n.fetchFailureReason,errorUpdateCount:n.errorUpdateCount,isFetched:n.dataUpdateCount>0||n.errorUpdateCount>0,isFetchedAfterMount:n.dataUpdateCount>o.dataUpdateCount||n.errorUpdateCount>o.errorUpdateCount,isFetching:O,isRefetching:O&&!S,isLoadingError:E&&!M,isPaused:n.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:E&&M,isStale:F(t,e),refetch:this.refetch,promise:this.#i,isEnabled:l(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=C=>{f.status==="error"?C.reject(f.error):f.data!==void 0&&C.resolve(f.data)},g=()=>{const C=this.#i=f.promise=k();c(C)},v=this.#i;switch(v.status){case"pending":t.queryHash===s.queryHash&&c(v);break;case"fulfilled":(f.status==="error"||f.data!==v.value)&&g();break;case"rejected":(f.status!=="error"||f.error!==v.reason)&&g();break}}return f}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#c=this.options,this.#n.data!==void 0&&(this.#d=this.#t),w(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!this.#f.size)return!0;const u=new Set(a??this.#f);return this.options.throwOnError&&u.add("error"),Object.keys(this.#e).some(r=>{const b=r;return this.#e[b]!==t[b]&&u.has(b)})};this.#S({listeners:s()})}#O(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(t){H.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function et(t,e){return l(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function A(t,e){return et(t,e)||t.state.data!==void 0&&Q(t,e,e.refetchOnMount)}function Q(t,e,s){if(l(e.enabled,t)!==!1&&y(e.staleTime,t)!=="static"){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&F(t,e)}return!1}function B(t,e,s,i){return(t!==e||l(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&F(t,s)}function F(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(y(e.staleTime,t))}function st(t,e){return!w(t.getCurrentResult(),e)}var z=p.createContext(!1),it=()=>p.useContext(z);z.Provider;function rt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var at=p.createContext(rt()),nt=()=>p.useContext(at),ot=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},ht=t=>{p.useEffect(()=>{t.clearReset()},[t])},ut=({result:t,errorResetBoundary:e,throwOnError:s,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||N(s,[t.error,i])),ct=t=>{if(t.suspense){const e=i=>i==="static"?i:Math.max(i??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...i)=>e(s(...i)):e(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},lt=(t,e)=>t.isLoading&&t.isFetching&&!e,dt=(t,e)=>t?.suspense&&e.isPending,q=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function ft(t,e,s){const i=it(),a=nt(),u=J(),r=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(r),r._optimisticResults=i?"isRestoring":"optimistic",ct(r),ot(r,a),ht(a);const b=!u.getQueryCache().get(r.queryHash),[o]=p.useState(()=>new e(u,r)),d=o.getOptimisticResult(r),n=!i&&t.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(m=>{const h=n?o.subscribe(H.batchCalls(m)):x;return o.updateResult(),h},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setOptions(r)},[r,o]),dt(r,d))throw q(r,o,a);if(ut({result:d,errorResetBoundary:a,throwOnError:r.throwOnError,query:u.getQueryCache().get(r.queryHash),suspense:r.suspense}))throw d.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(r,d),r.experimental_prefetchInRender&&!I&&lt(d,i)&&(b?q(r,o,a):u.getQueryCache().get(r.queryHash)?.promise)?.catch(x).finally(()=>{o.updateResult()}),r.notifyOnChangeProps?d:o.trackResult(d)}function pt(t,e){return ft(t,tt)}async function Rt(t,e){const s=await fetch(t,{headers:{"Content-Type":"application/json"},...e});if(!s.ok)throw new Error(`Failed to fetch: ${t}`);return s.json()}function bt(t,e){const s=G();return pt({queryKey:["request",t],queryFn:async()=>await Rt(X(`${s.api.requests}/${t}`)),enabled:!!t,...e})}const vt=p.lazy(()=>Z(()=>import("./RequestDetails-CF338Kcv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)),gt=()=>{const{id:t}=Y(),{data:e}=bt(t);return T.jsx(T.Fragment,{children:e?.data&&T.jsx(vt,{request:e?.data})})};export{gt as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequestDetails-Gd7Ai7fu.js","./index-Bg3-m46L.js","./index-CsnKQ5Mh.css","./TabbedDataViewer-CJN6R11V.js","./Table-C3Y9tdtZ.js","./columns-BGeHl5-C.js","./index-BRRKsoNv.js","./columns-5NhbdeuI.js","./columns-oQrpcTou.js","./CacheActionBadge-B0d8J3l3.js","./StatusCode-D5gEbxbO.js"])))=>i.map(i=>d[i]);
2
+ import{S as V,p as k,a as l,s as w,b as y,n as x,i as I,c as L,t as W,f as $,d as K,e as j,g as H,r as p,h as N,u as J,k as G,l as X,m as Y,j as T,_ as Z}from"./index-Bg3-m46L.js";var tt=class extends V{constructor(t,e){super(),this.options=e,this.#s=t,this.#r=null,this.#i=k(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#c;#i;#r;#R;#l;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),A(this.#t,this.options)?this.#u():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Q(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Q(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#C(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof l(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),e._defaulted&&!w(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&B(this.#t,s,this.options,e)&&this.#u(),this.updateResult(),i&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||y(this.options.staleTime,this.#t)!==y(e.staleTime,this.#t))&&this.#b();const a=this.#v();i&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||a!==this.#a)&&this.#m(a)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return st(this,s)&&(this.#e=s,this.#c=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),e?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,i))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#u({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#u(t){this.#O();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(x)),e}#b(){this.#g();const t=y(this.options.staleTime,this.#t);if(I||this.#e.isStale||!L(t))return;const s=W(this.#e.dataUpdatedAt,t)+1;this.#o=setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#m(t){this.#C(),this.#a=t,!(I||l(this.options.enabled,this.#t)===!1||!L(this.#a)||this.#a===0)&&(this.#h=setInterval(()=>{(this.options.refetchIntervalInBackground||$.isFocused())&&this.#u()},this.#a))}#y(){this.#b(),this.#m(this.#v())}#g(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#C(){this.#h&&(clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,i=this.options,a=this.#e,u=this.#n,r=this.#c,o=t!==s?t.state:this.#p,{state:d}=t;let n={...d},m=!1,h;if(e._optimisticResults){const c=this.hasListeners(),g=!c&&A(t,e),v=c&&B(t,s,e,i);(g||v)&&(n={...n,...K(d.data,t.options)}),e._optimisticResults==="isRestoring"&&(n.fetchStatus="idle")}let{error:_,errorUpdatedAt:P,status:R}=n;h=n.data;let D=!1;if(e.placeholderData!==void 0&&h===void 0&&R==="pending"){let c;a?.isPlaceholderData&&e.placeholderData===r?.placeholderData?(c=a.data,D=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(R="success",h=j(a?.data,c,e),m=!0)}if(e.select&&h!==void 0&&!D)if(a&&h===u?.data&&e.select===this.#R)h=this.#l;else try{this.#R=e.select,h=e.select(h),h=j(a?.data,h,e),this.#l=h,this.#r=null}catch(c){this.#r=c}this.#r&&(_=this.#r,h=this.#l,P=Date.now(),R="error");const O=n.fetchStatus==="fetching",S=R==="pending",E=R==="error",U=S&&O,M=h!==void 0,f={status:R,fetchStatus:n.fetchStatus,isPending:S,isSuccess:R==="success",isError:E,isInitialLoading:U,isLoading:U,data:h,dataUpdatedAt:n.dataUpdatedAt,error:_,errorUpdatedAt:P,failureCount:n.fetchFailureCount,failureReason:n.fetchFailureReason,errorUpdateCount:n.errorUpdateCount,isFetched:n.dataUpdateCount>0||n.errorUpdateCount>0,isFetchedAfterMount:n.dataUpdateCount>o.dataUpdateCount||n.errorUpdateCount>o.errorUpdateCount,isFetching:O,isRefetching:O&&!S,isLoadingError:E&&!M,isPaused:n.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:E&&M,isStale:F(t,e),refetch:this.refetch,promise:this.#i,isEnabled:l(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=C=>{f.status==="error"?C.reject(f.error):f.data!==void 0&&C.resolve(f.data)},g=()=>{const C=this.#i=f.promise=k();c(C)},v=this.#i;switch(v.status){case"pending":t.queryHash===s.queryHash&&c(v);break;case"fulfilled":(f.status==="error"||f.data!==v.value)&&g();break;case"rejected":(f.status!=="error"||f.error!==v.reason)&&g();break}}return f}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#c=this.options,this.#n.data!==void 0&&(this.#d=this.#t),w(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!this.#f.size)return!0;const u=new Set(a??this.#f);return this.options.throwOnError&&u.add("error"),Object.keys(this.#e).some(r=>{const b=r;return this.#e[b]!==t[b]&&u.has(b)})};this.#S({listeners:s()})}#O(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(t){H.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function et(t,e){return l(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function A(t,e){return et(t,e)||t.state.data!==void 0&&Q(t,e,e.refetchOnMount)}function Q(t,e,s){if(l(e.enabled,t)!==!1&&y(e.staleTime,t)!=="static"){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&F(t,e)}return!1}function B(t,e,s,i){return(t!==e||l(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&F(t,s)}function F(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(y(e.staleTime,t))}function st(t,e){return!w(t.getCurrentResult(),e)}var z=p.createContext(!1),it=()=>p.useContext(z);z.Provider;function rt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var at=p.createContext(rt()),nt=()=>p.useContext(at),ot=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},ht=t=>{p.useEffect(()=>{t.clearReset()},[t])},ut=({result:t,errorResetBoundary:e,throwOnError:s,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||N(s,[t.error,i])),ct=t=>{if(t.suspense){const e=i=>i==="static"?i:Math.max(i??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...i)=>e(s(...i)):e(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},lt=(t,e)=>t.isLoading&&t.isFetching&&!e,dt=(t,e)=>t?.suspense&&e.isPending,q=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function ft(t,e,s){const i=it(),a=nt(),u=J(),r=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(r),r._optimisticResults=i?"isRestoring":"optimistic",ct(r),ot(r,a),ht(a);const b=!u.getQueryCache().get(r.queryHash),[o]=p.useState(()=>new e(u,r)),d=o.getOptimisticResult(r),n=!i&&t.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(m=>{const h=n?o.subscribe(H.batchCalls(m)):x;return o.updateResult(),h},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setOptions(r)},[r,o]),dt(r,d))throw q(r,o,a);if(ut({result:d,errorResetBoundary:a,throwOnError:r.throwOnError,query:u.getQueryCache().get(r.queryHash),suspense:r.suspense}))throw d.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(r,d),r.experimental_prefetchInRender&&!I&&lt(d,i)&&(b?q(r,o,a):u.getQueryCache().get(r.queryHash)?.promise)?.catch(x).finally(()=>{o.updateResult()}),r.notifyOnChangeProps?d:o.trackResult(d)}function pt(t,e){return ft(t,tt)}async function Rt(t,e){const s=await fetch(t,{headers:{"Content-Type":"application/json"},...e});if(!s.ok)throw new Error(`Failed to fetch: ${t}`);return s.json()}function bt(t,e){const s=G();return pt({queryKey:["request",t],queryFn:async()=>await Rt(X(`${s.api.requests}/${t}`)),enabled:!!t,...e})}const vt=p.lazy(()=>Z(()=>import("./RequestDetails-Gd7Ai7fu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)),gt=()=>{const{id:t}=Y(),{data:e}=bt(t);return T.jsx(T.Fragment,{children:e?.data&&T.jsx(vt,{request:e?.data})})};export{gt as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequetsTable-Bdp_PhGU.js","./index-TW_-MgRG.js","./index-CsnKQ5Mh.css","./LoadMore-CLPR6Zd4.js","./Table-kak5sL5X.js","./StatusCode-C605nHvd.js","./index-BRRKsoNv.js"])))=>i.map(i=>d[i]);
2
- import{r as e,j as p,_ as m}from"./index-TW_-MgRG.js";import{D as h,u as _}from"./useLensApi-BFdsfrzR.js";import{u as E}from"./useLoadMore-JCWak1Dg.js";const y={queries:[],cacheEntries:[],exceptions:[],request:{created_at:"",data:{body:{},createdAt:"",duration:"",headers:{},id:"",ip:"",method:"GET",path:"",response:{headers:{},json:{}},status:0,user:null},id:"",lens_entry_id:null,type:"request"}};function M(){const[t,o]=e.useState([]),[r,d]=e.useState(y),[c,s]=e.useState(!1),[i,q]=e.useState(h),{getAllRequests:a,getRequestById:l}=_(),f=e.useCallback(async n=>{s(!0),l(n).then(u=>{d({request:u.data,queries:[],cacheEntries:[],exceptions:[]})}).finally(()=>{s(!1)})},[l]),R=e.useCallback(async n=>{s(!0),a(n).then(u=>{o(u.data),q(u.meta)}).finally(()=>{s(!1)})},[a]);return{loadMoreRequests:e.useMemo(()=>({initialData:t,meta:i,loading:c,fetchRawPage:a}),[t,i,c,a]),fetchRequests:R,fetchRequest:f,request:r}}const g=e.lazy(()=>m(()=>import("./RequetsTable-Bdp_PhGU.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),L=()=>{const{loadMoreRequests:t,fetchRequests:o}=M(),r=E({paginatedPage:t});return e.useEffect(()=>{o()},[]),p.jsx(g,{hasMoreObject:r})};export{L as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequetsTable-DFm_vdLV.js","./index-Bg3-m46L.js","./index-CsnKQ5Mh.css","./LoadMore-DkgyLoiB.js","./Table-C3Y9tdtZ.js","./StatusCode-D5gEbxbO.js","./index-BRRKsoNv.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,j as p,_ as m}from"./index-Bg3-m46L.js";import{D as h,u as _}from"./useLensApi-CI65OdmI.js";import{u as E}from"./useLoadMore-BA_-_Tw4.js";const y={queries:[],cacheEntries:[],exceptions:[],request:{created_at:"",data:{body:{},createdAt:"",duration:"",headers:{},id:"",ip:"",method:"GET",path:"",response:{headers:{},json:{}},status:0,user:null},id:"",lens_entry_id:null,type:"request"}};function M(){const[t,o]=e.useState([]),[r,d]=e.useState(y),[c,s]=e.useState(!1),[i,q]=e.useState(h),{getAllRequests:a,getRequestById:l}=_(),f=e.useCallback(async n=>{s(!0),l(n).then(u=>{d({request:u.data,queries:[],cacheEntries:[],exceptions:[]})}).finally(()=>{s(!1)})},[l]),R=e.useCallback(async n=>{s(!0),a(n).then(u=>{o(u.data),q(u.meta)}).finally(()=>{s(!1)})},[a]);return{loadMoreRequests:e.useMemo(()=>({initialData:t,meta:i,loading:c,fetchRawPage:a}),[t,i,c,a]),fetchRequests:R,fetchRequest:f,request:r}}const g=e.lazy(()=>m(()=>import("./RequetsTable-DFm_vdLV.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),L=()=>{const{loadMoreRequests:t,fetchRequests:o}=M(),r=E({paginatedPage:t});return e.useEffect(()=>{o()},[]),p.jsx(g,{hasMoreObject:r})};export{L as default};
@@ -1 +1 @@
1
- import{q as o,k as d,j as e,L as s}from"./index-TW_-MgRG.js";import{L as i}from"./LoadMore-CLPR6Zd4.js";import{C as m,T as u}from"./Table-kak5sL5X.js";import{R as l,S as x}from"./StatusCode-C605nHvd.js";import{h as c}from"./index-BRRKsoNv.js";const h=()=>{const a=o(d());return[{name:"Method",render:t=>e.jsx(l,{method:t.data.method})},{name:"Path",render:t=>e.jsx(s,{to:`${a.REQUESTS}/${t.id}`,className:"line-clamp-2 max-w-80 min-w-40 text-base text-blue-600 dark:text-neutral-200 hover:underline",children:t.data.path})},{name:"Status",render:t=>e.jsx(x,{status:t.data.status})},{name:"Duration",value:t=>t.data.duration},{name:"Happened",render:t=>{const{label:n,exact:r}=c(t.data.createdAt);return e.jsx("span",{title:r,children:n})},position:"end",class:"min-w-32"},{name:"Actions",render:t=>e.jsx(s,{to:`${a.REQUESTS}/${t.id}`,className:"transition-colors duration-100 hover:text-white",children:e.jsx(m,{size:20})}),position:"end"}]},S=({hasMoreObject:a})=>e.jsxs("div",{children:[e.jsx(u,{columns:h(),data:a.data}),e.jsx(i,{paginatedPage:a})]});export{S as default};
1
+ import{q as o,k as d,j as e,L as s}from"./index-Bg3-m46L.js";import{L as i}from"./LoadMore-DkgyLoiB.js";import{C as m,T as u}from"./Table-C3Y9tdtZ.js";import{R as l,S as x}from"./StatusCode-D5gEbxbO.js";import{h as c}from"./index-BRRKsoNv.js";const h=()=>{const a=o(d());return[{name:"Method",render:t=>e.jsx(l,{method:t.data.method})},{name:"Path",render:t=>e.jsx(s,{to:`${a.REQUESTS}/${t.id}`,className:"line-clamp-2 max-w-80 min-w-40 text-base text-blue-600 dark:text-neutral-200 hover:underline",children:t.data.path})},{name:"Status",render:t=>e.jsx(x,{status:t.data.status})},{name:"Duration",value:t=>t.data.duration},{name:"Happened",render:t=>{const{label:n,exact:r}=c(t.data.createdAt);return e.jsx("span",{title:r,children:n})},position:"end",class:"min-w-32"},{name:"Actions",render:t=>e.jsx(s,{to:`${a.REQUESTS}/${t.id}`,className:"transition-colors duration-100 hover:text-white",children:e.jsx(m,{size:20})}),position:"end"}]},S=({hasMoreObject:a})=>e.jsxs("div",{children:[e.jsx(u,{columns:h(),data:a.data}),e.jsx(i,{paginatedPage:a})]});export{S as default};
@@ -1 +1 @@
1
- import{j as t}from"./index-TW_-MgRG.js";function g({method:e}){let r="bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white";switch(e){case"GET":r="bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white";break;case"POST":case"PUT":r="bg-blue-100 text-blue-800 dark:bg-blue-600 dark:text-white";break;case"DELETE":r="bg-red-100 text-red-800 dark:bg-red-600 dark:text-white";break}return t.jsx("span",{className:`rounded px-2 py-1 text-sm font-semibold ${r}`,children:e})}const a=e=>e>=200&&e<300?"bg-green-100 text-green-800 dark:bg-green-700 dark:text-green-100":e>=300&&e<400?"bg-blue-100 text-blue-800 dark:bg-blue-700 dark:text-blue-100":e>=400&&e<500?"bg-yellow-100 text-yellow-800 dark:bg-yellow-700 dark:text-yellow-100":e>=500?"bg-red-100 text-red-800 dark:bg-red-700 dark:text-red-100":"bg-gray-100 text-gray-800 dark:bg-neutral-700 dark:text-neutral-200",b=({status:e})=>t.jsx("span",{className:`rounded-lg px-2 py-1 text-sm font-semibold ${a(e)}`,children:e});export{g as R,b as S};
1
+ import{j as t}from"./index-Bg3-m46L.js";function g({method:e}){let r="bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white";switch(e){case"GET":r="bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white";break;case"POST":case"PUT":r="bg-blue-100 text-blue-800 dark:bg-blue-600 dark:text-white";break;case"DELETE":r="bg-red-100 text-red-800 dark:bg-red-600 dark:text-white";break}return t.jsx("span",{className:`rounded px-2 py-1 text-sm font-semibold ${r}`,children:e})}const a=e=>e>=200&&e<300?"bg-green-100 text-green-800 dark:bg-green-700 dark:text-green-100":e>=300&&e<400?"bg-blue-100 text-blue-800 dark:bg-blue-700 dark:text-blue-100":e>=400&&e<500?"bg-yellow-100 text-yellow-800 dark:bg-yellow-700 dark:text-yellow-100":e>=500?"bg-red-100 text-red-800 dark:bg-red-700 dark:text-red-100":"bg-gray-100 text-gray-800 dark:bg-neutral-700 dark:text-neutral-200",b=({status:e})=>t.jsx("span",{className:`rounded-lg px-2 py-1 text-sm font-semibold ${a(e)}`,children:e});export{g as R,b as S};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./JsonViewer-D-KPN089.js","./index-TW_-MgRG.js","./index-CsnKQ5Mh.css","./copy-DzXuP4eO.js"])))=>i.map(i=>d[i]);
2
- import{j as e,r as n,R as i,_ as x}from"./index-TW_-MgRG.js";const b=({title:d,items:s,emptyMessage:t="No data available"})=>!s||s.length===0||s.every(a=>!a.value)?e.jsxs("div",{className:"bg-white dark:bg-neutral-800 border border-gray-200 dark:border-neutral-700 rounded-lg shadow-sm p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:d})," ",e.jsx("p",{className:"text-center text-gray-500 dark:text-gray-400",children:t})]}):e.jsxs("div",{className:"bg-white dark:bg-neutral-800 border border-gray-200 dark:border-neutral-700 rounded-lg shadow-sm",children:[e.jsx("div",{className:"px-6 py-4 border-b border-gray-200 dark:border-neutral-700 bg-gray-50 dark:bg-neutral-900",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:d})}),e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"space-y-4",children:s.map((a,l)=>e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start gap-2",children:[e.jsx("div",{className:"w-full sm:w-32 flex-shrink-0",children:e.jsx("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:a.label})}),e.jsx("div",{className:"flex-1",children:typeof a.value=="string"?e.jsx("span",{className:`text-sm ${a.className||""}`,children:a.value}):a.value})]},l))})})]}),c=i.lazy(()=>x(()=>import("./JsonViewer-D-KPN089.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),h=({tabs:d,title:s,defaultActiveTab:t})=>{const a=d.filter(r=>r.shouldShow===void 0||r.shouldShow),[l,o]=n.useState(t||a[0]?.id||"");return a.length?e.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-[15px] shadow-sm",children:[s&&e.jsx("div",{className:"px-6 py-4 rounded-t-[15px] border-b border-neutral-200 dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-900",children:e.jsx("h2",{className:"text-lg font-semibold text-neutral-900 dark:text-neutral-100",children:s})}),e.jsx("div",{className:"border-b rounded-[15px] border-neutral-200 dark:border-neutral-700",children:e.jsx("nav",{className:"flex space-x-8 px-6","aria-label":"Tabs",children:a.map(r=>e.jsx("button",{onClick:()=>o(r.id),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors duration-200 ${l===r.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300 hover:border-neutral-300 dark:hover:border-neutral-600"}`,children:r.label},r.id))})}),e.jsx("div",{className:"p-6",children:a.map(r=>e.jsx("div",{className:l===r.id?"block":"hidden",children:r.content?e.jsx("div",{children:r.content}):r.data&&e.jsx(n.Suspense,{fallback:e.jsx("div",{children:"Loading viewer…"}),children:e.jsx(c,{data:r.data})})},r.id))})]}):null};export{b as D,h as T};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./JsonViewer-CsEn0XaU.js","./index-Bg3-m46L.js","./index-CsnKQ5Mh.css","./copy-CwmmSmiO.js"])))=>i.map(i=>d[i]);
2
+ import{j as e,r as n,R as i,_ as x}from"./index-Bg3-m46L.js";const b=({title:d,items:s,emptyMessage:t="No data available"})=>!s||s.length===0||s.every(a=>!a.value)?e.jsxs("div",{className:"bg-white dark:bg-neutral-800 border border-gray-200 dark:border-neutral-700 rounded-lg shadow-sm p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:d})," ",e.jsx("p",{className:"text-center text-gray-500 dark:text-gray-400",children:t})]}):e.jsxs("div",{className:"bg-white dark:bg-neutral-800 border border-gray-200 dark:border-neutral-700 rounded-lg shadow-sm",children:[e.jsx("div",{className:"px-6 py-4 border-b border-gray-200 dark:border-neutral-700 bg-gray-50 dark:bg-neutral-900",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:d})}),e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"space-y-4",children:s.map((a,l)=>e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start gap-2",children:[e.jsx("div",{className:"w-full sm:w-32 flex-shrink-0",children:e.jsx("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:a.label})}),e.jsx("div",{className:"flex-1",children:typeof a.value=="string"?e.jsx("span",{className:`text-sm ${a.className||""}`,children:a.value}):a.value})]},l))})})]}),c=i.lazy(()=>x(()=>import("./JsonViewer-CsEn0XaU.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),h=({tabs:d,title:s,defaultActiveTab:t})=>{const a=d.filter(r=>r.shouldShow===void 0||r.shouldShow),[l,o]=n.useState(t||a[0]?.id||"");return a.length?e.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-[15px] shadow-sm",children:[s&&e.jsx("div",{className:"px-6 py-4 rounded-t-[15px] border-b border-neutral-200 dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-900",children:e.jsx("h2",{className:"text-lg font-semibold text-neutral-900 dark:text-neutral-100",children:s})}),e.jsx("div",{className:"border-b rounded-[15px] border-neutral-200 dark:border-neutral-700",children:e.jsx("nav",{className:"flex space-x-8 px-6","aria-label":"Tabs",children:a.map(r=>e.jsx("button",{onClick:()=>o(r.id),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors duration-200 ${l===r.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300 hover:border-neutral-300 dark:hover:border-neutral-600"}`,children:r.label},r.id))})}),e.jsx("div",{className:"p-6",children:a.map(r=>e.jsx("div",{className:l===r.id?"block":"hidden",children:r.content?e.jsx("div",{children:r.content}):r.data&&e.jsx(n.Suspense,{fallback:e.jsx("div",{children:"Loading viewer…"}),children:e.jsx(c,{data:r.data})})},r.id))})]}):null};export{b as D,h as T};
@@ -1,4 +1,4 @@
1
- import{v as Ie,j as w}from"./index-TW_-MgRG.js";/**
1
+ import{v as Ie,j as w}from"./index-Bg3-m46L.js";/**
2
2
  * @license lucide-react v0.542.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{q as r,k as i,j as t,L as o}from"./index-TW_-MgRG.js";import{h as d}from"./index-BRRKsoNv.js";import{C as m}from"./Table-kak5sL5X.js";const p=()=>{const a=r(i());return[{name:"Type",render:e=>t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:e.data.name||t.jsx("span",{className:"italic text-gray-400",children:"Unknown"})}),t.jsx("span",{className:"text-xs text-red-600 dark:text-red-400 truncate max-w-xs",title:e.data.message,children:e.data.message})]})},{name:"Happened",render:e=>{const{label:s,exact:n}=d(e.data.createdAt);return t.jsx("span",{title:n,children:s})},position:"end",class:"min-w-32"},{name:"Actions",render:e=>t.jsx(o,{to:`${a.EXCEPTIONS}/${e.id}`,className:"transition-colors duration-100 hover:text-white",children:t.jsx(m,{size:20})}),position:"end"}]};export{p as g};
1
+ import{q as r,k as i,j as t,L as o}from"./index-Bg3-m46L.js";import{h as d}from"./index-BRRKsoNv.js";import{C as m}from"./Table-C3Y9tdtZ.js";const p=()=>{const a=r(i());return[{name:"Type",render:e=>t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:e.data.name||t.jsx("span",{className:"italic text-gray-400",children:"Unknown"})}),t.jsx("span",{className:"text-xs text-red-600 dark:text-red-400 truncate max-w-xs",title:e.data.message,children:e.data.message})]})},{name:"Happened",render:e=>{const{label:s,exact:n}=d(e.data.createdAt);return t.jsx("span",{title:n,children:s})},position:"end",class:"min-w-32"},{name:"Actions",render:e=>t.jsx(o,{to:`${a.EXCEPTIONS}/${e.id}`,className:"transition-colors duration-100 hover:text-white",children:t.jsx(m,{size:20})}),position:"end"}]};export{p as g};
@@ -1 +1 @@
1
- import{q as r,k as i,j as t,L as o}from"./index-TW_-MgRG.js";import{h as l}from"./index-BRRKsoNv.js";import{C as d}from"./Table-kak5sL5X.js";function m(a){return t.jsx("span",{className:"text-red-600 dark:text-red-400 font-mono",children:a})}const p=()=>{const a=r(i());return[{name:"Query",render:e=>t.jsx("div",{className:"max-w-xl",children:t.jsx("code",{className:"text-sm font-mono text-slate-800 dark:text-slate-300 leading-relaxed line-clamp-1",title:e.data.query,children:m(e.data.query)})})},{name:"Duration",render:e=>t.jsx("div",{className:"col-span-1 text-right",children:t.jsx("span",{className:"text-sm text-slate-600 dark:text-slate-400 font-mono",children:e.data.duration})})},{name:"Provider",render:e=>t.jsx("div",{className:"col-span-2 text-right",children:t.jsx("span",{className:"text-sm text-slate-600 dark:text-slate-400 font-mono",children:e.data.type})})},{name:"Happened",render:e=>{const{label:s,exact:n}=l(e.data.createdAt);return t.jsx("span",{className:"text-nowrap",title:n,children:s})},position:"end",class:"min-w-32"},{name:"Actions",render:e=>t.jsx(o,{to:`${a.QUERIES}/${e.id}`,className:"transition-colors duration-100 hover:text-white",children:t.jsx(d,{size:20})}),position:"end"}]};export{p as g};
1
+ import{q as r,k as i,j as t,L as o}from"./index-Bg3-m46L.js";import{h as l}from"./index-BRRKsoNv.js";import{C as d}from"./Table-C3Y9tdtZ.js";function m(a){return t.jsx("span",{className:"text-red-600 dark:text-red-400 font-mono",children:a})}const p=()=>{const a=r(i());return[{name:"Query",render:e=>t.jsx("div",{className:"max-w-xl",children:t.jsx("code",{className:"text-sm font-mono text-slate-800 dark:text-slate-300 leading-relaxed line-clamp-1",title:e.data.query,children:m(e.data.query)})})},{name:"Duration",render:e=>t.jsx("div",{className:"col-span-1 text-right",children:t.jsx("span",{className:"text-sm text-slate-600 dark:text-slate-400 font-mono",children:e.data.duration})})},{name:"Provider",render:e=>t.jsx("div",{className:"col-span-2 text-right",children:t.jsx("span",{className:"text-sm text-slate-600 dark:text-slate-400 font-mono",children:e.data.type})})},{name:"Happened",render:e=>{const{label:s,exact:n}=l(e.data.createdAt);return t.jsx("span",{className:"text-nowrap",title:n,children:s})},position:"end",class:"min-w-32"},{name:"Actions",render:e=>t.jsx(o,{to:`${a.QUERIES}/${e.id}`,className:"transition-colors duration-100 hover:text-white",children:t.jsx(d,{size:20})}),position:"end"}]};export{p as g};
@@ -1 +1 @@
1
- import{q as o,k as r,j as t,L as i}from"./index-TW_-MgRG.js";import{h as m}from"./index-BRRKsoNv.js";import{C as c}from"./CacheActionBadge-BB4uokI1.js";import{C as d}from"./Table-kak5sL5X.js";const x=()=>{const a=o(r());return[{name:"Key",value:e=>e.data.data?.key??"__"},{name:"Operation",render:e=>t.jsx(c,{action:e.data.action})},{name:"Happened",render:e=>{const{label:n,exact:s}=m(e.data.createdAt);return t.jsx("span",{title:s,children:n})},position:"end",class:"min-w-32"},{name:"Actions",render:e=>t.jsx(i,{to:`${a.CACHE_ENTRIES}/${e.id}`,className:"transition-colors duration-100 hover:text-white",children:t.jsx(d,{size:20})}),position:"end"}]};export{x as g};
1
+ import{q as o,k as r,j as t,L as i}from"./index-Bg3-m46L.js";import{h as m}from"./index-BRRKsoNv.js";import{C as c}from"./CacheActionBadge-B0d8J3l3.js";import{C as d}from"./Table-C3Y9tdtZ.js";const x=()=>{const a=o(r());return[{name:"Key",value:e=>e.data.data?.key??"__"},{name:"Operation",render:e=>t.jsx(c,{action:e.data.action})},{name:"Happened",render:e=>{const{label:n,exact:s}=m(e.data.createdAt);return t.jsx("span",{title:s,children:n})},position:"end",class:"min-w-32"},{name:"Actions",render:e=>t.jsx(i,{to:`${a.CACHE_ENTRIES}/${e.id}`,className:"transition-colors duration-100 hover:text-white",children:t.jsx(d,{size:20})}),position:"end"}]};export{x as g};
@@ -1,4 +1,4 @@
1
- import{v as c}from"./index-TW_-MgRG.js";/**
1
+ import{v as c}from"./index-Bg3-m46L.js";/**
2
2
  * @license lucide-react v0.542.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.